@betorigami/games 0.7.36 → 0.7.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +158 -158
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,16 +1,16 @@
1
- var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames:Xn}=Object;var Bn=Object.prototype.hasOwnProperty;var uo=(o,i,a)=>{a=o!=null?On(Tn(o)):{};let t=i||!o||!o.__esModule?Ur(a,"default",{value:o,enumerable:!0}):a;for(let r of Xn(o))if(!Bn.call(t,r))Ur(t,r,{get:()=>o[r],enumerable:!0});return t};var Uo=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports);var d=function(o,i,a,t){var r=arguments.length,e=r<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,a):t,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")e=Reflect.decorate(o,i,a,t);else for(var s=o.length-1;s>=0;s--)if(n=o[s])e=(r<3?n(e):r>3?n(i,a,e):n(i,a))||e;return r>3&&e&&Object.defineProperty(i,a,e),e};var lt=Uo((Hc,cs)=>{cs.exports={accessibility:{betPlacedAnnouncement:"تم وضع الرهان بنجاح",gameInProgress:"اللعبة قيد التقدم",languageChanged:"تم تغيير اللغة إلى {language}"},alerts:{autobetStarted:"تم بدء وضع الرهان التلقائي",autobetStopped:"تم إيقاف وضع الرهان التلقائي",betAmountAboveMaxBet:"مبلغ الرهان أعلى من الحد الأقصى للرهان",betAmountBelowMinBet:"مبلغ الرهان أقل من الحد الأدنى للرهان",betCancelled:"تم إلغاء الرهان",betDetailsCopied:"تم نسخ تفاصيل الرهان إلى الحافظة!",betLimitReached:"تم الوصول إلى حد الرهان",betPlaced:"تم وضع الرهان بنجاح",connectionError:"خطأ في الاتصال",errorProcessingBet:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",failedToLoadBetData:"فشل تحميل بيانات الرهان",failedToShareBetDetails:"فشل في مشاركة تفاصيل الرهان",gameError:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",insufficientBalance:"رصيد غير كاف",notEnoughBalance:"ليس هناك توازن كاف"},autobet:{baseAmount:"المبلغ الأساسي",decrease:"ينقص",games:"ألعاب",games10:"10 ألعاب",games100:"100 لعبة",games25:"25 لعبة",games5:"5 ألعاب",games50:"50 لعبة",increase:"يزيد",infinite:"لانهائي",numberOfBets:"عدد الرهانات",onLoss:"عن الخسارة",onWin:"على ويندوز",reset:"إعادة ضبط",startAutobet:"ابدأ الرهان التلقائي",stopAutobet:"إيقاف الرهان التلقائي",stopOnLoss:"وقف الخسارة",stopOnProfit:"إيقاف الربح",stopOnWin:"توقف عند الفوز",title:"الرهان التلقائي"},common:{amount:"كمية",animation:"الرسوم المتحركة",auto:"آلي",back:"خلف",balance:"توازن",bet:"مبلغ الرهان",betAmount:"مبلغ الرهان",cancel:"يلغي",cashOut:"صرف نقدي",change:"يتغير",classic:"كلاسيكي",close:"يغلق",closeAlert:"إغلاق التنبيه",closeDialog:"إغلاق الحوار",confirm:"يتأكد",copy:"ينسخ",error:"خطأ",fairness:"العدالة",footerNavigation:"التنقل في التذييل",high:"عالي",history:"تاريخ",hotkeys:"مفاتيح التشغيل السريع",id:"بطاقة تعريف",instantBet:"الرهان الفوري",loading:"تحميل...",loadMore:"تحميل المزيد",lobby:"العودة إلى الردهة",loss:"خسارة",low:"قليل",manual:"يدوي",medium:"واسطة",multiplier:"المضاعف",next:"التالي",odds:"احتمال",payout:"الدفع",placeBet:"وضع الرهان",previous:"سابق",profit:"ربح",profitOnWin:"الربح على الفوز",provablyFair:"عادلة بشكل يمكن إثباته",rangeSlider:"شريط تمرير النطاق",risk:"مخاطرة",settings:"إعدادات",share:"يشارك",siteInformation:"معلومات الموقع",space:"فضاء",start:"يبدأ",stop:"قف",success:"نجاح",targetMultiplier:"المضاعف",thisFieldIsRequired:"هذه الخانة مطلوبه",timestamp:"وقت",toggleHotkeys:"تبديل مفاتيح التشغيل السريع",toggleSwitch:"مفتاح التبديل",viewFairnessInformation:"عرض معلومات العدالة",volume:"مقدار",win:"يفوز",winChance:"فرصة الفوز"},errors:{connection:"خطأ في الاتصال",dice:{multiplierRange:"يجب أن يكون بين 1.0102 و 9900",winChanceRange:"يجب أن يكون بين 0.01 و 98"},game:"حدث خطأ في اللعبة",insufficientBalance:"رصيد غير كاف",limbo:{multiplierRange:"يجب أن يكون المضاعف 1.01 على الأقل",winChanceRange:"يجب أن تكون فرصة الفوز بين 0.000099 و 99.9999"}},fairness:{activeClientSeed:"بذرة العميل النشط",enterClientSeed:"أدخل بذرة العميل",enterProof:"أدخل الدليل",enterPublicKey:"أدخل المفتاح العام",enterRandomness:"أدخل العشوائية",enterRequest:"أدخل الطلب",invalidGame:"تم تقديم نوع لعبة غير صالح.",noBettingHistory:"لا يوجد تاريخ مراهنة",outcomeCalculationInfo:"يتم حساب نتيجة كل لعبة باستخدام قيمة عشوائية كمدخلات.",outcomeNotVerified:"لم يتم التحقق من نتيجة هذه اللعبة",outcomeVerified:"لقد تم التحقق من نتيجة هذه اللعبة ويمكن إثبات أنها عادلة",pendingInputs:"المدخلات المعلقة",proof:"دليل",provableFairnessUnverified:"العدالة القابلة للإثبات غير مؤكدة",provableFairnessVerified:"تم التحقق من العدالة القابلة للإثبات",publicKey:"المفتاح العام",randomness:"العشوائية",request:"طلب",saveClientSeed:"حفظ بذرة العميل",verified:"تم التحقق",verifyOutcome:"التحقق من النتيجة",viewOutcome:"عرض النتيجة"},games:{dice:{result:"نتيجة",roll:"لفافة",rollOver:"انقلب",rollUnder:"تدحرج تحت",target:"هدف",title:"النرد"},keno:{autoPick:"الاختيار التلقائي",clearTable:"واضح",draw:"يرسم",hits:"الضربات",kenoGameGrid:"شبكة لعبة كينو",kenoNumber:"رقم كينو",numbers:"أرقام",pick:"يختار",select1to10Tiles:"حدد 1-10 بلاطات",selectAtLeastOneTile:"الرجاء تحديد بلاطة واحدة على الأقل",selectNumbers:"اختر الأرقام",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل",title:"كينو"},limbo:{cashout:"صرف نقدي",crashed:"تحطمت",target:"هدف",targetMultiplier:"المضاعف",title:"ليمبو"},mines:{cashout:"صرف نقدي",gem:"جوهرة",gems:"الأحجار الكريمة",mine:"مِلكِي",mines:"المناجم",nextGem:"الجوهرة التالية",reveal:"يكشف",selectRandomTile:"حدد بلاطة عشوائية",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل للمراهنة تلقائيًا",tile:"بلاط",title:"المناجم",unrevealed:"غير مكشوف"}},modals:{betResult:"نتيجة الرهان",fairnessAndHistory:"العدالة والتاريخ",gameArea:"منطقة اللعبة",gameControls:"عناصر التحكم في اللعبة"},outcomes:{draw:"يرسم",loss:"خسارة",win:"يفوز"},share:{betResultText:"تحقق من نتيجة رهاني!",betResultTitle:"نتيجة الرهان"}}});var dt=Uo((Zc,us)=>{us.exports={accessibility:{betPlacedAnnouncement:"Wette erfolgreich platziert",gameInProgress:"Spiel läuft",languageChanged:"Sprache geändert zu {language}"},alerts:{autobetStarted:"Autobet-Modus gestartet",autobetStopped:"Autobet-Modus gestoppt",betAmountAboveMaxBet:"Der Einsatzbetrag liegt über dem Höchsteinsatz",betAmountBelowMinBet:"Der Einsatzbetrag liegt unter dem Mindesteinsatz",betCancelled:"Wette abgesagt",betDetailsCopied:"Wettdetails in die Zwischenablage kopiert!",betLimitReached:"Einsatzlimit erreicht",betPlaced:"Wette erfolgreich platziert",connectionError:"Verbindungsfehler",errorProcessingBet:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",failedToLoadBetData:"Wettdaten konnten nicht geladen werden",failedToShareBetDetails:"Wettdetails konnten nicht geteilt werden",gameError:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",insufficientBalance:"Unzureichendes Gleichgewicht",notEnoughBalance:"Nicht genug Gleichgewicht"},autobet:{baseAmount:"Basisbetrag",decrease:"Verringern",games:"Spiele",games10:"10 Spiele",games100:"100 Spiele",games25:"25 Spiele",games5:"5 Spiele",games50:"50 Spiele",increase:"Zunahme",infinite:"Unendlich",numberOfBets:"Anzahl der Wetten",onLoss:"Bei Verlust",onWin:"Bei Win",reset:"Zurücksetzen",startAutobet:"Starten Sie Autobet",stopAutobet:"Stoppen Sie Autobet",stopOnLoss:"Stopp bei Verlust",stopOnProfit:"Stoppen Sie den Gewinn",stopOnWin:"Stopp bei Win",title:"Autobet"},common:{amount:"Menge",animation:"Animation",auto:"Auto",back:"Zurück",balance:"Gleichgewicht",bet:"Einsatzbetrag",betAmount:"Einsatzbetrag",cancel:"Stornieren",cashOut:"Auszahlung",change:"Ändern",classic:"Klassiker",close:"Schließen",closeAlert:"Warnung schließen",closeDialog:"Dialog schließen",confirm:"Bestätigen",copy:"Kopie",error:"Fehler",fairness:"Fairness",footerNavigation:"Footer navigation",high:"Hoch",history:"Geschichte",hotkeys:"Tastenkombinationen",id:"AUSWEIS",instantBet:"Sofortwette",loading:"Laden...",loadMore:"Mehr laden",lobby:"Zurück zur Lobby",loss:"Verlust",low:"Niedrig",manual:"Handbuch",medium:"Medium",multiplier:"Multiplikator",next:"Nächste",odds:"Chancen",payout:"Auszahlung",placeBet:"Wette platzieren",previous:"Vorherige",profit:"Profitieren",profitOnWin:"Gewinn beim Gewinn",provablyFair:"Nachweislich fair",rangeSlider:"Bereichsregler",risk:"Risiko",settings:"Einstellungen",share:"Aktie",siteInformation:"Site-Informationen",space:"RAUM",start:"Start",stop:"Stoppen",success:"Erfolg",targetMultiplier:"Multiplikator",thisFieldIsRequired:"Dieses Feld ist erforderlich",timestamp:"Zeit",toggleHotkeys:"Hotkeys umschalten",toggleSwitch:"Kippschalter",viewFairnessInformation:"Fairnessinformationen anzeigen",volume:"Volumen",win:"Gewinnen",winChance:"Gewinnchance"},errors:{connection:"Verbindungsfehler",dice:{multiplierRange:"Muss zwischen 1,0102 und 9900 liegen",winChanceRange:"Muss zwischen 0,01 und 98 liegen"},game:"Es ist ein Spielfehler aufgetreten",insufficientBalance:"Unzureichendes Gleichgewicht",limbo:{multiplierRange:"Der Multiplikator muss mindestens 1,01 betragen",winChanceRange:"Die Gewinnchance muss zwischen 0,000099 und 99,9999 liegen"}},fairness:{activeClientSeed:"Aktiver Client-Seed",enterClientSeed:"Client-Seed eingeben",enterProof:"Beweis eingeben",enterPublicKey:"Öffentlichen Schlüssel eingeben",enterRandomness:"Geben Sie Zufälligkeit ein",enterRequest:"Anfrage eingeben",invalidGame:"Ungültiger Spieltyp angegeben.",noBettingHistory:"Kein Wettverlauf",outcomeCalculationInfo:"Das Ergebnis jedes Spiels wird anhand eines Zufallswerts als Eingabe berechnet.",outcomeNotVerified:"Das Ergebnis dieses Spiels konnte nicht verifiziert werden",outcomeVerified:"Das Ergebnis dieses Spiels wurde überprüft und ist nachweislich fair",pendingInputs:"Ausstehende Eingaben",proof:"Nachweisen",provableFairnessUnverified:"Nachweisbare Fairness nicht verifiziert",provableFairnessVerified:"Nachweisbare Fairness verifiziert",publicKey:"Öffentlicher Schlüssel",randomness:"Zufälligkeit",request:"Anfrage",saveClientSeed:"Client-Seed speichern",verified:"Verifiziert",verifyOutcome:"Ergebnis überprüfen",viewOutcome:"Ergebnis anzeigen"},games:{dice:{result:"Ergebnis",roll:"Rollen",rollOver:"Sich umdrehen",rollUnder:"Unterrollen",target:"Ziel",title:"Würfel"},keno:{autoPick:"Automatische Auswahl",clearTable:"Klar",draw:"Ziehen",hits:"Treffer",kenoGameGrid:"Keno-Spielraster",kenoNumber:"Keno-Nummer",numbers:"Zahlen",pick:"Wählen",select1to10Tiles:"Wählen Sie 1–10 Kacheln aus",selectAtLeastOneTile:"Bitte wählen Sie mindestens eine Kachel aus",selectNumbers:"Zahlen auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens eine Kachel aus",title:"Keno"},limbo:{cashout:"Auszahlung",crashed:"Abgestürzt",target:"Ziel",targetMultiplier:"Multiplikator",title:"Limbo"},mines:{cashout:"Auszahlung",gem:"Juwel",gems:"Edelsteine",mine:"Meins",mines:"Minen",nextGem:"Nächster Edelstein",reveal:"Aufdecken",selectRandomTile:"Zufällige Kachel auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens ein Feld für die automatische Wette aus",tile:"Fliese",title:"Minen",unrevealed:"Unenthüllt"}},modals:{betResult:"Wettergebnis",fairnessAndHistory:"Fairness und Geschichte",gameArea:"Spielbereich",gameControls:"Spielsteuerung"},outcomes:{draw:"Ziehen",loss:"Verlust",win:"Gewinnen"},share:{betResultText:"Schauen Sie sich mein Wettergebnis an!",betResultTitle:"Wettergebnis"}}});var ct=Uo((Kc,hs)=>{hs.exports={common:{bet:"Bet Amount",cancel:"Cancel",confirm:"Confirm",close:"Close",loading:"Loading...",error:"Error",success:"Success",back:"Back",next:"Next",previous:"Previous",start:"Start",stop:"Stop",auto:"Auto",manual:"Manual",amount:"Amount",balance:"Balance",win:"Win",loss:"Loss",profit:"Profit",payout:"Payout",multiplier:"Multiplier",odds:"Odds",history:"History",provablyFair:"Provably Fair",lobby:"Back to Lobby",fairness:"Fairness",settings:"Settings",placeBet:"Place Bet",profitOnWin:"Profit On Win",targetMultiplier:"Multiplier",winChance:"Win Chance",cashOut:"Cash Out",change:"Change",copy:"Copy",volume:"Volume",instantBet:"Instant Bet",hotkeys:"Hotkeys",animation:"Animation",risk:"Risk",classic:"Classic",low:"Low",medium:"Medium",high:"High",closeDialog:"Close dialog",closeAlert:"Close alert",toggleHotkeys:"Toggle Hotkeys",siteInformation:"Site information",footerNavigation:"Footer navigation",viewFairnessInformation:"View fairness information",share:"Share",id:"ID",timestamp:"Time",space:"SPACE",betAmount:"Bet Amount",loadMore:"Load More",thisFieldIsRequired:"This field is required",toggleSwitch:"Toggle switch",rangeSlider:"Range slider",gameInfo:"Game Info",copied:"Copied",infoIntro:"Need more information? Contact our support team to learn more about how our games work."},games:{dice:{title:"Dice",rollOver:"Roll Over",rollUnder:"Roll Under",target:"Target",roll:"Roll",result:"Result"},keno:{title:"Keno",selectNumbers:"Select Numbers",draw:"Draw",numbers:"Numbers",hits:"Hits",pick:"Pick",autoPick:"Auto Pick",clearTable:"Clear",select1to10Tiles:"Select 1-10 Tiles",kenoNumber:"Keno number",kenoGameGrid:"Keno Game Grid",selectTileToAutobet:"Please select at least one tile",selectAtLeastOneTile:"Please select at least one tile"},limbo:{title:"Limbo",target:"Target",crashed:"Crashed",cashout:"Cash Out",targetMultiplier:"Multiplier",multiplierError:"Must be at least 1.01",winChanceError:"Must be between 0.000099 and 99.9999"},mines:{title:"Mines",mines:"Mines",gems:"Gems",reveal:"Reveal",cashout:"Cash Out",selectRandomTile:"Select Random Tile",nextGem:"Next Gem",mine:"Mine",gem:"Gem",tile:"Tile",unrevealed:"Unrevealed",selectTileToAutobet:"Please select at least one tile to autobet"}},autobet:{title:"Autobet",numberOfBets:"Number of Bets",onWin:"On Win",onLoss:"On Loss",stopOnWin:"Stop on Win",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",increase:"Increase",decrease:"Decrease",reset:"Reset",baseAmount:"Base Amount",games5:"5 games",games10:"10 games",games25:"25 games",games50:"50 games",games100:"100 games",infinite:"Infinite",startAutobet:"Start Autobet",stopAutobet:"Stop Autobet",games:"Games"},modals:{betResult:"Bet Result",fairnessAndHistory:"Fairness and History",gameArea:"Game Area",gameControls:"Game Controls",gameInfo:"Game Info"},alerts:{betPlaced:"Bet placed successfully",betCancelled:"Bet cancelled",insufficientBalance:"Insufficient balance",connectionError:"Connection error",gameError:"There was an error processing your bet. Please try again.",failedToLoadBetData:"Failed to load bet data",betDetailsCopied:"Bet details copied to clipboard!",betLimitReached:"Bet limit reached",failedToShareBetDetails:"Failed to share bet details",notEnoughBalance:"Not enough balance",errorProcessingBet:"There was an error processing your bet. Please try again.",autobetStopped:"Stopped autobet mode",autobetStarted:"Started autobet mode",betAmountBelowMinBet:"Bet amount is below minimum bet",betAmountAboveMaxBet:"Bet amount is above maximum bet"},fairness:{activeClientSeed:"Active Client Seed",enterClientSeed:"Enter Client Seed",saveClientSeed:"Save Client Seed",publicKey:"Active Public Key",request:"Request",proof:"Proof",randomness:"Randomness",noBettingHistory:"No betting history",verifyOutcome:"Verify Outcome",enterPublicKey:"Enter Public Key",enterRequest:"Enter Request",enterProof:"Enter Proof",enterRandomness:"Enter Randomness",outcomeCalculationInfo:"This game uses a provably fair algorithm that ensures the outcome is fair and transparent.",learnMore:"Learn More",info:{p1:"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome.",p2:"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety.",p3:"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time.",p4:"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.",moreInfo:"Need more information? Contact our support team to learn more about how our games work."},newClientSeed:"New Client Seed",pendingInputs:"Pending Inputs",provableFairnessVerified:"Provable Fairness Verified",provableFairnessUnverified:"Provable Fairness Unverified",viewOutcome:"View Outcome",invalidGame:"Invalid game type provided.",outcomeVerified:"The outcome of this round has been verified with our public key and is provably fair.",outcomeNotVerified:"The outcome of this game could not be verified. Double check you have entered the correct information and try again.",verified:"Verified"},share:{betResultTitle:"Bet Result",betResultText:"Check out my bet result!"},errors:{dice:{multiplierRange:"Must be between 1.0102 and 9900",winChanceRange:"Must be between 0.01 and 98"}},accessibility:{sliderValue:"{value} out of {max}"},gameInfo:{howItWorks:"How it works",tutorial:"Tutorial",payouts:"Payouts & odds",tips:"Tips",strategyTitle:"Strategy",dice:{title:"Dice",overview:"Set a target number and choose whether the roll will land under or over it. Moving the slider changes your win chance and multiplier—a higher chance lowers the multiplier, a lower chance increases it. Each round is one independent roll on the game’s scale (shown in-game).",how1:"Choose Roll Under or Roll Over.",how2:"Set your target number (or adjust Win Chance/Multiplier).",how3:"Enter your bet amount and press Place Bet.",how4:"We generate one random result (displayed on the 0–99.99 scale in-game).",how5:"You win if the result is in your chosen range: Under wins on numbers strictly less than the target; Over wins on numbers strictly greater than the target.",how6:"Your payout is bet × the shown multiplier, which updates as you move the slider.",strategyTip:"Pick your volatility. A lower win chance (tight range) yields bigger multipliers but rarer hits. A higher win chance (wide range) yields smaller multipliers but more frequent wins. Over/Under is symmetric—choose whichever side suits your target and session goals. Size your bets to your bankroll for steadier swings.",provablyFair:"Our verifiable randomness system generates every Dice roll. After each round, you can view the inputs and proof, verify the roll with our public key, and reproduce the same result."},keno:{title:"Keno",overview:"Keno is a quick and simple game: pick your lucky numbers and try to match the draw. You can choose 1–10 numbers from 1–40, and we then draw 10 numbers. The more of your picks that hit, the higher your payout. Fewer picks = higher multipliers per hit; more picks = more ways to hit something each round.",how1:"Pick 1–10 numbers (“spots”) on the 1–40 board.",how2:"Set your bet amount and place your bet.",how3:"We draw 10 winning numbers; your matches are highlighted.",how4:"Payouts depend on how many spots you selected and how many hits you got—check the paytable (it updates when you change your number of spots).",how5:"You can never hit more numbers than you selected, and the maximum selection is 10.",strategyTip:"Choose your volatility. Picking fewer spots (1–3) means rarer wins but much bigger multipliers. More spots (7–10) give more frequent hits but smaller average returns per hit. A middle range (4–6) balances hit rate and payout. Adjust your bet size to match your risk preference and bankroll.",provablyFair:"Our verifiable randomness system generates every Keno draw. After each round, you can view the inputs and proof, verify the draw with our public key, and reproduce the same result."},mines:{title:"Mines",overview:"Mines is about picking safe tiles and deciding when to cash out. Before the round starts, choose how many mines will be hidden on the board. Each safe tile you reveal increases your multiplier. Hit a mine, and the round ends with no payout. More mines raise the risk but also the potential reward per successful reveal.",how1:"Choose the number of mines for this round.",how2:"Set your bet amount and press Place Bet.",how3:"Click tiles to reveal them: a safe tile increases your multiplier; a mine ends the round.",how4:"You can press Cash Out at any time to lock in your current multiplier.",how5:"Your payout is bet × the current multiplier when you Cash Out.",how6:"The round ends when you Cash Out or when a mine is revealed.",strategyTip:"Pick your volatility. Fewer mines = safer reveals and smaller multipliers per step. More mines = riskier reveals with bigger multipliers. Set a target or use a stop-loss to manage swings. Consistent bet sizing and disciplined cash outs help keep variance in check.",provablyFair:"Our verifiable randomness system generates each board’s hidden mine layout. After every round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."},limbo:{title:"Limbo",overview:"Pick a target multiplier and try to hit it. In Limbo, you set your desired payout, and the game draws a single random outcome multiplier. If the outcome is at least your target, you win. If it’s lower, you lose. A higher chance lowers the multiplier; a lower chance increases it. Each round resolves instantly.",how1:"Set your target multiplier (or adjust Win Chance/Multiplier).",how2:"Enter your bet amount and press Place Bet.",how3:"We generate one random outcome multiplier.",how4:"You win if the outcome is greater than or equal to your target.",how5:"Your payout is bet × your target multiplier; otherwise, you lose your bet.",strategyTip:"Choose your volatility. Lower targets win more often but pay less, while higher targets hit rarely but pay much more. Consider a fixed target per session or mix in occasional long shots, and size bets consistently to manage variance.",provablyFair:"Our verifiable randomness system generates every Limbo outcome. After each round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."}}}});var ut=Uo((Rc,fs)=>{fs.exports={accessibility:{betPlacedAnnouncement:"Apuesta realizada con éxito",gameInProgress:"Juego en progreso",languageChanged:"Idioma cambiado a {language}"},alerts:{autobetStarted:"Se inició el modo de apuesta automática",autobetStopped:"Se detuvo el modo de apuesta automática",betAmountAboveMaxBet:"El monto de la apuesta es superior a la apuesta máxima",betAmountBelowMinBet:"El monto de la apuesta es inferior a la apuesta mínima",betCancelled:"Apuesta cancelada",betDetailsCopied:"¡Detalles de la apuesta copiados al portapapeles!",betLimitReached:"Límite de apuesta alcanzado",betPlaced:"Apuesta realizada con éxito",connectionError:"Error de conexión",errorProcessingBet:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",failedToLoadBetData:"No se pudieron cargar los datos de la apuesta",failedToShareBetDetails:"No se pudieron compartir los detalles de la apuesta",gameError:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"No hay suficiente equilibrio"},autobet:{baseAmount:"Monto base",decrease:"Disminuir",games:"Juegos",games10:"10 juegos",games100:"100 juegos",games25:"25 juegos",games5:"5 juegos",games50:"50 juegos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apuestas",onLoss:"Sobre la pérdida",onWin:"En Win",reset:"Reiniciar",startAutobet:"Iniciar apuesta automática",stopAutobet:"Detener la apuesta automática",stopOnLoss:"Detener la pérdida",stopOnProfit:"Detener las ganancias",stopOnWin:"Detenerse en Win",title:"Apuesta automática"},common:{amount:"Cantidad",animation:"Animación",auto:"Auto",back:"Atrás",balance:"Balance",bet:"Monto de la apuesta",betAmount:"Monto de la apuesta",cancel:"Cancelar",cashOut:"Retiro de efectivo",change:"Cambiar",classic:"Clásico",close:"Cerca",closeAlert:"Cerrar alerta",closeDialog:"Cerrar diálogo",confirm:"Confirmar",copy:"Copiar",error:"Error",fairness:"Justicia",footerNavigation:"Navegación de pie de página",high:"Alto",history:"Historia",hotkeys:"Teclas de acceso rápido",id:"IDENTIFICACIÓN",instantBet:"Apuesta instantánea",loading:"Cargando...",loadMore:"Cargar más",lobby:"Volver al vestíbulo",loss:"Pérdida",low:"Bajo",manual:"Manual",medium:"Medio",multiplier:"Multiplicador",next:"Próximo",odds:"Impares",payout:"Pago",placeBet:"Realizar apuesta",previous:"Anterior",profit:"Ganancia",profitOnWin:"Ganancias al ganar",provablyFair:"Demostrablemente justo",rangeSlider:"Control deslizante de rango",risk:"Riesgo",settings:"Ajustes",share:"Compartir",siteInformation:"Información del sitio",space:"ESPACIO",start:"Comenzar",stop:"Detener",success:"Éxito",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo es obligatorio",timestamp:"Tiempo",toggleHotkeys:"Alternar teclas de acceso rápido",toggleSwitch:"Interruptor de palanca",viewFairnessInformation:"Ver información de equidad",volume:"Volumen",win:"Ganar",winChance:"Oportunidad de ganar"},errors:{connection:"Error de conexión",dice:{multiplierRange:"Debe estar entre 1.0102 y 9900",winChanceRange:"Debe estar entre 0,01 y 98"},game:"Se produjo un error en el juego",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"El multiplicador debe ser al menos 1,01",winChanceRange:"La probabilidad de ganar debe estar entre 0,000099 y 99,9999"}},fairness:{activeClientSeed:"Semilla de cliente activa",enterClientSeed:"Introducir semilla de cliente",enterProof:"Introducir prueba",enterPublicKey:"Introducir clave pública",enterRandomness:"Entra la aleatoriedad",enterRequest:"Introducir solicitud",invalidGame:"Tipo de juego proporcionado no válido.",noBettingHistory:"Sin historial de apuestas",outcomeCalculationInfo:"El resultado de cada juego se calcula utilizando un valor aleatorio como entrada.",outcomeNotVerified:"No se pudo verificar el resultado de este juego.",outcomeVerified:"El resultado de este juego ha sido verificado y es demostrablemente justo.",pendingInputs:"Entradas pendientes",proof:"Prueba",provableFairnessUnverified:"Justicia demostrable no verificada",provableFairnessVerified:"Justicia demostrable verificada",publicKey:"Clave pública",randomness:"Aleatoriedad",request:"Pedido",saveClientSeed:"Guardar semilla de cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rollo",rollOver:"Dese la vuelta",rollUnder:"Rodar por debajo",target:"Objetivo",title:"Dados"},keno:{autoPick:"Selección automática",clearTable:"Claro",draw:"Dibujar",hits:"Éxitos",kenoGameGrid:"Cuadrícula del juego Keno",kenoNumber:"Número de Keno",numbers:"Números",pick:"Elegir",select1to10Tiles:"Seleccione de 1 a 10 fichas",selectAtLeastOneTile:"Por favor seleccione al menos un mosaico",selectNumbers:"Seleccionar números",selectTileToAutobet:"Por favor seleccione al menos un mosaico",title:"Keno"},limbo:{cashout:"Retiro de efectivo",crashed:"Se estrelló",target:"Objetivo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Retiro de efectivo",gem:"Joya",gems:"Gemas",mine:"Mío",mines:"Minas",nextGem:"Próxima joya",reveal:"Revelar",selectRandomTile:"Seleccionar mosaico aleatorio",selectTileToAutobet:"Seleccione al menos una ficha para apostar automáticamente",tile:"Teja",title:"Minas",unrevealed:"No revelado"}},modals:{betResult:"Resultado de la apuesta",fairnessAndHistory:"Justicia e historia",gameArea:"Área de juego",gameControls:"Controles del juego"},outcomes:{draw:"Dibujar",loss:"Pérdida",win:"Ganar"},share:{betResultText:"¡Mira el resultado de mi apuesta!",betResultTitle:"Resultado de la apuesta"}}});var ht=Uo((Uc,ps)=>{ps.exports={accessibility:{betPlacedAnnouncement:"Veto asetettu onnistuneesti",gameInProgress:"Peli käynnissä",languageChanged:"Kieli vaihdettu muotoon {language}"},alerts:{autobetStarted:"Automaattivedonlyöntitila käynnistetty",autobetStopped:"Automaattivedonlyöntitila pysäytetty",betAmountAboveMaxBet:"Panossumma on suurempi kuin maksimipanos",betAmountBelowMinBet:"Panos on alle minimipanoksen",betCancelled:"Veto peruttu",betDetailsCopied:"Vedon tiedot kopioitu leikepöydälle!",betLimitReached:"Panosraja saavutettu",betPlaced:"Veto asetettu onnistuneesti",connectionError:"Yhteysvirhe",errorProcessingBet:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",failedToLoadBetData:"Vedonlyöntitietojen lataus epäonnistui",failedToShareBetDetails:"Vedon tietojen jakaminen epäonnistui",gameError:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",insufficientBalance:"Riittämätön saldo",notEnoughBalance:"Ei tarpeeksi tasapainoa"},autobet:{baseAmount:"Perusmäärä",decrease:"Vähennä",games:"Pelit",games10:"10 peliä",games100:"100 peliä",games25:"25 peliä",games5:"5 peliä",games50:"50 peliä",increase:"Lisätä",infinite:"Ääretön",numberOfBets:"Vetojen määrä",onLoss:"Tappiossa",onWin:"Voitossa",reset:"Nollaa",startAutobet:"Aloita automaattiveto",stopAutobet:"Pysäytä automaattinen veto",stopOnLoss:"Stop on Loss",stopOnProfit:"Pysäytä voitto",stopOnWin:"Pysähdy voitossa",title:"Automaattiveto"},common:{amount:"Määrä",animation:"Animaatio",auto:"Auto",back:"Takaisin",balance:"Saldo",bet:"Panossumma",betAmount:"Panossumma",cancel:"Peruuttaa",cashOut:"Käteisnosto",change:"Muuttaa",classic:"Klassinen",close:"Lähellä",closeAlert:"Sulje hälytys",closeDialog:"Sulje valintaikkuna",confirm:"Vahvistaa",copy:"Kopioida",error:"Virhe",fairness:"Oikeudenmukaisuus",footerNavigation:"Alatunnisteen navigointi",high:"Korkea",history:"Historia",hotkeys:"Pikanäppäimet",id:"Henkilöllisyystodistus",instantBet:"Pikaveto",loading:"Ladataan...",loadMore:"Lataa lisää",lobby:"Takaisin aulaan",loss:"Menetys",low:"Matala",manual:"Manuaalinen",medium:"Keskikokoinen",multiplier:"Kerroin",next:"Seuraava",odds:"Kertoimet",payout:"Maksu",placeBet:"Aseta veto",previous:"Edellinen",profit:"Voitto",profitOnWin:"Voitto voitosta",provablyFair:"Todistettavasti reilu",rangeSlider:"Alueen liukusäädin",risk:"Riski",settings:"Asetukset",share:"Jakaa",siteInformation:"Sivuston tiedot",space:"AVARUUS",start:"Aloita",stop:"Stop",success:"Menestys",targetMultiplier:"Kerroin",thisFieldIsRequired:"Tämä kenttä on pakollinen",timestamp:"Aika",toggleHotkeys:"Pikanäppäimet päälle/pois",toggleSwitch:"Kytkin",viewFairnessInformation:"Näytä oikeudenmukaisuustiedot",volume:"Äänenvoimakkuus",win:"Voittaa",winChance:"Voita mahdollisuus"},errors:{connection:"Yhteysvirhe",dice:{multiplierRange:"Täytyy olla välillä 1,0102 ja 9900",winChanceRange:"Täytyy olla välillä 0,01–98"},game:"Pelivirhe tapahtui",insufficientBalance:"Riittämätön saldo",limbo:{multiplierRange:"Kertoimen on oltava vähintään 1,01",winChanceRange:"Voittomahdollisuuden on oltava välillä 0,000099 ja 99,9999"}},fairness:{activeClientSeed:"Aktiivisen asiakkaan siemen",enterClientSeed:"Syötä asiakkaan siemen",enterProof:"Syötä todiste",enterPublicKey:"Syötä julkinen avain",enterRandomness:"Syötä satunnaisuus",enterRequest:"Syötä pyyntö",invalidGame:"Annettu pelityyppi on virheellinen.",noBettingHistory:"Ei vedonlyöntihistoriaa",outcomeCalculationInfo:"Kunkin pelin tulos lasketaan käyttämällä syötteenä satunnaista arvoa.",outcomeNotVerified:"Tämän pelin lopputulosta ei voitu vahvistaa",outcomeVerified:"Tämän pelin lopputulos on vahvistettu ja todistettavasti oikeudenmukainen",pendingInputs:"Odottavat syötteet",proof:"Todiste",provableFairnessUnverified:"Todistettava oikeudenmukaisuus Vahvistamaton",provableFairnessVerified:"Todistettava oikeudenmukaisuus vahvistettu",publicKey:"Julkinen avain",randomness:"Satunnaisuus",request:"Pyytää",saveClientSeed:"Tallenna asiakkaan siemen",verified:"Vahvistettu",verifyOutcome:"Varmista tulos",viewOutcome:"Näytä tulos"},games:{dice:{result:"Tulos",roll:"Rulla",rollOver:"Kaatuminen",rollUnder:"Rullaa alle",target:"Kohde",title:"Nopat"},keno:{autoPick:"Automaattinen valinta",clearTable:"Tyhjennä",draw:"Piirrä",hits:"Osumia",kenoGameGrid:"Keno-peliruudukko",kenoNumber:"Keno-numero",numbers:"Numerot",pick:"Valita",select1to10Tiles:"Valitse 1–10 laattaa",selectAtLeastOneTile:"Valitse vähintään yksi laatta",selectNumbers:"Valitse numerot",selectTileToAutobet:"Valitse vähintään yksi laatta",title:"Keno"},limbo:{cashout:"Käteisnosto",crashed:"Kaatui",target:"Kohde",targetMultiplier:"Kerroin",title:"Limbo"},mines:{cashout:"Käteisnosto",gem:"Helmi",gems:"Jalokivet",mine:"Minun",mines:"Kaivokset",nextGem:"Seuraava helmi",reveal:"Paljastaa",selectRandomTile:"Valitse satunnainen laatta",selectTileToAutobet:"Valitse vähintään yksi ruutu automaattista vetoa varten",tile:"Laatta",title:"Kaivokset",unrevealed:"Paljastumaton"}},modals:{betResult:"Vedon tulos",fairnessAndHistory:"Oikeudenmukaisuus ja historia",gameArea:"Pelialue",gameControls:"Pelin ohjaimet"},outcomes:{draw:"Piirrä",loss:"Menetys",win:"Voittaa"},share:{betResultText:"Katso vedon tulokseni!",betResultTitle:"Vedon tulos"}}});var ft=Uo((Wc,gs)=>{gs.exports={accessibility:{betPlacedAnnouncement:"Pari placé avec succès",gameInProgress:"Jeu en cours",languageChanged:"Langue modifiée en {language}"},alerts:{autobetStarted:"Mode de pari automatique démarré",autobetStopped:"Mode de pari automatique arrêté",betAmountAboveMaxBet:"Le montant de la mise est supérieur à la mise maximale",betAmountBelowMinBet:"Le montant de la mise est inférieur à la mise minimale",betCancelled:"Pari annulé",betDetailsCopied:"Détails du pari copiés dans le presse-papiers !",betLimitReached:"Limite de mise atteinte",betPlaced:"Pari placé avec succès",connectionError:"Erreur de connexion",errorProcessingBet:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",failedToLoadBetData:"Échec du chargement des données de pari",failedToShareBetDetails:"Impossible de partager les détails du pari",gameError:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",insufficientBalance:"Solde insuffisant",notEnoughBalance:"Pas assez d'équilibre"},autobet:{baseAmount:"Montant de base",decrease:"Diminuer",games:"Jeux",games10:"10 jeux",games100:"100 jeux",games25:"25 jeux",games5:"5 jeux",games50:"50 jeux",increase:"Augmenter",infinite:"Infini",numberOfBets:"Nombre de paris",onLoss:"Sur la perte",onWin:"Sur Win",reset:"Réinitialiser",startAutobet:"Démarrer Autobet",stopAutobet:"Arrêter Autobet",stopOnLoss:"Arrêtez la perte",stopOnProfit:"Arrêtez le profit",stopOnWin:"Arrêtez-vous sur Win",title:"Autobet"},common:{amount:"Montant",animation:"Animation",auto:"Auto",back:"Dos",balance:"Équilibre",bet:"Montant de la mise",betAmount:"Montant de la mise",cancel:"Annuler",cashOut:"Encaissement",change:"Changement",classic:"Classique",close:"Fermer",closeAlert:"Fermer l'alerte",closeDialog:"Fermer la boîte de dialogue",confirm:"Confirmer",copy:"Copie",error:"Erreur",fairness:"Justice",footerNavigation:"Navigation de pied de page",high:"Haut",history:"Histoire",hotkeys:"Raccourcis clavier",id:"IDENTIFIANT",instantBet:"Pari instantané",loading:"Chargement...",loadMore:"Charger plus",lobby:"Retour au hall",loss:"Perte",low:"Faible",manual:"Manuel",medium:"Moyen",multiplier:"Multiplicateur",next:"Suivant",odds:"Chances",payout:"Paiement",placeBet:"Placer un pari",previous:"Précédent",profit:"Profit",profitOnWin:"Profit sur victoire",provablyFair:"Prouvablement équitable",rangeSlider:"Curseur de plage",risk:"Risque",settings:"Paramètres",share:"Partager",siteInformation:"Informations sur le site",space:"ESPACE",start:"Commencer",stop:"Arrêt",success:"Succès",targetMultiplier:"Multiplicateur",thisFieldIsRequired:"Ce champ est obligatoire",timestamp:"Temps",toggleHotkeys:"Basculer les raccourcis clavier",toggleSwitch:"Interrupteur à bascule",viewFairnessInformation:"Afficher les informations sur l'équité",volume:"Volume",win:"Gagner",winChance:"Chance de gagner"},errors:{connection:"Erreur de connexion",dice:{multiplierRange:"Doit être compris entre 1,0102 et 9900",winChanceRange:"Doit être compris entre 0,01 et 98"},game:"Une erreur de jeu s'est produite",insufficientBalance:"Solde insuffisant",limbo:{multiplierRange:"Le multiplicateur doit être d'au moins 1,01",winChanceRange:"Les chances de gagner doivent être comprises entre 0,000099 et 99,9999"}},fairness:{activeClientSeed:"Graine de client active",enterClientSeed:"Entrez Client Seed",enterProof:"Entrez la preuve",enterPublicKey:"Entrez la clé publique",enterRandomness:"Entrez dans le hasard",enterRequest:"Entrer la demande",invalidGame:"Type de jeu non valide fourni.",noBettingHistory:"Aucun historique de paris",outcomeCalculationInfo:"Le résultat de chaque jeu est calculé à l’aide d’une valeur aléatoire en entrée.",outcomeNotVerified:"Le résultat de ce match n'a pas pu être vérifié",outcomeVerified:"Le résultat de ce jeu a été vérifié et est prouvé équitable",pendingInputs:"Entrées en attente",proof:"Preuve",provableFairnessUnverified:"Équité prouvable non vérifiée",provableFairnessVerified:"Équité prouvable vérifiée",publicKey:"Clé publique",randomness:"caractère aléatoire",request:"Demande",saveClientSeed:"Enregistrer la graine du client",verified:"Vérifié",verifyOutcome:"Vérifier le résultat",viewOutcome:"Voir le résultat"},games:{dice:{result:"Résultat",roll:"Rouler",rollOver:"Rouler sur",rollUnder:"Rouler sous",target:"Cible",title:"dés"},keno:{autoPick:"Sélection automatique",clearTable:"Clair",draw:"Dessiner",hits:"Coups",kenoGameGrid:"Grille de jeu Keno",kenoNumber:"Numéro de Keno",numbers:"Nombres",pick:"Prendre",select1to10Tiles:"Sélectionnez 1 à 10 tuiles",selectAtLeastOneTile:"Veuillez sélectionner au moins une tuile",selectNumbers:"Sélectionner des numéros",selectTileToAutobet:"Veuillez sélectionner au moins une tuile",title:"Kéno"},limbo:{cashout:"Encaissement",crashed:"Crashé",target:"Cible",targetMultiplier:"Multiplicateur",title:"Limbo"},mines:{cashout:"Encaissement",gem:"Gemme",gems:"Gemmes",mine:"Le mien",mines:"Mines",nextGem:"Prochain joyau",reveal:"Révéler",selectRandomTile:"Sélectionner une tuile aléatoire",selectTileToAutobet:"Veuillez sélectionner au moins une tuile pour effectuer un pari automatique",tile:"Tuile",title:"Mines",unrevealed:"Non révélé"}},modals:{betResult:"Résultat du pari",fairnessAndHistory:"Équité et histoire",gameArea:"Zone de jeu",gameControls:"Commandes du jeu"},outcomes:{draw:"Dessiner",loss:"Perte",win:"Gagner"},share:{betResultText:"Découvrez le résultat de mon pari !",betResultTitle:"Résultat du pari"}}});var pt=Uo((Vc,bs)=>{bs.exports={accessibility:{betPlacedAnnouncement:"दांव सफलतापूर्वक लगाया गया",gameInProgress:"गेम चालू है",languageChanged:"भाषा बदलकर {language} कर दी गई"},alerts:{autobetStarted:"ऑटोबेट मोड शुरू किया गया",autobetStopped:"ऑटोबेट मोड बंद कर दिया गया",betAmountAboveMaxBet:"दांव की राशि अधिकतम दांव से अधिक है",betAmountBelowMinBet:"दांव की राशि न्यूनतम दांव से कम है",betCancelled:"शर्त रद्द",betDetailsCopied:"शर्त विवरण क्लिपबोर्ड पर कॉपी किया गया!",betLimitReached:"दांव की सीमा पूरी हो गई",betPlaced:"दांव सफलतापूर्वक लगाया गया",connectionError:"संपर्क त्रुटि",errorProcessingBet:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",failedToLoadBetData:"दांव डेटा लोड करने में विफल",failedToShareBetDetails:"शर्त विवरण साझा करने में विफल",gameError:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",insufficientBalance:"अपर्याप्त शेषराशि",notEnoughBalance:"पर्याप्त संतुलन नहीं"},autobet:{baseAmount:"आधार राशि",decrease:"घटाना",games:"खेल",games10:"10 खेल",games100:"100 खेल",games25:"25 खेल",games5:"5 खेल",games50:"50 खेल",increase:"बढ़ोतरी",infinite:"अनंत",numberOfBets:"दांवों की संख्या",onLoss:"हानि पर",onWin:"जीत पर",reset:"रीसेट करें",startAutobet:"ऑटोबेट शुरू करें",stopAutobet:"ऑटोबेट रोकें",stopOnLoss:"हानि पर रोक",stopOnProfit:"लाभ पर रोक",stopOnWin:"जीत पर रोक",title:"ऑटोबेट"},common:{amount:"मात्रा",animation:"एनिमेशन",auto:"ऑटो",back:"पीछे",balance:"संतुलन",bet:"दांव राशि",betAmount:"दांव राशि",cancel:"रद्द करना",cashOut:"नकदी निकलना",change:"परिवर्तन",classic:"क्लासिक",close:"बंद करना",closeAlert:"अलर्ट बंद करें",closeDialog:"संवाद बंद करें",confirm:"पुष्टि करना",copy:"प्रतिलिपि",error:"गलती",fairness:"फेयरनेस",footerNavigation:"पाद नेविगेशन",high:"उच्च",history:"इतिहास",hotkeys:"हॉटकी",id:"पहचान",instantBet:"तत्काल शर्त",loading:"लोड हो रहा है...",loadMore:"और लोड करें",lobby:"लॉबी पर वापस जाएँ",loss:"नुकसान",low:"कम",manual:"नियमावली",medium:"मध्यम",multiplier:"गुणक",next:"अगला",odds:"कठिनाइयाँ",payout:"भुगतान",placeBet:"दांव लगाओ",previous:"पहले का",profit:"लाभ",profitOnWin:"जीत पर लाभ",provablyFair:"सिद्धतः निष्पक्ष",rangeSlider:"रेंज स्लाइडर",risk:"जोखिम",settings:"सेटिंग्स",share:"शेयर करना",siteInformation:"साइट जानकारी",space:"अंतरिक्ष",start:"शुरू",stop:"रुकना",success:"सफलता",targetMultiplier:"गुणक",thisFieldIsRequired:"यह फ़ील्ड आवश्यक है",timestamp:"समय",toggleHotkeys:"टॉगल हॉटकीज़",toggleSwitch:"गिल्ली टहनी",viewFairnessInformation:"निष्पक्षता जानकारी देखें",volume:"आयतन",win:"जीतना",winChance:"जीत का मौका"},errors:{connection:"संपर्क त्रुटि",dice:{multiplierRange:"1.0102 और 9900 के बीच होना चाहिए",winChanceRange:"0.01 और 98 के बीच होना चाहिए"},game:"गेम में त्रुटि हुई",insufficientBalance:"अपर्याप्त शेषराशि",limbo:{multiplierRange:"गुणक कम से कम 1.01 होना चाहिए",winChanceRange:"जीत की संभावना 0.000099 और 99.9999 के बीच होनी चाहिए"}},fairness:{activeClientSeed:"सक्रिय क्लाइंट बीज",enterClientSeed:"क्लाइंट सीड दर्ज करें",enterProof:"प्रमाण दर्ज करें",enterPublicKey:"सार्वजनिक कुंजी दर्ज करें",enterRandomness:"यादृच्छिकता दर्ज करें",enterRequest:"अनुरोध दर्ज करें",invalidGame:"अमान्य खेल प्रकार प्रदान किया गया.",noBettingHistory:"कोई सट्टेबाजी इतिहास नहीं",outcomeCalculationInfo:"प्रत्येक खेल का परिणाम इनपुट के रूप में एक यादृच्छिक मान का उपयोग करके गणना किया जाता है।",outcomeNotVerified:"इस खेल का परिणाम सत्यापित नहीं किया जा सका",outcomeVerified:"इस खेल का परिणाम सत्यापित हो चुका है और यह निष्पक्ष साबित हो चुका है",pendingInputs:"लंबित इनपुट",proof:"सबूत",provableFairnessUnverified:"प्रमाणित निष्पक्षता असत्यापित",provableFairnessVerified:"प्रमाणित निष्पक्षता सत्यापित",publicKey:"सार्वजनिक कुंजी",randomness:"अनियमितता",request:"अनुरोध",saveClientSeed:"क्लाइंट सीड सहेजें",verified:"सत्यापित",verifyOutcome:"परिणाम सत्यापित करें",viewOutcome:"परिणाम देखें"},games:{dice:{result:"परिणाम",roll:"रोल",rollOver:"रोल ओवर",rollUnder:"रोल अंडर",target:"लक्ष्य",title:"पासा"},keno:{autoPick:"ऑटो पिक",clearTable:"स्पष्ट",draw:"खींचना",hits:"हिट्स",kenoGameGrid:"केनो गेम ग्रिड",kenoNumber:"केनो नंबर",numbers:"नंबर",pick:"चुनना",select1to10Tiles:"1-10 टाइल्स चुनें",selectAtLeastOneTile:"कृपया कम से कम एक टाइल चुनें",selectNumbers:"नंबर चुनें",selectTileToAutobet:"कृपया कम से कम एक टाइल चुनें",title:"केनो"},limbo:{cashout:"नकदी निकलना",crashed:"दुर्घटनाग्रस्त",target:"लक्ष्य",targetMultiplier:"गुणक",title:"लीम्बो"},mines:{cashout:"नकदी निकलना",gem:"रत्न",gems:"रत्न",mine:"मेरा",mines:"खानों",nextGem:"अगला रत्न",reveal:"प्रकट करना",selectRandomTile:"यादृच्छिक टाइल का चयन करें",selectTileToAutobet:"कृपया ऑटोबेट के लिए कम से कम एक टाइल चुनें",tile:"टाइल",title:"खानों",unrevealed:"अप्रकट"}},modals:{betResult:"दांव परिणाम",fairnessAndHistory:"निष्पक्षता और इतिहास",gameArea:"खेल क्षेत्र",gameControls:"खेल नियंत्रण"},outcomes:{draw:"खींचना",loss:"नुकसान",win:"जीतना"},share:{betResultText:"मेरी शर्त का परिणाम देखें!",betResultTitle:"दांव परिणाम"}}});var gt=Uo((Ic,ws)=>{ws.exports={accessibility:{betPlacedAnnouncement:"Taruhan berhasil ditempatkan",gameInProgress:"Permainan sedang berlangsung",languageChanged:"Bahasa diubah menjadi {language}"},alerts:{autobetStarted:"Memulai mode taruhan otomatis",autobetStopped:"Menghentikan mode taruhan otomatis",betAmountAboveMaxBet:"Jumlah taruhan di atas taruhan maksimum",betAmountBelowMinBet:"Jumlah taruhan di bawah taruhan minimum",betCancelled:"Taruhan dibatalkan",betDetailsCopied:"Rincian taruhan disalin ke papan klip!",betLimitReached:"Batas taruhan tercapai",betPlaced:"Taruhan berhasil ditempatkan",connectionError:"Kesalahan koneksi",errorProcessingBet:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",failedToLoadBetData:"Gagal memuat data taruhan",failedToShareBetDetails:"Gagal membagikan detail taruhan",gameError:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",insufficientBalance:"Saldo tidak mencukupi",notEnoughBalance:"Saldo tidak cukup"},autobet:{baseAmount:"Jumlah Dasar",decrease:"Mengurangi",games:"Pertandingan",games10:"10 permainan",games100:"100 permainan",games25:"25 permainan",games5:"5 permainan",games50:"50 permainan",increase:"Meningkatkan",infinite:"Tak terbatas",numberOfBets:"Jumlah Taruhan",onLoss:"Tentang Kehilangan",onWin:"Pada Kemenangan",reset:"Mengatur ulang",startAutobet:"Mulai Autobet",stopAutobet:"Hentikan Autobet",stopOnLoss:"Berhenti saat Kerugian",stopOnProfit:"Berhenti Saat Untung",stopOnWin:"Berhenti di Win",title:"Taruhan Otomatis"},common:{amount:"Jumlah",animation:"Animasi",auto:"Mobil",back:"Kembali",balance:"Keseimbangan",bet:"Jumlah Taruhan",betAmount:"Jumlah Taruhan",cancel:"Membatalkan",cashOut:"Penarikan Tunai",change:"Mengubah",classic:"Klasik",close:"Menutup",closeAlert:"Tutup peringatan",closeDialog:"Tutup dialog",confirm:"Mengonfirmasi",copy:"Menyalin",error:"Kesalahan",fairness:"Keadilan",footerNavigation:"Navigasi kaki",high:"Tinggi",history:"Sejarah",hotkeys:"Tombol pintas",id:"PENGENAL",instantBet:"Taruhan Instan",loading:"Memuat...",loadMore:"Muat Lebih Banyak",lobby:"Kembali ke Lobi",loss:"Kehilangan",low:"Rendah",manual:"Buku petunjuk",medium:"Sedang",multiplier:"Pengali",next:"Berikutnya",odds:"Kemungkinan",payout:"Pembayaran",placeBet:"Pasang Taruhan",previous:"Sebelumnya",profit:"Laba",profitOnWin:"Untung Saat Menang",provablyFair:"Terbukti Adil",rangeSlider:"Penggeser rentang",risk:"Mempertaruhkan",settings:"Pengaturan",share:"Membagikan",siteInformation:"Informasi situs",space:"RUANG ANGKASA",start:"Awal",stop:"Berhenti",success:"Kesuksesan",targetMultiplier:"Pengali",thisFieldIsRequired:"Bidang ini wajib diisi",timestamp:"Waktu",toggleHotkeys:"Beralih Tombol Pintasan",toggleSwitch:"Sakelar sakelar",viewFairnessInformation:"Lihat informasi keadilan",volume:"Volume",win:"Menang",winChance:"Kesempatan Menang"},errors:{connection:"Kesalahan koneksi",dice:{multiplierRange:"Harus antara 1.0102 dan 9900",winChanceRange:"Harus antara 0,01 dan 98"},game:"Terjadi kesalahan permainan",insufficientBalance:"Saldo tidak mencukupi",limbo:{multiplierRange:"Pengali harus minimal 1,01",winChanceRange:"Peluang menang harus antara 0,000099 dan 99,9999"}},fairness:{activeClientSeed:"Benih Klien Aktif",enterClientSeed:"Masukkan Benih Klien",enterProof:"Masukkan Bukti",enterPublicKey:"Masukkan Kunci Publik",enterRandomness:"Masuk Acak",enterRequest:"Masukkan Permintaan",invalidGame:"Jenis permainan yang diberikan tidak valid.",noBettingHistory:"Tidak ada riwayat taruhan",outcomeCalculationInfo:"Hasil setiap permainan dihitung menggunakan nilai acak sebagai masukan.",outcomeNotVerified:"Hasil pertandingan ini tidak dapat diverifikasi",outcomeVerified:"Hasil permainan ini telah diverifikasi dan terbukti adil",pendingInputs:"Masukan Tertunda",proof:"Bukti",provableFairnessUnverified:"Keadilan yang Terbukti Belum Diverifikasi",provableFairnessVerified:"Keadilan yang Terbukti dan Terverifikasi",publicKey:"Kunci Publik",randomness:"Keserampangan",request:"Meminta",saveClientSeed:"Simpan Benih Klien",verified:"Terverifikasi",verifyOutcome:"Verifikasi Hasil",viewOutcome:"Lihat Hasil"},games:{dice:{result:"Hasil",roll:"Gulungan",rollOver:"Berguling",rollUnder:"Gulung ke Bawah",target:"Target",title:"Dadu"},keno:{autoPick:"Pilih Otomatis",clearTable:"Jernih",draw:"Menggambar",hits:"Hits",kenoGameGrid:"Kisi Permainan Keno",kenoNumber:"Nomor Keno",numbers:"Angka",pick:"Memilih",select1to10Tiles:"Pilih 1-10 Ubin",selectAtLeastOneTile:"Silakan pilih setidaknya satu ubin",selectNumbers:"Pilih Angka",selectTileToAutobet:"Silakan pilih setidaknya satu ubin",title:"Permainan keno"},limbo:{cashout:"Penarikan Tunai",crashed:"Jatuh",target:"Target",targetMultiplier:"Pengali",title:"Limbo"},mines:{cashout:"Penarikan Tunai",gem:"Permata",gems:"Permata",mine:"Milikku",mines:"Tambang",nextGem:"Permata Berikutnya",reveal:"Mengungkap",selectRandomTile:"Pilih Ubin Acak",selectTileToAutobet:"Silakan pilih setidaknya satu ubin untuk taruhan otomatis",tile:"Ubin",title:"Tambang",unrevealed:"Belum terungkap"}},modals:{betResult:"Hasil Taruhan",fairnessAndHistory:"Keadilan dan Sejarah",gameArea:"Area Permainan",gameControls:"Kontrol Permainan"},outcomes:{draw:"Menggambar",loss:"Kehilangan",win:"Menang"},share:{betResultText:"Lihat hasil taruhan saya!",betResultTitle:"Hasil Taruhan"}}});var bt=Uo((qc,ms)=>{ms.exports={accessibility:{betPlacedAnnouncement:"賭けは成功しました",gameInProgress:"ゲーム進行中",languageChanged:"言語が{language}に変更されました"},alerts:{autobetStarted:"自動ベットモードを開始しました",autobetStopped:"自動ベットモードを停止しました",betAmountAboveMaxBet:"賭け金が最大賭け金を超えています",betAmountBelowMinBet:"賭け金が最低賭け金を下回っています",betCancelled:"賭けはキャンセルされました",betDetailsCopied:"賭けの詳細がクリップボードにコピーされました!",betLimitReached:"賭け金の上限に達しました",betPlaced:"賭けは成功しました",connectionError:"接続エラー",errorProcessingBet:"賭けの処理中にエラーが発生しました。もう一度お試しください。",failedToLoadBetData:"賭けデータの読み込みに失敗しました",failedToShareBetDetails:"賭けの詳細を共有できませんでした",gameError:"賭けの処理中にエラーが発生しました。もう一度お試しください。",insufficientBalance:"残高不足",notEnoughBalance:"残高が足りない"},autobet:{baseAmount:"基本金額",decrease:"減少",games:"ゲーム",games10:"10ゲーム",games100:"100ゲーム",games25:"25ゲーム",games5:"5ゲーム",games50:"50ゲーム",increase:"増加",infinite:"無限",numberOfBets:"賭けの数",onLoss:"損失について",onWin:"勝利時",reset:"リセット",startAutobet:"オートベットを始める",stopAutobet:"オートベットを停止",stopOnLoss:"損失でストップ",stopOnProfit:"利益でストップ",stopOnWin:"勝利で停止",title:"オートベット"},common:{amount:"額",animation:"アニメーション",auto:"オート",back:"戻る",balance:"バランス",bet:"賭け金額",betAmount:"賭け金額",cancel:"キャンセル",cashOut:"キャッシュアウト",change:"変化",classic:"クラシック",close:"近い",closeAlert:"アラートを閉じる",closeDialog:"ダイアログを閉じる",confirm:"確認する",copy:"コピー",error:"エラー",fairness:"公平性",footerNavigation:"フッターナビゲーション",high:"高い",history:"歴史",hotkeys:"ホットキー",id:"ID",instantBet:"インスタントベット",loading:"読み込み中...",loadMore:"もっと読み込む",lobby:"ロビーに戻る",loss:"損失",low:"低い",manual:"マニュアル",medium:"中くらい",multiplier:"乗数",next:"次",odds:"オッズ",payout:"支払い",placeBet:"ベットする",previous:"前の",profit:"利益",profitOnWin:"勝利で利益",provablyFair:"証明可能公平",rangeSlider:"範囲スライダー",risk:"リスク",settings:"設定",share:"共有",siteInformation:"サイト情報",space:"空間",start:"始める",stop:"停止",success:"成功",targetMultiplier:"乗数",thisFieldIsRequired:"この項目は必須です",timestamp:"時間",toggleHotkeys:"ホットキーを切り替える",toggleSwitch:"トグルスイッチ",viewFairnessInformation:"公平性情報を見る",volume:"音量",win:"勝つ",winChance:"勝利のチャンス"},errors:{connection:"接続エラー",dice:{multiplierRange:"1.0102から9900の間でなければなりません",winChanceRange:"0.01~98の間でなければなりません"},game:"ゲームエラーが発生しました",insufficientBalance:"残高不足",limbo:{multiplierRange:"乗数は少なくとも1.01である必要があります",winChanceRange:"勝利の確率は0.000099から99.9999の間でなければなりません"}},fairness:{activeClientSeed:"アクティブクライアントシード",enterClientSeed:"クライアントシードを入力",enterProof:"証明を入力",enterPublicKey:"公開鍵を入力",enterRandomness:"ランダム性を導入する",enterRequest:"リクエストを入力",invalidGame:"無効なゲームタイプが指定されました。",noBettingHistory:"賭け履歴なし",outcomeCalculationInfo:"各ゲームの結果は、ランダムな値を入力として使用して計算されます。",outcomeNotVerified:"この試合の結果は確認できなかった",outcomeVerified:"このゲームの結果は検証されており、公平であることが証明されています",pendingInputs:"保留中の入力",proof:"証拠",provableFairnessUnverified:"証明可能な公平性は検証されていない",provableFairnessVerified:"証明可能な公平性が検証済み",publicKey:"公開鍵",randomness:"ランダム性",request:"リクエスト",saveClientSeed:"クライアントシードを保存",verified:"検証済み",verifyOutcome:"結果を確認する",viewOutcome:"結果を見る"},games:{dice:{result:"結果",roll:"ロール",rollOver:"転がる",rollUnder:"ロールアンダー",target:"ターゲット",title:"サイコロ"},keno:{autoPick:"自動選択",clearTable:"クリア",draw:"描く",hits:"ヒット",kenoGameGrid:"キノゲームグリッド",kenoNumber:"キノ番号",numbers:"数字",pick:"選ぶ",select1to10Tiles:"1~10個のタイルを選択",selectAtLeastOneTile:"少なくとも1つのタイルを選択してください",selectNumbers:"番号を選択",selectTileToAutobet:"少なくとも1つのタイルを選択してください",title:"キノ"},limbo:{cashout:"キャッシュアウト",crashed:"墜落した",target:"ターゲット",targetMultiplier:"乗数",title:"リンボ"},mines:{cashout:"キャッシュアウト",gem:"宝石",gems:"宝石",mine:"私の",mines:"鉱山",nextGem:"次の宝石",reveal:"明らかにする",selectRandomTile:"ランダムタイルを選択",selectTileToAutobet:"自動ベットするには少なくとも1つのタイルを選択してください",tile:"タイル",title:"鉱山",unrevealed:"未公開"}},modals:{betResult:"賭けの結果",fairnessAndHistory:"公平性と歴史",gameArea:"ゲームエリア",gameControls:"ゲームコントロール"},outcomes:{draw:"描く",loss:"損失",win:"勝つ"},share:{betResultText:"私の賭けの結果を見てください!",betResultTitle:"賭けの結果"}}});var wt=Uo((Jc,vs)=>{vs.exports={accessibility:{betPlacedAnnouncement:"배팅이 성공적으로 이루어졌습니다",gameInProgress:"게임 진행 중",languageChanged:"언어가 {language}로 변경되었습니다."},alerts:{autobetStarted:"자동 베팅 모드 시작",autobetStopped:"자동 베팅 모드가 중지되었습니다",betAmountAboveMaxBet:"배팅 금액이 최대 배팅 금액보다 높습니다.",betAmountBelowMinBet:"배팅 금액이 최소 배팅 금액보다 낮습니다.",betCancelled:"베팅 취소됨",betDetailsCopied:"배팅 세부 정보가 클립보드에 복사되었습니다!",betLimitReached:"배팅 한도에 도달했습니다",betPlaced:"배팅이 성공적으로 이루어졌습니다",connectionError:"연결 오류",errorProcessingBet:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",failedToLoadBetData:"베팅 데이터를 불러오는 데 실패했습니다.",failedToShareBetDetails:"베팅 세부 정보를 공유하지 못했습니다.",gameError:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",insufficientBalance:"잔액이 부족합니다",notEnoughBalance:"잔액이 부족합니다"},autobet:{baseAmount:"기본 금액",decrease:"감소하다",games:"계략",games10:"10개의 게임",games100:"100개의 게임",games25:"25개의 게임",games5:"5개의 게임",games50:"50개의 게임",increase:"증가하다",infinite:"무한",numberOfBets:"베팅 수",onLoss:"손실에 대하여",onWin:"승리에 대하여",reset:"다시 놓기",startAutobet:"자동 베팅 시작",stopAutobet:"자동 베팅 중지",stopOnLoss:"손실 중지",stopOnProfit:"이익에 대한 중단",stopOnWin:"승리에 멈추다",title:"자동 베팅"},common:{amount:"양",animation:"생기",auto:"자동",back:"뒤쪽에",balance:"균형",bet:"배팅 금액",betAmount:"배팅 금액",cancel:"취소",cashOut:"현금 인출",change:"변화",classic:"권위 있는",close:"닫다",closeAlert:"알림 닫기",closeDialog:"대화 상자 닫기",confirm:"확인하다",copy:"복사",error:"오류",fairness:"공평",footerNavigation:"푸터 탐색",high:"높은",history:"역사",hotkeys:"단축키",id:"ID",instantBet:"즉시 베팅",loading:"로딩중...",loadMore:"더 보기",lobby:"로비로 돌아가기",loss:"손실",low:"낮은",manual:"수동",medium:"중간",multiplier:"승수",next:"다음",odds:"승산",payout:"지불금",placeBet:"배팅하기",previous:"이전의",profit:"이익",profitOnWin:"승리에 따른 이익",provablyFair:"공정성이 입증됨",rangeSlider:"범위 슬라이더",risk:"위험",settings:"설정",share:"공유하다",siteInformation:"사이트 정보",space:"공간",start:"시작",stop:"멈추다",success:"성공",targetMultiplier:"승수",thisFieldIsRequired:"이 필드는 필수입니다",timestamp:"시간",toggleHotkeys:"단축키 전환",toggleSwitch:"토글 스위치",viewFairnessInformation:"공정성 정보 보기",volume:"용량",win:"이기다",winChance:"승리 확률"},errors:{connection:"연결 오류",dice:{multiplierRange:"1.0102와 9900 사이여야 합니다.",winChanceRange:"0.01~98 사이여야 합니다."},game:"게임 오류가 발생했습니다",insufficientBalance:"잔액이 부족합니다",limbo:{multiplierRange:"승수는 최소 1.01이어야 합니다.",winChanceRange:"당첨 확률은 0.000099~99.9999 사이여야 합니다."}},fairness:{activeClientSeed:"활성 클라이언트 시드",enterClientSeed:"클라이언트 시드 입력",enterProof:"증거를 입력하세요",enterPublicKey:"공개 키 입력",enterRandomness:"무작위성을 입력하세요",enterRequest:"요청 입력",invalidGame:"잘못된 게임 유형이 제공되었습니다.",noBettingHistory:"베팅 내역 없음",outcomeCalculationInfo:"각 게임의 결과는 난수 값을 입력으로 사용하여 계산됩니다.",outcomeNotVerified:"이 게임의 결과는 확인할 수 없습니다.",outcomeVerified:"이 게임의 결과는 검증되었으며 공정성이 입증되었습니다.",pendingInputs:"보류 중인 입력",proof:"증거",provableFairnessUnverified:"입증 가능한 공정성 검증되지 않음",provableFairnessVerified:"증명 가능한 공정성 검증됨",publicKey:"공개 키",randomness:"무작위성",request:"요구",saveClientSeed:"클라이언트 시드 저장",verified:"확인됨",verifyOutcome:"결과 확인",viewOutcome:"결과 보기"},games:{dice:{result:"결과",roll:"연타",rollOver:"롤오버",rollUnder:"롤 언더",target:"목표",title:"주사위"},keno:{autoPick:"자동 선택",clearTable:"분명한",draw:"그리다",hits:"히트곡",kenoGameGrid:"케노 게임 그리드",kenoNumber:"케노 번호",numbers:"숫자",pick:"선택하다",select1to10Tiles:"1~10개 타일 선택",selectAtLeastOneTile:"최소한 하나의 타일을 선택해주세요",selectNumbers:"숫자 선택",selectTileToAutobet:"최소한 하나의 타일을 선택해주세요",title:"케노"},limbo:{cashout:"현금 인출",crashed:"추락했다",target:"목표",targetMultiplier:"승수",title:"림보"},mines:{cashout:"현금 인출",gem:"보석",gems:"보석",mine:"내 거",mines:"광산",nextGem:"다음 보석",reveal:"드러내다",selectRandomTile:"무작위 타일 선택",selectTileToAutobet:"자동 베팅을 위해 최소 하나의 타일을 선택하세요",tile:"타일",title:"광산",unrevealed:"공개되지 않은"}},modals:{betResult:"배팅 결과",fairnessAndHistory:"공정성과 역사",gameArea:"게임 구역",gameControls:"게임 컨트롤"},outcomes:{draw:"그리다",loss:"손실",win:"이기다"},share:{betResultText:"내 베팅 결과를 확인해 보세요!",betResultTitle:"배팅 결과"}}});var mt=Uo(($c,ks)=>{ks.exports={accessibility:{betPlacedAnnouncement:"Zakład postawiony pomyślnie",gameInProgress:"Gra w toku",languageChanged:"Zmieniono język na {language}"},alerts:{autobetStarted:"Uruchomiono tryb autozakładu",autobetStopped:"Zatrzymano tryb autozakładu",betAmountAboveMaxBet:"Kwota zakładu przekracza maksymalny zakład",betAmountBelowMinBet:"Kwota zakładu jest poniżej minimalnego zakładu",betCancelled:"Zakład anulowany",betDetailsCopied:"Szczegóły zakładu skopiowano do schowka!",betLimitReached:"Osiągnięto limit zakładów",betPlaced:"Zakład postawiony pomyślnie",connectionError:"Błąd połączenia",errorProcessingBet:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",failedToLoadBetData:"Nie udało się załadować danych zakładu",failedToShareBetDetails:"Nie udało się udostępnić szczegółów zakładu",gameError:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",insufficientBalance:"Niewystarczające saldo",notEnoughBalance:"Za mało równowagi"},autobet:{baseAmount:"Kwota bazowa",decrease:"Zmniejszenie",games:"Zawody sportowe",games10:"10 gier",games100:"100 gier",games25:"25 gier",games5:"5 gier",games50:"50 gier",increase:"Zwiększyć",infinite:"Nieskończony",numberOfBets:"Liczba zakładów",onLoss:"O stracie",onWin:"W zwycięstwie",reset:"Nastawić",startAutobet:"Uruchom autozakład",stopAutobet:"Zatrzymaj autozakład",stopOnLoss:"Zatrzymaj stratę",stopOnProfit:"Zatrzymaj zysk",stopOnWin:"Zatrzymaj się na Win",title:"Autozakład"},common:{amount:"Kwota",animation:"Ożywienie",auto:"Automatyczny",back:"Z powrotem",balance:"Balansować",bet:"Kwota zakładu",betAmount:"Kwota zakładu",cancel:"Anulować",cashOut:"Wypłata gotówki",change:"Zmiana",classic:"Klasyczny",close:"Zamknąć",closeAlert:"Zamknij alert",closeDialog:"Zamknij okno dialogowe",confirm:"Potwierdzać",copy:"Kopia",error:"Błąd",fairness:"Uczciwość",footerNavigation:"Nawigacja stopki",high:"Wysoki",history:"Historia",hotkeys:"Klawisze skrótu",id:"ID",instantBet:"Zakład natychmiastowy",loading:"Załadunek...",loadMore:"Załaduj więcej",lobby:"Powrót do lobby",loss:"Strata",low:"Niski",manual:"Podręcznik",medium:"Średni",multiplier:"Mnożnik",next:"Następny",odds:"Szanse",payout:"Wypłata",placeBet:"Postaw zakład",previous:"Poprzedni",profit:"Zysk",profitOnWin:"Zysk z wygranej",provablyFair:"Udowodniona uczciwość",rangeSlider:"Suwak zakresu",risk:"Ryzyko",settings:"Ustawienia",share:"Udział",siteInformation:"Informacje o witrynie",space:"PRZESTRZEŃ",start:"Start",stop:"Zatrzymywać się",success:"Sukces",targetMultiplier:"Mnożnik",thisFieldIsRequired:"To pole jest wymagane",timestamp:"Czas",toggleHotkeys:"Przełącz klawisze skrótu",toggleSwitch:"Przełącznik",viewFairnessInformation:"Wyświetl informacje o uczciwości",volume:"Tom",win:"Wygrać",winChance:"Szansa na wygraną"},errors:{connection:"Błąd połączenia",dice:{multiplierRange:"Musi mieścić się w przedziale od 1,0102 do 9900",winChanceRange:"Musi mieścić się w przedziale od 0,01 do 98"},game:"Wystąpił błąd gry",insufficientBalance:"Niewystarczające saldo",limbo:{multiplierRange:"Mnożnik musi wynosić co najmniej 1,01",winChanceRange:"Szansa na wygraną musi mieścić się w przedziale od 0,000099 do 99,9999"}},fairness:{activeClientSeed:"Aktywny klient nasion",enterClientSeed:"Wprowadź ziarno klienta",enterProof:"Wprowadź dowód",enterPublicKey:"Wprowadź klucz publiczny",enterRandomness:"Wprowadź losowość",enterRequest:"Wprowadź żądanie",invalidGame:"Podano nieprawidłowy typ gry.",noBettingHistory:"Brak historii zakładów",outcomeCalculationInfo:"Wynik każdej gry obliczany jest na podstawie losowej wartości.",outcomeNotVerified:"Wyniku tej gry nie można zweryfikować",outcomeVerified:"Wynik tej gry został zweryfikowany i można go uznać za uczciwy",pendingInputs:"Oczekujące dane wejściowe",proof:"Dowód",provableFairnessUnverified:"Udowodniona uczciwość niezweryfikowana",provableFairnessVerified:"Udowodniona uczciwość zweryfikowana",publicKey:"Klucz publiczny",randomness:"Losowość",request:"Wniosek",saveClientSeed:"Zapisz ziarno klienta",verified:"Zweryfikowano",verifyOutcome:"Sprawdź wynik",viewOutcome:"Wyświetl wynik"},games:{dice:{result:"Wynik",roll:"Rolka",rollOver:"Przetoczyć się",rollUnder:"Przetoczyć się pod",target:"Cel",title:"Kostka do gry"},keno:{autoPick:"Automatyczne wybieranie",clearTable:"Jasne",draw:"Rysować",hits:"Trafienia",kenoGameGrid:"Siatka gry Keno",kenoNumber:"Numer keno",numbers:"Takty muzyczne",pick:"Wybierać",select1to10Tiles:"Wybierz 1-10 kafelków",selectAtLeastOneTile:"Proszę wybrać co najmniej jeden kafelek",selectNumbers:"Wybierz liczby",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek",title:"Keno"},limbo:{cashout:"Wypłata gotówki",crashed:"Rozbił się",target:"Cel",targetMultiplier:"Mnożnik",title:"Otchłań"},mines:{cashout:"Wypłata gotówki",gem:"Klejnot",gems:"Klejnoty",mine:"Kopalnia",mines:"Kopalnie",nextGem:"Następny klejnot",reveal:"Ujawnić",selectRandomTile:"Wybierz losowy kafelek",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek do automatycznego obstawiania",tile:"Płytka",title:"Kopalnie",unrevealed:"Nieujawnione"}},modals:{betResult:"Wynik zakładu",fairnessAndHistory:"Sprawiedliwość i historia",gameArea:"Obszar gry",gameControls:"Sterowanie grą"},outcomes:{draw:"Rysować",loss:"Strata",win:"Wygrać"},share:{betResultText:"Sprawdź wynik mojego zakładu!",betResultTitle:"Wynik zakładu"}}});var vt=Uo((Yc,xs)=>{xs.exports={accessibility:{betPlacedAnnouncement:"Aposta feita com sucesso",gameInProgress:"Jogo em andamento",languageChanged:"Idioma alterado para {language}"},alerts:{autobetStarted:"Modo de aposta automática iniciado",autobetStopped:"Modo de aposta automática interrompido",betAmountAboveMaxBet:"O valor da aposta está acima da aposta máxima",betAmountBelowMinBet:"O valor da aposta está abaixo da aposta mínima",betCancelled:"Aposta cancelada",betDetailsCopied:"Detalhes da aposta copiados para a área de transferência!",betLimitReached:"Limite de aposta atingido",betPlaced:"Aposta feita com sucesso",connectionError:"Erro de conexão",errorProcessingBet:"Ocorreu um erro ao processar sua aposta. Tente novamente.",failedToLoadBetData:"Falha ao carregar dados de aposta",failedToShareBetDetails:"Falha ao compartilhar detalhes da aposta",gameError:"Ocorreu um erro ao processar sua aposta. Tente novamente.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"Não há equilíbrio suficiente"},autobet:{baseAmount:"Valor base",decrease:"Diminuir",games:"Jogos",games10:"10 jogos",games100:"100 jogos",games25:"25 jogos",games5:"5 jogos",games50:"50 jogos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apostas",onLoss:"Em Perda",onWin:"Na vitória",reset:"Reiniciar",startAutobet:"Iniciar aposta automática",stopAutobet:"Pare a aposta automática",stopOnLoss:"Parar na perda",stopOnProfit:"Pare no lucro",stopOnWin:"Pare na vitória",title:"Aposta automática"},common:{amount:"Quantia",animation:"Animação",auto:"Auto",back:"Voltar",balance:"Equilíbrio",bet:"Valor da aposta",betAmount:"Valor da aposta",cancel:"Cancelar",cashOut:"Saque",change:"Mudar",classic:"Clássico",close:"Fechar",closeAlert:"Alerta de fechamento",closeDialog:"Fechar diálogo",confirm:"Confirmar",copy:"Cópia",error:"Erro",fairness:"Justiça",footerNavigation:"Navegação de rodapé",high:"Alto",history:"História",hotkeys:"Teclas de atalho",id:"EU IA",instantBet:"Aposta instantânea",loading:"Carregando...",loadMore:"Carregar mais",lobby:"Voltar ao Lobby",loss:"Perda",low:"Baixo",manual:"Manual",medium:"Médio",multiplier:"Multiplicador",next:"Próximo",odds:"Chances",payout:"Pagamento",placeBet:"Fazer aposta",previous:"Anterior",profit:"Lucro",profitOnWin:"Lucro na vitória",provablyFair:"Provavelmente justo",rangeSlider:"Controle deslizante de alcance",risk:"Risco",settings:"Configurações",share:"Compartilhar",siteInformation:"Informações do site",space:"ESPAÇO",start:"Começar",stop:"Parar",success:"Sucesso",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo é obrigatório",timestamp:"Tempo",toggleHotkeys:"Alternar teclas de atalho",toggleSwitch:"Interruptor de alternância",viewFairnessInformation:"Ver informações sobre justiça",volume:"Volume",win:"Ganhar",winChance:"Chance de ganhar"},errors:{connection:"Erro de conexão",dice:{multiplierRange:"Deve estar entre 1,0102 e 9900",winChanceRange:"Deve estar entre 0,01 e 98"},game:"Ocorreu um erro no jogo",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"O multiplicador deve ser pelo menos 1,01",winChanceRange:"A chance de vitória deve estar entre 0,000099 e 99,9999"}},fairness:{activeClientSeed:"Semente de cliente ativo",enterClientSeed:"Insira a semente do cliente",enterProof:"Insira a prova",enterPublicKey:"Digite a chave pública",enterRandomness:"Digite Aleatoriedade",enterRequest:"Solicitação de entrada",invalidGame:"Tipo de jogo fornecido inválido.",noBettingHistory:"Nenhum histórico de apostas",outcomeCalculationInfo:"O resultado de cada jogo é calculado usando um valor aleatório como entrada.",outcomeNotVerified:"O resultado deste jogo não pôde ser verificado",outcomeVerified:"O resultado deste jogo foi verificado e é comprovadamente justo",pendingInputs:"Entradas pendentes",proof:"Prova",provableFairnessUnverified:"Imparcialidade Provável Não Verificada",provableFairnessVerified:"Justiça comprovada verificada",publicKey:"Chave Pública",randomness:"Aleatoriedade",request:"Solicitar",saveClientSeed:"Salvar Semente do Cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rolar",rollOver:"Rolar sobre",rollUnder:"Rolar para baixo",target:"Alvo",title:"Dados"},keno:{autoPick:"Seleção automática",clearTable:"Claro",draw:"Empate",hits:"Acessos",kenoGameGrid:"Grade do jogo Keno",kenoNumber:"Número Keno",numbers:"Números",pick:"Escolha",select1to10Tiles:"Selecione 1-10 peças",selectAtLeastOneTile:"Selecione pelo menos um bloco",selectNumbers:"Selecione Números",selectTileToAutobet:"Selecione pelo menos um bloco",title:"Keno"},limbo:{cashout:"Saque",crashed:"Caiu",target:"Alvo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Saque",gem:"Jóia",gems:"Gemas",mine:"Meu",mines:"Minas",nextGem:"Próxima Joia",reveal:"Revelar",selectRandomTile:"Selecione uma peça aleatória",selectTileToAutobet:"Selecione pelo menos uma peça para apostar automaticamente",tile:"Telha",title:"Minas",unrevealed:"Não revelado"}},modals:{betResult:"Resultado da aposta",fairnessAndHistory:"Justiça e História",gameArea:"Área de jogos",gameControls:"Controles do jogo"},outcomes:{draw:"Empate",loss:"Perda",win:"Ganhar"},share:{betResultText:"Confira o resultado da minha aposta!",betResultTitle:"Resultado da aposta"}}});var kt=Uo((Cc,zs)=>{zs.exports={accessibility:{betPlacedAnnouncement:"Ставка сделана успешно",gameInProgress:"Игра в процессе",languageChanged:"Язык изменен на {language}"},alerts:{autobetStarted:"Запущен режим автоставки",autobetStopped:"Остановлен режим автоставки",betAmountAboveMaxBet:"Сумма ставки превышает максимальную ставку",betAmountBelowMinBet:"Сумма ставки ниже минимальной ставки",betCancelled:"Ставка отменена",betDetailsCopied:"Данные ставки скопированы в буфер обмена!",betLimitReached:"Лимит ставок достигнут",betPlaced:"Ставка сделана успешно",connectionError:"Ошибка подключения",errorProcessingBet:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",failedToLoadBetData:"Не удалось загрузить данные о ставках",failedToShareBetDetails:"Не удалось поделиться данными о ставке",gameError:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",insufficientBalance:"Недостаточный баланс",notEnoughBalance:"Недостаточный баланс"},autobet:{baseAmount:"Базовая сумма",decrease:"Снижаться",games:"Игры",games10:"10 игр",games100:"100 игр",games25:"25 игр",games5:"5 игр",games50:"50 игр",increase:"Увеличивать",infinite:"Бесконечный",numberOfBets:"Количество ставок",onLoss:"При убытке",onWin:"На Победе",reset:"Перезагрузить",startAutobet:"Начать автоставку",stopAutobet:"Остановить автоставку",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",stopOnWin:"Остановись на Победе",title:"Автоставка"},common:{amount:"Количество",animation:"Анимация",auto:"Авто",back:"Назад",balance:"Баланс",bet:"Сумма ставки",betAmount:"Сумма ставки",cancel:"Отмена",cashOut:"Выплата наличных",change:"Изменять",classic:"Классический",close:"Закрывать",closeAlert:"Закрыть оповещение",closeDialog:"Закрыть диалог",confirm:"Подтверждать",copy:"Копировать",error:"Ошибка",fairness:"Справедливость",footerNavigation:"Навигация по нижнему колонтитулу",high:"Высокий",history:"История",hotkeys:"Горячие клавиши",id:"ИДЕНТИФИКАТОР",instantBet:"Мгновенная ставка",loading:"Загрузка...",loadMore:"Загрузить больше",lobby:"Вернуться в вестибюль",loss:"Потеря",low:"Низкий",manual:"Руководство",medium:"Середина",multiplier:"Множитель",next:"Следующий",odds:"Шансы",payout:"Выплата",placeBet:"Сделать ставку",previous:"Предыдущий",profit:"Выгода",profitOnWin:"Прибыль от победы",provablyFair:"Доказуемо справедливо",rangeSlider:"Ползунок диапазона",risk:"Риск",settings:"Настройки",share:"Делиться",siteInformation:"Информация о сайте",space:"КОСМОС",start:"Начинать",stop:"Останавливаться",success:"Успех",targetMultiplier:"Множитель",thisFieldIsRequired:"Это поле обязательно к заполнению",timestamp:"Время",toggleHotkeys:"Переключить горячие клавиши",toggleSwitch:"Переключатель",viewFairnessInformation:"Просмотреть информацию о справедливости",volume:"Объем",win:"Победить",winChance:"Шанс выиграть"},errors:{connection:"Ошибка подключения",dice:{multiplierRange:"Должно быть от 1,0102 до 9900",winChanceRange:"Должно быть от 0,01 до 98"},game:"Произошла ошибка игры",insufficientBalance:"Недостаточный баланс",limbo:{multiplierRange:"Множитель должен быть не менее 1,01.",winChanceRange:"Шанс выигрыша должен быть от 0,000099 до 99,9999"}},fairness:{activeClientSeed:"Активный клиентский посев",enterClientSeed:"Введите клиентское семя",enterProof:"Введите доказательство",enterPublicKey:"Введите открытый ключ",enterRandomness:"Введите случайность",enterRequest:"Введите запрос",invalidGame:"Указан неверный тип игры.",noBettingHistory:"Нет истории ставок",outcomeCalculationInfo:"Результат каждой игры рассчитывается с использованием случайного значения в качестве входных данных.",outcomeNotVerified:"Результат этой игры не удалось проверить.",outcomeVerified:"Результат этой игры проверен и доказуемо честен.",pendingInputs:"Ожидаемые входные данные",proof:"Доказательство",provableFairnessUnverified:"Доказуемая справедливость Непроверенная",provableFairnessVerified:"Доказуемая справедливость проверена",publicKey:"Открытый ключ",randomness:"Случайность",request:"Запрос",saveClientSeed:"Сохранить клиентское семя",verified:"Проверено",verifyOutcome:"Проверить результат",viewOutcome:"Посмотреть результат"},games:{dice:{result:"Результат",roll:"Рулон",rollOver:"Перекатывать",rollUnder:"Подкатиться",target:"Цель",title:"Кости"},keno:{autoPick:"Автоматический выбор",clearTable:"Прозрачный",draw:"Рисовать",hits:"Хиты",kenoGameGrid:"Сетка игры Кено",kenoNumber:"Номер Кено",numbers:"Числа",pick:"Выбирать",select1to10Tiles:"Выберите 1-10 плиток",selectAtLeastOneTile:"Пожалуйста, выберите хотя бы одну плитку",selectNumbers:"Выберите номера",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку",title:"Кено"},limbo:{cashout:"Выплата наличных",crashed:"Разбился",target:"Цель",targetMultiplier:"Множитель",title:"Лимб"},mines:{cashout:"Выплата наличных",gem:"Драгоценный камень",gems:"Драгоценные камни",mine:"Мой",mines:"Шахты",nextGem:"Следующий драгоценный камень",reveal:"Раскрывать",selectRandomTile:"Выбрать случайную плитку",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку для автоматической ставки.",tile:"Плитка",title:"Шахты",unrevealed:"Нераскрыто"}},modals:{betResult:"Результат ставки",fairnessAndHistory:"Справедливость и история",gameArea:"Игровая зона",gameControls:"Управление игрой"},outcomes:{draw:"Рисовать",loss:"Потеря",win:"Победить"},share:{betResultText:"Посмотрите результат моей ставки!",betResultTitle:"Результат ставки"}}});var xt=Uo((Lc,ys)=>{ys.exports={accessibility:{betPlacedAnnouncement:"Bahis başarıyla yapıldı",gameInProgress:"Oyun devam ediyor",languageChanged:"Dil {language} olarak değiştirildi"},alerts:{autobetStarted:"Otomatik bahis modu başlatıldı",autobetStopped:"Otomatik bahis modu durduruldu",betAmountAboveMaxBet:"Bahis miktarı maksimum bahsin üzerindedir",betAmountBelowMinBet:"Bahis miktarı minimum bahsin altındadır",betCancelled:"Bahis iptal edildi",betDetailsCopied:"Bahis detayları panoya kopyalandı!",betLimitReached:"Bahis limitine ulaşıldı",betPlaced:"Bahis başarıyla yapıldı",connectionError:"Bağlantı hatası",errorProcessingBet:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",failedToLoadBetData:"Bahis verileri yüklenemedi",failedToShareBetDetails:"Bahis detayları paylaşılamadı",gameError:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",insufficientBalance:"Yetersiz bakiye",notEnoughBalance:"Yeterli denge yok"},autobet:{baseAmount:"Temel Tutar",decrease:"Azaltmak",games:"Oyunlar",games10:"10 oyun",games100:"100 oyun",games25:"25 oyun",games5:"5 oyun",games50:"50 oyun",increase:"Arttırmak",infinite:"Sonsuz",numberOfBets:"Bahis Sayısı",onLoss:"Kayıp Üzerine",onWin:"Kazanmak Üzerine",reset:"Sıfırla",startAutobet:"Otomatik Bahis Başlat",stopAutobet:"Otomatik Bahsi Durdur",stopOnLoss:"Zararda Dur",stopOnProfit:"Kârda Dur",stopOnWin:"Kazanma Durdurma",title:"Otomatik bahis"},common:{amount:"Miktar",animation:"Animasyon",auto:"Otomatik",back:"Geri",balance:"Denge",bet:"Bahis Miktarı",betAmount:"Bahis Miktarı",cancel:"İptal etmek",cashOut:"Nakit Çekme",change:"Değiştirmek",classic:"Klasik",close:"Kapalı",closeAlert:"Yakın uyarı",closeDialog:"İletişim kutusunu kapat",confirm:"Onaylamak",copy:"Kopyala",error:"Hata",fairness:"Adalet",footerNavigation:"Alt bilgi gezintisi",high:"Yüksek",history:"Tarih",hotkeys:"Kısayollar",id:"İD",instantBet:"Anında Bahis",loading:"Yükleniyor...",loadMore:"Daha Fazlasını Yükle",lobby:"Lobiye Geri Dön",loss:"Kayıp",low:"Düşük",manual:"Manuel",medium:"Orta",multiplier:"Çarpan",next:"Sonraki",odds:"Oranlar",payout:"Ödeme",placeBet:"Bahis",previous:"Öncesi",profit:"Kâr",profitOnWin:"Kazanç Üzerine Kar",provablyFair:"Kanıtlanabilir Adil",rangeSlider:"Aralık kaydırıcısı",risk:"Risk",settings:"Ayarlar",share:"Paylaşmak",siteInformation:"Site bilgileri",space:"UZAY",start:"Başlangıç",stop:"Durmak",success:"Başarı",targetMultiplier:"Çarpan",thisFieldIsRequired:"Bu alan gereklidir",timestamp:"Zaman",toggleHotkeys:"Kısayolları Değiştir",toggleSwitch:"Geçiş anahtarı",viewFairnessInformation:"Adalet bilgilerini görüntüle",volume:"Hacim",win:"Kazanç",winChance:"Kazanma Şansı"},errors:{connection:"Bağlantı hatası",dice:{multiplierRange:"1.0102 ile 9900 arasında olmalıdır",winChanceRange:"0,01 ile 98 arasında olmalıdır"},game:"Oyun hatası oluştu",insufficientBalance:"Yetersiz bakiye",limbo:{multiplierRange:"Çarpan en az 1,01 olmalıdır",winChanceRange:"Kazanma şansı 0,000099 ile 99,9999 arasında olmalıdır"}},fairness:{activeClientSeed:"Aktif İstemci Tohumu",enterClientSeed:"İstemci Tohumunu Girin",enterProof:"Kanıtı Girin",enterPublicKey:"Genel Anahtarı Girin",enterRandomness:"Rastgeleliğe Girin",enterRequest:"İstek Girin",invalidGame:"Geçersiz oyun türü sağlandı.",noBettingHistory:"Bahis geçmişi yok",outcomeCalculationInfo:"Her oyunun sonucu, girdi olarak rastgele bir değer kullanılarak hesaplanır.",outcomeNotVerified:"Bu oyunun sonucu doğrulanamadı",outcomeVerified:"Bu oyunun sonucu doğrulandı ve kanıtlanabilir şekilde adildir",pendingInputs:"Bekleyen Girişler",proof:"Kanıt",provableFairnessUnverified:"Kanıtlanabilir Adalet Doğrulanmamış",provableFairnessVerified:"Kanıtlanabilir Adalet Doğrulandı",publicKey:"Genel Anahtar",randomness:"Rastgelelik",request:"Rica etmek",saveClientSeed:"İstemci Tohumunu Kaydet",verified:"Doğrulandı",verifyOutcome:"Sonucu Doğrula",viewOutcome:"Sonucu Görüntüle"},games:{dice:{result:"Sonuç",roll:"Rulo",rollOver:"Yuvarlanmak",rollUnder:"Altına Yuvarlan",target:"Hedef",title:"Zar"},keno:{autoPick:"Otomatik Seçim",clearTable:"Temizlemek",draw:"Çizmek",hits:"İsabetler",kenoGameGrid:"Keno Oyun Izgarası",kenoNumber:"Keno numarası",numbers:"Sayılar",pick:"Seçmek",select1to10Tiles:"1-10 Fayans Seçin",selectAtLeastOneTile:"Lütfen en az bir kutucuk seçin",selectNumbers:"Sayıları Seçin",selectTileToAutobet:"Lütfen en az bir kutucuk seçin",title:"Keno"},limbo:{cashout:"Nakit Çekme",crashed:"Çöktü",target:"Hedef",targetMultiplier:"Çarpan",title:"Araf"},mines:{cashout:"Nakit Çekme",gem:"Mücevher",gems:"Mücevherler",mine:"Bana ait",mines:"Madenler",nextGem:"Sonraki Mücevher",reveal:"Ortaya çıkarmak",selectRandomTile:"Rastgele Döşeme Seç",selectTileToAutobet:"Lütfen otomatik bahis yapmak için en az bir karo seçin",tile:"Fayans",title:"Madenler",unrevealed:"Açıklanmamış"}},modals:{betResult:"Bahis Sonucu",fairnessAndHistory:"Adalet ve Tarih",gameArea:"Oyun Alanı",gameControls:"Oyun Kontrolleri"},outcomes:{draw:"Çizmek",loss:"Kayıp",win:"Kazanç"},share:{betResultText:"Bahis sonucumu inceleyin!",betResultTitle:"Bahis Sonucu"}}});var zt=Uo((Fc,Ss)=>{Ss.exports={accessibility:{betPlacedAnnouncement:"Đã đặt cược thành công",gameInProgress:"Trò chơi đang diễn ra",languageChanged:"Ngôn ngữ đã thay đổi thành {language}"},alerts:{autobetStarted:"Đã bắt đầu chế độ đặt cược tự động",autobetStopped:"Đã dừng chế độ đặt cược tự động",betAmountAboveMaxBet:"Số tiền cược vượt quá mức cược tối đa",betAmountBelowMinBet:"Số tiền cược thấp hơn mức cược tối thiểu",betCancelled:"Cược đã bị hủy",betDetailsCopied:"Chi tiết cược đã được sao chép vào bảng tạm!",betLimitReached:"Đã đạt đến giới hạn đặt cược",betPlaced:"Đã đặt cược thành công",connectionError:"Lỗi kết nối",errorProcessingBet:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",failedToLoadBetData:"Không tải được dữ liệu cược",failedToShareBetDetails:"Không chia sẻ được thông tin chi tiết về cược",gameError:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",insufficientBalance:"Số dư không đủ",notEnoughBalance:"Không đủ cân bằng"},autobet:{baseAmount:"Số tiền cơ sở",decrease:"Giảm bớt",games:"Trò chơi",games10:"10 trò chơi",games100:"100 trò chơi",games25:"25 trò chơi",games5:"5 trò chơi",games50:"50 trò chơi",increase:"Tăng",infinite:"Vô hạn",numberOfBets:"Số lượng cược",onLoss:"Về sự mất mát",onWin:"Trên chiến thắng",reset:"Cài lại",startAutobet:"Bắt đầu Autobet",stopAutobet:"Dừng Autobet",stopOnLoss:"Dừng lại khi mất mát",stopOnProfit:"Dừng lại ở lợi nhuận",stopOnWin:"Dừng lại ở Win",title:"Cược tự động"},common:{amount:"Số lượng",animation:"Hoạt hình",auto:"Tự động",back:"Mặt sau",balance:"Sự cân bằng",bet:"Số tiền đặt cược",betAmount:"Số tiền đặt cược",cancel:"Hủy bỏ",cashOut:"Rút tiền",change:"Thay đổi",classic:"Cổ điển",close:"Đóng",closeAlert:"Đóng cảnh báo",closeDialog:"Đóng hộp thoại",confirm:"Xác nhận",copy:"Sao chép",error:"Lỗi",fairness:"Công bằng",footerNavigation:"Điều hướng chân trang",high:"Cao",history:"Lịch sử",hotkeys:"Phím nóng",id:"NHẬN DẠNG",instantBet:"Cược tức thì",loading:"Đang tải...",loadMore:"Tải thêm",lobby:"Quay lại Sảnh",loss:"Sự mất mát",low:"Thấp",manual:"Thủ công",medium:"Trung bình",multiplier:"Hệ số nhân",next:"Kế tiếp",odds:"Tỷ lệ cược",payout:"Thanh toán",placeBet:"Đặt cược",previous:"Trước",profit:"Lợi nhuận",profitOnWin:"Lợi nhuận khi thắng",provablyFair:"Có thể chứng minh là công bằng",rangeSlider:"Thanh trượt phạm vi",risk:"Rủi ro",settings:"Cài đặt",share:"Chia sẻ",siteInformation:"Thông tin trang web",space:"KHÔNG GIAN",start:"Bắt đầu",stop:"Dừng lại",success:"Thành công",targetMultiplier:"Hệ số nhân",thisFieldIsRequired:"Trường này là bắt buộc",timestamp:"Thời gian",toggleHotkeys:"Chuyển đổi phím nóng",toggleSwitch:"Công tắc chuyển đổi",viewFairnessInformation:"Xem thông tin công bằng",volume:"Âm lượng",win:"Thắng",winChance:"Cơ hội chiến thắng"},errors:{connection:"Lỗi kết nối",dice:{multiplierRange:"Phải nằm trong khoảng từ 1,0102 đến 9900",winChanceRange:"Phải nằm trong khoảng từ 0,01 đến 98"},game:"Đã xảy ra lỗi trò chơi",insufficientBalance:"Số dư không đủ",limbo:{multiplierRange:"Hệ số nhân phải ít nhất là 1,01",winChanceRange:"Cơ hội chiến thắng phải nằm trong khoảng từ 0,000099 đến 99,9999"}},fairness:{activeClientSeed:"Hạt giống khách hàng đang hoạt động",enterClientSeed:"Nhập hạt giống khách hàng",enterProof:"Nhập bằng chứng",enterPublicKey:"Nhập khóa công khai",enterRandomness:"Nhập ngẫu nhiên",enterRequest:"Nhập yêu cầu",invalidGame:"Loại trò chơi được cung cấp không hợp lệ.",noBettingHistory:"Không có lịch sử cá cược",outcomeCalculationInfo:"Kết quả của mỗi trò chơi được tính toán bằng cách sử dụng giá trị ngẫu nhiên làm đầu vào.",outcomeNotVerified:"Kết quả của trò chơi này không thể được xác minh",outcomeVerified:"Kết quả của trò chơi này đã được xác minh và có thể chứng minh là công bằng",pendingInputs:"Đầu vào đang chờ xử lý",proof:"Bằng chứng",provableFairnessUnverified:"Công bằng có thể chứng minh chưa được xác minh",provableFairnessVerified:"Sự công bằng có thể chứng minh được đã được xác minh",publicKey:"Khóa công khai",randomness:"Tính ngẫu nhiên",request:"Lời yêu cầu",saveClientSeed:"Lưu hạt giống khách hàng",verified:"Đã xác minh",verifyOutcome:"Xác minh kết quả",viewOutcome:"Xem kết quả"},games:{dice:{result:"Kết quả",roll:"Cuộn",rollOver:"Lăn qua",rollUnder:"Lăn dưới",target:"Mục tiêu",title:"Xúc xắc"},keno:{autoPick:"Tự động chọn",clearTable:"Thông thoáng",draw:"Vẽ tranh",hits:"Lượt truy cập",kenoGameGrid:"Lưới trò chơi Keno",kenoNumber:"Số Keno",numbers:"Số",pick:"Nhặt",select1to10Tiles:"Chọn 1-10 ô",selectAtLeastOneTile:"Vui lòng chọn ít nhất một ô",selectNumbers:"Chọn số",selectTileToAutobet:"Vui lòng chọn ít nhất một ô",title:"Keno"},limbo:{cashout:"Rút tiền",crashed:"Đã bị sập",target:"Mục tiêu",targetMultiplier:"Hệ số nhân",title:"Limbo"},mines:{cashout:"Rút tiền",gem:"Đá quý",gems:"Đá quý",mine:"Của tôi",mines:"Mỏ",nextGem:"Viên ngọc tiếp theo",reveal:"Tiết lộ",selectRandomTile:"Chọn ô ngẫu nhiên",selectTileToAutobet:"Vui lòng chọn ít nhất một ô để tự động đặt cược",tile:"Ngói",title:"Mỏ",unrevealed:"Chưa tiết lộ"}},modals:{betResult:"Kết quả cược",fairnessAndHistory:"Công bằng và Lịch sử",gameArea:"Khu vực trò chơi",gameControls:"Điều khiển trò chơi"},outcomes:{draw:"Vẽ tranh",loss:"Sự mất mát",win:"Thắng"},share:{betResultText:"Hãy xem kết quả cá cược của tôi!",betResultTitle:"Kết quả cược"}}});var yt=Uo((Qc,Hs)=>{Hs.exports={accessibility:{betPlacedAnnouncement:"投注成功",gameInProgress:"游戏进行中",languageChanged:"语言更改为 {language}"},alerts:{autobetStarted:"已启动自动投注模式",autobetStopped:"停止自动投注模式",betAmountAboveMaxBet:"投注金额高于最高投注额",betAmountBelowMinBet:"投注金额低于最低投注额",betCancelled:"投注取消",betDetailsCopied:"投注详情已复制到剪贴板!",betLimitReached:"已达到投注限额",betPlaced:"投注成功",connectionError:"连接错误",errorProcessingBet:"处理您的投注时出错。请重试。",failedToLoadBetData:"无法加载投注数据",failedToShareBetDetails:"无法分享投注详情",gameError:"处理您的投注时出错。请重试。",insufficientBalance:"余额不足",notEnoughBalance:"余额不足"},autobet:{baseAmount:"基数",decrease:"减少",games:"游戏",games10:"10场比赛",games100:"100场比赛",games25:"25场比赛",games5:"5场比赛",games50:"50场比赛",increase:"增加",infinite:"无限",numberOfBets:"投注次数",onLoss:"关于损失",onWin:"胜利",reset:"重置",startAutobet:"开始自动投注",stopAutobet:"停止自动投注",stopOnLoss:"止损",stopOnProfit:"止盈",stopOnWin:"胜利时停止",title:"自动投注"},common:{amount:"数量",animation:"动画片",auto:"汽车",back:"后退",balance:"平衡",bet:"投注金额",betAmount:"投注金额",cancel:"取消",cashOut:"提现",change:"改变",classic:"经典的",close:"关闭",closeAlert:"关闭警报",closeDialog:"关闭对话框",confirm:"确认",copy:"复制",error:"错误",fairness:"公平",footerNavigation:"页脚导航",high:"高的",history:"历史",hotkeys:"热键",id:"ID",instantBet:"即时投注",loading:"加载中...",loadMore:"加载更多",lobby:"返回大厅",loss:"损失",low:"低的",manual:"手动的",medium:"中等的",multiplier:"乘数",next:"下一个",odds:"赔率",payout:"付款",placeBet:"下注",previous:"以前的",profit:"利润",profitOnWin:"赢利",provablyFair:"可证明公平",rangeSlider:"范围滑块",risk:"风险",settings:"设置",share:"分享",siteInformation:"站点信息",space:"空间",start:"开始",stop:"停止",success:"成功",targetMultiplier:"乘数",thisFieldIsRequired:"此字段是必需的",timestamp:"时间",toggleHotkeys:"切换热键",toggleSwitch:"拨动开关",viewFairnessInformation:"查看公平性信息",volume:"体积",win:"赢",winChance:"获胜机会"},errors:{connection:"连接错误",dice:{multiplierRange:"必须介于 1.0102 和 9900 之间",winChanceRange:"必须介于 0.01 和 98 之间"},game:"游戏发生错误",insufficientBalance:"余额不足",limbo:{multiplierRange:"乘数必须至少为 1.01",winChanceRange:"获胜机会必须介于 0.000099 和 99.9999 之间"}},fairness:{activeClientSeed:"活跃客户种子",enterClientSeed:"输入客户种子",enterProof:"输入证明",enterPublicKey:"输入公钥",enterRandomness:"输入随机性",enterRequest:"输入请求",invalidGame:"提供的游戏类型无效。",noBettingHistory:"没有投注记录",outcomeCalculationInfo:"每场比赛的结果都是使用随机值作为输入来计算的。",outcomeNotVerified:"这场比赛的结果无法核实",outcomeVerified:"本场比赛的结果已经过验证,且可证明是公平的",pendingInputs:"待处理输入",proof:"证明",provableFairnessUnverified:"公平性尚未得到验证",provableFairnessVerified:"公平性已得到验证",publicKey:"公钥",randomness:"随机性",request:"要求",saveClientSeed:"保存客户端种子",verified:"已验证",verifyOutcome:"验证结果",viewOutcome:"查看结果"},games:{dice:{result:"结果",roll:"卷",rollOver:"滚下",rollUnder:"滚下",target:"目标",title:"骰子"},keno:{autoPick:"自动选择",clearTable:"清除",draw:"画",hits:"热门歌曲",kenoGameGrid:"基诺游戏网格",kenoNumber:"基诺号码",numbers:"数字",pick:"挑选",select1to10Tiles:"选择 1-10 个图块",selectAtLeastOneTile:"请至少选择一个图块",selectNumbers:"选择号码",selectTileToAutobet:"请至少选择一个图块",title:"基诺"},limbo:{cashout:"提现",crashed:"坠毁",target:"目标",targetMultiplier:"乘数",title:"地狱边境"},mines:{cashout:"提现",gem:"宝石",gems:"宝石",mine:"矿",mines:"矿山",nextGem:"下一颗宝石",reveal:"揭示",selectRandomTile:"选择随机图块",selectTileToAutobet:"请至少选择一张牌进行自动下注",tile:"瓦",title:"矿山",unrevealed:"未披露"}},modals:{betResult:"投注结果",fairnessAndHistory:"公平与历史",gameArea:"游戏区",gameControls:"游戏控制"},outcomes:{draw:"画",loss:"损失",win:"赢"},share:{betResultText:"查看我的投注结果!",betResultTitle:"投注结果"}}});var Xe=Uo((Ci,Gi)=>{typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(o,i){typeof Ci==="object"&&typeof Gi!=="undefined"?Gi.exports=i():typeof define==="function"&&define.amd?define(i):(o=typeof globalThis!=="undefined"?globalThis:o||self,o.lottie=i())}(Ci,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function o(i){_useWebWorker=!!i},getWebWorker=function o(){return _useWebWorker},setLocationHref=function o(i){locationHref=i},getLocationHref=function o(){return locationHref};function createTag(o){return document.createElement(o)}function extendPrototype(o,i){var a,t=o.length,r;for(a=0;a<t;a+=1){r=o[a].prototype;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))i.prototype[e]=r[e]}}function getDescriptor(o,i){return Object.getOwnPropertyDescriptor(o,i)}function createProxyFunction(o){function i(){}return i.prototype=o,i}var audioControllerFactory=function(){function o(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return o.prototype={addAudio:function i(a){this.audios.push(a)},pause:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].pause()},resume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].resume()},setRate:function i(a){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(a)},createAudio:function i(a){if(this.audioFactory)return this.audioFactory(a);if(window.Howl)return new window.Howl({src:[a]});return{isPlaying:!1,play:function t(){this.isPlaying=!0},seek:function t(){this.isPlaying=!1},playing:function t(){},rate:function t(){},setVolume:function t(){}}},setAudioFactory:function i(a){this.audioFactory=a},setVolume:function i(a){this._volume=a,this._updateVolume()},mute:function i(){this._isMuted=!0,this._updateVolume()},unmute:function i(){this._isMuted=!1,this._updateVolume()},getVolume:function i(){return this._volume},_updateVolume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new o}}(),createTypedArray=function(){function o(a,t){var r=0,e=[],n;switch(a){case"int16":case"uint8c":n=1;break;default:n=1.1;break}for(r=0;r<t;r+=1)e.push(n);return e}function i(a,t){if(a==="float32")return new Float32Array(t);if(a==="int16")return new Int16Array(t);if(a==="uint8c")return new Uint8ClampedArray(t);return o(a,t)}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function")return i;return o}();function createSizedArray(o){return Array.apply(null,{length:o})}function _typeof$6(o){return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(o)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var o=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,a=o.length;for(i=0;i<a;i+=1)BMMath[o[i]]=Math[o[i]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(o){var i=_typeof$6(o);if(i==="object"&&o.length){var a=createSizedArray(o.length),t,r=o.length;for(t=0;t<r;t+=1)a[t]=Math.abs(o[t]);return a}return Math.abs(o)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=0.5519;function roundValues(o){_shouldRoundValues=!!o}function bmRnd(o){if(_shouldRoundValues)return Math.round(o);return o}function styleDiv(o){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.display="block",o.style.transformOrigin="0 0",o.style.webkitTransformOrigin="0 0",o.style.backfaceVisibility="visible",o.style.webkitBackfaceVisibility="visible",o.style.transformStyle="preserve-3d",o.style.webkitTransformStyle="preserve-3d",o.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(o,i,a,t){this.type=o,this.currentTime=i,this.totalTime=a,this.direction=t<0?-1:1}function BMCompleteEvent(o,i){this.type=o,this.direction=i<0?-1:1}function BMCompleteLoopEvent(o,i,a,t){this.type=o,this.currentLoop=a,this.totalLoops=i,this.direction=t<0?-1:1}function BMSegmentStartEvent(o,i,a){this.type=o,this.firstFrame=i,this.totalFrames=a}function BMDestroyEvent(o,i){this.type=o,this.target=i}function BMRenderFrameErrorEvent(o,i){this.type="renderFrameError",this.nativeError=o,this.currentTime=i}function BMConfigErrorEvent(o){this.type="configError",this.nativeError=o}function BMAnimationConfigErrorEvent(o,i){this.type=o,this.nativeError=i}var createElementID=function(){var o=0;return function i(){return o+=1,idPrefix$1+"__lottie_element_"+o}}();function HSVtoRGB(o,i,a){var t,r,e,n,s,l,u,g;switch(n=Math.floor(o*6),s=o*6-n,l=a*(1-i),u=a*(1-s*i),g=a*(1-(1-s)*i),n%6){case 0:t=a,r=g,e=l;break;case 1:t=u,r=a,e=l;break;case 2:t=l,r=a,e=g;break;case 3:t=l,r=u,e=a;break;case 4:t=g,r=l,e=a;break;case 5:t=a,r=l,e=u;break;default:break}return[t,r,e]}function RGBtoHSV(o,i,a){var t=Math.max(o,i,a),r=Math.min(o,i,a),e=t-r,n,s=t===0?0:e/t,l=t/255;switch(t){case r:n=0;break;case o:n=i-a+e*(i<a?6:0),n/=6*e;break;case i:n=a-o+e*2,n/=6*e;break;case a:n=o-i+e*4,n/=6*e;break;default:break}return[n,s,l]}function addSaturationToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[1]+=i,a[1]>1)a[1]=1;else if(a[1]<=0)a[1]=0;return HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[2]+=i,a[2]>1)a[2]=1;else if(a[2]<0)a[2]=0;return HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[0]+=i/360,a[0]>1)a[0]-=1;else if(a[0]<0)a[0]+=1;return HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var o=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),o[i]=a.length===1?"0"+a:a;return function(t,r,e){if(t<0)t=0;if(r<0)r=0;if(e<0)e=0;return"#"+o[t]+o[r]+o[e]}}(),setSubframeEnabled=function o(i){subframeEnabled=!!i},getSubframeEnabled=function o(){return subframeEnabled},setExpressionsPlugin=function o(i){expressionsPlugin=i},getExpressionsPlugin=function o(){return expressionsPlugin},setExpressionInterfaces=function o(i){expressionsInterfaces=i},getExpressionInterfaces=function o(){return expressionsInterfaces},setDefaultCurveSegments=function o(i){defaultCurveSegments=i},getDefaultCurveSegments=function o(){return defaultCurveSegments},setIdPrefix=function o(i){idPrefix$1=i},getIdPrefix=function o(){return idPrefix$1};function createNS(o){return document.createElementNS(svgNS,o)}function _typeof$5(o){return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(o)}var dataManager=function(){var o=1,i=[],a,t,r={onmessage:function f(){},postMessage:function f(y){a({data:y})}},e={postMessage:function f(y){r.onmessage({data:y})}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),z=URL.createObjectURL(y);return new Worker(z)}return a=f,r}function s(){if(!t)t=n(function f(y){function z(){function U(W,x){var K,c,v=W.length,Q,Y,T,M;for(c=0;c<v;c+=1)if(K=W[c],"ks"in K&&!K.completed){if(K.completed=!0,K.hasMask){var E=K.masksProperties;Y=E.length;for(Q=0;Q<Y;Q+=1)if(E[Q].pt.k.i)R(E[Q].pt.k);else{M=E[Q].pt.k.length;for(T=0;T<M;T+=1){if(E[Q].pt.k[T].s)R(E[Q].pt.k[T].s[0]);if(E[Q].pt.k[T].e)R(E[Q].pt.k[T].e[0])}}}if(K.ty===0)K.layers=p(K.refId,x),U(K.layers,x);else if(K.ty===4)k(K.shapes);else if(K.ty===5)L(K)}}function b(W,x){if(W){var K=0,c=W.length;for(K=0;K<c;K+=1)if(W[K].t===1)W[K].data.layers=p(W[K].data.refId,x),U(W[K].data.layers,x)}}function h(W,x){var K=0,c=x.length;while(K<c){if(x[K].id===W)return x[K];K+=1}return null}function p(W,x){var K=h(W,x);if(K){if(!K.layers.__used)return K.layers.__used=!0,K.layers;return JSON.parse(JSON.stringify(K.layers))}return null}function k(W){var x,K=W.length,c,v;for(x=K-1;x>=0;x-=1)if(W[x].ty==="sh")if(W[x].ks.k.i)R(W[x].ks.k);else{v=W[x].ks.k.length;for(c=0;c<v;c+=1){if(W[x].ks.k[c].s)R(W[x].ks.k[c].s[0]);if(W[x].ks.k[c].e)R(W[x].ks.k[c].e[0])}}else if(W[x].ty==="gr")k(W[x].it)}function R(W){var x,K=W.i.length;for(x=0;x<K;x+=1)W.i[x][0]+=W.v[x][0],W.i[x][1]+=W.v[x][1],W.o[x][0]+=W.v[x][0],W.o[x][1]+=W.v[x][1]}function V(W,x){var K=x?x.split("."):[100,100,100];if(W[0]>K[0])return!0;if(K[0]>W[0])return!1;if(W[1]>K[1])return!0;if(K[1]>W[1])return!1;if(W[2]>K[2])return!0;if(K[2]>W[2])return!1;return null}var C=function(){var W=[4,4,14];function x(c){var v=c.t.d;c.t.d={k:[{s:v,t:0}]}}function K(c){var v,Q=c.length;for(v=0;v<Q;v+=1)if(c[v].ty===5)x(c[v])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}(),w=function(){var W=[4,7,99];return function(x){if(x.chars&&!V(W,x.v)){var K,c=x.chars.length;for(K=0;K<c;K+=1){var v=x.chars[K];if(v.data&&v.data.shapes){if(k(v.data.shapes),v.data.ip=0,v.data.op=99999,v.data.st=0,v.data.sr=1,v.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},!x.chars[K].t)v.data.shapes.push({ty:"no"}),v.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})}}}}}(),Z=function(){var W=[5,7,15];function x(c){var v=c.t.p;if(typeof v.a==="number")v.a={a:0,k:v.a};if(typeof v.p==="number")v.p={a:0,k:v.p};if(typeof v.r==="number")v.r={a:0,k:v.r}}function K(c){var v,Q=c.length;for(v=0;v<Q;v+=1)if(c[v].ty===5)x(c[v])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}(),I=function(){var W=[4,1,9];function x(c){var v,Q=c.length,Y,T;for(v=0;v<Q;v+=1)if(c[v].ty==="gr")x(c[v].it);else if(c[v].ty==="fl"||c[v].ty==="st")if(c[v].c.k&&c[v].c.k[0].i){T=c[v].c.k.length;for(Y=0;Y<T;Y+=1){if(c[v].c.k[Y].s)c[v].c.k[Y].s[0]/=255,c[v].c.k[Y].s[1]/=255,c[v].c.k[Y].s[2]/=255,c[v].c.k[Y].s[3]/=255;if(c[v].c.k[Y].e)c[v].c.k[Y].e[0]/=255,c[v].c.k[Y].e[1]/=255,c[v].c.k[Y].e[2]/=255,c[v].c.k[Y].e[3]/=255}}else c[v].c.k[0]/=255,c[v].c.k[1]/=255,c[v].c.k[2]/=255,c[v].c.k[3]/=255}function K(c){var v,Q=c.length;for(v=0;v<Q;v+=1)if(c[v].ty===4)x(c[v].shapes)}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}(),F=function(){var W=[4,4,18];function x(c){var v,Q=c.length,Y,T;for(v=Q-1;v>=0;v-=1)if(c[v].ty==="sh")if(c[v].ks.k.i)c[v].ks.k.c=c[v].closed;else{T=c[v].ks.k.length;for(Y=0;Y<T;Y+=1){if(c[v].ks.k[Y].s)c[v].ks.k[Y].s[0].c=c[v].closed;if(c[v].ks.k[Y].e)c[v].ks.k[Y].e[0].c=c[v].closed}}else if(c[v].ty==="gr")x(c[v].it)}function K(c){var v,Q,Y=c.length,T,M,E,oo;for(Q=0;Q<Y;Q+=1){if(v=c[Q],v.hasMask){var io=v.masksProperties;M=io.length;for(T=0;T<M;T+=1)if(io[T].pt.k.i)io[T].pt.k.c=io[T].cl;else{oo=io[T].pt.k.length;for(E=0;E<oo;E+=1){if(io[T].pt.k[E].s)io[T].pt.k[E].s[0].c=io[T].cl;if(io[T].pt.k[E].e)io[T].pt.k[E].e[0].c=io[T].cl}}}if(v.ty===4)x(v.shapes)}}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var v,Q=c.assets.length;for(v=0;v<Q;v+=1)if(c.assets[v].layers)K(c.assets[v].layers)}}}}();function J(W){if(W.__complete)return;I(W),C(W),w(W),Z(W),F(W),U(W.layers,W.assets),b(W.chars,W.assets),W.__complete=!0}function L(W){if(W.t.a.length===0&&!("m"in W.t.p));}var P={};return P.completeData=J,P.checkColors=I,P.checkChars=w,P.checkPathProperties=Z,P.checkShapes=F,P.completeLayers=U,P}if(!e.dataManager)e.dataManager=z();if(!e.assetLoader)e.assetLoader=function(){function U(h){var p=h.getResponseHeader("content-type");if(p&&h.responseType==="json"&&p.indexOf("json")!==-1)return h.response;if(h.response&&_typeof$5(h.response)==="object")return h.response;if(h.response&&typeof h.response==="string")return JSON.parse(h.response);if(h.responseText)return JSON.parse(h.responseText);return null}function b(h,p,k,R){var V,C=new XMLHttpRequest;try{C.responseType="json"}catch(w){}C.onreadystatechange=function(){if(C.readyState===4)if(C.status===200)V=U(C),k(V);else try{V=U(C),k(V)}catch(w){if(R)R(w)}};try{C.open(["G","E","T"].join(""),h,!0)}catch(w){C.open(["G","E","T"].join(""),p+"/"+h,!0)}C.send()}return{load:b}}();if(y.data.type==="loadAnimation")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.dataManager.completeData(U),e.postMessage({id:y.data.id,payload:U,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var m=y.data.animation;e.dataManager.completeData(m),e.postMessage({id:y.data.id,payload:m,status:"success"})}else if(y.data.type==="loadData")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.postMessage({id:y.data.id,payload:U,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})})}),t.onmessage=function(f){var y=f.data,z=y.id,m=i[z];if(i[z]=null,y.status==="success")m.onComplete(y.payload);else if(m.onError)m.onError()}}function l(f,y){o+=1;var z="processId_"+o;return i[z]={onComplete:f,onError:y},z}function u(f,y,z){s();var m=l(y,z);t.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:m})}function g(f,y,z){s();var m=l(y,z);t.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:m})}function S(f,y,z){s();var m=l(y,z);t.postMessage({type:"complete",animation:f,id:m})}return{loadAnimation:u,loadData:g,completeAnimation:S}}(),ImagePreloader=function(){var o=function(){var b=createTag("canvas");b.width=1,b.height=1;var h=b.getContext("2d");return h.fillStyle="rgba(0,0,0,0)",h.fillRect(0,0,1,1),b}();function i(){if(this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function a(){if(this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function t(b,h,p){var k="";if(b.e)k=b.p;else if(h){var R=b.p;if(R.indexOf("images/")!==-1)R=R.split("/")[1];k=h+R}else k=p,k+=b.u?b.u:"",k+=b.p;return k}function r(b){var h=0,p=setInterval(function(){var k=b.getBBox();if(k.width||h>500)this._imageLoaded(),clearInterval(p);h+=1}.bind(this),50)}function e(b){var h=t(b,this.assetsPath,this.path),p=createNS("image");if(isSafari)this.testImageLoaded(p);else p.addEventListener("load",this._imageLoaded,!1);if(p.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",h),this._elementHelper.append)this._elementHelper.append(p);else this._elementHelper.appendChild(p);var k={img:p,assetData:b};return k}function n(b){var h=t(b,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),p.src=h;var k={img:p,assetData:b};return k}function s(b){var h={assetData:b},p=t(b,this.assetsPath,this.path);return dataManager.loadData(p,function(k){h.img=k,this._footageLoaded()}.bind(this),function(){h.img={},this._footageLoaded()}.bind(this)),h}function l(b,h){this.imagesLoadedCb=h;var p,k=b.length;for(p=0;p<k;p+=1)if(!b[p].layers){if(!b[p].t||b[p].t==="seq")this.totalImages+=1,this.images.push(this._createImageData(b[p]));else if(b[p].t===3)this.totalFootages+=1,this.images.push(this.createFootageData(b[p]))}}function u(b){this.path=b||""}function g(b){this.assetsPath=b||""}function S(b){var h=0,p=this.images.length;while(h<p){if(this.images[h].assetData===b)return this.images[h].img;h+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function z(){return this.totalFootages===this.loadedFootagesCount}function m(b,h){if(b==="svg")this._elementHelper=h,this._createImageData=this.createImageData.bind(this);else this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return U.prototype={loadAssets:l,setAssetsPath:g,setPath:u,loadedImages:y,loadedFootages:z,destroy:f,getAsset:S,createImgData:n,createImageData:e,imageLoaded:i,footageLoaded:a,setCacheType:m},U}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function o(i,a){if(this._cbs[i]){var t=this._cbs[i];for(var r=0;r<t.length;r+=1)t[r](a)}},addEventListener:function o(i,a){if(!this._cbs[i])this._cbs[i]=[];return this._cbs[i].push(a),function(){this.removeEventListener(i,a)}.bind(this)},removeEventListener:function o(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){var t=0,r=this._cbs[i].length;while(t<r){if(this._cbs[i][t]===a)this._cbs[i].splice(t,1),t-=1,r-=1;t+=1}if(!this._cbs[i].length)this._cbs[i]=null}}};var markerParser=function(){function o(i){var a=i.split(`\r
2
- `),t={},r,e=0;for(var n=0;n<a.length;n+=1)if(r=a[n].split(":"),r.length===2)t[r[0]]=r[1].trim(),e+=1;if(e===0)throw new Error;return t}return function(i){var a=[];for(var t=0;t<i.length;t+=1){var r=i[t],e={time:r.tm,duration:r.dr};try{e.payload=JSON.parse(i[t].cm)}catch(n){try{e.payload=o(i[t].cm)}catch(s){e.payload={name:i[t].cm}}}a.push(e)}return a}}(),ProjectInterface=function(){function o(i){this.compositions.push(i)}return function(){function i(a){var t=0,r=this.compositions.length;while(t<r){if(this.compositions[t].data&&this.compositions[t].data.nm===a){if(this.compositions[t].prepareFrame&&this.compositions[t].data.xt)this.compositions[t].prepareFrame(this.currentFrame);return this.compositions[t].compInterface}t+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=o,i}}(),renderers={},registerRenderer=function o(i,a){renderers[i]=a};function getRenderer(o){return renderers[o]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var o in renderers)if(renderers[o])return o;return""}function _typeof$4(o){return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$4(o)}var AnimationItem=function o(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(o){if(o.wrapper||o.container)this.wrapper=o.wrapper||o.container;var i="svg";if(o.animType)i=o.animType;else if(o.renderer)i=o.renderer;var a=getRenderer(i);if(this.renderer=new a(this,o.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,o.loop===""||o.loop===null||o.loop===void 0||o.loop===!0)this.loop=!0;else if(o.loop===!1)this.loop=!1;else this.loop=parseInt(o.loop,10);if(this.autoplay="autoplay"in o?o.autoplay:!0,this.name=o.name?o.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(o,"autoloadSegments")?o.autoloadSegments:!0,this.assetsPath=o.assetsPath,this.initialSegment=o.initialSegment,o.audioFactory)this.audioController.setAudioFactory(o.audioFactory);if(o.animationData)this.setupAnimation(o.animationData);else if(o.path){if(o.path.lastIndexOf("\\")!==-1)this.path=o.path.substr(0,o.path.lastIndexOf("\\")+1);else this.path=o.path.substr(0,o.path.lastIndexOf("/")+1);this.fileName=o.path.substr(o.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(o.path,this.configAnimation,this.onSetupError)}},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(o){dataManager.completeAnimation(o,this.configAnimation)},AnimationItem.prototype.setData=function(o,i){if(i){if(_typeof$4(i)!=="object")i=JSON.parse(i)}var a={wrapper:o,animationData:i},t=o.attributes;a.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",a.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:"";if(r==="false")a.loop=!1;else if(r==="true")a.loop=!0;else if(r!=="")a.loop=parseInt(r,10);var e=t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:t.getNamedItem("bm-autoplay")?t.getNamedItem("bm-autoplay").value:!0;a.autoplay=e!=="false",a.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"";var n=t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"";if(n==="false")a.prerender=!1;if(!a.path)this.trigger("destroy");else this.setParams(a)},AnimationItem.prototype.includeLayers=function(o){if(o.op>this.animationData.op)this.animationData.op=o.op,this.totalFrames=Math.floor(o.op-this.animationData.ip);var i=this.animationData.layers,a,t=i.length,r=o.layers,e,n=r.length;for(e=0;e<n;e+=1){a=0;while(a<t){if(i[a].id===r[e].id){i[a]=r[e];break}a+=1}}if(o.chars||o.fonts)this.renderer.globalData.fontManager.addChars(o.chars),this.renderer.globalData.fontManager.addFonts(o.fonts,this.renderer.globalData.defs);if(o.assets){t=o.assets.length;for(a=0;a<t;a+=1)this.animationData.assets.push(o.assets[a])}this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(o){this.animationData=o;var i=getExpressionsPlugin();if(i)i.initExpressions(this);this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var o=this.animationData.segments;if(!o||o.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=o.shift();this.timeCompleted=i.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(a,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var o=this.animationData.segments;if(!o)this.timeCompleted=this.totalFrames;this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(o){if(!this.renderer)return;try{if(this.animationData=o,this.initialSegment)this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0]);else this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip);if(this.renderer.configAnimation(o),!o.assets)o.assets=[];if(this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1000,this.renderer.searchExtraCompositions(o.assets),this.markers=markerParser(o.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused)this.audioController.pause()}catch(i){this.triggerConfigError(i)}},AnimationItem.prototype.waitForFontsLoaded=function(){if(!this.renderer)return;if(this.renderer.globalData.fontManager.isLoaded)this.checkLoaded();else setTimeout(this.waitForFontsLoaded.bind(this),20)},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var o=getExpressionsPlugin();if(o)o.initExpressions(this);if(this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay)this.play()}},AnimationItem.prototype.resize=function(o,i){var a=typeof o==="number"?o:void 0,t=typeof i==="number"?i:void 0;this.renderer.updateContainerSize(a,t)},AnimationItem.prototype.setSubframe=function(o){this.isSubframeEnabled=!!o},AnimationItem.prototype.gotoFrame=function(){if(this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted)this.currentFrame=this.timeCompleted;this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded===!1||!this.renderer)return;try{if(this.expressionsPlugin)this.expressionsPlugin.resetFrame();this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(o){this.triggerRenderFrameError(o)}},AnimationItem.prototype.play=function(o){if(o&&this.name!==o)return;if(this.isPaused===!0){if(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle)this._idle=!1,this.trigger("_active")}},AnimationItem.prototype.pause=function(o){if(o&&this.name!==o)return;if(this.isPaused===!1)this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause()},AnimationItem.prototype.togglePause=function(o){if(o&&this.name!==o)return;if(this.isPaused===!0)this.play();else this.pause()},AnimationItem.prototype.stop=function(o){if(o&&this.name!==o)return;this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0)},AnimationItem.prototype.getMarkerData=function(o){var i;for(var a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===o)return i;return null},AnimationItem.prototype.goToAndStop=function(o,i,a){if(a&&this.name!==a)return;var t=Number(o);if(isNaN(t)){var r=this.getMarkerData(o);if(r)this.goToAndStop(r.time,!0)}else if(i)this.setCurrentRawFrameValue(o);else this.setCurrentRawFrameValue(o*this.frameModifier);this.pause()},AnimationItem.prototype.goToAndPlay=function(o,i,a){if(a&&this.name!==a)return;var t=Number(o);if(isNaN(t)){var r=this.getMarkerData(o);if(r)if(!r.duration)this.goToAndStop(r.time,!0);else this.playSegments([r.time,r.time+r.duration],!0)}else this.goToAndStop(t,i,a);this.play()},AnimationItem.prototype.advanceTime=function(o){if(this.isPaused===!0||this.isLoaded===!1)return;var i=this.currentRawFrame+o*this.frameModifier,a=!1;if(i>=this.totalFrames-1&&this.frameModifier>0)if(!this.loop||this.playCount===this.loop){if(!this.checkSegments(i>this.totalFrames?i%this.totalFrames:0))a=!0,i=this.totalFrames-1}else if(i>=this.totalFrames){if(this.playCount+=1,!this.checkSegments(i%this.totalFrames))this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete")}else this.setCurrentRawFrameValue(i);else if(i<0){if(!this.checkSegments(i%this.totalFrames))if(this.loop&&!(this.playCount--<=0&&this.loop!==!0))if(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),!this._completedLoop)this._completedLoop=!0;else this.trigger("loopComplete");else a=!0,i=0}else this.setCurrentRawFrameValue(i);if(a)this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete")},AnimationItem.prototype.adjustSegment=function(o,i){if(this.playCount=0,o[1]<o[0]){if(this.frameModifier>0)if(this.playSpeed<0)this.setSpeed(-this.playSpeed);else this.setDirection(-1);this.totalFrames=o[0]-o[1],this.timeCompleted=this.totalFrames,this.firstFrame=o[1],this.setCurrentRawFrameValue(this.totalFrames-0.001-i)}else if(o[1]>o[0]){if(this.frameModifier<0)if(this.playSpeed<0)this.setSpeed(-this.playSpeed);else this.setDirection(1);this.totalFrames=o[1]-o[0],this.timeCompleted=this.totalFrames,this.firstFrame=o[0],this.setCurrentRawFrameValue(0.001+i)}this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(o,i){var a=-1;if(this.isPaused){if(this.currentRawFrame+this.firstFrame<o)a=o;else if(this.currentRawFrame+this.firstFrame>i)a=i-o}if(this.firstFrame=o,this.totalFrames=i-o,this.timeCompleted=this.totalFrames,a!==-1)this.goToAndStop(a,!0)},AnimationItem.prototype.playSegments=function(o,i){if(i)this.segments.length=0;if(_typeof$4(o[0])==="object"){var a,t=o.length;for(a=0;a<t;a+=1)this.segments.push(o[a])}else this.segments.push(o);if(this.segments.length&&i)this.adjustSegment(this.segments.shift(),0);if(this.isPaused)this.play()},AnimationItem.prototype.resetSegments=function(o){if(this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),o)this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(o){if(this.segments.length)return this.adjustSegment(this.segments.shift(),o),!0;return!1},AnimationItem.prototype.destroy=function(o){if(o&&this.name!==o||!this.renderer)return;this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null},AnimationItem.prototype.setCurrentRawFrameValue=function(o){this.currentRawFrame=o,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(o){this.playSpeed=o,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(o){this.playDirection=o<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(o){this.loop=o},AnimationItem.prototype.setVolume=function(o,i){if(i&&this.name!==i)return;this.audioController.setVolume(o)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(o){if(o&&this.name!==o)return;this.audioController.mute()},AnimationItem.prototype.unmute=function(o){if(o&&this.name!==o)return;this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(o){var i="";if(o.e)i=o.p;else if(this.assetsPath){var a=o.p;if(a.indexOf("images/")!==-1)a=a.split("/")[1];i=this.assetsPath+a}else i=this.path,i+=o.u?o.u:"",i+=o.p;return i},AnimationItem.prototype.getAssetData=function(o){var i=0,a=this.assets.length;while(i<a){if(o===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(o){return o?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(o,i,a){try{var t=this.renderer.getElementByPath(o);t.updateDocumentData(i,a)}catch(r){}},AnimationItem.prototype.trigger=function(o){if(this._cbs&&this._cbs[o])switch(o){case"enterFrame":this.triggerEvent(o,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(o,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(o,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(o,new BMCompleteEvent(o,this.frameMult));break;case"segmentStart":this.triggerEvent(o,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(o,new BMDestroyEvent(o,this));break;default:this.triggerEvent(o)}if(o==="enterFrame"&&this.onEnterFrame)this.onEnterFrame.call(this,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameMult));if(o==="loopComplete"&&this.onLoopComplete)this.onLoopComplete.call(this,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));if(o==="complete"&&this.onComplete)this.onComplete.call(this,new BMCompleteEvent(o,this.frameMult));if(o==="segmentStart"&&this.onSegmentStart)this.onSegmentStart.call(this,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));if(o==="destroy"&&this.onDestroy)this.onDestroy.call(this,new BMDestroyEvent(o,this))},AnimationItem.prototype.triggerRenderFrameError=function(o){var i=new BMRenderFrameErrorEvent(o,this.currentFrame);if(this.triggerEvent("error",i),this.onError)this.onError.call(this,i)},AnimationItem.prototype.triggerConfigError=function(o){var i=new BMConfigErrorEvent(o,this.currentFrame);if(this.triggerEvent("error",i),this.onError)this.onError.call(this,i)};var animationManager=function(){var o={},i=[],a=0,t=0,r=0,e=!0,n=!1;function s(x){var K=0,c=x.target;while(K<t){if(i[K].animation===c){if(i.splice(K,1),K-=1,t-=1,!c.isPaused)S()}K+=1}}function l(x,K){if(!x)return null;var c=0;while(c<t){if(i[c].elem===x&&i[c].elem!==null)return i[c].animation;c+=1}var v=new AnimationItem;return f(v,x),v.setData(x,K),v}function u(){var x,K=i.length,c=[];for(x=0;x<K;x+=1)c.push(i[x].animation);return c}function g(){r+=1,I()}function S(){r-=1}function f(x,K){x.addEventListener("destroy",s),x.addEventListener("_active",g),x.addEventListener("_idle",S),i.push({elem:K,animation:x}),t+=1}function y(x){var K=new AnimationItem;return f(K,null),K.setParams(x),K}function z(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setSpeed(x,K)}function m(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setDirection(x,K)}function U(x){var K;for(K=0;K<t;K+=1)i[K].animation.play(x)}function b(x){var K=x-a,c;for(c=0;c<t;c+=1)i[c].animation.advanceTime(K);if(a=x,r&&!n)window.requestAnimationFrame(b);else e=!0}function h(x){a=x,window.requestAnimationFrame(b)}function p(x){var K;for(K=0;K<t;K+=1)i[K].animation.pause(x)}function k(x,K,c){var v;for(v=0;v<t;v+=1)i[v].animation.goToAndStop(x,K,c)}function R(x){var K;for(K=0;K<t;K+=1)i[K].animation.stop(x)}function V(x){var K;for(K=0;K<t;K+=1)i[K].animation.togglePause(x)}function C(x){var K;for(K=t-1;K>=0;K-=1)i[K].animation.destroy(x)}function w(x,K,c){var v=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Q,Y=v.length;for(Q=0;Q<Y;Q+=1){if(c)v[Q].setAttribute("data-bm-type",c);l(v[Q],x)}if(K&&Y===0){if(!c)c="svg";var T=document.getElementsByTagName("body")[0];T.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",c),T.appendChild(M),l(M,x)}}function Z(){var x;for(x=0;x<t;x+=1)i[x].animation.resize()}function I(){if(!n&&r){if(e)window.requestAnimationFrame(h),e=!1}}function F(){n=!0}function J(){n=!1,I()}function L(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setVolume(x,K)}function P(x){var K;for(K=0;K<t;K+=1)i[K].animation.mute(x)}function W(x){var K;for(K=0;K<t;K+=1)i[K].animation.unmute(x)}return o.registerAnimation=l,o.loadAnimation=y,o.setSpeed=z,o.setDirection=m,o.play=U,o.pause=p,o.stop=R,o.togglePause=V,o.searchAnimations=w,o.resize=Z,o.goToAndStop=k,o.destroy=C,o.freeze=F,o.unfreeze=J,o.setVolume=L,o.mute=P,o.unmute=W,o.getRegisteredAnimations=u,o}(),BezierFactory=function(){var o={};o.getBezierEasing=a;var i={};function a(h,p,k,R,V){var C=V||("bez_"+h+"_"+p+"_"+k+"_"+R).replace(/\./g,"p");if(i[C])return i[C];var w=new b([h,p,k,R]);return i[C]=w,w}var t=4,r=0.001,e=0.0000001,n=10,s=11,l=1/(s-1),u=typeof Float32Array==="function";function g(h,p){return 1-3*p+3*h}function S(h,p){return 3*p-6*h}function f(h){return 3*h}function y(h,p,k){return((g(p,k)*h+S(p,k))*h+f(p))*h}function z(h,p,k){return 3*g(p,k)*h*h+2*S(p,k)*h+f(p)}function m(h,p,k,R,V){var C,w,Z=0;do if(w=p+(k-p)/2,C=y(w,R,V)-h,C>0)k=w;else p=w;while(Math.abs(C)>e&&++Z<n);return w}function U(h,p,k,R){for(var V=0;V<t;++V){var C=z(p,k,R);if(C===0)return p;var w=y(p,k,R)-h;p-=w/C}return p}function b(h){this._p=h,this._mSampleValues=u?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function h(p){var k=this._p[0],R=this._p[1],V=this._p[2],C=this._p[3];if(!this._precomputed)this._precompute();if(k===R&&V===C)return p;if(p===0)return 0;if(p===1)return 1;return y(this._getTForX(p),R,C)},_precompute:function h(){var p=this._p[0],k=this._p[1],R=this._p[2],V=this._p[3];if(this._precomputed=!0,p!==k||R!==V)this._calcSampleValues()},_calcSampleValues:function h(){var p=this._p[0],k=this._p[2];for(var R=0;R<s;++R)this._mSampleValues[R]=y(R*l,p,k)},_getTForX:function h(p){var k=this._p[0],R=this._p[2],V=this._mSampleValues,C=0,w=1,Z=s-1;for(;w!==Z&&V[w]<=p;++w)C+=l;--w;var I=(p-V[w])/(V[w+1]-V[w]),F=C+I*l,J=z(F,k,R);if(J>=r)return U(p,F,k,R);if(J===0)return F;return m(p,C,C+l,k,R)}},o}(),pooling=function(){function o(i){return i.concat(createSizedArray(i.length))}return{double:o}}(),poolFactory=function(){return function(o,i,a){var t=0,r=o,e=createSizedArray(r),n={newElement:s,release:l};function s(){var u;if(t)t-=1,u=e[t];else u=i();return u}function l(u){if(t===r)e=pooling.double(e),r*=2;if(a)a(u);e[t]=u,t+=1}return n}}(),bezierLengthPool=function(){function o(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,o)}(),segmentsLengthPool=function(){function o(){return{lengths:[],totalLength:0}}function i(a){var t,r=a.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(a.lengths[t]);a.lengths.length=0}return poolFactory(8,o,i)}();function bezFunction(){var o=Math;function i(f,y,z,m,U,b){var h=f*m+y*U+z*b-U*m-b*f-z*y;return h>-0.001&&h<0.001}function a(f,y,z,m,U,b,h,p,k){if(z===0&&b===0&&k===0)return i(f,y,m,U,h,p);var R=o.sqrt(o.pow(m-f,2)+o.pow(U-y,2)+o.pow(b-z,2)),V=o.sqrt(o.pow(h-f,2)+o.pow(p-y,2)+o.pow(k-z,2)),C=o.sqrt(o.pow(h-m,2)+o.pow(p-U,2)+o.pow(k-b,2)),w;if(R>V)if(R>C)w=R-V-C;else w=C-V-R;else if(C>V)w=C-V-R;else w=V-R-C;return w>-0.0001&&w<0.0001}var t=function(){return function(f,y,z,m){var U=getDefaultCurveSegments(),b,h,p,k,R,V=0,C,w=[],Z=[],I=bezierLengthPool.newElement();p=z.length;for(b=0;b<U;b+=1){R=b/(U-1),C=0;for(h=0;h<p;h+=1){if(k=bmPow(1-R,3)*f[h]+3*bmPow(1-R,2)*R*z[h]+3*(1-R)*bmPow(R,2)*m[h]+bmPow(R,3)*y[h],w[h]=k,Z[h]!==null)C+=bmPow(w[h]-Z[h],2);Z[h]=w[h]}if(C)C=bmSqrt(C),V+=C;I.percents[b]=R,I.lengths[b]=V}return I.addedLength=V,I}}();function r(f){var y=segmentsLengthPool.newElement(),z=f.c,m=f.v,U=f.o,b=f.i,h,p=f._length,k=y.lengths,R=0;for(h=0;h<p-1;h+=1)k[h]=t(m[h],m[h+1],U[h],b[h+1]),R+=k[h].addedLength;if(z&&p)k[h]=t(m[h],m[0],U[h],b[0]),R+=k[h].addedLength;return y.totalLength=R,y}function e(f){this.segmentLength=0,this.points=new Array(f)}function n(f,y){this.partialLength=f,this.point=y}var s=function(){var f={};return function(y,z,m,U){var b=(y[0]+"_"+y[1]+"_"+z[0]+"_"+z[1]+"_"+m[0]+"_"+m[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!f[b]){var h=getDefaultCurveSegments(),p,k,R,V,C,w=0,Z,I,F=null;if(y.length===2&&(y[0]!==z[0]||y[1]!==z[1])&&i(y[0],y[1],z[0],z[1],y[0]+m[0],y[1]+m[1])&&i(y[0],y[1],z[0],z[1],z[0]+U[0],z[1]+U[1]))h=2;var J=new e(h);R=m.length;for(p=0;p<h;p+=1){I=createSizedArray(R),C=p/(h-1),Z=0;for(k=0;k<R;k+=1)if(V=bmPow(1-C,3)*y[k]+3*bmPow(1-C,2)*C*(y[k]+m[k])+3*(1-C)*bmPow(C,2)*(z[k]+U[k])+bmPow(C,3)*z[k],I[k]=V,F!==null)Z+=bmPow(I[k]-F[k],2);Z=bmSqrt(Z),w+=Z,J.points[p]=new n(Z,I),F=I}J.segmentLength=w,f[b]=J}return f[b]}}();function l(f,y){var{percents:z,lengths:m}=y,U=z.length,b=bmFloor((U-1)*f),h=f*y.addedLength,p=0;if(b===U-1||b===0||h===m[b])return z[b];var k=m[b]>h?-1:1,R=!0;while(R){if(m[b]<=h&&m[b+1]>h)p=(h-m[b])/(m[b+1]-m[b]),R=!1;else b+=k;if(b<0||b>=U-1){if(b===U-1)return z[b];R=!1}}return z[b]+(z[b+1]-z[b])*p}function u(f,y,z,m,U,b){var h=l(U,b),p=1-h,k=o.round((p*p*p*f[0]+(h*p*p+p*h*p+p*p*h)*z[0]+(h*h*p+p*h*h+h*p*h)*m[0]+h*h*h*y[0])*1000)/1000,R=o.round((p*p*p*f[1]+(h*p*p+p*h*p+p*p*h)*z[1]+(h*h*p+p*h*h+h*p*h)*m[1]+h*h*h*y[1])*1000)/1000;return[k,R]}var g=createTypedArray("float32",8);function S(f,y,z,m,U,b,h){if(U<0)U=0;else if(U>1)U=1;var p=l(U,h);b=b>1?1:b;var k=l(b,h),R,V=f.length,C=1-p,w=1-k,Z=C*C*C,I=p*C*C*3,F=p*p*C*3,J=p*p*p,L=C*C*w,P=p*C*w+C*p*w+C*C*k,W=p*p*w+C*p*k+p*C*k,x=p*p*k,K=C*w*w,c=p*w*w+C*k*w+C*w*k,v=p*k*w+C*k*k+p*w*k,Q=p*k*k,Y=w*w*w,T=k*w*w+w*k*w+w*w*k,M=k*k*w+w*k*k+k*w*k,E=k*k*k;for(R=0;R<V;R+=1)g[R*4]=o.round((Z*f[R]+I*z[R]+F*m[R]+J*y[R])*1000)/1000,g[R*4+1]=o.round((L*f[R]+P*z[R]+W*m[R]+x*y[R])*1000)/1000,g[R*4+2]=o.round((K*f[R]+c*z[R]+v*m[R]+Q*y[R])*1000)/1000,g[R*4+3]=o.round((Y*f[R]+T*z[R]+M*m[R]+E*y[R])*1000)/1000;return g}return{getSegmentsLength:r,getNewSegment:S,getPointInSegment:u,buildBezierData:s,pointOnLine2D:i,pointOnLine3D:a}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(o,i){var a=this.offsetTime,t;if(this.propType==="multidimensional")t=createTypedArray("float32",this.pv.length);var r=i.lastIndex,e=r,n=this.keyframes.length-1,s=!0,l,u,g;while(s){if(l=this.keyframes[e],u=this.keyframes[e+1],e===n-1&&o>=u.t-a){if(l.h)l=u;r=0;break}if(u.t-a>o){r=e;break}if(e<n-1)e+=1;else r=0,s=!1}g=this.keyframesMetadata[e]||{};var S,f,y,z,m,U,b=u.t-a,h=l.t-a,p;if(l.to){if(!g.bezierData)g.bezierData=bez.buildBezierData(l.s,u.s||l.e,l.to,l.ti);var k=g.bezierData;if(o>=b||o<h){var R=o>=b?k.points.length-1:0;f=k.points[R].point.length;for(S=0;S<f;S+=1)t[S]=k.points[R].point[S]}else{if(g.__fnct)U=g.__fnct;else U=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,g.__fnct=U;y=U((o-h)/(b-h));var V=k.segmentLength*y,C,w=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastAddedLength:0;m=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastPoint:0,s=!0,z=k.points.length;while(s){if(w+=k.points[m].partialLength,V===0||y===0||m===k.points.length-1){f=k.points[m].point.length;for(S=0;S<f;S+=1)t[S]=k.points[m].point[S];break}else if(V>=w&&V<w+k.points[m+1].partialLength){C=(V-w)/k.points[m+1].partialLength,f=k.points[m].point.length;for(S=0;S<f;S+=1)t[S]=k.points[m].point[S]+(k.points[m+1].point[S]-k.points[m].point[S])*C;break}if(m<z-1)m+=1;else s=!1}i._lastPoint=m,i._lastAddedLength=w-k.points[m].partialLength,i._lastKeyframeIndex=e}}else{var Z,I,F,J,L;if(n=l.s.length,p=u.s||l.e,this.sh&&l.h!==1)if(o>=b)t[0]=p[0],t[1]=p[1],t[2]=p[2];else if(o<=h)t[0]=l.s[0],t[1]=l.s[1],t[2]=l.s[2];else{var P=createQuaternion(l.s),W=createQuaternion(p),x=(o-h)/(b-h);quaternionToEuler(t,slerp(P,W,x))}else for(e=0;e<n;e+=1){if(l.h!==1)if(o>=b)y=1;else if(o<h)y=0;else{if(l.o.x.constructor===Array){if(!g.__fnct)g.__fnct=[];if(!g.__fnct[e])Z=l.o.x[e]===void 0?l.o.x[0]:l.o.x[e],I=l.o.y[e]===void 0?l.o.y[0]:l.o.y[e],F=l.i.x[e]===void 0?l.i.x[0]:l.i.x[e],J=l.i.y[e]===void 0?l.i.y[0]:l.i.y[e],U=BezierFactory.getBezierEasing(Z,I,F,J).get,g.__fnct[e]=U;else U=g.__fnct[e]}else if(!g.__fnct)Z=l.o.x,I=l.o.y,F=l.i.x,J=l.i.y,U=BezierFactory.getBezierEasing(Z,I,F,J).get,l.keyframeMetadata=U;else U=g.__fnct;y=U((o-h)/(b-h))}if(p=u.s||l.e,L=l.h===1?l.s[e]:l.s[e]+(p[e]-l.s[e])*y,this.propType==="multidimensional")t[e]=L;else t=L}}return i.lastIndex=r,t}function slerp(o,i,a){var t=[],r=o[0],e=o[1],n=o[2],s=o[3],l=i[0],u=i[1],g=i[2],S=i[3],f,y,z,m,U;if(y=r*l+e*u+n*g+s*S,y<0)y=-y,l=-l,u=-u,g=-g,S=-S;if(1-y>0.000001)f=Math.acos(y),z=Math.sin(f),m=Math.sin((1-a)*f)/z,U=Math.sin(a*f)/z;else m=1-a,U=a;return t[0]=m*r+U*l,t[1]=m*e+U*u,t[2]=m*n+U*g,t[3]=m*s+U*S,t}function quaternionToEuler(o,i){var a=i[0],t=i[1],r=i[2],e=i[3],n=Math.atan2(2*t*e-2*a*r,1-2*t*t-2*r*r),s=Math.asin(2*a*t+2*r*e),l=Math.atan2(2*a*e-2*t*r,1-2*a*a-2*r*r);o[0]=n/degToRads,o[1]=s/degToRads,o[2]=l/degToRads}function createQuaternion(o){var i=o[0]*degToRads,a=o[1]*degToRads,t=o[2]*degToRads,r=Math.cos(i/2),e=Math.cos(a/2),n=Math.cos(t/2),s=Math.sin(i/2),l=Math.sin(a/2),u=Math.sin(t/2),g=r*e*n-s*l*u,S=s*l*n+r*e*u,f=s*e*n+r*l*u,y=r*l*n-s*e*u;return[S,f,y,g]}function getValueAtCurrentTime(){var o=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(o===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=a&&o>=a||this._caching.lastFrame<i&&o<i))){if(this._caching.lastFrame>=o)this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0;var t=this.interpolateValue(o,this._caching);this.pv=t}return this._caching.lastFrame=o,this.pv}function setVValue(o){var i;if(this.propType==="unidimensional"){if(i=o*this.mult,mathAbs(this.v-i)>0.00001)this.v=i,this._mdf=!0}else{var a=0,t=this.v.length;while(a<t){if(i=o[a]*this.mult,mathAbs(this.v[a]-i)>0.00001)this.v[a]=i,this._mdf=!0;a+=1}}}function processEffectsSequence(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)return;if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var o,i=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(o=0;o<i;o+=1)a=this.effectsSequence[o](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}function addEffect(o){this.effectsSequence.push(o),this.container.addDynamicProperty(this)}function ValueProperty(o,i,a,t){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a:i.k,this.pv=i.k,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(o,i,a,t){this.propType="multidimensional",this.mult=a||1,this.data=i,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,e=i.k.length;this.v=createTypedArray("float32",e),this.pv=createTypedArray("float32",e),this.vel=createTypedArray("float32",e);for(r=0;r<e;r+=1)this.v[r]=i.k[r]*this.mult,this.pv[r]=i.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(o,i,a,t){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(o,i,a,t){this.propType="multidimensional";var r,e=i.k.length,n,s,l,u;for(r=0;r<e-1;r+=1)if(i.k[r].to&&i.k[r].s&&i.k[r+1]&&i.k[r+1].s){if(n=i.k[r].s,s=i.k[r+1].s,l=i.k[r].to,u=i.k[r].ti,n.length===2&&!(n[0]===s[0]&&n[1]===s[1])&&bez.pointOnLine2D(n[0],n[1],s[0],s[1],n[0]+l[0],n[1]+l[1])&&bez.pointOnLine2D(n[0],n[1],s[0],s[1],s[0]+u[0],s[1]+u[1])||n.length===3&&!(n[0]===s[0]&&n[1]===s[1]&&n[2]===s[2])&&bez.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],n[0]+l[0],n[1]+l[1],n[2]+l[2])&&bez.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],s[0]+u[0],s[1]+u[1],s[2]+u[2]))i.k[r].to=null,i.k[r].ti=null;if(n[0]===s[0]&&n[1]===s[1]&&l[0]===0&&l[1]===0&&u[0]===0&&u[1]===0){if(n.length===2||n[2]===s[2]&&l[2]===0&&u[2]===0)i.k[r].to=null,i.k[r].ti=null}}this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var g=i.k[0].s.length;this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g);for(r=0;r<g;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=addEffect}var PropertyFactory=function(){function o(a,t,r,e,n){if(t.sid)t=a.globalData.slotManager.getProp(t);var s;if(!t.k.length)s=new ValueProperty(a,t,e,n);else if(typeof t.k[0]==="number")s=new MultiDimensionalProperty(a,t,e,n);else switch(r){case 0:s=new KeyframedValueProperty(a,t,e,n);break;case 1:s=new KeyframedMultidimensionalProperty(a,t,e,n);break;default:break}if(s.effectsSequence.length)n.addDynamicProperty(s);return s}var i={getProp:o};return i}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0},iterateDynamicProperties:function o(){this._mdf=!1;var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)if(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf)this._mdf=!0},initDynamicPropertyContainer:function o(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function o(){return createTypedArray("float32",2)}return poolFactory(8,o)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(o,i){this.c=o,this.setLength(i);var a=0;while(a<i)this.v[a]=pointPool.newElement(),this.o[a]=pointPool.newElement(),this.i[a]=pointPool.newElement(),a+=1},ShapePath.prototype.setLength=function(o){while(this._maxLength<o)this.doubleArrayLength();this._length=o},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(o,i,a,t,r){var e;if(this._length=Math.max(this._length,t+1),this._length>=this._maxLength)this.doubleArrayLength();switch(a){case"v":e=this.v;break;case"i":e=this.i;break;case"o":e=this.o;break;default:e=[];break}if(!e[t]||e[t]&&!r)e[t]=pointPool.newElement();e[t][0]=o,e[t][1]=i},ShapePath.prototype.setTripleAt=function(o,i,a,t,r,e,n,s){this.setXYAt(o,i,"v",n,s),this.setXYAt(a,t,"o",n,s),this.setXYAt(r,e,"i",n,s)},ShapePath.prototype.reverse=function(){var o=new ShapePath;o.setPathData(this.c,this._length);var i=this.v,a=this.o,t=this.i,r=0;if(this.c)o.setTripleAt(i[0][0],i[0][1],t[0][0],t[0][1],a[0][0],a[0][1],0,!1),r=1;var e=this._length-1,n=this._length,s;for(s=r;s<n;s+=1)o.setTripleAt(i[e][0],i[e][1],t[e][0],t[e][1],a[e][0],a[e][1],s,!1),e-=1;return o},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function o(){return new ShapePath}function i(r){var e=r._length,n;for(n=0;n<e;n+=1)pointPool.release(r.v[n]),pointPool.release(r.i[n]),pointPool.release(r.o[n]),r.v[n]=null,r.i[n]=null,r.o[n]=null;r._length=0,r.c=!1}function a(r){var e=t.newElement(),n,s=r._length===void 0?r.v.length:r._length;e.setLength(s),e.c=r.c;for(n=0;n<s;n+=1)e.setTripleAt(r.v[n][0],r.v[n][1],r.o[n][0],r.o[n][1],r.i[n][0],r.i[n][1],n);return e}var t=poolFactory(4,o,i);return t.clone=a,t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(o){if(this._length===this._maxLength)this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2;this.shapes[this._length]=o,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var o;for(o=0;o<this._length;o+=1)shapePool.release(this.shapes[o]);this._length=0};var shapeCollectionPool=function(){var o={newShapeCollection:r,release:e},i=0,a=4,t=createSizedArray(a);function r(){var n;if(i)i-=1,n=t[i];else n=new ShapeCollection;return n}function e(n){var s,l=n._length;for(s=0;s<l;s+=1)shapePool.release(n.shapes[s]);if(n._length=0,i===a)t=pooling.double(t),a*=2;t[i]=n,i+=1}return o}(),ShapePropertyFactory=function(){var o=-999999;function i(b,h,p){var k=p.lastIndex,R,V,C,w,Z,I,F,J,L,P=this.keyframes;if(b<P[0].t-this.offsetTime)R=P[0].s[0],C=!0,k=0;else if(b>=P[P.length-1].t-this.offsetTime)R=P[P.length-1].s?P[P.length-1].s[0]:P[P.length-2].e[0],C=!0;else{var W=k,x=P.length-1,K=!0,c,v,Q;while(K){if(c=P[W],v=P[W+1],v.t-this.offsetTime>b)break;if(W<x-1)W+=1;else K=!1}if(Q=this.keyframesMetadata[W]||{},C=c.h===1,k=W,!C){if(b>=v.t-this.offsetTime)J=1;else if(b<c.t-this.offsetTime)J=0;else{var Y;if(Q.__fnct)Y=Q.__fnct;else Y=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y).get,Q.__fnct=Y;J=Y((b-(c.t-this.offsetTime))/(v.t-this.offsetTime-(c.t-this.offsetTime)))}V=v.s?v.s[0]:c.e[0]}R=c.s[0]}I=h._length,F=R.i[0].length,p.lastIndex=k;for(w=0;w<I;w+=1)for(Z=0;Z<F;Z+=1)L=C?R.i[w][Z]:R.i[w][Z]+(V.i[w][Z]-R.i[w][Z])*J,h.i[w][Z]=L,L=C?R.o[w][Z]:R.o[w][Z]+(V.o[w][Z]-R.o[w][Z])*J,h.o[w][Z]=L,L=C?R.v[w][Z]:R.v[w][Z]+(V.v[w][Z]-R.v[w][Z])*J,h.v[w][Z]=L}function a(){var b=this.comp.renderedFrame-this.offsetTime,h=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,k=this._caching.lastFrame;if(!(k!==o&&(k<h&&b<h||k>p&&b>p)))this._caching.lastIndex=k<b?this._caching.lastIndex:0,this.interpolateShape(b,this.pv,this._caching);return this._caching.lastFrame=b,this.pv}function t(){this.paths=this.localShapeCollection}function r(b,h){if(b._length!==h._length||b.c!==h.c)return!1;var p,k=b._length;for(p=0;p<k;p+=1)if(b.v[p][0]!==h.v[p][0]||b.v[p][1]!==h.v[p][1]||b.o[p][0]!==h.o[p][0]||b.o[p][1]!==h.o[p][1]||b.i[p][0]!==h.i[p][0]||b.i[p][1]!==h.i[p][1])return!1;return!0}function e(b){if(!r(this.v,b))this.v=shapePool.clone(b),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection}function n(){if(this.elem.globalData.frameId===this.frameId)return;if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var b;if(this.kf)b=this.pv;else if(this.data.ks)b=this.data.ks.k;else b=this.data.pt.k;var h,p=this.effectsSequence.length;for(h=0;h<p;h+=1)b=this.effectsSequence[h](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}function s(b,h,p){this.propType="shape",this.comp=b.comp,this.container=b,this.elem=b,this.data=h,this.k=!1,this.kf=!1,this._mdf=!1;var k=p===3?h.pt.k:h.ks.k;this.v=shapePool.clone(k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=t,this.effectsSequence=[]}function l(b){this.effectsSequence.push(b),this.container.addDynamicProperty(this)}s.prototype.interpolateShape=i,s.prototype.getValue=n,s.prototype.setVValue=e,s.prototype.addEffect=l;function u(b,h,p){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=p===3?h.pt.k:h.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var k=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=o,this.reset=t,this._caching={lastFrame:o,lastIndex:0},this.effectsSequence=[a.bind(this)]}u.prototype.getValue=n,u.prototype.interpolateShape=i,u.prototype.setVValue=e,u.prototype.addEffect=l;var g=function(){var b=roundCorner;function h(p,k){if(this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=k.d,this.elem=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,k.p,1,0,this),this.s=PropertyFactory.getProp(p,k.s,1,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertEllToPath()}return h.prototype={reset:t,getValue:function p(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertEllToPath()},convertEllToPath:function p(){var k=this.p.v[0],R=this.p.v[1],V=this.s.v[0]/2,C=this.s.v[1]/2,w=this.d!==3,Z=this.v;Z.v[0][0]=k,Z.v[0][1]=R-C,Z.v[1][0]=w?k+V:k-V,Z.v[1][1]=R,Z.v[2][0]=k,Z.v[2][1]=R+C,Z.v[3][0]=w?k-V:k+V,Z.v[3][1]=R,Z.i[0][0]=w?k-V*b:k+V*b,Z.i[0][1]=R-C,Z.i[1][0]=w?k+V:k-V,Z.i[1][1]=R-C*b,Z.i[2][0]=w?k+V*b:k-V*b,Z.i[2][1]=R+C,Z.i[3][0]=w?k-V:k+V,Z.i[3][1]=R+C*b,Z.o[0][0]=w?k+V*b:k-V*b,Z.o[0][1]=R-C,Z.o[1][0]=w?k+V:k-V,Z.o[1][1]=R+C*b,Z.o[2][0]=w?k-V*b:k+V*b,Z.o[2][1]=R+C,Z.o[3][0]=w?k-V:k+V,Z.o[3][1]=R-C*b}},extendPrototype([DynamicPropertyContainer],h),h}(),S=function(){function b(h,p){if(this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=h,this.comp=h.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(h),p.sy===1)this.ir=PropertyFactory.getProp(h,p.ir,0,0,this),this.is=PropertyFactory.getProp(h,p.is,0,0.01,this),this.convertToPath=this.convertStarToPath;else this.convertToPath=this.convertPolygonToPath;if(this.pt=PropertyFactory.getProp(h,p.pt,0,0,this),this.p=PropertyFactory.getProp(h,p.p,1,0,this),this.r=PropertyFactory.getProp(h,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(h,p.or,0,0,this),this.os=PropertyFactory.getProp(h,p.os,0,0.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertToPath()}return b.prototype={reset:t,getValue:function h(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertToPath()},convertStarToPath:function h(){var p=Math.floor(this.pt.v)*2,k=Math.PI*2/p,R=!0,V=this.or.v,C=this.ir.v,w=this.os.v,Z=this.is.v,I=2*Math.PI*V/(p*2),F=2*Math.PI*C/(p*2),J,L,P,W,x=-Math.PI/2;x+=this.r.v;var K=this.data.d===3?-1:1;this.v._length=0;for(J=0;J<p;J+=1){L=R?V:C,P=R?w:Z,W=R?I:F;var c=L*Math.cos(x),v=L*Math.sin(x),Q=c===0&&v===0?0:v/Math.sqrt(c*c+v*v),Y=c===0&&v===0?0:-c/Math.sqrt(c*c+v*v);c+=+this.p.v[0],v+=+this.p.v[1],this.v.setTripleAt(c,v,c-Q*W*P*K,v-Y*W*P*K,c+Q*W*P*K,v+Y*W*P*K,J,!0),R=!R,x+=k*K}},convertPolygonToPath:function h(){var p=Math.floor(this.pt.v),k=Math.PI*2/p,R=this.or.v,V=this.os.v,C=2*Math.PI*R/(p*4),w,Z=-Math.PI*0.5,I=this.data.d===3?-1:1;Z+=this.r.v,this.v._length=0;for(w=0;w<p;w+=1){var F=R*Math.cos(Z),J=R*Math.sin(Z),L=F===0&&J===0?0:J/Math.sqrt(F*F+J*J),P=F===0&&J===0?0:-F/Math.sqrt(F*F+J*J);F+=+this.p.v[0],J+=+this.p.v[1],this.v.setTripleAt(F,J,F-L*C*V*I,J-P*C*V*I,F+L*C*V*I,J+P*C*V*I,w,!0),Z+=k*I}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),f=function(){function b(h,p){if(this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=h,this.comp=h.comp,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(h),this.p=PropertyFactory.getProp(h,p.p,1,0,this),this.s=PropertyFactory.getProp(h,p.s,1,0,this),this.r=PropertyFactory.getProp(h,p.r,0,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertRectToPath()}return b.prototype={convertRectToPath:function h(){var p=this.p.v[0],k=this.p.v[1],R=this.s.v[0]/2,V=this.s.v[1]/2,C=bmMin(R,V,this.r.v),w=C*(1-roundCorner);if(this.v._length=0,this.d===2||this.d===1)if(this.v.setTripleAt(p+R,k-V+C,p+R,k-V+C,p+R,k-V+w,0,!0),this.v.setTripleAt(p+R,k+V-C,p+R,k+V-w,p+R,k+V-C,1,!0),C!==0)this.v.setTripleAt(p+R-C,k+V,p+R-C,k+V,p+R-w,k+V,2,!0),this.v.setTripleAt(p-R+C,k+V,p-R+w,k+V,p-R+C,k+V,3,!0),this.v.setTripleAt(p-R,k+V-C,p-R,k+V-C,p-R,k+V-w,4,!0),this.v.setTripleAt(p-R,k-V+C,p-R,k-V+w,p-R,k-V+C,5,!0),this.v.setTripleAt(p-R+C,k-V,p-R+C,k-V,p-R+w,k-V,6,!0),this.v.setTripleAt(p+R-C,k-V,p+R-w,k-V,p+R-C,k-V,7,!0);else this.v.setTripleAt(p-R,k+V,p-R+w,k+V,p-R,k+V,2),this.v.setTripleAt(p-R,k-V,p-R,k-V+w,p-R,k-V,3);else if(this.v.setTripleAt(p+R,k-V+C,p+R,k-V+w,p+R,k-V+C,0,!0),C!==0)this.v.setTripleAt(p+R-C,k-V,p+R-C,k-V,p+R-w,k-V,1,!0),this.v.setTripleAt(p-R+C,k-V,p-R+w,k-V,p-R+C,k-V,2,!0),this.v.setTripleAt(p-R,k-V+C,p-R,k-V+C,p-R,k-V+w,3,!0),this.v.setTripleAt(p-R,k+V-C,p-R,k+V-w,p-R,k+V-C,4,!0),this.v.setTripleAt(p-R+C,k+V,p-R+C,k+V,p-R+w,k+V,5,!0),this.v.setTripleAt(p+R-C,k+V,p+R-w,k+V,p+R-C,k+V,6,!0),this.v.setTripleAt(p+R,k+V-C,p+R,k+V-C,p+R,k+V-w,7,!0);else this.v.setTripleAt(p-R,k-V,p-R+w,k-V,p-R,k-V,1,!0),this.v.setTripleAt(p-R,k+V,p-R,k+V-w,p-R,k+V,2,!0),this.v.setTripleAt(p+R,k+V,p+R-w,k+V,p+R,k+V,3,!0)},getValue:function h(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertRectToPath()},reset:t},extendPrototype([DynamicPropertyContainer],b),b}();function y(b,h,p){var k;if(p===3||p===4){var R=p===3?h.pt:h.ks,V=R.k;if(V.length)k=new u(b,h,p);else k=new s(b,h,p)}else if(p===5)k=new f(b,h);else if(p===6)k=new g(b,h);else if(p===7)k=new S(b,h);if(k.k)b.addDynamicProperty(k);return k}function z(){return s}function m(){return u}var U={};return U.getShapeProp=y,U.getConstructorFunction=z,U.getKeyframedConstructorFunction=m,U}();/*!
1
+ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Wr,getOwnPropertyNames:Xn}=Object;var Bn=Object.prototype.hasOwnProperty;var ho=(o,i,a)=>{a=o!=null?On(Tn(o)):{};let t=i||!o||!o.__esModule?Wr(a,"default",{value:o,enumerable:!0}):a;for(let r of Xn(o))if(!Bn.call(t,r))Wr(t,r,{get:()=>o[r],enumerable:!0});return t};var Uo=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports);var d=function(o,i,a,t){var r=arguments.length,e=r<3?i:t===null?t=Object.getOwnPropertyDescriptor(i,a):t,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")e=Reflect.decorate(o,i,a,t);else for(var s=o.length-1;s>=0;s--)if(n=o[s])e=(r<3?n(e):r>3?n(i,a,e):n(i,a))||e;return r>3&&e&&Object.defineProperty(i,a,e),e};var dt=Uo((Sc,cs)=>{cs.exports={accessibility:{betPlacedAnnouncement:"تم وضع الرهان بنجاح",gameInProgress:"اللعبة قيد التقدم",languageChanged:"تم تغيير اللغة إلى {language}"},alerts:{autobetStarted:"تم بدء وضع الرهان التلقائي",autobetStopped:"تم إيقاف وضع الرهان التلقائي",betAmountAboveMaxBet:"مبلغ الرهان أعلى من الحد الأقصى للرهان",betAmountBelowMinBet:"مبلغ الرهان أقل من الحد الأدنى للرهان",betCancelled:"تم إلغاء الرهان",betDetailsCopied:"تم نسخ تفاصيل الرهان إلى الحافظة!",betLimitReached:"تم الوصول إلى حد الرهان",betPlaced:"تم وضع الرهان بنجاح",connectionError:"خطأ في الاتصال",errorProcessingBet:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",failedToLoadBetData:"فشل تحميل بيانات الرهان",failedToShareBetDetails:"فشل في مشاركة تفاصيل الرهان",gameError:"حدث خطأ أثناء معالجة رهانك. يُرجى المحاولة مرة أخرى.",insufficientBalance:"رصيد غير كاف",notEnoughBalance:"ليس هناك توازن كاف"},autobet:{baseAmount:"المبلغ الأساسي",decrease:"ينقص",games:"ألعاب",games10:"10 ألعاب",games100:"100 لعبة",games25:"25 لعبة",games5:"5 ألعاب",games50:"50 لعبة",increase:"يزيد",infinite:"لانهائي",numberOfBets:"عدد الرهانات",onLoss:"عن الخسارة",onWin:"على ويندوز",reset:"إعادة ضبط",startAutobet:"ابدأ الرهان التلقائي",stopAutobet:"إيقاف الرهان التلقائي",stopOnLoss:"وقف الخسارة",stopOnProfit:"إيقاف الربح",stopOnWin:"توقف عند الفوز",title:"الرهان التلقائي"},common:{amount:"كمية",animation:"الرسوم المتحركة",auto:"آلي",back:"خلف",balance:"توازن",bet:"مبلغ الرهان",betAmount:"مبلغ الرهان",cancel:"يلغي",cashOut:"صرف نقدي",change:"يتغير",classic:"كلاسيكي",close:"يغلق",closeAlert:"إغلاق التنبيه",closeDialog:"إغلاق الحوار",confirm:"يتأكد",copy:"ينسخ",error:"خطأ",fairness:"العدالة",footerNavigation:"التنقل في التذييل",high:"عالي",history:"تاريخ",hotkeys:"مفاتيح التشغيل السريع",id:"بطاقة تعريف",instantBet:"الرهان الفوري",loading:"تحميل...",loadMore:"تحميل المزيد",lobby:"العودة إلى الردهة",loss:"خسارة",low:"قليل",manual:"يدوي",medium:"واسطة",multiplier:"المضاعف",next:"التالي",odds:"احتمال",payout:"الدفع",placeBet:"وضع الرهان",previous:"سابق",profit:"ربح",profitOnWin:"الربح على الفوز",provablyFair:"عادلة بشكل يمكن إثباته",rangeSlider:"شريط تمرير النطاق",risk:"مخاطرة",settings:"إعدادات",share:"يشارك",siteInformation:"معلومات الموقع",space:"فضاء",start:"يبدأ",stop:"قف",success:"نجاح",targetMultiplier:"المضاعف",thisFieldIsRequired:"هذه الخانة مطلوبه",timestamp:"وقت",toggleHotkeys:"تبديل مفاتيح التشغيل السريع",toggleSwitch:"مفتاح التبديل",viewFairnessInformation:"عرض معلومات العدالة",volume:"مقدار",win:"يفوز",winChance:"فرصة الفوز"},errors:{connection:"خطأ في الاتصال",dice:{multiplierRange:"يجب أن يكون بين 1.0102 و 9900",winChanceRange:"يجب أن يكون بين 0.01 و 98"},game:"حدث خطأ في اللعبة",insufficientBalance:"رصيد غير كاف",limbo:{multiplierRange:"يجب أن يكون المضاعف 1.01 على الأقل",winChanceRange:"يجب أن تكون فرصة الفوز بين 0.000099 و 99.9999"}},fairness:{activeClientSeed:"بذرة العميل النشط",enterClientSeed:"أدخل بذرة العميل",enterProof:"أدخل الدليل",enterPublicKey:"أدخل المفتاح العام",enterRandomness:"أدخل العشوائية",enterRequest:"أدخل الطلب",invalidGame:"تم تقديم نوع لعبة غير صالح.",noBettingHistory:"لا يوجد تاريخ مراهنة",outcomeCalculationInfo:"يتم حساب نتيجة كل لعبة باستخدام قيمة عشوائية كمدخلات.",outcomeNotVerified:"لم يتم التحقق من نتيجة هذه اللعبة",outcomeVerified:"لقد تم التحقق من نتيجة هذه اللعبة ويمكن إثبات أنها عادلة",pendingInputs:"المدخلات المعلقة",proof:"دليل",provableFairnessUnverified:"العدالة القابلة للإثبات غير مؤكدة",provableFairnessVerified:"تم التحقق من العدالة القابلة للإثبات",publicKey:"المفتاح العام",randomness:"العشوائية",request:"طلب",saveClientSeed:"حفظ بذرة العميل",verified:"تم التحقق",verifyOutcome:"التحقق من النتيجة",viewOutcome:"عرض النتيجة"},games:{dice:{result:"نتيجة",roll:"لفافة",rollOver:"انقلب",rollUnder:"تدحرج تحت",target:"هدف",title:"النرد"},keno:{autoPick:"الاختيار التلقائي",clearTable:"واضح",draw:"يرسم",hits:"الضربات",kenoGameGrid:"شبكة لعبة كينو",kenoNumber:"رقم كينو",numbers:"أرقام",pick:"يختار",select1to10Tiles:"حدد 1-10 بلاطات",selectAtLeastOneTile:"الرجاء تحديد بلاطة واحدة على الأقل",selectNumbers:"اختر الأرقام",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل",title:"كينو"},limbo:{cashout:"صرف نقدي",crashed:"تحطمت",target:"هدف",targetMultiplier:"المضاعف",title:"ليمبو"},mines:{cashout:"صرف نقدي",gem:"جوهرة",gems:"الأحجار الكريمة",mine:"مِلكِي",mines:"المناجم",nextGem:"الجوهرة التالية",reveal:"يكشف",selectRandomTile:"حدد بلاطة عشوائية",selectTileToAutobet:"الرجاء تحديد بلاطة واحدة على الأقل للمراهنة تلقائيًا",tile:"بلاط",title:"المناجم",unrevealed:"غير مكشوف"}},modals:{betResult:"نتيجة الرهان",fairnessAndHistory:"العدالة والتاريخ",gameArea:"منطقة اللعبة",gameControls:"عناصر التحكم في اللعبة"},outcomes:{draw:"يرسم",loss:"خسارة",win:"يفوز"},share:{betResultText:"تحقق من نتيجة رهاني!",betResultTitle:"نتيجة الرهان"}}});var ct=Uo((Zc,hs)=>{hs.exports={accessibility:{betPlacedAnnouncement:"Wette erfolgreich platziert",gameInProgress:"Spiel läuft",languageChanged:"Sprache geändert zu {language}"},alerts:{autobetStarted:"Autobet-Modus gestartet",autobetStopped:"Autobet-Modus gestoppt",betAmountAboveMaxBet:"Der Einsatzbetrag liegt über dem Höchsteinsatz",betAmountBelowMinBet:"Der Einsatzbetrag liegt unter dem Mindesteinsatz",betCancelled:"Wette abgesagt",betDetailsCopied:"Wettdetails in die Zwischenablage kopiert!",betLimitReached:"Einsatzlimit erreicht",betPlaced:"Wette erfolgreich platziert",connectionError:"Verbindungsfehler",errorProcessingBet:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",failedToLoadBetData:"Wettdaten konnten nicht geladen werden",failedToShareBetDetails:"Wettdetails konnten nicht geteilt werden",gameError:"Bei der Verarbeitung Ihrer Wette ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.",insufficientBalance:"Unzureichendes Gleichgewicht",notEnoughBalance:"Nicht genug Gleichgewicht"},autobet:{baseAmount:"Basisbetrag",decrease:"Verringern",games:"Spiele",games10:"10 Spiele",games100:"100 Spiele",games25:"25 Spiele",games5:"5 Spiele",games50:"50 Spiele",increase:"Zunahme",infinite:"Unendlich",numberOfBets:"Anzahl der Wetten",onLoss:"Bei Verlust",onWin:"Bei Win",reset:"Zurücksetzen",startAutobet:"Starten Sie Autobet",stopAutobet:"Stoppen Sie Autobet",stopOnLoss:"Stopp bei Verlust",stopOnProfit:"Stoppen Sie den Gewinn",stopOnWin:"Stopp bei Win",title:"Autobet"},common:{amount:"Menge",animation:"Animation",auto:"Auto",back:"Zurück",balance:"Gleichgewicht",bet:"Einsatzbetrag",betAmount:"Einsatzbetrag",cancel:"Stornieren",cashOut:"Auszahlung",change:"Ändern",classic:"Klassiker",close:"Schließen",closeAlert:"Warnung schließen",closeDialog:"Dialog schließen",confirm:"Bestätigen",copy:"Kopie",error:"Fehler",fairness:"Fairness",footerNavigation:"Footer navigation",high:"Hoch",history:"Geschichte",hotkeys:"Tastenkombinationen",id:"AUSWEIS",instantBet:"Sofortwette",loading:"Laden...",loadMore:"Mehr laden",lobby:"Zurück zur Lobby",loss:"Verlust",low:"Niedrig",manual:"Handbuch",medium:"Medium",multiplier:"Multiplikator",next:"Nächste",odds:"Chancen",payout:"Auszahlung",placeBet:"Wette platzieren",previous:"Vorherige",profit:"Profitieren",profitOnWin:"Gewinn beim Gewinn",provablyFair:"Nachweislich fair",rangeSlider:"Bereichsregler",risk:"Risiko",settings:"Einstellungen",share:"Aktie",siteInformation:"Site-Informationen",space:"RAUM",start:"Start",stop:"Stoppen",success:"Erfolg",targetMultiplier:"Multiplikator",thisFieldIsRequired:"Dieses Feld ist erforderlich",timestamp:"Zeit",toggleHotkeys:"Hotkeys umschalten",toggleSwitch:"Kippschalter",viewFairnessInformation:"Fairnessinformationen anzeigen",volume:"Volumen",win:"Gewinnen",winChance:"Gewinnchance"},errors:{connection:"Verbindungsfehler",dice:{multiplierRange:"Muss zwischen 1,0102 und 9900 liegen",winChanceRange:"Muss zwischen 0,01 und 98 liegen"},game:"Es ist ein Spielfehler aufgetreten",insufficientBalance:"Unzureichendes Gleichgewicht",limbo:{multiplierRange:"Der Multiplikator muss mindestens 1,01 betragen",winChanceRange:"Die Gewinnchance muss zwischen 0,000099 und 99,9999 liegen"}},fairness:{activeClientSeed:"Aktiver Client-Seed",enterClientSeed:"Client-Seed eingeben",enterProof:"Beweis eingeben",enterPublicKey:"Öffentlichen Schlüssel eingeben",enterRandomness:"Geben Sie Zufälligkeit ein",enterRequest:"Anfrage eingeben",invalidGame:"Ungültiger Spieltyp angegeben.",noBettingHistory:"Kein Wettverlauf",outcomeCalculationInfo:"Das Ergebnis jedes Spiels wird anhand eines Zufallswerts als Eingabe berechnet.",outcomeNotVerified:"Das Ergebnis dieses Spiels konnte nicht verifiziert werden",outcomeVerified:"Das Ergebnis dieses Spiels wurde überprüft und ist nachweislich fair",pendingInputs:"Ausstehende Eingaben",proof:"Nachweisen",provableFairnessUnverified:"Nachweisbare Fairness nicht verifiziert",provableFairnessVerified:"Nachweisbare Fairness verifiziert",publicKey:"Öffentlicher Schlüssel",randomness:"Zufälligkeit",request:"Anfrage",saveClientSeed:"Client-Seed speichern",verified:"Verifiziert",verifyOutcome:"Ergebnis überprüfen",viewOutcome:"Ergebnis anzeigen"},games:{dice:{result:"Ergebnis",roll:"Rollen",rollOver:"Sich umdrehen",rollUnder:"Unterrollen",target:"Ziel",title:"Würfel"},keno:{autoPick:"Automatische Auswahl",clearTable:"Klar",draw:"Ziehen",hits:"Treffer",kenoGameGrid:"Keno-Spielraster",kenoNumber:"Keno-Nummer",numbers:"Zahlen",pick:"Wählen",select1to10Tiles:"Wählen Sie 1–10 Kacheln aus",selectAtLeastOneTile:"Bitte wählen Sie mindestens eine Kachel aus",selectNumbers:"Zahlen auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens eine Kachel aus",title:"Keno"},limbo:{cashout:"Auszahlung",crashed:"Abgestürzt",target:"Ziel",targetMultiplier:"Multiplikator",title:"Limbo"},mines:{cashout:"Auszahlung",gem:"Juwel",gems:"Edelsteine",mine:"Meins",mines:"Minen",nextGem:"Nächster Edelstein",reveal:"Aufdecken",selectRandomTile:"Zufällige Kachel auswählen",selectTileToAutobet:"Bitte wählen Sie mindestens ein Feld für die automatische Wette aus",tile:"Fliese",title:"Minen",unrevealed:"Unenthüllt"}},modals:{betResult:"Wettergebnis",fairnessAndHistory:"Fairness und Geschichte",gameArea:"Spielbereich",gameControls:"Spielsteuerung"},outcomes:{draw:"Ziehen",loss:"Verlust",win:"Gewinnen"},share:{betResultText:"Schauen Sie sich mein Wettergebnis an!",betResultTitle:"Wettergebnis"}}});var ht=Uo((Kc,us)=>{us.exports={common:{bet:"Bet Amount",cancel:"Cancel",confirm:"Confirm",close:"Close",loading:"Loading...",error:"Error",success:"Success",back:"Back",next:"Next",previous:"Previous",start:"Start",stop:"Stop",auto:"Auto",manual:"Manual",amount:"Amount",balance:"Balance",win:"Win",loss:"Loss",profit:"Profit",payout:"Payout",multiplier:"Multiplier",odds:"Odds",history:"History",provablyFair:"Provably Fair",lobby:"Back to Lobby",fairness:"Fairness",settings:"Settings",placeBet:"Place Bet",profitOnWin:"Profit On Win",targetMultiplier:"Multiplier",winChance:"Win Chance",cashOut:"Cash Out",change:"Change",copy:"Copy",volume:"Volume",instantBet:"Instant Bet",hotkeys:"Hotkeys",animation:"Animation",risk:"Risk",classic:"Classic",low:"Low",medium:"Medium",high:"High",closeDialog:"Close dialog",closeAlert:"Close alert",toggleHotkeys:"Toggle Hotkeys",siteInformation:"Site information",footerNavigation:"Footer navigation",viewFairnessInformation:"View fairness information",share:"Share",id:"ID",timestamp:"Time",space:"SPACE",betAmount:"Bet Amount",loadMore:"Load More",thisFieldIsRequired:"This field is required",toggleSwitch:"Toggle switch",rangeSlider:"Range slider",gameInfo:"Game Info",copied:"Copied",infoIntro:"Need more information? Contact our support team to learn more about how our games work."},games:{dice:{title:"Dice",rollOver:"Roll Over",rollUnder:"Roll Under",target:"Target",roll:"Roll",result:"Result"},keno:{title:"Keno",selectNumbers:"Select Numbers",draw:"Draw",numbers:"Numbers",hits:"Hits",pick:"Pick",autoPick:"Auto Pick",clearTable:"Clear",select1to10Tiles:"Select 1-10 Tiles",kenoNumber:"Keno number",kenoGameGrid:"Keno Game Grid",selectTileToAutobet:"Please select at least one tile",selectAtLeastOneTile:"Please select at least one tile"},limbo:{title:"Limbo",target:"Target",crashed:"Crashed",cashout:"Cash Out",targetMultiplier:"Multiplier",multiplierError:"Must be at least 1.01",winChanceError:"Must be between 0.000099 and 99.9999"},mines:{title:"Mines",mines:"Mines",gems:"Gems",reveal:"Reveal",cashout:"Cash Out",selectRandomTile:"Select Random Tile",nextGem:"Next Gem",mine:"Mine",gem:"Gem",tile:"Tile",unrevealed:"Unrevealed",selectTileToAutobet:"Please select at least one tile to autobet"}},autobet:{title:"Autobet",numberOfBets:"Number of Bets",onWin:"On Win",onLoss:"On Loss",stopOnWin:"Stop on Win",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",increase:"Increase",decrease:"Decrease",reset:"Reset",baseAmount:"Base Amount",games5:"5 games",games10:"10 games",games25:"25 games",games50:"50 games",games100:"100 games",infinite:"Infinite",startAutobet:"Start Autobet",stopAutobet:"Stop Autobet",games:"Games"},modals:{betResult:"Bet Result",fairnessAndHistory:"Fairness and History",gameArea:"Game Area",gameControls:"Game Controls",gameInfo:"Game Info"},alerts:{betPlaced:"Bet placed successfully",betCancelled:"Bet cancelled",insufficientBalance:"Insufficient balance",connectionError:"Connection error",gameError:"There was an error processing your bet. Please try again.",failedToLoadBetData:"Failed to load bet data",betDetailsCopied:"Bet details copied to clipboard!",betLimitReached:"Bet limit reached",failedToShareBetDetails:"Failed to share bet details",notEnoughBalance:"Not enough balance",errorProcessingBet:"There was an error processing your bet. Please try again.",autobetStopped:"Stopped autobet mode",autobetStarted:"Started autobet mode",betAmountBelowMinBet:"Bet amount is below minimum bet ({value})",betAmountAboveMaxBet:"Bet amount is above maximum bet ({value})"},fairness:{activeClientSeed:"Active Client Seed",enterClientSeed:"Enter Client Seed",saveClientSeed:"Save Client Seed",publicKey:"Active Public Key",request:"Request",proof:"Proof",randomness:"Randomness",noBettingHistory:"No betting history",verifyOutcome:"Verify Outcome",enterPublicKey:"Enter Public Key",enterRequest:"Enter Request",enterProof:"Enter Proof",enterRandomness:"Enter Randomness",outcomeCalculationInfo:"This game uses a provably fair algorithm that ensures the outcome is fair and transparent.",learnMore:"Learn More",info:{p1:"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome.",p2:"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety.",p3:"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time.",p4:"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.",moreInfo:"Need more information? Contact our support team to learn more about how our games work."},newClientSeed:"New Client Seed",pendingInputs:"Pending Inputs",provableFairnessVerified:"Provable Fairness Verified",provableFairnessUnverified:"Provable Fairness Unverified",viewOutcome:"View Outcome",invalidGame:"Invalid game type provided.",outcomeVerified:"The outcome of this round has been verified with our public key and is provably fair.",outcomeNotVerified:"The outcome of this game could not be verified. Double check you have entered the correct information and try again.",verified:"Verified"},share:{betResultTitle:"Bet Result",betResultText:"Check out my bet result!"},errors:{dice:{multiplierRange:"Must be between 1.0102 and 9900",winChanceRange:"Must be between 0.01 and 98"}},accessibility:{sliderValue:"{value} out of {max}"},gameInfo:{howItWorks:"How it works",tutorial:"Tutorial",payouts:"Payouts & odds",tips:"Tips",strategyTitle:"Strategy",dice:{title:"Dice",overview:"Set a target number and choose whether the roll will land under or over it. Moving the slider changes your win chance and multiplier—a higher chance lowers the multiplier, a lower chance increases it. Each round is one independent roll on the game’s scale (shown in-game).",how1:"Choose Roll Under or Roll Over.",how2:"Set your target number (or adjust Win Chance/Multiplier).",how3:"Enter your bet amount and press Place Bet.",how4:"We generate one random result (displayed on the 0–99.99 scale in-game).",how5:"You win if the result is in your chosen range: Under wins on numbers strictly less than the target; Over wins on numbers strictly greater than the target.",how6:"Your payout is bet × the shown multiplier, which updates as you move the slider.",strategyTip:"Pick your volatility. A lower win chance (tight range) yields bigger multipliers but rarer hits. A higher win chance (wide range) yields smaller multipliers but more frequent wins. Over/Under is symmetric—choose whichever side suits your target and session goals. Size your bets to your bankroll for steadier swings.",provablyFair:"Our verifiable randomness system generates every Dice roll. After each round, you can view the inputs and proof, verify the roll with our public key, and reproduce the same result."},keno:{title:"Keno",overview:"Keno is a quick and simple game: pick your lucky numbers and try to match the draw. You can choose 1–10 numbers from 1–40, and we then draw 10 numbers. The more of your picks that hit, the higher your payout. Fewer picks = higher multipliers per hit; more picks = more ways to hit something each round.",how1:"Pick 1–10 numbers (“spots”) on the 1–40 board.",how2:"Set your bet amount and place your bet.",how3:"We draw 10 winning numbers; your matches are highlighted.",how4:"Payouts depend on how many spots you selected and how many hits you got—check the paytable (it updates when you change your number of spots).",how5:"You can never hit more numbers than you selected, and the maximum selection is 10.",strategyTip:"Choose your volatility. Picking fewer spots (1–3) means rarer wins but much bigger multipliers. More spots (7–10) give more frequent hits but smaller average returns per hit. A middle range (4–6) balances hit rate and payout. Adjust your bet size to match your risk preference and bankroll.",provablyFair:"Our verifiable randomness system generates every Keno draw. After each round, you can view the inputs and proof, verify the draw with our public key, and reproduce the same result."},mines:{title:"Mines",overview:"Mines is about picking safe tiles and deciding when to cash out. Before the round starts, choose how many mines will be hidden on the board. Each safe tile you reveal increases your multiplier. Hit a mine, and the round ends with no payout. More mines raise the risk but also the potential reward per successful reveal.",how1:"Choose the number of mines for this round.",how2:"Set your bet amount and press Place Bet.",how3:"Click tiles to reveal them: a safe tile increases your multiplier; a mine ends the round.",how4:"You can press Cash Out at any time to lock in your current multiplier.",how5:"Your payout is bet × the current multiplier when you Cash Out.",how6:"The round ends when you Cash Out or when a mine is revealed.",strategyTip:"Pick your volatility. Fewer mines = safer reveals and smaller multipliers per step. More mines = riskier reveals with bigger multipliers. Set a target or use a stop-loss to manage swings. Consistent bet sizing and disciplined cash outs help keep variance in check.",provablyFair:"Our verifiable randomness system generates each board’s hidden mine layout. After every round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."},limbo:{title:"Limbo",overview:"Pick a target multiplier and try to hit it. In Limbo, you set your desired payout, and the game draws a single random outcome multiplier. If the outcome is at least your target, you win. If it’s lower, you lose. A higher chance lowers the multiplier; a lower chance increases it. Each round resolves instantly.",how1:"Set your target multiplier (or adjust Win Chance/Multiplier).",how2:"Enter your bet amount and press Place Bet.",how3:"We generate one random outcome multiplier.",how4:"You win if the outcome is greater than or equal to your target.",how5:"Your payout is bet × your target multiplier; otherwise, you lose your bet.",strategyTip:"Choose your volatility. Lower targets win more often but pay less, while higher targets hit rarely but pay much more. Consider a fixed target per session or mix in occasional long shots, and size bets consistently to manage variance.",provablyFair:"Our verifiable randomness system generates every Limbo outcome. After each round, you can view the inputs and proof, verify the result with our public key, and reproduce the same result."}}}});var ut=Uo((Rc,fs)=>{fs.exports={accessibility:{betPlacedAnnouncement:"Apuesta realizada con éxito",gameInProgress:"Juego en progreso",languageChanged:"Idioma cambiado a {language}"},alerts:{autobetStarted:"Se inició el modo de apuesta automática",autobetStopped:"Se detuvo el modo de apuesta automática",betAmountAboveMaxBet:"El monto de la apuesta es superior a la apuesta máxima",betAmountBelowMinBet:"El monto de la apuesta es inferior a la apuesta mínima",betCancelled:"Apuesta cancelada",betDetailsCopied:"¡Detalles de la apuesta copiados al portapapeles!",betLimitReached:"Límite de apuesta alcanzado",betPlaced:"Apuesta realizada con éxito",connectionError:"Error de conexión",errorProcessingBet:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",failedToLoadBetData:"No se pudieron cargar los datos de la apuesta",failedToShareBetDetails:"No se pudieron compartir los detalles de la apuesta",gameError:"Se produjo un error al procesar tu apuesta. Inténtalo de nuevo.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"No hay suficiente equilibrio"},autobet:{baseAmount:"Monto base",decrease:"Disminuir",games:"Juegos",games10:"10 juegos",games100:"100 juegos",games25:"25 juegos",games5:"5 juegos",games50:"50 juegos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apuestas",onLoss:"Sobre la pérdida",onWin:"En Win",reset:"Reiniciar",startAutobet:"Iniciar apuesta automática",stopAutobet:"Detener la apuesta automática",stopOnLoss:"Detener la pérdida",stopOnProfit:"Detener las ganancias",stopOnWin:"Detenerse en Win",title:"Apuesta automática"},common:{amount:"Cantidad",animation:"Animación",auto:"Auto",back:"Atrás",balance:"Balance",bet:"Monto de la apuesta",betAmount:"Monto de la apuesta",cancel:"Cancelar",cashOut:"Retiro de efectivo",change:"Cambiar",classic:"Clásico",close:"Cerca",closeAlert:"Cerrar alerta",closeDialog:"Cerrar diálogo",confirm:"Confirmar",copy:"Copiar",error:"Error",fairness:"Justicia",footerNavigation:"Navegación de pie de página",high:"Alto",history:"Historia",hotkeys:"Teclas de acceso rápido",id:"IDENTIFICACIÓN",instantBet:"Apuesta instantánea",loading:"Cargando...",loadMore:"Cargar más",lobby:"Volver al vestíbulo",loss:"Pérdida",low:"Bajo",manual:"Manual",medium:"Medio",multiplier:"Multiplicador",next:"Próximo",odds:"Impares",payout:"Pago",placeBet:"Realizar apuesta",previous:"Anterior",profit:"Ganancia",profitOnWin:"Ganancias al ganar",provablyFair:"Demostrablemente justo",rangeSlider:"Control deslizante de rango",risk:"Riesgo",settings:"Ajustes",share:"Compartir",siteInformation:"Información del sitio",space:"ESPACIO",start:"Comenzar",stop:"Detener",success:"Éxito",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo es obligatorio",timestamp:"Tiempo",toggleHotkeys:"Alternar teclas de acceso rápido",toggleSwitch:"Interruptor de palanca",viewFairnessInformation:"Ver información de equidad",volume:"Volumen",win:"Ganar",winChance:"Oportunidad de ganar"},errors:{connection:"Error de conexión",dice:{multiplierRange:"Debe estar entre 1.0102 y 9900",winChanceRange:"Debe estar entre 0,01 y 98"},game:"Se produjo un error en el juego",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"El multiplicador debe ser al menos 1,01",winChanceRange:"La probabilidad de ganar debe estar entre 0,000099 y 99,9999"}},fairness:{activeClientSeed:"Semilla de cliente activa",enterClientSeed:"Introducir semilla de cliente",enterProof:"Introducir prueba",enterPublicKey:"Introducir clave pública",enterRandomness:"Entra la aleatoriedad",enterRequest:"Introducir solicitud",invalidGame:"Tipo de juego proporcionado no válido.",noBettingHistory:"Sin historial de apuestas",outcomeCalculationInfo:"El resultado de cada juego se calcula utilizando un valor aleatorio como entrada.",outcomeNotVerified:"No se pudo verificar el resultado de este juego.",outcomeVerified:"El resultado de este juego ha sido verificado y es demostrablemente justo.",pendingInputs:"Entradas pendientes",proof:"Prueba",provableFairnessUnverified:"Justicia demostrable no verificada",provableFairnessVerified:"Justicia demostrable verificada",publicKey:"Clave pública",randomness:"Aleatoriedad",request:"Pedido",saveClientSeed:"Guardar semilla de cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rollo",rollOver:"Dese la vuelta",rollUnder:"Rodar por debajo",target:"Objetivo",title:"Dados"},keno:{autoPick:"Selección automática",clearTable:"Claro",draw:"Dibujar",hits:"Éxitos",kenoGameGrid:"Cuadrícula del juego Keno",kenoNumber:"Número de Keno",numbers:"Números",pick:"Elegir",select1to10Tiles:"Seleccione de 1 a 10 fichas",selectAtLeastOneTile:"Por favor seleccione al menos un mosaico",selectNumbers:"Seleccionar números",selectTileToAutobet:"Por favor seleccione al menos un mosaico",title:"Keno"},limbo:{cashout:"Retiro de efectivo",crashed:"Se estrelló",target:"Objetivo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Retiro de efectivo",gem:"Joya",gems:"Gemas",mine:"Mío",mines:"Minas",nextGem:"Próxima joya",reveal:"Revelar",selectRandomTile:"Seleccionar mosaico aleatorio",selectTileToAutobet:"Seleccione al menos una ficha para apostar automáticamente",tile:"Teja",title:"Minas",unrevealed:"No revelado"}},modals:{betResult:"Resultado de la apuesta",fairnessAndHistory:"Justicia e historia",gameArea:"Área de juego",gameControls:"Controles del juego"},outcomes:{draw:"Dibujar",loss:"Pérdida",win:"Ganar"},share:{betResultText:"¡Mira el resultado de mi apuesta!",betResultTitle:"Resultado de la apuesta"}}});var ft=Uo((Uc,ps)=>{ps.exports={accessibility:{betPlacedAnnouncement:"Veto asetettu onnistuneesti",gameInProgress:"Peli käynnissä",languageChanged:"Kieli vaihdettu muotoon {language}"},alerts:{autobetStarted:"Automaattivedonlyöntitila käynnistetty",autobetStopped:"Automaattivedonlyöntitila pysäytetty",betAmountAboveMaxBet:"Panossumma on suurempi kuin maksimipanos",betAmountBelowMinBet:"Panos on alle minimipanoksen",betCancelled:"Veto peruttu",betDetailsCopied:"Vedon tiedot kopioitu leikepöydälle!",betLimitReached:"Panosraja saavutettu",betPlaced:"Veto asetettu onnistuneesti",connectionError:"Yhteysvirhe",errorProcessingBet:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",failedToLoadBetData:"Vedonlyöntitietojen lataus epäonnistui",failedToShareBetDetails:"Vedon tietojen jakaminen epäonnistui",gameError:"Vedon käsittelyssä tapahtui virhe. Yritä uudelleen.",insufficientBalance:"Riittämätön saldo",notEnoughBalance:"Ei tarpeeksi tasapainoa"},autobet:{baseAmount:"Perusmäärä",decrease:"Vähennä",games:"Pelit",games10:"10 peliä",games100:"100 peliä",games25:"25 peliä",games5:"5 peliä",games50:"50 peliä",increase:"Lisätä",infinite:"Ääretön",numberOfBets:"Vetojen määrä",onLoss:"Tappiossa",onWin:"Voitossa",reset:"Nollaa",startAutobet:"Aloita automaattiveto",stopAutobet:"Pysäytä automaattinen veto",stopOnLoss:"Stop on Loss",stopOnProfit:"Pysäytä voitto",stopOnWin:"Pysähdy voitossa",title:"Automaattiveto"},common:{amount:"Määrä",animation:"Animaatio",auto:"Auto",back:"Takaisin",balance:"Saldo",bet:"Panossumma",betAmount:"Panossumma",cancel:"Peruuttaa",cashOut:"Käteisnosto",change:"Muuttaa",classic:"Klassinen",close:"Lähellä",closeAlert:"Sulje hälytys",closeDialog:"Sulje valintaikkuna",confirm:"Vahvistaa",copy:"Kopioida",error:"Virhe",fairness:"Oikeudenmukaisuus",footerNavigation:"Alatunnisteen navigointi",high:"Korkea",history:"Historia",hotkeys:"Pikanäppäimet",id:"Henkilöllisyystodistus",instantBet:"Pikaveto",loading:"Ladataan...",loadMore:"Lataa lisää",lobby:"Takaisin aulaan",loss:"Menetys",low:"Matala",manual:"Manuaalinen",medium:"Keskikokoinen",multiplier:"Kerroin",next:"Seuraava",odds:"Kertoimet",payout:"Maksu",placeBet:"Aseta veto",previous:"Edellinen",profit:"Voitto",profitOnWin:"Voitto voitosta",provablyFair:"Todistettavasti reilu",rangeSlider:"Alueen liukusäädin",risk:"Riski",settings:"Asetukset",share:"Jakaa",siteInformation:"Sivuston tiedot",space:"AVARUUS",start:"Aloita",stop:"Stop",success:"Menestys",targetMultiplier:"Kerroin",thisFieldIsRequired:"Tämä kenttä on pakollinen",timestamp:"Aika",toggleHotkeys:"Pikanäppäimet päälle/pois",toggleSwitch:"Kytkin",viewFairnessInformation:"Näytä oikeudenmukaisuustiedot",volume:"Äänenvoimakkuus",win:"Voittaa",winChance:"Voita mahdollisuus"},errors:{connection:"Yhteysvirhe",dice:{multiplierRange:"Täytyy olla välillä 1,0102 ja 9900",winChanceRange:"Täytyy olla välillä 0,01–98"},game:"Pelivirhe tapahtui",insufficientBalance:"Riittämätön saldo",limbo:{multiplierRange:"Kertoimen on oltava vähintään 1,01",winChanceRange:"Voittomahdollisuuden on oltava välillä 0,000099 ja 99,9999"}},fairness:{activeClientSeed:"Aktiivisen asiakkaan siemen",enterClientSeed:"Syötä asiakkaan siemen",enterProof:"Syötä todiste",enterPublicKey:"Syötä julkinen avain",enterRandomness:"Syötä satunnaisuus",enterRequest:"Syötä pyyntö",invalidGame:"Annettu pelityyppi on virheellinen.",noBettingHistory:"Ei vedonlyöntihistoriaa",outcomeCalculationInfo:"Kunkin pelin tulos lasketaan käyttämällä syötteenä satunnaista arvoa.",outcomeNotVerified:"Tämän pelin lopputulosta ei voitu vahvistaa",outcomeVerified:"Tämän pelin lopputulos on vahvistettu ja todistettavasti oikeudenmukainen",pendingInputs:"Odottavat syötteet",proof:"Todiste",provableFairnessUnverified:"Todistettava oikeudenmukaisuus Vahvistamaton",provableFairnessVerified:"Todistettava oikeudenmukaisuus vahvistettu",publicKey:"Julkinen avain",randomness:"Satunnaisuus",request:"Pyytää",saveClientSeed:"Tallenna asiakkaan siemen",verified:"Vahvistettu",verifyOutcome:"Varmista tulos",viewOutcome:"Näytä tulos"},games:{dice:{result:"Tulos",roll:"Rulla",rollOver:"Kaatuminen",rollUnder:"Rullaa alle",target:"Kohde",title:"Nopat"},keno:{autoPick:"Automaattinen valinta",clearTable:"Tyhjennä",draw:"Piirrä",hits:"Osumia",kenoGameGrid:"Keno-peliruudukko",kenoNumber:"Keno-numero",numbers:"Numerot",pick:"Valita",select1to10Tiles:"Valitse 1–10 laattaa",selectAtLeastOneTile:"Valitse vähintään yksi laatta",selectNumbers:"Valitse numerot",selectTileToAutobet:"Valitse vähintään yksi laatta",title:"Keno"},limbo:{cashout:"Käteisnosto",crashed:"Kaatui",target:"Kohde",targetMultiplier:"Kerroin",title:"Limbo"},mines:{cashout:"Käteisnosto",gem:"Helmi",gems:"Jalokivet",mine:"Minun",mines:"Kaivokset",nextGem:"Seuraava helmi",reveal:"Paljastaa",selectRandomTile:"Valitse satunnainen laatta",selectTileToAutobet:"Valitse vähintään yksi ruutu automaattista vetoa varten",tile:"Laatta",title:"Kaivokset",unrevealed:"Paljastumaton"}},modals:{betResult:"Vedon tulos",fairnessAndHistory:"Oikeudenmukaisuus ja historia",gameArea:"Pelialue",gameControls:"Pelin ohjaimet"},outcomes:{draw:"Piirrä",loss:"Menetys",win:"Voittaa"},share:{betResultText:"Katso vedon tulokseni!",betResultTitle:"Vedon tulos"}}});var pt=Uo((Wc,gs)=>{gs.exports={accessibility:{betPlacedAnnouncement:"Pari placé avec succès",gameInProgress:"Jeu en cours",languageChanged:"Langue modifiée en {language}"},alerts:{autobetStarted:"Mode de pari automatique démarré",autobetStopped:"Mode de pari automatique arrêté",betAmountAboveMaxBet:"Le montant de la mise est supérieur à la mise maximale",betAmountBelowMinBet:"Le montant de la mise est inférieur à la mise minimale",betCancelled:"Pari annulé",betDetailsCopied:"Détails du pari copiés dans le presse-papiers !",betLimitReached:"Limite de mise atteinte",betPlaced:"Pari placé avec succès",connectionError:"Erreur de connexion",errorProcessingBet:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",failedToLoadBetData:"Échec du chargement des données de pari",failedToShareBetDetails:"Impossible de partager les détails du pari",gameError:"Une erreur s'est produite lors du traitement de votre pari. Veuillez réessayer.",insufficientBalance:"Solde insuffisant",notEnoughBalance:"Pas assez d'équilibre"},autobet:{baseAmount:"Montant de base",decrease:"Diminuer",games:"Jeux",games10:"10 jeux",games100:"100 jeux",games25:"25 jeux",games5:"5 jeux",games50:"50 jeux",increase:"Augmenter",infinite:"Infini",numberOfBets:"Nombre de paris",onLoss:"Sur la perte",onWin:"Sur Win",reset:"Réinitialiser",startAutobet:"Démarrer Autobet",stopAutobet:"Arrêter Autobet",stopOnLoss:"Arrêtez la perte",stopOnProfit:"Arrêtez le profit",stopOnWin:"Arrêtez-vous sur Win",title:"Autobet"},common:{amount:"Montant",animation:"Animation",auto:"Auto",back:"Dos",balance:"Équilibre",bet:"Montant de la mise",betAmount:"Montant de la mise",cancel:"Annuler",cashOut:"Encaissement",change:"Changement",classic:"Classique",close:"Fermer",closeAlert:"Fermer l'alerte",closeDialog:"Fermer la boîte de dialogue",confirm:"Confirmer",copy:"Copie",error:"Erreur",fairness:"Justice",footerNavigation:"Navigation de pied de page",high:"Haut",history:"Histoire",hotkeys:"Raccourcis clavier",id:"IDENTIFIANT",instantBet:"Pari instantané",loading:"Chargement...",loadMore:"Charger plus",lobby:"Retour au hall",loss:"Perte",low:"Faible",manual:"Manuel",medium:"Moyen",multiplier:"Multiplicateur",next:"Suivant",odds:"Chances",payout:"Paiement",placeBet:"Placer un pari",previous:"Précédent",profit:"Profit",profitOnWin:"Profit sur victoire",provablyFair:"Prouvablement équitable",rangeSlider:"Curseur de plage",risk:"Risque",settings:"Paramètres",share:"Partager",siteInformation:"Informations sur le site",space:"ESPACE",start:"Commencer",stop:"Arrêt",success:"Succès",targetMultiplier:"Multiplicateur",thisFieldIsRequired:"Ce champ est obligatoire",timestamp:"Temps",toggleHotkeys:"Basculer les raccourcis clavier",toggleSwitch:"Interrupteur à bascule",viewFairnessInformation:"Afficher les informations sur l'équité",volume:"Volume",win:"Gagner",winChance:"Chance de gagner"},errors:{connection:"Erreur de connexion",dice:{multiplierRange:"Doit être compris entre 1,0102 et 9900",winChanceRange:"Doit être compris entre 0,01 et 98"},game:"Une erreur de jeu s'est produite",insufficientBalance:"Solde insuffisant",limbo:{multiplierRange:"Le multiplicateur doit être d'au moins 1,01",winChanceRange:"Les chances de gagner doivent être comprises entre 0,000099 et 99,9999"}},fairness:{activeClientSeed:"Graine de client active",enterClientSeed:"Entrez Client Seed",enterProof:"Entrez la preuve",enterPublicKey:"Entrez la clé publique",enterRandomness:"Entrez dans le hasard",enterRequest:"Entrer la demande",invalidGame:"Type de jeu non valide fourni.",noBettingHistory:"Aucun historique de paris",outcomeCalculationInfo:"Le résultat de chaque jeu est calculé à l’aide d’une valeur aléatoire en entrée.",outcomeNotVerified:"Le résultat de ce match n'a pas pu être vérifié",outcomeVerified:"Le résultat de ce jeu a été vérifié et est prouvé équitable",pendingInputs:"Entrées en attente",proof:"Preuve",provableFairnessUnverified:"Équité prouvable non vérifiée",provableFairnessVerified:"Équité prouvable vérifiée",publicKey:"Clé publique",randomness:"caractère aléatoire",request:"Demande",saveClientSeed:"Enregistrer la graine du client",verified:"Vérifié",verifyOutcome:"Vérifier le résultat",viewOutcome:"Voir le résultat"},games:{dice:{result:"Résultat",roll:"Rouler",rollOver:"Rouler sur",rollUnder:"Rouler sous",target:"Cible",title:"dés"},keno:{autoPick:"Sélection automatique",clearTable:"Clair",draw:"Dessiner",hits:"Coups",kenoGameGrid:"Grille de jeu Keno",kenoNumber:"Numéro de Keno",numbers:"Nombres",pick:"Prendre",select1to10Tiles:"Sélectionnez 1 à 10 tuiles",selectAtLeastOneTile:"Veuillez sélectionner au moins une tuile",selectNumbers:"Sélectionner des numéros",selectTileToAutobet:"Veuillez sélectionner au moins une tuile",title:"Kéno"},limbo:{cashout:"Encaissement",crashed:"Crashé",target:"Cible",targetMultiplier:"Multiplicateur",title:"Limbo"},mines:{cashout:"Encaissement",gem:"Gemme",gems:"Gemmes",mine:"Le mien",mines:"Mines",nextGem:"Prochain joyau",reveal:"Révéler",selectRandomTile:"Sélectionner une tuile aléatoire",selectTileToAutobet:"Veuillez sélectionner au moins une tuile pour effectuer un pari automatique",tile:"Tuile",title:"Mines",unrevealed:"Non révélé"}},modals:{betResult:"Résultat du pari",fairnessAndHistory:"Équité et histoire",gameArea:"Zone de jeu",gameControls:"Commandes du jeu"},outcomes:{draw:"Dessiner",loss:"Perte",win:"Gagner"},share:{betResultText:"Découvrez le résultat de mon pari !",betResultTitle:"Résultat du pari"}}});var gt=Uo((Vc,bs)=>{bs.exports={accessibility:{betPlacedAnnouncement:"दांव सफलतापूर्वक लगाया गया",gameInProgress:"गेम चालू है",languageChanged:"भाषा बदलकर {language} कर दी गई"},alerts:{autobetStarted:"ऑटोबेट मोड शुरू किया गया",autobetStopped:"ऑटोबेट मोड बंद कर दिया गया",betAmountAboveMaxBet:"दांव की राशि अधिकतम दांव से अधिक है",betAmountBelowMinBet:"दांव की राशि न्यूनतम दांव से कम है",betCancelled:"शर्त रद्द",betDetailsCopied:"शर्त विवरण क्लिपबोर्ड पर कॉपी किया गया!",betLimitReached:"दांव की सीमा पूरी हो गई",betPlaced:"दांव सफलतापूर्वक लगाया गया",connectionError:"संपर्क त्रुटि",errorProcessingBet:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",failedToLoadBetData:"दांव डेटा लोड करने में विफल",failedToShareBetDetails:"शर्त विवरण साझा करने में विफल",gameError:"आपकी शर्त संसाधित करते समय एक त्रुटि हुई। कृपया पुनः प्रयास करें।",insufficientBalance:"अपर्याप्त शेषराशि",notEnoughBalance:"पर्याप्त संतुलन नहीं"},autobet:{baseAmount:"आधार राशि",decrease:"घटाना",games:"खेल",games10:"10 खेल",games100:"100 खेल",games25:"25 खेल",games5:"5 खेल",games50:"50 खेल",increase:"बढ़ोतरी",infinite:"अनंत",numberOfBets:"दांवों की संख्या",onLoss:"हानि पर",onWin:"जीत पर",reset:"रीसेट करें",startAutobet:"ऑटोबेट शुरू करें",stopAutobet:"ऑटोबेट रोकें",stopOnLoss:"हानि पर रोक",stopOnProfit:"लाभ पर रोक",stopOnWin:"जीत पर रोक",title:"ऑटोबेट"},common:{amount:"मात्रा",animation:"एनिमेशन",auto:"ऑटो",back:"पीछे",balance:"संतुलन",bet:"दांव राशि",betAmount:"दांव राशि",cancel:"रद्द करना",cashOut:"नकदी निकलना",change:"परिवर्तन",classic:"क्लासिक",close:"बंद करना",closeAlert:"अलर्ट बंद करें",closeDialog:"संवाद बंद करें",confirm:"पुष्टि करना",copy:"प्रतिलिपि",error:"गलती",fairness:"फेयरनेस",footerNavigation:"पाद नेविगेशन",high:"उच्च",history:"इतिहास",hotkeys:"हॉटकी",id:"पहचान",instantBet:"तत्काल शर्त",loading:"लोड हो रहा है...",loadMore:"और लोड करें",lobby:"लॉबी पर वापस जाएँ",loss:"नुकसान",low:"कम",manual:"नियमावली",medium:"मध्यम",multiplier:"गुणक",next:"अगला",odds:"कठिनाइयाँ",payout:"भुगतान",placeBet:"दांव लगाओ",previous:"पहले का",profit:"लाभ",profitOnWin:"जीत पर लाभ",provablyFair:"सिद्धतः निष्पक्ष",rangeSlider:"रेंज स्लाइडर",risk:"जोखिम",settings:"सेटिंग्स",share:"शेयर करना",siteInformation:"साइट जानकारी",space:"अंतरिक्ष",start:"शुरू",stop:"रुकना",success:"सफलता",targetMultiplier:"गुणक",thisFieldIsRequired:"यह फ़ील्ड आवश्यक है",timestamp:"समय",toggleHotkeys:"टॉगल हॉटकीज़",toggleSwitch:"गिल्ली टहनी",viewFairnessInformation:"निष्पक्षता जानकारी देखें",volume:"आयतन",win:"जीतना",winChance:"जीत का मौका"},errors:{connection:"संपर्क त्रुटि",dice:{multiplierRange:"1.0102 और 9900 के बीच होना चाहिए",winChanceRange:"0.01 और 98 के बीच होना चाहिए"},game:"गेम में त्रुटि हुई",insufficientBalance:"अपर्याप्त शेषराशि",limbo:{multiplierRange:"गुणक कम से कम 1.01 होना चाहिए",winChanceRange:"जीत की संभावना 0.000099 और 99.9999 के बीच होनी चाहिए"}},fairness:{activeClientSeed:"सक्रिय क्लाइंट बीज",enterClientSeed:"क्लाइंट सीड दर्ज करें",enterProof:"प्रमाण दर्ज करें",enterPublicKey:"सार्वजनिक कुंजी दर्ज करें",enterRandomness:"यादृच्छिकता दर्ज करें",enterRequest:"अनुरोध दर्ज करें",invalidGame:"अमान्य खेल प्रकार प्रदान किया गया.",noBettingHistory:"कोई सट्टेबाजी इतिहास नहीं",outcomeCalculationInfo:"प्रत्येक खेल का परिणाम इनपुट के रूप में एक यादृच्छिक मान का उपयोग करके गणना किया जाता है।",outcomeNotVerified:"इस खेल का परिणाम सत्यापित नहीं किया जा सका",outcomeVerified:"इस खेल का परिणाम सत्यापित हो चुका है और यह निष्पक्ष साबित हो चुका है",pendingInputs:"लंबित इनपुट",proof:"सबूत",provableFairnessUnverified:"प्रमाणित निष्पक्षता असत्यापित",provableFairnessVerified:"प्रमाणित निष्पक्षता सत्यापित",publicKey:"सार्वजनिक कुंजी",randomness:"अनियमितता",request:"अनुरोध",saveClientSeed:"क्लाइंट सीड सहेजें",verified:"सत्यापित",verifyOutcome:"परिणाम सत्यापित करें",viewOutcome:"परिणाम देखें"},games:{dice:{result:"परिणाम",roll:"रोल",rollOver:"रोल ओवर",rollUnder:"रोल अंडर",target:"लक्ष्य",title:"पासा"},keno:{autoPick:"ऑटो पिक",clearTable:"स्पष्ट",draw:"खींचना",hits:"हिट्स",kenoGameGrid:"केनो गेम ग्रिड",kenoNumber:"केनो नंबर",numbers:"नंबर",pick:"चुनना",select1to10Tiles:"1-10 टाइल्स चुनें",selectAtLeastOneTile:"कृपया कम से कम एक टाइल चुनें",selectNumbers:"नंबर चुनें",selectTileToAutobet:"कृपया कम से कम एक टाइल चुनें",title:"केनो"},limbo:{cashout:"नकदी निकलना",crashed:"दुर्घटनाग्रस्त",target:"लक्ष्य",targetMultiplier:"गुणक",title:"लीम्बो"},mines:{cashout:"नकदी निकलना",gem:"रत्न",gems:"रत्न",mine:"मेरा",mines:"खानों",nextGem:"अगला रत्न",reveal:"प्रकट करना",selectRandomTile:"यादृच्छिक टाइल का चयन करें",selectTileToAutobet:"कृपया ऑटोबेट के लिए कम से कम एक टाइल चुनें",tile:"टाइल",title:"खानों",unrevealed:"अप्रकट"}},modals:{betResult:"दांव परिणाम",fairnessAndHistory:"निष्पक्षता और इतिहास",gameArea:"खेल क्षेत्र",gameControls:"खेल नियंत्रण"},outcomes:{draw:"खींचना",loss:"नुकसान",win:"जीतना"},share:{betResultText:"मेरी शर्त का परिणाम देखें!",betResultTitle:"दांव परिणाम"}}});var bt=Uo((Ic,ws)=>{ws.exports={accessibility:{betPlacedAnnouncement:"Taruhan berhasil ditempatkan",gameInProgress:"Permainan sedang berlangsung",languageChanged:"Bahasa diubah menjadi {language}"},alerts:{autobetStarted:"Memulai mode taruhan otomatis",autobetStopped:"Menghentikan mode taruhan otomatis",betAmountAboveMaxBet:"Jumlah taruhan di atas taruhan maksimum",betAmountBelowMinBet:"Jumlah taruhan di bawah taruhan minimum",betCancelled:"Taruhan dibatalkan",betDetailsCopied:"Rincian taruhan disalin ke papan klip!",betLimitReached:"Batas taruhan tercapai",betPlaced:"Taruhan berhasil ditempatkan",connectionError:"Kesalahan koneksi",errorProcessingBet:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",failedToLoadBetData:"Gagal memuat data taruhan",failedToShareBetDetails:"Gagal membagikan detail taruhan",gameError:"Terjadi kesalahan saat memproses taruhan Anda. Silakan coba lagi.",insufficientBalance:"Saldo tidak mencukupi",notEnoughBalance:"Saldo tidak cukup"},autobet:{baseAmount:"Jumlah Dasar",decrease:"Mengurangi",games:"Pertandingan",games10:"10 permainan",games100:"100 permainan",games25:"25 permainan",games5:"5 permainan",games50:"50 permainan",increase:"Meningkatkan",infinite:"Tak terbatas",numberOfBets:"Jumlah Taruhan",onLoss:"Tentang Kehilangan",onWin:"Pada Kemenangan",reset:"Mengatur ulang",startAutobet:"Mulai Autobet",stopAutobet:"Hentikan Autobet",stopOnLoss:"Berhenti saat Kerugian",stopOnProfit:"Berhenti Saat Untung",stopOnWin:"Berhenti di Win",title:"Taruhan Otomatis"},common:{amount:"Jumlah",animation:"Animasi",auto:"Mobil",back:"Kembali",balance:"Keseimbangan",bet:"Jumlah Taruhan",betAmount:"Jumlah Taruhan",cancel:"Membatalkan",cashOut:"Penarikan Tunai",change:"Mengubah",classic:"Klasik",close:"Menutup",closeAlert:"Tutup peringatan",closeDialog:"Tutup dialog",confirm:"Mengonfirmasi",copy:"Menyalin",error:"Kesalahan",fairness:"Keadilan",footerNavigation:"Navigasi kaki",high:"Tinggi",history:"Sejarah",hotkeys:"Tombol pintas",id:"PENGENAL",instantBet:"Taruhan Instan",loading:"Memuat...",loadMore:"Muat Lebih Banyak",lobby:"Kembali ke Lobi",loss:"Kehilangan",low:"Rendah",manual:"Buku petunjuk",medium:"Sedang",multiplier:"Pengali",next:"Berikutnya",odds:"Kemungkinan",payout:"Pembayaran",placeBet:"Pasang Taruhan",previous:"Sebelumnya",profit:"Laba",profitOnWin:"Untung Saat Menang",provablyFair:"Terbukti Adil",rangeSlider:"Penggeser rentang",risk:"Mempertaruhkan",settings:"Pengaturan",share:"Membagikan",siteInformation:"Informasi situs",space:"RUANG ANGKASA",start:"Awal",stop:"Berhenti",success:"Kesuksesan",targetMultiplier:"Pengali",thisFieldIsRequired:"Bidang ini wajib diisi",timestamp:"Waktu",toggleHotkeys:"Beralih Tombol Pintasan",toggleSwitch:"Sakelar sakelar",viewFairnessInformation:"Lihat informasi keadilan",volume:"Volume",win:"Menang",winChance:"Kesempatan Menang"},errors:{connection:"Kesalahan koneksi",dice:{multiplierRange:"Harus antara 1.0102 dan 9900",winChanceRange:"Harus antara 0,01 dan 98"},game:"Terjadi kesalahan permainan",insufficientBalance:"Saldo tidak mencukupi",limbo:{multiplierRange:"Pengali harus minimal 1,01",winChanceRange:"Peluang menang harus antara 0,000099 dan 99,9999"}},fairness:{activeClientSeed:"Benih Klien Aktif",enterClientSeed:"Masukkan Benih Klien",enterProof:"Masukkan Bukti",enterPublicKey:"Masukkan Kunci Publik",enterRandomness:"Masuk Acak",enterRequest:"Masukkan Permintaan",invalidGame:"Jenis permainan yang diberikan tidak valid.",noBettingHistory:"Tidak ada riwayat taruhan",outcomeCalculationInfo:"Hasil setiap permainan dihitung menggunakan nilai acak sebagai masukan.",outcomeNotVerified:"Hasil pertandingan ini tidak dapat diverifikasi",outcomeVerified:"Hasil permainan ini telah diverifikasi dan terbukti adil",pendingInputs:"Masukan Tertunda",proof:"Bukti",provableFairnessUnverified:"Keadilan yang Terbukti Belum Diverifikasi",provableFairnessVerified:"Keadilan yang Terbukti dan Terverifikasi",publicKey:"Kunci Publik",randomness:"Keserampangan",request:"Meminta",saveClientSeed:"Simpan Benih Klien",verified:"Terverifikasi",verifyOutcome:"Verifikasi Hasil",viewOutcome:"Lihat Hasil"},games:{dice:{result:"Hasil",roll:"Gulungan",rollOver:"Berguling",rollUnder:"Gulung ke Bawah",target:"Target",title:"Dadu"},keno:{autoPick:"Pilih Otomatis",clearTable:"Jernih",draw:"Menggambar",hits:"Hits",kenoGameGrid:"Kisi Permainan Keno",kenoNumber:"Nomor Keno",numbers:"Angka",pick:"Memilih",select1to10Tiles:"Pilih 1-10 Ubin",selectAtLeastOneTile:"Silakan pilih setidaknya satu ubin",selectNumbers:"Pilih Angka",selectTileToAutobet:"Silakan pilih setidaknya satu ubin",title:"Permainan keno"},limbo:{cashout:"Penarikan Tunai",crashed:"Jatuh",target:"Target",targetMultiplier:"Pengali",title:"Limbo"},mines:{cashout:"Penarikan Tunai",gem:"Permata",gems:"Permata",mine:"Milikku",mines:"Tambang",nextGem:"Permata Berikutnya",reveal:"Mengungkap",selectRandomTile:"Pilih Ubin Acak",selectTileToAutobet:"Silakan pilih setidaknya satu ubin untuk taruhan otomatis",tile:"Ubin",title:"Tambang",unrevealed:"Belum terungkap"}},modals:{betResult:"Hasil Taruhan",fairnessAndHistory:"Keadilan dan Sejarah",gameArea:"Area Permainan",gameControls:"Kontrol Permainan"},outcomes:{draw:"Menggambar",loss:"Kehilangan",win:"Menang"},share:{betResultText:"Lihat hasil taruhan saya!",betResultTitle:"Hasil Taruhan"}}});var wt=Uo((qc,vs)=>{vs.exports={accessibility:{betPlacedAnnouncement:"賭けは成功しました",gameInProgress:"ゲーム進行中",languageChanged:"言語が{language}に変更されました"},alerts:{autobetStarted:"自動ベットモードを開始しました",autobetStopped:"自動ベットモードを停止しました",betAmountAboveMaxBet:"賭け金が最大賭け金を超えています",betAmountBelowMinBet:"賭け金が最低賭け金を下回っています",betCancelled:"賭けはキャンセルされました",betDetailsCopied:"賭けの詳細がクリップボードにコピーされました!",betLimitReached:"賭け金の上限に達しました",betPlaced:"賭けは成功しました",connectionError:"接続エラー",errorProcessingBet:"賭けの処理中にエラーが発生しました。もう一度お試しください。",failedToLoadBetData:"賭けデータの読み込みに失敗しました",failedToShareBetDetails:"賭けの詳細を共有できませんでした",gameError:"賭けの処理中にエラーが発生しました。もう一度お試しください。",insufficientBalance:"残高不足",notEnoughBalance:"残高が足りない"},autobet:{baseAmount:"基本金額",decrease:"減少",games:"ゲーム",games10:"10ゲーム",games100:"100ゲーム",games25:"25ゲーム",games5:"5ゲーム",games50:"50ゲーム",increase:"増加",infinite:"無限",numberOfBets:"賭けの数",onLoss:"損失について",onWin:"勝利時",reset:"リセット",startAutobet:"オートベットを始める",stopAutobet:"オートベットを停止",stopOnLoss:"損失でストップ",stopOnProfit:"利益でストップ",stopOnWin:"勝利で停止",title:"オートベット"},common:{amount:"額",animation:"アニメーション",auto:"オート",back:"戻る",balance:"バランス",bet:"賭け金額",betAmount:"賭け金額",cancel:"キャンセル",cashOut:"キャッシュアウト",change:"変化",classic:"クラシック",close:"近い",closeAlert:"アラートを閉じる",closeDialog:"ダイアログを閉じる",confirm:"確認する",copy:"コピー",error:"エラー",fairness:"公平性",footerNavigation:"フッターナビゲーション",high:"高い",history:"歴史",hotkeys:"ホットキー",id:"ID",instantBet:"インスタントベット",loading:"読み込み中...",loadMore:"もっと読み込む",lobby:"ロビーに戻る",loss:"損失",low:"低い",manual:"マニュアル",medium:"中くらい",multiplier:"乗数",next:"次",odds:"オッズ",payout:"支払い",placeBet:"ベットする",previous:"前の",profit:"利益",profitOnWin:"勝利で利益",provablyFair:"証明可能公平",rangeSlider:"範囲スライダー",risk:"リスク",settings:"設定",share:"共有",siteInformation:"サイト情報",space:"空間",start:"始める",stop:"停止",success:"成功",targetMultiplier:"乗数",thisFieldIsRequired:"この項目は必須です",timestamp:"時間",toggleHotkeys:"ホットキーを切り替える",toggleSwitch:"トグルスイッチ",viewFairnessInformation:"公平性情報を見る",volume:"音量",win:"勝つ",winChance:"勝利のチャンス"},errors:{connection:"接続エラー",dice:{multiplierRange:"1.0102から9900の間でなければなりません",winChanceRange:"0.01~98の間でなければなりません"},game:"ゲームエラーが発生しました",insufficientBalance:"残高不足",limbo:{multiplierRange:"乗数は少なくとも1.01である必要があります",winChanceRange:"勝利の確率は0.000099から99.9999の間でなければなりません"}},fairness:{activeClientSeed:"アクティブクライアントシード",enterClientSeed:"クライアントシードを入力",enterProof:"証明を入力",enterPublicKey:"公開鍵を入力",enterRandomness:"ランダム性を導入する",enterRequest:"リクエストを入力",invalidGame:"無効なゲームタイプが指定されました。",noBettingHistory:"賭け履歴なし",outcomeCalculationInfo:"各ゲームの結果は、ランダムな値を入力として使用して計算されます。",outcomeNotVerified:"この試合の結果は確認できなかった",outcomeVerified:"このゲームの結果は検証されており、公平であることが証明されています",pendingInputs:"保留中の入力",proof:"証拠",provableFairnessUnverified:"証明可能な公平性は検証されていない",provableFairnessVerified:"証明可能な公平性が検証済み",publicKey:"公開鍵",randomness:"ランダム性",request:"リクエスト",saveClientSeed:"クライアントシードを保存",verified:"検証済み",verifyOutcome:"結果を確認する",viewOutcome:"結果を見る"},games:{dice:{result:"結果",roll:"ロール",rollOver:"転がる",rollUnder:"ロールアンダー",target:"ターゲット",title:"サイコロ"},keno:{autoPick:"自動選択",clearTable:"クリア",draw:"描く",hits:"ヒット",kenoGameGrid:"キノゲームグリッド",kenoNumber:"キノ番号",numbers:"数字",pick:"選ぶ",select1to10Tiles:"1~10個のタイルを選択",selectAtLeastOneTile:"少なくとも1つのタイルを選択してください",selectNumbers:"番号を選択",selectTileToAutobet:"少なくとも1つのタイルを選択してください",title:"キノ"},limbo:{cashout:"キャッシュアウト",crashed:"墜落した",target:"ターゲット",targetMultiplier:"乗数",title:"リンボ"},mines:{cashout:"キャッシュアウト",gem:"宝石",gems:"宝石",mine:"私の",mines:"鉱山",nextGem:"次の宝石",reveal:"明らかにする",selectRandomTile:"ランダムタイルを選択",selectTileToAutobet:"自動ベットするには少なくとも1つのタイルを選択してください",tile:"タイル",title:"鉱山",unrevealed:"未公開"}},modals:{betResult:"賭けの結果",fairnessAndHistory:"公平性と歴史",gameArea:"ゲームエリア",gameControls:"ゲームコントロール"},outcomes:{draw:"描く",loss:"損失",win:"勝つ"},share:{betResultText:"私の賭けの結果を見てください!",betResultTitle:"賭けの結果"}}});var vt=Uo((Jc,ms)=>{ms.exports={accessibility:{betPlacedAnnouncement:"배팅이 성공적으로 이루어졌습니다",gameInProgress:"게임 진행 중",languageChanged:"언어가 {language}로 변경되었습니다."},alerts:{autobetStarted:"자동 베팅 모드 시작",autobetStopped:"자동 베팅 모드가 중지되었습니다",betAmountAboveMaxBet:"배팅 금액이 최대 배팅 금액보다 높습니다.",betAmountBelowMinBet:"배팅 금액이 최소 배팅 금액보다 낮습니다.",betCancelled:"베팅 취소됨",betDetailsCopied:"배팅 세부 정보가 클립보드에 복사되었습니다!",betLimitReached:"배팅 한도에 도달했습니다",betPlaced:"배팅이 성공적으로 이루어졌습니다",connectionError:"연결 오류",errorProcessingBet:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",failedToLoadBetData:"베팅 데이터를 불러오는 데 실패했습니다.",failedToShareBetDetails:"베팅 세부 정보를 공유하지 못했습니다.",gameError:"베팅을 처리하는 중에 오류가 발생했습니다. 다시 시도해 주세요.",insufficientBalance:"잔액이 부족합니다",notEnoughBalance:"잔액이 부족합니다"},autobet:{baseAmount:"기본 금액",decrease:"감소하다",games:"계략",games10:"10개의 게임",games100:"100개의 게임",games25:"25개의 게임",games5:"5개의 게임",games50:"50개의 게임",increase:"증가하다",infinite:"무한",numberOfBets:"베팅 수",onLoss:"손실에 대하여",onWin:"승리에 대하여",reset:"다시 놓기",startAutobet:"자동 베팅 시작",stopAutobet:"자동 베팅 중지",stopOnLoss:"손실 중지",stopOnProfit:"이익에 대한 중단",stopOnWin:"승리에 멈추다",title:"자동 베팅"},common:{amount:"양",animation:"생기",auto:"자동",back:"뒤쪽에",balance:"균형",bet:"배팅 금액",betAmount:"배팅 금액",cancel:"취소",cashOut:"현금 인출",change:"변화",classic:"권위 있는",close:"닫다",closeAlert:"알림 닫기",closeDialog:"대화 상자 닫기",confirm:"확인하다",copy:"복사",error:"오류",fairness:"공평",footerNavigation:"푸터 탐색",high:"높은",history:"역사",hotkeys:"단축키",id:"ID",instantBet:"즉시 베팅",loading:"로딩중...",loadMore:"더 보기",lobby:"로비로 돌아가기",loss:"손실",low:"낮은",manual:"수동",medium:"중간",multiplier:"승수",next:"다음",odds:"승산",payout:"지불금",placeBet:"배팅하기",previous:"이전의",profit:"이익",profitOnWin:"승리에 따른 이익",provablyFair:"공정성이 입증됨",rangeSlider:"범위 슬라이더",risk:"위험",settings:"설정",share:"공유하다",siteInformation:"사이트 정보",space:"공간",start:"시작",stop:"멈추다",success:"성공",targetMultiplier:"승수",thisFieldIsRequired:"이 필드는 필수입니다",timestamp:"시간",toggleHotkeys:"단축키 전환",toggleSwitch:"토글 스위치",viewFairnessInformation:"공정성 정보 보기",volume:"용량",win:"이기다",winChance:"승리 확률"},errors:{connection:"연결 오류",dice:{multiplierRange:"1.0102와 9900 사이여야 합니다.",winChanceRange:"0.01~98 사이여야 합니다."},game:"게임 오류가 발생했습니다",insufficientBalance:"잔액이 부족합니다",limbo:{multiplierRange:"승수는 최소 1.01이어야 합니다.",winChanceRange:"당첨 확률은 0.000099~99.9999 사이여야 합니다."}},fairness:{activeClientSeed:"활성 클라이언트 시드",enterClientSeed:"클라이언트 시드 입력",enterProof:"증거를 입력하세요",enterPublicKey:"공개 키 입력",enterRandomness:"무작위성을 입력하세요",enterRequest:"요청 입력",invalidGame:"잘못된 게임 유형이 제공되었습니다.",noBettingHistory:"베팅 내역 없음",outcomeCalculationInfo:"각 게임의 결과는 난수 값을 입력으로 사용하여 계산됩니다.",outcomeNotVerified:"이 게임의 결과는 확인할 수 없습니다.",outcomeVerified:"이 게임의 결과는 검증되었으며 공정성이 입증되었습니다.",pendingInputs:"보류 중인 입력",proof:"증거",provableFairnessUnverified:"입증 가능한 공정성 검증되지 않음",provableFairnessVerified:"증명 가능한 공정성 검증됨",publicKey:"공개 키",randomness:"무작위성",request:"요구",saveClientSeed:"클라이언트 시드 저장",verified:"확인됨",verifyOutcome:"결과 확인",viewOutcome:"결과 보기"},games:{dice:{result:"결과",roll:"연타",rollOver:"롤오버",rollUnder:"롤 언더",target:"목표",title:"주사위"},keno:{autoPick:"자동 선택",clearTable:"분명한",draw:"그리다",hits:"히트곡",kenoGameGrid:"케노 게임 그리드",kenoNumber:"케노 번호",numbers:"숫자",pick:"선택하다",select1to10Tiles:"1~10개 타일 선택",selectAtLeastOneTile:"최소한 하나의 타일을 선택해주세요",selectNumbers:"숫자 선택",selectTileToAutobet:"최소한 하나의 타일을 선택해주세요",title:"케노"},limbo:{cashout:"현금 인출",crashed:"추락했다",target:"목표",targetMultiplier:"승수",title:"림보"},mines:{cashout:"현금 인출",gem:"보석",gems:"보석",mine:"내 거",mines:"광산",nextGem:"다음 보석",reveal:"드러내다",selectRandomTile:"무작위 타일 선택",selectTileToAutobet:"자동 베팅을 위해 최소 하나의 타일을 선택하세요",tile:"타일",title:"광산",unrevealed:"공개되지 않은"}},modals:{betResult:"배팅 결과",fairnessAndHistory:"공정성과 역사",gameArea:"게임 구역",gameControls:"게임 컨트롤"},outcomes:{draw:"그리다",loss:"손실",win:"이기다"},share:{betResultText:"내 베팅 결과를 확인해 보세요!",betResultTitle:"배팅 결과"}}});var mt=Uo(($c,ks)=>{ks.exports={accessibility:{betPlacedAnnouncement:"Zakład postawiony pomyślnie",gameInProgress:"Gra w toku",languageChanged:"Zmieniono język na {language}"},alerts:{autobetStarted:"Uruchomiono tryb autozakładu",autobetStopped:"Zatrzymano tryb autozakładu",betAmountAboveMaxBet:"Kwota zakładu przekracza maksymalny zakład",betAmountBelowMinBet:"Kwota zakładu jest poniżej minimalnego zakładu",betCancelled:"Zakład anulowany",betDetailsCopied:"Szczegóły zakładu skopiowano do schowka!",betLimitReached:"Osiągnięto limit zakładów",betPlaced:"Zakład postawiony pomyślnie",connectionError:"Błąd połączenia",errorProcessingBet:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",failedToLoadBetData:"Nie udało się załadować danych zakładu",failedToShareBetDetails:"Nie udało się udostępnić szczegółów zakładu",gameError:"Wystąpił błąd podczas przetwarzania Twojego zakładu. Spróbuj ponownie.",insufficientBalance:"Niewystarczające saldo",notEnoughBalance:"Za mało równowagi"},autobet:{baseAmount:"Kwota bazowa",decrease:"Zmniejszenie",games:"Zawody sportowe",games10:"10 gier",games100:"100 gier",games25:"25 gier",games5:"5 gier",games50:"50 gier",increase:"Zwiększyć",infinite:"Nieskończony",numberOfBets:"Liczba zakładów",onLoss:"O stracie",onWin:"W zwycięstwie",reset:"Nastawić",startAutobet:"Uruchom autozakład",stopAutobet:"Zatrzymaj autozakład",stopOnLoss:"Zatrzymaj stratę",stopOnProfit:"Zatrzymaj zysk",stopOnWin:"Zatrzymaj się na Win",title:"Autozakład"},common:{amount:"Kwota",animation:"Ożywienie",auto:"Automatyczny",back:"Z powrotem",balance:"Balansować",bet:"Kwota zakładu",betAmount:"Kwota zakładu",cancel:"Anulować",cashOut:"Wypłata gotówki",change:"Zmiana",classic:"Klasyczny",close:"Zamknąć",closeAlert:"Zamknij alert",closeDialog:"Zamknij okno dialogowe",confirm:"Potwierdzać",copy:"Kopia",error:"Błąd",fairness:"Uczciwość",footerNavigation:"Nawigacja stopki",high:"Wysoki",history:"Historia",hotkeys:"Klawisze skrótu",id:"ID",instantBet:"Zakład natychmiastowy",loading:"Załadunek...",loadMore:"Załaduj więcej",lobby:"Powrót do lobby",loss:"Strata",low:"Niski",manual:"Podręcznik",medium:"Średni",multiplier:"Mnożnik",next:"Następny",odds:"Szanse",payout:"Wypłata",placeBet:"Postaw zakład",previous:"Poprzedni",profit:"Zysk",profitOnWin:"Zysk z wygranej",provablyFair:"Udowodniona uczciwość",rangeSlider:"Suwak zakresu",risk:"Ryzyko",settings:"Ustawienia",share:"Udział",siteInformation:"Informacje o witrynie",space:"PRZESTRZEŃ",start:"Start",stop:"Zatrzymywać się",success:"Sukces",targetMultiplier:"Mnożnik",thisFieldIsRequired:"To pole jest wymagane",timestamp:"Czas",toggleHotkeys:"Przełącz klawisze skrótu",toggleSwitch:"Przełącznik",viewFairnessInformation:"Wyświetl informacje o uczciwości",volume:"Tom",win:"Wygrać",winChance:"Szansa na wygraną"},errors:{connection:"Błąd połączenia",dice:{multiplierRange:"Musi mieścić się w przedziale od 1,0102 do 9900",winChanceRange:"Musi mieścić się w przedziale od 0,01 do 98"},game:"Wystąpił błąd gry",insufficientBalance:"Niewystarczające saldo",limbo:{multiplierRange:"Mnożnik musi wynosić co najmniej 1,01",winChanceRange:"Szansa na wygraną musi mieścić się w przedziale od 0,000099 do 99,9999"}},fairness:{activeClientSeed:"Aktywny klient nasion",enterClientSeed:"Wprowadź ziarno klienta",enterProof:"Wprowadź dowód",enterPublicKey:"Wprowadź klucz publiczny",enterRandomness:"Wprowadź losowość",enterRequest:"Wprowadź żądanie",invalidGame:"Podano nieprawidłowy typ gry.",noBettingHistory:"Brak historii zakładów",outcomeCalculationInfo:"Wynik każdej gry obliczany jest na podstawie losowej wartości.",outcomeNotVerified:"Wyniku tej gry nie można zweryfikować",outcomeVerified:"Wynik tej gry został zweryfikowany i można go uznać za uczciwy",pendingInputs:"Oczekujące dane wejściowe",proof:"Dowód",provableFairnessUnverified:"Udowodniona uczciwość niezweryfikowana",provableFairnessVerified:"Udowodniona uczciwość zweryfikowana",publicKey:"Klucz publiczny",randomness:"Losowość",request:"Wniosek",saveClientSeed:"Zapisz ziarno klienta",verified:"Zweryfikowano",verifyOutcome:"Sprawdź wynik",viewOutcome:"Wyświetl wynik"},games:{dice:{result:"Wynik",roll:"Rolka",rollOver:"Przetoczyć się",rollUnder:"Przetoczyć się pod",target:"Cel",title:"Kostka do gry"},keno:{autoPick:"Automatyczne wybieranie",clearTable:"Jasne",draw:"Rysować",hits:"Trafienia",kenoGameGrid:"Siatka gry Keno",kenoNumber:"Numer keno",numbers:"Takty muzyczne",pick:"Wybierać",select1to10Tiles:"Wybierz 1-10 kafelków",selectAtLeastOneTile:"Proszę wybrać co najmniej jeden kafelek",selectNumbers:"Wybierz liczby",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek",title:"Keno"},limbo:{cashout:"Wypłata gotówki",crashed:"Rozbił się",target:"Cel",targetMultiplier:"Mnożnik",title:"Otchłań"},mines:{cashout:"Wypłata gotówki",gem:"Klejnot",gems:"Klejnoty",mine:"Kopalnia",mines:"Kopalnie",nextGem:"Następny klejnot",reveal:"Ujawnić",selectRandomTile:"Wybierz losowy kafelek",selectTileToAutobet:"Proszę wybrać co najmniej jeden kafelek do automatycznego obstawiania",tile:"Płytka",title:"Kopalnie",unrevealed:"Nieujawnione"}},modals:{betResult:"Wynik zakładu",fairnessAndHistory:"Sprawiedliwość i historia",gameArea:"Obszar gry",gameControls:"Sterowanie grą"},outcomes:{draw:"Rysować",loss:"Strata",win:"Wygrać"},share:{betResultText:"Sprawdź wynik mojego zakładu!",betResultTitle:"Wynik zakładu"}}});var kt=Uo((Yc,xs)=>{xs.exports={accessibility:{betPlacedAnnouncement:"Aposta feita com sucesso",gameInProgress:"Jogo em andamento",languageChanged:"Idioma alterado para {language}"},alerts:{autobetStarted:"Modo de aposta automática iniciado",autobetStopped:"Modo de aposta automática interrompido",betAmountAboveMaxBet:"O valor da aposta está acima da aposta máxima",betAmountBelowMinBet:"O valor da aposta está abaixo da aposta mínima",betCancelled:"Aposta cancelada",betDetailsCopied:"Detalhes da aposta copiados para a área de transferência!",betLimitReached:"Limite de aposta atingido",betPlaced:"Aposta feita com sucesso",connectionError:"Erro de conexão",errorProcessingBet:"Ocorreu um erro ao processar sua aposta. Tente novamente.",failedToLoadBetData:"Falha ao carregar dados de aposta",failedToShareBetDetails:"Falha ao compartilhar detalhes da aposta",gameError:"Ocorreu um erro ao processar sua aposta. Tente novamente.",insufficientBalance:"Saldo insuficiente",notEnoughBalance:"Não há equilíbrio suficiente"},autobet:{baseAmount:"Valor base",decrease:"Diminuir",games:"Jogos",games10:"10 jogos",games100:"100 jogos",games25:"25 jogos",games5:"5 jogos",games50:"50 jogos",increase:"Aumentar",infinite:"Infinito",numberOfBets:"Número de apostas",onLoss:"Em Perda",onWin:"Na vitória",reset:"Reiniciar",startAutobet:"Iniciar aposta automática",stopAutobet:"Pare a aposta automática",stopOnLoss:"Parar na perda",stopOnProfit:"Pare no lucro",stopOnWin:"Pare na vitória",title:"Aposta automática"},common:{amount:"Quantia",animation:"Animação",auto:"Auto",back:"Voltar",balance:"Equilíbrio",bet:"Valor da aposta",betAmount:"Valor da aposta",cancel:"Cancelar",cashOut:"Saque",change:"Mudar",classic:"Clássico",close:"Fechar",closeAlert:"Alerta de fechamento",closeDialog:"Fechar diálogo",confirm:"Confirmar",copy:"Cópia",error:"Erro",fairness:"Justiça",footerNavigation:"Navegação de rodapé",high:"Alto",history:"História",hotkeys:"Teclas de atalho",id:"EU IA",instantBet:"Aposta instantânea",loading:"Carregando...",loadMore:"Carregar mais",lobby:"Voltar ao Lobby",loss:"Perda",low:"Baixo",manual:"Manual",medium:"Médio",multiplier:"Multiplicador",next:"Próximo",odds:"Chances",payout:"Pagamento",placeBet:"Fazer aposta",previous:"Anterior",profit:"Lucro",profitOnWin:"Lucro na vitória",provablyFair:"Provavelmente justo",rangeSlider:"Controle deslizante de alcance",risk:"Risco",settings:"Configurações",share:"Compartilhar",siteInformation:"Informações do site",space:"ESPAÇO",start:"Começar",stop:"Parar",success:"Sucesso",targetMultiplier:"Multiplicador",thisFieldIsRequired:"Este campo é obrigatório",timestamp:"Tempo",toggleHotkeys:"Alternar teclas de atalho",toggleSwitch:"Interruptor de alternância",viewFairnessInformation:"Ver informações sobre justiça",volume:"Volume",win:"Ganhar",winChance:"Chance de ganhar"},errors:{connection:"Erro de conexão",dice:{multiplierRange:"Deve estar entre 1,0102 e 9900",winChanceRange:"Deve estar entre 0,01 e 98"},game:"Ocorreu um erro no jogo",insufficientBalance:"Saldo insuficiente",limbo:{multiplierRange:"O multiplicador deve ser pelo menos 1,01",winChanceRange:"A chance de vitória deve estar entre 0,000099 e 99,9999"}},fairness:{activeClientSeed:"Semente de cliente ativo",enterClientSeed:"Insira a semente do cliente",enterProof:"Insira a prova",enterPublicKey:"Digite a chave pública",enterRandomness:"Digite Aleatoriedade",enterRequest:"Solicitação de entrada",invalidGame:"Tipo de jogo fornecido inválido.",noBettingHistory:"Nenhum histórico de apostas",outcomeCalculationInfo:"O resultado de cada jogo é calculado usando um valor aleatório como entrada.",outcomeNotVerified:"O resultado deste jogo não pôde ser verificado",outcomeVerified:"O resultado deste jogo foi verificado e é comprovadamente justo",pendingInputs:"Entradas pendentes",proof:"Prova",provableFairnessUnverified:"Imparcialidade Provável Não Verificada",provableFairnessVerified:"Justiça comprovada verificada",publicKey:"Chave Pública",randomness:"Aleatoriedade",request:"Solicitar",saveClientSeed:"Salvar Semente do Cliente",verified:"Verificado",verifyOutcome:"Verificar resultado",viewOutcome:"Ver resultado"},games:{dice:{result:"Resultado",roll:"Rolar",rollOver:"Rolar sobre",rollUnder:"Rolar para baixo",target:"Alvo",title:"Dados"},keno:{autoPick:"Seleção automática",clearTable:"Claro",draw:"Empate",hits:"Acessos",kenoGameGrid:"Grade do jogo Keno",kenoNumber:"Número Keno",numbers:"Números",pick:"Escolha",select1to10Tiles:"Selecione 1-10 peças",selectAtLeastOneTile:"Selecione pelo menos um bloco",selectNumbers:"Selecione Números",selectTileToAutobet:"Selecione pelo menos um bloco",title:"Keno"},limbo:{cashout:"Saque",crashed:"Caiu",target:"Alvo",targetMultiplier:"Multiplicador",title:"Limbo"},mines:{cashout:"Saque",gem:"Jóia",gems:"Gemas",mine:"Meu",mines:"Minas",nextGem:"Próxima Joia",reveal:"Revelar",selectRandomTile:"Selecione uma peça aleatória",selectTileToAutobet:"Selecione pelo menos uma peça para apostar automaticamente",tile:"Telha",title:"Minas",unrevealed:"Não revelado"}},modals:{betResult:"Resultado da aposta",fairnessAndHistory:"Justiça e História",gameArea:"Área de jogos",gameControls:"Controles do jogo"},outcomes:{draw:"Empate",loss:"Perda",win:"Ganhar"},share:{betResultText:"Confira o resultado da minha aposta!",betResultTitle:"Resultado da aposta"}}});var xt=Uo((Lc,zs)=>{zs.exports={accessibility:{betPlacedAnnouncement:"Ставка сделана успешно",gameInProgress:"Игра в процессе",languageChanged:"Язык изменен на {language}"},alerts:{autobetStarted:"Запущен режим автоставки",autobetStopped:"Остановлен режим автоставки",betAmountAboveMaxBet:"Сумма ставки превышает максимальную ставку",betAmountBelowMinBet:"Сумма ставки ниже минимальной ставки",betCancelled:"Ставка отменена",betDetailsCopied:"Данные ставки скопированы в буфер обмена!",betLimitReached:"Лимит ставок достигнут",betPlaced:"Ставка сделана успешно",connectionError:"Ошибка подключения",errorProcessingBet:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",failedToLoadBetData:"Не удалось загрузить данные о ставках",failedToShareBetDetails:"Не удалось поделиться данными о ставке",gameError:"При обработке вашей ставки произошла ошибка. Попробуйте ещё раз.",insufficientBalance:"Недостаточный баланс",notEnoughBalance:"Недостаточный баланс"},autobet:{baseAmount:"Базовая сумма",decrease:"Снижаться",games:"Игры",games10:"10 игр",games100:"100 игр",games25:"25 игр",games5:"5 игр",games50:"50 игр",increase:"Увеличивать",infinite:"Бесконечный",numberOfBets:"Количество ставок",onLoss:"При убытке",onWin:"На Победе",reset:"Перезагрузить",startAutobet:"Начать автоставку",stopAutobet:"Остановить автоставку",stopOnLoss:"Stop on Loss",stopOnProfit:"Stop On Profit",stopOnWin:"Остановись на Победе",title:"Автоставка"},common:{amount:"Количество",animation:"Анимация",auto:"Авто",back:"Назад",balance:"Баланс",bet:"Сумма ставки",betAmount:"Сумма ставки",cancel:"Отмена",cashOut:"Выплата наличных",change:"Изменять",classic:"Классический",close:"Закрывать",closeAlert:"Закрыть оповещение",closeDialog:"Закрыть диалог",confirm:"Подтверждать",copy:"Копировать",error:"Ошибка",fairness:"Справедливость",footerNavigation:"Навигация по нижнему колонтитулу",high:"Высокий",history:"История",hotkeys:"Горячие клавиши",id:"ИДЕНТИФИКАТОР",instantBet:"Мгновенная ставка",loading:"Загрузка...",loadMore:"Загрузить больше",lobby:"Вернуться в вестибюль",loss:"Потеря",low:"Низкий",manual:"Руководство",medium:"Середина",multiplier:"Множитель",next:"Следующий",odds:"Шансы",payout:"Выплата",placeBet:"Сделать ставку",previous:"Предыдущий",profit:"Выгода",profitOnWin:"Прибыль от победы",provablyFair:"Доказуемо справедливо",rangeSlider:"Ползунок диапазона",risk:"Риск",settings:"Настройки",share:"Делиться",siteInformation:"Информация о сайте",space:"КОСМОС",start:"Начинать",stop:"Останавливаться",success:"Успех",targetMultiplier:"Множитель",thisFieldIsRequired:"Это поле обязательно к заполнению",timestamp:"Время",toggleHotkeys:"Переключить горячие клавиши",toggleSwitch:"Переключатель",viewFairnessInformation:"Просмотреть информацию о справедливости",volume:"Объем",win:"Победить",winChance:"Шанс выиграть"},errors:{connection:"Ошибка подключения",dice:{multiplierRange:"Должно быть от 1,0102 до 9900",winChanceRange:"Должно быть от 0,01 до 98"},game:"Произошла ошибка игры",insufficientBalance:"Недостаточный баланс",limbo:{multiplierRange:"Множитель должен быть не менее 1,01.",winChanceRange:"Шанс выигрыша должен быть от 0,000099 до 99,9999"}},fairness:{activeClientSeed:"Активный клиентский посев",enterClientSeed:"Введите клиентское семя",enterProof:"Введите доказательство",enterPublicKey:"Введите открытый ключ",enterRandomness:"Введите случайность",enterRequest:"Введите запрос",invalidGame:"Указан неверный тип игры.",noBettingHistory:"Нет истории ставок",outcomeCalculationInfo:"Результат каждой игры рассчитывается с использованием случайного значения в качестве входных данных.",outcomeNotVerified:"Результат этой игры не удалось проверить.",outcomeVerified:"Результат этой игры проверен и доказуемо честен.",pendingInputs:"Ожидаемые входные данные",proof:"Доказательство",provableFairnessUnverified:"Доказуемая справедливость Непроверенная",provableFairnessVerified:"Доказуемая справедливость проверена",publicKey:"Открытый ключ",randomness:"Случайность",request:"Запрос",saveClientSeed:"Сохранить клиентское семя",verified:"Проверено",verifyOutcome:"Проверить результат",viewOutcome:"Посмотреть результат"},games:{dice:{result:"Результат",roll:"Рулон",rollOver:"Перекатывать",rollUnder:"Подкатиться",target:"Цель",title:"Кости"},keno:{autoPick:"Автоматический выбор",clearTable:"Прозрачный",draw:"Рисовать",hits:"Хиты",kenoGameGrid:"Сетка игры Кено",kenoNumber:"Номер Кено",numbers:"Числа",pick:"Выбирать",select1to10Tiles:"Выберите 1-10 плиток",selectAtLeastOneTile:"Пожалуйста, выберите хотя бы одну плитку",selectNumbers:"Выберите номера",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку",title:"Кено"},limbo:{cashout:"Выплата наличных",crashed:"Разбился",target:"Цель",targetMultiplier:"Множитель",title:"Лимб"},mines:{cashout:"Выплата наличных",gem:"Драгоценный камень",gems:"Драгоценные камни",mine:"Мой",mines:"Шахты",nextGem:"Следующий драгоценный камень",reveal:"Раскрывать",selectRandomTile:"Выбрать случайную плитку",selectTileToAutobet:"Пожалуйста, выберите хотя бы одну плитку для автоматической ставки.",tile:"Плитка",title:"Шахты",unrevealed:"Нераскрыто"}},modals:{betResult:"Результат ставки",fairnessAndHistory:"Справедливость и история",gameArea:"Игровая зона",gameControls:"Управление игрой"},outcomes:{draw:"Рисовать",loss:"Потеря",win:"Победить"},share:{betResultText:"Посмотрите результат моей ставки!",betResultTitle:"Результат ставки"}}});var zt=Uo((Cc,ys)=>{ys.exports={accessibility:{betPlacedAnnouncement:"Bahis başarıyla yapıldı",gameInProgress:"Oyun devam ediyor",languageChanged:"Dil {language} olarak değiştirildi"},alerts:{autobetStarted:"Otomatik bahis modu başlatıldı",autobetStopped:"Otomatik bahis modu durduruldu",betAmountAboveMaxBet:"Bahis miktarı maksimum bahsin üzerindedir",betAmountBelowMinBet:"Bahis miktarı minimum bahsin altındadır",betCancelled:"Bahis iptal edildi",betDetailsCopied:"Bahis detayları panoya kopyalandı!",betLimitReached:"Bahis limitine ulaşıldı",betPlaced:"Bahis başarıyla yapıldı",connectionError:"Bağlantı hatası",errorProcessingBet:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",failedToLoadBetData:"Bahis verileri yüklenemedi",failedToShareBetDetails:"Bahis detayları paylaşılamadı",gameError:"Bahsiniz işlenirken bir hata oluştu. Lütfen tekrar deneyin.",insufficientBalance:"Yetersiz bakiye",notEnoughBalance:"Yeterli denge yok"},autobet:{baseAmount:"Temel Tutar",decrease:"Azaltmak",games:"Oyunlar",games10:"10 oyun",games100:"100 oyun",games25:"25 oyun",games5:"5 oyun",games50:"50 oyun",increase:"Arttırmak",infinite:"Sonsuz",numberOfBets:"Bahis Sayısı",onLoss:"Kayıp Üzerine",onWin:"Kazanmak Üzerine",reset:"Sıfırla",startAutobet:"Otomatik Bahis Başlat",stopAutobet:"Otomatik Bahsi Durdur",stopOnLoss:"Zararda Dur",stopOnProfit:"Kârda Dur",stopOnWin:"Kazanma Durdurma",title:"Otomatik bahis"},common:{amount:"Miktar",animation:"Animasyon",auto:"Otomatik",back:"Geri",balance:"Denge",bet:"Bahis Miktarı",betAmount:"Bahis Miktarı",cancel:"İptal etmek",cashOut:"Nakit Çekme",change:"Değiştirmek",classic:"Klasik",close:"Kapalı",closeAlert:"Yakın uyarı",closeDialog:"İletişim kutusunu kapat",confirm:"Onaylamak",copy:"Kopyala",error:"Hata",fairness:"Adalet",footerNavigation:"Alt bilgi gezintisi",high:"Yüksek",history:"Tarih",hotkeys:"Kısayollar",id:"İD",instantBet:"Anında Bahis",loading:"Yükleniyor...",loadMore:"Daha Fazlasını Yükle",lobby:"Lobiye Geri Dön",loss:"Kayıp",low:"Düşük",manual:"Manuel",medium:"Orta",multiplier:"Çarpan",next:"Sonraki",odds:"Oranlar",payout:"Ödeme",placeBet:"Bahis",previous:"Öncesi",profit:"Kâr",profitOnWin:"Kazanç Üzerine Kar",provablyFair:"Kanıtlanabilir Adil",rangeSlider:"Aralık kaydırıcısı",risk:"Risk",settings:"Ayarlar",share:"Paylaşmak",siteInformation:"Site bilgileri",space:"UZAY",start:"Başlangıç",stop:"Durmak",success:"Başarı",targetMultiplier:"Çarpan",thisFieldIsRequired:"Bu alan gereklidir",timestamp:"Zaman",toggleHotkeys:"Kısayolları Değiştir",toggleSwitch:"Geçiş anahtarı",viewFairnessInformation:"Adalet bilgilerini görüntüle",volume:"Hacim",win:"Kazanç",winChance:"Kazanma Şansı"},errors:{connection:"Bağlantı hatası",dice:{multiplierRange:"1.0102 ile 9900 arasında olmalıdır",winChanceRange:"0,01 ile 98 arasında olmalıdır"},game:"Oyun hatası oluştu",insufficientBalance:"Yetersiz bakiye",limbo:{multiplierRange:"Çarpan en az 1,01 olmalıdır",winChanceRange:"Kazanma şansı 0,000099 ile 99,9999 arasında olmalıdır"}},fairness:{activeClientSeed:"Aktif İstemci Tohumu",enterClientSeed:"İstemci Tohumunu Girin",enterProof:"Kanıtı Girin",enterPublicKey:"Genel Anahtarı Girin",enterRandomness:"Rastgeleliğe Girin",enterRequest:"İstek Girin",invalidGame:"Geçersiz oyun türü sağlandı.",noBettingHistory:"Bahis geçmişi yok",outcomeCalculationInfo:"Her oyunun sonucu, girdi olarak rastgele bir değer kullanılarak hesaplanır.",outcomeNotVerified:"Bu oyunun sonucu doğrulanamadı",outcomeVerified:"Bu oyunun sonucu doğrulandı ve kanıtlanabilir şekilde adildir",pendingInputs:"Bekleyen Girişler",proof:"Kanıt",provableFairnessUnverified:"Kanıtlanabilir Adalet Doğrulanmamış",provableFairnessVerified:"Kanıtlanabilir Adalet Doğrulandı",publicKey:"Genel Anahtar",randomness:"Rastgelelik",request:"Rica etmek",saveClientSeed:"İstemci Tohumunu Kaydet",verified:"Doğrulandı",verifyOutcome:"Sonucu Doğrula",viewOutcome:"Sonucu Görüntüle"},games:{dice:{result:"Sonuç",roll:"Rulo",rollOver:"Yuvarlanmak",rollUnder:"Altına Yuvarlan",target:"Hedef",title:"Zar"},keno:{autoPick:"Otomatik Seçim",clearTable:"Temizlemek",draw:"Çizmek",hits:"İsabetler",kenoGameGrid:"Keno Oyun Izgarası",kenoNumber:"Keno numarası",numbers:"Sayılar",pick:"Seçmek",select1to10Tiles:"1-10 Fayans Seçin",selectAtLeastOneTile:"Lütfen en az bir kutucuk seçin",selectNumbers:"Sayıları Seçin",selectTileToAutobet:"Lütfen en az bir kutucuk seçin",title:"Keno"},limbo:{cashout:"Nakit Çekme",crashed:"Çöktü",target:"Hedef",targetMultiplier:"Çarpan",title:"Araf"},mines:{cashout:"Nakit Çekme",gem:"Mücevher",gems:"Mücevherler",mine:"Bana ait",mines:"Madenler",nextGem:"Sonraki Mücevher",reveal:"Ortaya çıkarmak",selectRandomTile:"Rastgele Döşeme Seç",selectTileToAutobet:"Lütfen otomatik bahis yapmak için en az bir karo seçin",tile:"Fayans",title:"Madenler",unrevealed:"Açıklanmamış"}},modals:{betResult:"Bahis Sonucu",fairnessAndHistory:"Adalet ve Tarih",gameArea:"Oyun Alanı",gameControls:"Oyun Kontrolleri"},outcomes:{draw:"Çizmek",loss:"Kayıp",win:"Kazanç"},share:{betResultText:"Bahis sonucumu inceleyin!",betResultTitle:"Bahis Sonucu"}}});var yt=Uo((Fc,Hs)=>{Hs.exports={accessibility:{betPlacedAnnouncement:"Đã đặt cược thành công",gameInProgress:"Trò chơi đang diễn ra",languageChanged:"Ngôn ngữ đã thay đổi thành {language}"},alerts:{autobetStarted:"Đã bắt đầu chế độ đặt cược tự động",autobetStopped:"Đã dừng chế độ đặt cược tự động",betAmountAboveMaxBet:"Số tiền cược vượt quá mức cược tối đa",betAmountBelowMinBet:"Số tiền cược thấp hơn mức cược tối thiểu",betCancelled:"Cược đã bị hủy",betDetailsCopied:"Chi tiết cược đã được sao chép vào bảng tạm!",betLimitReached:"Đã đạt đến giới hạn đặt cược",betPlaced:"Đã đặt cược thành công",connectionError:"Lỗi kết nối",errorProcessingBet:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",failedToLoadBetData:"Không tải được dữ liệu cược",failedToShareBetDetails:"Không chia sẻ được thông tin chi tiết về cược",gameError:"Đã xảy ra lỗi khi xử lý cược của bạn. Vui lòng thử lại.",insufficientBalance:"Số dư không đủ",notEnoughBalance:"Không đủ cân bằng"},autobet:{baseAmount:"Số tiền cơ sở",decrease:"Giảm bớt",games:"Trò chơi",games10:"10 trò chơi",games100:"100 trò chơi",games25:"25 trò chơi",games5:"5 trò chơi",games50:"50 trò chơi",increase:"Tăng",infinite:"Vô hạn",numberOfBets:"Số lượng cược",onLoss:"Về sự mất mát",onWin:"Trên chiến thắng",reset:"Cài lại",startAutobet:"Bắt đầu Autobet",stopAutobet:"Dừng Autobet",stopOnLoss:"Dừng lại khi mất mát",stopOnProfit:"Dừng lại ở lợi nhuận",stopOnWin:"Dừng lại ở Win",title:"Cược tự động"},common:{amount:"Số lượng",animation:"Hoạt hình",auto:"Tự động",back:"Mặt sau",balance:"Sự cân bằng",bet:"Số tiền đặt cược",betAmount:"Số tiền đặt cược",cancel:"Hủy bỏ",cashOut:"Rút tiền",change:"Thay đổi",classic:"Cổ điển",close:"Đóng",closeAlert:"Đóng cảnh báo",closeDialog:"Đóng hộp thoại",confirm:"Xác nhận",copy:"Sao chép",error:"Lỗi",fairness:"Công bằng",footerNavigation:"Điều hướng chân trang",high:"Cao",history:"Lịch sử",hotkeys:"Phím nóng",id:"NHẬN DẠNG",instantBet:"Cược tức thì",loading:"Đang tải...",loadMore:"Tải thêm",lobby:"Quay lại Sảnh",loss:"Sự mất mát",low:"Thấp",manual:"Thủ công",medium:"Trung bình",multiplier:"Hệ số nhân",next:"Kế tiếp",odds:"Tỷ lệ cược",payout:"Thanh toán",placeBet:"Đặt cược",previous:"Trước",profit:"Lợi nhuận",profitOnWin:"Lợi nhuận khi thắng",provablyFair:"Có thể chứng minh là công bằng",rangeSlider:"Thanh trượt phạm vi",risk:"Rủi ro",settings:"Cài đặt",share:"Chia sẻ",siteInformation:"Thông tin trang web",space:"KHÔNG GIAN",start:"Bắt đầu",stop:"Dừng lại",success:"Thành công",targetMultiplier:"Hệ số nhân",thisFieldIsRequired:"Trường này là bắt buộc",timestamp:"Thời gian",toggleHotkeys:"Chuyển đổi phím nóng",toggleSwitch:"Công tắc chuyển đổi",viewFairnessInformation:"Xem thông tin công bằng",volume:"Âm lượng",win:"Thắng",winChance:"Cơ hội chiến thắng"},errors:{connection:"Lỗi kết nối",dice:{multiplierRange:"Phải nằm trong khoảng từ 1,0102 đến 9900",winChanceRange:"Phải nằm trong khoảng từ 0,01 đến 98"},game:"Đã xảy ra lỗi trò chơi",insufficientBalance:"Số dư không đủ",limbo:{multiplierRange:"Hệ số nhân phải ít nhất là 1,01",winChanceRange:"Cơ hội chiến thắng phải nằm trong khoảng từ 0,000099 đến 99,9999"}},fairness:{activeClientSeed:"Hạt giống khách hàng đang hoạt động",enterClientSeed:"Nhập hạt giống khách hàng",enterProof:"Nhập bằng chứng",enterPublicKey:"Nhập khóa công khai",enterRandomness:"Nhập ngẫu nhiên",enterRequest:"Nhập yêu cầu",invalidGame:"Loại trò chơi được cung cấp không hợp lệ.",noBettingHistory:"Không có lịch sử cá cược",outcomeCalculationInfo:"Kết quả của mỗi trò chơi được tính toán bằng cách sử dụng giá trị ngẫu nhiên làm đầu vào.",outcomeNotVerified:"Kết quả của trò chơi này không thể được xác minh",outcomeVerified:"Kết quả của trò chơi này đã được xác minh và có thể chứng minh là công bằng",pendingInputs:"Đầu vào đang chờ xử lý",proof:"Bằng chứng",provableFairnessUnverified:"Công bằng có thể chứng minh chưa được xác minh",provableFairnessVerified:"Sự công bằng có thể chứng minh được đã được xác minh",publicKey:"Khóa công khai",randomness:"Tính ngẫu nhiên",request:"Lời yêu cầu",saveClientSeed:"Lưu hạt giống khách hàng",verified:"Đã xác minh",verifyOutcome:"Xác minh kết quả",viewOutcome:"Xem kết quả"},games:{dice:{result:"Kết quả",roll:"Cuộn",rollOver:"Lăn qua",rollUnder:"Lăn dưới",target:"Mục tiêu",title:"Xúc xắc"},keno:{autoPick:"Tự động chọn",clearTable:"Thông thoáng",draw:"Vẽ tranh",hits:"Lượt truy cập",kenoGameGrid:"Lưới trò chơi Keno",kenoNumber:"Số Keno",numbers:"Số",pick:"Nhặt",select1to10Tiles:"Chọn 1-10 ô",selectAtLeastOneTile:"Vui lòng chọn ít nhất một ô",selectNumbers:"Chọn số",selectTileToAutobet:"Vui lòng chọn ít nhất một ô",title:"Keno"},limbo:{cashout:"Rút tiền",crashed:"Đã bị sập",target:"Mục tiêu",targetMultiplier:"Hệ số nhân",title:"Limbo"},mines:{cashout:"Rút tiền",gem:"Đá quý",gems:"Đá quý",mine:"Của tôi",mines:"Mỏ",nextGem:"Viên ngọc tiếp theo",reveal:"Tiết lộ",selectRandomTile:"Chọn ô ngẫu nhiên",selectTileToAutobet:"Vui lòng chọn ít nhất một ô để tự động đặt cược",tile:"Ngói",title:"Mỏ",unrevealed:"Chưa tiết lộ"}},modals:{betResult:"Kết quả cược",fairnessAndHistory:"Công bằng và Lịch sử",gameArea:"Khu vực trò chơi",gameControls:"Điều khiển trò chơi"},outcomes:{draw:"Vẽ tranh",loss:"Sự mất mát",win:"Thắng"},share:{betResultText:"Hãy xem kết quả cá cược của tôi!",betResultTitle:"Kết quả cược"}}});var Ht=Uo((Qc,Ss)=>{Ss.exports={accessibility:{betPlacedAnnouncement:"投注成功",gameInProgress:"游戏进行中",languageChanged:"语言更改为 {language}"},alerts:{autobetStarted:"已启动自动投注模式",autobetStopped:"停止自动投注模式",betAmountAboveMaxBet:"投注金额高于最高投注额",betAmountBelowMinBet:"投注金额低于最低投注额",betCancelled:"投注取消",betDetailsCopied:"投注详情已复制到剪贴板!",betLimitReached:"已达到投注限额",betPlaced:"投注成功",connectionError:"连接错误",errorProcessingBet:"处理您的投注时出错。请重试。",failedToLoadBetData:"无法加载投注数据",failedToShareBetDetails:"无法分享投注详情",gameError:"处理您的投注时出错。请重试。",insufficientBalance:"余额不足",notEnoughBalance:"余额不足"},autobet:{baseAmount:"基数",decrease:"减少",games:"游戏",games10:"10场比赛",games100:"100场比赛",games25:"25场比赛",games5:"5场比赛",games50:"50场比赛",increase:"增加",infinite:"无限",numberOfBets:"投注次数",onLoss:"关于损失",onWin:"胜利",reset:"重置",startAutobet:"开始自动投注",stopAutobet:"停止自动投注",stopOnLoss:"止损",stopOnProfit:"止盈",stopOnWin:"胜利时停止",title:"自动投注"},common:{amount:"数量",animation:"动画片",auto:"汽车",back:"后退",balance:"平衡",bet:"投注金额",betAmount:"投注金额",cancel:"取消",cashOut:"提现",change:"改变",classic:"经典的",close:"关闭",closeAlert:"关闭警报",closeDialog:"关闭对话框",confirm:"确认",copy:"复制",error:"错误",fairness:"公平",footerNavigation:"页脚导航",high:"高的",history:"历史",hotkeys:"热键",id:"ID",instantBet:"即时投注",loading:"加载中...",loadMore:"加载更多",lobby:"返回大厅",loss:"损失",low:"低的",manual:"手动的",medium:"中等的",multiplier:"乘数",next:"下一个",odds:"赔率",payout:"付款",placeBet:"下注",previous:"以前的",profit:"利润",profitOnWin:"赢利",provablyFair:"可证明公平",rangeSlider:"范围滑块",risk:"风险",settings:"设置",share:"分享",siteInformation:"站点信息",space:"空间",start:"开始",stop:"停止",success:"成功",targetMultiplier:"乘数",thisFieldIsRequired:"此字段是必需的",timestamp:"时间",toggleHotkeys:"切换热键",toggleSwitch:"拨动开关",viewFairnessInformation:"查看公平性信息",volume:"体积",win:"赢",winChance:"获胜机会"},errors:{connection:"连接错误",dice:{multiplierRange:"必须介于 1.0102 和 9900 之间",winChanceRange:"必须介于 0.01 和 98 之间"},game:"游戏发生错误",insufficientBalance:"余额不足",limbo:{multiplierRange:"乘数必须至少为 1.01",winChanceRange:"获胜机会必须介于 0.000099 和 99.9999 之间"}},fairness:{activeClientSeed:"活跃客户种子",enterClientSeed:"输入客户种子",enterProof:"输入证明",enterPublicKey:"输入公钥",enterRandomness:"输入随机性",enterRequest:"输入请求",invalidGame:"提供的游戏类型无效。",noBettingHistory:"没有投注记录",outcomeCalculationInfo:"每场比赛的结果都是使用随机值作为输入来计算的。",outcomeNotVerified:"这场比赛的结果无法核实",outcomeVerified:"本场比赛的结果已经过验证,且可证明是公平的",pendingInputs:"待处理输入",proof:"证明",provableFairnessUnverified:"公平性尚未得到验证",provableFairnessVerified:"公平性已得到验证",publicKey:"公钥",randomness:"随机性",request:"要求",saveClientSeed:"保存客户端种子",verified:"已验证",verifyOutcome:"验证结果",viewOutcome:"查看结果"},games:{dice:{result:"结果",roll:"卷",rollOver:"滚下",rollUnder:"滚下",target:"目标",title:"骰子"},keno:{autoPick:"自动选择",clearTable:"清除",draw:"画",hits:"热门歌曲",kenoGameGrid:"基诺游戏网格",kenoNumber:"基诺号码",numbers:"数字",pick:"挑选",select1to10Tiles:"选择 1-10 个图块",selectAtLeastOneTile:"请至少选择一个图块",selectNumbers:"选择号码",selectTileToAutobet:"请至少选择一个图块",title:"基诺"},limbo:{cashout:"提现",crashed:"坠毁",target:"目标",targetMultiplier:"乘数",title:"地狱边境"},mines:{cashout:"提现",gem:"宝石",gems:"宝石",mine:"矿",mines:"矿山",nextGem:"下一颗宝石",reveal:"揭示",selectRandomTile:"选择随机图块",selectTileToAutobet:"请至少选择一张牌进行自动下注",tile:"瓦",title:"矿山",unrevealed:"未披露"}},modals:{betResult:"投注结果",fairnessAndHistory:"公平与历史",gameArea:"游戏区",gameControls:"游戏控制"},outcomes:{draw:"画",loss:"损失",win:"赢"},share:{betResultText:"查看我的投注结果!",betResultTitle:"投注结果"}}});var Xe=Uo((Li,Gi)=>{typeof document!=="undefined"&&typeof navigator!=="undefined"&&function(o,i){typeof Li==="object"&&typeof Gi!=="undefined"?Gi.exports=i():typeof define==="function"&&define.amd?define(i):(o=typeof globalThis!=="undefined"?globalThis:o||self,o.lottie=i())}(Li,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function o(i){_useWebWorker=!!i},getWebWorker=function o(){return _useWebWorker},setLocationHref=function o(i){locationHref=i},getLocationHref=function o(){return locationHref};function createTag(o){return document.createElement(o)}function extendPrototype(o,i){var a,t=o.length,r;for(a=0;a<t;a+=1){r=o[a].prototype;for(var e in r)if(Object.prototype.hasOwnProperty.call(r,e))i.prototype[e]=r[e]}}function getDescriptor(o,i){return Object.getOwnPropertyDescriptor(o,i)}function createProxyFunction(o){function i(){}return i.prototype=o,i}var audioControllerFactory=function(){function o(i){this.audios=[],this.audioFactory=i,this._volume=1,this._isMuted=!1}return o.prototype={addAudio:function i(a){this.audios.push(a)},pause:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].pause()},resume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].resume()},setRate:function i(a){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(a)},createAudio:function i(a){if(this.audioFactory)return this.audioFactory(a);if(window.Howl)return new window.Howl({src:[a]});return{isPlaying:!1,play:function t(){this.isPlaying=!0},seek:function t(){this.isPlaying=!1},playing:function t(){},rate:function t(){},setVolume:function t(){}}},setAudioFactory:function i(a){this.audioFactory=a},setVolume:function i(a){this._volume=a,this._updateVolume()},mute:function i(){this._isMuted=!0,this._updateVolume()},unmute:function i(){this._isMuted=!1,this._updateVolume()},getVolume:function i(){return this._volume},_updateVolume:function i(){var a,t=this.audios.length;for(a=0;a<t;a+=1)this.audios[a].volume(this._volume*(this._isMuted?0:1))}},function(){return new o}}(),createTypedArray=function(){function o(a,t){var r=0,e=[],n;switch(a){case"int16":case"uint8c":n=1;break;default:n=1.1;break}for(r=0;r<t;r+=1)e.push(n);return e}function i(a,t){if(a==="float32")return new Float32Array(t);if(a==="int16")return new Int16Array(t);if(a==="uint8c")return new Uint8ClampedArray(t);return o(a,t)}if(typeof Uint8ClampedArray==="function"&&typeof Float32Array==="function")return i;return o}();function createSizedArray(o){return Array.apply(null,{length:o})}function _typeof$6(o){return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(o)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var o=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i,a=o.length;for(i=0;i<a;i+=1)BMMath[o[i]]=Math[o[i]]})();function ProjectInterface$1(){return{}}BMMath.random=Math.random,BMMath.abs=function(o){var i=_typeof$6(o);if(i==="object"&&o.length){var a=createSizedArray(o.length),t,r=o.length;for(t=0;t<r;t+=1)a[t]=Math.abs(o[t]);return a}return Math.abs(o)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=0.5519;function roundValues(o){_shouldRoundValues=!!o}function bmRnd(o){if(_shouldRoundValues)return Math.round(o);return o}function styleDiv(o){o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.display="block",o.style.transformOrigin="0 0",o.style.webkitTransformOrigin="0 0",o.style.backfaceVisibility="visible",o.style.webkitBackfaceVisibility="visible",o.style.transformStyle="preserve-3d",o.style.webkitTransformStyle="preserve-3d",o.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(o,i,a,t){this.type=o,this.currentTime=i,this.totalTime=a,this.direction=t<0?-1:1}function BMCompleteEvent(o,i){this.type=o,this.direction=i<0?-1:1}function BMCompleteLoopEvent(o,i,a,t){this.type=o,this.currentLoop=a,this.totalLoops=i,this.direction=t<0?-1:1}function BMSegmentStartEvent(o,i,a){this.type=o,this.firstFrame=i,this.totalFrames=a}function BMDestroyEvent(o,i){this.type=o,this.target=i}function BMRenderFrameErrorEvent(o,i){this.type="renderFrameError",this.nativeError=o,this.currentTime=i}function BMConfigErrorEvent(o){this.type="configError",this.nativeError=o}function BMAnimationConfigErrorEvent(o,i){this.type=o,this.nativeError=i}var createElementID=function(){var o=0;return function i(){return o+=1,idPrefix$1+"__lottie_element_"+o}}();function HSVtoRGB(o,i,a){var t,r,e,n,s,l,h,g;switch(n=Math.floor(o*6),s=o*6-n,l=a*(1-i),h=a*(1-s*i),g=a*(1-(1-s)*i),n%6){case 0:t=a,r=g,e=l;break;case 1:t=h,r=a,e=l;break;case 2:t=l,r=a,e=g;break;case 3:t=l,r=h,e=a;break;case 4:t=g,r=l,e=a;break;case 5:t=a,r=l,e=h;break;default:break}return[t,r,e]}function RGBtoHSV(o,i,a){var t=Math.max(o,i,a),r=Math.min(o,i,a),e=t-r,n,s=t===0?0:e/t,l=t/255;switch(t){case r:n=0;break;case o:n=i-a+e*(i<a?6:0),n/=6*e;break;case i:n=a-o+e*2,n/=6*e;break;case a:n=o-i+e*4,n/=6*e;break;default:break}return[n,s,l]}function addSaturationToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[1]+=i,a[1]>1)a[1]=1;else if(a[1]<=0)a[1]=0;return HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[2]+=i,a[2]>1)a[2]=1;else if(a[2]<0)a[2]=0;return HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(o,i){var a=RGBtoHSV(o[0]*255,o[1]*255,o[2]*255);if(a[0]+=i/360,a[0]>1)a[0]-=1;else if(a[0]<0)a[0]+=1;return HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var o=[],i,a;for(i=0;i<256;i+=1)a=i.toString(16),o[i]=a.length===1?"0"+a:a;return function(t,r,e){if(t<0)t=0;if(r<0)r=0;if(e<0)e=0;return"#"+o[t]+o[r]+o[e]}}(),setSubframeEnabled=function o(i){subframeEnabled=!!i},getSubframeEnabled=function o(){return subframeEnabled},setExpressionsPlugin=function o(i){expressionsPlugin=i},getExpressionsPlugin=function o(){return expressionsPlugin},setExpressionInterfaces=function o(i){expressionsInterfaces=i},getExpressionInterfaces=function o(){return expressionsInterfaces},setDefaultCurveSegments=function o(i){defaultCurveSegments=i},getDefaultCurveSegments=function o(){return defaultCurveSegments},setIdPrefix=function o(i){idPrefix$1=i},getIdPrefix=function o(){return idPrefix$1};function createNS(o){return document.createElementNS(svgNS,o)}function _typeof$5(o){return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$5(o)}var dataManager=function(){var o=1,i=[],a,t,r={onmessage:function f(){},postMessage:function f(y){a({data:y})}},e={postMessage:function f(y){r.onmessage({data:y})}};function n(f){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",f.toString()],{type:"text/javascript"}),z=URL.createObjectURL(y);return new Worker(z)}return a=f,r}function s(){if(!t)t=n(function f(y){function z(){function U(W,x){var K,c,m=W.length,Q,Y,T,M;for(c=0;c<m;c+=1)if(K=W[c],"ks"in K&&!K.completed){if(K.completed=!0,K.hasMask){var E=K.masksProperties;Y=E.length;for(Q=0;Q<Y;Q+=1)if(E[Q].pt.k.i)R(E[Q].pt.k);else{M=E[Q].pt.k.length;for(T=0;T<M;T+=1){if(E[Q].pt.k[T].s)R(E[Q].pt.k[T].s[0]);if(E[Q].pt.k[T].e)R(E[Q].pt.k[T].e[0])}}}if(K.ty===0)K.layers=p(K.refId,x),U(K.layers,x);else if(K.ty===4)k(K.shapes);else if(K.ty===5)C(K)}}function b(W,x){if(W){var K=0,c=W.length;for(K=0;K<c;K+=1)if(W[K].t===1)W[K].data.layers=p(W[K].data.refId,x),U(W[K].data.layers,x)}}function u(W,x){var K=0,c=x.length;while(K<c){if(x[K].id===W)return x[K];K+=1}return null}function p(W,x){var K=u(W,x);if(K){if(!K.layers.__used)return K.layers.__used=!0,K.layers;return JSON.parse(JSON.stringify(K.layers))}return null}function k(W){var x,K=W.length,c,m;for(x=K-1;x>=0;x-=1)if(W[x].ty==="sh")if(W[x].ks.k.i)R(W[x].ks.k);else{m=W[x].ks.k.length;for(c=0;c<m;c+=1){if(W[x].ks.k[c].s)R(W[x].ks.k[c].s[0]);if(W[x].ks.k[c].e)R(W[x].ks.k[c].e[0])}}else if(W[x].ty==="gr")k(W[x].it)}function R(W){var x,K=W.i.length;for(x=0;x<K;x+=1)W.i[x][0]+=W.v[x][0],W.i[x][1]+=W.v[x][1],W.o[x][0]+=W.v[x][0],W.o[x][1]+=W.v[x][1]}function V(W,x){var K=x?x.split("."):[100,100,100];if(W[0]>K[0])return!0;if(K[0]>W[0])return!1;if(W[1]>K[1])return!0;if(K[1]>W[1])return!1;if(W[2]>K[2])return!0;if(K[2]>W[2])return!1;return null}var L=function(){var W=[4,4,14];function x(c){var m=c.t.d;c.t.d={k:[{s:m,t:0}]}}function K(c){var m,Q=c.length;for(m=0;m<Q;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),w=function(){var W=[4,7,99];return function(x){if(x.chars&&!V(W,x.v)){var K,c=x.chars.length;for(K=0;K<c;K+=1){var m=x.chars[K];if(m.data&&m.data.shapes){if(k(m.data.shapes),m.data.ip=0,m.data.op=99999,m.data.st=0,m.data.sr=1,m.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},!x.chars[K].t)m.data.shapes.push({ty:"no"}),m.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})}}}}}(),Z=function(){var W=[5,7,15];function x(c){var m=c.t.p;if(typeof m.a==="number")m.a={a:0,k:m.a};if(typeof m.p==="number")m.p={a:0,k:m.p};if(typeof m.r==="number")m.r={a:0,k:m.r}}function K(c){var m,Q=c.length;for(m=0;m<Q;m+=1)if(c[m].ty===5)x(c[m])}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),I=function(){var W=[4,1,9];function x(c){var m,Q=c.length,Y,T;for(m=0;m<Q;m+=1)if(c[m].ty==="gr")x(c[m].it);else if(c[m].ty==="fl"||c[m].ty==="st")if(c[m].c.k&&c[m].c.k[0].i){T=c[m].c.k.length;for(Y=0;Y<T;Y+=1){if(c[m].c.k[Y].s)c[m].c.k[Y].s[0]/=255,c[m].c.k[Y].s[1]/=255,c[m].c.k[Y].s[2]/=255,c[m].c.k[Y].s[3]/=255;if(c[m].c.k[Y].e)c[m].c.k[Y].e[0]/=255,c[m].c.k[Y].e[1]/=255,c[m].c.k[Y].e[2]/=255,c[m].c.k[Y].e[3]/=255}}else c[m].c.k[0]/=255,c[m].c.k[1]/=255,c[m].c.k[2]/=255,c[m].c.k[3]/=255}function K(c){var m,Q=c.length;for(m=0;m<Q;m+=1)if(c[m].ty===4)x(c[m].shapes)}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}(),F=function(){var W=[4,4,18];function x(c){var m,Q=c.length,Y,T;for(m=Q-1;m>=0;m-=1)if(c[m].ty==="sh")if(c[m].ks.k.i)c[m].ks.k.c=c[m].closed;else{T=c[m].ks.k.length;for(Y=0;Y<T;Y+=1){if(c[m].ks.k[Y].s)c[m].ks.k[Y].s[0].c=c[m].closed;if(c[m].ks.k[Y].e)c[m].ks.k[Y].e[0].c=c[m].closed}}else if(c[m].ty==="gr")x(c[m].it)}function K(c){var m,Q,Y=c.length,T,M,E,oo;for(Q=0;Q<Y;Q+=1){if(m=c[Q],m.hasMask){var io=m.masksProperties;M=io.length;for(T=0;T<M;T+=1)if(io[T].pt.k.i)io[T].pt.k.c=io[T].cl;else{oo=io[T].pt.k.length;for(E=0;E<oo;E+=1){if(io[T].pt.k[E].s)io[T].pt.k[E].s[0].c=io[T].cl;if(io[T].pt.k[E].e)io[T].pt.k[E].e[0].c=io[T].cl}}}if(m.ty===4)x(m.shapes)}}return function(c){if(V(W,c.v)){if(K(c.layers),c.assets){var m,Q=c.assets.length;for(m=0;m<Q;m+=1)if(c.assets[m].layers)K(c.assets[m].layers)}}}}();function J(W){if(W.__complete)return;I(W),L(W),w(W),Z(W),F(W),U(W.layers,W.assets),b(W.chars,W.assets),W.__complete=!0}function C(W){if(W.t.a.length===0&&!("m"in W.t.p));}var j={};return j.completeData=J,j.checkColors=I,j.checkChars=w,j.checkPathProperties=Z,j.checkShapes=F,j.completeLayers=U,j}if(!e.dataManager)e.dataManager=z();if(!e.assetLoader)e.assetLoader=function(){function U(u){var p=u.getResponseHeader("content-type");if(p&&u.responseType==="json"&&p.indexOf("json")!==-1)return u.response;if(u.response&&_typeof$5(u.response)==="object")return u.response;if(u.response&&typeof u.response==="string")return JSON.parse(u.response);if(u.responseText)return JSON.parse(u.responseText);return null}function b(u,p,k,R){var V,L=new XMLHttpRequest;try{L.responseType="json"}catch(w){}L.onreadystatechange=function(){if(L.readyState===4)if(L.status===200)V=U(L),k(V);else try{V=U(L),k(V)}catch(w){if(R)R(w)}};try{L.open(["G","E","T"].join(""),u,!0)}catch(w){L.open(["G","E","T"].join(""),p+"/"+u,!0)}L.send()}return{load:b}}();if(y.data.type==="loadAnimation")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.dataManager.completeData(U),e.postMessage({id:y.data.id,payload:U,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var v=y.data.animation;e.dataManager.completeData(v),e.postMessage({id:y.data.id,payload:v,status:"success"})}else if(y.data.type==="loadData")e.assetLoader.load(y.data.path,y.data.fullPath,function(U){e.postMessage({id:y.data.id,payload:U,status:"success"})},function(){e.postMessage({id:y.data.id,status:"error"})})}),t.onmessage=function(f){var y=f.data,z=y.id,v=i[z];if(i[z]=null,y.status==="success")v.onComplete(y.payload);else if(v.onError)v.onError()}}function l(f,y){o+=1;var z="processId_"+o;return i[z]={onComplete:f,onError:y},z}function h(f,y,z){s();var v=l(y,z);t.postMessage({type:"loadAnimation",path:f,fullPath:window.location.origin+window.location.pathname,id:v})}function g(f,y,z){s();var v=l(y,z);t.postMessage({type:"loadData",path:f,fullPath:window.location.origin+window.location.pathname,id:v})}function H(f,y,z){s();var v=l(y,z);t.postMessage({type:"complete",animation:f,id:v})}return{loadAnimation:h,loadData:g,completeAnimation:H}}(),ImagePreloader=function(){var o=function(){var b=createTag("canvas");b.width=1,b.height=1;var u=b.getContext("2d");return u.fillStyle="rgba(0,0,0,0)",u.fillRect(0,0,1,1),b}();function i(){if(this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function a(){if(this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages){if(this.imagesLoadedCb)this.imagesLoadedCb(null)}}function t(b,u,p){var k="";if(b.e)k=b.p;else if(u){var R=b.p;if(R.indexOf("images/")!==-1)R=R.split("/")[1];k=u+R}else k=p,k+=b.u?b.u:"",k+=b.p;return k}function r(b){var u=0,p=setInterval(function(){var k=b.getBBox();if(k.width||u>500)this._imageLoaded(),clearInterval(p);u+=1}.bind(this),50)}function e(b){var u=t(b,this.assetsPath,this.path),p=createNS("image");if(isSafari)this.testImageLoaded(p);else p.addEventListener("load",this._imageLoaded,!1);if(p.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),p.setAttributeNS("http://www.w3.org/1999/xlink","href",u),this._elementHelper.append)this._elementHelper.append(p);else this._elementHelper.appendChild(p);var k={img:p,assetData:b};return k}function n(b){var u=t(b,this.assetsPath,this.path),p=createTag("img");p.crossOrigin="anonymous",p.addEventListener("load",this._imageLoaded,!1),p.addEventListener("error",function(){k.img=o,this._imageLoaded()}.bind(this),!1),p.src=u;var k={img:p,assetData:b};return k}function s(b){var u={assetData:b},p=t(b,this.assetsPath,this.path);return dataManager.loadData(p,function(k){u.img=k,this._footageLoaded()}.bind(this),function(){u.img={},this._footageLoaded()}.bind(this)),u}function l(b,u){this.imagesLoadedCb=u;var p,k=b.length;for(p=0;p<k;p+=1)if(!b[p].layers){if(!b[p].t||b[p].t==="seq")this.totalImages+=1,this.images.push(this._createImageData(b[p]));else if(b[p].t===3)this.totalFootages+=1,this.images.push(this.createFootageData(b[p]))}}function h(b){this.path=b||""}function g(b){this.assetsPath=b||""}function H(b){var u=0,p=this.images.length;while(u<p){if(this.images[u].assetData===b)return this.images[u].img;u+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function z(){return this.totalFootages===this.loadedFootagesCount}function v(b,u){if(b==="svg")this._elementHelper=u,this._createImageData=this.createImageData.bind(this);else this._createImageData=this.createImgData.bind(this)}function U(){this._imageLoaded=i.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=r.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return U.prototype={loadAssets:l,setAssetsPath:g,setPath:h,loadedImages:y,loadedFootages:z,destroy:f,getAsset:H,createImgData:n,createImageData:e,imageLoaded:i,footageLoaded:a,setCacheType:v},U}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function o(i,a){if(this._cbs[i]){var t=this._cbs[i];for(var r=0;r<t.length;r+=1)t[r](a)}},addEventListener:function o(i,a){if(!this._cbs[i])this._cbs[i]=[];return this._cbs[i].push(a),function(){this.removeEventListener(i,a)}.bind(this)},removeEventListener:function o(i,a){if(!a)this._cbs[i]=null;else if(this._cbs[i]){var t=0,r=this._cbs[i].length;while(t<r){if(this._cbs[i][t]===a)this._cbs[i].splice(t,1),t-=1,r-=1;t+=1}if(!this._cbs[i].length)this._cbs[i]=null}}};var markerParser=function(){function o(i){var a=i.split(`\r
2
+ `),t={},r,e=0;for(var n=0;n<a.length;n+=1)if(r=a[n].split(":"),r.length===2)t[r[0]]=r[1].trim(),e+=1;if(e===0)throw new Error;return t}return function(i){var a=[];for(var t=0;t<i.length;t+=1){var r=i[t],e={time:r.tm,duration:r.dr};try{e.payload=JSON.parse(i[t].cm)}catch(n){try{e.payload=o(i[t].cm)}catch(s){e.payload={name:i[t].cm}}}a.push(e)}return a}}(),ProjectInterface=function(){function o(i){this.compositions.push(i)}return function(){function i(a){var t=0,r=this.compositions.length;while(t<r){if(this.compositions[t].data&&this.compositions[t].data.nm===a){if(this.compositions[t].prepareFrame&&this.compositions[t].data.xt)this.compositions[t].prepareFrame(this.currentFrame);return this.compositions[t].compInterface}t+=1}return null}return i.compositions=[],i.currentFrame=0,i.registerComposition=o,i}}(),renderers={},registerRenderer=function o(i,a){renderers[i]=a};function getRenderer(o){return renderers[o]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var o in renderers)if(renderers[o])return o;return""}function _typeof$4(o){return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$4(o)}var AnimationItem=function o(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(o){if(o.wrapper||o.container)this.wrapper=o.wrapper||o.container;var i="svg";if(o.animType)i=o.animType;else if(o.renderer)i=o.renderer;var a=getRenderer(i);if(this.renderer=new a(this,o.rendererSettings),this.imagePreloader.setCacheType(i,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=i,o.loop===""||o.loop===null||o.loop===void 0||o.loop===!0)this.loop=!0;else if(o.loop===!1)this.loop=!1;else this.loop=parseInt(o.loop,10);if(this.autoplay="autoplay"in o?o.autoplay:!0,this.name=o.name?o.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(o,"autoloadSegments")?o.autoloadSegments:!0,this.assetsPath=o.assetsPath,this.initialSegment=o.initialSegment,o.audioFactory)this.audioController.setAudioFactory(o.audioFactory);if(o.animationData)this.setupAnimation(o.animationData);else if(o.path){if(o.path.lastIndexOf("\\")!==-1)this.path=o.path.substr(0,o.path.lastIndexOf("\\")+1);else this.path=o.path.substr(0,o.path.lastIndexOf("/")+1);this.fileName=o.path.substr(o.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(o.path,this.configAnimation,this.onSetupError)}},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(o){dataManager.completeAnimation(o,this.configAnimation)},AnimationItem.prototype.setData=function(o,i){if(i){if(_typeof$4(i)!=="object")i=JSON.parse(i)}var a={wrapper:o,animationData:i},t=o.attributes;a.path=t.getNamedItem("data-animation-path")?t.getNamedItem("data-animation-path").value:t.getNamedItem("data-bm-path")?t.getNamedItem("data-bm-path").value:t.getNamedItem("bm-path")?t.getNamedItem("bm-path").value:"",a.animType=t.getNamedItem("data-anim-type")?t.getNamedItem("data-anim-type").value:t.getNamedItem("data-bm-type")?t.getNamedItem("data-bm-type").value:t.getNamedItem("bm-type")?t.getNamedItem("bm-type").value:t.getNamedItem("data-bm-renderer")?t.getNamedItem("data-bm-renderer").value:t.getNamedItem("bm-renderer")?t.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var r=t.getNamedItem("data-anim-loop")?t.getNamedItem("data-anim-loop").value:t.getNamedItem("data-bm-loop")?t.getNamedItem("data-bm-loop").value:t.getNamedItem("bm-loop")?t.getNamedItem("bm-loop").value:"";if(r==="false")a.loop=!1;else if(r==="true")a.loop=!0;else if(r!=="")a.loop=parseInt(r,10);var e=t.getNamedItem("data-anim-autoplay")?t.getNamedItem("data-anim-autoplay").value:t.getNamedItem("data-bm-autoplay")?t.getNamedItem("data-bm-autoplay").value:t.getNamedItem("bm-autoplay")?t.getNamedItem("bm-autoplay").value:!0;a.autoplay=e!=="false",a.name=t.getNamedItem("data-name")?t.getNamedItem("data-name").value:t.getNamedItem("data-bm-name")?t.getNamedItem("data-bm-name").value:t.getNamedItem("bm-name")?t.getNamedItem("bm-name").value:"";var n=t.getNamedItem("data-anim-prerender")?t.getNamedItem("data-anim-prerender").value:t.getNamedItem("data-bm-prerender")?t.getNamedItem("data-bm-prerender").value:t.getNamedItem("bm-prerender")?t.getNamedItem("bm-prerender").value:"";if(n==="false")a.prerender=!1;if(!a.path)this.trigger("destroy");else this.setParams(a)},AnimationItem.prototype.includeLayers=function(o){if(o.op>this.animationData.op)this.animationData.op=o.op,this.totalFrames=Math.floor(o.op-this.animationData.ip);var i=this.animationData.layers,a,t=i.length,r=o.layers,e,n=r.length;for(e=0;e<n;e+=1){a=0;while(a<t){if(i[a].id===r[e].id){i[a]=r[e];break}a+=1}}if(o.chars||o.fonts)this.renderer.globalData.fontManager.addChars(o.chars),this.renderer.globalData.fontManager.addFonts(o.fonts,this.renderer.globalData.defs);if(o.assets){t=o.assets.length;for(a=0;a<t;a+=1)this.animationData.assets.push(o.assets[a])}this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(o){this.animationData=o;var i=getExpressionsPlugin();if(i)i.initExpressions(this);this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var o=this.animationData.segments;if(!o||o.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var i=o.shift();this.timeCompleted=i.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(a,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){var o=this.animationData.segments;if(!o)this.timeCompleted=this.totalFrames;this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(o){if(!this.renderer)return;try{if(this.animationData=o,this.initialSegment)this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0]);else this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip);if(this.renderer.configAnimation(o),!o.assets)o.assets=[];if(this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1000,this.renderer.searchExtraCompositions(o.assets),this.markers=markerParser(o.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused)this.audioController.pause()}catch(i){this.triggerConfigError(i)}},AnimationItem.prototype.waitForFontsLoaded=function(){if(!this.renderer)return;if(this.renderer.globalData.fontManager.isLoaded)this.checkLoaded();else setTimeout(this.waitForFontsLoaded.bind(this),20)},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var o=getExpressionsPlugin();if(o)o.initExpressions(this);if(this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay)this.play()}},AnimationItem.prototype.resize=function(o,i){var a=typeof o==="number"?o:void 0,t=typeof i==="number"?i:void 0;this.renderer.updateContainerSize(a,t)},AnimationItem.prototype.setSubframe=function(o){this.isSubframeEnabled=!!o},AnimationItem.prototype.gotoFrame=function(){if(this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted)this.currentFrame=this.timeCompleted;this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(this.isLoaded===!1||!this.renderer)return;try{if(this.expressionsPlugin)this.expressionsPlugin.resetFrame();this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(o){this.triggerRenderFrameError(o)}},AnimationItem.prototype.play=function(o){if(o&&this.name!==o)return;if(this.isPaused===!0){if(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle)this._idle=!1,this.trigger("_active")}},AnimationItem.prototype.pause=function(o){if(o&&this.name!==o)return;if(this.isPaused===!1)this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause()},AnimationItem.prototype.togglePause=function(o){if(o&&this.name!==o)return;if(this.isPaused===!0)this.play();else this.pause()},AnimationItem.prototype.stop=function(o){if(o&&this.name!==o)return;this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0)},AnimationItem.prototype.getMarkerData=function(o){var i;for(var a=0;a<this.markers.length;a+=1)if(i=this.markers[a],i.payload&&i.payload.name===o)return i;return null},AnimationItem.prototype.goToAndStop=function(o,i,a){if(a&&this.name!==a)return;var t=Number(o);if(isNaN(t)){var r=this.getMarkerData(o);if(r)this.goToAndStop(r.time,!0)}else if(i)this.setCurrentRawFrameValue(o);else this.setCurrentRawFrameValue(o*this.frameModifier);this.pause()},AnimationItem.prototype.goToAndPlay=function(o,i,a){if(a&&this.name!==a)return;var t=Number(o);if(isNaN(t)){var r=this.getMarkerData(o);if(r)if(!r.duration)this.goToAndStop(r.time,!0);else this.playSegments([r.time,r.time+r.duration],!0)}else this.goToAndStop(t,i,a);this.play()},AnimationItem.prototype.advanceTime=function(o){if(this.isPaused===!0||this.isLoaded===!1)return;var i=this.currentRawFrame+o*this.frameModifier,a=!1;if(i>=this.totalFrames-1&&this.frameModifier>0)if(!this.loop||this.playCount===this.loop){if(!this.checkSegments(i>this.totalFrames?i%this.totalFrames:0))a=!0,i=this.totalFrames-1}else if(i>=this.totalFrames){if(this.playCount+=1,!this.checkSegments(i%this.totalFrames))this.setCurrentRawFrameValue(i%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete")}else this.setCurrentRawFrameValue(i);else if(i<0){if(!this.checkSegments(i%this.totalFrames))if(this.loop&&!(this.playCount--<=0&&this.loop!==!0))if(this.setCurrentRawFrameValue(this.totalFrames+i%this.totalFrames),!this._completedLoop)this._completedLoop=!0;else this.trigger("loopComplete");else a=!0,i=0}else this.setCurrentRawFrameValue(i);if(a)this.setCurrentRawFrameValue(i),this.pause(),this.trigger("complete")},AnimationItem.prototype.adjustSegment=function(o,i){if(this.playCount=0,o[1]<o[0]){if(this.frameModifier>0)if(this.playSpeed<0)this.setSpeed(-this.playSpeed);else this.setDirection(-1);this.totalFrames=o[0]-o[1],this.timeCompleted=this.totalFrames,this.firstFrame=o[1],this.setCurrentRawFrameValue(this.totalFrames-0.001-i)}else if(o[1]>o[0]){if(this.frameModifier<0)if(this.playSpeed<0)this.setSpeed(-this.playSpeed);else this.setDirection(1);this.totalFrames=o[1]-o[0],this.timeCompleted=this.totalFrames,this.firstFrame=o[0],this.setCurrentRawFrameValue(0.001+i)}this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(o,i){var a=-1;if(this.isPaused){if(this.currentRawFrame+this.firstFrame<o)a=o;else if(this.currentRawFrame+this.firstFrame>i)a=i-o}if(this.firstFrame=o,this.totalFrames=i-o,this.timeCompleted=this.totalFrames,a!==-1)this.goToAndStop(a,!0)},AnimationItem.prototype.playSegments=function(o,i){if(i)this.segments.length=0;if(_typeof$4(o[0])==="object"){var a,t=o.length;for(a=0;a<t;a+=1)this.segments.push(o[a])}else this.segments.push(o);if(this.segments.length&&i)this.adjustSegment(this.segments.shift(),0);if(this.isPaused)this.play()},AnimationItem.prototype.resetSegments=function(o){if(this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),o)this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(o){if(this.segments.length)return this.adjustSegment(this.segments.shift(),o),!0;return!1},AnimationItem.prototype.destroy=function(o){if(o&&this.name!==o||!this.renderer)return;this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null},AnimationItem.prototype.setCurrentRawFrameValue=function(o){this.currentRawFrame=o,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(o){this.playSpeed=o,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(o){this.playDirection=o<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(o){this.loop=o},AnimationItem.prototype.setVolume=function(o,i){if(i&&this.name!==i)return;this.audioController.setVolume(o)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(o){if(o&&this.name!==o)return;this.audioController.mute()},AnimationItem.prototype.unmute=function(o){if(o&&this.name!==o)return;this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(o){var i="";if(o.e)i=o.p;else if(this.assetsPath){var a=o.p;if(a.indexOf("images/")!==-1)a=a.split("/")[1];i=this.assetsPath+a}else i=this.path,i+=o.u?o.u:"",i+=o.p;return i},AnimationItem.prototype.getAssetData=function(o){var i=0,a=this.assets.length;while(i<a){if(o===this.assets[i].id)return this.assets[i];i+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(o){return o?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(o,i,a){try{var t=this.renderer.getElementByPath(o);t.updateDocumentData(i,a)}catch(r){}},AnimationItem.prototype.trigger=function(o){if(this._cbs&&this._cbs[o])switch(o){case"enterFrame":this.triggerEvent(o,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(o,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(o,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(o,new BMCompleteEvent(o,this.frameMult));break;case"segmentStart":this.triggerEvent(o,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(o,new BMDestroyEvent(o,this));break;default:this.triggerEvent(o)}if(o==="enterFrame"&&this.onEnterFrame)this.onEnterFrame.call(this,new BMEnterFrameEvent(o,this.currentFrame,this.totalFrames,this.frameMult));if(o==="loopComplete"&&this.onLoopComplete)this.onLoopComplete.call(this,new BMCompleteLoopEvent(o,this.loop,this.playCount,this.frameMult));if(o==="complete"&&this.onComplete)this.onComplete.call(this,new BMCompleteEvent(o,this.frameMult));if(o==="segmentStart"&&this.onSegmentStart)this.onSegmentStart.call(this,new BMSegmentStartEvent(o,this.firstFrame,this.totalFrames));if(o==="destroy"&&this.onDestroy)this.onDestroy.call(this,new BMDestroyEvent(o,this))},AnimationItem.prototype.triggerRenderFrameError=function(o){var i=new BMRenderFrameErrorEvent(o,this.currentFrame);if(this.triggerEvent("error",i),this.onError)this.onError.call(this,i)},AnimationItem.prototype.triggerConfigError=function(o){var i=new BMConfigErrorEvent(o,this.currentFrame);if(this.triggerEvent("error",i),this.onError)this.onError.call(this,i)};var animationManager=function(){var o={},i=[],a=0,t=0,r=0,e=!0,n=!1;function s(x){var K=0,c=x.target;while(K<t){if(i[K].animation===c){if(i.splice(K,1),K-=1,t-=1,!c.isPaused)H()}K+=1}}function l(x,K){if(!x)return null;var c=0;while(c<t){if(i[c].elem===x&&i[c].elem!==null)return i[c].animation;c+=1}var m=new AnimationItem;return f(m,x),m.setData(x,K),m}function h(){var x,K=i.length,c=[];for(x=0;x<K;x+=1)c.push(i[x].animation);return c}function g(){r+=1,I()}function H(){r-=1}function f(x,K){x.addEventListener("destroy",s),x.addEventListener("_active",g),x.addEventListener("_idle",H),i.push({elem:K,animation:x}),t+=1}function y(x){var K=new AnimationItem;return f(K,null),K.setParams(x),K}function z(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setSpeed(x,K)}function v(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setDirection(x,K)}function U(x){var K;for(K=0;K<t;K+=1)i[K].animation.play(x)}function b(x){var K=x-a,c;for(c=0;c<t;c+=1)i[c].animation.advanceTime(K);if(a=x,r&&!n)window.requestAnimationFrame(b);else e=!0}function u(x){a=x,window.requestAnimationFrame(b)}function p(x){var K;for(K=0;K<t;K+=1)i[K].animation.pause(x)}function k(x,K,c){var m;for(m=0;m<t;m+=1)i[m].animation.goToAndStop(x,K,c)}function R(x){var K;for(K=0;K<t;K+=1)i[K].animation.stop(x)}function V(x){var K;for(K=0;K<t;K+=1)i[K].animation.togglePause(x)}function L(x){var K;for(K=t-1;K>=0;K-=1)i[K].animation.destroy(x)}function w(x,K,c){var m=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),Q,Y=m.length;for(Q=0;Q<Y;Q+=1){if(c)m[Q].setAttribute("data-bm-type",c);l(m[Q],x)}if(K&&Y===0){if(!c)c="svg";var T=document.getElementsByTagName("body")[0];T.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",c),T.appendChild(M),l(M,x)}}function Z(){var x;for(x=0;x<t;x+=1)i[x].animation.resize()}function I(){if(!n&&r){if(e)window.requestAnimationFrame(u),e=!1}}function F(){n=!0}function J(){n=!1,I()}function C(x,K){var c;for(c=0;c<t;c+=1)i[c].animation.setVolume(x,K)}function j(x){var K;for(K=0;K<t;K+=1)i[K].animation.mute(x)}function W(x){var K;for(K=0;K<t;K+=1)i[K].animation.unmute(x)}return o.registerAnimation=l,o.loadAnimation=y,o.setSpeed=z,o.setDirection=v,o.play=U,o.pause=p,o.stop=R,o.togglePause=V,o.searchAnimations=w,o.resize=Z,o.goToAndStop=k,o.destroy=L,o.freeze=F,o.unfreeze=J,o.setVolume=C,o.mute=j,o.unmute=W,o.getRegisteredAnimations=h,o}(),BezierFactory=function(){var o={};o.getBezierEasing=a;var i={};function a(u,p,k,R,V){var L=V||("bez_"+u+"_"+p+"_"+k+"_"+R).replace(/\./g,"p");if(i[L])return i[L];var w=new b([u,p,k,R]);return i[L]=w,w}var t=4,r=0.001,e=0.0000001,n=10,s=11,l=1/(s-1),h=typeof Float32Array==="function";function g(u,p){return 1-3*p+3*u}function H(u,p){return 3*p-6*u}function f(u){return 3*u}function y(u,p,k){return((g(p,k)*u+H(p,k))*u+f(p))*u}function z(u,p,k){return 3*g(p,k)*u*u+2*H(p,k)*u+f(p)}function v(u,p,k,R,V){var L,w,Z=0;do if(w=p+(k-p)/2,L=y(w,R,V)-u,L>0)k=w;else p=w;while(Math.abs(L)>e&&++Z<n);return w}function U(u,p,k,R){for(var V=0;V<t;++V){var L=z(p,k,R);if(L===0)return p;var w=y(p,k,R)-u;p-=w/L}return p}function b(u){this._p=u,this._mSampleValues=h?new Float32Array(s):new Array(s),this._precomputed=!1,this.get=this.get.bind(this)}return b.prototype={get:function u(p){var k=this._p[0],R=this._p[1],V=this._p[2],L=this._p[3];if(!this._precomputed)this._precompute();if(k===R&&V===L)return p;if(p===0)return 0;if(p===1)return 1;return y(this._getTForX(p),R,L)},_precompute:function u(){var p=this._p[0],k=this._p[1],R=this._p[2],V=this._p[3];if(this._precomputed=!0,p!==k||R!==V)this._calcSampleValues()},_calcSampleValues:function u(){var p=this._p[0],k=this._p[2];for(var R=0;R<s;++R)this._mSampleValues[R]=y(R*l,p,k)},_getTForX:function u(p){var k=this._p[0],R=this._p[2],V=this._mSampleValues,L=0,w=1,Z=s-1;for(;w!==Z&&V[w]<=p;++w)L+=l;--w;var I=(p-V[w])/(V[w+1]-V[w]),F=L+I*l,J=z(F,k,R);if(J>=r)return U(p,F,k,R);if(J===0)return F;return v(p,L,L+l,k,R)}},o}(),pooling=function(){function o(i){return i.concat(createSizedArray(i.length))}return{double:o}}(),poolFactory=function(){return function(o,i,a){var t=0,r=o,e=createSizedArray(r),n={newElement:s,release:l};function s(){var h;if(t)t-=1,h=e[t];else h=i();return h}function l(h){if(t===r)e=pooling.double(e),r*=2;if(a)a(h);e[t]=h,t+=1}return n}}(),bezierLengthPool=function(){function o(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,o)}(),segmentsLengthPool=function(){function o(){return{lengths:[],totalLength:0}}function i(a){var t,r=a.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(a.lengths[t]);a.lengths.length=0}return poolFactory(8,o,i)}();function bezFunction(){var o=Math;function i(f,y,z,v,U,b){var u=f*v+y*U+z*b-U*v-b*f-z*y;return u>-0.001&&u<0.001}function a(f,y,z,v,U,b,u,p,k){if(z===0&&b===0&&k===0)return i(f,y,v,U,u,p);var R=o.sqrt(o.pow(v-f,2)+o.pow(U-y,2)+o.pow(b-z,2)),V=o.sqrt(o.pow(u-f,2)+o.pow(p-y,2)+o.pow(k-z,2)),L=o.sqrt(o.pow(u-v,2)+o.pow(p-U,2)+o.pow(k-b,2)),w;if(R>V)if(R>L)w=R-V-L;else w=L-V-R;else if(L>V)w=L-V-R;else w=V-R-L;return w>-0.0001&&w<0.0001}var t=function(){return function(f,y,z,v){var U=getDefaultCurveSegments(),b,u,p,k,R,V=0,L,w=[],Z=[],I=bezierLengthPool.newElement();p=z.length;for(b=0;b<U;b+=1){R=b/(U-1),L=0;for(u=0;u<p;u+=1){if(k=bmPow(1-R,3)*f[u]+3*bmPow(1-R,2)*R*z[u]+3*(1-R)*bmPow(R,2)*v[u]+bmPow(R,3)*y[u],w[u]=k,Z[u]!==null)L+=bmPow(w[u]-Z[u],2);Z[u]=w[u]}if(L)L=bmSqrt(L),V+=L;I.percents[b]=R,I.lengths[b]=V}return I.addedLength=V,I}}();function r(f){var y=segmentsLengthPool.newElement(),z=f.c,v=f.v,U=f.o,b=f.i,u,p=f._length,k=y.lengths,R=0;for(u=0;u<p-1;u+=1)k[u]=t(v[u],v[u+1],U[u],b[u+1]),R+=k[u].addedLength;if(z&&p)k[u]=t(v[u],v[0],U[u],b[0]),R+=k[u].addedLength;return y.totalLength=R,y}function e(f){this.segmentLength=0,this.points=new Array(f)}function n(f,y){this.partialLength=f,this.point=y}var s=function(){var f={};return function(y,z,v,U){var b=(y[0]+"_"+y[1]+"_"+z[0]+"_"+z[1]+"_"+v[0]+"_"+v[1]+"_"+U[0]+"_"+U[1]).replace(/\./g,"p");if(!f[b]){var u=getDefaultCurveSegments(),p,k,R,V,L,w=0,Z,I,F=null;if(y.length===2&&(y[0]!==z[0]||y[1]!==z[1])&&i(y[0],y[1],z[0],z[1],y[0]+v[0],y[1]+v[1])&&i(y[0],y[1],z[0],z[1],z[0]+U[0],z[1]+U[1]))u=2;var J=new e(u);R=v.length;for(p=0;p<u;p+=1){I=createSizedArray(R),L=p/(u-1),Z=0;for(k=0;k<R;k+=1)if(V=bmPow(1-L,3)*y[k]+3*bmPow(1-L,2)*L*(y[k]+v[k])+3*(1-L)*bmPow(L,2)*(z[k]+U[k])+bmPow(L,3)*z[k],I[k]=V,F!==null)Z+=bmPow(I[k]-F[k],2);Z=bmSqrt(Z),w+=Z,J.points[p]=new n(Z,I),F=I}J.segmentLength=w,f[b]=J}return f[b]}}();function l(f,y){var{percents:z,lengths:v}=y,U=z.length,b=bmFloor((U-1)*f),u=f*y.addedLength,p=0;if(b===U-1||b===0||u===v[b])return z[b];var k=v[b]>u?-1:1,R=!0;while(R){if(v[b]<=u&&v[b+1]>u)p=(u-v[b])/(v[b+1]-v[b]),R=!1;else b+=k;if(b<0||b>=U-1){if(b===U-1)return z[b];R=!1}}return z[b]+(z[b+1]-z[b])*p}function h(f,y,z,v,U,b){var u=l(U,b),p=1-u,k=o.round((p*p*p*f[0]+(u*p*p+p*u*p+p*p*u)*z[0]+(u*u*p+p*u*u+u*p*u)*v[0]+u*u*u*y[0])*1000)/1000,R=o.round((p*p*p*f[1]+(u*p*p+p*u*p+p*p*u)*z[1]+(u*u*p+p*u*u+u*p*u)*v[1]+u*u*u*y[1])*1000)/1000;return[k,R]}var g=createTypedArray("float32",8);function H(f,y,z,v,U,b,u){if(U<0)U=0;else if(U>1)U=1;var p=l(U,u);b=b>1?1:b;var k=l(b,u),R,V=f.length,L=1-p,w=1-k,Z=L*L*L,I=p*L*L*3,F=p*p*L*3,J=p*p*p,C=L*L*w,j=p*L*w+L*p*w+L*L*k,W=p*p*w+L*p*k+p*L*k,x=p*p*k,K=L*w*w,c=p*w*w+L*k*w+L*w*k,m=p*k*w+L*k*k+p*w*k,Q=p*k*k,Y=w*w*w,T=k*w*w+w*k*w+w*w*k,M=k*k*w+w*k*k+k*w*k,E=k*k*k;for(R=0;R<V;R+=1)g[R*4]=o.round((Z*f[R]+I*z[R]+F*v[R]+J*y[R])*1000)/1000,g[R*4+1]=o.round((C*f[R]+j*z[R]+W*v[R]+x*y[R])*1000)/1000,g[R*4+2]=o.round((K*f[R]+c*z[R]+m*v[R]+Q*y[R])*1000)/1000,g[R*4+3]=o.round((Y*f[R]+T*z[R]+M*v[R]+E*y[R])*1000)/1000;return g}return{getSegmentsLength:r,getNewSegment:H,getPointInSegment:h,buildBezierData:s,pointOnLine2D:i,pointOnLine3D:a}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(o,i){var a=this.offsetTime,t;if(this.propType==="multidimensional")t=createTypedArray("float32",this.pv.length);var r=i.lastIndex,e=r,n=this.keyframes.length-1,s=!0,l,h,g;while(s){if(l=this.keyframes[e],h=this.keyframes[e+1],e===n-1&&o>=h.t-a){if(l.h)l=h;r=0;break}if(h.t-a>o){r=e;break}if(e<n-1)e+=1;else r=0,s=!1}g=this.keyframesMetadata[e]||{};var H,f,y,z,v,U,b=h.t-a,u=l.t-a,p;if(l.to){if(!g.bezierData)g.bezierData=bez.buildBezierData(l.s,h.s||l.e,l.to,l.ti);var k=g.bezierData;if(o>=b||o<u){var R=o>=b?k.points.length-1:0;f=k.points[R].point.length;for(H=0;H<f;H+=1)t[H]=k.points[R].point[H]}else{if(g.__fnct)U=g.__fnct;else U=BezierFactory.getBezierEasing(l.o.x,l.o.y,l.i.x,l.i.y,l.n).get,g.__fnct=U;y=U((o-u)/(b-u));var V=k.segmentLength*y,L,w=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastAddedLength:0;v=i.lastFrame<o&&i._lastKeyframeIndex===e?i._lastPoint:0,s=!0,z=k.points.length;while(s){if(w+=k.points[v].partialLength,V===0||y===0||v===k.points.length-1){f=k.points[v].point.length;for(H=0;H<f;H+=1)t[H]=k.points[v].point[H];break}else if(V>=w&&V<w+k.points[v+1].partialLength){L=(V-w)/k.points[v+1].partialLength,f=k.points[v].point.length;for(H=0;H<f;H+=1)t[H]=k.points[v].point[H]+(k.points[v+1].point[H]-k.points[v].point[H])*L;break}if(v<z-1)v+=1;else s=!1}i._lastPoint=v,i._lastAddedLength=w-k.points[v].partialLength,i._lastKeyframeIndex=e}}else{var Z,I,F,J,C;if(n=l.s.length,p=h.s||l.e,this.sh&&l.h!==1)if(o>=b)t[0]=p[0],t[1]=p[1],t[2]=p[2];else if(o<=u)t[0]=l.s[0],t[1]=l.s[1],t[2]=l.s[2];else{var j=createQuaternion(l.s),W=createQuaternion(p),x=(o-u)/(b-u);quaternionToEuler(t,slerp(j,W,x))}else for(e=0;e<n;e+=1){if(l.h!==1)if(o>=b)y=1;else if(o<u)y=0;else{if(l.o.x.constructor===Array){if(!g.__fnct)g.__fnct=[];if(!g.__fnct[e])Z=l.o.x[e]===void 0?l.o.x[0]:l.o.x[e],I=l.o.y[e]===void 0?l.o.y[0]:l.o.y[e],F=l.i.x[e]===void 0?l.i.x[0]:l.i.x[e],J=l.i.y[e]===void 0?l.i.y[0]:l.i.y[e],U=BezierFactory.getBezierEasing(Z,I,F,J).get,g.__fnct[e]=U;else U=g.__fnct[e]}else if(!g.__fnct)Z=l.o.x,I=l.o.y,F=l.i.x,J=l.i.y,U=BezierFactory.getBezierEasing(Z,I,F,J).get,l.keyframeMetadata=U;else U=g.__fnct;y=U((o-u)/(b-u))}if(p=h.s||l.e,C=l.h===1?l.s[e]:l.s[e]+(p[e]-l.s[e])*y,this.propType==="multidimensional")t[e]=C;else t=C}}return i.lastIndex=r,t}function slerp(o,i,a){var t=[],r=o[0],e=o[1],n=o[2],s=o[3],l=i[0],h=i[1],g=i[2],H=i[3],f,y,z,v,U;if(y=r*l+e*h+n*g+s*H,y<0)y=-y,l=-l,h=-h,g=-g,H=-H;if(1-y>0.000001)f=Math.acos(y),z=Math.sin(f),v=Math.sin((1-a)*f)/z,U=Math.sin(a*f)/z;else v=1-a,U=a;return t[0]=v*r+U*l,t[1]=v*e+U*h,t[2]=v*n+U*g,t[3]=v*s+U*H,t}function quaternionToEuler(o,i){var a=i[0],t=i[1],r=i[2],e=i[3],n=Math.atan2(2*t*e-2*a*r,1-2*t*t-2*r*r),s=Math.asin(2*a*t+2*r*e),l=Math.atan2(2*a*e-2*t*r,1-2*a*a-2*r*r);o[0]=n/degToRads,o[1]=s/degToRads,o[2]=l/degToRads}function createQuaternion(o){var i=o[0]*degToRads,a=o[1]*degToRads,t=o[2]*degToRads,r=Math.cos(i/2),e=Math.cos(a/2),n=Math.cos(t/2),s=Math.sin(i/2),l=Math.sin(a/2),h=Math.sin(t/2),g=r*e*n-s*l*h,H=s*l*n+r*e*h,f=s*e*n+r*l*h,y=r*l*n-s*e*h;return[H,f,y,g]}function getValueAtCurrentTime(){var o=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(o===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=a&&o>=a||this._caching.lastFrame<i&&o<i))){if(this._caching.lastFrame>=o)this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0;var t=this.interpolateValue(o,this._caching);this.pv=t}return this._caching.lastFrame=o,this.pv}function setVValue(o){var i;if(this.propType==="unidimensional"){if(i=o*this.mult,mathAbs(this.v-i)>0.00001)this.v=i,this._mdf=!0}else{var a=0,t=this.v.length;while(a<t){if(i=o[a]*this.mult,mathAbs(this.v[a]-i)>0.00001)this.v[a]=i,this._mdf=!0;a+=1}}}function processEffectsSequence(){if(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)return;if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var o,i=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(o=0;o<i;o+=1)a=this.effectsSequence[o](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}function addEffect(o){this.effectsSequence.push(o),this.container.addDynamicProperty(this)}function ValueProperty(o,i,a,t){this.propType="unidimensional",this.mult=a||1,this.data=i,this.v=a?i.k*a:i.k,this.pv=i.k,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(o,i,a,t){this.propType="multidimensional",this.mult=a||1,this.data=i,this._mdf=!1,this.elem=o,this.container=t,this.comp=o.comp,this.k=!1,this.kf=!1,this.frameId=-1;var r,e=i.k.length;this.v=createTypedArray("float32",e),this.pv=createTypedArray("float32",e),this.vel=createTypedArray("float32",e);for(r=0;r<e;r+=1)this.v[r]=i.k[r]*this.mult,this.pv[r]=i.k[r];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(o,i,a,t){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(o,i,a,t){this.propType="multidimensional";var r,e=i.k.length,n,s,l,h;for(r=0;r<e-1;r+=1)if(i.k[r].to&&i.k[r].s&&i.k[r+1]&&i.k[r+1].s){if(n=i.k[r].s,s=i.k[r+1].s,l=i.k[r].to,h=i.k[r].ti,n.length===2&&!(n[0]===s[0]&&n[1]===s[1])&&bez.pointOnLine2D(n[0],n[1],s[0],s[1],n[0]+l[0],n[1]+l[1])&&bez.pointOnLine2D(n[0],n[1],s[0],s[1],s[0]+h[0],s[1]+h[1])||n.length===3&&!(n[0]===s[0]&&n[1]===s[1]&&n[2]===s[2])&&bez.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],n[0]+l[0],n[1]+l[1],n[2]+l[2])&&bez.pointOnLine3D(n[0],n[1],n[2],s[0],s[1],s[2],s[0]+h[0],s[1]+h[1],s[2]+h[2]))i.k[r].to=null,i.k[r].ti=null;if(n[0]===s[0]&&n[1]===s[1]&&l[0]===0&&l[1]===0&&h[0]===0&&h[1]===0){if(n.length===2||n[2]===s[2]&&l[2]===0&&h[2]===0)i.k[r].to=null,i.k[r].ti=null}}this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=o.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=o,this.container=t,this.comp=o.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var g=i.k[0].s.length;this.v=createTypedArray("float32",g),this.pv=createTypedArray("float32",g);for(r=0;r<g;r+=1)this.v[r]=initFrame,this.pv[r]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",g)},this.addEffect=addEffect}var PropertyFactory=function(){function o(a,t,r,e,n){if(t.sid)t=a.globalData.slotManager.getProp(t);var s;if(!t.k.length)s=new ValueProperty(a,t,e,n);else if(typeof t.k[0]==="number")s=new MultiDimensionalProperty(a,t,e,n);else switch(r){case 0:s=new KeyframedValueProperty(a,t,e,n);break;case 1:s=new KeyframedMultidimensionalProperty(a,t,e,n);break;default:break}if(s.effectsSequence.length)n.addDynamicProperty(s);return s}var i={getProp:o};return i}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i),this.container.addDynamicProperty(this),this._isAnimated=!0},iterateDynamicProperties:function o(){this._mdf=!1;var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)if(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf)this._mdf=!0},initDynamicPropertyContainer:function o(i){this.container=i,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){function o(){return createTypedArray("float32",2)}return poolFactory(8,o)}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(o,i){this.c=o,this.setLength(i);var a=0;while(a<i)this.v[a]=pointPool.newElement(),this.o[a]=pointPool.newElement(),this.i[a]=pointPool.newElement(),a+=1},ShapePath.prototype.setLength=function(o){while(this._maxLength<o)this.doubleArrayLength();this._length=o},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(o,i,a,t,r){var e;if(this._length=Math.max(this._length,t+1),this._length>=this._maxLength)this.doubleArrayLength();switch(a){case"v":e=this.v;break;case"i":e=this.i;break;case"o":e=this.o;break;default:e=[];break}if(!e[t]||e[t]&&!r)e[t]=pointPool.newElement();e[t][0]=o,e[t][1]=i},ShapePath.prototype.setTripleAt=function(o,i,a,t,r,e,n,s){this.setXYAt(o,i,"v",n,s),this.setXYAt(a,t,"o",n,s),this.setXYAt(r,e,"i",n,s)},ShapePath.prototype.reverse=function(){var o=new ShapePath;o.setPathData(this.c,this._length);var i=this.v,a=this.o,t=this.i,r=0;if(this.c)o.setTripleAt(i[0][0],i[0][1],t[0][0],t[0][1],a[0][0],a[0][1],0,!1),r=1;var e=this._length-1,n=this._length,s;for(s=r;s<n;s+=1)o.setTripleAt(i[e][0],i[e][1],t[e][0],t[e][1],a[e][0],a[e][1],s,!1),e-=1;return o},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function o(){return new ShapePath}function i(r){var e=r._length,n;for(n=0;n<e;n+=1)pointPool.release(r.v[n]),pointPool.release(r.i[n]),pointPool.release(r.o[n]),r.v[n]=null,r.i[n]=null,r.o[n]=null;r._length=0,r.c=!1}function a(r){var e=t.newElement(),n,s=r._length===void 0?r.v.length:r._length;e.setLength(s),e.c=r.c;for(n=0;n<s;n+=1)e.setTripleAt(r.v[n][0],r.v[n][1],r.o[n][0],r.o[n][1],r.i[n][0],r.i[n][1],n);return e}var t=poolFactory(4,o,i);return t.clone=a,t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(o){if(this._length===this._maxLength)this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2;this.shapes[this._length]=o,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var o;for(o=0;o<this._length;o+=1)shapePool.release(this.shapes[o]);this._length=0};var shapeCollectionPool=function(){var o={newShapeCollection:r,release:e},i=0,a=4,t=createSizedArray(a);function r(){var n;if(i)i-=1,n=t[i];else n=new ShapeCollection;return n}function e(n){var s,l=n._length;for(s=0;s<l;s+=1)shapePool.release(n.shapes[s]);if(n._length=0,i===a)t=pooling.double(t),a*=2;t[i]=n,i+=1}return o}(),ShapePropertyFactory=function(){var o=-999999;function i(b,u,p){var k=p.lastIndex,R,V,L,w,Z,I,F,J,C,j=this.keyframes;if(b<j[0].t-this.offsetTime)R=j[0].s[0],L=!0,k=0;else if(b>=j[j.length-1].t-this.offsetTime)R=j[j.length-1].s?j[j.length-1].s[0]:j[j.length-2].e[0],L=!0;else{var W=k,x=j.length-1,K=!0,c,m,Q;while(K){if(c=j[W],m=j[W+1],m.t-this.offsetTime>b)break;if(W<x-1)W+=1;else K=!1}if(Q=this.keyframesMetadata[W]||{},L=c.h===1,k=W,!L){if(b>=m.t-this.offsetTime)J=1;else if(b<c.t-this.offsetTime)J=0;else{var Y;if(Q.__fnct)Y=Q.__fnct;else Y=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y).get,Q.__fnct=Y;J=Y((b-(c.t-this.offsetTime))/(m.t-this.offsetTime-(c.t-this.offsetTime)))}V=m.s?m.s[0]:c.e[0]}R=c.s[0]}I=u._length,F=R.i[0].length,p.lastIndex=k;for(w=0;w<I;w+=1)for(Z=0;Z<F;Z+=1)C=L?R.i[w][Z]:R.i[w][Z]+(V.i[w][Z]-R.i[w][Z])*J,u.i[w][Z]=C,C=L?R.o[w][Z]:R.o[w][Z]+(V.o[w][Z]-R.o[w][Z])*J,u.o[w][Z]=C,C=L?R.v[w][Z]:R.v[w][Z]+(V.v[w][Z]-R.v[w][Z])*J,u.v[w][Z]=C}function a(){var b=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,p=this.keyframes[this.keyframes.length-1].t-this.offsetTime,k=this._caching.lastFrame;if(!(k!==o&&(k<u&&b<u||k>p&&b>p)))this._caching.lastIndex=k<b?this._caching.lastIndex:0,this.interpolateShape(b,this.pv,this._caching);return this._caching.lastFrame=b,this.pv}function t(){this.paths=this.localShapeCollection}function r(b,u){if(b._length!==u._length||b.c!==u.c)return!1;var p,k=b._length;for(p=0;p<k;p+=1)if(b.v[p][0]!==u.v[p][0]||b.v[p][1]!==u.v[p][1]||b.o[p][0]!==u.o[p][0]||b.o[p][1]!==u.o[p][1]||b.i[p][0]!==u.i[p][0]||b.i[p][1]!==u.i[p][1])return!1;return!0}function e(b){if(!r(this.v,b))this.v=shapePool.clone(b),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection}function n(){if(this.elem.globalData.frameId===this.frameId)return;if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var b;if(this.kf)b=this.pv;else if(this.data.ks)b=this.data.ks.k;else b=this.data.pt.k;var u,p=this.effectsSequence.length;for(u=0;u<p;u+=1)b=this.effectsSequence[u](b);this.setVValue(b),this.lock=!1,this.frameId=this.elem.globalData.frameId}function s(b,u,p){this.propType="shape",this.comp=b.comp,this.container=b,this.elem=b,this.data=u,this.k=!1,this.kf=!1,this._mdf=!1;var k=p===3?u.pt.k:u.ks.k;this.v=shapePool.clone(k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=t,this.effectsSequence=[]}function l(b){this.effectsSequence.push(b),this.container.addDynamicProperty(this)}s.prototype.interpolateShape=i,s.prototype.getValue=n,s.prototype.setVValue=e,s.prototype.addEffect=l;function h(b,u,p){this.propType="shape",this.comp=b.comp,this.elem=b,this.container=b,this.offsetTime=b.data.st,this.keyframes=p===3?u.pt.k:u.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var k=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,k),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=o,this.reset=t,this._caching={lastFrame:o,lastIndex:0},this.effectsSequence=[a.bind(this)]}h.prototype.getValue=n,h.prototype.interpolateShape=i,h.prototype.setVValue=e,h.prototype.addEffect=l;var g=function(){var b=roundCorner;function u(p,k){if(this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=k.d,this.elem=p,this.comp=p.comp,this.frameId=-1,this.initDynamicPropertyContainer(p),this.p=PropertyFactory.getProp(p,k.p,1,0,this),this.s=PropertyFactory.getProp(p,k.s,1,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertEllToPath()}return u.prototype={reset:t,getValue:function p(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertEllToPath()},convertEllToPath:function p(){var k=this.p.v[0],R=this.p.v[1],V=this.s.v[0]/2,L=this.s.v[1]/2,w=this.d!==3,Z=this.v;Z.v[0][0]=k,Z.v[0][1]=R-L,Z.v[1][0]=w?k+V:k-V,Z.v[1][1]=R,Z.v[2][0]=k,Z.v[2][1]=R+L,Z.v[3][0]=w?k-V:k+V,Z.v[3][1]=R,Z.i[0][0]=w?k-V*b:k+V*b,Z.i[0][1]=R-L,Z.i[1][0]=w?k+V:k-V,Z.i[1][1]=R-L*b,Z.i[2][0]=w?k+V*b:k-V*b,Z.i[2][1]=R+L,Z.i[3][0]=w?k-V:k+V,Z.i[3][1]=R+L*b,Z.o[0][0]=w?k+V*b:k-V*b,Z.o[0][1]=R-L,Z.o[1][0]=w?k+V:k-V,Z.o[1][1]=R+L*b,Z.o[2][0]=w?k-V*b:k+V*b,Z.o[2][1]=R+L,Z.o[3][0]=w?k-V:k+V,Z.o[3][1]=R-L*b}},extendPrototype([DynamicPropertyContainer],u),u}(),H=function(){function b(u,p){if(this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=u,this.comp=u.comp,this.data=p,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(u),p.sy===1)this.ir=PropertyFactory.getProp(u,p.ir,0,0,this),this.is=PropertyFactory.getProp(u,p.is,0,0.01,this),this.convertToPath=this.convertStarToPath;else this.convertToPath=this.convertPolygonToPath;if(this.pt=PropertyFactory.getProp(u,p.pt,0,0,this),this.p=PropertyFactory.getProp(u,p.p,1,0,this),this.r=PropertyFactory.getProp(u,p.r,0,degToRads,this),this.or=PropertyFactory.getProp(u,p.or,0,0,this),this.os=PropertyFactory.getProp(u,p.os,0,0.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertToPath()}return b.prototype={reset:t,getValue:function u(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertToPath()},convertStarToPath:function u(){var p=Math.floor(this.pt.v)*2,k=Math.PI*2/p,R=!0,V=this.or.v,L=this.ir.v,w=this.os.v,Z=this.is.v,I=2*Math.PI*V/(p*2),F=2*Math.PI*L/(p*2),J,C,j,W,x=-Math.PI/2;x+=this.r.v;var K=this.data.d===3?-1:1;this.v._length=0;for(J=0;J<p;J+=1){C=R?V:L,j=R?w:Z,W=R?I:F;var c=C*Math.cos(x),m=C*Math.sin(x),Q=c===0&&m===0?0:m/Math.sqrt(c*c+m*m),Y=c===0&&m===0?0:-c/Math.sqrt(c*c+m*m);c+=+this.p.v[0],m+=+this.p.v[1],this.v.setTripleAt(c,m,c-Q*W*j*K,m-Y*W*j*K,c+Q*W*j*K,m+Y*W*j*K,J,!0),R=!R,x+=k*K}},convertPolygonToPath:function u(){var p=Math.floor(this.pt.v),k=Math.PI*2/p,R=this.or.v,V=this.os.v,L=2*Math.PI*R/(p*4),w,Z=-Math.PI*0.5,I=this.data.d===3?-1:1;Z+=this.r.v,this.v._length=0;for(w=0;w<p;w+=1){var F=R*Math.cos(Z),J=R*Math.sin(Z),C=F===0&&J===0?0:J/Math.sqrt(F*F+J*J),j=F===0&&J===0?0:-F/Math.sqrt(F*F+J*J);F+=+this.p.v[0],J+=+this.p.v[1],this.v.setTripleAt(F,J,F-C*L*V*I,J-j*L*V*I,F+C*L*V*I,J+j*L*V*I,w,!0),Z+=k*I}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],b),b}(),f=function(){function b(u,p){if(this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=u,this.comp=u.comp,this.frameId=-1,this.d=p.d,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,p.p,1,0,this),this.s=PropertyFactory.getProp(u,p.s,1,0,this),this.r=PropertyFactory.getProp(u,p.r,0,0,this),this.dynamicProperties.length)this.k=!0;else this.k=!1,this.convertRectToPath()}return b.prototype={convertRectToPath:function u(){var p=this.p.v[0],k=this.p.v[1],R=this.s.v[0]/2,V=this.s.v[1]/2,L=bmMin(R,V,this.r.v),w=L*(1-roundCorner);if(this.v._length=0,this.d===2||this.d===1)if(this.v.setTripleAt(p+R,k-V+L,p+R,k-V+L,p+R,k-V+w,0,!0),this.v.setTripleAt(p+R,k+V-L,p+R,k+V-w,p+R,k+V-L,1,!0),L!==0)this.v.setTripleAt(p+R-L,k+V,p+R-L,k+V,p+R-w,k+V,2,!0),this.v.setTripleAt(p-R+L,k+V,p-R+w,k+V,p-R+L,k+V,3,!0),this.v.setTripleAt(p-R,k+V-L,p-R,k+V-L,p-R,k+V-w,4,!0),this.v.setTripleAt(p-R,k-V+L,p-R,k-V+w,p-R,k-V+L,5,!0),this.v.setTripleAt(p-R+L,k-V,p-R+L,k-V,p-R+w,k-V,6,!0),this.v.setTripleAt(p+R-L,k-V,p+R-w,k-V,p+R-L,k-V,7,!0);else this.v.setTripleAt(p-R,k+V,p-R+w,k+V,p-R,k+V,2),this.v.setTripleAt(p-R,k-V,p-R,k-V+w,p-R,k-V,3);else if(this.v.setTripleAt(p+R,k-V+L,p+R,k-V+w,p+R,k-V+L,0,!0),L!==0)this.v.setTripleAt(p+R-L,k-V,p+R-L,k-V,p+R-w,k-V,1,!0),this.v.setTripleAt(p-R+L,k-V,p-R+w,k-V,p-R+L,k-V,2,!0),this.v.setTripleAt(p-R,k-V+L,p-R,k-V+L,p-R,k-V+w,3,!0),this.v.setTripleAt(p-R,k+V-L,p-R,k+V-w,p-R,k+V-L,4,!0),this.v.setTripleAt(p-R+L,k+V,p-R+L,k+V,p-R+w,k+V,5,!0),this.v.setTripleAt(p+R-L,k+V,p+R-w,k+V,p+R-L,k+V,6,!0),this.v.setTripleAt(p+R,k+V-L,p+R,k+V-L,p+R,k+V-w,7,!0);else this.v.setTripleAt(p-R,k-V,p-R+w,k-V,p-R,k-V,1,!0),this.v.setTripleAt(p-R,k+V,p-R,k+V-w,p-R,k+V,2,!0),this.v.setTripleAt(p+R,k+V,p+R-w,k+V,p+R,k+V,3,!0)},getValue:function u(){if(this.elem.globalData.frameId===this.frameId)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf)this.convertRectToPath()},reset:t},extendPrototype([DynamicPropertyContainer],b),b}();function y(b,u,p){var k;if(p===3||p===4){var R=p===3?u.pt:u.ks,V=R.k;if(V.length)k=new h(b,u,p);else k=new s(b,u,p)}else if(p===5)k=new f(b,u);else if(p===6)k=new g(b,u);else if(p===7)k=new H(b,u);if(k.k)b.addDynamicProperty(k);return k}function z(){return s}function v(){return h}var U={};return U.getShapeProp=y,U.getConstructorFunction=z,U.getKeyframedConstructorFunction=v,U}();/*!
3
3
  Transformation Matrix v2.0
4
4
  (c) Epistemex 2014-2015
5
5
  www.epistemex.com
6
6
  By Ken Fyrstenberg
7
7
  Contributions by leeoniya.
8
8
  License: MIT, header required.
9
- */var Matrix=function(){var{cos:o,sin:i,tan:a,round:t}=Math;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(v,-Q,0,0,Q,v,0,0,0,0,1,0,0,0,0,1)}function n(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(1,0,0,0,0,v,-Q,0,0,Q,v,0,0,0,0,1)}function s(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(v,0,Q,0,0,1,0,0,-Q,0,v,0,0,0,0,1)}function l(c){if(c===0)return this;var v=o(c),Q=i(c);return this._t(v,-Q,0,0,Q,v,0,0,0,0,1,0,0,0,0,1)}function u(c,v){return this._t(1,v,c,1,0,0)}function g(c,v){return this.shear(a(c),a(v))}function S(c,v){var Q=o(v),Y=i(v);return this._t(Q,Y,0,0,-Y,Q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(c),1,0,0,0,0,1,0,0,0,0,1)._t(Q,-Y,0,0,Y,Q,0,0,0,0,1,0,0,0,0,1)}function f(c,v,Q){if(!Q&&Q!==0)Q=1;if(c===1&&v===1&&Q===1)return this;return this._t(c,0,0,0,0,v,0,0,0,0,Q,0,0,0,0,1)}function y(c,v,Q,Y,T,M,E,oo,io,lo,yo,Jo,Ho,go,So,so){return this.props[0]=c,this.props[1]=v,this.props[2]=Q,this.props[3]=Y,this.props[4]=T,this.props[5]=M,this.props[6]=E,this.props[7]=oo,this.props[8]=io,this.props[9]=lo,this.props[10]=yo,this.props[11]=Jo,this.props[12]=Ho,this.props[13]=go,this.props[14]=So,this.props[15]=so,this}function z(c,v,Q){if(Q=Q||0,c!==0||v!==0||Q!==0)return this._t(1,0,0,0,0,1,0,0,0,0,1,0,c,v,Q,1);return this}function m(c,v,Q,Y,T,M,E,oo,io,lo,yo,Jo,Ho,go,So,so){var N=this.props;if(c===1&&v===0&&Q===0&&Y===0&&T===0&&M===1&&E===0&&oo===0&&io===0&&lo===0&&yo===1&&Jo===0)return N[12]=N[12]*c+N[15]*Ho,N[13]=N[13]*M+N[15]*go,N[14]=N[14]*yo+N[15]*So,N[15]*=so,this._identityCalculated=!1,this;var ho=N[0],li=N[1],ai=N[2],oi=N[3],ti=N[4],ri=N[5],$o=N[6],di=N[7],ci=N[8],To=N[9],ui=N[10],Xo=N[11],mi=N[12],ra=N[13],ea=N[14],na=N[15];return N[0]=ho*c+li*T+ai*io+oi*Ho,N[1]=ho*v+li*M+ai*lo+oi*go,N[2]=ho*Q+li*E+ai*yo+oi*So,N[3]=ho*Y+li*oo+ai*Jo+oi*so,N[4]=ti*c+ri*T+$o*io+di*Ho,N[5]=ti*v+ri*M+$o*lo+di*go,N[6]=ti*Q+ri*E+$o*yo+di*So,N[7]=ti*Y+ri*oo+$o*Jo+di*so,N[8]=ci*c+To*T+ui*io+Xo*Ho,N[9]=ci*v+To*M+ui*lo+Xo*go,N[10]=ci*Q+To*E+ui*yo+Xo*So,N[11]=ci*Y+To*oo+ui*Jo+Xo*so,N[12]=mi*c+ra*T+ea*io+na*Ho,N[13]=mi*v+ra*M+ea*lo+na*go,N[14]=mi*Q+ra*E+ea*yo+na*So,N[15]=mi*Y+ra*oo+ea*Jo+na*so,this._identityCalculated=!1,this}function U(c){var v=c.props;return this.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15])}function b(){if(!this._identityCalculated)this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0;return this._identity}function h(c){var v=0;while(v<16){if(c.props[v]!==this.props[v])return!1;v+=1}return!0}function p(c){var v;for(v=0;v<16;v+=1)c.props[v]=this.props[v];return c}function k(c){var v;for(v=0;v<16;v+=1)this.props[v]=c[v]}function R(c,v,Q){return{x:c*this.props[0]+v*this.props[4]+Q*this.props[8]+this.props[12],y:c*this.props[1]+v*this.props[5]+Q*this.props[9]+this.props[13],z:c*this.props[2]+v*this.props[6]+Q*this.props[10]+this.props[14]}}function V(c,v,Q){return c*this.props[0]+v*this.props[4]+Q*this.props[8]+this.props[12]}function C(c,v,Q){return c*this.props[1]+v*this.props[5]+Q*this.props[9]+this.props[13]}function w(c,v,Q){return c*this.props[2]+v*this.props[6]+Q*this.props[10]+this.props[14]}function Z(){var c=this.props[0]*this.props[5]-this.props[1]*this.props[4],v=this.props[5]/c,Q=-this.props[1]/c,Y=-this.props[4]/c,T=this.props[0]/c,M=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/c,E=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/c,oo=new Matrix;return oo.props[0]=v,oo.props[1]=Q,oo.props[4]=Y,oo.props[5]=T,oo.props[12]=M,oo.props[13]=E,oo}function I(c){var v=this.getInverseMatrix();return v.applyToPointArray(c[0],c[1],c[2]||0)}function F(c){var v,Q=c.length,Y=[];for(v=0;v<Q;v+=1)Y[v]=I(c[v]);return Y}function J(c,v,Q){var Y=createTypedArray("float32",6);if(this.isIdentity())Y[0]=c[0],Y[1]=c[1],Y[2]=v[0],Y[3]=v[1],Y[4]=Q[0],Y[5]=Q[1];else{var T=this.props[0],M=this.props[1],E=this.props[4],oo=this.props[5],io=this.props[12],lo=this.props[13];Y[0]=c[0]*T+c[1]*E+io,Y[1]=c[0]*M+c[1]*oo+lo,Y[2]=v[0]*T+v[1]*E+io,Y[3]=v[0]*M+v[1]*oo+lo,Y[4]=Q[0]*T+Q[1]*E+io,Y[5]=Q[0]*M+Q[1]*oo+lo}return Y}function L(c,v,Q){var Y;if(this.isIdentity())Y=[c,v,Q];else Y=[c*this.props[0]+v*this.props[4]+Q*this.props[8]+this.props[12],c*this.props[1]+v*this.props[5]+Q*this.props[9]+this.props[13],c*this.props[2]+v*this.props[6]+Q*this.props[10]+this.props[14]];return Y}function P(c,v){if(this.isIdentity())return c+","+v;var Q=this.props;return Math.round((c*Q[0]+v*Q[4]+Q[12])*100)/100+","+Math.round((c*Q[1]+v*Q[5]+Q[13])*100)/100}function W(){var c=0,v=this.props,Q="matrix3d(",Y=1e4;while(c<16)Q+=t(v[c]*Y)/Y,Q+=c===15?")":",",c+=1;return Q}function x(c){var v=1e4;if(c<0.000001&&c>0||c>-0.000001&&c<0)return t(c*v)/v;return c}function K(){var c=this.props,v=x(c[0]),Q=x(c[1]),Y=x(c[4]),T=x(c[5]),M=x(c[12]),E=x(c[13]);return"matrix("+v+","+Q+","+Y+","+T+","+M+","+E+")"}return function(){this.reset=r,this.rotate=e,this.rotateX=n,this.rotateY=s,this.rotateZ=l,this.skew=g,this.skewFromAxis=S,this.shear=u,this.scale=f,this.setTransform=y,this.translate=z,this.transform=m,this.multiply=U,this.applyToPoint=R,this.applyToX=V,this.applyToY=C,this.applyToZ=w,this.applyToPointArray=L,this.applyToTriplePoints=J,this.applyToPointStringified=P,this.toCSS=W,this.to2dCSS=K,this.clone=p,this.cloneFromProps=k,this.equals=h,this.inversePoints=F,this.inversePoint=I,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=b,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(o){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(o)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(o){setLocationHref(o)}function searchAnimations(){if(standalone===!0)animationManager.searchAnimations(animationData,standalone,renderer);else animationManager.searchAnimations()}function setSubframeRendering(o){setSubframeEnabled(o)}function setPrefix(o){setIdPrefix(o)}function loadAnimation(o){if(standalone===!0)o.animationData=JSON.parse(animationData);return animationManager.loadAnimation(o)}function setQuality(o){if(typeof o==="string")switch(o){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else if(!isNaN(o)&&o>1)setDefaultCurveSegments(o);if(getDefaultCurveSegments()>=50)roundValues(!1);else roundValues(!0)}function inBrowser(){return typeof navigator!=="undefined"}function installPlugin(o,i){if(o==="expressions")setExpressionsPlugin(i)}function getFactory(o){switch(o){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){if(document.readyState==="complete")clearInterval(readyStateCheckInterval),searchAnimations()}function getQueryVariable(o){var i=queryString.split("&");for(var a=0;a<i.length;a+=1){var t=i[a].split("=");if(decodeURIComponent(t[0])==o)return decodeURIComponent(t[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{if(!((typeof Ci==="undefined"?"undefined":_typeof$3(Ci))==="object"&&typeof Gi!=="undefined")&&!(typeof define==="function"&&define.amd))window.bodymovin=lottie}catch(o){}var ShapeModifiers=function(){var o={},i={};o.registerModifier=a,o.getModifier=t;function a(r,e){if(!i[r])i[r]=e}function t(r,e,n){return new i[r](e,n)}return o}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(o){if(!this.closed){o.sh.container.addDynamicProperty(o.sh);var i={shape:o.sh,data:o,localShapeCollection:shapeCollectionPool.newShapeCollection()};if(this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated)o.setAsAnimated()}},ShapeModifier.prototype.init=function(o,i){if(this.shapes=[],this.elem=o,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId)return;this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties()},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(o,i){this.s=PropertyFactory.getProp(o,i.s,0,0.01,this),this.e=PropertyFactory.getProp(o,i.e,0,0.01,this),this.o=PropertyFactory.getProp(o,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(o){o.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(o,i,a,t,r){var e=[];if(i<=1)e.push({s:o,e:i});else if(o>=1)e.push({s:o-1,e:i-1});else e.push({s:o,e:1}),e.push({s:0,e:i-1});var n=[],s,l=e.length,u;for(s=0;s<l;s+=1)if(u=e[s],!(u.e*r<t||u.s*r>t+a)){var g,S;if(u.s*r<=t)g=0;else g=(u.s*r-t)/a;if(u.e*r>=t+a)S=1;else S=(u.e*r-t)/a;n.push([g,S])}if(!n.length)n.push([0,0]);return n},TrimModifier.prototype.releasePathsData=function(o){var i,a=o.length;for(i=0;i<a;i+=1)segmentsLengthPool.release(o[i]);return o.length=0,o},TrimModifier.prototype.processShapes=function(o){var i,a;if(this._mdf||o){var t=this.o.v%360/360;if(t<0)t+=1;if(this.s.v>1)i=1+t;else if(this.s.v<0)i=0+t;else i=this.s.v+t;if(this.e.v>1)a=1+t;else if(this.e.v<0)a=0+t;else a=this.e.v+t;if(i>a){var r=i;i=a,a=r}i=Math.round(i*1e4)*0.0001,a=Math.round(a*1e4)*0.0001,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var e,n,s=this.shapes.length,l,u,g,S,f,y=0;if(a===i){for(n=0;n<s;n+=1)if(this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf)this.shapes[n].pathsData.length=0}else if(!(a===1&&i===0||a===0&&i===1)){var z=[],m,U;for(n=0;n<s;n+=1)if(m=this.shapes[n],!m.shape._mdf&&!this._mdf&&!o&&this.m!==2)m.shape.paths=m.localShapeCollection;else{if(e=m.shape.paths,u=e._length,f=0,!m.shape._mdf&&m.pathsData.length)f=m.totalShapeLength;else{g=this.releasePathsData(m.pathsData);for(l=0;l<u;l+=1)S=bez.getSegmentsLength(e.shapes[l]),g.push(S),f+=S.totalLength;m.totalShapeLength=f,m.pathsData=g}y+=f,m.shape._mdf=!0}var b=i,h=a,p=0,k;for(n=s-1;n>=0;n-=1)if(m=this.shapes[n],m.shape._mdf){if(U=m.localShapeCollection,U.releaseShapes(),this.m===2&&s>1)k=this.calculateShapeEdges(i,a,m.totalShapeLength,p,y),p+=m.totalShapeLength;else k=[[b,h]];u=k.length;for(l=0;l<u;l+=1){if(b=k[l][0],h=k[l][1],z.length=0,h<=1)z.push({s:m.totalShapeLength*b,e:m.totalShapeLength*h});else if(b>=1)z.push({s:m.totalShapeLength*(b-1),e:m.totalShapeLength*(h-1)});else z.push({s:m.totalShapeLength*b,e:m.totalShapeLength}),z.push({s:0,e:m.totalShapeLength*(h-1)});var R=this.addShapes(m,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var V=m.shape.paths.shapes[m.shape.paths._length-1];if(V.c){var C=R.pop();this.addPaths(R,U),R=this.addShapes(m,z[1],C)}else this.addPaths(R,U),R=this.addShapes(m,z[1])}this.addPaths(R,U)}}m.shape.paths=U}}else if(this._mdf)for(n=0;n<s;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0},TrimModifier.prototype.addPaths=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i.addShape(o[a])},TrimModifier.prototype.addSegment=function(o,i,a,t,r,e,n){if(r.setXYAt(i[0],i[1],"o",e),r.setXYAt(a[0],a[1],"i",e+1),n)r.setXYAt(o[0],o[1],"v",e);r.setXYAt(t[0],t[1],"v",e+1)},TrimModifier.prototype.addSegmentFromArray=function(o,i,a,t){if(i.setXYAt(o[1],o[5],"o",a),i.setXYAt(o[2],o[6],"i",a+1),t)i.setXYAt(o[0],o[4],"v",a);i.setXYAt(o[3],o[7],"v",a+1)},TrimModifier.prototype.addShapes=function(o,i,a){var t=o.pathsData,r=o.shape.paths.shapes,e,n=o.shape.paths._length,s,l,u=0,g,S,f,y,z=[],m,U=!0;if(!a)a=shapePool.newElement(),S=0,m=0;else S=a._length,m=a._length;z.push(a);for(e=0;e<n;e+=1){f=t[e].lengths,a.c=r[e].c,l=r[e].c?f.length:f.length+1;for(s=1;s<l;s+=1)if(g=f[s-1],u+g.addedLength<i.s)u+=g.addedLength,a.c=!1;else if(u>i.e){a.c=!1;break}else{if(i.s<=u&&i.e>=u+g.addedLength)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[s],r[e].v[s],a,S,U),U=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[s],r[e].o[s-1],r[e].i[s],(i.s-u)/g.addedLength,(i.e-u)/g.addedLength,f[s-1]),this.addSegmentFromArray(y,a,S,U),U=!1,a.c=!1;u+=g.addedLength,S+=1}if(r[e].c&&f.length){if(g=f[s-1],u<=i.e){var b=f[s-1].addedLength;if(i.s<=u&&i.e>=u+b)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[0],r[e].v[0],a,S,U),U=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[0],r[e].o[s-1],r[e].i[0],(i.s-u)/b,(i.e-u)/b,f[s-1]),this.addSegmentFromArray(y,a,S,U),U=!1,a.c=!1}else a.c=!1;u+=g.addedLength,S+=1}if(a._length)a.setXYAt(a.v[m][0],a.v[m][1],"i",m),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1);if(u>i.e)break;if(e<n-1)a=shapePool.newElement(),U=!0,z.push(a),S=0}return z};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(o,i){var a=i/100,t=[0,0],r=o._length,e=0;for(e=0;e<r;e+=1)t[0]+=o.v[e][0],t[1]+=o.v[e][1];t[0]/=r,t[1]/=r;var n=shapePool.newElement();n.c=o.c;var s,l,u,g,S,f;for(e=0;e<r;e+=1)s=o.v[e][0]+(t[0]-o.v[e][0])*a,l=o.v[e][1]+(t[1]-o.v[e][1])*a,u=o.o[e][0]+(t[0]-o.o[e][0])*-a,g=o.o[e][1]+(t[1]-o.o[e][1])*-a,S=o.i[e][0]+(t[0]-o.i[e][0])*-a,f=o.i[e][1]+(t[1]-o.i[e][1])*-a,n.setTripleAt(s,l,u,g,S,f,e);return n},PuckerAndBloatModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};var TransformPropertyFactory=function(){var o=[0,0];function i(l){var u=this._mdf;if(this.iterateDynamicProperties(),this._mdf=this._mdf||u,this.a)l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.s)l.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk)l.skewFromAxis(-this.sk.v,this.sa.v);if(this.r)l.rotate(-this.r.v);else l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.data.p.s)if(this.data.p.z)l.translate(this.px.v,this.py.v,-this.pz.v);else l.translate(this.px.v,this.py.v,0);else l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(l){if(this.elem.globalData.frameId===this.frameId)return;if(this._isDirty)this.precalculateMatrix(),this._isDirty=!1;if(this.iterateDynamicProperties(),this._mdf||l){var u;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1)this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.appliedTransformations<2)this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk&&this.appliedTransformations<3)this.v.skewFromAxis(-this.sk.v,this.sa.v);if(this.r&&this.appliedTransformations<4)this.v.rotate(-this.r.v);else if(!this.r&&this.appliedTransformations<4)this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.autoOriented){var g,S;if(u=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t)g=this.p.getValueAtTime((this.p.keyframes[0].t+0.01)/u,0),S=this.p.getValueAtTime(this.p.keyframes[0].t/u,0);else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t)g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/u,0),S=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-0.05)/u,0);else g=this.p.pv,S=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-0.01)/u,this.p.offsetTime);else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],S=[];var f=this.px,y=this.py;if(f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t)g[0]=f.getValueAtTime((f.keyframes[0].t+0.01)/u,0),g[1]=y.getValueAtTime((y.keyframes[0].t+0.01)/u,0),S[0]=f.getValueAtTime(f.keyframes[0].t/u,0),S[1]=y.getValueAtTime(y.keyframes[0].t/u,0);else if(f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t)g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/u,0),g[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/u,0),S[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-0.01)/u,0),S[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-0.01)/u,0);else g=[f.pv,y.pv],S[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-0.01)/u,f.offsetTime),S[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-0.01)/u,y.offsetTime)}else S=o,g=S;this.v.rotate(-Math.atan2(g[1]-S[1],g[0]-S[0]))}if(this.data.p&&this.data.p.s)if(this.data.p.z)this.v.translate(this.px.v,this.py.v,-this.pz.v);else this.v.translate(this.px.v,this.py.v,0);else this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}function t(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;if(this.r){if(!this.r.effectsSequence.length)this.pre.rotate(-this.r.v),this.appliedTransformations=4}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length)this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4}function r(){}function e(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function n(l,u,g){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=u,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||l),u.p&&u.p.s){if(this.px=PropertyFactory.getProp(l,u.p.x,0,0,this),this.py=PropertyFactory.getProp(l,u.p.y,0,0,this),u.p.z)this.pz=PropertyFactory.getProp(l,u.p.z,0,0,this)}else this.p=PropertyFactory.getProp(l,u.p||{k:[0,0,0]},1,0,this);if(u.rx){if(this.rx=PropertyFactory.getProp(l,u.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,u.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,u.rz,0,degToRads,this),u.or.k[0].ti){var S,f=u.or.k.length;for(S=0;S<f;S+=1)u.or.k[S].to=null,u.or.k[S].ti=null}this.or=PropertyFactory.getProp(l,u.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,u.r||{k:0},0,degToRads,this);if(u.sk)this.sk=PropertyFactory.getProp(l,u.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,u.sa,0,degToRads,this);if(this.a=PropertyFactory.getProp(l,u.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,u.s||{k:[100,100,100]},1,0.01,this),u.o)this.o=PropertyFactory.getProp(l,u.o,0,0.01,l);else this.o={_mdf:!1,v:1};if(this._isDirty=!0,!this.dynamicProperties.length)this.getValue(!0)}n.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:t,autoOrient:r},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=e,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function s(l,u,g){return new n(l,u,g)}return{getTransformProperty:s}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(o,i){if(this.getValue=this.processKeys,this.c=PropertyFactory.getProp(o,i.c,0,null,this),this.o=PropertyFactory.getProp(o,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(o,i.tr,this),this.so=PropertyFactory.getProp(o,i.tr.so,0,0.01,this),this.eo=PropertyFactory.getProp(o,i.tr.eo,0,0.01,this),this.data=i,!this.dynamicProperties.length)this.getValue(!0);this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(o,i,a,t,r,e){var n=e?-1:1,s=t.s.v[0]+(1-t.s.v[0])*(1-r),l=t.s.v[1]+(1-t.s.v[1])*(1-r);o.translate(t.p.v[0]*n*r,t.p.v[1]*n*r,t.p.v[2]),i.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),i.rotate(-t.r.v*n*r),i.translate(t.a.v[0],t.a.v[1],t.a.v[2]),a.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),a.scale(e?1/s:s,e?1/l:l),a.translate(t.a.v[0],t.a.v[1],t.a.v[2])},RepeaterModifier.prototype.init=function(o,i,a,t){this.elem=o,this.arr=i,this.pos=a,this.elemsData=t,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i[a]);while(a>0)a-=1,this._elements.unshift(i[a]);if(this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i]._processed=!1,o[i].ty==="gr")this.resetElements(o[i].it)},RepeaterModifier.prototype.cloneElements=function(o){var i=JSON.parse(JSON.stringify(o));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]._render=i,o[a].ty==="gr")this.changeGroupRender(o[a].it,i)},RepeaterModifier.prototype.processShapes=function(o){var i,a,t,r,e,n=!1;if(this._mdf||o){var s=Math.ceil(this.c.v);if(this._groups.length<s){while(this._groups.length<s){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}e=0;var u;for(t=0;t<=this._groups.length-1;t+=1){if(u=e<s,this._groups[t]._render=u,this.changeGroupRender(this._groups[t].it,u),!u){var g=this.elemsData[t].it,S=g[g.length-1];if(S.transform.op.v!==0)S.transform.op._mdf=!0,S.transform.op.v=0;else S.transform.op._mdf=!1}e+=1}this._currentCopies=s;var f=this.o.v,y=f%1,z=f>0?Math.floor(f):Math.ceil(f),m=this.pMatrix.props,U=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var h=0;if(f>0){while(h<z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),h+=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),h+=y}else if(f<0){while(h>z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),h-=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),h-=y}t=this.data.m===1?0:this._currentCopies-1,r=this.data.m===1?1:-1,e=this._currentCopies;var p,k;while(e){if(i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,k=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(t/(this._currentCopies-1)),h!==0){if(t!==0&&r===1||t!==this._currentCopies-1&&r===-1)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1);this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]);for(p=0;p<k;p+=1)a[p]=this.matrix.props[p];this.matrix.reset()}else{this.matrix.reset();for(p=0;p<k;p+=1)a[p]=this.matrix.props[p]}h+=1,e-=1,t+=r}}else{e=this._currentCopies,t=0,r=1;while(e)i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,e-=1,t+=r}return n},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(o,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(o,i){var a=shapePool.newElement();a.c=o.c;var t,r=o._length,e,n,s,l,u,g,S=0,f,y,z,m,U,b;for(t=0;t<r;t+=1)if(e=o.v[t],s=o.o[t],n=o.i[t],e[0]===s[0]&&e[1]===s[1]&&e[0]===n[0]&&e[1]===n[1])if((t===0||t===r-1)&&!o.c)a.setTripleAt(e[0],e[1],s[0],s[1],n[0],n[1],S),S+=1;else{if(t===0)l=o.v[r-1];else l=o.v[t-1];if(u=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),g=u?Math.min(u/2,i)/u:0,U=e[0]+(l[0]-e[0])*g,f=U,b=e[1]-(e[1]-l[1])*g,y=b,z=f-(f-e[0])*roundCorner,m=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,m,U,b,S),S+=1,t===r-1)l=o.v[0];else l=o.v[t+1];u=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),g=u?Math.min(u/2,i)/u:0,z=e[0]+(l[0]-e[0])*g,f=z,m=e[1]+(l[1]-e[1])*g,y=m,U=f-(f-e[0])*roundCorner,b=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,m,U,b,S),S+=1}else a.setTripleAt(o.v[t][0],o.v[t][1],o.o[t][0],o.o[t][1],o.i[t][0],o.i[t][1],S),S+=1;return a},RoundCornersModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.rd.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function floatEqual(o,i){return Math.abs(o-i)*1e5<=Math.min(Math.abs(o),Math.abs(i))}function floatZero(o){return Math.abs(o)<=0.00001}function lerp(o,i,a){return o*(1-a)+i*a}function lerpPoint(o,i,a){return[lerp(o[0],i[0],a),lerp(o[1],i[1],a)]}function quadRoots(o,i,a){if(o===0)return[];var t=i*i-4*o*a;if(t<0)return[];var r=-i/(2*o);if(t===0)return[r];var e=Math.sqrt(t)/(2*o);return[r-e,r+e]}function polynomialCoefficients(o,i,a,t){return[-o+3*i-3*a+t,3*o-6*i+3*a,-3*o+3*i,o]}function singlePoint(o){return new PolynomialBezier(o,o,o,o,!1)}function PolynomialBezier(o,i,a,t,r){if(r&&pointEqual(o,i))i=lerpPoint(o,t,0.3333333333333333);if(r&&pointEqual(a,t))a=lerpPoint(o,t,0.6666666666666666);var e=polynomialCoefficients(o[0],i[0],a[0],t[0]),n=polynomialCoefficients(o[1],i[1],a[1],t[1]);this.a=[e[0],n[0]],this.b=[e[1],n[1]],this.c=[e[2],n[2]],this.d=[e[3],n[3]],this.points=[o,i,a,t]}PolynomialBezier.prototype.point=function(o){return[((this.a[0]*o+this.b[0])*o+this.c[0])*o+this.d[0],((this.a[1]*o+this.b[1])*o+this.c[1])*o+this.d[1]]},PolynomialBezier.prototype.derivative=function(o){return[(3*o*this.a[0]+2*this.b[0])*o+this.c[0],(3*o*this.a[1]+2*this.b[1])*o+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(o){var i=this.derivative(o);return Math.atan2(i[1],i[0])},PolynomialBezier.prototype.normalAngle=function(o){var i=this.derivative(o);return Math.atan2(i[0],i[1])},PolynomialBezier.prototype.inflectionPoints=function(){var o=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(o))return[];var i=-0.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/o,a=i*i-0.3333333333333333*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/o;if(a<0)return[];var t=Math.sqrt(a);if(floatZero(t)){if(t>0&&t<1)return[i];return[]}return[i-t,i+t].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(o){if(o<=0)return[singlePoint(this.points[0]),this];if(o>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],o),a=lerpPoint(this.points[1],this.points[2],o),t=lerpPoint(this.points[2],this.points[3],o),r=lerpPoint(i,a,o),e=lerpPoint(a,t,o),n=lerpPoint(r,e,o);return[new PolynomialBezier(this.points[0],i,r,n,!0),new PolynomialBezier(n,e,t,this.points[3],!0)]};function extrema(o,i){var a=o.points[0][i],t=o.points[o.points.length-1][i];if(a>t){var r=t;t=a,a=r}var e=quadRoots(3*o.a[i],2*o.b[i],o.c[i]);for(var n=0;n<e.length;n+=1)if(e[n]>0&&e[n]<1){var s=o.point(e[n])[i];if(s<a)a=s;else if(s>t)t=s}return{min:a,max:t}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var o=this.bounds();return{left:o.x.min,right:o.x.max,top:o.y.min,bottom:o.y.max,width:o.x.max-o.x.min,height:o.y.max-o.y.min,cx:(o.x.max+o.x.min)/2,cy:(o.y.max+o.y.min)/2}};function intersectData(o,i,a){var t=o.boundingBox();return{cx:t.cx,cy:t.cy,width:t.width,height:t.height,bez:o,t:(i+a)/2,t1:i,t2:a}}function splitData(o){var i=o.bez.split(0.5);return[intersectData(i[0],o.t1,o.t),intersectData(i[1],o.t,o.t2)]}function boxIntersect(o,i){return Math.abs(o.cx-i.cx)*2<o.width+i.width&&Math.abs(o.cy-i.cy)*2<o.height+i.height}function intersectsImpl(o,i,a,t,r,e){if(!boxIntersect(o,i))return;if(a>=e||o.width<=t&&o.height<=t&&i.width<=t&&i.height<=t){r.push([o.t,i.t]);return}var n=splitData(o),s=splitData(i);intersectsImpl(n[0],s[0],a+1,t,r,e),intersectsImpl(n[0],s[1],a+1,t,r,e),intersectsImpl(n[1],s[0],a+1,t,r,e),intersectsImpl(n[1],s[1],a+1,t,r,e)}PolynomialBezier.prototype.intersections=function(o,i,a){if(i===void 0)i=2;if(a===void 0)a=7;var t=[];return intersectsImpl(intersectData(this,0,1),intersectData(o,0,1),0,i,t,a),t},PolynomialBezier.shapeSegment=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[i],o.o[i],o.i[a],o.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[a],o.i[a],o.o[i],o.v[i],!0)};function crossProduct(o,i){return[o[1]*i[2]-o[2]*i[1],o[2]*i[0]-o[0]*i[2],o[0]*i[1]-o[1]*i[0]]}function lineIntersection(o,i,a,t){var r=[o[0],o[1],1],e=[i[0],i[1],1],n=[a[0],a[1],1],s=[t[0],t[1],1],l=crossProduct(crossProduct(r,e),crossProduct(n,s));if(floatZero(l[2]))return null;return[l[0]/l[2],l[1]/l[2]]}function polarOffset(o,i,a){return[o[0]+Math.cos(i)*a,o[1]-Math.sin(i)*a]}function pointDistance(o,i){return Math.hypot(o[0]-i[0],o[1]-i[1])}function pointEqual(o,i){return floatEqual(o[0],i[0])&&floatEqual(o[1],i[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(o,i.s,0,null,this),this.frequency=PropertyFactory.getProp(o,i.r,0,null,this),this.pointsType=PropertyFactory.getProp(o,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(o,i,a,t,r,e,n){var s=a-Math.PI/2,l=a+Math.PI/2,u=i[0]+Math.cos(a)*t*r,g=i[1]-Math.sin(a)*t*r;o.setTripleAt(u,g,u+Math.cos(s)*e,g-Math.sin(s)*e,u+Math.cos(l)*n,g-Math.sin(l)*n,o.length())}function getPerpendicularVector(o,i){var a=[i[0]-o[0],i[1]-o[1]],t=-Math.PI*0.5,r=[Math.cos(t)*a[0]-Math.sin(t)*a[1],Math.sin(t)*a[0]+Math.cos(t)*a[1]];return r}function getProjectingAngle(o,i){var a=i===0?o.length()-1:i-1,t=(i+1)%o.length(),r=o.v[a],e=o.v[t],n=getPerpendicularVector(r,e);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(o,i,a,t,r,e,n){var s=getProjectingAngle(i,a),l=i.v[a%i._length],u=i.v[a===0?i._length-1:a-1],g=i.v[(a+1)%i._length],S=e===2?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0,f=e===2?Math.sqrt(Math.pow(l[0]-g[0],2)+Math.pow(l[1]-g[1],2)):0;setPoint(o,i.v[a%i._length],s,n,t,f/((r+1)*2),S/((r+1)*2),e)}function zigZagSegment(o,i,a,t,r,e){for(var n=0;n<t;n+=1){var s=(n+1)/(t+1),l=r===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,u=i.normalAngle(s),g=i.point(s);setPoint(o,g,u,e,a,l/((t+1)*2),l/((t+1)*2),r),e=-e}return e}ZigZagModifier.prototype.processPath=function(o,i,a,t){var r=o._length,e=shapePool.newElement();if(e.c=o.c,!o.c)r-=1;if(r===0)return e;var n=-1,s=PolynomialBezier.shapeSegment(o,0);zigZagCorner(e,o,0,i,a,t,n);for(var l=0;l<r;l+=1){if(n=zigZagSegment(e,s,i,a,t,-n),l===r-1&&!o.c)s=null;else s=PolynomialBezier.shapeSegment(o,(l+1)%r);zigZagCorner(e,o,l+1,i,a,t,n)}return e},ZigZagModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amplitude.v,s=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(n!==0){var u,g;for(a=0;a<t;a+=1){if(u=this.shapes[a],g=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),u.shape._mdf=!0,i=u.shape.paths.shapes,e=u.shape.paths._length;for(r=0;r<e;r+=1)g.addShape(this.processPath(i[r],n,s,l))}u.shape.paths=u.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function linearOffset(o,i,a){var t=Math.atan2(i[0]-o[0],i[1]-o[1]);return[polarOffset(o,t,a),polarOffset(i,t,a)]}function offsetSegment(o,i){var a,t,r,e,n,s,l;l=linearOffset(o.points[0],o.points[1],i),a=l[0],t=l[1],l=linearOffset(o.points[1],o.points[2],i),r=l[0],e=l[1],l=linearOffset(o.points[2],o.points[3],i),n=l[0],s=l[1];var u=lineIntersection(a,t,r,e);if(u===null)u=t;var g=lineIntersection(n,s,r,e);if(g===null)g=n;return new PolynomialBezier(a,u,g,s)}function joinLines(o,i,a,t,r){var e=i.points[3],n=a.points[0];if(t===3)return e;if(pointEqual(e,n))return e;if(t===2){var s=-i.tangentAngle(1),l=-a.tangentAngle(0)+Math.PI,u=lineIntersection(e,polarOffset(e,s+Math.PI/2,100),n,polarOffset(n,s+Math.PI/2,100)),g=u?pointDistance(u,e):pointDistance(e,n)/2,S=polarOffset(e,s,2*g*roundCorner);return o.setXYAt(S[0],S[1],"o",o.length()-1),S=polarOffset(n,l,2*g*roundCorner),o.setTripleAt(n[0],n[1],n[0],n[1],S[0],S[1],o.length()),n}var f=pointEqual(e,i.points[2])?i.points[0]:i.points[2],y=pointEqual(n,a.points[1])?a.points[3]:a.points[1],z=lineIntersection(f,e,n,y);if(z&&pointDistance(z,e)<r)return o.setTripleAt(z[0],z[1],z[0],z[1],z[0],z[1],o.length()),z;return e}function getIntersection(o,i){var a=o.intersections(i);if(a.length&&floatEqual(a[0][0],1))a.shift();if(a.length)return a[0];return null}function pruneSegmentIntersection(o,i){var a=o.slice(),t=i.slice(),r=getIntersection(o[o.length-1],i[0]);if(r)a[o.length-1]=o[o.length-1].split(r[0])[0],t[0]=i[0].split(r[1])[1];if(o.length>1&&i.length>1){if(r=getIntersection(o[0],i[i.length-1]),r)return[[o[0].split(r[0])[0]],[i[i.length-1].split(r[1])[1]]]}return[a,t]}function pruneIntersections(o){var i;for(var a=1;a<o.length;a+=1)i=pruneSegmentIntersection(o[a-1],o[a]),o[a-1]=i[0],o[a]=i[1];if(o.length>1)i=pruneSegmentIntersection(o[o.length-1],o[0]),o[o.length-1]=i[0],o[0]=i[1];return o}function offsetSegmentSplit(o,i){var a=o.inflectionPoints(),t,r,e,n;if(a.length===0)return[offsetSegment(o,i)];if(a.length===1||floatEqual(a[1],1))return e=o.split(a[0]),t=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(r,i)];e=o.split(a[0]),t=e[0];var s=(a[1]-a[0])/(1-a[0]);return e=e[1].split(s),n=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(n,i),offsetSegment(r,i)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this.miterLimit=PropertyFactory.getProp(o,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(o,i,a,t){var r=shapePool.newElement();r.c=o.c;var e=o.length();if(!o.c)e-=1;var n,s,l,u=[];for(n=0;n<e;n+=1)l=PolynomialBezier.shapeSegment(o,n),u.push(offsetSegmentSplit(l,i));if(!o.c)for(n=e-1;n>=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(o,n),u.push(offsetSegmentSplit(l,i));u=pruneIntersections(u);var g=null,S=null;for(n=0;n<u.length;n+=1){var f=u[n];if(S)g=joinLines(r,S,f[0],a,t);S=f[f.length-1];for(s=0;s<f.length;s+=1){if(l=f[s],g&&pointEqual(l.points[0],g))r.setXYAt(l.points[1][0],l.points[1][1],"o",r.length()-1);else r.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],r.length());r.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],r.length()),g=l.points[3]}}if(u.length)joinLines(r,S,u[0][0],a,t);return r},OffsetPathModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v,s=this.miterLimit.v,l=this.lineJoin;if(n!==0){var u,g;for(a=0;a<t;a+=1){if(u=this.shapes[a],g=u.localShapeCollection,!(!u.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),u.shape._mdf=!0,i=u.shape.paths.shapes,e=u.shape.paths._length;for(r=0;r<e;r+=1)g.addShape(this.processPath(i[r],n,l,s))}u.shape.paths=u.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function getFontProperties(o){var i=o.fStyle?o.fStyle.split(" "):[],a="normal",t="normal",r=i.length,e;for(var n=0;n<r;n+=1)switch(e=i[n].toLowerCase(),e){case"italic":t="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:t,weight:o.fWeight||a}}var FontManager=function(){var o=5000,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var t=127988,r=917631,e=917601,n=917626,s=65039,l=8205,u=127462,g=127487,S=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(x){var K=x.split(","),c,v=K.length,Q=[];for(c=0;c<v;c+=1)if(K[c]!=="sans-serif"&&K[c]!=="monospace")Q.push(K[c]);return Q.join(",")}function y(x,K){var c=createTag("span");c.setAttribute("aria-hidden",!0),c.style.fontFamily=K;var v=createTag("span");v.innerText="giItT1WQy@!-/#",c.style.position="absolute",c.style.left="-10000px",c.style.top="-10000px",c.style.fontSize="300px",c.style.fontVariant="normal",c.style.fontStyle="normal",c.style.fontWeight="normal",c.style.letterSpacing="0",c.appendChild(v),document.body.appendChild(c);var Q=v.offsetWidth;return v.style.fontFamily=f(x)+", "+K,{node:v,w:Q,parent:c}}function z(){var x,K=this.fonts.length,c,v,Q=K;for(x=0;x<K;x+=1)if(this.fonts[x].loaded)Q-=1;else if(this.fonts[x].fOrigin==="n"||this.fonts[x].origin===0)this.fonts[x].loaded=!0;else{if(c=this.fonts[x].monoCase.node,v=this.fonts[x].monoCase.w,c.offsetWidth!==v)Q-=1,this.fonts[x].loaded=!0;else if(c=this.fonts[x].sansCase.node,v=this.fonts[x].sansCase.w,c.offsetWidth!==v)Q-=1,this.fonts[x].loaded=!0;if(this.fonts[x].loaded)this.fonts[x].sansCase.parent.parentNode.removeChild(this.fonts[x].sansCase.parent),this.fonts[x].monoCase.parent.parentNode.removeChild(this.fonts[x].monoCase.parent)}if(Q!==0&&Date.now()-this.initTime<o)setTimeout(this.checkLoadedFontsBinded,20);else setTimeout(this.setIsLoadedBinded,10)}function m(x,K){var c=document.body&&K?"svg":"canvas",v,Q=getFontProperties(x);if(c==="svg"){var Y=createNS("text");if(Y.style.fontSize="100px",Y.setAttribute("font-family",x.fFamily),Y.setAttribute("font-style",Q.style),Y.setAttribute("font-weight",Q.weight),Y.textContent="1",x.fClass)Y.style.fontFamily="inherit",Y.setAttribute("class",x.fClass);else Y.style.fontFamily=x.fFamily;K.appendChild(Y),v=Y}else{var T=new OffscreenCanvas(500,500).getContext("2d");T.font=Q.style+" "+Q.weight+" 100px "+x.fFamily,v=T}function M(E){if(c==="svg")return v.textContent=E,v.getComputedTextLength();return v.measureText(E).width}return{measureText:M}}function U(x,K){if(!x){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=x.list;return}if(!document.body){this.isLoaded=!0,x.list.forEach(function(yo){yo.helper=m(yo),yo.cache={}}),this.fonts=x.list;return}var c=x.list,v,Q=c.length,Y=Q;for(v=0;v<Q;v+=1){var T=!0,M,E;if(c[v].loaded=!1,c[v].monoCase=y(c[v].fFamily,"monospace"),c[v].sansCase=y(c[v].fFamily,"sans-serif"),!c[v].fPath)c[v].loaded=!0,Y-=1;else if(c[v].fOrigin==="p"||c[v].origin===3){if(M=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[v].fFamily+'"], style[f-origin="3"][f-family="'+c[v].fFamily+'"]'),M.length>0)T=!1;if(T){var oo=createTag("style");oo.setAttribute("f-forigin",c[v].fOrigin),oo.setAttribute("f-origin",c[v].origin),oo.setAttribute("f-family",c[v].fFamily),oo.type="text/css",oo.innerText="@font-face {font-family: "+c[v].fFamily+"; font-style: normal; src: url('"+c[v].fPath+"');}",K.appendChild(oo)}}else if(c[v].fOrigin==="g"||c[v].origin===1){M=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(E=0;E<M.length;E+=1)if(M[E].href.indexOf(c[v].fPath)!==-1)T=!1;if(T){var io=createTag("link");io.setAttribute("f-forigin",c[v].fOrigin),io.setAttribute("f-origin",c[v].origin),io.type="text/css",io.rel="stylesheet",io.href=c[v].fPath,document.body.appendChild(io)}}else if(c[v].fOrigin==="t"||c[v].origin===2){M=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(E=0;E<M.length;E+=1)if(c[v].fPath===M[E].src)T=!1;if(T){var lo=createTag("link");lo.setAttribute("f-forigin",c[v].fOrigin),lo.setAttribute("f-origin",c[v].origin),lo.setAttribute("rel","stylesheet"),lo.setAttribute("href",c[v].fPath),K.appendChild(lo)}}c[v].helper=m(c[v],K),c[v].cache={},this.fonts.push(c[v])}if(Y===0)this.isLoaded=!0;else setTimeout(this.checkLoadedFonts.bind(this),100)}function b(x){if(!x)return;if(!this.chars)this.chars=[];var K,c=x.length,v,Q=this.chars.length,Y;for(K=0;K<c;K+=1){v=0,Y=!1;while(v<Q){if(this.chars[v].style===x[K].style&&this.chars[v].fFamily===x[K].fFamily&&this.chars[v].ch===x[K].ch)Y=!0;v+=1}if(!Y)this.chars.push(x[K]),Q+=1}}function h(x,K,c){var v=0,Q=this.chars.length;while(v<Q){if(this.chars[v].ch===x&&this.chars[v].style===K&&this.chars[v].fFamily===c)return this.chars[v];v+=1}if((typeof x==="string"&&x.charCodeAt(0)!==13||!x)&&console&&console.warn&&!this._warned)this._warned=!0,console.warn("Missing character from exported characters list: ",x,K,c);return i}function p(x,K,c){var v=this.getFontByName(K),Q=x;if(!v.cache[Q]){var Y=v.helper;if(x===" "){var T=Y.measureText("|"+x+"|"),M=Y.measureText("||");v.cache[Q]=(T-M)/100}else v.cache[Q]=Y.measureText(x)/100}return v.cache[Q]*c}function k(x){var K=0,c=this.fonts.length;while(K<c){if(this.fonts[K].fName===x)return this.fonts[K];K+=1}return this.fonts[0]}function R(x){var K=0,c=x.charCodeAt(0);if(c>=55296&&c<=56319){var v=x.charCodeAt(1);if(v>=56320&&v<=57343)K=(c-55296)*1024+v-56320+65536}return K}function V(x,K){var c=x.toString(16)+K.toString(16);return S.indexOf(c)!==-1}function C(x){return x===l}function w(x){return x===s}function Z(x){var K=R(x);if(K>=u&&K<=g)return!0;return!1}function I(x){return Z(x.substr(0,2))&&Z(x.substr(2,2))}function F(x){return a.indexOf(x)!==-1}function J(x,K){var c=R(x.substr(K,2));if(c!==t)return!1;var v=0;K+=2;while(v<5){if(c=R(x.substr(K,2)),c<e||c>n)return!1;v+=1,K+=2}return R(x.substr(K,2))===r}function L(){this.isLoaded=!0}var P=function x(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};P.isModifier=V,P.isZeroWidthJoiner=C,P.isFlagEmoji=I,P.isRegionalCode=Z,P.isCombinedCharacter=F,P.isRegionalFlag=J,P.isVariationSelector=w,P.BLACK_FLAG_CODE_POINT=t;var W={addChars:b,addFonts:U,getCharData:h,getFontByName:k,measureText:p,checkLoadedFonts:z,setIsLoaded:L};return P.prototype=W,P}();function SlotManager(o){this.animationData=o}SlotManager.prototype.getProp=function(o){if(this.animationData.slots&&this.animationData.slots[o.sid])return Object.assign(o,this.animationData.slots[o.sid].p);return o};function slotFactory(o){return new SlotManager(o)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function o(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)===-1)this.renderableComponents.push(i)},removeRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)!==-1)this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function o(i){this.checkLayerLimits(i)},checkTransparency:function o(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent)this.isTransparent=!0,this.hide()}else if(this.isTransparent)this.isTransparent=!1,this.show()},checkLayerLimits:function o(i){if(this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i){if(this.isInRange!==!0)this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()}else if(this.isInRange!==!1)this.globalData._mdf=!0,this.isInRange=!1,this.hide()},renderRenderable:function o(){var i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function o(){return{top:0,left:0,width:100,height:100}},getLayerSize:function o(){if(this.data.ty===5)return{w:this.data.textData.width,h:this.data.textData.height};return{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var o={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return o[i]||""}}();function SliderEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function AngleEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function ColorEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function PointEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function LayerIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function MaskIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function CheckboxEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(o,i){var a=o.ef||[];this.effectElements=[];var t,r=a.length,e;for(t=0;t<r;t+=1)e=new GroupEffect(a[t],i),this.effectElements.push(e)}function GroupEffect(o,i){this.init(o,i)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(o,i){this.data=o,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,t=this.data.ef.length,r,e=this.data.ef;for(a=0;a<t;a+=1){switch(r=null,e[a].ty){case 0:r=new SliderEffect(e[a],i,this);break;case 1:r=new AngleEffect(e[a],i,this);break;case 2:r=new ColorEffect(e[a],i,this);break;case 3:r=new PointEffect(e[a],i,this);break;case 4:case 7:r=new CheckboxEffect(e[a],i,this);break;case 10:r=new LayerIndexEffect(e[a],i,this);break;case 11:r=new MaskIndexEffect(e[a],i,this);break;case 5:r=new EffectsManager(e[a],i,this);break;default:r=new NoValueEffect(e[a],i,this);break}if(r)this.effectElements.push(r)}};function BaseElement(){}BaseElement.prototype={checkMasks:function o(){if(!this.data.hasMask)return!1;var i=0,a=this.data.masksProperties.length;while(i<a){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function o(){var i=getExpressionInterfaces();if(!i)return;var a=i("layer"),t=i("effects"),r=i("shape"),e=i("text"),n=i("comp");if(this.layerInterface=a(this),this.data.hasMask&&this.maskManager)this.layerInterface.registerMaskInterface(this.maskManager);var s=t.createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(s),this.data.ty===0||this.data.xt)this.compInterface=n(this);else if(this.data.ty===4)this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;else if(this.data.ty===5)this.layerInterface.textInterface=e(this),this.layerInterface.text=this.layerInterface.textInterface},setBlendMode:function o(){var i=getBlendMode(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function o(i,a,t){if(this.globalData=a,this.comp=t,this.data=i,this.layerId=createElementID(),!this.data.sr)this.data.sr=1;this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function o(){return this.type},sourceRectAtTime:function o(){}};function FrameElement(){}FrameElement.prototype={initFrame:function o(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function o(i,a){var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)if(a||this._isParent&&this.dynamicProperties[t].propType==="transform"){if(this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf)this.globalData._mdf=!0,this._mdf=!0}},addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i)}};function FootageElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(o,i,a)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var o=getExpressionInterfaces();if(!o)return;var i=o("footage");this.layerInterface=i(this)},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.initBaseData(o,i,a),this._isPlaying=!1,this._canPlay=!1;var t=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(t),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,o.au&&o.au.lv?o.au.lv:{k:[100]},1,0.01,this)}AudioElement.prototype.prepareFrame=function(o){if(this.prepareRenderableFrame(o,!0),this.prepareProperties(o,!0),!this.tm._placeholder){var i=this.tm.v;this._currentTime=i}else this._currentTime=o/this.data.sr;this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;if(this._previousVolume!==a)this._previousVolume=a,this.audio.volume(a)},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying)this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0;else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>0.1)this.audio.seek(this._currentTime/this.globalData.frameRate)}},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(o){this.audio.rate(o)},AudioElement.prototype.volume=function(o){this._volumeMultiplier=o,this._previousVolume=o*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(o){var i,a=this.layers.length,t;this.completeLayers=!0;for(i=a-1;i>=0;i-=1){if(!this.elements[i]){if(t=this.layers[i],t.ip-t.st<=o-this.layers[i].st&&t.op-t.st>o-this.layers[i].st)this.buildItem(i)}this.completeLayers=this.elements[i]?this.completeLayers:!1}this.checkPendingElements()},BaseRenderer.prototype.createItem=function(o){switch(o.ty){case 2:return this.createImage(o);case 0:return this.createComp(o);case 1:return this.createSolid(o);case 3:return this.createNull(o);case 4:return this.createShape(o);case 5:return this.createText(o);case 6:return this.createAudio(o);case 13:return this.createCamera(o);case 15:return this.createFootage(o);default:return this.createNull(o)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(o){return new AudioElement(o,this.globalData,this)},BaseRenderer.prototype.createFootage=function(o){return new FootageElement(o,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)this.buildItem(o);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(o){this.completeLayers=!1;var i,a=o.length,t,r=this.layers.length;for(i=0;i<a;i+=1){t=0;while(t<r){if(this.layers[t].id===o[i].id){this.layers[t]=o[i];break}t+=1}}},BaseRenderer.prototype.setProjectInterface=function(o){this.globalData.projectInterface=o},BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad)this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(o,i,a){var t=this.elements,r=this.layers,e=0,n=r.length;while(e<n){if(r[e].ind==i)if(!t[e]||t[e]===!0)this.buildItem(e),this.addPendingElement(o);else if(a.push(t[e]),t[e].setAsParent(),r[e].parent!==void 0)this.buildElementParenting(o,r[e].parent,a);else o.setHierarchy(a);e+=1}},BaseRenderer.prototype.addPendingElement=function(o){this.pendingElements.push(o)},BaseRenderer.prototype.searchExtraCompositions=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i].xt){var t=this.createComp(o[i]);t.initExpressions(),this.globalData.projectInterface.registerComposition(t)}},BaseRenderer.prototype.getElementById=function(o){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===o)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(o){var i=o.shift(),a;if(typeof i==="number")a=this.elements[i];else{var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.nm===i){a=this.elements[t];break}}if(o.length===0)return a;return a.getElementByPath(o)},BaseRenderer.prototype.setupGlobalData=function(o,i){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(o),this.globalData.fontManager.addChars(o.chars),this.globalData.fontManager.addFonts(o.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=o.fr,this.globalData.nm=o.nm,this.globalData.compSize={w:o.w,h:o.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function o(){var i=new Matrix;if(this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao)this.finalTransform.mProp.autoOriented=!0;if(this.data.ty!==11);},renderTransform:function o(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,a=this.finalTransform.mat,t=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)while(t<r){if(this.hierarchy[t].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}t+=1}if(this.finalTransform._matMdf){i=this.finalTransform.mProp.v.props,a.cloneFromProps(i);for(t=0;t<r;t+=1)a.multiply(this.hierarchy[t].finalTransform.mProp.v)}}if(!this.localTransforms||this.finalTransform._matMdf)this.finalTransform._localMatMdf=this.finalTransform._matMdf;if(this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v},renderLocalTransform:function o(){if(this.localTransforms){var i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)while(i<a){if(this.localTransforms[i]._mdf)this.finalTransform._localMatMdf=!0;if(this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0;i+=1}if(this.finalTransform._localMatMdf){var t=this.finalTransform.localMat;this.localTransforms[0].matrix.clone(t);for(i=1;i<a;i+=1){var r=this.localTransforms[i].matrix;t.multiply(r)}t.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var e=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)e*=this.localTransforms[i].opacity*0.01;this.finalTransform.localOpacity=e}}},searchEffectTransforms:function o(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var a=0,t=i.length;for(a=0;a<t;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function o(i){var a=[];a.push(this.finalTransform);var t=!0,r=this.comp;while(t)if(r.finalTransform){if(r.data.hasMask)a.splice(0,0,r.finalTransform);r=r.comp}else t=!1;var e,n=a.length,s;for(e=0;e<n;e+=1)s=a[e].mat.applyToPointArray(0,0,0),i=[i[0]-s[0],i[1]-s[1],0];return i},mHelper:new Matrix};function MaskElement(o,i,a){this.data=o,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var t=this.globalData.defs,r,e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(e),this.solidPath="";var n,s=this.masksProperties,l=0,u=[],g,S,f=createElementID(),y,z,m,U,b="clipPath",h="clip-path";for(r=0;r<e;r+=1){if(s[r].mode!=="a"&&s[r].mode!=="n"||s[r].inv||s[r].o.k!==100||s[r].o.x)b="mask",h="mask";if((s[r].mode==="s"||s[r].mode==="i")&&l===0)y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),u.push(y);else y=null;if(n=createNS("path"),s[r].mode==="n")this.viewData[r]={op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),elem:n,lastPath:""},t.appendChild(n);else{l+=1,n.setAttribute("fill",s[r].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero");var p;if(s[r].x.k!==0)b="mask",h="mask",U=PropertyFactory.getProp(this.element,s[r].x,0,null,this.element),p=createElementID(),z=createNS("filter"),z.setAttribute("id",p),m=createNS("feMorphology"),m.setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),z.appendChild(m),t.appendChild(z),n.setAttribute("stroke",s[r].mode==="s"?"#000000":"#ffffff");else m=null,U=null;if(this.storedData[r]={elem:n,x:U,expan:m,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},s[r].mode==="i"){S=u.length;var k=createNS("g");for(g=0;g<S;g+=1)k.appendChild(u[g]);var R=createNS("mask");R.setAttribute("mask-type","alpha"),R.setAttribute("id",f+"_"+l),R.appendChild(n),t.appendChild(R),k.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),u.length=0,u.push(k)}else u.push(n);if(s[r].inv&&!this.solidPath)this.solidPath=this.createLayerSolidPath();if(this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),invRect:y},!this.viewData[r].prop.k)this.drawPath(s[r],this.viewData[r].prop.v,this.viewData[r])}}this.maskElement=createNS(b),e=u.length;for(r=0;r<e;r+=1)this.maskElement.appendChild(u[r]);if(l>0)this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(h,"url("+getLocationHref()+"#"+f+")"),t.appendChild(this.maskElement);if(this.viewData.length)this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(o){return this.viewData[o].prop},MaskElement.prototype.renderFrame=function(o){var i=this.element.finalTransform.mat,a,t=this.masksProperties.length;for(a=0;a<t;a+=1){if(this.viewData[a].prop._mdf||o)this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]);if(this.viewData[a].op._mdf||o)this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v);if(this.masksProperties[a].mode!=="n"){if(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||o))this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS());if(this.storedData[a].x&&(this.storedData[a].x._mdf||o)){var r=this.storedData[a].expan;if(this.storedData[a].x.v<0){if(this.storedData[a].lastOperator!=="erode")this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[a].filterId+")");r.setAttribute("radius",-this.storedData[a].x.v)}else{if(this.storedData[a].lastOperator!=="dilate")this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null);this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2)}}}}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var o="M0,0 ";return o+=" h"+this.globalData.compSize.w,o+=" v"+this.globalData.compSize.h,o+=" h-"+this.globalData.compSize.w,o+=" v-"+this.globalData.compSize.h+" ",o},MaskElement.prototype.drawPath=function(o,i,a){var t=" M"+i.v[0][0]+","+i.v[0][1],r,e;e=i._length;for(r=1;r<e;r+=1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[r][0]+","+i.i[r][1]+" "+i.v[r][0]+","+i.v[r][1];if(i.c&&e>1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1];if(a.lastPath!==t){var n="";if(a.elem){if(i.c)n=o.inv?this.solidPath+t:t;a.elem.setAttribute("d",n)}a.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var o={};o.createFilter=i,o.createAlphaToLuminanceFilter=a;function i(t,r){var e=createNS("filter");if(e.setAttribute("id",t),r!==!0)e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%");return e}function a(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return o}(),featureSupport=function(){var o={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas!=="undefined"};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))o.maskType=!1;if(/firefox/i.test(navigator.userAgent))o.svgLumaHidden=!1;return o}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(o){var i,a="SourceGraphic",t=o.data.ef?o.data.ef.length:0,r=createElementID(),e=filtersFactory.createFilter(r,!0),n=0;this.filters=[];var s;for(i=0;i<t;i+=1){s=null;var l=o.data.ef[i].ty;if(registeredEffects$1[l]){var u=registeredEffects$1[l].effect;if(s=new u(e,o.effectsManager.effectElements[i],o,idPrefix+n,a),a=idPrefix+n,registeredEffects$1[l].countsAsEffect)n+=1}if(s)this.filters.push(s)}if(n)o.globalData.defs.appendChild(e),o.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+r+")");if(this.filters.length)o.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},SVGEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect$1(o,i,a){registeredEffects$1[o]={effect:i,countsAsEffect:a}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function o(){this.layerElement=createNS("g")},createContainerElements:function o(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=createNS("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else if(this.data.tt)this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement;else this.baseElement=this.layerElement;if(this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.ty===0&&!this.data.hd){var t=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var e=createElementID();if(t.setAttribute("id",e),t.appendChild(r),this.globalData.defs.appendChild(t),this.checkMasks()){var n=createNS("g");if(n.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),n.appendChild(this.layerElement),this.transformedElement=n,i)i.appendChild(this.transformedElement);else this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")")}if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){if(this.finalTransform._localMatMdf)this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS());if(this.finalTransform._opMdf)this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function o(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function o(){if(this.data.hd)return null;return this.baseElement},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function o(i){if(!this.matteMasks)this.matteMasks={};if(!this.matteMasks[i]){var a=this.layerId+"_"+i,t,r,e,n;if(i===1||i===3){var s=createNS("mask");if(s.setAttribute("id",a),s.setAttribute("mask-type",i===3?"luminance":"alpha"),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(e),this.globalData.defs.appendChild(s),!featureSupport.maskType&&i===1)s.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),n.appendChild(e),s.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")")}else if(i===2){var l=createNS("mask");l.setAttribute("id",a),l.setAttribute("mask-type","alpha");var u=createNS("g");l.appendChild(u),t=createElementID(),r=filtersFactory.createFilter(t);var g=createNS("feComponentTransfer");g.setAttribute("in","SourceGraphic"),r.appendChild(g);var S=createNS("feFuncA");S.setAttribute("type","table"),S.setAttribute("tableValues","1.0 0.0"),g.appendChild(S),this.globalData.defs.appendChild(r);var f=createNS("rect");if(f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),u.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),u.appendChild(f),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),u.appendChild(e),!featureSupport.maskType)l.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),u.appendChild(f),n.appendChild(this.layerElement),u.appendChild(n);this.globalData.defs.appendChild(l)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function o(i){if(!this.matteElement)return;this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+i+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function o(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function o(i){this.hierarchy=i},setAsParent:function o(){this._isParent=!0},checkParenting:function o(){if(this.data.parent!==void 0)this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var o={initElement:function i(a,t,r){this.initFrame(),this.initBaseData(a,t,r),this.initTransform(a,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function i(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function i(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function i(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},renderInnerContent:function i(){},prepareFrame:function i(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function i(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(o)],RenderableDOMElement)})();function IImageElement(o,i,a){if(this.assetData=i.getAssetData(o.refId),this.assetData&&this.assetData.sid)this.assetData=i.slotManager.getProp(this.assetData);this.initElement(o,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(o,i){this.elem=o,this.pos=i}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function o(i){var a,t=this.shapeModifiers.length;for(a=0;a<t;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function o(i){var a=0,t=this.shapeModifiers.length;while(a<t)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function o(){if(!this.shapeModifiers.length)return;var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var t;for(i=a-1;i>=0;i-=1)if(t=this.shapeModifiers[i].processShapes(this._isFirstFrame),t)break},searchProcessedElement:function o(i){var a=this.processedElements,t=0,r=a.length;while(t<r){if(a[t].elem===i)return a[t].pos;t+=1}return 0},addProcessedElement:function o(i,a){var t=this.processedElements,r=t.length;while(r)if(r-=1,t[r].elem===i){t[r].pos=a;return}t.push(new ProcessedElement(i,a))},prepareFrame:function o(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(o,i,a){this.caches=[],this.styles=[],this.transformers=o,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;var t=0,r=o.length;while(t<r){if(o[t].mProps.dynamicProperties.length){this._isAnimated=!0;break}t+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(o,i){this.data=o,this.type=o.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=o.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(o,i,a,t){this.elem=o,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(t);var r,e=i.length||0,n;for(r=0;r<e;r+=1)n=PropertyFactory.getProp(o,i[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:i[r].n,p:n};if(!this.k)this.getValue(!0);this._isAnimated=this.k}DashProperty.prototype.getValue=function(o){if(this.elem.globalData.frameId===this.frameId&&!o)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||o,this._mdf){var i=0,a=this.dataProps.length;if(this.renderer==="svg")this.dashStr="";for(i=0;i<a;i+=1)if(this.dataProps[i].n!=="o")if(this.renderer==="svg")this.dashStr+=" "+this.dataProps[i].p.v;else this.dashArray[i]=this.dataProps[i].p.v;else this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.style=a}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(o,i,a){this.data=i,this.c=createTypedArray("uint8c",i.p*4);var t=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=createTypedArray("float32",t),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=t,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(o,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(o,i){var a=0,t=this.o.length/2,r;while(a<t){if(r=Math.abs(o[a*4]-o[i*4+a*2]),r>0.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var o=0,i=this.data.k.k.length;while(o<i){if(!this.comparePoints(this.data.k.k[o].s,this.data.p))return!1;o+=1}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(o){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||o){var i,a=this.data.p*4,t,r;for(i=0;i<a;i+=1)if(t=i%4===0?100:255,r=Math.round(this.prop.v[i]*t),this.c[i]!==r)this.c[i]=r,this._cmdf=!o;if(this.o.length){a=this.prop.v.length;for(i=this.data.p*4;i<a;i+=1)if(t=i%2===0?100:1,r=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==r)this.o[i-this.data.p*4]=r,this._omdf=!o}this._mdf=!o}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.initGradientData(o,i,a)}SVGGradientFillStyleData.prototype.initGradientData=function(o,i,a){this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.s=PropertyFactory.getProp(o,i.s,1,null,this),this.e=PropertyFactory.getProp(o,i.e,1,null,this),this.h=PropertyFactory.getProp(o,i.h||{k:0},0,0.01,this),this.a=PropertyFactory.getProp(o,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(o,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(o,i){var a=createElementID(),t=createNS(i.t===1?"linearGradient":"radialGradient");t.setAttribute("id",a),t.setAttribute("spreadMethod","pad"),t.setAttribute("gradientUnits","userSpaceOnUse");var r=[],e,n,s;s=i.g.p*4;for(n=0;n<s;n+=4)e=createNS("stop"),t.appendChild(e),r.push(e);o.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=t,this.cst=r},SVGGradientFillStyleData.prototype.setGradientOpacity=function(o,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,t,r,e=createNS("mask"),n=createNS("path");e.appendChild(n);var s=createElementID(),l=createElementID();e.setAttribute("id",l);var u=createNS(o.t===1?"linearGradient":"radialGradient");u.setAttribute("id",s),u.setAttribute("spreadMethod","pad"),u.setAttribute("gradientUnits","userSpaceOnUse"),r=o.g.k.k[0].s?o.g.k.k[0].s.length:o.g.k.k.length;var g=this.stops;for(t=o.g.p*4;t<r;t+=2)a=createNS("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),u.appendChild(a),g.push(a);if(n.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),o.ty==="gs"){if(n.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),o.lj===1)n.setAttribute("stroke-miterlimit",o.ml)}this.of=u,this.ms=e,this.ost=g,this.maskId=l,i.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.initGradientData(o,i,a),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(o,i,a){this.transform={mProps:o,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function o(i,a,t,r){if(a===0)return"";var{o:e,i:n,v:s}=i,l,u=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(l=1;l<a;l+=1)u+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[l][0],n[l][1])+" "+r.applyToPointStringified(s[l][0],s[l][1]);if(t&&a)u+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[0][0],n[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),u+="z";return u},SVGElementsRenderer=function(){var o=new Matrix,i=new Matrix,a={createRenderFunction:t};function t(S){switch(S.ty){case"fl":return s;case"gf":return u;case"gs":return l;case"st":return g;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return e;default:return null}}function r(S,f,y){if(y||f.transform.op._mdf)f.transform.container.setAttribute("opacity",f.transform.op.v);if(y||f.transform.mProps._mdf)f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function e(){}function n(S,f,y){var z,m,U,b,h,p,k=f.styles.length,R=f.lvl,V,C,w,Z;for(p=0;p<k;p+=1){if(b=f.sh._mdf||y,f.styles[p].lvl<R){C=i.reset(),w=R-f.styles[p].lvl,Z=f.transformers.length-1;while(!b&&w>0)b=f.transformers[Z].mProps._mdf||b,w-=1,Z-=1;if(b){w=R-f.styles[p].lvl,Z=f.transformers.length-1;while(w>0)C.multiply(f.transformers[Z].mProps.v),w-=1,Z-=1}}else C=o;if(V=f.sh.paths,m=V._length,b){U="";for(z=0;z<m;z+=1)if(h=V.shapes[z],h&&h._length)U+=buildShapeString(h,h._length,h.c,C);f.caches[p]=U}else U=f.caches[p];f.styles[p].d+=S.hd===!0?"":U,f.styles[p]._mdf=b||f.styles[p]._mdf}}function s(S,f,y){var z=f.style;if(f.c._mdf||y)z.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("fill-opacity",f.o.v)}function l(S,f,y){u(S,f,y),g(S,f,y)}function u(S,f,y){var z=f.gf,m=f.g._hasOpacity,U=f.s.v,b=f.e.v;if(f.o._mdf||y){var h=S.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(h,f.o.v)}if(f.s._mdf||y){var p=S.t===1?"x1":"cx",k=p==="x1"?"y1":"cy";if(z.setAttribute(p,U[0]),z.setAttribute(k,U[1]),m&&!f.g._collapsable)f.of.setAttribute(p,U[0]),f.of.setAttribute(k,U[1])}var R,V,C,w;if(f.g._cmdf||y){R=f.cst;var Z=f.g.c;C=R.length;for(V=0;V<C;V+=1)w=R[V],w.setAttribute("offset",Z[V*4]+"%"),w.setAttribute("stop-color","rgb("+Z[V*4+1]+","+Z[V*4+2]+","+Z[V*4+3]+")")}if(m&&(f.g._omdf||y)){var I=f.g.o;if(f.g._collapsable)R=f.cst;else R=f.ost;C=R.length;for(V=0;V<C;V+=1){if(w=R[V],!f.g._collapsable)w.setAttribute("offset",I[V*2]+"%");w.setAttribute("stop-opacity",I[V*2+1])}}if(S.t===1){if(f.e._mdf||y){if(z.setAttribute("x2",b[0]),z.setAttribute("y2",b[1]),m&&!f.g._collapsable)f.of.setAttribute("x2",b[0]),f.of.setAttribute("y2",b[1])}}else{var F;if(f.s._mdf||f.e._mdf||y){if(F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2)),z.setAttribute("r",F),m&&!f.g._collapsable)f.of.setAttribute("r",F)}if(f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||y){if(!F)F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2));var J=Math.atan2(b[1]-U[1],b[0]-U[0]),L=f.h.v;if(L>=1)L=0.99;else if(L<=-1)L=-0.99;var P=F*L,W=Math.cos(J+f.a.v)*P+U[0],x=Math.sin(J+f.a.v)*P+U[1];if(z.setAttribute("fx",W),z.setAttribute("fy",x),m&&!f.g._collapsable)f.of.setAttribute("fx",W),f.of.setAttribute("fy",x)}}}function g(S,f,y){var{style:z,d:m}=f;if(m&&(m._mdf||y)&&m.dashStr)z.pElem.setAttribute("stroke-dasharray",m.dashStr),z.pElem.setAttribute("stroke-dashoffset",m.dashoffset[0]);if(f.c&&(f.c._mdf||y))z.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("stroke-opacity",f.o.v);if(f.w._mdf||y){if(z.pElem.setAttribute("stroke-width",f.w.v),z.msElem)z.msElem.setAttribute("stroke-width",f.w.v)}}return a}();function SVGShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(o,i,a),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var o,i=this.shapes.length,a,t,r=this.stylesList.length,e,n=[],s=!1;for(t=0;t<r;t+=1){e=this.stylesList[t],s=!1,n.length=0;for(o=0;o<i;o+=1)if(a=this.shapes[o],a.styles.indexOf(e)!==-1)n.push(a),s=a._isAnimated||s;if(n.length>1&&s)this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(o,i){var a,t=new SVGStyleData(o,i),r=t.pElem;if(o.ty==="st")a=new SVGStrokeStyleData(this,o,t);else if(o.ty==="fl")a=new SVGFillStyleData(this,o,t);else if(o.ty==="gf"||o.ty==="gs"){var e=o.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;if(a=new e(this,o,t),this.globalData.defs.appendChild(a.gf),a.maskId)this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),r.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")")}else if(o.ty==="no")a=new SVGNoStyleData(this,o,t);if(o.ty==="st"||o.ty==="gs"){if(r.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),r.setAttribute("fill-opacity","0"),o.lj===1)r.setAttribute("stroke-miterlimit",o.ml)}if(o.r===2)r.setAttribute("fill-rule","evenodd");if(o.ln)r.setAttribute("id",o.ln);if(o.cl)r.setAttribute("class",o.cl);if(o.bm)r.style["mix-blend-mode"]=getBlendMode(o.bm);return this.stylesList.push(t),this.addToAnimatedContents(o,a),a},SVGShapeElement.prototype.createGroupElement=function(o){var i=new ShapeGroupData;if(o.ln)i.gr.setAttribute("id",o.ln);if(o.cl)i.gr.setAttribute("class",o.cl);if(o.bm)i.gr.style["mix-blend-mode"]=getBlendMode(o.bm);return i},SVGShapeElement.prototype.createTransformElement=function(o,i){var a=TransformPropertyFactory.getTransformProperty(this,o,this),t=new SVGTransformData(a,a.o,i);return this.addToAnimatedContents(o,t),t},SVGShapeElement.prototype.createShapeElement=function(o,i,a){var t=4;if(o.ty==="rc")t=5;else if(o.ty==="el")t=6;else if(o.ty==="sr")t=7;var r=ShapePropertyFactory.getShapeProp(this,o,t,this),e=new SVGShapeData(i,a,r);return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(o,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(o,i){var a=0,t=this.animatedContents.length;while(a<t){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(o),element:i,data:o})},SVGShapeElement.prototype.setElementStyles=function(o){var i=o.styles,a,t=this.stylesList.length;for(a=0;a<t;a+=1)if(i.indexOf(this.stylesList[a])===-1&&!this.stylesList[a].closed)i.push(this.stylesList[a])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(o,i,a,t,r,e,n){var s=[].concat(e),l,u=o.length-1,g,S,f=[],y=[],z,m,U;for(l=u;l>=0;l-=1){if(U=this.searchProcessedElement(o[l]),!U)o[l]._render=n;else i[l]=a[U-1];if(o[l].ty==="fl"||o[l].ty==="st"||o[l].ty==="gf"||o[l].ty==="gs"||o[l].ty==="no"){if(!U)i[l]=this.createStyleElement(o[l],r);else i[l].style.closed=o[l].hd;if(o[l]._render){if(i[l].style.pElem.parentNode!==t)t.appendChild(i[l].style.pElem)}f.push(i[l].style)}else if(o[l].ty==="gr"){if(!U)i[l]=this.createGroupElement(o[l]);else{S=i[l].it.length;for(g=0;g<S;g+=1)i[l].prevViewData[g]=i[l].it[g]}if(this.searchShapes(o[l].it,i[l].it,i[l].prevViewData,i[l].gr,r+1,s,n),o[l]._render){if(i[l].gr.parentNode!==t)t.appendChild(i[l].gr)}}else if(o[l].ty==="tr"){if(!U)i[l]=this.createTransformElement(o[l],t);z=i[l].transform,s.push(z)}else if(o[l].ty==="sh"||o[l].ty==="rc"||o[l].ty==="el"||o[l].ty==="sr"){if(!U)i[l]=this.createShapeElement(o[l],s,r);this.setElementStyles(i[l])}else if(o[l].ty==="tm"||o[l].ty==="rd"||o[l].ty==="ms"||o[l].ty==="pb"||o[l].ty==="zz"||o[l].ty==="op"){if(!U)m=ShapeModifiers.getModifier(o[l].ty),m.init(this,o[l]),i[l]=m,this.shapeModifiers.push(m);else m=i[l],m.closed=!1;y.push(m)}else if(o[l].ty==="rp"){if(!U)m=ShapeModifiers.getModifier(o[l].ty),i[l]=m,m.init(this,o,l,i),this.shapeModifiers.push(m),n=!1;else m=i[l],m.closed=!0;y.push(m)}this.addProcessedElement(o[l],l+1)}u=f.length;for(l=0;l<u;l+=1)f[l].closed=!0;u=y.length;for(l=0;l<u;l+=1)y[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var o,i=this.stylesList.length;for(o=0;o<i;o+=1)this.stylesList[o].reset();this.renderShape();for(o=0;o<i;o+=1)if(this.stylesList[o]._mdf||this._isFirstFrame){if(this.stylesList[o].msElem)this.stylesList[o].msElem.setAttribute("d",this.stylesList[o].d),this.stylesList[o].d="M0 0"+this.stylesList[o].d;this.stylesList[o].pElem.setAttribute("d",this.stylesList[o].d||"M0 0")}},SVGShapeElement.prototype.renderShape=function(){var o,i=this.animatedContents.length,a;for(o=0;o<i;o+=1)if(a=this.animatedContents[o],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0)a.fn(a.data,a.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(o,i,a,t,r,e){this.o=o,this.sw=i,this.sc=a,this.fc=t,this.m=r,this.p=e,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!t,m:!0,p:!0}}LetterProps.prototype.update=function(o,i,a,t,r,e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;if(this.o!==o)this.o=o,this._mdf.o=!0,n=!0;if(this.sw!==i)this.sw=i,this._mdf.sw=!0,n=!0;if(this.sc!==a)this.sc=a,this._mdf.sc=!0,n=!0;if(this.fc!==t)this.fc=t,this._mdf.fc=!0,n=!0;if(this.m!==r)this.m=r,this._mdf.m=!0,n=!0;if(e.length&&(this.p[0]!==e[0]||this.p[1]!==e[1]||this.p[4]!==e[4]||this.p[5]!==e[5]||this.p[12]!==e[12]||this.p[13]!==e[13]))this.p=e,this._mdf.p=!0,n=!0;return n};function TextProperty(o,i){if(this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid)i.d=o.globalData.slotManager.getProp(i.d);if(this.data=i,this.elem=o,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),!this.searchProperty())this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(o,i){for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a))o[a]=i[a];return o},TextProperty.prototype.setCurrentData=function(o){if(!o.__complete)this.completeTextData(o);this.currentData=o,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){if(this.kf=this.data.d.k.length>1,this.kf)this.addEffect(this.getKeyframeValue.bind(this));return this.kf},TextProperty.prototype.addEffect=function(o){this.effectsSequence.push(o),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(o){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!o)return;this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var t,r=this.effectsSequence.length,e=o||this.data.d.k[this.keysIndex].s;for(t=0;t<r;t+=1)if(a!==this.keysIndex)e=this.effectsSequence[t](e,e.t);else e=this.effectsSequence[t](this.currentData,e.t);if(i!==e)this.setCurrentData(e);this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId},TextProperty.prototype.getKeyframeValue=function(){var o=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,t=o.length;while(a<=t-1){if(a===t-1||o[a+1].t>i)break;a+=1}if(this.keysIndex!==a)this.keysIndex=a;return this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){var i=[],a=0,t=o.length,r,e,n=!1,s=!1,l="";while(a<t){if(n=s,s=!1,r=o.charCodeAt(a),l=o.charAt(a),FontManager.isCombinedCharacter(r))n=!0;else if(r>=55296&&r<=56319){if(FontManager.isRegionalFlag(o,a))l=o.substr(a,14);else if(e=o.charCodeAt(a+1),e>=56320&&e<=57343)if(FontManager.isModifier(r,e))l=o.substr(a,2),n=!0;else if(FontManager.isFlagEmoji(o.substr(a,4)))l=o.substr(a,4);else l=o.substr(a,2)}else if(r>56319){if(e=o.charCodeAt(a+1),FontManager.isVariationSelector(r))n=!0}else if(FontManager.isZeroWidthJoiner(r))n=!0,s=!0;if(n)i[i.length-1]+=l,n=!1;else i.push(l);a+=l.length}return i},TextProperty.prototype.completeTextData=function(o){o.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,t=[],r,e,n,s=0,l,u=a.m.g,g=0,S=0,f=0,y=[],z=0,m=0,U,b,h=i.getFontByName(o.f),p,k=0,R=getFontProperties(h);o.fWeight=R.weight,o.fStyle=R.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),e=o.finalText.length,o.finalLineHeight=o.lh;var V=o.tr/1000*o.finalSize,C;if(o.sz){var w=!0,Z=o.sz[0],I=o.sz[1],F,J;while(w){J=this.buildFinalText(o.t),F=0,z=0,e=J.length,V=o.tr/1000*o.finalSize;var L=-1;for(r=0;r<e;r+=1){if(C=J[r].charCodeAt(0),n=!1,J[r]===" ")L=r;else if(C===13||C===3)z=0,n=!0,F+=o.finalLineHeight||o.finalSize*1.2;if(i.chars)p=i.getCharData(J[r],h.fStyle,h.fFamily),k=n?0:p.w*o.finalSize/100;else k=i.measureText(J[r],o.f,o.finalSize);if(z+k>Z&&J[r]!==" "){if(L===-1)e+=1;else r=L;F+=o.finalLineHeight||o.finalSize*1.2,J.splice(r,L===r?1:0,"\r"),L=-1,z=0}else z+=k,z+=V}if(F+=h.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&I<F)o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s;else o.finalText=J,e=o.finalText.length,w=!1}}z=-V,k=0;var P=0,W;for(r=0;r<e;r+=1){if(n=!1,W=o.finalText[r],C=W.charCodeAt(0),C===13||C===3)P=0,y.push(z),m=z>m?z:m,z=-2*V,l="",n=!0,f+=1;else l=W;if(i.chars)p=i.getCharData(W,h.fStyle,i.getFontByName(o.f).fFamily),k=n?0:p.w*o.finalSize/100;else k=i.measureText(l,o.f,o.finalSize);if(W===" ")P+=k+V;else z+=k+V+P,P=0;if(t.push({l:k,an:k,add:g,n,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),u==2){if(g+=k,l===""||l===" "||r===e-1){if(l===""||l===" ")g-=k;while(S<=r)t[S].an=g,t[S].ind=s,t[S].extra=k,S+=1;s+=1,g=0}}else if(u==3){if(g+=k,l===""||r===e-1){if(l==="")g-=k;while(S<=r)t[S].an=g,t[S].ind=s,t[S].extra=k,S+=1;g=0,s+=1}}else t[s].ind=s,t[s].extra=0,s+=1}if(o.l=t,m=z>m?z:m,y.push(z),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=m,o.j){case 1:o.justifyOffset=-o.boxWidth;break;case 2:o.justifyOffset=-o.boxWidth/2;break;default:o.justifyOffset=0}o.lineWidths=y;var x=a.a,K,c;b=x.length;var v,Q,Y=[];for(U=0;U<b;U+=1){if(K=x[U],K.a.sc)o.strokeColorAnim=!0;if(K.a.sw)o.strokeWidthAnim=!0;if(K.a.fc||K.a.fh||K.a.fs||K.a.fb)o.fillColorAnim=!0;Q=0,v=K.s.b;for(r=0;r<e;r+=1)if(c=t[r],c.anIndexes[U]=Q,v==1&&c.val!==""||v==2&&c.val!==""&&c.val!==" "||v==3&&(c.n||c.val==" "||r==e-1)||v==4&&(c.n||r==e-1)){if(K.s.rn===1)Y.push(Q);Q+=1}a.a[U].s.totalChars=Q;var T=-1,M;if(K.s.rn===1)for(r=0;r<e;r+=1){if(c=t[r],T!=c.anIndexes[U])T=c.anIndexes[U],M=Y.splice(Math.floor(Math.random()*Y.length),1)[0];c.anIndexes[U]=M}}o.yOffset=o.finalLineHeight||o.finalSize*1.2,o.ls=o.ls||0,o.ascent=h.ascent*o.finalSize/100},TextProperty.prototype.updateDocumentData=function(o,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,o),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(o){var i=this.data.d.k[o].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(o){this.canResize=o,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(o){this.minimumFontSize=Math.floor(o)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var{max:o,min:i,floor:a}=Math;function t(e,n){if(this._currentTextLength=-1,this.k=!1,this.data=n,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,n.s||{k:0},0,0,this),"e"in n)this.e=PropertyFactory.getProp(e,n.e,0,0,this);else this.e={v:100};if(this.o=PropertyFactory.getProp(e,n.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,n.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,n.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,n.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,n.a,0,0.01,this),!this.dynamicProperties.length)this.getValue()}t.prototype={getMult:function e(n){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length)this.getValue();var s=0,l=0,u=1,g=1;if(this.ne.v>0)s=this.ne.v/100;else l=-this.ne.v/100;if(this.xe.v>0)u=1-this.xe.v/100;else g=1+this.xe.v/100;var S=BezierFactory.getBezierEasing(s,l,u,g).get,f=0,y=this.finalS,z=this.finalE,m=this.data.sh;if(m===2){if(z===y)f=n>=z?1:0;else f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=S(f)}else if(m===3){if(z===y)f=n>=z?0:1;else f=1-o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=S(f)}else if(m===4){if(z===y)f=0;else if(f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1)),f<0.5)f*=2;else f=1-2*(f-0.5);f=S(f)}else if(m===5){if(z===y)f=0;else{var U=z-y;n=i(o(0,n+0.5-y),z-y);var b=-U/2+n,h=U/2;f=Math.sqrt(1-b*b/(h*h))}f=S(f)}else if(m===6){if(z===y)f=0;else n=i(o(0,n+0.5-y),z-y),f=(1+Math.cos(Math.PI+Math.PI*2*n/(z-y)))/2;f=S(f)}else{if(n>=a(y))if(n-y<0)f=o(0,i(i(z,1)-(y-n),1));else f=o(0,i(z-n,1));f=S(f)}if(this.sm.v!==100){var p=this.sm.v*0.01;if(p===0)p=0.00000001;var k=0.5-p*0.5;if(f<k)f=0;else if(f=(f-k)/p,f>1)f=1}return f*this.a.v},getValue:function e(n){if(this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2)this.e.v=this._currentTextLength;var s=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/s,u=this.s.v/s+l,g=this.e.v/s+l;if(u>g){var S=u;u=g,g=S}this.finalS=u,this.finalE=g}},extendPrototype([DynamicPropertyContainer],t);function r(e,n,s){return new t(e,n,s)}return{getTextSelectorProp:r}}();function TextAnimatorDataProperty(o,i,a){var t={propType:!1},r=PropertyFactory.getProp,e=i.a;this.a={r:e.r?r(o,e.r,0,degToRads,a):t,rx:e.rx?r(o,e.rx,0,degToRads,a):t,ry:e.ry?r(o,e.ry,0,degToRads,a):t,sk:e.sk?r(o,e.sk,0,degToRads,a):t,sa:e.sa?r(o,e.sa,0,degToRads,a):t,s:e.s?r(o,e.s,1,0.01,a):t,a:e.a?r(o,e.a,1,0,a):t,o:e.o?r(o,e.o,0,0.01,a):t,p:e.p?r(o,e.p,1,0,a):t,sw:e.sw?r(o,e.sw,0,0,a):t,sc:e.sc?r(o,e.sc,1,0,a):t,fc:e.fc?r(o,e.fc,1,0,a):t,fh:e.fh?r(o,e.fh,0,0,a):t,fs:e.fs?r(o,e.fs,0,0.01,a):t,fb:e.fb?r(o,e.fb,0,0.01,a):t,t:e.t?r(o,e.t,0,0,a):t},this.s=TextSelectorProp.getTextSelectorProp(o,i.s,a),this.s.t=i.s.t}function TextAnimatorProperty(o,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=o,this._renderType=i,this._elem=a,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}TextAnimatorProperty.prototype.searchProperties=function(){var o,i=this._textData.a.length,a,t=PropertyFactory.getProp;for(o=0;o<i;o+=1)a=this._textData.a[o],this._animatorsData[o]=new TextAnimatorDataProperty(this._elem,a,this);if(this._textData.p&&"m"in this._textData.p)this._pathData={a:t(this._elem,this._textData.p.a,0,0,this),f:t(this._elem,this._textData.p.f,0,0,this),l:t(this._elem,this._textData.p.l,0,0,this),r:t(this._elem,this._textData.p.r,0,0,this),p:t(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0;else this._hasMaskedPath=!1;this._moreOptions.alignment=t(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(o,i){if(this.lettersChangedFlag=i,!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))return;this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,t=this._animatorsData,r=this._textData,e=this.mHelper,n=this._renderType,s=this.renderedLetters.length,l,u,g,S,f=o.l,y,z,m,U,b,h,p,k,R,V,C,w,Z,I,F;if(this._hasMaskedPath){if(F=this._pathData.m,!this._pathData.n||this._pathData._mdf){var J=F.v;if(this._pathData.r.v)J=J.reverse();y={tLength:0,segments:[]},S=J._length-1;var L;w=0;for(g=0;g<S;g+=1)L=bez.buildBezierData(J.v[g],J.v[g+1],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[g+1][0]-J.v[g+1][0],J.i[g+1][1]-J.v[g+1][1]]),y.tLength+=L.segmentLength,y.segments.push(L),w+=L.segmentLength;if(g=S,F.v.c)L=bez.buildBezierData(J.v[g],J.v[0],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[0][0]-J.v[0][0],J.i[0][1]-J.v[0][1]]),y.tLength+=L.segmentLength,y.segments.push(L),w+=L.segmentLength;this._pathData.pi=y}if(y=this._pathData.pi,z=this._pathData.f.v,p=0,h=1,U=0,b=!0,V=y.segments,z<0&&F.v.c){if(y.tLength<Math.abs(z))z=-Math.abs(z)%y.tLength;p=V.length-1,R=V[p].points,h=R.length-1;while(z<0)if(z+=R[h].partialLength,h-=1,h<0)p-=1,R=V[p].points,h=R.length-1}R=V[p].points,k=R[h-1],m=R[h],C=m.partialLength}S=f.length,l=0,u=0;var P=o.finalSize*1.2*0.714,W=!0,x,K,c,v,Q;v=t.length;var Y,T=-1,M,E,oo,io=z,lo=p,yo=h,Jo=-1,Ho,go,So,so,N,ho,li,ai,oi="",ti=this.defaultPropsArray,ri;if(o.j===2||o.j===1){var $o=0,di=0,ci=o.j===2?-0.5:-1,To=0,ui=!0;for(g=0;g<S;g+=1)if(f[g].n){if($o)$o+=di;while(To<g)f[To].animatorJustifyOffset=$o,To+=1;$o=0,ui=!0}else{for(c=0;c<v;c+=1)if(x=t[c].a,x.t.propType){if(ui&&o.j===2)di+=x.t.v*ci;if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)$o+=x.t.v*Y[0]*ci;else $o+=x.t.v*Y*ci}ui=!1}if($o)$o+=di;while(To<g)f[To].animatorJustifyOffset=$o,To+=1}for(g=0;g<S;g+=1){if(e.reset(),Ho=1,f[g].n){if(l=0,u+=o.yOffset,u+=W?1:0,z=io,W=!1,this._hasMaskedPath)p=lo,h=yo,R=V[p].points,k=R[h-1],m=R[h],C=m.partialLength,U=0;oi="",ai="",ho="",ri="",ti=this.defaultPropsArray}else{if(this._hasMaskedPath){if(Jo!==f[g].line){switch(o.j){case 1:z+=w-o.lineWidths[f[g].line];break;case 2:z+=(w-o.lineWidths[f[g].line])/2;break;default:break}Jo=f[g].line}if(T!==f[g].ind){if(f[T])z+=f[T].extra;z+=f[g].an/2,T=f[g].ind}z+=a[0]*f[g].an*0.005;var Xo=0;for(c=0;c<v;c+=1){if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.p.v[0]*Y[0];else Xo+=x.p.v[0]*Y;if(x.a.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.a.v[0]*Y[0];else Xo+=x.a.v[0]*Y}if(b=!0,this._pathData.a.v)z=f[0].an*0.5+(w-this._pathData.f.v-f[0].an*0.5-f[f.length-1].an*0.5)*T/(S-1),z+=this._pathData.f.v;while(b)if(U+C>=z+Xo||!R)Z=(z+Xo-U)/m.partialLength,E=k.point[0]+(m.point[0]-k.point[0])*Z,oo=k.point[1]+(m.point[1]-k.point[1])*Z,e.translate(-a[0]*f[g].an*0.005,-(a[1]*P)*0.01),b=!1;else if(R){if(U+=m.partialLength,h+=1,h>=R.length)if(h=0,p+=1,!V[p])if(F.v.c)h=0,p=0,R=V[p].points;else U-=m.partialLength,R=null;else R=V[p].points;if(R)k=m,m=R[h],C=m.partialLength}M=f[g].an/2-f[g].add,e.translate(-M,0,0)}else M=f[g].an/2-f[g].add,e.translate(-M,0,0),e.translate(-a[0]*f[g].an*0.005,-a[1]*P*0.01,0);for(c=0;c<v;c+=1)if(x=t[c].a,x.t.propType){if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),l!==0||o.j!==0)if(this._hasMaskedPath)if(Y.length)z+=x.t.v*Y[0];else z+=x.t.v*Y;else if(Y.length)l+=x.t.v*Y[0];else l+=x.t.v*Y}if(o.strokeWidthAnim)So=o.sw||0;if(o.strokeColorAnim)if(o.sc)go=[o.sc[0],o.sc[1],o.sc[2]];else go=[0,0,0];if(o.fillColorAnim&&o.fc)so=[o.fc[0],o.fc[1],o.fc[2]];for(c=0;c<v;c+=1)if(x=t[c].a,x.a.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)e.translate(-x.a.v[0]*Y[0],-x.a.v[1]*Y[1],x.a.v[2]*Y[2]);else e.translate(-x.a.v[0]*Y,-x.a.v[1]*Y,x.a.v[2]*Y);for(c=0;c<v;c+=1)if(x=t[c].a,x.s.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)e.scale(1+(x.s.v[0]-1)*Y[0],1+(x.s.v[1]-1)*Y[1],1);else e.scale(1+(x.s.v[0]-1)*Y,1+(x.s.v[1]-1)*Y,1);for(c=0;c<v;c+=1){if(x=t[c].a,K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),x.sk.propType)if(Y.length)e.skewFromAxis(-x.sk.v*Y[0],x.sa.v*Y[1]);else e.skewFromAxis(-x.sk.v*Y,x.sa.v*Y);if(x.r.propType)if(Y.length)e.rotateZ(-x.r.v*Y[2]);else e.rotateZ(-x.r.v*Y);if(x.ry.propType)if(Y.length)e.rotateY(x.ry.v*Y[1]);else e.rotateY(x.ry.v*Y);if(x.rx.propType)if(Y.length)e.rotateX(x.rx.v*Y[0]);else e.rotateX(x.rx.v*Y);if(x.o.propType)if(Y.length)Ho+=(x.o.v*Y[0]-Ho)*Y[0];else Ho+=(x.o.v*Y-Ho)*Y;if(o.strokeWidthAnim&&x.sw.propType)if(Y.length)So+=x.sw.v*Y[0];else So+=x.sw.v*Y;if(o.strokeColorAnim&&x.sc.propType)for(N=0;N<3;N+=1)if(Y.length)go[N]+=(x.sc.v[N]-go[N])*Y[0];else go[N]+=(x.sc.v[N]-go[N])*Y;if(o.fillColorAnim&&o.fc){if(x.fc.propType)for(N=0;N<3;N+=1)if(Y.length)so[N]+=(x.fc.v[N]-so[N])*Y[0];else so[N]+=(x.fc.v[N]-so[N])*Y;if(x.fh.propType)if(Y.length)so=addHueToRGB(so,x.fh.v*Y[0]);else so=addHueToRGB(so,x.fh.v*Y);if(x.fs.propType)if(Y.length)so=addSaturationToRGB(so,x.fs.v*Y[0]);else so=addSaturationToRGB(so,x.fs.v*Y);if(x.fb.propType)if(Y.length)so=addBrightnessToRGB(so,x.fb.v*Y[0]);else so=addBrightnessToRGB(so,x.fb.v*Y)}}for(c=0;c<v;c+=1)if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),this._hasMaskedPath)if(Y.length)e.translate(0,x.p.v[1]*Y[0],-x.p.v[2]*Y[1]);else e.translate(0,x.p.v[1]*Y,-x.p.v[2]*Y);else if(Y.length)e.translate(x.p.v[0]*Y[0],x.p.v[1]*Y[1],-x.p.v[2]*Y[2]);else e.translate(x.p.v[0]*Y,x.p.v[1]*Y,-x.p.v[2]*Y);if(o.strokeWidthAnim)ho=So<0?0:So;if(o.strokeColorAnim)li="rgb("+Math.round(go[0]*255)+","+Math.round(go[1]*255)+","+Math.round(go[2]*255)+")";if(o.fillColorAnim&&o.fc)ai="rgb("+Math.round(so[0]*255)+","+Math.round(so[1]*255)+","+Math.round(so[2]*255)+")";if(this._hasMaskedPath){if(e.translate(0,-o.ls),e.translate(0,a[1]*P*0.01+u,0),this._pathData.p.v){I=(m.point[1]-k.point[1])/(m.point[0]-k.point[0]);var mi=Math.atan(I)*180/Math.PI;if(m.point[0]<k.point[0])mi+=180;e.rotate(-mi*Math.PI/180)}if(e.translate(E,oo,0),z-=a[0]*f[g].an*0.005,f[g+1]&&T!==f[g+1].ind)z+=f[g].an/2,z+=o.tr*0.001*o.finalSize}else{if(e.translate(l,u,0),o.ps)e.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(o.j){case 1:e.translate(f[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[g].line]),0,0);break;case 2:e.translate(f[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[g].line])/2,0,0);break;default:break}e.translate(0,-o.ls),e.translate(M,0,0),e.translate(a[0]*f[g].an*0.005,a[1]*P*0.01,0),l+=f[g].l+o.tr*0.001*o.finalSize}if(n==="html")oi=e.toCSS();else if(n==="svg")oi=e.to2dCSS();else ti=[e.props[0],e.props[1],e.props[2],e.props[3],e.props[4],e.props[5],e.props[6],e.props[7],e.props[8],e.props[9],e.props[10],e.props[11],e.props[12],e.props[13],e.props[14],e.props[15]];ri=Ho}if(s<=g)Q=new LetterProps(ri,ho,li,ai,oi,ti),this.renderedLetters.push(Q),s+=1,this.lettersChangedFlag=!0;else Q=this.renderedLetters[g],this.lettersChangedFlag=Q.update(ri,ho,li,ai,oi,ti)||this.lettersChangedFlag}},TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId)return;this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties()},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(o,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(o,i,a),this.textProperty=new TextProperty(this,o.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(o.t,this.renderType,this),this.initTransform(o,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)},ITextElement.prototype.createPathShape=function(o,i){var a,t=i.length,r,e="";for(a=0;a<t;a+=1)if(i[a].ty==="sh")r=i[a].ks.k,e+=buildShapeString(r,r.i.length,!0,o);return e},ITextElement.prototype.updateDocumentData=function(o,i){this.textProperty.updateDocumentData(o,i)},ITextElement.prototype.canResizeFont=function(o){this.textProperty.canResizeFont(o)},ITextElement.prototype.setMinimumFontSize=function(o){this.textProperty.setMinimumFontSize(o)},ITextElement.prototype.applyTextPropertiesToMatrix=function(o,i,a,t,r){if(o.ps)i.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(i.translate(0,-o.ls,0),o.j){case 1:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a]),0,0);break;case 2:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a])/2,0,0);break;default:break}i.translate(t,r,0)},ITextElement.prototype.buildColor=function(o){return"rgb("+Math.round(o[0]*255)+","+Math.round(o[1]*255)+","+Math.round(o[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){if(this.textProperty._mdf||this.textProperty._isFirstFrame)this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1};var emptyShapeData={shapes:[]};function SVGTextLottieElement(o,i,a){this.textSpans=[],this.renderType="svg",this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars)this.textContainer=createNS("text")},SVGTextLottieElement.prototype.buildTextContents=function(o){var i=0,a=o.length,t=[],r="";while(i<a){if(o[i]===String.fromCharCode(13)||o[i]===String.fromCharCode(3))t.push(r),r="";else r+=o[i];i+=1}return t.push(r),t},SVGTextLottieElement.prototype.buildShapeData=function(o,i){if(o.shapes&&o.shapes.length){var a=o.shapes[0];if(a.it){var t=a.it[a.it.length-1];if(t.s)t.s.k[0]=i,t.s.k[1]=i}}return o},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var o,i,a=this.textProperty.currentData;if(this.renderedLetters=createSizedArray(a?a.l.length:0),a.fc)this.layerElement.setAttribute("fill",this.buildColor(a.fc));else this.layerElement.setAttribute("fill","rgba(0,0,0,0)");if(a.sc)this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw);this.layerElement.setAttribute("font-size",a.finalSize);var t=this.globalData.fontManager.getFontByName(a.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var{fWeight:r,fStyle:e}=a;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",a.t);var n=a.l||[],s=!!this.globalData.fontManager.chars;i=n.length;var l,u=this.mHelper,g="",S=this.data.singleShape,f=0,y=0,z=!0,m=a.tr*0.001*a.finalSize;if(S&&!s&&!a.sz){var U=this.textContainer,b="start";switch(a.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}U.setAttribute("text-anchor",b),U.setAttribute("letter-spacing",m);var h=this.buildTextContents(a.finalText);i=h.length,y=a.ps?a.ps[1]+a.ascent:0;for(o=0;o<i;o+=1){if(l=this.textSpans[o].span||createNS("tspan"),l.textContent=h[o],l.setAttribute("x",0),l.setAttribute("y",y),l.style.display="inherit",U.appendChild(l),!this.textSpans[o])this.textSpans[o]={span:null,glyph:null};this.textSpans[o].span=l,y+=a.finalLineHeight}this.layerElement.appendChild(U)}else{var p=this.textSpans.length,k;for(o=0;o<i;o+=1){if(!this.textSpans[o])this.textSpans[o]={span:null,childSpan:null,glyph:null};if(!s||!S||o===0){if(l=p>o?this.textSpans[o].span:createNS(s?"g":"text"),p<=o){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=l,s){var R=createNS("g");l.appendChild(R),this.textSpans[o].childSpan=R}this.textSpans[o].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(u.reset(),S){if(n[o].n)f=-m,y+=a.yOffset,y+=z?1:0,z=!1;this.applyTextPropertiesToMatrix(a,u,n[o].line,f,y),f+=n[o].l||0,f+=m}if(s){k=this.globalData.fontManager.getCharData(a.finalText[o],t.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var V;if(k.t===1)V=new SVGCompElement(k.data,this.globalData,this);else{var C=emptyShapeData;if(k.data&&k.data.shapes)C=this.buildShapeData(k.data,a.finalSize);V=new SVGShapeElement(C,this.globalData,this)}if(this.textSpans[o].glyph){var w=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(w.layerElement),w.destroy()}if(this.textSpans[o].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[o].childSpan.appendChild(V.layerElement),k.t===1)this.textSpans[o].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else{if(S)l.setAttribute("transform","translate("+u.props[12]+","+u.props[13]+")");l.textContent=n[o].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}}if(S&&l)l.setAttribute("d",g)}while(o<this.textSpans.length)this.textSpans[o].span.style.display="none",o+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var o=this.layerElement.getBBox();this.bbox={top:o.y,left:o.x,width:o.width,height:o.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var o,i=this.textSpans.length,a;this.renderedFrame=this.comp.renderedFrame;for(o=0;o<i;o+=1)if(a=this.textSpans[o].glyph,a){if(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf)this._mdf=!0}},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),!this.data.singleShape||this._mdf){if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=!0;var o,i,a=this.textAnimator.renderedLetters,t=this.textProperty.currentData.l;i=t.length;var r,e,n;for(o=0;o<i;o+=1)if(!t[o].n){if(r=a[o],e=this.textSpans[o].span,n=this.textSpans[o].glyph,n)n.renderFrame();if(r._mdf.m)e.setAttribute("transform",r.m);if(r._mdf.o)e.setAttribute("opacity",r.o);if(r._mdf.sw)e.setAttribute("stroke-width",r.sw);if(r._mdf.sc)e.setAttribute("stroke",r.sc);if(r._mdf.fc)e.setAttribute("fill",r.fc)}}}};function ISolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var o=createNS("rect");o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.layerElement.appendChild(o)};function NullElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initFrame(),this.initTransform(o,i,a),this.initHierarchy()}NullElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(o){return new NullElement(o,this.globalData,this)},SVGRendererBase.prototype.createShape=function(o){return new SVGShapeElement(o,this.globalData,this)},SVGRendererBase.prototype.createText=function(o){return new SVGTextLottieElement(o,this.globalData,this)},SVGRendererBase.prototype.createImage=function(o){return new IImageElement(o,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(o){return new ISolidElement(o,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(o){if(this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize)this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize);else this.svgElement.setAttribute("viewBox","0 0 "+o.w+" "+o.h);if(!this.renderConfig.viewBoxOnly)this.svgElement.setAttribute("width",o.w),this.svgElement.setAttribute("height",o.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility;if(this.renderConfig.width)this.svgElement.setAttribute("width",this.renderConfig.width);if(this.renderConfig.height)this.svgElement.setAttribute("height",this.renderConfig.height);if(this.renderConfig.className)this.svgElement.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.svgElement.setAttribute("id",this.renderConfig.id);if(this.renderConfig.focusable!==void 0)this.svgElement.setAttribute("focusable",this.renderConfig.focusable);this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(o,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=o;var a=createNS("clipPath"),t=createNS("rect");t.setAttribute("width",o.w),t.setAttribute("height",o.h),t.setAttribute("x",0),t.setAttribute("y",0);var r=createElementID();a.setAttribute("id",r),a.appendChild(t),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),i.appendChild(a),this.layers=o.layers,this.elements=createSizedArray(o.layers.length)},SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.layerElement=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(o){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===o)return i;return-1},SVGRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;i[o]=!0;var a=this.createItem(this.layers[o]);if(i[o]=a,getExpressionsPlugin()){if(this.layers[o].ty===0)this.globalData.projectInterface.registerComposition(a);a.initExpressions()}if(this.appendElementInPos(a,o),this.layers[o].tt){var t="tp"in this.layers[o]?this.findIndexByInd(this.layers[o].tp):o-1;if(t===-1)return;if(!this.elements[t]||this.elements[t]===!0)this.buildItem(t),this.addPendingElement(a);else{var r=i[t],e=r.getMatte(this.layers[o].tt);a.setMatte(e)}}},SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();if(o.checkParenting(),o.data.tt){var i=0,a=this.elements.length;while(i<a){if(this.elements[i]===o){var t="tp"in o.data?this.findIndexByInd(o.data.tp):i-1,r=this.elements[t],e=r.getMatte(this.layers[i].tt);o.setMatte(e);break}i+=1}}}},SVGRendererBase.prototype.renderFrame=function(o){if(this.renderedFrame===o||this.destroyed)return;if(o===null)o=this.renderedFrame;else this.renderedFrame=o;this.globalData.frameNum=o,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=o,this.globalData._mdf=!1;var i,a=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].prepareFrame(o-this.layers[i].st);if(this.globalData._mdf){for(i=0;i<a;i+=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=0,r;while(t<i){if(this.elements[t]&&this.elements[t]!==!0&&this.elements[t].getBaseElement())r=this.elements[t].getBaseElement();t+=1}if(r)this.layerElement.insertBefore(a,r);else this.layerElement.appendChild(a)},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(o,i,a){if(this.initFrame(),this.initBaseData(o,i,a),this.initTransform(o,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.data.xt||!i.progressiveLoad)this.buildAllItems();this.hide()},ICompElement.prototype.prepareFrame=function(o){if(this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),!this.isInRange&&!this.data.xt)return;if(!this.tm._placeholder){var i=this.tm.v;if(i===this.data.op)i=this.data.op-1;this.renderedFrame=i}else this.renderedFrame=o/this.data.sr;var a,t=this.elements.length;if(!this.completeLayers)this.checkLayers(this.renderedFrame);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a]){if(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf)this._mdf=!0}},ICompElement.prototype.renderInnerContent=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.completeLayers||this.elements[o])this.elements[o].renderFrame()},ICompElement.prototype.setElements=function(o){this.elements=o},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.elements[o])this.elements[o].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(o,i,a){this.layers=o.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function SVGRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(i&&i.title){var t=createNS("title"),r=createElementID();t.setAttribute("id",r),t.textContent=i.title,this.svgElement.appendChild(t),a+=r}if(i&&i.description){var e=createNS("desc"),n=createElementID();e.setAttribute("id",n),e.textContent=i.description,this.svgElement.appendChild(e),a+=" "+n}if(a)this.svgElement.setAttribute("aria-labelledby",a);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function o(i){var a,t=i.length,r="_";for(a=0;a<t;a+=1)r+=i[a].transform.key+"_";var e=this.sequences[r];if(!e)e={transforms:[].concat(i),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=e,this.sequenceList.push(e);return e},processSequence:function o(i,a){var t=0,r=i.transforms.length,e=a;while(t<r&&!a){if(i.transforms[t].transform.mProps._mdf){e=!0;break}t+=1}if(e){i.finalTransform.reset();for(t=r-1;t>=0;t-=1)i.finalTransform.multiply(i.transforms[t].transform.mProps.v)}i._mdf=e},processSequences:function o(i){var a,t=this.sequenceList.length;for(a=0;a<t;a+=1)this.processSequence(this.sequenceList[a],i)},getNewKey:function o(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function o(){var i="__lottie_element_luma_buffer",a=null,t=null,r=null;function e(){var l=createNS("svg"),u=createNS("filter"),g=createNS("feColorMatrix");if(u.setAttribute("id",i),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),u.appendChild(g),l.appendChild(u),l.setAttribute("id",i+"_svg"),featureSupport.svgLumaHidden)l.style.display="none";return l}function n(){if(!a)r=e(),document.body.appendChild(r),a=createTag("canvas"),t=a.getContext("2d"),t.filter="url(#"+i+")",t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1)}function s(l){if(!a)n();return a.width=l.width,a.height=l.height,t.filter="url(#"+i+")",a}return{load:n,get:s}};function createCanvas(o,i){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(o,i);var a=createTag("canvas");return a.width=o,a.height=i,a}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(o){var i,a=o.data.ef?o.data.ef.length:0;this.filters=[];var t;for(i=0;i<a;i+=1){t=null;var r=o.data.ef[i].ty;if(registeredEffects[r]){var e=registeredEffects[r].effect;t=new e(o.effectsManager.effectElements[i],o)}if(t)this.filters.push(t)}if(this.filters.length)o.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},CVEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect(o,i){registeredEffects[o]={effect:i}}function CVMaskElement(o,i){this.data=o,this.element=i,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a,t=this.masksProperties.length,r=!1;for(a=0;a<t;a+=1){if(this.masksProperties[a].mode!=="n")r=!0;this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3)}if(this.hasMasks=r,r)this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks)return;var o=this.element.finalTransform.mat,i=this.element.canvasContext,a,t=this.masksProperties.length,r,e,n;i.beginPath();for(a=0;a<t;a+=1)if(this.masksProperties[a].mode!=="n"){if(this.masksProperties[a].inv)i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0);n=this.viewData[a].v,r=o.applyToPointArray(n.v[0][0],n.v[0][1],0),i.moveTo(r[0],r[1]);var s,l=n._length;for(s=1;s<l;s+=1)e=o.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);e=o.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}this.element.globalData.renderer.save(!0),i.clip()},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function o(){},initRendererElement:function o(){},createContainerElements:function o(){if(this.data.tt>=1){this.buffers=[];var i=this.globalData.canvasContext,a=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(a);var t=assetLoader.createCanvas(i.canvas.width,i.canvas.height);if(this.buffers.push(t),this.data.tt>=3&&!document._isProxy)assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function o(){},setBlendMode:function o(){var i=this.globalData;if(i.blendMode!==this.data.bm){i.blendMode=this.data.bm;var a=getBlendMode(this.data.bm);i.canvasContext.globalCompositeOperation=a}},createRenderableComponents:function o(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function o(){if(!this.hidden&&(!this.isInRange||this.isTransparent))this.hidden=!0},showElement:function o(){if(this.isInRange&&!this.isTransparent)this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0},clearCanvas:function o(i){i.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function o(){if(this.data.tt>=1){var i=this.buffers[0],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function o(){if(this.data.tt>=1){var i=this.buffers[1],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var t=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(t.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),e=r.getContext("2d");e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(i,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function o(i){if(this.hidden||this.data.hd)return;if(this.data.td===1&&!i)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var a=this.data.ty===0;if(this.prepareLayer(),this.globalData.renderer.save(a),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(a),this.exitLayer(),this.maskManager.hasMasks)this.globalData.renderer.restore(!0);if(this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(o,i,a,t){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;if(i.ty==="rc")r=5;else if(i.ty==="el")r=6;else if(i.ty==="sr")r=7;this.sh=ShapePropertyFactory.getShapeProp(o,i,r,o);var e,n=a.length,s;for(e=0;e<n;e+=1)if(!a[e].closed)s={transforms:t.addTransformSequence(a[e].transforms),trNodes:[]},this.styledShapes.push(s),a[e].elements.push(s)}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(o,i){var a={data:o,type:o.ty,preTransforms:this.transformsManager.addTransformSequence(i),transforms:[],elements:[],closed:o.hd===!0},t={};if(o.ty==="fl"||o.ty==="st"){if(t.c=PropertyFactory.getProp(this,o.c,1,255,this),!t.c.k)a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"}else if(o.ty==="gf"||o.ty==="gs")t.s=PropertyFactory.getProp(this,o.s,1,null,this),t.e=PropertyFactory.getProp(this,o.e,1,null,this),t.h=PropertyFactory.getProp(this,o.h||{k:0},0,0.01,this),t.a=PropertyFactory.getProp(this,o.a||{k:0},0,degToRads,this),t.g=new GradientProperty(this,o.g,this);if(t.o=PropertyFactory.getProp(this,o.o,0,0.01,this),o.ty==="st"||o.ty==="gs"){if(a.lc=lineCapEnum[o.lc||2],a.lj=lineJoinEnum[o.lj||2],o.lj==1)a.ml=o.ml;if(t.w=PropertyFactory.getProp(this,o.w,0,null,this),!t.w.k)a.wi=t.w.v;if(o.d){var r=new DashProperty(this,o.d,"canvas",this);if(t.d=r,!t.d.k)a.da=t.d.dashArray,a.do=t.d.dashoffset[0]}}else a.r=o.r===2?"evenodd":"nonzero";return this.stylesList.push(a),t.style=a,t},CVShapeElement.prototype.createGroupElement=function(){var o={it:[],prevViewData:[]};return o},CVShapeElement.prototype.createTransformElement=function(o){var i={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,o.o,0,0.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,o,this)}};return i},CVShapeElement.prototype.createShapeElement=function(o){var i=new CVShapeData(this,o,this.stylesList,this.transformsManager);return this.shapes.push(i),this.addShapeToModifiers(i),i},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(o){var i,a=this.stylesList.length;for(i=0;i<a;i+=1)if(!this.stylesList[i].closed)this.stylesList[i].transforms.push(o)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var o,i=this.stylesList.length;for(o=0;o<i;o+=1)if(!this.stylesList[o].closed)this.stylesList[o].transforms.pop()},CVShapeElement.prototype.closeStyles=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].closed=!0},CVShapeElement.prototype.searchShapes=function(o,i,a,t,r){var e,n=o.length-1,s,l,u=[],g=[],S,f,y,z=[].concat(r);for(e=n;e>=0;e-=1){if(S=this.searchProcessedElement(o[e]),!S)o[e]._shouldRender=t;else i[e]=a[S-1];if(o[e].ty==="fl"||o[e].ty==="st"||o[e].ty==="gf"||o[e].ty==="gs"){if(!S)i[e]=this.createStyleElement(o[e],z);else i[e].style.closed=!1;u.push(i[e].style)}else if(o[e].ty==="gr"){if(!S)i[e]=this.createGroupElement(o[e]);else{l=i[e].it.length;for(s=0;s<l;s+=1)i[e].prevViewData[s]=i[e].it[s]}this.searchShapes(o[e].it,i[e].it,i[e].prevViewData,t,z)}else if(o[e].ty==="tr"){if(!S)y=this.createTransformElement(o[e]),i[e]=y;z.push(i[e]),this.addTransformToStyleList(i[e])}else if(o[e].ty==="sh"||o[e].ty==="rc"||o[e].ty==="el"||o[e].ty==="sr"){if(!S)i[e]=this.createShapeElement(o[e])}else if(o[e].ty==="tm"||o[e].ty==="rd"||o[e].ty==="pb"||o[e].ty==="zz"||o[e].ty==="op"){if(!S)f=ShapeModifiers.getModifier(o[e].ty),f.init(this,o[e]),i[e]=f,this.shapeModifiers.push(f);else f=i[e],f.closed=!1;g.push(f)}else if(o[e].ty==="rp"){if(!S)f=ShapeModifiers.getModifier(o[e].ty),i[e]=f,f.init(this,o,e,i),this.shapeModifiers.push(f),t=!1;else f=i[e],f.closed=!0;g.push(f)}this.addProcessedElement(o[e],e+1)}this.removeTransformFromStyleList(),this.closeStyles(u),n=g.length;for(e=0;e<n;e+=1)g[e].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(o,i){if(o._opMdf||i.op._mdf||this._isFirstFrame)i.opacity=o.opacity,i.opacity*=i.op.v,i._opMdf=!0},CVShapeElement.prototype.drawLayer=function(){var o,i=this.stylesList.length,a,t,r,e,n,s,l=this.globalData.renderer,u=this.globalData.canvasContext,g,S;for(o=0;o<i;o+=1)if(S=this.stylesList[o],g=S.type,!((g==="st"||g==="gs")&&S.wi===0||!S.data._shouldRender||S.coOp===0||this.globalData.currentGlobalAlpha===0)){if(l.save(),n=S.elements,g==="st"||g==="gs")l.ctxStrokeStyle(g==="st"?S.co:S.grd),l.ctxLineWidth(S.wi),l.ctxLineCap(S.lc),l.ctxLineJoin(S.lj),l.ctxMiterLimit(S.ml||0);else l.ctxFillStyle(g==="fl"?S.co:S.grd);if(l.ctxOpacity(S.coOp),g!=="st"&&g!=="gs")u.beginPath();l.ctxTransform(S.preTransforms.finalTransform.props),t=n.length;for(a=0;a<t;a+=1){if(g==="st"||g==="gs"){if(u.beginPath(),S.da)u.setLineDash(S.da),u.lineDashOffset=S.do}s=n[a].trNodes,e=s.length;for(r=0;r<e;r+=1)if(s[r].t==="m")u.moveTo(s[r].p[0],s[r].p[1]);else if(s[r].t==="c")u.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]);else u.closePath();if(g==="st"||g==="gs"){if(l.ctxStroke(),S.da)u.setLineDash(this.dashResetter)}}if(g!=="st"&&g!=="gs")this.globalData.renderer.ctxFill(S.r);l.restore()}},CVShapeElement.prototype.renderShape=function(o,i,a,t){var r,e=i.length-1,n;n=o;for(r=e;r>=0;r-=1)if(i[r].ty==="tr")n=a[r].transform,this.renderShapeTransform(o,n);else if(i[r].ty==="sh"||i[r].ty==="el"||i[r].ty==="rc"||i[r].ty==="sr")this.renderPath(i[r],a[r]);else if(i[r].ty==="fl")this.renderFill(i[r],a[r],n);else if(i[r].ty==="st")this.renderStroke(i[r],a[r],n);else if(i[r].ty==="gf"||i[r].ty==="gs")this.renderGradientFill(i[r],a[r],n);else if(i[r].ty==="gr")this.renderShape(n,i[r].it,a[r].it);else if(i[r].ty==="tm");if(t)this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(o,i){if(this._isFirstFrame||i._mdf||o.transforms._mdf){var a=o.trNodes,t=i.paths,r,e,n,s=t._length;a.length=0;var l=o.transforms.finalTransform;for(n=0;n<s;n+=1){var u=t.shapes[n];if(u&&u.v){e=u._length;for(r=1;r<e;r+=1){if(r===1)a.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)});a.push({t:"c",pts:l.applyToTriplePoints(u.o[r-1],u.i[r],u.v[r])})}if(e===1)a.push({t:"m",p:l.applyToPointArray(u.v[0][0],u.v[0][1],0)});if(u.c&&e)a.push({t:"c",pts:l.applyToTriplePoints(u.o[r-1],u.i[0],u.v[0])}),a.push({t:"z"})}}o.trNodes=a}},CVShapeElement.prototype.renderPath=function(o,i){if(o.hd!==!0&&o._shouldRender){var a,t=i.styledShapes.length;for(a=0;a<t;a+=1)this.renderStyledShape(i.styledShapes[a],i.sh)}},CVShapeElement.prototype.renderFill=function(o,i,a){var t=i.style;if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderGradientFill=function(o,i,a){var t=i.style,r;if(!t.grd||i.g._mdf||i.s._mdf||i.e._mdf||o.t!==1&&(i.h._mdf||i.a._mdf)){var e=this.globalData.canvasContext,n=i.s.v,s=i.e.v;if(o.t===1)r=e.createLinearGradient(n[0],n[1],s[0],s[1]);else{var l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)),u=Math.atan2(s[1]-n[1],s[0]-n[0]),g=i.h.v;if(g>=1)g=0.99;else if(g<=-1)g=-0.99;var S=l*g,f=Math.cos(u+i.a.v)*S+n[0],y=Math.sin(u+i.a.v)*S+n[1];r=e.createRadialGradient(f,y,0,n[0],n[1],l)}var z,m=o.g.p,U=i.g.c,b=1;for(z=0;z<m;z+=1){if(i.g._hasOpacity&&i.g._collapsable)b=i.g.o[z*2+1];r.addColorStop(U[z*4]/100,"rgba("+U[z*4+1]+","+U[z*4+2]+","+U[z*4+3]+","+b+")")}t.grd=r}t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(o,i,a){var{style:t,d:r}=i;if(r&&(r._mdf||this._isFirstFrame))t.da=r.dashArray,t.do=r.dashoffset[0];if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity;if(i.w._mdf||this._isFirstFrame)t.wi=i.w.v},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(o,i,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=!1;if(o.fc)i=!0,this.values.fill=this.buildColor(o.fc);else this.values.fill="rgba(0,0,0,0)";this.fill=i;var a=!1;if(o.sc)a=!0,this.values.stroke=this.buildColor(o.sc),this.values.sWidth=o.sw;var t=this.globalData.fontManager.getFontByName(o.f),r,e,n=o.l,s=this.mHelper;this.stroke=a,this.values.fValue=o.finalSize+"px "+this.globalData.fontManager.getFontByName(o.f).fFamily,e=o.finalText.length;var l,u,g,S,f,y,z,m,U,b,h=this.data.singleShape,p=o.tr*0.001*o.finalSize,k=0,R=0,V=!0,C=0;for(r=0;r<e;r+=1){if(l=this.globalData.fontManager.getCharData(o.finalText[r],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),u=l&&l.data||{},s.reset(),h&&n[r].n)k=-p,R+=o.yOffset,R+=V?1:0,V=!1;if(f=u.shapes?u.shapes[0].it:[],z=f.length,s.scale(o.finalSize/100,o.finalSize/100),h)this.applyTextPropertiesToMatrix(o,s,n[r].line,k,R);U=createSizedArray(z-1);var w=0;for(y=0;y<z;y+=1)if(f[y].ty==="sh"){S=f[y].ks.k.i.length,m=f[y].ks.k,b=[];for(g=1;g<S;g+=1){if(g===1)b.push(s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0));b.push(s.applyToX(m.o[g-1][0],m.o[g-1][1],0),s.applyToY(m.o[g-1][0],m.o[g-1][1],0),s.applyToX(m.i[g][0],m.i[g][1],0),s.applyToY(m.i[g][0],m.i[g][1],0),s.applyToX(m.v[g][0],m.v[g][1],0),s.applyToY(m.v[g][0],m.v[g][1],0))}b.push(s.applyToX(m.o[g-1][0],m.o[g-1][1],0),s.applyToY(m.o[g-1][0],m.o[g-1][1],0),s.applyToX(m.i[0][0],m.i[0][1],0),s.applyToY(m.i[0][0],m.i[0][1],0),s.applyToX(m.v[0][0],m.v[0][1],0),s.applyToY(m.v[0][0],m.v[0][1],0)),U[w]=b,w+=1}if(h)k+=n[r].l,k+=p;if(this.textSpans[C])this.textSpans[C].elem=U;else this.textSpans[C]={elem:U};C+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var o=this.canvasContext;if(o.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),!this.data.singleShape)this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var i,a,t,r,e,n,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;a=l.length;var u,g=null,S=null,f=null,y,z,m=this.globalData.renderer;for(i=0;i<a;i+=1)if(!l[i].n){if(u=s[i],u)m.save(),m.ctxTransform(u.p),m.ctxOpacity(u.o);if(this.fill){if(u&&u.fc){if(g!==u.fc)m.ctxFillStyle(u.fc),g=u.fc}else if(g!==this.values.fill)g=this.values.fill,m.ctxFillStyle(this.values.fill);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),m.ctxFill()}if(this.stroke){if(u&&u.sw){if(f!==u.sw)f=u.sw,m.ctxLineWidth(u.sw)}else if(f!==this.values.sWidth)f=this.values.sWidth,m.ctxLineWidth(this.values.sWidth);if(u&&u.sc){if(S!==u.sc)S=u.sc,m.ctxStrokeStyle(u.sc)}else if(S!==this.values.stroke)S=this.values.stroke,m.ctxStrokeStyle(this.values.stroke);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),m.ctxStroke()}if(u)this.globalData.renderer.restore()}};function CVImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.img=i.imageLoader.getAsset(this.assetData),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var o=createTag("canvas");o.width=this.assetData.w,o.height=this.assetData.h;var i=o.getContext("2d"),a=this.img.width,t=this.img.height,r=a/t,e=this.assetData.w/this.assetData.h,n,s,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(r>e&&l==="xMidYMid slice"||r<e&&l!=="xMidYMid slice")s=t,n=s*e;else n=a,s=n/e;i.drawImage(this.img,(a-n)/2,(t-s)/2,n,s,0,0,this.assetData.w,this.assetData.h),this.img=o}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(o){return new CVShapeElement(o,this.globalData,this)},CanvasRendererBase.prototype.createText=function(o){return new CVTextElement(o,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(o){return new CVImageElement(o,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(o){return new CVSolidElement(o,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(o){if(o[0]===1&&o[1]===0&&o[4]===0&&o[5]===1&&o[12]===0&&o[13]===0)return;this.canvasContext.transform(o[0],o[1],o[4],o[5],o[12],o[13])},CanvasRendererBase.prototype.ctxOpacity=function(o){this.canvasContext.globalAlpha*=o<0?0:o},CanvasRendererBase.prototype.ctxFillStyle=function(o){this.canvasContext.fillStyle=o},CanvasRendererBase.prototype.ctxStrokeStyle=function(o){this.canvasContext.strokeStyle=o},CanvasRendererBase.prototype.ctxLineWidth=function(o){this.canvasContext.lineWidth=o},CanvasRendererBase.prototype.ctxLineCap=function(o){this.canvasContext.lineCap=o},CanvasRendererBase.prototype.ctxLineJoin=function(o){this.canvasContext.lineJoin=o},CanvasRendererBase.prototype.ctxMiterLimit=function(o){this.canvasContext.miterLimit=o},CanvasRendererBase.prototype.ctxFill=function(o){this.canvasContext.fill(o)},CanvasRendererBase.prototype.ctxFillRect=function(o,i,a,t){this.canvasContext.fillRect(o,i,a,t)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(o){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}if(o)this.globalData.blendMode="source-over";this.contextData.restore(o)},CanvasRendererBase.prototype.configAnimation=function(o){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var i=this.animationItem.container.style;i.width="100%",i.height="100%";var a="0px 0px 0px";if(i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,i["-webkit-transform"]=a,i.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className)this.animationItem.container.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=o,this.layers=o.layers,this.transformCanvas={w:o.w,h:o.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(o,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(o.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(o,i){this.reset();var a,t;if(o)a=o,t=i,this.canvasContext.canvas.width=a,this.canvasContext.canvas.height=t;else{if(this.animationItem.wrapper&&this.animationItem.container)a=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight;else a=this.canvasContext.canvas.width,t=this.canvasContext.canvas.height;this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=t*this.renderConfig.dpr}var r,e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var n=this.renderConfig.preserveAspectRatio.split(" "),s=n[1]||"meet",l=n[0]||"xMidYMid",u=l.substr(0,4),g=l.substr(4);if(r=a/t,e=this.transformCanvas.w/this.transformCanvas.h,e>r&&s==="meet"||e<r&&s==="slice")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr);else this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr);if(u==="xMid"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr;else if(u==="xMax"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr;else this.transformCanvas.tx=0;if(g==="YMid"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr;else if(g==="YMax"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr;else this.transformCanvas.ty=0}else if(this.renderConfig.preserveAspectRatio==="none")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;else this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper)this.animationItem.wrapper.innerText="";var o,i=this.layers?this.layers.length:0;for(o=i-1;o>=0;o-=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(o,i){if(this.renderedFrame===o&&this.renderConfig.clearCanvas===!0&&!i||this.destroyed||o===-1)return;this.renderedFrame=o,this.globalData.frameNum=o-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||i,this.globalData.projectInterface.currentFrame=o;var a,t=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].prepareFrame(o-this.layers[a].st);if(this.globalData._mdf){if(this.renderConfig.clearCanvas===!0)this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h);else this.save();for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].renderFrame();if(this.renderConfig.clearCanvas!==!0)this.restore()}},CanvasRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;var a=this.createItem(this.layers[o],this,this.globalData);i[o]=a,a.initExpressions()},CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var o,i=15;for(o=0;o<i;o+=1){var a=new CanvasContext;this.stack[o]=a}this._length=i,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var o=this._length*2,i=0;for(i=this._length;i<o;i+=1)this.stack[i]=new CanvasContext;this._length=o},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(o){this.cArrPos-=1;var i=this.stack[this.cArrPos],a=i.transform,t,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=a[t];if(o){this.nativeContext.restore();var e=this.stack[this.cArrPos+1];this.appliedFillStyle=e.fillStyle,this.appliedStrokeStyle=e.strokeStyle,this.appliedLineWidth=e.lineWidth,this.appliedLineCap=e.lineCap,this.appliedLineJoin=e.lineJoin,this.appliedMiterLimit=e.miterLimit}if(this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),o||i.opacity!==-1&&this.currentOpacity!==i.opacity)this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity;this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(o){if(o)this.nativeContext.save();var i=this.cTr.props;if(this._length<=this.cArrPos)this.duplicate();var a=this.stack[this.cArrPos],t;for(t=0;t<16;t+=1)a.transform[t]=i[t];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=a.opacity,r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,r.lineWidth=a.lineWidth,r.lineCap=a.lineCap,r.lineJoin=a.lineJoin,r.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(o){this.stack[this.cArrPos].opacity=o},CVContextData.prototype.setContext=function(o){this.nativeContext=o},CVContextData.prototype.fillStyle=function(o){if(this.stack[this.cArrPos].fillStyle!==o)this.currentFillStyle=o,this.stack[this.cArrPos].fillStyle=o},CVContextData.prototype.strokeStyle=function(o){if(this.stack[this.cArrPos].strokeStyle!==o)this.currentStrokeStyle=o,this.stack[this.cArrPos].strokeStyle=o},CVContextData.prototype.lineWidth=function(o){if(this.stack[this.cArrPos].lineWidth!==o)this.currentLineWidth=o,this.stack[this.cArrPos].lineWidth=o},CVContextData.prototype.lineCap=function(o){if(this.stack[this.cArrPos].lineCap!==o)this.currentLineCap=o,this.stack[this.cArrPos].lineCap=o},CVContextData.prototype.lineJoin=function(o){if(this.stack[this.cArrPos].lineJoin!==o)this.currentLineJoin=o,this.stack[this.cArrPos].lineJoin=o},CVContextData.prototype.miterLimit=function(o){if(this.stack[this.cArrPos].miterLimit!==o)this.currentMiterLimit=o,this.stack[this.cArrPos].miterLimit=o},CVContextData.prototype.transform=function(o){this.transformMat.cloneFromProps(o);var i=this.cTr;this.transformMat.multiply(i),i.cloneFromProps(this.transformMat.props);var a=i.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(o){var i=this.stack[this.cArrPos].opacity;if(i*=o<0?0:o,this.stack[this.cArrPos].opacity!==i){if(this.currentOpacity!==o)this.nativeContext.globalAlpha=o,this.currentOpacity=o;this.stack[this.cArrPos].opacity=i}},CVContextData.prototype.fill=function(o){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fill(o)},CVContextData.prototype.fillRect=function(o,i,a,t){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fillRect(o,i,a,t)},CVContextData.prototype.stroke=function(){if(this.appliedStrokeStyle!==this.currentStrokeStyle)this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle;if(this.appliedLineWidth!==this.currentLineWidth)this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth;if(this.appliedLineCap!==this.currentLineCap)this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap;if(this.appliedLineJoin!==this.currentLineJoin)this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin;if(this.appliedMiterLimit!==this.currentMiterLimit)this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit;this.nativeContext.stroke()};function CVCompElement(o,i,a){this.completeLayers=!1,this.layers=o.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var o=this.canvasContext;o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip();var i,a=this.layers.length;for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var o,i=this.layers.length;for(o=i-1;o>=0;o-=1)if(this.elements[o])this.elements[o].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function CanvasRenderer(o,i){if(this.animationItem=o,this.renderConfig={clearCanvas:i&&i.clearCanvas!==void 0?i.clearCanvas:!0,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper)this.renderConfig.dpr=i&&i.dpr||window.devicePixelRatio||1;if(this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas)this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData)}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function o(){},initRendererElement:function o(){if(this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask)this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement);else this.layerElement=this.baseElement;styleDiv(this.baseElement)},createContainerElements:function o(){if(this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){var i=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var a=this.finalTransform.mat.toCSS();i.transform=a,i.webkitTransform=a}if(this.finalTransform._opMdf)i.opacity=this.finalTransform.mProp.o.v},renderFrame:function o(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){if(this.layerElement=null,this.transformedElement=null,this.matteElement)this.matteElement=null;if(this.maskManager)this.maskManager.destroy(),this.maskManager=null},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function o(){},setMatte:function o(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var o;if(this.data.hasMask)o=createNS("rect"),o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh);else o=createTag("div"),o.style.width=this.data.sw+"px",o.style.height=this.data.sh+"px",o.style.backgroundColor=this.data.sc;this.layerElement.appendChild(o)};function HShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(o,i,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var o;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),o=this.svgElement;else{o=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;o.setAttribute("width",i.w),o.setAttribute("height",i.h),o.appendChild(this.shapesContainer),this.layerElement.appendChild(o)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=o},HShapeElement.prototype.getTransformedPoint=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i=o[a].mProps.v.applyToPointArray(i[0],i[1],0);return i},HShapeElement.prototype.calculateShapeBoundingBox=function(o,i){var a=o.sh.v,t=o.transformers,r,e=a._length,n,s,l,u;if(e<=1)return;for(r=0;r<e-1;r+=1)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[r+1]),u=this.getTransformedPoint(t,a.v[r+1]),this.checkBounds(n,s,l,u,i);if(a.c)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[0]),u=this.getTransformedPoint(t,a.v[0]),this.checkBounds(n,s,l,u,i)},HShapeElement.prototype.checkBounds=function(o,i,a,t,r){this.getBoundsOfCurve(o,i,a,t);var e=this.shapeBoundingBox;r.x=bmMin(e.left,r.x),r.xMax=bmMax(e.right,r.xMax),r.y=bmMin(e.top,r.y),r.yMax=bmMax(e.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(o,i,a,t){var r=[[o[0],t[0]],[o[1],t[1]]];for(var e,n,s,l,u,g,S,f=0;f<2;++f)if(n=6*o[f]-12*i[f]+6*a[f],e=-3*o[f]+9*i[f]-9*a[f]+3*t[f],s=3*i[f]-3*o[f],n|=0,e|=0,s|=0,e===0&&n===0);else if(e===0){if(l=-s/n,l>0&&l<1)r[f].push(this.calculateF(l,o,i,a,t,f))}else if(u=n*n-4*s*e,u>=0){if(g=(-n+bmSqrt(u))/(2*e),g>0&&g<1)r[f].push(this.calculateF(g,o,i,a,t,f));if(S=(-n-bmSqrt(u))/(2*e),S>0&&S<1)r[f].push(this.calculateF(S,o,i,a,t,f))}this.shapeBoundingBox.left=bmMin.apply(null,r[0]),this.shapeBoundingBox.top=bmMin.apply(null,r[1]),this.shapeBoundingBox.right=bmMax.apply(null,r[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,r[1])},HShapeElement.prototype.calculateF=function(o,i,a,t,r,e){return bmPow(1-o,3)*i[e]+3*bmPow(1-o,2)*o*a[e]+3*(1-o)*bmPow(o,2)*t[e]+bmPow(o,3)*r[e]},HShapeElement.prototype.calculateBoundingBox=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]&&o[a].sh)this.calculateShapeBoundingBox(o[a],i);else if(o[a]&&o[a].it)this.calculateBoundingBox(o[a].it,i);else if(o[a]&&o[a].style&&o[a].w)this.expandStrokeBoundingBox(o[a].w,i)},HShapeElement.prototype.expandStrokeBoundingBox=function(o,i){var a=0;if(o.keyframes){for(var t=0;t<o.keyframes.length;t+=1){var r=o.keyframes[t].s;if(r>a)a=r}a*=o.mult}else a=o.v*o.mult;i.x-=a,i.xMax+=a,i.y-=a,i.yMax+=a},HShapeElement.prototype.currentBoxContains=function(o){return this.currentBBox.x<=o.x&&this.currentBBox.y<=o.y&&this.currentBBox.width+this.currentBBox.x>=o.x+o.width&&this.currentBBox.height+this.currentBBox.y>=o.y+o.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var o=this.tempBoundingBox,i=999999;if(o.x=i,o.xMax=-i,o.y=i,o.yMax=-i,this.calculateBoundingBox(this.itemsData,o),o.width=o.xMax<o.x?0:o.xMax-o.x,o.height=o.yMax<o.y?0:o.yMax-o.y,this.currentBoxContains(o))return;var a=!1;if(this.currentBBox.w!==o.width)this.currentBBox.w=o.width,this.shapeCont.setAttribute("width",o.width),a=!0;if(this.currentBBox.h!==o.height)this.currentBBox.h=o.height,this.shapeCont.setAttribute("height",o.height),a=!0;if(a||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y){this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var t=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=r,t.webkitTransform=r}}};function HTextElement(o,i,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var o=createNS("g");this.maskedElement.appendChild(o),this.innerElem=o}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=this.innerElem.style,a=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)";if(i.fill=a,i.color=a,o.sc)i.stroke=this.buildColor(o.sc),i.strokeWidth=o.sw+"px";var t=this.globalData.fontManager.getFontByName(o.f);if(!this.globalData.fontManager.chars)if(i.fontSize=o.finalSize+"px",i.lineHeight=o.finalSize+"px",t.fClass)this.innerElem.className=t.fClass;else{i.fontFamily=t.fFamily;var{fWeight:r,fStyle:e}=o;i.fontStyle=e,i.fontWeight=r}var n,s,l=o.l;s=l.length;var u,g,S,f=this.mHelper,y,z="",m=0;for(n=0;n<s;n+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[m])u=createNS("path"),u.setAttribute("stroke-linecap",lineCapEnum[1]),u.setAttribute("stroke-linejoin",lineJoinEnum[2]),u.setAttribute("stroke-miterlimit","4");else u=this.textPaths[m];if(!this.isMasked)if(this.textSpans[m])g=this.textSpans[m],S=g.children[0];else g=createTag("div"),g.style.lineHeight=0,S=createNS("svg"),S.appendChild(u),styleDiv(g)}else if(!this.isMasked)if(this.textSpans[m])g=this.textSpans[m],u=this.textPaths[m];else g=createTag("span"),styleDiv(g),u=createTag("span"),styleDiv(u),g.appendChild(u);else u=this.textPaths[m]?this.textPaths[m]:createNS("text");if(this.globalData.fontManager.chars){var U=this.globalData.fontManager.getCharData(o.finalText[n],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),b;if(U)b=U.data;else b=null;if(f.reset(),b&&b.shapes&&b.shapes.length)y=b.shapes[0].it,f.scale(o.finalSize/100,o.finalSize/100),z=this.createPathShape(f,y),u.setAttribute("d",z);if(!this.isMasked){if(this.innerElem.appendChild(g),b&&b.shapes){document.body.appendChild(S);var h=S.getBBox();S.setAttribute("width",h.width+2),S.setAttribute("height",h.height+2),S.setAttribute("viewBox",h.x-1+" "+(h.y-1)+" "+(h.width+2)+" "+(h.height+2));var p=S.style,k="translate("+(h.x-1)+"px,"+(h.y-1)+"px)";p.transform=k,p.webkitTransform=k,l[n].yOffset=h.y-1}else S.setAttribute("width",1),S.setAttribute("height",1);g.appendChild(S)}else this.innerElem.appendChild(u)}else if(u.textContent=l[n].val,u.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),!this.isMasked){this.innerElem.appendChild(g);var R=u.style,V="translate3d(0,"+-o.finalSize/1.2+"px,0)";R.transform=V,R.webkitTransform=V}else this.innerElem.appendChild(u);if(!this.isMasked)this.textSpans[m]=g;else this.textSpans[m]=u;this.textSpans[m].style.display="block",this.textPaths[m]=u,m+=1}while(m<this.textSpans.length)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var o;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),o=this.svgElement.style;var i="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";o.transform=i,o.webkitTransform=i}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)return;var a,t,r=0,e=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,l,u;for(a=0;a<t;a+=1)if(n[a].n)r+=1;else{if(l=this.textSpans[a],u=this.textPaths[a],s=e[r],r+=1,s._mdf.m)if(!this.isMasked)l.style.webkitTransform=s.m,l.style.transform=s.m;else l.setAttribute("transform",s.m);if(l.style.opacity=s.o,s.sw&&s._mdf.sw)u.setAttribute("stroke-width",s.sw);if(s.sc&&s._mdf.sc)u.setAttribute("stroke",s.sc);if(s.fc&&s._mdf.fc)u.setAttribute("fill",s.fc),u.style.color=s.fc}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var g=this.innerElem.getBBox();if(this.currentBBox.w!==g.width)this.currentBBox.w=g.width,this.svgElement.setAttribute("width",g.width);if(this.currentBBox.h!==g.height)this.currentBBox.h=g.height,this.svgElement.setAttribute("height",g.height);var S=1;if(this.currentBBox.w!==g.width+S*2||this.currentBBox.h!==g.height+S*2||this.currentBBox.x!==g.x-S||this.currentBBox.y!==g.y-S){this.currentBBox.w=g.width+S*2,this.currentBBox.h=g.height+S*2,this.currentBBox.x=g.x-S,this.currentBBox.y=g.y-S,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),o=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=f,o.webkitTransform=f}}};function HCameraElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initHierarchy();var t=PropertyFactory.getProp;if(this.pe=t(this,o.pe,0,0,this),o.ks.p.s)this.px=t(this,o.ks.p.x,1,0,this),this.py=t(this,o.ks.p.y,1,0,this),this.pz=t(this,o.ks.p.z,1,0,this);else this.p=t(this,o.ks.p,1,0,this);if(o.ks.a)this.a=t(this,o.ks.a,1,0,this);if(o.ks.or.k.length&&o.ks.or.k[0].to){var r,e=o.ks.or.k.length;for(r=0;r<e;r+=1)o.ks.or.k[r].to=null,o.ks.or.k[r].ti=null}this.or=t(this,o.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=t(this,o.ks.rx,0,degToRads,this),this.ry=t(this,o.ks.ry,0,degToRads,this),this.rz=t(this,o.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var o,i=this.comp.threeDElements.length,a,t,r;for(o=0;o<i;o+=1)if(a=this.comp.threeDElements[o],a.type==="3d"){t=a.perspectiveElem.style,r=a.container.style;var e=this.pe.v+"px",n="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";t.perspective=e,t.webkitPerspective=e,r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,t.transform=s,t.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var o=this._isFirstFrame,i,a;if(this.hierarchy){a=this.hierarchy.length;for(i=0;i<a;i+=1)o=this.hierarchy[i].finalTransform.mProp._mdf||o}if(o||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy){a=this.hierarchy.length-1;for(i=a;i>=0;i-=1){var t=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}}if(this.p)this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]);else this.mat.translate(-this.px.v,-this.py.v,this.pz.v);if(this.a){var r;if(this.p)r=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]];else r=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var e=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),n=[r[0]/e,r[1]/e,r[2]/e],s=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],s),u=Math.atan2(n[0],-n[2]);this.mat.rotateY(u).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){a=this.comp.threeDElements.length;var S,f,y;for(i=0;i<a;i+=1)if(S=this.comp.threeDElements[i],S.type==="3d"){if(g){var z=this.mat.toCSS();y=S.container.style,y.transform=z,y.webkitTransform=z}if(this.pe._mdf)f=S.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px"}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData),i=new Image;if(this.data.hasMask)this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h);else this.layerElement.appendChild(i);if(i.crossOrigin="anonymous",i.src=o,this.data.ln)this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=this.layers[i];if(!t.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(a,i);else{var r=0,e,n,s;while(r<i){if(this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement)n=this.elements[r],s=this.layers[r].ddd?this.getThreeDContainerByPos(r):n.getBaseElement(),e=s||e;r+=1}if(e){if(!t.ddd||!this.supports3d)this.layerElement.insertBefore(a,e)}else if(!t.ddd||!this.supports3d)this.layerElement.appendChild(a)}else this.addTo3dContainer(a,i)},HybridRendererBase.prototype.createShape=function(o){if(!this.supports3d)return new SVGShapeElement(o,this.globalData,this);return new HShapeElement(o,this.globalData,this)},HybridRendererBase.prototype.createText=function(o){if(!this.supports3d)return new SVGTextLottieElement(o,this.globalData,this);return new HTextElement(o,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(o){return this.camera=new HCameraElement(o,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(o){if(!this.supports3d)return new IImageElement(o,this.globalData,this);return new HImageElement(o,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(o){if(!this.supports3d)return new ISolidElement(o,this.globalData,this);return new HSolidElement(o,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(o){var i=0,a=this.threeDElements.length;while(i<a){if(this.threeDElements[i].startPos<=o&&this.threeDElements[i].endPos>=o)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(o,i){var a=createTag("div"),t,r;styleDiv(a);var e=createTag("div");if(styleDiv(e),i==="3d"){t=a.style,t.width=this.globalData.compSize.w+"px",t.height=this.globalData.compSize.h+"px";var n="50% 50%";t.webkitTransformOrigin=n,t.mozTransformOrigin=n,t.transformOrigin=n,r=e.style;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.transform=s,r.webkitTransform=s}a.appendChild(e);var l={container:e,perspectiveElem:a,startPos:o,endPos:o,type:i};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var o,i=this.layers.length,a,t="";for(o=0;o<i;o+=1)if(this.layers[o].ddd&&this.layers[o].ty!==3){if(t!=="3d")t="3d",a=this.createThreeDContainer(o,"3d");a.endPos=Math.max(a.endPos,o)}else{if(t!=="2d")t="2d",a=this.createThreeDContainer(o,"2d");a.endPos=Math.max(a.endPos,o)}i=this.threeDElements.length;for(o=i-1;o>=0;o-=1)this.resizerElem.appendChild(this.threeDElements[o].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(o,i){var a=0,t=this.threeDElements.length;while(a<t){if(i<=this.threeDElements[a].endPos){var r=this.threeDElements[a].startPos,e;while(r<i){if(this.elements[r]&&this.elements[r].getBaseElement)e=this.elements[r].getBaseElement();r+=1}if(e)this.threeDElements[a].container.insertBefore(o,e);else this.threeDElements[a].container.appendChild(o);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(o){var i=createTag("div"),a=this.animationItem.wrapper,t=i.style;if(t.width=o.w+"px",t.height=o.h+"px",this.resizerElem=i,styleDiv(i),t.transformStyle="flat",t.mozTransformStyle="flat",t.webkitTransformStyle="flat",this.renderConfig.className)i.setAttribute("class",this.renderConfig.className);a.appendChild(i),t.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var e=createNS("defs");r.appendChild(e),this.data=o,this.setupGlobalData(o,r),this.globalData.defs=e,this.layers=o.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.animationItem.container=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i,t=this.globalData.compSize.w/this.globalData.compSize.h,r,e,n,s;if(t>a)r=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,n=0,s=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2;else r=i/this.globalData.compSize.h,e=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,s=0;var l=this.resizerElem.style;l.webkitTransform="matrix3d("+r+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+s+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var o=this.globalData.compSize.w,i=this.globalData.compSize.h,a,t=this.threeDElements.length;for(a=0;a<t;a+=1){var r=this.threeDElements[a].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(o){var i,a=o.length,t=createTag("div");for(i=0;i<a;i+=1)if(o[i].xt){var r=this.createComp(o[i],t,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}};function HCompElement(o,i,a){this.layers=o.layers,this.supports3d=!o.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){if(this._createBaseContainerElements(),this.data.hasMask)this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement;else this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(o,i){var a=0,t;while(a<i){if(this.elements[a]&&this.elements[a].getBaseElement)t=this.elements[a].getBaseElement();a+=1}if(t)this.layerElement.insertBefore(o,t);else this.layerElement.appendChild(o)},HCompElement.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};function HybridRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"},runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};var CompExpressionInterface=function(){return function(o){function i(a){var t=0,r=o.layers.length;while(t<r){if(o.layers[t].nm===a||o.layers[t].ind===a)return o.elements[t].layerInterface;t+=1}return null}return Object.defineProperty(i,"_name",{value:o.data.nm}),i.layer=i,i.pixelAspect=1,i.height=o.data.h||o.globalData.compSize.h,i.width=o.data.w||o.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/o.globalData.frameRate,i.displayStartTime=0,i.numLayers=o.layers.length,i}}();function _typeof$2(o){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(o)}function seedRandom(o,i){var a=this,t=256,r=6,e=52,n="random",s=i.pow(t,r),l=i.pow(2,e),u=l*2,g=t-1,S;function f(p,k,R){var V=[];k=k===!0?{entropy:!0}:k||{};var C=U(m(k.entropy?[p,h(o)]:p===null?b():p,3),V),w=new y(V),Z=function I(){var F=w.g(r),J=s,L=0;while(F<l)F=(F+L)*t,J*=t,L=w.g(1);while(F>=u)F/=2,J/=2,L>>>=1;return(F+L)/J};return Z.int32=function(){return w.g(4)|0},Z.quick=function(){return w.g(4)/4294967296},Z.double=Z,U(h(w.S),o),(k.pass||R||function(I,F,J,L){if(L){if(L.S)z(L,w);I.state=function(){return z(w,{})}}if(J)return i[n]=I,F;else return I})(Z,C,"global"in k?k.global:this==i,k.state)}i["seed"+n]=f;function y(p){var k,R=p.length,V=this,C=0,w=V.i=V.j=0,Z=V.S=[];if(!R)p=[R++];while(C<t)Z[C]=C++;for(C=0;C<t;C++)Z[C]=Z[w=g&w+p[C%R]+(k=Z[C])],Z[w]=k;V.g=function(I){var F,J=0,L=V.i,P=V.j,W=V.S;while(I--)F=W[L=g&L+1],J=J*t+W[g&(W[L]=W[P=g&P+F])+(W[P]=F)];return V.i=L,V.j=P,J}}function z(p,k){return k.i=p.i,k.j=p.j,k.S=p.S.slice(),k}function m(p,k){var R=[],V=_typeof$2(p),C;if(k&&V=="object")for(C in p)try{R.push(m(p[C],k-1))}catch(w){}return R.length?R:V=="string"?p:p+"\x00"}function U(p,k){var R=p+"",V,C=0;while(C<R.length)k[g&C]=g&(V^=k[g&C]*19)+R.charCodeAt(C++);return h(k)}function b(){try{if(S)return h(S.randomBytes(t));var p=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(p),h(p)}catch(V){var k=a.navigator,R=k&&k.plugins;return[+new Date,a,R,a.screen,h(o)]}}function h(p){return String.fromCharCode.apply(0,p)}U(i.random(),o)}function initialize$2(o){seedRandom([],o)}var propTypes={SHAPE:"shape"};function _typeof$1(o){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(o)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(o){return o.constructor===Array||o.constructor===Float32Array}function isNumerable(o,i){return o==="number"||i instanceof Number||o==="boolean"||o==="string"}function $bm_neg(o){var i=_typeof$1(o);if(i==="number"||o instanceof Number||i==="boolean")return-o;if($bm_isInstanceOfArray(o)){var a,t=o.length,r=[];for(a=0;a<t;a+=1)r[a]=-o[a];return r}if(o.propType)return o.v;return-o}var easeInBez=BezierFactory.getBezierEasing(0.333,0,0.833,0.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(0.167,0.167,0.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(0.33,0,0.667,1,"easeInOut").get;function sum(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)||a==="string"||t==="string")return o+i;if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]+=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o+i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]+i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}var add=sum;function sub(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)){if(a==="string")o=parseInt(o,10);if(t==="string")i=parseInt(i,10);return o-i}if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]-=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o-i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]-i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}function mul(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o*i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]*i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o*i[e];return r}return 0}function div(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o/i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]/i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o/i[e];return r}return 0}function mod(o,i){if(typeof o==="string")o=parseInt(o,10);if(typeof i==="string")i=parseInt(i,10);return o%i}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(o,i,a){if(i>a){var t=a;a=i,i=t}return Math.min(Math.max(o,i),a)}function radiansToDegrees(o){return o/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(o){return o*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(o,i){if(typeof o==="number"||o instanceof Number)return i=i||0,Math.abs(o-i);if(!i)i=helperLengthArray;var a,t=Math.min(o.length,i.length),r=0;for(a=0;a<t;a+=1)r+=Math.pow(i[a]-o[a],2);return Math.sqrt(r)}function normalize(o){return div(o,length(o))}function rgbToHsl(o){var i=o[0],a=o[1],t=o[2],r=Math.max(i,a,t),e=Math.min(i,a,t),n,s,l=(r+e)/2;if(r===e)n=0,s=0;else{var u=r-e;switch(s=l>0.5?u/(2-r-e):u/(r+e),r){case i:n=(a-t)/u+(a<t?6:0);break;case a:n=(t-i)/u+2;break;case t:n=(i-a)/u+4;break;default:break}n/=6}return[n,s,l,o[3]]}function hue2rgb(o,i,a){if(a<0)a+=1;if(a>1)a-=1;if(a<0.16666666666666666)return o+(i-o)*6*a;if(a<0.5)return i;if(a<0.6666666666666666)return o+(i-o)*(0.6666666666666666-a)*6;return o}function hslToRgb(o){var i=o[0],a=o[1],t=o[2],r,e,n;if(a===0)r=t,n=t,e=t;else{var s=t<0.5?t*(1+a):t+a-t*a,l=2*t-s;r=hue2rgb(l,s,i+0.3333333333333333),e=hue2rgb(l,s,i),n=hue2rgb(l,s,i-0.3333333333333333)}return[r,e,n,o[3]]}function linear(o,i,a,t,r){if(t===void 0||r===void 0)t=i,r=a,i=0,a=1;if(a<i){var e=a;a=i,i=e}if(o<=i)return t;if(o>=a)return r;var n=a===i?0:(o-i)/(a-i);if(!t.length)return t+(r-t)*n;var s,l=t.length,u=createTypedArray("float32",l);for(s=0;s<l;s+=1)u[s]=t[s]+(r[s]-t[s])*n;return u}function random(o,i){if(i===void 0)if(o===void 0)o=0,i=1;else i=o,o=void 0;if(i.length){var a,t=i.length;if(!o)o=createTypedArray("float32",t);var r=createTypedArray("float32",t),e=BMMath.random();for(a=0;a<t;a+=1)r[a]=o[a]+e*(i[a]-o[a]);return r}if(o===void 0)o=0;var n=BMMath.random();return o+n*(i-o)}function createPath(o,i,a,t){var r,e=o.length,n=shapePool.newElement();n.setPathData(!!t,e);var s=[0,0],l,u;for(r=0;r<e;r+=1)l=i&&i[r]?i[r]:s,u=a&&a[r]?a[r]:s,n.setTripleAt(o[r][0],o[r][1],u[0]+o[r][0],u[1]+o[r][1],l[0]+o[r][0],l[1]+o[r][1],r,!0);return n}function initiateExpression(elem,data,property){function noOp(o){return o}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function o(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function o(i,a){var t,r,e=this.pv.length?this.pv.length:1,n=createTypedArray("float32",e);i=5;var s=Math.floor(time*i);t=0,r=0;while(t<s){for(r=0;r<e;r+=1)n[r]+=-a+a*2*BMMath.random();t+=1}var l=time*i,u=l-Math.floor(l),g=createTypedArray("float32",e);if(e>1){for(r=0;r<e;r+=1)g[r]=this.pv[r]+n[r]+(-a+a*2*BMMath.random())*u;return g}return this.pv+n[0]+(-a+a*2*BMMath.random())*u}.bind(this);if(thisProperty.loopIn)loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn;if(thisProperty.loopOut)loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut;if(thisProperty.smooth)smooth=thisProperty.smooth.bind(thisProperty);function loopInDuration(o,i){return loopIn(o,i,!0)}function loopOutDuration(o,i){return loopOut(o,i,!0)}if(this.getValueAtTime)valueAtTime=this.getValueAtTime.bind(this);if(this.getVelocityAtTime)velocityAtTime=this.getVelocityAtTime.bind(this);var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(o,i){var a=[i[0]-o[0],i[1]-o[1],i[2]-o[2]],t=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads,r=-Math.atan2(a[1],a[2])/degToRads;return[r,t,0]}function easeOut(o,i,a,t,r){return applyEase(easeOutBez,o,i,a,t,r)}function easeIn(o,i,a,t,r){return applyEase(easeInBez,o,i,a,t,r)}function ease(o,i,a,t,r){return applyEase(easeInOutBez,o,i,a,t,r)}function applyEase(o,i,a,t,r,e){if(r===void 0)r=a,e=t;else i=(i-a)/(t-a);if(i>1)i=1;else if(i<0)i=0;var n=o(i);if($bm_isInstanceOfArray(r)){var s,l=r.length,u=createTypedArray("float32",l);for(s=0;s<l;s+=1)u[s]=(e[s]-r[s])*n+r[s];return u}return(e-r)*n+r}function nearestKey(o){var i,a=data.k.length,t,r;if(!data.k.length||typeof data.k[0]==="number")t=0,r=0;else if(t=-1,o*=elem.comp.globalData.frameRate,o<data.k[0].t)t=1,r=data.k[0].t;else{for(i=0;i<a-1;i+=1)if(o===data.k[i].t){t=i+1,r=data.k[i].t;break}else if(o>data.k[i].t&&o<data.k[i+1].t){if(o-data.k[i].t>data.k[i+1].t-o)t=i+2,r=data.k[i+1].t;else t=i+1,r=data.k[i].t;break}if(t===-1)t=i+1,r=data.k[i].t}var e={};return e.index=t,e.time=r/elem.comp.globalData.frameRate,e}function key(o){var i,a,t;if(!data.k.length||typeof data.k[0]==="number")throw new Error("The property has no keyframe at index "+o);o-=1,i={time:data.k[o].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[o],"s")?data.k[o].s:data.k[o-1].e;t=r.length;for(a=0;a<t;a+=1)i[a]=r[a],i.value[a]=r[a];return i}function framesToTime(o,i){if(!i)i=elem.comp.globalData.frameRate;return o/i}function timeToFrames(o,i){if(!o&&o!==0)o=time;if(!i)i=elem.comp.globalData.frameRate;return o*i}function seedRandom(o){BMMath.seedrandom(randSeed+o)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(o,i){if(typeof value==="string"){if(i===void 0)return value.substring(o);return value.substring(o,i)}return""}function substr(o,i){if(typeof value==="string"){if(i===void 0)return value.substr(o);return value.substr(o,i)}return""}function posterizeTime(o){time=o===0?0:Math.floor(time*o)/o,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(o){if(value=o,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector")return value;if(this.propType==="textSelector")textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue;if(!thisLayer)text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp;if(!transform){if(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform)anchorPoint=transform.anchorPoint}if(elemType===4&&!content)content=thisLayer("ADBE Root Vectors Group");if(!effect)effect=thisLayer(4);if(hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent)parent=elem.hierarchy[0].layerInterface;if(time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom)seedRandom(randSeed+time);if(needsVelocity)velocity=velocityAtTime(time);return expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var o={};o.initExpressions=i,o.resetFrame=ExpressionManager.resetFrame;function i(a){var t=0,r=[];function e(){t+=1}function n(){if(t-=1,t===0)l()}function s(u){if(r.indexOf(u)===-1)r.push(u)}function l(){var u,g=r.length;for(u=0;u<g;u+=1)r[u].release();r.length=0}a.renderer.compInterface=CompExpressionInterface(a.renderer),a.renderer.globalData.projectInterface.registerComposition(a.renderer),a.renderer.globalData.pushExpression=e,a.renderer.globalData.popExpression=n,a.renderer.globalData.registerExpressionProperty=s}return o}(),MaskManagerInterface=function(){function o(a,t){this._mask=a,this._data=t}Object.defineProperty(o.prototype,"maskPath",{get:function a(){if(this._mask.prop.k)this._mask.prop.getValue();return this._mask.prop}}),Object.defineProperty(o.prototype,"maskOpacity",{get:function a(){if(this._mask.op.k)this._mask.op.getValue();return this._mask.op.v*100}});var i=function a(t){var r=createSizedArray(t.viewData.length),e,n=t.viewData.length;for(e=0;e<n;e+=1)r[e]=new o(t.viewData[e],t.masksProperties[e]);var s=function l(u){e=0;while(e<n){if(t.masksProperties[e].nm===u)return r[e];e+=1}return null};return s};return i}(),ExpressionPropertyInterface=function(){var o={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function a(n,s,l){Object.defineProperty(n,"velocity",{get:function u(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(u){if(!n.numKeys)return 0;var g="";if("s"in s.keyframes[u-1])g=s.keyframes[u-1].s;else if("e"in s.keyframes[u-2])g=s.keyframes[u-2].e;else g=s.keyframes[u-2].s;var S=l==="unidimensional"?new Number(g):Object.assign({},g);return S.time=s.keyframes[u-1].t/s.elem.comp.globalData.frameRate,S.value=l==="unidimensional"?g[0]:g,S},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function t(n){if(!n||!("pv"in n))n=o;var s=1/n.mult,l=n.pv*s,u=new Number(l);return u.value=l,a(u,n,"unidimensional"),function(){if(n.k)n.getValue();if(l=n.v*s,u.value!==l)u=new Number(l),u.value=l,u[0]=l,a(u,n,"unidimensional");return u}}function r(n){if(!n||!("pv"in n))n=i;var s=1/n.mult,l=n.data&&n.data.l||n.pv.length,u=createTypedArray("float32",l),g=createTypedArray("float32",l);return u.value=g,a(u,n,"multidimensional"),function(){if(n.k)n.getValue();for(var S=0;S<l;S+=1)g[S]=n.v[S]*s,u[S]=g[S];return u}}function e(){return o}return function(n){if(!n)return e;if(n.propType==="unidimensional")return t(n);return r(n)}}(),TransformExpressionInterface=function(){return function(o){function i(n){switch(n){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(o.r||o.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(o.rz||o.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(o.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(o.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(o.s)});var a,t,r,e;if(o.p)e=ExpressionPropertyInterface(o.p);else if(a=ExpressionPropertyInterface(o.px),t=ExpressionPropertyInterface(o.py),o.pz)r=ExpressionPropertyInterface(o.pz);return Object.defineProperty(i,"position",{get:function n(){if(o.p)return e();return[a(),t(),r?r():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(o.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(o.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(o.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(o.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(o.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(o.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(o.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(o.or)}),i}}(),LayerExpressionInterface=function(){function o(u){var g=new Matrix;if(u!==void 0){var S=this._elem.finalTransform.mProp.getValueAtTime(u);S.clone(g)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(g)}return g}function i(u,g){var S=this.getMatrix(g);return S.props[12]=0,S.props[13]=0,S.props[14]=0,this.applyPoint(S,u)}function a(u,g){var S=this.getMatrix(g);return this.applyPoint(S,u)}function t(u,g){var S=this.getMatrix(g);return S.props[12]=0,S.props[13]=0,S.props[14]=0,this.invertPoint(S,u)}function r(u,g){var S=this.getMatrix(g);return this.invertPoint(S,u)}function e(u,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var S,f=this._elem.hierarchy.length;for(S=0;S<f;S+=1)this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(u)}return u.applyToPointArray(g[0],g[1],g[2]||0)}function n(u,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var S,f=this._elem.hierarchy.length;for(S=0;S<f;S+=1)this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(u)}return u.inversePoint(g)}function s(u){var g=new Matrix;if(g.reset(),this._elem.finalTransform.mProp.applyToMatrix(g),this._elem.hierarchy&&this._elem.hierarchy.length){var S,f=this._elem.hierarchy.length;for(S=0;S<f;S+=1)this._elem.hierarchy[S].finalTransform.mProp.applyToMatrix(g);return g.inversePoint(u)}return g.inversePoint(u)}function l(){return[1,1,1,1]}return function(u){var g;function S(m){y.mask=new MaskManagerInterface(m,u)}function f(m){y.effect=m}function y(m){switch(m){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return g;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=o,y.invertPoint=n,y.applyPoint=e,y.toWorld=a,y.toWorldVec=i,y.fromWorld=r,y.fromWorldVec=t,y.toComp=a,y.fromComp=s,y.sampleImage=l,y.sourceRectAtTime=u.sourceRectAtTime.bind(u),y._elem=u,g=TransformExpressionInterface(u.finalTransform.mProp);var z=getDescriptor(g,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function m(){return u.hierarchy.length}},parent:{get:function m(){return u.hierarchy[0].layerInterface}},rotation:getDescriptor(g,"rotation"),scale:getDescriptor(g,"scale"),position:getDescriptor(g,"position"),opacity:getDescriptor(g,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function m(){return g}},active:{get:function m(){return u.isInRange}}}),y.startTime=u.data.st,y.index=u.data.ind,y.source=u.data.refId,y.height=u.data.ty===0?u.data.h:100,y.width=u.data.ty===0?u.data.w:100,y.inPoint=u.data.ip/u.comp.globalData.frameRate,y.outPoint=u.data.op/u.comp.globalData.frameRate,y._name=u.data.nm,y.registerMaskInterface=S,y.registerEffectsInterface=f,y}}(),propertyGroupFactory=function(){return function(o,i){return function(a){if(a=a===void 0?1:a,a<=0)return o;return i(a-1)}}}(),PropertyInterface=function(){return function(o,i){var a={_name:o};function t(r){if(r=r===void 0?1:r,r<=0)return a;return i(r-1)}return t}}(),EffectsExpressionInterface=function(){var o={createEffectsInterface:i};function i(r,e){if(r.effectsManager){var n=[],s=r.data.ef,l,u=r.effectsManager.effectElements.length;for(l=0;l<u;l+=1)n.push(a(s[l],r.effectsManager.effectElements[l],e,r));var g=r.data.ef||[],S=function f(y){l=0,u=g.length;while(l<u){if(y===g[l].nm||y===g[l].mn||y===g[l].ix)return n[l];l+=1}return null};return Object.defineProperty(S,"numProperties",{get:function f(){return g.length}}),S}return null}function a(r,e,n,s){function l(y){var z=r.ef,m=0,U=z.length;while(m<U){if(y===z[m].nm||y===z[m].mn||y===z[m].ix){if(z[m].ty===5)return g[m];return g[m]()}m+=1}throw new Error}var u=propertyGroupFactory(l,n),g=[],S,f=r.ef.length;for(S=0;S<f;S+=1)if(r.ef[S].ty===5)g.push(a(r.ef[S],e.effectElements[S],e.effectElements[S].propertyGroup,s));else g.push(t(e.effectElements[S],r.ef[S].ty,s,u));if(r.mn==="ADBE Color Control")Object.defineProperty(l,"color",{get:function y(){return g[0]()}});return Object.defineProperties(l,{numProperties:{get:function y(){return r.np}},_name:{value:r.nm},propertyGroup:{value:u}}),l.enabled=r.en!==0,l.active=l.enabled,l}function t(r,e,n,s){var l=ExpressionPropertyInterface(r.p);function u(){if(e===10)return n.comp.compInterface(r.p.v);return l()}if(r.p.setGroupProperty)r.p.setGroupProperty(PropertyInterface("",s));return u}return o}(),ShapePathInterface=function(){return function o(i,a,t){var r=a.sh;function e(s){if(s==="Shape"||s==="shape"||s==="Path"||s==="path"||s==="ADBE Vector Shape"||s===2)return e.path;return null}var n=propertyGroupFactory(e,t);return r.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(e,{path:{get:function s(){if(r.k)r.getValue();return r}},shape:{get:function s(){if(r.k)r.getValue();return r}},_name:{value:i.nm},ix:{value:i.ix},propertyIndex:{value:i.ix},mn:{value:i.mn},propertyGroup:{value:t}}),e}}(),ShapeExpressionInterface=function(){function o(z,m,U){var b=[],h,p=z?z.length:0;for(h=0;h<p;h+=1)if(z[h].ty==="gr")b.push(a(z[h],m[h],U));else if(z[h].ty==="fl")b.push(t(z[h],m[h],U));else if(z[h].ty==="st")b.push(n(z[h],m[h],U));else if(z[h].ty==="tm")b.push(s(z[h],m[h],U));else if(z[h].ty==="tr");else if(z[h].ty==="el")b.push(u(z[h],m[h],U));else if(z[h].ty==="sr")b.push(g(z[h],m[h],U));else if(z[h].ty==="sh")b.push(ShapePathInterface(z[h],m[h],U));else if(z[h].ty==="rc")b.push(S(z[h],m[h],U));else if(z[h].ty==="rd")b.push(f(z[h],m[h],U));else if(z[h].ty==="rp")b.push(y(z[h],m[h],U));else if(z[h].ty==="gf")b.push(r(z[h],m[h],U));else b.push(e(z[h],m[h],U));return b}function i(z,m,U){var b,h=function k(R){var V=0,C=b.length;while(V<C){if(b[V]._name===R||b[V].mn===R||b[V].propertyIndex===R||b[V].ix===R||b[V].ind===R)return b[V];V+=1}if(typeof R==="number")return b[R-1];return null};h.propertyGroup=propertyGroupFactory(h,U),b=o(z.it,m.it,h.propertyGroup),h.numProperties=b.length;var p=l(z.it[z.it.length-1],m.it[m.it.length-1],h.propertyGroup);return h.transform=p,h.propertyIndex=z.cix,h._name=z.nm,h}function a(z,m,U){var b=function k(R){switch(R){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,U);var h=i(z,m,b.propertyGroup),p=l(z.it[z.it.length-1],m.it[m.it.length-1],b.propertyGroup);return b.content=h,b.transform=p,Object.defineProperty(b,"_name",{get:function k(){return z.nm}}),b.numProperties=z.np,b.propertyIndex=z.ix,b.nm=z.nm,b.mn=z.mn,b}function t(z,m,U){function b(h){if(h==="Color"||h==="color")return b.color;if(h==="Opacity"||h==="opacity")return b.opacity;return null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:z.nm},mn:{value:z.mn}}),m.c.setGroupProperty(PropertyInterface("Color",U)),m.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function r(z,m,U){function b(h){if(h==="Start Point"||h==="start point")return b.startPoint;if(h==="End Point"||h==="end point")return b.endPoint;if(h==="Opacity"||h==="opacity")return b.opacity;return null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function h(){return"a"}},_name:{value:z.nm},mn:{value:z.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",U)),m.e.setGroupProperty(PropertyInterface("End Point",U)),m.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function e(){function z(){return null}return z}function n(z,m,U){var b=propertyGroupFactory(C,U),h=propertyGroupFactory(V,b);function p(w){Object.defineProperty(V,z.d[w].nm,{get:ExpressionPropertyInterface(m.d.dataProps[w].p)})}var k,R=z.d?z.d.length:0,V={};for(k=0;k<R;k+=1)p(k),m.d.dataProps[k].p.setGroupProperty(h);function C(w){if(w==="Color"||w==="color")return C.color;if(w==="Opacity"||w==="opacity")return C.opacity;if(w==="Stroke Width"||w==="stroke width")return C.strokeWidth;return null}return Object.defineProperties(C,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function w(){return V}},_name:{value:z.nm},mn:{value:z.mn}}),m.c.setGroupProperty(PropertyInterface("Color",b)),m.o.setGroupProperty(PropertyInterface("Opacity",b)),m.w.setGroupProperty(PropertyInterface("Stroke Width",b)),C}function s(z,m,U){function b(p){if(p===z.e.ix||p==="End"||p==="end")return b.end;if(p===z.s.ix)return b.start;if(p===z.o.ix)return b.offset;return null}var h=propertyGroupFactory(b,U);return b.propertyIndex=z.ix,m.s.setGroupProperty(PropertyInterface("Start",h)),m.e.setGroupProperty(PropertyInterface("End",h)),m.o.setGroupProperty(PropertyInterface("Offset",h)),b.propertyIndex=z.ix,b.propertyGroup=U,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:z.nm}}),b.mn=z.mn,b}function l(z,m,U){function b(p){if(z.a.ix===p||p==="Anchor Point")return b.anchorPoint;if(z.o.ix===p||p==="Opacity")return b.opacity;if(z.p.ix===p||p==="Position")return b.position;if(z.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation")return b.rotation;if(z.s.ix===p||p==="Scale")return b.scale;if(z.sk&&z.sk.ix===p||p==="Skew")return b.skew;if(z.sa&&z.sa.ix===p||p==="Skew Axis")return b.skewAxis;return null}var h=propertyGroupFactory(b,U);if(m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",h)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",h)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",h)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",h)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",h)),m.transform.mProps.sk)m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",h)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",h));return m.transform.op.setGroupProperty(PropertyInterface("Opacity",h)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:z.nm}}),b.ty="tr",b.mn=z.mn,b.propertyGroup=U,b}function u(z,m,U){function b(k){if(z.p.ix===k)return b.position;if(z.s.ix===k)return b.size;return null}var h=propertyGroupFactory(b,U);b.propertyIndex=z.ix;var p=m.sh.ty==="tm"?m.sh.prop:m.sh;return p.s.setGroupProperty(PropertyInterface("Size",h)),p.p.setGroupProperty(PropertyInterface("Position",h)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:z.nm}}),b.mn=z.mn,b}function g(z,m,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.rotation;if(z.pt.ix===k)return b.points;if(z.or.ix===k||k==="ADBE Vector Star Outer Radius")return b.outerRadius;if(z.os.ix===k)return b.outerRoundness;if(z.ir&&(z.ir.ix===k||k==="ADBE Vector Star Inner Radius"))return b.innerRadius;if(z.is&&z.is.ix===k)return b.innerRoundness;return null}var h=propertyGroupFactory(b,U),p=m.sh.ty==="tm"?m.sh.prop:m.sh;if(b.propertyIndex=z.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",h)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",h)),p.pt.setGroupProperty(PropertyInterface("Points",h)),p.p.setGroupProperty(PropertyInterface("Position",h)),p.r.setGroupProperty(PropertyInterface("Rotation",h)),z.ir)p.ir.setGroupProperty(PropertyInterface("Inner Radius",h)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",h));return Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:z.nm}}),b.mn=z.mn,b}function S(z,m,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.roundness;if(z.s.ix===k||k==="Size"||k==="ADBE Vector Rect Size")return b.size;return null}var h=propertyGroupFactory(b,U),p=m.sh.ty==="tm"?m.sh.prop:m.sh;return b.propertyIndex=z.ix,p.p.setGroupProperty(PropertyInterface("Position",h)),p.s.setGroupProperty(PropertyInterface("Size",h)),p.r.setGroupProperty(PropertyInterface("Rotation",h)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:z.nm}}),b.mn=z.mn,b}function f(z,m,U){function b(k){if(z.r.ix===k||k==="Round Corners 1")return b.radius;return null}var h=propertyGroupFactory(b,U),p=m;return b.propertyIndex=z.ix,p.rd.setGroupProperty(PropertyInterface("Radius",h)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:z.nm}}),b.mn=z.mn,b}function y(z,m,U){function b(k){if(z.c.ix===k||k==="Copies")return b.copies;if(z.o.ix===k||k==="Offset")return b.offset;return null}var h=propertyGroupFactory(b,U),p=m;return b.propertyIndex=z.ix,p.c.setGroupProperty(PropertyInterface("Copies",h)),p.o.setGroupProperty(PropertyInterface("Offset",h)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:z.nm}}),b.mn=z.mn,b}return function(z,m,U){var b;function h(k){if(typeof k==="number"){if(k=k===void 0?1:k,k===0)return U;return b[k-1]}var R=0,V=b.length;while(R<V){if(b[R]._name===k)return b[R];R+=1}return null}function p(){return U}return h.propertyGroup=propertyGroupFactory(h,p),b=o(z,m,h.propertyGroup),h.numProperties=b.length,h._name="Contents",h}}(),TextExpressionInterface=function(){return function(o){var i;function a(t){switch(t){case"ADBE Text Document":return a.sourceText;default:return null}}return Object.defineProperty(a,"sourceText",{get:function t(){o.textProperty.getValue();var r=o.textProperty.currentData.t;if(!i||r!==i.value)i=new String(r),i.value=r||new String(r),Object.defineProperty(i,"style",{get:function e(){return{fillColor:o.textProperty.currentData.fc}}});return i}}),a}}();function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(o)}var FootageInterface=function(){var o=function a(t){var r="",e=t.getFootageData();function n(){return r="",e=t.getFootageData(),s}function s(l){if(e[l]){if(r=l,e=e[l],_typeof(e)==="object")return s;return e}var u=l.indexOf(r);if(u!==-1){var g=parseInt(l.substr(u+r.length),10);if(e=e[g],_typeof(e)==="object")return s;return e}return""}return n},i=function a(t){function r(e){if(e==="Outline")return r.outlineInterface();return null}return r._name="Outline",r.outlineInterface=o(t),r};return function(a){function t(r){if(r==="Data")return t.dataInterface;return null}return t._name="Data",t.dataInterface=i(a),t}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(o){return interfaces[o]||null}var expressionHelpers=function(){function o(n,s,l){if(s.x)l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(n,s,l).bind(l))}function i(n){if(n*=this.elem.globalData.frameRate,n-=this.offsetTime,n!==this._cachingAtTime.lastFrame)this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<n?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(n,this._cachingAtTime),this._cachingAtTime.lastFrame=n;return this._cachingAtTime.value}function a(n){var s=-0.01,l=this.getValueAtTime(n),u=this.getValueAtTime(n+s),g=0;if(l.length){var S;for(S=0;S<l.length;S+=1)g+=Math.pow(u[S]-l[S],2);g=Math.sqrt(g)*100}else g=0;return g}function t(n){if(this.vel!==void 0)return this.vel;var s=-0.001,l=this.getValueAtTime(n),u=this.getValueAtTime(n+s),g;if(l.length){g=createTypedArray("float32",l.length);var S;for(S=0;S<l.length;S+=1)g[S]=(u[S]-l[S])/s}else g=(u-l)/s;return g}function r(){return this.pv}function e(n){this.propertyGroup=n}return{searchExpressions:o,getSpeedAtTime:a,getVelocityAtTime:t,getValueAtTime:i,getStaticValueAtTime:r,setGroupProperty:e}}();function addPropertyDecorator(){function o(f,y,z){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var m=this.comp.renderedFrame,U=this.keyframes,b=U[U.length-1].t;if(m<=b)return this.pv;var h,p;if(!z){if(!y||y>U.length-1)y=U.length-1;p=U[U.length-1-y].t,h=b-p}else{if(!y)h=Math.max(0,b-this.elem.data.ip);else h=Math.abs(b-this.elem.comp.globalData.frameRate*y);p=b-h}var k,R,V;if(f==="pingpong"){var C=Math.floor((m-p)/h);if(C%2!==0)return this.getValueAtTime((h-(m-p)%h+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(p/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(b/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((m-p)%h+p)/this.comp.globalData.frameRate,0),F=Math.floor((m-p)/h);if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=(Z[k]-w[k])*F+I[k];return V}return(Z-w)*F+I}else if(f==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),L=this.getValueAtTime((b-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-L[k])*((m-b)/this.comp.globalData.frameRate)/0.0005;return V}return J+(J-L)*((m-b)/0.001)}return this.getValueAtTime(((m-p)%h+p)/this.comp.globalData.frameRate,0)}function i(f,y,z){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var m=this.comp.renderedFrame,U=this.keyframes,b=U[0].t;if(m>=b)return this.pv;var h,p;if(!z){if(!y||y>U.length-1)y=U.length-1;p=U[y].t,h=p-b}else{if(!y)h=Math.max(0,this.elem.data.op-b);else h=Math.abs(this.elem.comp.globalData.frameRate*y);p=b+h}var k,R,V;if(f==="pingpong"){var C=Math.floor((b-m)/h);if(C%2===0)return this.getValueAtTime(((b-m)%h+b)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(b/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(p/this.comp.globalData.frameRate,0),I=this.getValueAtTime((h-(b-m)%h+b)/this.comp.globalData.frameRate,0),F=Math.floor((b-m)/h)+1;if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=I[k]-(Z[k]-w[k])*F;return V}return I-(Z-w)*F}else if(f==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),L=this.getValueAtTime((b+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-L[k])*(b-m)/0.001;return V}return J+(J-L)*(b-m)/0.001}return this.getValueAtTime((h-((b-m)%h+b))/this.comp.globalData.frameRate,0)}function a(f,y){if(!this.k)return this.pv;if(f=(f||0.4)*0.5,y=Math.floor(y||5),y<=1)return this.pv;var z=this.comp.renderedFrame/this.comp.globalData.frameRate,m=z-f,U=z+f,b=y>1?(U-m)/(y-1):1,h=0,p=0,k;if(this.pv.length)k=createTypedArray("float32",this.pv.length);else k=0;var R;while(h<y){if(R=this.getValueAtTime(m+h*b),this.pv.length)for(p=0;p<this.pv.length;p+=1)k[p]+=R[p];else k+=R;h+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)k[p]/=y;else k/=y;return k}function t(f){if(!this._transformCachingAtTime)this._transformCachingAtTime={v:new Matrix};var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var z=this.a.getValueAtTime(f);y.translate(-z[0]*this.a.mult,-z[1]*this.a.mult,z[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(f);y.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var U=this.sk.getValueAtTime(f),b=this.sa.getValueAtTime(f);y.skewFromAxis(-U*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var h=this.r.getValueAtTime(f);y.rotate(-h*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(f),k=this.ry.getValueAtTime(f),R=this.rx.getValueAtTime(f),V=this.or.getValueAtTime(f);y.rotateZ(-p*this.rz.mult).rotateY(k*this.ry.mult).rotateX(R*this.rx.mult).rotateZ(-V[2]*this.or.mult).rotateY(V[1]*this.or.mult).rotateX(V[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var C=this.px.getValueAtTime(f),w=this.py.getValueAtTime(f);if(this.data.p.z){var Z=this.pz.getValueAtTime(f);y.translate(C*this.px.mult,w*this.py.mult,-Z*this.pz.mult)}else y.translate(C*this.px.mult,w*this.py.mult,0)}else{var I=this.p.getValueAtTime(f);y.translate(I[0]*this.p.mult,I[1]*this.p.mult,-I[2]*this.p.mult)}return y}function r(){return this.v.clone(new Matrix)}var e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,z){var m=e(f,y,z);if(m.dynamicProperties.length)m.getValueAtTime=t.bind(m);else m.getValueAtTime=r.bind(m);return m.setGroupProperty=expressionHelpers.setGroupProperty,m};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,z,m,U){var b=n(f,y,z,m,U);if(b.kf)b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b);else b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b);b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=o,b.loopIn=i,b.smooth=a,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=y.a===1?y.k.length:0,b.propertyIndex=y.ix;var h=0;if(z!==0)h=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length);if(b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:h},expressionHelpers.searchExpressions(f,y,b),b.k)U.addDynamicProperty(b);return b};function s(f){if(!this._cachingAtTime)this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame};if(f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime)this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime);return this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),u=ShapePropertyFactory.getKeyframedConstructorFunction();function g(){}g.prototype={vertices:function f(y,z){if(this.k)this.getValue();var m=this.v;if(z!==void 0)m=this.getValueAtTime(z,0);var U,b=m._length,h=m[y],p=m.v,k=createSizedArray(b);for(U=0;U<b;U+=1)if(y==="i"||y==="o")k[U]=[h[U][0]-p[U][0],h[U][1]-p[U][1]];else k[U]=[h[U][0],h[U][1]];return k},points:function f(y){return this.vertices("v",y)},inTangents:function f(y){return this.vertices("i",y)},outTangents:function f(y){return this.vertices("o",y)},isClosed:function f(){return this.v.c},pointOnPath:function f(y,z){var m=this.v;if(z!==void 0)m=this.getValueAtTime(z,0);if(!this._segmentsLength)this._segmentsLength=bez.getSegmentsLength(m);var U=this._segmentsLength,b=U.lengths,h=U.totalLength*y,p=0,k=b.length,R=0,V;while(p<k){if(R+b[p].addedLength>h){var C=p,w=m.c&&p===k-1?0:p+1,Z=(h-R)/b[p].addedLength;V=bez.getPointInSegment(m.v[C],m.v[w],m.o[C],m.i[w],Z,b[p]);break}else R+=b[p].addedLength;p+=1}if(!V)V=m.c?[m.v[0][0],m.v[0][1]]:[m.v[m._length-1][0],m.v[m._length-1][1]];return V},vectorOnPath:function f(y,z,m){if(y==1)y=this.v.c;else if(y==0)y=0.999;var U=this.pointOnPath(y,z),b=this.pointOnPath(y+0.001,z),h=b[0]-U[0],p=b[1]-U[1],k=Math.sqrt(Math.pow(h,2)+Math.pow(p,2));if(k===0)return[0,0];var R=m==="tangent"?[h/k,p/k]:[-p/k,h/k];return R},tangentOnPath:function f(y,z){return this.vectorOnPath(y,z,"tangent")},normalOnPath:function f(y,z){return this.vectorOnPath(y,z,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],l),extendPrototype([g],u),u.prototype.getValueAtTime=s,u.prototype.initiateExpression=ExpressionManager.initiateExpression;var S=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,z,m,U){var b=S(f,y,z,m,U);if(b.propertyIndex=y.ix,b.lock=!1,z===3)expressionHelpers.searchExpressions(f,y.pt,b);else if(z===4)expressionHelpers.searchExpressions(f,y.ks,b);if(b.k)f.addDynamicProperty(b);return b}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function o(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0;return null}TextProperty.prototype.getExpressionValue=function(i,a){var t=this.calculateExpression(a);if(i.t!==t){var r={};return this.copyData(r,i),r.t=t.toString(),r.__complete=!1,r}return i},TextProperty.prototype.searchProperty=function(){var i=this.searchKeyframes(),a=this.searchExpressions();return this.kf=i||a,this.kf},TextProperty.prototype.searchExpressions=o}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function o(i,a){var t=createNS("feMerge");t.setAttribute("result",i);var r,e;for(e=0;e<a.length;e+=1)r=createNS("feMergeNode"),r.setAttribute("in",a[e]),t.appendChild(r),t.appendChild(r);return t}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(o,i,a,t,r){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=e,e.setAttribute("result",t+"_tint_1"),o.appendChild(e),e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",t+"_tint_2"),o.appendChild(e),this.matrixFilter=e;var n=this.createMergeNode(t,[r,t+"_tint_1",t+"_tint_2"]);o.appendChild(n)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+t+" 0"),this.matrixFilter.setAttribute("values",a[0]-i[0]+" 0 0 0 "+i[0]+" "+(a[1]-i[1])+" 0 0 0 "+i[1]+" "+(a[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 1 0")}};function SVGFillFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",t),o.appendChild(r),this.matrixFilter=r}SVGFillFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v,a=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+a+" 0")}};function SVGStrokeEffect(o,i,a){this.initialized=!1,this.filterManager=i,this.elem=a,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var o=this.elem.layerElement.children||this.elem.layerElement.childNodes,i,a,t,r;if(this.filterManager.effectElements[1].p.v===1)r=this.elem.maskManager.masksProperties.length,t=0;else t=this.filterManager.effectElements[0].p.v-1,r=t+1;a=createNS("g"),a.setAttribute("fill","none"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-dashoffset",1);for(t;t<r;t+=1)i=createNS("path"),a.appendChild(i),this.paths.push({p:i,m:t});if(this.filterManager.effectElements[10].p.v===3){var e=createNS("mask"),n=createElementID();e.setAttribute("id",n),e.setAttribute("mask-type","alpha"),e.appendChild(a),this.elem.globalData.defs.appendChild(e);var s=createNS("g");s.setAttribute("mask","url("+getLocationHref()+"#"+n+")");while(o[0])s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=e,a.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){o=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(o.length)this.elem.layerElement.removeChild(o[0])}this.elem.layerElement.appendChild(a),this.elem.layerElement.removeAttribute("mask"),a.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=a},SVGStrokeEffect.prototype.renderFrame=function(o){if(!this.initialized)this.initialize();var i,a=this.paths.length,t,r;for(i=0;i<a;i+=1)if(this.paths[i].m!==-1){if(t=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,o||this.filterManager._mdf||t.prop._mdf)r.setAttribute("d",t.lastPath);if(o||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||t.prop._mdf){var e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,l=r.getTotalLength();e="0 0 0 "+l*n+" ";var u=l*(s-n),g=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01,S=Math.floor(u/g),f;for(f=0;f<S;f+=1)e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01+" ";e+="0 "+l*10+" 0 0"}else e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01;r.setAttribute("stroke-dasharray",e)}}if(o||this.filterManager.effectElements[4].p._mdf)this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2);if(o||this.filterManager.effectElements[6].p._mdf)this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v);if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(o||this.filterManager.effectElements[3].p._mdf){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}}};function SVGTritoneFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.appendChild(r);var e=createNS("feComponentTransfer");e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),this.matrixFilter=e;var n=createNS("feFuncR");n.setAttribute("type","table"),e.appendChild(n),this.feFuncR=n;var s=createNS("feFuncG");s.setAttribute("type","table"),e.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),e.appendChild(l),this.feFuncB=l,o.appendChild(e)}SVGTritoneFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v,r=t[0]+" "+a[0]+" "+i[0],e=t[1]+" "+a[1]+" "+i[1],n=t[2]+" "+a[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",e),this.feFuncB.setAttribute("tableValues",n)}};function SVGProLevelsFilter(o,i,a,t){this.filterManager=i;var r=this.filterManager.effectElements,e=createNS("feComponentTransfer");if(r[10].p.k||r[10].p.v!==0||r[11].p.k||r[11].p.v!==1||r[12].p.k||r[12].p.v!==1||r[13].p.k||r[13].p.v!==0||r[14].p.k||r[14].p.v!==1)this.feFuncR=this.createFeFunc("feFuncR",e);if(r[17].p.k||r[17].p.v!==0||r[18].p.k||r[18].p.v!==1||r[19].p.k||r[19].p.v!==1||r[20].p.k||r[20].p.v!==0||r[21].p.k||r[21].p.v!==1)this.feFuncG=this.createFeFunc("feFuncG",e);if(r[24].p.k||r[24].p.v!==0||r[25].p.k||r[25].p.v!==1||r[26].p.k||r[26].p.v!==1||r[27].p.k||r[27].p.v!==0||r[28].p.k||r[28].p.v!==1)this.feFuncB=this.createFeFunc("feFuncB",e);if(r[31].p.k||r[31].p.v!==0||r[32].p.k||r[32].p.v!==1||r[33].p.k||r[33].p.v!==1||r[34].p.k||r[34].p.v!==0||r[35].p.k||r[35].p.v!==1)this.feFuncA=this.createFeFunc("feFuncA",e);if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)e.setAttribute("color-interpolation-filters","sRGB"),o.appendChild(e);if(r[3].p.k||r[3].p.v!==0||r[4].p.k||r[4].p.v!==1||r[5].p.k||r[5].p.v!==1||r[6].p.k||r[6].p.v!==0||r[7].p.k||r[7].p.v!==1)e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),o.appendChild(e),this.feFuncRComposed=this.createFeFunc("feFuncR",e),this.feFuncGComposed=this.createFeFunc("feFuncG",e),this.feFuncBComposed=this.createFeFunc("feFuncB",e)}SVGProLevelsFilter.prototype.createFeFunc=function(o,i){var a=createNS(o);return a.setAttribute("type","table"),i.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(o,i,a,t,r){var e=0,n=256,s,l=Math.min(o,i),u=Math.max(o,i),g=Array.call(null,{length:n}),S,f=0,y=r-t,z=i-o;while(e<=256){if(s=e/256,s<=l)S=z<0?r:t;else if(s>=u)S=z<0?t:r;else S=t+y*Math.pow((s-o)/z,1/a);g[f]=S,f+=1,e+=256/(n-1)}return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i,a=this.filterManager.effectElements;if(this.feFuncRComposed&&(o||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf))i=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i);if(this.feFuncR&&(o||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf))i=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",i);if(this.feFuncG&&(o||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf))i=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",i);if(this.feFuncB&&(o||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf))i=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",i);if(this.feFuncA&&(o||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf))i=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",i)}};function SVGDropShadowEffect(o,i,a,t,r){var e=i.container.globalData.renderConfig.filterSize,n=i.data.fs||e;o.setAttribute("x",n.x||e.x),o.setAttribute("y",n.y||e.y),o.setAttribute("width",n.width||e.width),o.setAttribute("height",n.height||e.height),this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",t+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,o.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",t+"_drop_shadow_1"),l.setAttribute("result",t+"_drop_shadow_2"),this.feOffset=l,o.appendChild(l);var u=createNS("feFlood");u.setAttribute("flood-color","#00ff00"),u.setAttribute("flood-opacity","1"),u.setAttribute("result",t+"_drop_shadow_3"),this.feFlood=u,o.appendChild(u);var g=createNS("feComposite");g.setAttribute("in",t+"_drop_shadow_3"),g.setAttribute("in2",t+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(g);var S=this.createMergeNode(t,[t+"_drop_shadow_4",r]);o.appendChild(S)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){if(o||this.filterManager.effectElements[4].p._mdf)this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4);if(o||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(i[0]*255),Math.round(i[1]*255),Math.round(i[2]*255)))}if(o||this.filterManager.effectElements[1].p._mdf)this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255);if(o||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=a*Math.cos(t),e=a*Math.sin(t);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(o,i,a){this.initialized=!1,this.filterManager=i,this.filterElem=o,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}SVGMatte3Effect.prototype.findSymbol=function(o){var i=0,a=_svgMatteSymbols.length;while(i<a){if(_svgMatteSymbols[i]===o)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(o,i){var a=o.layerElement.parentNode;if(!a)return;var t=a.children,r=0,e=t.length;while(r<e){if(t[r]===o.layerElement)break;r+=1}var n;if(r<=e-2)n=t[r+1];var s=createNS("use");if(s.setAttribute("href","#"+i),n)a.insertBefore(s,n);else a.appendChild(s)},SVGMatte3Effect.prototype.setElementAsMask=function(o,i){if(!this.findSymbol(i)){var a=createElementID(),t=createNS("mask");t.setAttribute("id",i.layerId),t.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var r=o.globalData.defs;r.appendChild(t);var e=createNS("symbol");e.setAttribute("id",a),this.replaceInParent(i,a),e.appendChild(i.layerElement),r.appendChild(e);var n=createNS("use");n.setAttribute("href","#"+a),t.appendChild(n),i.data.hd=!1,i.show()}o.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){var o=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,a=0,t=i.length;while(a<t){if(i[a]&&i[a].data.ind===o)this.setElementAsMask(this.elem,i[a]);a+=1}this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized)this.initialize()};function SVGGaussianBlurEffect(o,i,a,t){o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width","300%"),o.setAttribute("height","300%"),this.filterManager=i;var r=createNS("feGaussianBlur");r.setAttribute("result",t),o.appendChild(r),this.feGaussianBlur=r}SVGGaussianBlurEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=0.3,a=this.filterManager.effectElements[0].p.v*i,t=this.filterManager.effectElements[1].p.v,r=t==3?0:a,e=t==2?0:a;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+e);var n=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}};function TransformEffect(){}TransformEffect.prototype.init=function(o){this.effectsManager=o,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(o){if(this._opMdf=!1,this._mdf=!1,o||this.effectsManager._mdf){var i=this.effectsManager.effectElements,a=i[0].p.v,t=i[1].p.v,r=i[2].p.v===1,e=i[3].p.v,n=r?e:i[4].p.v,s=i[5].p.v,l=i[6].p.v,u=i[7].p.v;if(this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(n*0.01,e*0.01,1),this.matrix.rotate(-u*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(t[0],t[1],0),this._mdf=!0,this.opacity!==i[8].p.v)this.opacity=i[8].p.v,this._opMdf=!0}};function SVGTransformEffect(o,i){this.init(i)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(o){this.init(o)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});class vi extends Event{constructor(o,i,a,t){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i,this.callback=a,this.subscribe=t??!1}}function ei(o){return o}class wo{constructor(o,i,a,t){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,e)),this.unsubscribe=e},this.host=o,i.context!==void 0){let r=i;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=i,this.callback=a,this.subscribe=t??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new vi(this.context,this.host,this.t,this.subscribe))}}class Aa{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,i=!1){let a=i||!Object.is(o,this.o);this.o=o,a&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:a}]of this.subscriptions)i(this.o,a)},o!==void 0&&(this.value=o)}addCallback(o,i,a){if(!a)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:i});let{disposer:t}=this.subscriptions.get(o);o(this.value,t)}clearCallbacks(){this.subscriptions.clear()}}class Wr extends Event{constructor(o,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i}}class ki extends Aa{constructor(o,i,a){super(i.context!==void 0?i.initialValue:a),this.onContextRequest=(t)=>{if(t.context!==this.context)return;let r=t.contextTarget??t.composedPath()[0];r!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,r,t.subscribe))},this.onProviderRequest=(t)=>{if(t.context!==this.context)return;if((t.contextTarget??t.composedPath()[0])===this.host)return;let r=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)r.has(e)||(r.add(e),n.dispatchEvent(new vi(this.context,n,e,!0)));t.stopPropagation()},this.host=o,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Wr(this.context,this.host))}}function ao({context:o,subscribe:i}){return(a,t)=>{typeof t=="object"?t.addInitializer(function(){new wo(this,{context:o,callback:(r)=>{a.set.call(this,r)},subscribe:i})}):a.constructor.addInitializer((r)=>{new wo(r,{context:o,callback:(e)=>{r[t]=e},subscribe:i})})}}var Gn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,ja=Math.ceil,Po=Math.floor,Yo="[BigNumber Error] ",Vr=Yo+"Number primitive has more than 15 significant digits: ",Bo=100000000000000,no=14,_a=9007199254740991,Oa=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],hi=1e7,Zo=1e9;function Ir(o){var i,a,t,r=h.prototype={constructor:h,toString:null,valueOf:null},e=new h(1),n=20,s=4,l=-7,u=21,g=-1e7,S=1e7,f=!1,y=1,z=0,m={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function h(w,Z){var I,F,J,L,P,W,x,K,c=this;if(!(c instanceof h))return new h(w,Z);if(Z==null){if(w&&w._isBigNumber===!0){if(c.s=w.s,!w.c||w.e>S)c.c=c.e=null;else if(w.e<g)c.c=[c.e=0];else c.e=w.e,c.c=w.c.slice();return}if((W=typeof w=="number")&&w*0==0){if(c.s=1/w<0?(w=-w,-1):1,w===~~w){for(L=0,P=w;P>=10;P/=10,L++);if(L>S)c.c=c.e=null;else c.e=L,c.c=[w];return}K=String(w)}else{if(!Gn.test(K=String(w)))return t(c,K,W);c.s=K.charCodeAt(0)==45?(K=K.slice(1),-1):1}if((L=K.indexOf("."))>-1)K=K.replace(".","");if((P=K.search(/e/i))>0){if(L<0)L=P;L+=+K.slice(P+1),K=K.substring(0,P)}else if(L<0)L=K.length}else{if(ko(Z,2,U.length,"Base"),Z==10&&b)return c=new h(w),V(c,n+c.e+1,s);if(K=String(w),W=typeof w=="number"){if(w*0!=0)return t(c,K,W,Z);if(c.s=1/w<0?(K=K.slice(1),-1):1,h.DEBUG&&K.replace(/^0\.0*|\./,"").length>15)throw Error(Vr+w)}else c.s=K.charCodeAt(0)===45?(K=K.slice(1),-1):1;I=U.slice(0,Z),L=P=0;for(x=K.length;P<x;P++)if(I.indexOf(F=K.charAt(P))<0){if(F=="."){if(P>L){L=x;continue}}else if(!J){if(K==K.toUpperCase()&&(K=K.toLowerCase())||K==K.toLowerCase()&&(K=K.toUpperCase())){J=!0,P=-1,L=0;continue}}return t(c,String(w),W,Z)}if(W=!1,K=a(K,Z,10,c.s),(L=K.indexOf("."))>-1)K=K.replace(".","");else L=K.length}for(P=0;K.charCodeAt(P)===48;P++);for(x=K.length;K.charCodeAt(--x)===48;);if(K=K.slice(P,++x)){if(x-=P,W&&h.DEBUG&&x>15&&(w>_a||w!==Po(w)))throw Error(Vr+c.s*w);if((L=L-P-1)>S)c.c=c.e=null;else if(L<g)c.c=[c.e=0];else{if(c.e=L,c.c=[],P=(L+1)%no,L<0)P+=no;if(P<x){if(P)c.c.push(+K.slice(0,P));for(x-=no;P<x;)c.c.push(+K.slice(P,P+=no));P=no-(K=K.slice(P)).length}else P-=x;for(;P--;K+="0");c.c.push(+K)}}else c.c=[c.e=0]}h.clone=Ir,h.ROUND_UP=0,h.ROUND_DOWN=1,h.ROUND_CEIL=2,h.ROUND_FLOOR=3,h.ROUND_HALF_UP=4,h.ROUND_HALF_DOWN=5,h.ROUND_HALF_EVEN=6,h.ROUND_HALF_CEIL=7,h.ROUND_HALF_FLOOR=8,h.EUCLID=9,h.config=h.set=function(w){var Z,I;if(w!=null)if(typeof w=="object"){if(w.hasOwnProperty(Z="DECIMAL_PLACES"))I=w[Z],ko(I,0,Zo,Z),n=I;if(w.hasOwnProperty(Z="ROUNDING_MODE"))I=w[Z],ko(I,0,8,Z),s=I;if(w.hasOwnProperty(Z="EXPONENTIAL_AT"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,0,Z),ko(I[1],0,Zo,Z),l=I[0],u=I[1];else ko(I,-Zo,Zo,Z),l=-(u=I<0?-I:I);if(w.hasOwnProperty(Z="RANGE"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,-1,Z),ko(I[1],1,Zo,Z),g=I[0],S=I[1];else if(ko(I,-Zo,Zo,Z),I)g=-(S=I<0?-I:I);else throw Error(Yo+Z+" cannot be zero: "+I);if(w.hasOwnProperty(Z="CRYPTO"))if(I=w[Z],I===!!I)if(I)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=I;else throw f=!I,Error(Yo+"crypto unavailable");else f=I;else throw Error(Yo+Z+" not true or false: "+I);if(w.hasOwnProperty(Z="MODULO_MODE"))I=w[Z],ko(I,0,9,Z),y=I;if(w.hasOwnProperty(Z="POW_PRECISION"))I=w[Z],ko(I,0,Zo,Z),z=I;if(w.hasOwnProperty(Z="FORMAT"))if(I=w[Z],typeof I=="object")m=I;else throw Error(Yo+Z+" not an object: "+I);if(w.hasOwnProperty(Z="ALPHABET"))if(I=w[Z],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))b=I.slice(0,10)=="0123456789",U=I;else throw Error(Yo+Z+" invalid: "+I)}else throw Error(Yo+"Object expected: "+w);return{DECIMAL_PLACES:n,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,u],RANGE:[g,S],CRYPTO:f,MODULO_MODE:y,POW_PRECISION:z,FORMAT:m,ALPHABET:U}},h.isBigNumber=function(w){if(!w||w._isBigNumber!==!0)return!1;if(!h.DEBUG)return!0;var Z,I,F=w.c,J=w.e,L=w.s;o:if({}.toString.call(F)=="[object Array]"){if((L===1||L===-1)&&J>=-Zo&&J<=Zo&&J===Po(J)){if(F[0]===0){if(J===0&&F.length===1)return!0;break o}if(Z=(J+1)%no,Z<1)Z+=no;if(String(F[0]).length==Z){for(Z=0;Z<F.length;Z++)if(I=F[Z],I<0||I>=Bo||I!==Po(I))break o;if(I!==0)return!0}}}else if(F===null&&J===null&&(L===null||L===1||L===-1))return!0;throw Error(Yo+"Invalid BigNumber: "+w)},h.maximum=h.max=function(){return k(arguments,-1)},h.minimum=h.min=function(){return k(arguments,1)},h.random=function(){var w=9007199254740992,Z=Math.random()*w&2097151?function(){return Po(Math.random()*w)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var F,J,L,P,W,x=0,K=[],c=new h(e);if(I==null)I=n;else ko(I,0,Zo);if(P=ja(I/no),f)if(crypto.getRandomValues){F=crypto.getRandomValues(new Uint32Array(P*=2));for(;x<P;)if(W=F[x]*131072+(F[x+1]>>>11),W>=9000000000000000)J=crypto.getRandomValues(new Uint32Array(2)),F[x]=J[0],F[x+1]=J[1];else K.push(W%100000000000000),x+=2;x=P/2}else if(crypto.randomBytes){F=crypto.randomBytes(P*=7);for(;x<P;)if(W=(F[x]&31)*281474976710656+F[x+1]*1099511627776+F[x+2]*4294967296+F[x+3]*16777216+(F[x+4]<<16)+(F[x+5]<<8)+F[x+6],W>=9000000000000000)crypto.randomBytes(7).copy(F,x);else K.push(W%100000000000000),x+=7;x=P/7}else throw f=!1,Error(Yo+"crypto unavailable");if(!f){for(;x<P;)if(W=Z(),W<9000000000000000)K[x++]=W%100000000000000}if(P=K[--x],I%=no,P&&I)W=Oa[no-I],K[x]=Po(P/W)*W;for(;K[x]===0;K.pop(),x--);if(x<0)K=[L=0];else{for(L=-1;K[0]===0;K.splice(0,1),L-=no);for(x=1,W=K[0];W>=10;W/=10,x++);if(x<no)L-=no-x}return c.e=L,c.c=K,c}}(),h.sum=function(){var w=1,Z=arguments,I=new h(Z[0]);for(;w<Z.length;)I=I.plus(Z[w++]);return I},a=function(){var w="0123456789";function Z(I,F,J,L){var P,W=[0],x,K=0,c=I.length;for(;K<c;){for(x=W.length;x--;W[x]*=F);W[0]+=L.indexOf(I.charAt(K++));for(P=0;P<W.length;P++)if(W[P]>J-1){if(W[P+1]==null)W[P+1]=0;W[P+1]+=W[P]/J|0,W[P]%=J}}return W.reverse()}return function(I,F,J,L,P){var W,x,K,c,v,Q,Y,T,M=I.indexOf("."),E=n,oo=s;if(M>=0)c=z,z=0,I=I.replace(".",""),T=new h(F),Q=T.pow(I.length-M),z=c,T.c=Z(ni(Qo(Q.c),Q.e,"0"),10,J,w),T.e=T.c.length;Y=Z(I,F,J,P?(W=U,w):(W=w,U)),K=c=Y.length;for(;Y[--c]==0;Y.pop());if(!Y[0])return W.charAt(0);if(M<0)--K;else Q.c=Y,Q.e=K,Q.s=L,Q=i(Q,T,E,oo,J),Y=Q.c,v=Q.r,K=Q.e;if(x=K+E+1,M=Y[x],c=J/2,v=v||x<0||Y[x+1]!=null,v=oo<4?(M!=null||v)&&(oo==0||oo==(Q.s<0?3:2)):M>c||M==c&&(oo==4||v||oo==6&&Y[x-1]&1||oo==(Q.s<0?8:7)),x<1||!Y[0])I=v?ni(W.charAt(1),-E,W.charAt(0)):W.charAt(0);else{if(Y.length=x,v){for(--J;++Y[--x]>J;)if(Y[x]=0,!x)++K,Y=[1].concat(Y)}for(c=Y.length;!Y[--c];);for(M=0,I="";M<=c;I+=W.charAt(Y[M++]));I=ni(I,K,W.charAt(0))}return I}}(),i=function(){function w(F,J,L){var P,W,x,K,c=0,v=F.length,Q=J%hi,Y=J/hi|0;for(F=F.slice();v--;)x=F[v]%hi,K=F[v]/hi|0,P=Y*x+K*Q,W=Q*x+P%hi*hi+c,c=(W/L|0)+(P/hi|0)+Y*K,F[v]=W%L;if(c)F=[c].concat(F);return F}function Z(F,J,L,P){var W,x;if(L!=P)x=L>P?1:-1;else for(W=x=0;W<L;W++)if(F[W]!=J[W]){x=F[W]>J[W]?1:-1;break}return x}function I(F,J,L,P){var W=0;for(;L--;)F[L]-=W,W=F[L]<J[L]?1:0,F[L]=W*P+F[L]-J[L];for(;!F[0]&&F.length>1;F.splice(0,1));}return function(F,J,L,P,W){var x,K,c,v,Q,Y,T,M,E,oo,io,lo,yo,Jo,Ho,go,So,so=F.s==J.s?1:-1,N=F.c,ho=J.c;if(!N||!N[0]||!ho||!ho[0])return new h(!F.s||!J.s||(N?ho&&N[0]==ho[0]:!ho)?NaN:N&&N[0]==0||!ho?so*0:so/0);if(M=new h(so),E=M.c=[],K=F.e-J.e,so=L+K+1,!W)W=Bo,K=Ao(F.e/no)-Ao(J.e/no),so=so/no|0;for(c=0;ho[c]==(N[c]||0);c++);if(ho[c]>(N[c]||0))K--;if(so<0)E.push(1),v=!0;else{if(Jo=N.length,go=ho.length,c=0,so+=2,Q=Po(W/(ho[0]+1)),Q>1)ho=w(ho,Q,W),N=w(N,Q,W),go=ho.length,Jo=N.length;yo=go,oo=N.slice(0,go),io=oo.length;for(;io<go;oo[io++]=0);if(So=ho.slice(),So=[0].concat(So),Ho=ho[0],ho[1]>=W/2)Ho++;do{if(Q=0,x=Z(ho,oo,go,io),x<0){if(lo=oo[0],go!=io)lo=lo*W+(oo[1]||0);if(Q=Po(lo/Ho),Q>1){if(Q>=W)Q=W-1;Y=w(ho,Q,W),T=Y.length,io=oo.length;while(Z(Y,oo,T,io)==1)Q--,I(Y,go<T?So:ho,T,W),T=Y.length,x=1}else{if(Q==0)x=Q=1;Y=ho.slice(),T=Y.length}if(T<io)Y=[0].concat(Y);if(I(oo,Y,io,W),io=oo.length,x==-1)while(Z(ho,oo,go,io)<1)Q++,I(oo,go<io?So:ho,io,W),io=oo.length}else if(x===0)Q++,oo=[0];if(E[c++]=Q,oo[0])oo[io++]=N[yo]||0;else oo=[N[yo]],io=1}while((yo++<Jo||oo[0]!=null)&&so--);if(v=oo[0]!=null,!E[0])E.splice(0,1)}if(W==Bo){for(c=1,so=E[0];so>=10;so/=10,c++);V(M,L+(M.e=c+K*no-1)+1,P,v)}else M.e=K,M.r=+v;return M}}();function p(w,Z,I,F){var J,L,P,W,x;if(I==null)I=s;else ko(I,0,8);if(!w.c)return w.toString();if(J=w.c[0],P=w.e,Z==null)x=Qo(w.c),x=F==1||F==2&&(P<=l||P>=u)?la(x,P):ni(x,P,"0");else if(w=V(new h(w),Z,I),L=w.e,x=Qo(w.c),W=x.length,F==1||F==2&&(Z<=L||L<=l)){for(;W<Z;x+="0",W++);x=la(x,L)}else if(Z-=P,x=ni(x,L,"0"),L+1>W){if(--Z>0)for(x+=".";Z--;x+="0");}else if(Z+=L-W,Z>0){if(L+1==W)x+=".";for(;Z--;x+="0");}return w.s<0&&J?"-"+x:x}function k(w,Z){var I,F,J=1,L=new h(w[0]);for(;J<w.length;J++)if(F=new h(w[J]),!F.s||(I=xi(L,F))===Z||I===0&&L.s===Z)L=F;return L}function R(w,Z,I){var F=1,J=Z.length;for(;!Z[--J];Z.pop());for(J=Z[0];J>=10;J/=10,F++);if((I=F+I*no-1)>S)w.c=w.e=null;else if(I<g)w.c=[w.e=0];else w.e=I,w.c=Z;return w}t=function(){var w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Z=/^([^.]+)\.$/,I=/^\.([^.]+)$/,F=/^-?(Infinity|NaN)$/,J=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(L,P,W,x){var K,c=W?P:P.replace(J,"");if(F.test(c))L.s=isNaN(c)?null:c<0?-1:1;else{if(!W){if(c=c.replace(w,function(v,Q,Y){return K=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!x||x==K?Q:v}),x)K=x,c=c.replace(Z,"$1").replace(I,"0.$1");if(P!=c)return new h(c,K)}if(h.DEBUG)throw Error(Yo+"Not a"+(x?" base "+x:"")+" number: "+P);L.s=null}L.c=L.e=null}}();function V(w,Z,I,F){var J,L,P,W,x,K,c,v=w.c,Q=Oa;if(v){o:{for(J=1,W=v[0];W>=10;W/=10,J++);if(L=Z-J,L<0)L+=no,P=Z,x=v[K=0],c=Po(x/Q[J-P-1]%10);else if(K=ja((L+1)/no),K>=v.length)if(F){for(;v.length<=K;v.push(0));x=c=0,J=1,L%=no,P=L-no+1}else break o;else{x=W=v[K];for(J=1;W>=10;W/=10,J++);L%=no,P=L-no+J,c=P<0?0:Po(x/Q[J-P-1]%10)}if(F=F||Z<0||v[K+1]!=null||(P<0?x:x%Q[J-P-1]),F=I<4?(c||F)&&(I==0||I==(w.s<0?3:2)):c>5||c==5&&(I==4||F||I==6&&(L>0?P>0?x/Q[J-P]:0:v[K-1])%10&1||I==(w.s<0?8:7)),Z<1||!v[0]){if(v.length=0,F)Z-=w.e+1,v[0]=Q[(no-Z%no)%no],w.e=-Z||0;else v[0]=w.e=0;return w}if(L==0)v.length=K,W=1,K--;else v.length=K+1,W=Q[no-L],v[K]=P>0?Po(x/Q[J-P]%Q[P])*W:0;if(F)for(;;)if(K==0){for(L=1,P=v[0];P>=10;P/=10,L++);P=v[0]+=W;for(W=1;P>=10;P/=10,W++);if(L!=W){if(w.e++,v[0]==Bo)v[0]=1}break}else{if(v[K]+=W,v[K]!=Bo)break;v[K--]=0,W=1}for(L=v.length;v[--L]===0;v.pop());}if(w.e>S)w.c=w.e=null;else if(w.e<g)w.c=[w.e=0]}return w}function C(w){var Z,I=w.e;if(I===null)return w.toString();return Z=Qo(w.c),Z=I<=l||I>=u?la(Z,I):ni(Z,I,"0"),w.s<0?"-"+Z:Z}if(r.absoluteValue=r.abs=function(){var w=new h(this);if(w.s<0)w.s=1;return w},r.comparedTo=function(w,Z){return xi(this,new h(w,Z))},r.decimalPlaces=r.dp=function(w,Z){var I,F,J,L=this;if(w!=null){if(ko(w,0,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new h(L),w+L.e+1,Z)}if(!(I=L.c))return null;if(F=((J=I.length-1)-Ao(this.e/no))*no,J=I[J])for(;J%10==0;J/=10,F--);if(F<0)F=0;return F},r.dividedBy=r.div=function(w,Z){return i(this,new h(w,Z),n,s)},r.dividedToIntegerBy=r.idiv=function(w,Z){return i(this,new h(w,Z),0,1)},r.exponentiatedBy=r.pow=function(w,Z){var I,F,J,L,P,W,x,K,c,v=this;if(w=new h(w),w.c&&!w.isInteger())throw Error(Yo+"Exponent not an integer: "+C(w));if(Z!=null)Z=new h(Z);if(W=w.e>14,!v.c||!v.c[0]||v.c[0]==1&&!v.e&&v.c.length==1||!w.c||!w.c[0])return c=new h(Math.pow(+C(v),W?w.s*(2-sa(w)):+C(w))),Z?c.mod(Z):c;if(x=w.s<0,Z){if(Z.c?!Z.c[0]:!Z.s)return new h(NaN);if(F=!x&&v.isInteger()&&Z.isInteger(),F)v=v.mod(Z)}else if(w.e>9&&(v.e>0||v.e<-1||(v.e==0?v.c[0]>1||W&&v.c[1]>=240000000:v.c[0]<80000000000000||W&&v.c[0]<=99999750000000))){if(L=v.s<0&&sa(w)?-0:0,v.e>-1)L=1/L;return new h(x?1/L:L)}else if(z)L=ja(z/no+2);if(W){if(I=new h(0.5),x)w.s=1;K=sa(w)}else J=Math.abs(+C(w)),K=J%2;c=new h(e);for(;;){if(K){if(c=c.times(v),!c.c)break;if(L){if(c.c.length>L)c.c.length=L}else if(F)c=c.mod(Z)}if(J){if(J=Po(J/2),J===0)break;K=J%2}else if(w=w.times(I),V(w,w.e+1,1),w.e>14)K=sa(w);else{if(J=+C(w),J===0)break;K=J%2}if(v=v.times(v),L){if(v.c&&v.c.length>L)v.c.length=L}else if(F)v=v.mod(Z)}if(F)return c;if(x)c=e.div(c);return Z?c.mod(Z):L?V(c,z,s,P):c},r.integerValue=function(w){var Z=new h(this);if(w==null)w=s;else ko(w,0,8);return V(Z,Z.e+1,w)},r.isEqualTo=r.eq=function(w,Z){return xi(this,new h(w,Z))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(w,Z){return xi(this,new h(w,Z))>0},r.isGreaterThanOrEqualTo=r.gte=function(w,Z){return(Z=xi(this,new h(w,Z)))===1||Z===0},r.isInteger=function(){return!!this.c&&Ao(this.e/no)>this.c.length-2},r.isLessThan=r.lt=function(w,Z){return xi(this,new h(w,Z))<0},r.isLessThanOrEqualTo=r.lte=function(w,Z){return(Z=xi(this,new h(w,Z)))===-1||Z===0},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&this.c[0]==0},r.minus=function(w,Z){var I,F,J,L,P=this,W=P.s;if(w=new h(w,Z),Z=w.s,!W||!Z)return new h(NaN);if(W!=Z)return w.s=-Z,P.plus(w);var x=P.e/no,K=w.e/no,c=P.c,v=w.c;if(!x||!K){if(!c||!v)return c?(w.s=-Z,w):new h(v?P:NaN);if(!c[0]||!v[0])return v[0]?(w.s=-Z,w):new h(c[0]?P:s==3?-0:0)}if(x=Ao(x),K=Ao(K),c=c.slice(),W=x-K){if(L=W<0)W=-W,J=c;else K=x,J=v;J.reverse();for(Z=W;Z--;J.push(0));J.reverse()}else{F=(L=(W=c.length)<(Z=v.length))?W:Z;for(W=Z=0;Z<F;Z++)if(c[Z]!=v[Z]){L=c[Z]<v[Z];break}}if(L)J=c,c=v,v=J,w.s=-w.s;if(Z=(F=v.length)-(I=c.length),Z>0)for(;Z--;c[I++]=0);Z=Bo-1;for(;F>W;){if(c[--F]<v[F]){for(I=F;I&&!c[--I];c[I]=Z);--c[I],c[F]+=Bo}c[F]-=v[F]}for(;c[0]==0;c.splice(0,1),--K);if(!c[0])return w.s=s==3?-1:1,w.c=[w.e=0],w;return R(w,c,K)},r.modulo=r.mod=function(w,Z){var I,F,J=this;if(w=new h(w,Z),!J.c||!w.s||w.c&&!w.c[0])return new h(NaN);else if(!w.c||J.c&&!J.c[0])return new h(J);if(y==9)F=w.s,w.s=1,I=i(J,w,0,3),w.s=F,I.s*=F;else I=i(J,w,0,y);if(w=J.minus(I.times(w)),!w.c[0]&&y==1)w.s=J.s;return w},r.multipliedBy=r.times=function(w,Z){var I,F,J,L,P,W,x,K,c,v,Q,Y,T,M,E,oo=this,io=oo.c,lo=(w=new h(w,Z)).c;if(!io||!lo||!io[0]||!lo[0]){if(!oo.s||!w.s||io&&!io[0]&&!lo||lo&&!lo[0]&&!io)w.c=w.e=w.s=null;else if(w.s*=oo.s,!io||!lo)w.c=w.e=null;else w.c=[0],w.e=0;return w}if(F=Ao(oo.e/no)+Ao(w.e/no),w.s*=oo.s,x=io.length,v=lo.length,x<v)T=io,io=lo,lo=T,J=x,x=v,v=J;for(J=x+v,T=[];J--;T.push(0));M=Bo,E=hi;for(J=v;--J>=0;){I=0,Q=lo[J]%E,Y=lo[J]/E|0;for(P=x,L=J+P;L>J;)K=io[--P]%E,c=io[P]/E|0,W=Y*K+c*Q,K=Q*K+W%E*E+T[L]+I,I=(K/M|0)+(W/E|0)+Y*c,T[L--]=K%M;T[L]=I}if(I)++F;else T.splice(0,1);return R(w,T,F)},r.negated=function(){var w=new h(this);return w.s=-w.s||null,w},r.plus=function(w,Z){var I,F=this,J=F.s;if(w=new h(w,Z),Z=w.s,!J||!Z)return new h(NaN);if(J!=Z)return w.s=-Z,F.minus(w);var L=F.e/no,P=w.e/no,W=F.c,x=w.c;if(!L||!P){if(!W||!x)return new h(J/0);if(!W[0]||!x[0])return x[0]?w:new h(W[0]?F:J*0)}if(L=Ao(L),P=Ao(P),W=W.slice(),J=L-P){if(J>0)P=L,I=x;else J=-J,I=W;I.reverse();for(;J--;I.push(0));I.reverse()}if(J=W.length,Z=x.length,J-Z<0)I=x,x=W,W=I,Z=J;for(J=0;Z;)J=(W[--Z]=W[Z]+x[Z]+J)/Bo|0,W[Z]=Bo===W[Z]?0:W[Z]%Bo;if(J)W=[J].concat(W),++P;return R(w,W,P)},r.precision=r.sd=function(w,Z){var I,F,J,L=this;if(w!=null&&w!==!!w){if(ko(w,1,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new h(L),w,Z)}if(!(I=L.c))return null;if(J=I.length-1,F=J*no+1,J=I[J]){for(;J%10==0;J/=10,F--);for(J=I[0];J>=10;J/=10,F++);}if(w&&L.e+1>F)F=L.e+1;return F},r.shiftedBy=function(w){return ko(w,-_a,_a),this.times("1e"+w)},r.squareRoot=r.sqrt=function(){var w,Z,I,F,J,L=this,P=L.c,W=L.s,x=L.e,K=n+4,c=new h("0.5");if(W!==1||!P||!P[0])return new h(!W||W<0&&(!P||P[0])?NaN:P?L:1/0);if(W=Math.sqrt(+C(L)),W==0||W==1/0){if(Z=Qo(P),(Z.length+x)%2==0)Z+="0";if(W=Math.sqrt(+Z),x=Ao((x+1)/2)-(x<0||x%2),W==1/0)Z="5e"+x;else Z=W.toExponential(),Z=Z.slice(0,Z.indexOf("e")+1)+x;I=new h(Z)}else I=new h(W+"");if(I.c[0]){if(x=I.e,W=x+K,W<3)W=0;for(;;)if(J=I,I=c.times(J.plus(i(L,J,K,1))),Qo(J.c).slice(0,W)===(Z=Qo(I.c)).slice(0,W)){if(I.e<x)--W;if(Z=Z.slice(W-3,W+1),Z=="9999"||!F&&Z=="4999"){if(!F){if(V(J,J.e+n+2,0),J.times(J).eq(L)){I=J;break}}K+=4,W+=4,F=1}else{if(!+Z||!+Z.slice(1)&&Z.charAt(0)=="5")V(I,I.e+n+2,1),w=!I.times(I).eq(L);break}}}return V(I,I.e+n+1,s,w)},r.toExponential=function(w,Z){if(w!=null)ko(w,0,Zo),w++;return p(this,w,Z,1)},r.toFixed=function(w,Z){if(w!=null)ko(w,0,Zo),w=w+this.e+1;return p(this,w,Z)},r.toFormat=function(w,Z,I){var F,J=this;if(I==null)if(w!=null&&Z&&typeof Z=="object")I=Z,Z=null;else if(w&&typeof w=="object")I=w,w=Z=null;else I=m;else if(typeof I!="object")throw Error(Yo+"Argument not an object: "+I);if(F=J.toFixed(w,Z),J.c){var L,P=F.split("."),W=+I.groupSize,x=+I.secondaryGroupSize,K=I.groupSeparator||"",c=P[0],v=P[1],Q=J.s<0,Y=Q?c.slice(1):c,T=Y.length;if(x)L=W,W=x,x=L,T-=L;if(W>0&&T>0){L=T%W||W,c=Y.substr(0,L);for(;L<T;L+=W)c+=K+Y.substr(L,W);if(x>0)c+=K+Y.slice(L);if(Q)c="-"+c}F=v?c+(I.decimalSeparator||"")+((x=+I.fractionGroupSize)?v.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):v):c}return(I.prefix||"")+F+(I.suffix||"")},r.toFraction=function(w){var Z,I,F,J,L,P,W,x,K,c,v,Q,Y=this,T=Y.c;if(w!=null){if(W=new h(w),!W.isInteger()&&(W.c||W.s!==1)||W.lt(e))throw Error(Yo+"Argument "+(W.isInteger()?"out of range: ":"not an integer: ")+C(W))}if(!T)return new h(Y);Z=new h(e),K=I=new h(e),F=x=new h(e),Q=Qo(T),L=Z.e=Q.length-Y.e-1,Z.c[0]=Oa[(P=L%no)<0?no+P:P],w=!w||W.comparedTo(Z)>0?L>0?Z:K:W,P=S,S=1/0,W=new h(Q),x.c[0]=0;for(;;){if(c=i(W,Z,0,1),J=I.plus(c.times(F)),J.comparedTo(w)==1)break;I=F,F=J,K=x.plus(c.times(J=K)),x=J,Z=W.minus(c.times(J=Z)),W=J}return J=i(w.minus(I),F,0,1),x=x.plus(J.times(K)),I=I.plus(J.times(F)),x.s=K.s=Y.s,L=L*2,v=i(K,F,L,s).minus(Y).abs().comparedTo(i(x,I,L,s).minus(Y).abs())<1?[K,F]:[x,I],S=P,v},r.toNumber=function(){return+C(this)},r.toPrecision=function(w,Z){if(w!=null)ko(w,1,Zo);return p(this,w,Z,2)},r.toString=function(w){var Z,I=this,F=I.s,J=I.e;if(J===null)if(F){if(Z="Infinity",F<0)Z="-"+Z}else Z="NaN";else{if(w==null)Z=J<=l||J>=u?la(Qo(I.c),J):ni(Qo(I.c),J,"0");else if(w===10&&b)I=V(new h(I),n+J+1,s),Z=ni(Qo(I.c),I.e,"0");else ko(w,2,U.length,"Base"),Z=a(ni(Qo(I.c),J,"0"),10,w,F,!0);if(F<0&&I.c[0])Z="-"+Z}return Z},r.valueOf=r.toJSON=function(){return C(this)},r._isBigNumber=!0,r[Symbol.toStringTag]="BigNumber",r[Symbol.for("nodejs.util.inspect.custom")]=r.valueOf,o!=null)h.set(o);return h}function Ao(o){var i=o|0;return o>0||o===i?i:i-1}function Qo(o){var i,a,t=1,r=o.length,e=o[0]+"";for(;t<r;){i=o[t++]+"",a=no-i.length;for(;a--;i="0"+i);e+=i}for(r=e.length;e.charCodeAt(--r)===48;);return e.slice(0,r+1||1)}function xi(o,i){var a,t,r=o.c,e=i.c,n=o.s,s=i.s,l=o.e,u=i.e;if(!n||!s)return null;if(a=r&&!r[0],t=e&&!e[0],a||t)return a?t?0:-s:n;if(n!=s)return n;if(a=n<0,t=l==u,!r||!e)return t?0:!r^a?1:-1;if(!t)return l>u^a?1:-1;s=(l=r.length)<(u=e.length)?l:u;for(n=0;n<s;n++)if(r[n]!=e[n])return r[n]>e[n]^a?1:-1;return l==u?0:l>u^a?1:-1}function ko(o,i,a,t){if(o<i||o>a||o!==Po(o))throw Error(Yo+(t||"Argument")+(typeof o=="number"?o<i||o>a?" out of range: ":" not an integer: ":" not a primitive number: ")+String(o))}function sa(o){var i=o.c.length-1;return Ao(o.e/no)==i&&o.c[i]%2!=0}function la(o,i){return(o.length>1?o.charAt(0)+"."+o.slice(1):o)+(i<0?"e":"e+")+i}function ni(o,i,a){var t,r;if(i<0){for(r=a+".";++i;r+=a);o=r+o}else if(t=o.length,++i>t){for(r=a,i-=t;--i;r+=a);o+=r}else if(i<t)o=o.slice(0,i)+"."+o.slice(i);return o}var Dn=Ir(),A=Dn;var da=globalThis,ca=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ta=Symbol(),qr=new WeakMap;class ua{constructor(o,i,a){if(this._$cssResult$=!0,a!==Ta)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=i}get styleSheet(){let o=this.o,i=this.t;if(ca&&o===void 0){let a=i!==void 0&&i.length===1;a&&(o=qr.get(i)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),a&&qr.set(i,o))}return o}toString(){return this.cssText}}var Jr=(o)=>new ua(typeof o=="string"?o:o+"",void 0,Ta),X=(o,...i)=>{let a=o.length===1?o[0]:i.reduce((t,r,e)=>t+((n)=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[e+1],o[0]);return new ua(a,o,Ta)},$r=(o,i)=>{if(ca)o.adoptedStyleSheets=i.map((a)=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of i){let t=document.createElement("style"),r=da.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=a.cssText,o.appendChild(t)}},Xa=ca?(o)=>o:(o)=>o instanceof CSSStyleSheet?((i)=>{let a="";for(let t of i.cssRules)a+=t.cssText;return Jr(a)})(o):o;var{is:Nn,defineProperty:Mn,getOwnPropertyDescriptor:En,getOwnPropertyNames:os,getOwnPropertySymbols:is,getPrototypeOf:as}=Object,ha=globalThis,Yr=ha.trustedTypes,ts=Yr?Yr.emptyScript:"",rs=ha.reactiveElementPolyfillSupport,Pi=(o,i)=>o,Ai={toAttribute(o,i){switch(i){case Boolean:o=o?ts:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let a=o;switch(i){case Boolean:a=o!==null;break;case Number:a=o===null?null:Number(o);break;case Object:case Array:try{a=JSON.parse(o)}catch(t){a=null}}return a}},fa=(o,i)=>!Nn(o,i),Cr={attribute:!0,type:String,converter:Ai,reflect:!1,useDefault:!1,hasChanged:fa};Symbol.metadata??=Symbol("metadata"),ha.litPropertyMetadata??=new WeakMap;class fi extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,i=Cr){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(o,i),!i.noAccessor){let a=Symbol(),t=this.getPropertyDescriptor(o,a,i);t!==void 0&&Mn(this.prototype,o,t)}}static getPropertyDescriptor(o,i,a){let{get:t,set:r}=En(this.prototype,o)??{get(){return this[i]},set(e){this[i]=e}};return{get:t,set(e){let n=t?.call(this);r?.call(this,e),this.requestUpdate(o,n,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??Cr}static _$Ei(){if(this.hasOwnProperty(Pi("elementProperties")))return;let o=as(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Pi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Pi("properties"))){let i=this.properties,a=[...os(i),...is(i)];for(let t of a)this.createProperty(t,i[t])}let o=this[Symbol.metadata];if(o!==null){let i=litPropertyMetadata.get(o);if(i!==void 0)for(let[a,t]of i)this.elementProperties.set(a,t)}this._$Eh=new Map;for(let[i,a]of this.elementProperties){let t=this._$Eu(i,a);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let i=[];if(Array.isArray(o)){let a=new Set(o.flat(1/0).reverse());for(let t of a)i.unshift(Xa(t))}else o!==void 0&&i.push(Xa(o));return i}static _$Eu(o,i){let a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((o)=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o)=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,i=this.constructor.elementProperties;for(let a of i.keys())this.hasOwnProperty(a)&&(o.set(a,this[a]),delete this[a]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $r(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o)=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o)=>o.hostDisconnected?.())}attributeChangedCallback(o,i,a){this._$AK(o,a)}_$ET(o,i){let a=this.constructor.elementProperties.get(o),t=this.constructor._$Eu(o,a);if(t!==void 0&&a.reflect===!0){let r=(a.converter?.toAttribute!==void 0?a.converter:Ai).toAttribute(i,a.type);this._$Em=o,r==null?this.removeAttribute(t):this.setAttribute(t,r),this._$Em=null}}_$AK(o,i){let a=this.constructor,t=a._$Eh.get(o);if(t!==void 0&&this._$Em!==t){let r=a.getPropertyOptions(t),e=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Ai;this._$Em=t,this[t]=e.fromAttribute(i,r.type)??this._$Ej?.get(t)??null,this._$Em=null}}requestUpdate(o,i,a){if(o!==void 0){let t=this.constructor,r=this[o];if(a??=t.getPropertyOptions(o),!((a.hasChanged??fa)(r,i)||a.useDefault&&a.reflect&&r===this._$Ej?.get(o)&&!this.hasAttribute(t._$Eu(o,a))))return;this.C(o,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,i,{useDefault:a,reflect:t,wrapped:r},e){a&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,e??i??this[o]),r!==!0||e!==void 0)||(this._$AL.has(o)||(this.hasUpdated||a||(i=void 0),this._$AL.set(o,i)),t===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,r]of this._$Ep)this[t]=r;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[t,r]of a){let{wrapped:e}=r,n=this[t];e!==!0||this._$AL.has(t)||n===void 0||this.C(t,void 0,r,n)}}let o=!1,i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),this._$EO?.forEach((a)=>a.hostUpdate?.()),this.update(i)):this._$EM()}catch(a){throw o=!1,this._$EM(),a}o&&this._$AE(i)}willUpdate(o){}_$AE(o){this._$EO?.forEach((i)=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach((i)=>this._$ET(i,this[i])),this._$EM()}updated(o){}firstUpdated(o){}}fi.elementStyles=[],fi.shadowRootOptions={mode:"open"},fi[Pi("elementProperties")]=new Map,fi[Pi("finalized")]=new Map,rs?.({ReactiveElement:fi}),(ha.reactiveElementVersions??=[]).push("2.1.0");var Ba=globalThis,pa=Ba.trustedTypes,Lr=pa?pa.createPolicy("lit-html",{createHTML:(o)=>o}):void 0;var si=`lit$${Math.random().toFixed(9).slice(2)}$`,Ga="?"+si,es=`<${Ga}>`,Si=document,_i=()=>Si.createComment(""),Oi=(o)=>o===null||typeof o!="object"&&typeof o!="function",Da=Array.isArray,_r=(o)=>Da(o)||typeof o?.[Symbol.iterator]=="function";var ji=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fr=/-->/g,Qr=/>/g,zi=RegExp(`>|[
9
+ */var Matrix=function(){var{cos:o,sin:i,tan:a,round:t}=Math;function r(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function e(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(m,-Q,0,0,Q,m,0,0,0,0,1,0,0,0,0,1)}function n(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(1,0,0,0,0,m,-Q,0,0,Q,m,0,0,0,0,1)}function s(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(m,0,Q,0,0,1,0,0,-Q,0,m,0,0,0,0,1)}function l(c){if(c===0)return this;var m=o(c),Q=i(c);return this._t(m,-Q,0,0,Q,m,0,0,0,0,1,0,0,0,0,1)}function h(c,m){return this._t(1,m,c,1,0,0)}function g(c,m){return this.shear(a(c),a(m))}function H(c,m){var Q=o(m),Y=i(m);return this._t(Q,Y,0,0,-Y,Q,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(c),1,0,0,0,0,1,0,0,0,0,1)._t(Q,-Y,0,0,Y,Q,0,0,0,0,1,0,0,0,0,1)}function f(c,m,Q){if(!Q&&Q!==0)Q=1;if(c===1&&m===1&&Q===1)return this;return this._t(c,0,0,0,0,m,0,0,0,0,Q,0,0,0,0,1)}function y(c,m,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so){return this.props[0]=c,this.props[1]=m,this.props[2]=Q,this.props[3]=Y,this.props[4]=T,this.props[5]=M,this.props[6]=E,this.props[7]=oo,this.props[8]=io,this.props[9]=lo,this.props[10]=yo,this.props[11]=Jo,this.props[12]=So,this.props[13]=go,this.props[14]=Ho,this.props[15]=so,this}function z(c,m,Q){if(Q=Q||0,c!==0||m!==0||Q!==0)return this._t(1,0,0,0,0,1,0,0,0,0,1,0,c,m,Q,1);return this}function v(c,m,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so){var N=this.props;if(c===1&&m===0&&Q===0&&Y===0&&T===0&&M===1&&E===0&&oo===0&&io===0&&lo===0&&yo===1&&Jo===0)return N[12]=N[12]*c+N[15]*So,N[13]=N[13]*M+N[15]*go,N[14]=N[14]*yo+N[15]*Ho,N[15]*=so,this._identityCalculated=!1,this;var uo=N[0],hi=N[1],ai=N[2],oi=N[3],ti=N[4],ri=N[5],$o=N[6],ui=N[7],fi=N[8],To=N[9],pi=N[10],Xo=N[11],xi=N[12],ra=N[13],ea=N[14],na=N[15];return N[0]=uo*c+hi*T+ai*io+oi*So,N[1]=uo*m+hi*M+ai*lo+oi*go,N[2]=uo*Q+hi*E+ai*yo+oi*Ho,N[3]=uo*Y+hi*oo+ai*Jo+oi*so,N[4]=ti*c+ri*T+$o*io+ui*So,N[5]=ti*m+ri*M+$o*lo+ui*go,N[6]=ti*Q+ri*E+$o*yo+ui*Ho,N[7]=ti*Y+ri*oo+$o*Jo+ui*so,N[8]=fi*c+To*T+pi*io+Xo*So,N[9]=fi*m+To*M+pi*lo+Xo*go,N[10]=fi*Q+To*E+pi*yo+Xo*Ho,N[11]=fi*Y+To*oo+pi*Jo+Xo*so,N[12]=xi*c+ra*T+ea*io+na*So,N[13]=xi*m+ra*M+ea*lo+na*go,N[14]=xi*Q+ra*E+ea*yo+na*Ho,N[15]=xi*Y+ra*oo+ea*Jo+na*so,this._identityCalculated=!1,this}function U(c){var m=c.props;return this.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15])}function b(){if(!this._identityCalculated)this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0;return this._identity}function u(c){var m=0;while(m<16){if(c.props[m]!==this.props[m])return!1;m+=1}return!0}function p(c){var m;for(m=0;m<16;m+=1)c.props[m]=this.props[m];return c}function k(c){var m;for(m=0;m<16;m+=1)this.props[m]=c[m]}function R(c,m,Q){return{x:c*this.props[0]+m*this.props[4]+Q*this.props[8]+this.props[12],y:c*this.props[1]+m*this.props[5]+Q*this.props[9]+this.props[13],z:c*this.props[2]+m*this.props[6]+Q*this.props[10]+this.props[14]}}function V(c,m,Q){return c*this.props[0]+m*this.props[4]+Q*this.props[8]+this.props[12]}function L(c,m,Q){return c*this.props[1]+m*this.props[5]+Q*this.props[9]+this.props[13]}function w(c,m,Q){return c*this.props[2]+m*this.props[6]+Q*this.props[10]+this.props[14]}function Z(){var c=this.props[0]*this.props[5]-this.props[1]*this.props[4],m=this.props[5]/c,Q=-this.props[1]/c,Y=-this.props[4]/c,T=this.props[0]/c,M=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/c,E=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/c,oo=new Matrix;return oo.props[0]=m,oo.props[1]=Q,oo.props[4]=Y,oo.props[5]=T,oo.props[12]=M,oo.props[13]=E,oo}function I(c){var m=this.getInverseMatrix();return m.applyToPointArray(c[0],c[1],c[2]||0)}function F(c){var m,Q=c.length,Y=[];for(m=0;m<Q;m+=1)Y[m]=I(c[m]);return Y}function J(c,m,Q){var Y=createTypedArray("float32",6);if(this.isIdentity())Y[0]=c[0],Y[1]=c[1],Y[2]=m[0],Y[3]=m[1],Y[4]=Q[0],Y[5]=Q[1];else{var T=this.props[0],M=this.props[1],E=this.props[4],oo=this.props[5],io=this.props[12],lo=this.props[13];Y[0]=c[0]*T+c[1]*E+io,Y[1]=c[0]*M+c[1]*oo+lo,Y[2]=m[0]*T+m[1]*E+io,Y[3]=m[0]*M+m[1]*oo+lo,Y[4]=Q[0]*T+Q[1]*E+io,Y[5]=Q[0]*M+Q[1]*oo+lo}return Y}function C(c,m,Q){var Y;if(this.isIdentity())Y=[c,m,Q];else Y=[c*this.props[0]+m*this.props[4]+Q*this.props[8]+this.props[12],c*this.props[1]+m*this.props[5]+Q*this.props[9]+this.props[13],c*this.props[2]+m*this.props[6]+Q*this.props[10]+this.props[14]];return Y}function j(c,m){if(this.isIdentity())return c+","+m;var Q=this.props;return Math.round((c*Q[0]+m*Q[4]+Q[12])*100)/100+","+Math.round((c*Q[1]+m*Q[5]+Q[13])*100)/100}function W(){var c=0,m=this.props,Q="matrix3d(",Y=1e4;while(c<16)Q+=t(m[c]*Y)/Y,Q+=c===15?")":",",c+=1;return Q}function x(c){var m=1e4;if(c<0.000001&&c>0||c>-0.000001&&c<0)return t(c*m)/m;return c}function K(){var c=this.props,m=x(c[0]),Q=x(c[1]),Y=x(c[4]),T=x(c[5]),M=x(c[12]),E=x(c[13]);return"matrix("+m+","+Q+","+Y+","+T+","+M+","+E+")"}return function(){this.reset=r,this.rotate=e,this.rotateX=n,this.rotateY=s,this.rotateZ=l,this.skew=g,this.skewFromAxis=H,this.shear=h,this.scale=f,this.setTransform=y,this.translate=z,this.transform=v,this.multiply=U,this.applyToPoint=R,this.applyToX=V,this.applyToY=L,this.applyToZ=w,this.applyToPointArray=C,this.applyToTriplePoints=J,this.applyToPointStringified=j,this.toCSS=W,this.to2dCSS=K,this.clone=p,this.cloneFromProps=k,this.equals=u,this.inversePoints=F,this.inversePoint=I,this.getInverseMatrix=Z,this._t=this.transform,this.isIdentity=b,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(o){return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$3(o)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(o){setLocationHref(o)}function searchAnimations(){if(standalone===!0)animationManager.searchAnimations(animationData,standalone,renderer);else animationManager.searchAnimations()}function setSubframeRendering(o){setSubframeEnabled(o)}function setPrefix(o){setIdPrefix(o)}function loadAnimation(o){if(standalone===!0)o.animationData=JSON.parse(animationData);return animationManager.loadAnimation(o)}function setQuality(o){if(typeof o==="string")switch(o){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else if(!isNaN(o)&&o>1)setDefaultCurveSegments(o);if(getDefaultCurveSegments()>=50)roundValues(!1);else roundValues(!0)}function inBrowser(){return typeof navigator!=="undefined"}function installPlugin(o,i){if(o==="expressions")setExpressionsPlugin(i)}function getFactory(o){switch(o){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){if(document.readyState==="complete")clearInterval(readyStateCheckInterval),searchAnimations()}function getQueryVariable(o){var i=queryString.split("&");for(var a=0;a<i.length;a+=1){var t=i[a].split("=");if(decodeURIComponent(t[0])==o)return decodeURIComponent(t[1])}return null}var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{if(!((typeof Li==="undefined"?"undefined":_typeof$3(Li))==="object"&&typeof Gi!=="undefined")&&!(typeof define==="function"&&define.amd))window.bodymovin=lottie}catch(o){}var ShapeModifiers=function(){var o={},i={};o.registerModifier=a,o.getModifier=t;function a(r,e){if(!i[r])i[r]=e}function t(r,e,n){return new i[r](e,n)}return o}();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(o){if(!this.closed){o.sh.container.addDynamicProperty(o.sh);var i={shape:o.sh,data:o,localShapeCollection:shapeCollectionPool.newShapeCollection()};if(this.shapes.push(i),this.addShapeToModifier(i),this._isAnimated)o.setAsAnimated()}},ShapeModifier.prototype.init=function(o,i){if(this.shapes=[],this.elem=o,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){if(this.elem.globalData.frameId===this.frameId)return;this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties()},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(o,i){this.s=PropertyFactory.getProp(o,i.s,0,0.01,this),this.e=PropertyFactory.getProp(o,i.e,0,0.01,this),this.o=PropertyFactory.getProp(o,i.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=i.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(o){o.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(o,i,a,t,r){var e=[];if(i<=1)e.push({s:o,e:i});else if(o>=1)e.push({s:o-1,e:i-1});else e.push({s:o,e:1}),e.push({s:0,e:i-1});var n=[],s,l=e.length,h;for(s=0;s<l;s+=1)if(h=e[s],!(h.e*r<t||h.s*r>t+a)){var g,H;if(h.s*r<=t)g=0;else g=(h.s*r-t)/a;if(h.e*r>=t+a)H=1;else H=(h.e*r-t)/a;n.push([g,H])}if(!n.length)n.push([0,0]);return n},TrimModifier.prototype.releasePathsData=function(o){var i,a=o.length;for(i=0;i<a;i+=1)segmentsLengthPool.release(o[i]);return o.length=0,o},TrimModifier.prototype.processShapes=function(o){var i,a;if(this._mdf||o){var t=this.o.v%360/360;if(t<0)t+=1;if(this.s.v>1)i=1+t;else if(this.s.v<0)i=0+t;else i=this.s.v+t;if(this.e.v>1)a=1+t;else if(this.e.v<0)a=0+t;else a=this.e.v+t;if(i>a){var r=i;i=a,a=r}i=Math.round(i*1e4)*0.0001,a=Math.round(a*1e4)*0.0001,this.sValue=i,this.eValue=a}else i=this.sValue,a=this.eValue;var e,n,s=this.shapes.length,l,h,g,H,f,y=0;if(a===i){for(n=0;n<s;n+=1)if(this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf)this.shapes[n].pathsData.length=0}else if(!(a===1&&i===0||a===0&&i===1)){var z=[],v,U;for(n=0;n<s;n+=1)if(v=this.shapes[n],!v.shape._mdf&&!this._mdf&&!o&&this.m!==2)v.shape.paths=v.localShapeCollection;else{if(e=v.shape.paths,h=e._length,f=0,!v.shape._mdf&&v.pathsData.length)f=v.totalShapeLength;else{g=this.releasePathsData(v.pathsData);for(l=0;l<h;l+=1)H=bez.getSegmentsLength(e.shapes[l]),g.push(H),f+=H.totalLength;v.totalShapeLength=f,v.pathsData=g}y+=f,v.shape._mdf=!0}var b=i,u=a,p=0,k;for(n=s-1;n>=0;n-=1)if(v=this.shapes[n],v.shape._mdf){if(U=v.localShapeCollection,U.releaseShapes(),this.m===2&&s>1)k=this.calculateShapeEdges(i,a,v.totalShapeLength,p,y),p+=v.totalShapeLength;else k=[[b,u]];h=k.length;for(l=0;l<h;l+=1){if(b=k[l][0],u=k[l][1],z.length=0,u<=1)z.push({s:v.totalShapeLength*b,e:v.totalShapeLength*u});else if(b>=1)z.push({s:v.totalShapeLength*(b-1),e:v.totalShapeLength*(u-1)});else z.push({s:v.totalShapeLength*b,e:v.totalShapeLength}),z.push({s:0,e:v.totalShapeLength*(u-1)});var R=this.addShapes(v,z[0]);if(z[0].s!==z[0].e){if(z.length>1){var V=v.shape.paths.shapes[v.shape.paths._length-1];if(V.c){var L=R.pop();this.addPaths(R,U),R=this.addShapes(v,z[1],L)}else this.addPaths(R,U),R=this.addShapes(v,z[1])}this.addPaths(R,U)}}v.shape.paths=U}}else if(this._mdf)for(n=0;n<s;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0},TrimModifier.prototype.addPaths=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i.addShape(o[a])},TrimModifier.prototype.addSegment=function(o,i,a,t,r,e,n){if(r.setXYAt(i[0],i[1],"o",e),r.setXYAt(a[0],a[1],"i",e+1),n)r.setXYAt(o[0],o[1],"v",e);r.setXYAt(t[0],t[1],"v",e+1)},TrimModifier.prototype.addSegmentFromArray=function(o,i,a,t){if(i.setXYAt(o[1],o[5],"o",a),i.setXYAt(o[2],o[6],"i",a+1),t)i.setXYAt(o[0],o[4],"v",a);i.setXYAt(o[3],o[7],"v",a+1)},TrimModifier.prototype.addShapes=function(o,i,a){var t=o.pathsData,r=o.shape.paths.shapes,e,n=o.shape.paths._length,s,l,h=0,g,H,f,y,z=[],v,U=!0;if(!a)a=shapePool.newElement(),H=0,v=0;else H=a._length,v=a._length;z.push(a);for(e=0;e<n;e+=1){f=t[e].lengths,a.c=r[e].c,l=r[e].c?f.length:f.length+1;for(s=1;s<l;s+=1)if(g=f[s-1],h+g.addedLength<i.s)h+=g.addedLength,a.c=!1;else if(h>i.e){a.c=!1;break}else{if(i.s<=h&&i.e>=h+g.addedLength)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[s],r[e].v[s],a,H,U),U=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[s],r[e].o[s-1],r[e].i[s],(i.s-h)/g.addedLength,(i.e-h)/g.addedLength,f[s-1]),this.addSegmentFromArray(y,a,H,U),U=!1,a.c=!1;h+=g.addedLength,H+=1}if(r[e].c&&f.length){if(g=f[s-1],h<=i.e){var b=f[s-1].addedLength;if(i.s<=h&&i.e>=h+b)this.addSegment(r[e].v[s-1],r[e].o[s-1],r[e].i[0],r[e].v[0],a,H,U),U=!1;else y=bez.getNewSegment(r[e].v[s-1],r[e].v[0],r[e].o[s-1],r[e].i[0],(i.s-h)/b,(i.e-h)/b,f[s-1]),this.addSegmentFromArray(y,a,H,U),U=!1,a.c=!1}else a.c=!1;h+=g.addedLength,H+=1}if(a._length)a.setXYAt(a.v[v][0],a.v[v][1],"i",v),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1);if(h>i.e)break;if(e<n-1)a=shapePool.newElement(),U=!0,z.push(a),H=0}return z};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(o,i){var a=i/100,t=[0,0],r=o._length,e=0;for(e=0;e<r;e+=1)t[0]+=o.v[e][0],t[1]+=o.v[e][1];t[0]/=r,t[1]/=r;var n=shapePool.newElement();n.c=o.c;var s,l,h,g,H,f;for(e=0;e<r;e+=1)s=o.v[e][0]+(t[0]-o.v[e][0])*a,l=o.v[e][1]+(t[1]-o.v[e][1])*a,h=o.o[e][0]+(t[0]-o.o[e][0])*-a,g=o.o[e][1]+(t[1]-o.o[e][1])*-a,H=o.i[e][0]+(t[0]-o.i[e][0])*-a,f=o.i[e][1]+(t[1]-o.i[e][1])*-a,n.setTripleAt(s,l,h,g,H,f,e);return n},PuckerAndBloatModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};var TransformPropertyFactory=function(){var o=[0,0];function i(l){var h=this._mdf;if(this.iterateDynamicProperties(),this._mdf=this._mdf||h,this.a)l.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.s)l.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk)l.skewFromAxis(-this.sk.v,this.sa.v);if(this.r)l.rotate(-this.r.v);else l.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.data.p.s)if(this.data.p.z)l.translate(this.px.v,this.py.v,-this.pz.v);else l.translate(this.px.v,this.py.v,0);else l.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function a(l){if(this.elem.globalData.frameId===this.frameId)return;if(this._isDirty)this.precalculateMatrix(),this._isDirty=!1;if(this.iterateDynamicProperties(),this._mdf||l){var h;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1)this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]);if(this.appliedTransformations<2)this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]);if(this.sk&&this.appliedTransformations<3)this.v.skewFromAxis(-this.sk.v,this.sa.v);if(this.r&&this.appliedTransformations<4)this.v.rotate(-this.r.v);else if(!this.r&&this.appliedTransformations<4)this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]);if(this.autoOriented){var g,H;if(h=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)if(this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t)g=this.p.getValueAtTime((this.p.keyframes[0].t+0.01)/h,0),H=this.p.getValueAtTime(this.p.keyframes[0].t/h,0);else if(this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t)g=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/h,0),H=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-0.05)/h,0);else g=this.p.pv,H=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-0.01)/h,this.p.offsetTime);else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){g=[],H=[];var f=this.px,y=this.py;if(f._caching.lastFrame+f.offsetTime<=f.keyframes[0].t)g[0]=f.getValueAtTime((f.keyframes[0].t+0.01)/h,0),g[1]=y.getValueAtTime((y.keyframes[0].t+0.01)/h,0),H[0]=f.getValueAtTime(f.keyframes[0].t/h,0),H[1]=y.getValueAtTime(y.keyframes[0].t/h,0);else if(f._caching.lastFrame+f.offsetTime>=f.keyframes[f.keyframes.length-1].t)g[0]=f.getValueAtTime(f.keyframes[f.keyframes.length-1].t/h,0),g[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/h,0),H[0]=f.getValueAtTime((f.keyframes[f.keyframes.length-1].t-0.01)/h,0),H[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-0.01)/h,0);else g=[f.pv,y.pv],H[0]=f.getValueAtTime((f._caching.lastFrame+f.offsetTime-0.01)/h,f.offsetTime),H[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-0.01)/h,y.offsetTime)}else H=o,g=H;this.v.rotate(-Math.atan2(g[1]-H[1],g[0]-H[0]))}if(this.data.p&&this.data.p.s)if(this.data.p.z)this.v.translate(this.px.v,this.py.v,-this.pz.v);else this.v.translate(this.px.v,this.py.v,0);else this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}function t(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;if(this.r){if(!this.r.effectsSequence.length)this.pre.rotate(-this.r.v),this.appliedTransformations=4}else if(!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length)this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4}function r(){}function e(l){this._addDynamicProperty(l),this.elem.addDynamicProperty(l),this._isDirty=!0}function n(l,h,g){if(this.elem=l,this.frameId=-1,this.propType="transform",this.data=h,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(g||l),h.p&&h.p.s){if(this.px=PropertyFactory.getProp(l,h.p.x,0,0,this),this.py=PropertyFactory.getProp(l,h.p.y,0,0,this),h.p.z)this.pz=PropertyFactory.getProp(l,h.p.z,0,0,this)}else this.p=PropertyFactory.getProp(l,h.p||{k:[0,0,0]},1,0,this);if(h.rx){if(this.rx=PropertyFactory.getProp(l,h.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(l,h.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(l,h.rz,0,degToRads,this),h.or.k[0].ti){var H,f=h.or.k.length;for(H=0;H<f;H+=1)h.or.k[H].to=null,h.or.k[H].ti=null}this.or=PropertyFactory.getProp(l,h.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(l,h.r||{k:0},0,degToRads,this);if(h.sk)this.sk=PropertyFactory.getProp(l,h.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(l,h.sa,0,degToRads,this);if(this.a=PropertyFactory.getProp(l,h.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(l,h.s||{k:[100,100,100]},1,0.01,this),h.o)this.o=PropertyFactory.getProp(l,h.o,0,0.01,l);else this.o={_mdf:!1,v:1};if(this._isDirty=!0,!this.dynamicProperties.length)this.getValue(!0)}n.prototype={applyToMatrix:i,getValue:a,precalculateMatrix:t,autoOrient:r},extendPrototype([DynamicPropertyContainer],n),n.prototype.addDynamicProperty=e,n.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function s(l,h,g){return new n(l,h,g)}return{getTransformProperty:s}}();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(o,i){if(this.getValue=this.processKeys,this.c=PropertyFactory.getProp(o,i.c,0,null,this),this.o=PropertyFactory.getProp(o,i.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(o,i.tr,this),this.so=PropertyFactory.getProp(o,i.tr.so,0,0.01,this),this.eo=PropertyFactory.getProp(o,i.tr.eo,0,0.01,this),this.data=i,!this.dynamicProperties.length)this.getValue(!0);this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(o,i,a,t,r,e){var n=e?-1:1,s=t.s.v[0]+(1-t.s.v[0])*(1-r),l=t.s.v[1]+(1-t.s.v[1])*(1-r);o.translate(t.p.v[0]*n*r,t.p.v[1]*n*r,t.p.v[2]),i.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),i.rotate(-t.r.v*n*r),i.translate(t.a.v[0],t.a.v[1],t.a.v[2]),a.translate(-t.a.v[0],-t.a.v[1],t.a.v[2]),a.scale(e?1/s:s,e?1/l:l),a.translate(t.a.v[0],t.a.v[1],t.a.v[2])},RepeaterModifier.prototype.init=function(o,i,a,t){this.elem=o,this.arr=i,this.pos=a,this.elemsData=t,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(o),this.initModifierProperties(o,i[a]);while(a>0)a-=1,this._elements.unshift(i[a]);if(this.dynamicProperties.length)this.k=!0;else this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i]._processed=!1,o[i].ty==="gr")this.resetElements(o[i].it)},RepeaterModifier.prototype.cloneElements=function(o){var i=JSON.parse(JSON.stringify(o));return this.resetElements(i),i},RepeaterModifier.prototype.changeGroupRender=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]._render=i,o[a].ty==="gr")this.changeGroupRender(o[a].it,i)},RepeaterModifier.prototype.processShapes=function(o){var i,a,t,r,e,n=!1;if(this._mdf||o){var s=Math.ceil(this.c.v);if(this._groups.length<s){while(this._groups.length<s){var l={it:this.cloneElements(this._elements),ty:"gr"};l.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,l),this._groups.splice(0,0,l),this._currentCopies+=1}this.elem.reloadShapes(),n=!0}e=0;var h;for(t=0;t<=this._groups.length-1;t+=1){if(h=e<s,this._groups[t]._render=h,this.changeGroupRender(this._groups[t].it,h),!h){var g=this.elemsData[t].it,H=g[g.length-1];if(H.transform.op.v!==0)H.transform.op._mdf=!0,H.transform.op.v=0;else H.transform.op._mdf=!1}e+=1}this._currentCopies=s;var f=this.o.v,y=f%1,z=f>0?Math.floor(f):Math.ceil(f),v=this.pMatrix.props,U=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var u=0;if(f>0){while(u<z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),u+=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),u+=y}else if(f<0){while(u>z)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),u-=1;if(y)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),u-=y}t=this.data.m===1?0:this._currentCopies-1,r=this.data.m===1?1:-1,e=this._currentCopies;var p,k;while(e){if(i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,k=a.length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(t/(this._currentCopies-1)),u!==0){if(t!==0&&r===1||t!==this._currentCopies-1&&r===-1)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1);this.matrix.transform(U[0],U[1],U[2],U[3],U[4],U[5],U[6],U[7],U[8],U[9],U[10],U[11],U[12],U[13],U[14],U[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]);for(p=0;p<k;p+=1)a[p]=this.matrix.props[p];this.matrix.reset()}else{this.matrix.reset();for(p=0;p<k;p+=1)a[p]=this.matrix.props[p]}u+=1,e-=1,t+=r}}else{e=this._currentCopies,t=0,r=1;while(e)i=this.elemsData[t].it,a=i[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,e-=1,t+=r}return n},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(o,i.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(o,i){var a=shapePool.newElement();a.c=o.c;var t,r=o._length,e,n,s,l,h,g,H=0,f,y,z,v,U,b;for(t=0;t<r;t+=1)if(e=o.v[t],s=o.o[t],n=o.i[t],e[0]===s[0]&&e[1]===s[1]&&e[0]===n[0]&&e[1]===n[1])if((t===0||t===r-1)&&!o.c)a.setTripleAt(e[0],e[1],s[0],s[1],n[0],n[1],H),H+=1;else{if(t===0)l=o.v[r-1];else l=o.v[t-1];if(h=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),g=h?Math.min(h/2,i)/h:0,U=e[0]+(l[0]-e[0])*g,f=U,b=e[1]-(e[1]-l[1])*g,y=b,z=f-(f-e[0])*roundCorner,v=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,U,b,H),H+=1,t===r-1)l=o.v[0];else l=o.v[t+1];h=Math.sqrt(Math.pow(e[0]-l[0],2)+Math.pow(e[1]-l[1],2)),g=h?Math.min(h/2,i)/h:0,z=e[0]+(l[0]-e[0])*g,f=z,v=e[1]+(l[1]-e[1])*g,y=v,U=f-(f-e[0])*roundCorner,b=y-(y-e[1])*roundCorner,a.setTripleAt(f,y,z,v,U,b,H),H+=1}else a.setTripleAt(o.v[t][0],o.v[t][1],o.o[t][0],o.o[t][1],o.i[t][0],o.i[t][1],H),H+=1;return a},RoundCornersModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.rd.v;if(n!==0){var s,l;for(a=0;a<t;a+=1){if(s=this.shapes[a],l=s.localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!o)){l.releaseShapes(),s.shape._mdf=!0,i=s.shape.paths.shapes,e=s.shape.paths._length;for(r=0;r<e;r+=1)l.addShape(this.processPath(i[r],n))}s.shape.paths=s.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function floatEqual(o,i){return Math.abs(o-i)*1e5<=Math.min(Math.abs(o),Math.abs(i))}function floatZero(o){return Math.abs(o)<=0.00001}function lerp(o,i,a){return o*(1-a)+i*a}function lerpPoint(o,i,a){return[lerp(o[0],i[0],a),lerp(o[1],i[1],a)]}function quadRoots(o,i,a){if(o===0)return[];var t=i*i-4*o*a;if(t<0)return[];var r=-i/(2*o);if(t===0)return[r];var e=Math.sqrt(t)/(2*o);return[r-e,r+e]}function polynomialCoefficients(o,i,a,t){return[-o+3*i-3*a+t,3*o-6*i+3*a,-3*o+3*i,o]}function singlePoint(o){return new PolynomialBezier(o,o,o,o,!1)}function PolynomialBezier(o,i,a,t,r){if(r&&pointEqual(o,i))i=lerpPoint(o,t,0.3333333333333333);if(r&&pointEqual(a,t))a=lerpPoint(o,t,0.6666666666666666);var e=polynomialCoefficients(o[0],i[0],a[0],t[0]),n=polynomialCoefficients(o[1],i[1],a[1],t[1]);this.a=[e[0],n[0]],this.b=[e[1],n[1]],this.c=[e[2],n[2]],this.d=[e[3],n[3]],this.points=[o,i,a,t]}PolynomialBezier.prototype.point=function(o){return[((this.a[0]*o+this.b[0])*o+this.c[0])*o+this.d[0],((this.a[1]*o+this.b[1])*o+this.c[1])*o+this.d[1]]},PolynomialBezier.prototype.derivative=function(o){return[(3*o*this.a[0]+2*this.b[0])*o+this.c[0],(3*o*this.a[1]+2*this.b[1])*o+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(o){var i=this.derivative(o);return Math.atan2(i[1],i[0])},PolynomialBezier.prototype.normalAngle=function(o){var i=this.derivative(o);return Math.atan2(i[0],i[1])},PolynomialBezier.prototype.inflectionPoints=function(){var o=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(o))return[];var i=-0.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/o,a=i*i-0.3333333333333333*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/o;if(a<0)return[];var t=Math.sqrt(a);if(floatZero(t)){if(t>0&&t<1)return[i];return[]}return[i-t,i+t].filter(function(r){return r>0&&r<1})},PolynomialBezier.prototype.split=function(o){if(o<=0)return[singlePoint(this.points[0]),this];if(o>=1)return[this,singlePoint(this.points[this.points.length-1])];var i=lerpPoint(this.points[0],this.points[1],o),a=lerpPoint(this.points[1],this.points[2],o),t=lerpPoint(this.points[2],this.points[3],o),r=lerpPoint(i,a,o),e=lerpPoint(a,t,o),n=lerpPoint(r,e,o);return[new PolynomialBezier(this.points[0],i,r,n,!0),new PolynomialBezier(n,e,t,this.points[3],!0)]};function extrema(o,i){var a=o.points[0][i],t=o.points[o.points.length-1][i];if(a>t){var r=t;t=a,a=r}var e=quadRoots(3*o.a[i],2*o.b[i],o.c[i]);for(var n=0;n<e.length;n+=1)if(e[n]>0&&e[n]<1){var s=o.point(e[n])[i];if(s<a)a=s;else if(s>t)t=s}return{min:a,max:t}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var o=this.bounds();return{left:o.x.min,right:o.x.max,top:o.y.min,bottom:o.y.max,width:o.x.max-o.x.min,height:o.y.max-o.y.min,cx:(o.x.max+o.x.min)/2,cy:(o.y.max+o.y.min)/2}};function intersectData(o,i,a){var t=o.boundingBox();return{cx:t.cx,cy:t.cy,width:t.width,height:t.height,bez:o,t:(i+a)/2,t1:i,t2:a}}function splitData(o){var i=o.bez.split(0.5);return[intersectData(i[0],o.t1,o.t),intersectData(i[1],o.t,o.t2)]}function boxIntersect(o,i){return Math.abs(o.cx-i.cx)*2<o.width+i.width&&Math.abs(o.cy-i.cy)*2<o.height+i.height}function intersectsImpl(o,i,a,t,r,e){if(!boxIntersect(o,i))return;if(a>=e||o.width<=t&&o.height<=t&&i.width<=t&&i.height<=t){r.push([o.t,i.t]);return}var n=splitData(o),s=splitData(i);intersectsImpl(n[0],s[0],a+1,t,r,e),intersectsImpl(n[0],s[1],a+1,t,r,e),intersectsImpl(n[1],s[0],a+1,t,r,e),intersectsImpl(n[1],s[1],a+1,t,r,e)}PolynomialBezier.prototype.intersections=function(o,i,a){if(i===void 0)i=2;if(a===void 0)a=7;var t=[];return intersectsImpl(intersectData(this,0,1),intersectData(o,0,1),0,i,t,a),t},PolynomialBezier.shapeSegment=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[i],o.o[i],o.i[a],o.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(o,i){var a=(i+1)%o.length();return new PolynomialBezier(o.v[a],o.i[a],o.o[i],o.v[i],!0)};function crossProduct(o,i){return[o[1]*i[2]-o[2]*i[1],o[2]*i[0]-o[0]*i[2],o[0]*i[1]-o[1]*i[0]]}function lineIntersection(o,i,a,t){var r=[o[0],o[1],1],e=[i[0],i[1],1],n=[a[0],a[1],1],s=[t[0],t[1],1],l=crossProduct(crossProduct(r,e),crossProduct(n,s));if(floatZero(l[2]))return null;return[l[0]/l[2],l[1]/l[2]]}function polarOffset(o,i,a){return[o[0]+Math.cos(i)*a,o[1]-Math.sin(i)*a]}function pointDistance(o,i){return Math.hypot(o[0]-i[0],o[1]-i[1])}function pointEqual(o,i){return floatEqual(o[0],i[0])&&floatEqual(o[1],i[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(o,i.s,0,null,this),this.frequency=PropertyFactory.getProp(o,i.r,0,null,this),this.pointsType=PropertyFactory.getProp(o,i.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(o,i,a,t,r,e,n){var s=a-Math.PI/2,l=a+Math.PI/2,h=i[0]+Math.cos(a)*t*r,g=i[1]-Math.sin(a)*t*r;o.setTripleAt(h,g,h+Math.cos(s)*e,g-Math.sin(s)*e,h+Math.cos(l)*n,g-Math.sin(l)*n,o.length())}function getPerpendicularVector(o,i){var a=[i[0]-o[0],i[1]-o[1]],t=-Math.PI*0.5,r=[Math.cos(t)*a[0]-Math.sin(t)*a[1],Math.sin(t)*a[0]+Math.cos(t)*a[1]];return r}function getProjectingAngle(o,i){var a=i===0?o.length()-1:i-1,t=(i+1)%o.length(),r=o.v[a],e=o.v[t],n=getPerpendicularVector(r,e);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(o,i,a,t,r,e,n){var s=getProjectingAngle(i,a),l=i.v[a%i._length],h=i.v[a===0?i._length-1:a-1],g=i.v[(a+1)%i._length],H=e===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=e===2?Math.sqrt(Math.pow(l[0]-g[0],2)+Math.pow(l[1]-g[1],2)):0;setPoint(o,i.v[a%i._length],s,n,t,f/((r+1)*2),H/((r+1)*2),e)}function zigZagSegment(o,i,a,t,r,e){for(var n=0;n<t;n+=1){var s=(n+1)/(t+1),l=r===2?Math.sqrt(Math.pow(i.points[3][0]-i.points[0][0],2)+Math.pow(i.points[3][1]-i.points[0][1],2)):0,h=i.normalAngle(s),g=i.point(s);setPoint(o,g,h,e,a,l/((t+1)*2),l/((t+1)*2),r),e=-e}return e}ZigZagModifier.prototype.processPath=function(o,i,a,t){var r=o._length,e=shapePool.newElement();if(e.c=o.c,!o.c)r-=1;if(r===0)return e;var n=-1,s=PolynomialBezier.shapeSegment(o,0);zigZagCorner(e,o,0,i,a,t,n);for(var l=0;l<r;l+=1){if(n=zigZagSegment(e,s,i,a,t,-n),l===r-1&&!o.c)s=null;else s=PolynomialBezier.shapeSegment(o,(l+1)%r);zigZagCorner(e,o,l+1,i,a,t,n)}return e},ZigZagModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amplitude.v,s=Math.max(0,Math.round(this.frequency.v)),l=this.pointsType.v;if(n!==0){var h,g;for(a=0;a<t;a+=1){if(h=this.shapes[a],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)g.addShape(this.processPath(i[r],n,s,l))}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function linearOffset(o,i,a){var t=Math.atan2(i[0]-o[0],i[1]-o[1]);return[polarOffset(o,t,a),polarOffset(i,t,a)]}function offsetSegment(o,i){var a,t,r,e,n,s,l;l=linearOffset(o.points[0],o.points[1],i),a=l[0],t=l[1],l=linearOffset(o.points[1],o.points[2],i),r=l[0],e=l[1],l=linearOffset(o.points[2],o.points[3],i),n=l[0],s=l[1];var h=lineIntersection(a,t,r,e);if(h===null)h=t;var g=lineIntersection(n,s,r,e);if(g===null)g=n;return new PolynomialBezier(a,h,g,s)}function joinLines(o,i,a,t,r){var e=i.points[3],n=a.points[0];if(t===3)return e;if(pointEqual(e,n))return e;if(t===2){var s=-i.tangentAngle(1),l=-a.tangentAngle(0)+Math.PI,h=lineIntersection(e,polarOffset(e,s+Math.PI/2,100),n,polarOffset(n,s+Math.PI/2,100)),g=h?pointDistance(h,e):pointDistance(e,n)/2,H=polarOffset(e,s,2*g*roundCorner);return o.setXYAt(H[0],H[1],"o",o.length()-1),H=polarOffset(n,l,2*g*roundCorner),o.setTripleAt(n[0],n[1],n[0],n[1],H[0],H[1],o.length()),n}var f=pointEqual(e,i.points[2])?i.points[0]:i.points[2],y=pointEqual(n,a.points[1])?a.points[3]:a.points[1],z=lineIntersection(f,e,n,y);if(z&&pointDistance(z,e)<r)return o.setTripleAt(z[0],z[1],z[0],z[1],z[0],z[1],o.length()),z;return e}function getIntersection(o,i){var a=o.intersections(i);if(a.length&&floatEqual(a[0][0],1))a.shift();if(a.length)return a[0];return null}function pruneSegmentIntersection(o,i){var a=o.slice(),t=i.slice(),r=getIntersection(o[o.length-1],i[0]);if(r)a[o.length-1]=o[o.length-1].split(r[0])[0],t[0]=i[0].split(r[1])[1];if(o.length>1&&i.length>1){if(r=getIntersection(o[0],i[i.length-1]),r)return[[o[0].split(r[0])[0]],[i[i.length-1].split(r[1])[1]]]}return[a,t]}function pruneIntersections(o){var i;for(var a=1;a<o.length;a+=1)i=pruneSegmentIntersection(o[a-1],o[a]),o[a-1]=i[0],o[a]=i[1];if(o.length>1)i=pruneSegmentIntersection(o[o.length-1],o[0]),o[o.length-1]=i[0],o[0]=i[1];return o}function offsetSegmentSplit(o,i){var a=o.inflectionPoints(),t,r,e,n;if(a.length===0)return[offsetSegment(o,i)];if(a.length===1||floatEqual(a[1],1))return e=o.split(a[0]),t=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(r,i)];e=o.split(a[0]),t=e[0];var s=(a[1]-a[0])/(1-a[0]);return e=e[1].split(s),n=e[0],r=e[1],[offsetSegment(t,i),offsetSegment(n,i),offsetSegment(r,i)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(o,i){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(o,i.a,0,null,this),this.miterLimit=PropertyFactory.getProp(o,i.ml,0,null,this),this.lineJoin=i.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(o,i,a,t){var r=shapePool.newElement();r.c=o.c;var e=o.length();if(!o.c)e-=1;var n,s,l,h=[];for(n=0;n<e;n+=1)l=PolynomialBezier.shapeSegment(o,n),h.push(offsetSegmentSplit(l,i));if(!o.c)for(n=e-1;n>=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(o,n),h.push(offsetSegmentSplit(l,i));h=pruneIntersections(h);var g=null,H=null;for(n=0;n<h.length;n+=1){var f=h[n];if(H)g=joinLines(r,H,f[0],a,t);H=f[f.length-1];for(s=0;s<f.length;s+=1){if(l=f[s],g&&pointEqual(l.points[0],g))r.setXYAt(l.points[1][0],l.points[1][1],"o",r.length()-1);else r.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],r.length());r.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],r.length()),g=l.points[3]}}if(h.length)joinLines(r,H,h[0][0],a,t);return r},OffsetPathModifier.prototype.processShapes=function(o){var i,a,t=this.shapes.length,r,e,n=this.amount.v,s=this.miterLimit.v,l=this.lineJoin;if(n!==0){var h,g;for(a=0;a<t;a+=1){if(h=this.shapes[a],g=h.localShapeCollection,!(!h.shape._mdf&&!this._mdf&&!o)){g.releaseShapes(),h.shape._mdf=!0,i=h.shape.paths.shapes,e=h.shape.paths._length;for(r=0;r<e;r+=1)g.addShape(this.processPath(i[r],n,l,s))}h.shape.paths=h.localShapeCollection}}if(!this.dynamicProperties.length)this._mdf=!1};function getFontProperties(o){var i=o.fStyle?o.fStyle.split(" "):[],a="normal",t="normal",r=i.length,e;for(var n=0;n<r;n+=1)switch(e=i[n].toLowerCase(),e){case"italic":t="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200";break;default:break}return{style:t,weight:o.fWeight||a}}var FontManager=function(){var o=5000,i={w:0,size:0,shapes:[],data:{shapes:[]}},a=[];a=a.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var t=127988,r=917631,e=917601,n=917626,s=65039,l=8205,h=127462,g=127487,H=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(x){var K=x.split(","),c,m=K.length,Q=[];for(c=0;c<m;c+=1)if(K[c]!=="sans-serif"&&K[c]!=="monospace")Q.push(K[c]);return Q.join(",")}function y(x,K){var c=createTag("span");c.setAttribute("aria-hidden",!0),c.style.fontFamily=K;var m=createTag("span");m.innerText="giItT1WQy@!-/#",c.style.position="absolute",c.style.left="-10000px",c.style.top="-10000px",c.style.fontSize="300px",c.style.fontVariant="normal",c.style.fontStyle="normal",c.style.fontWeight="normal",c.style.letterSpacing="0",c.appendChild(m),document.body.appendChild(c);var Q=m.offsetWidth;return m.style.fontFamily=f(x)+", "+K,{node:m,w:Q,parent:c}}function z(){var x,K=this.fonts.length,c,m,Q=K;for(x=0;x<K;x+=1)if(this.fonts[x].loaded)Q-=1;else if(this.fonts[x].fOrigin==="n"||this.fonts[x].origin===0)this.fonts[x].loaded=!0;else{if(c=this.fonts[x].monoCase.node,m=this.fonts[x].monoCase.w,c.offsetWidth!==m)Q-=1,this.fonts[x].loaded=!0;else if(c=this.fonts[x].sansCase.node,m=this.fonts[x].sansCase.w,c.offsetWidth!==m)Q-=1,this.fonts[x].loaded=!0;if(this.fonts[x].loaded)this.fonts[x].sansCase.parent.parentNode.removeChild(this.fonts[x].sansCase.parent),this.fonts[x].monoCase.parent.parentNode.removeChild(this.fonts[x].monoCase.parent)}if(Q!==0&&Date.now()-this.initTime<o)setTimeout(this.checkLoadedFontsBinded,20);else setTimeout(this.setIsLoadedBinded,10)}function v(x,K){var c=document.body&&K?"svg":"canvas",m,Q=getFontProperties(x);if(c==="svg"){var Y=createNS("text");if(Y.style.fontSize="100px",Y.setAttribute("font-family",x.fFamily),Y.setAttribute("font-style",Q.style),Y.setAttribute("font-weight",Q.weight),Y.textContent="1",x.fClass)Y.style.fontFamily="inherit",Y.setAttribute("class",x.fClass);else Y.style.fontFamily=x.fFamily;K.appendChild(Y),m=Y}else{var T=new OffscreenCanvas(500,500).getContext("2d");T.font=Q.style+" "+Q.weight+" 100px "+x.fFamily,m=T}function M(E){if(c==="svg")return m.textContent=E,m.getComputedTextLength();return m.measureText(E).width}return{measureText:M}}function U(x,K){if(!x){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=x.list;return}if(!document.body){this.isLoaded=!0,x.list.forEach(function(yo){yo.helper=v(yo),yo.cache={}}),this.fonts=x.list;return}var c=x.list,m,Q=c.length,Y=Q;for(m=0;m<Q;m+=1){var T=!0,M,E;if(c[m].loaded=!1,c[m].monoCase=y(c[m].fFamily,"monospace"),c[m].sansCase=y(c[m].fFamily,"sans-serif"),!c[m].fPath)c[m].loaded=!0,Y-=1;else if(c[m].fOrigin==="p"||c[m].origin===3){if(M=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[m].fFamily+'"], style[f-origin="3"][f-family="'+c[m].fFamily+'"]'),M.length>0)T=!1;if(T){var oo=createTag("style");oo.setAttribute("f-forigin",c[m].fOrigin),oo.setAttribute("f-origin",c[m].origin),oo.setAttribute("f-family",c[m].fFamily),oo.type="text/css",oo.innerText="@font-face {font-family: "+c[m].fFamily+"; font-style: normal; src: url('"+c[m].fPath+"');}",K.appendChild(oo)}}else if(c[m].fOrigin==="g"||c[m].origin===1){M=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');for(E=0;E<M.length;E+=1)if(M[E].href.indexOf(c[m].fPath)!==-1)T=!1;if(T){var io=createTag("link");io.setAttribute("f-forigin",c[m].fOrigin),io.setAttribute("f-origin",c[m].origin),io.type="text/css",io.rel="stylesheet",io.href=c[m].fPath,document.body.appendChild(io)}}else if(c[m].fOrigin==="t"||c[m].origin===2){M=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');for(E=0;E<M.length;E+=1)if(c[m].fPath===M[E].src)T=!1;if(T){var lo=createTag("link");lo.setAttribute("f-forigin",c[m].fOrigin),lo.setAttribute("f-origin",c[m].origin),lo.setAttribute("rel","stylesheet"),lo.setAttribute("href",c[m].fPath),K.appendChild(lo)}}c[m].helper=v(c[m],K),c[m].cache={},this.fonts.push(c[m])}if(Y===0)this.isLoaded=!0;else setTimeout(this.checkLoadedFonts.bind(this),100)}function b(x){if(!x)return;if(!this.chars)this.chars=[];var K,c=x.length,m,Q=this.chars.length,Y;for(K=0;K<c;K+=1){m=0,Y=!1;while(m<Q){if(this.chars[m].style===x[K].style&&this.chars[m].fFamily===x[K].fFamily&&this.chars[m].ch===x[K].ch)Y=!0;m+=1}if(!Y)this.chars.push(x[K]),Q+=1}}function u(x,K,c){var m=0,Q=this.chars.length;while(m<Q){if(this.chars[m].ch===x&&this.chars[m].style===K&&this.chars[m].fFamily===c)return this.chars[m];m+=1}if((typeof x==="string"&&x.charCodeAt(0)!==13||!x)&&console&&console.warn&&!this._warned)this._warned=!0,console.warn("Missing character from exported characters list: ",x,K,c);return i}function p(x,K,c){var m=this.getFontByName(K),Q=x;if(!m.cache[Q]){var Y=m.helper;if(x===" "){var T=Y.measureText("|"+x+"|"),M=Y.measureText("||");m.cache[Q]=(T-M)/100}else m.cache[Q]=Y.measureText(x)/100}return m.cache[Q]*c}function k(x){var K=0,c=this.fonts.length;while(K<c){if(this.fonts[K].fName===x)return this.fonts[K];K+=1}return this.fonts[0]}function R(x){var K=0,c=x.charCodeAt(0);if(c>=55296&&c<=56319){var m=x.charCodeAt(1);if(m>=56320&&m<=57343)K=(c-55296)*1024+m-56320+65536}return K}function V(x,K){var c=x.toString(16)+K.toString(16);return H.indexOf(c)!==-1}function L(x){return x===l}function w(x){return x===s}function Z(x){var K=R(x);if(K>=h&&K<=g)return!0;return!1}function I(x){return Z(x.substr(0,2))&&Z(x.substr(2,2))}function F(x){return a.indexOf(x)!==-1}function J(x,K){var c=R(x.substr(K,2));if(c!==t)return!1;var m=0;K+=2;while(m<5){if(c=R(x.substr(K,2)),c<e||c>n)return!1;m+=1,K+=2}return R(x.substr(K,2))===r}function C(){this.isLoaded=!0}var j=function x(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};j.isModifier=V,j.isZeroWidthJoiner=L,j.isFlagEmoji=I,j.isRegionalCode=Z,j.isCombinedCharacter=F,j.isRegionalFlag=J,j.isVariationSelector=w,j.BLACK_FLAG_CODE_POINT=t;var W={addChars:b,addFonts:U,getCharData:u,getFontByName:k,measureText:p,checkLoadedFonts:z,setIsLoaded:C};return j.prototype=W,j}();function SlotManager(o){this.animationData=o}SlotManager.prototype.getProp=function(o){if(this.animationData.slots&&this.animationData.slots[o.sid])return Object.assign(o,this.animationData.slots[o.sid].p);return o};function slotFactory(o){return new SlotManager(o)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function o(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)===-1)this.renderableComponents.push(i)},removeRenderableComponent:function o(i){if(this.renderableComponents.indexOf(i)!==-1)this.renderableComponents.splice(this.renderableComponents.indexOf(i),1)},prepareRenderableFrame:function o(i){this.checkLayerLimits(i)},checkTransparency:function o(){if(this.finalTransform.mProp.o.v<=0){if(!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent)this.isTransparent=!0,this.hide()}else if(this.isTransparent)this.isTransparent=!1,this.show()},checkLayerLimits:function o(i){if(this.data.ip-this.data.st<=i&&this.data.op-this.data.st>i){if(this.isInRange!==!0)this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()}else if(this.isInRange!==!1)this.globalData._mdf=!0,this.isInRange=!1,this.hide()},renderRenderable:function o(){var i,a=this.renderableComponents.length;for(i=0;i<a;i+=1)this.renderableComponents[i].renderFrame(this._isFirstFrame)},sourceRectAtTime:function o(){return{top:0,left:0,width:100,height:100}},getLayerSize:function o(){if(this.data.ty===5)return{w:this.data.textData.width,h:this.data.textData.height};return{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var o={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(i){return o[i]||""}}();function SliderEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function AngleEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function ColorEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function PointEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,1,0,a)}function LayerIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function MaskIndexEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function CheckboxEffect(o,i,a){this.p=PropertyFactory.getProp(i,o.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(o,i){var a=o.ef||[];this.effectElements=[];var t,r=a.length,e;for(t=0;t<r;t+=1)e=new GroupEffect(a[t],i),this.effectElements.push(e)}function GroupEffect(o,i){this.init(o,i)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(o,i){this.data=o,this.effectElements=[],this.initDynamicPropertyContainer(i);var a,t=this.data.ef.length,r,e=this.data.ef;for(a=0;a<t;a+=1){switch(r=null,e[a].ty){case 0:r=new SliderEffect(e[a],i,this);break;case 1:r=new AngleEffect(e[a],i,this);break;case 2:r=new ColorEffect(e[a],i,this);break;case 3:r=new PointEffect(e[a],i,this);break;case 4:case 7:r=new CheckboxEffect(e[a],i,this);break;case 10:r=new LayerIndexEffect(e[a],i,this);break;case 11:r=new MaskIndexEffect(e[a],i,this);break;case 5:r=new EffectsManager(e[a],i,this);break;default:r=new NoValueEffect(e[a],i,this);break}if(r)this.effectElements.push(r)}};function BaseElement(){}BaseElement.prototype={checkMasks:function o(){if(!this.data.hasMask)return!1;var i=0,a=this.data.masksProperties.length;while(i<a){if(this.data.masksProperties[i].mode!=="n"&&this.data.masksProperties[i].cl!==!1)return!0;i+=1}return!1},initExpressions:function o(){var i=getExpressionInterfaces();if(!i)return;var a=i("layer"),t=i("effects"),r=i("shape"),e=i("text"),n=i("comp");if(this.layerInterface=a(this),this.data.hasMask&&this.maskManager)this.layerInterface.registerMaskInterface(this.maskManager);var s=t.createEffectsInterface(this,this.layerInterface);if(this.layerInterface.registerEffectsInterface(s),this.data.ty===0||this.data.xt)this.compInterface=n(this);else if(this.data.ty===4)this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface;else if(this.data.ty===5)this.layerInterface.textInterface=e(this),this.layerInterface.text=this.layerInterface.textInterface},setBlendMode:function o(){var i=getBlendMode(this.data.bm),a=this.baseElement||this.layerElement;a.style["mix-blend-mode"]=i},initBaseData:function o(i,a,t){if(this.globalData=a,this.comp=t,this.data=i,this.layerId=createElementID(),!this.data.sr)this.data.sr=1;this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function o(){return this.type},sourceRectAtTime:function o(){}};function FrameElement(){}FrameElement.prototype={initFrame:function o(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function o(i,a){var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)if(a||this._isParent&&this.dynamicProperties[t].propType==="transform"){if(this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf)this.globalData._mdf=!0,this._mdf=!0}},addDynamicProperty:function o(i){if(this.dynamicProperties.indexOf(i)===-1)this.dynamicProperties.push(i)}};function FootageElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.footageData=i.imageLoader.getAsset(this.assetData),this.initBaseData(o,i,a)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var o=getExpressionInterfaces();if(!o)return;var i=o("footage");this.layerInterface=i(this)},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(o,i,a){this.initFrame(),this.initRenderable(),this.assetData=i.getAssetData(o.refId),this.initBaseData(o,i,a),this._isPlaying=!1,this._canPlay=!1;var t=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(t),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,o.au&&o.au.lv?o.au.lv:{k:[100]},1,0.01,this)}AudioElement.prototype.prepareFrame=function(o){if(this.prepareRenderableFrame(o,!0),this.prepareProperties(o,!0),!this.tm._placeholder){var i=this.tm.v;this._currentTime=i}else this._currentTime=o/this.data.sr;this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;if(this._previousVolume!==a)this._previousVolume=a,this.audio.volume(a)},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){if(this.isInRange&&this._canPlay){if(!this._isPlaying)this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0;else if(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>0.1)this.audio.seek(this._currentTime/this.globalData.frameRate)}},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(o){this.audio.rate(o)},AudioElement.prototype.volume=function(o){this._volumeMultiplier=o,this._previousVolume=o*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(o){var i,a=this.layers.length,t;this.completeLayers=!0;for(i=a-1;i>=0;i-=1){if(!this.elements[i]){if(t=this.layers[i],t.ip-t.st<=o-this.layers[i].st&&t.op-t.st>o-this.layers[i].st)this.buildItem(i)}this.completeLayers=this.elements[i]?this.completeLayers:!1}this.checkPendingElements()},BaseRenderer.prototype.createItem=function(o){switch(o.ty){case 2:return this.createImage(o);case 0:return this.createComp(o);case 1:return this.createSolid(o);case 3:return this.createNull(o);case 4:return this.createShape(o);case 5:return this.createText(o);case 6:return this.createAudio(o);case 13:return this.createCamera(o);case 15:return this.createFootage(o);default:return this.createNull(o)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(o){return new AudioElement(o,this.globalData,this)},BaseRenderer.prototype.createFootage=function(o){return new FootageElement(o,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)this.buildItem(o);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(o){this.completeLayers=!1;var i,a=o.length,t,r=this.layers.length;for(i=0;i<a;i+=1){t=0;while(t<r){if(this.layers[t].id===o[i].id){this.layers[t]=o[i];break}t+=1}}},BaseRenderer.prototype.setProjectInterface=function(o){this.globalData.projectInterface=o},BaseRenderer.prototype.initItems=function(){if(!this.globalData.progressiveLoad)this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(o,i,a){var t=this.elements,r=this.layers,e=0,n=r.length;while(e<n){if(r[e].ind==i)if(!t[e]||t[e]===!0)this.buildItem(e),this.addPendingElement(o);else if(a.push(t[e]),t[e].setAsParent(),r[e].parent!==void 0)this.buildElementParenting(o,r[e].parent,a);else o.setHierarchy(a);e+=1}},BaseRenderer.prototype.addPendingElement=function(o){this.pendingElements.push(o)},BaseRenderer.prototype.searchExtraCompositions=function(o){var i,a=o.length;for(i=0;i<a;i+=1)if(o[i].xt){var t=this.createComp(o[i]);t.initExpressions(),this.globalData.projectInterface.registerComposition(t)}},BaseRenderer.prototype.getElementById=function(o){var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.ind===o)return this.elements[i];return null},BaseRenderer.prototype.getElementByPath=function(o){var i=o.shift(),a;if(typeof i==="number")a=this.elements[i];else{var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.nm===i){a=this.elements[t];break}}if(o.length===0)return a;return a.getElementByPath(o)},BaseRenderer.prototype.setupGlobalData=function(o,i){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(o),this.globalData.fontManager.addChars(o.chars),this.globalData.fontManager.addFonts(o.fonts,i),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=o.fr,this.globalData.nm=o.nm,this.globalData.compSize={w:o.w,h:o.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function o(){var i=new Matrix;if(this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:i,localMat:i,localOpacity:1},this.data.ao)this.finalTransform.mProp.autoOriented=!0;if(this.data.ty!==11);},renderTransform:function o(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var i,a=this.finalTransform.mat,t=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)while(t<r){if(this.hierarchy[t].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}t+=1}if(this.finalTransform._matMdf){i=this.finalTransform.mProp.v.props,a.cloneFromProps(i);for(t=0;t<r;t+=1)a.multiply(this.hierarchy[t].finalTransform.mProp.v)}}if(!this.localTransforms||this.finalTransform._matMdf)this.finalTransform._localMatMdf=this.finalTransform._matMdf;if(this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v},renderLocalTransform:function o(){if(this.localTransforms){var i=0,a=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)while(i<a){if(this.localTransforms[i]._mdf)this.finalTransform._localMatMdf=!0;if(this.localTransforms[i]._opMdf&&!this.finalTransform._opMdf)this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0;i+=1}if(this.finalTransform._localMatMdf){var t=this.finalTransform.localMat;this.localTransforms[0].matrix.clone(t);for(i=1;i<a;i+=1){var r=this.localTransforms[i].matrix;t.multiply(r)}t.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var e=this.finalTransform.localOpacity;for(i=0;i<a;i+=1)e*=this.localTransforms[i].opacity*0.01;this.finalTransform.localOpacity=e}}},searchEffectTransforms:function o(){if(this.renderableEffectsManager){var i=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(i.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var a=0,t=i.length;for(a=0;a<t;a+=1)this.localTransforms.push(i[a])}}},globalToLocal:function o(i){var a=[];a.push(this.finalTransform);var t=!0,r=this.comp;while(t)if(r.finalTransform){if(r.data.hasMask)a.splice(0,0,r.finalTransform);r=r.comp}else t=!1;var e,n=a.length,s;for(e=0;e<n;e+=1)s=a[e].mat.applyToPointArray(0,0,0),i=[i[0]-s[0],i[1]-s[1],0];return i},mHelper:new Matrix};function MaskElement(o,i,a){this.data=o,this.element=i,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var t=this.globalData.defs,r,e=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(e),this.solidPath="";var n,s=this.masksProperties,l=0,h=[],g,H,f=createElementID(),y,z,v,U,b="clipPath",u="clip-path";for(r=0;r<e;r+=1){if(s[r].mode!=="a"&&s[r].mode!=="n"||s[r].inv||s[r].o.k!==100||s[r].o.x)b="mask",u="mask";if((s[r].mode==="s"||s[r].mode==="i")&&l===0)y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),h.push(y);else y=null;if(n=createNS("path"),s[r].mode==="n")this.viewData[r]={op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),elem:n,lastPath:""},t.appendChild(n);else{l+=1,n.setAttribute("fill",s[r].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero");var p;if(s[r].x.k!==0)b="mask",u="mask",U=PropertyFactory.getProp(this.element,s[r].x,0,null,this.element),p=createElementID(),z=createNS("filter"),z.setAttribute("id",p),v=createNS("feMorphology"),v.setAttribute("operator","erode"),v.setAttribute("in","SourceGraphic"),v.setAttribute("radius","0"),z.appendChild(v),t.appendChild(z),n.setAttribute("stroke",s[r].mode==="s"?"#000000":"#ffffff");else v=null,U=null;if(this.storedData[r]={elem:n,x:U,expan:v,lastPath:"",lastOperator:"",filterId:p,lastRadius:0},s[r].mode==="i"){H=h.length;var k=createNS("g");for(g=0;g<H;g+=1)k.appendChild(h[g]);var R=createNS("mask");R.setAttribute("mask-type","alpha"),R.setAttribute("id",f+"_"+l),R.appendChild(n),t.appendChild(R),k.setAttribute("mask","url("+getLocationHref()+"#"+f+"_"+l+")"),h.length=0,h.push(k)}else h.push(n);if(s[r].inv&&!this.solidPath)this.solidPath=this.createLayerSolidPath();if(this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,s[r].o,0,0.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[r],3),invRect:y},!this.viewData[r].prop.k)this.drawPath(s[r],this.viewData[r].prop.v,this.viewData[r])}}this.maskElement=createNS(b),e=h.length;for(r=0;r<e;r+=1)this.maskElement.appendChild(h[r]);if(l>0)this.maskElement.setAttribute("id",f),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+f+")"),t.appendChild(this.maskElement);if(this.viewData.length)this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(o){return this.viewData[o].prop},MaskElement.prototype.renderFrame=function(o){var i=this.element.finalTransform.mat,a,t=this.masksProperties.length;for(a=0;a<t;a+=1){if(this.viewData[a].prop._mdf||o)this.drawPath(this.masksProperties[a],this.viewData[a].prop.v,this.viewData[a]);if(this.viewData[a].op._mdf||o)this.viewData[a].elem.setAttribute("fill-opacity",this.viewData[a].op.v);if(this.masksProperties[a].mode!=="n"){if(this.viewData[a].invRect&&(this.element.finalTransform.mProp._mdf||o))this.viewData[a].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS());if(this.storedData[a].x&&(this.storedData[a].x._mdf||o)){var r=this.storedData[a].expan;if(this.storedData[a].x.v<0){if(this.storedData[a].lastOperator!=="erode")this.storedData[a].lastOperator="erode",this.storedData[a].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[a].filterId+")");r.setAttribute("radius",-this.storedData[a].x.v)}else{if(this.storedData[a].lastOperator!=="dilate")this.storedData[a].lastOperator="dilate",this.storedData[a].elem.setAttribute("filter",null);this.storedData[a].elem.setAttribute("stroke-width",this.storedData[a].x.v*2)}}}}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var o="M0,0 ";return o+=" h"+this.globalData.compSize.w,o+=" v"+this.globalData.compSize.h,o+=" h-"+this.globalData.compSize.w,o+=" v-"+this.globalData.compSize.h+" ",o},MaskElement.prototype.drawPath=function(o,i,a){var t=" M"+i.v[0][0]+","+i.v[0][1],r,e;e=i._length;for(r=1;r<e;r+=1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[r][0]+","+i.i[r][1]+" "+i.v[r][0]+","+i.v[r][1];if(i.c&&e>1)t+=" C"+i.o[r-1][0]+","+i.o[r-1][1]+" "+i.i[0][0]+","+i.i[0][1]+" "+i.v[0][0]+","+i.v[0][1];if(a.lastPath!==t){var n="";if(a.elem){if(i.c)n=o.inv?this.solidPath+t:t;a.elem.setAttribute("d",n)}a.lastPath=t}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var o={};o.createFilter=i,o.createAlphaToLuminanceFilter=a;function i(t,r){var e=createNS("filter");if(e.setAttribute("id",t),r!==!0)e.setAttribute("filterUnits","objectBoundingBox"),e.setAttribute("x","0%"),e.setAttribute("y","0%"),e.setAttribute("width","100%"),e.setAttribute("height","100%");return e}function a(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),t}return o}(),featureSupport=function(){var o={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas!=="undefined"};if(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))o.maskType=!1;if(/firefox/i.test(navigator.userAgent))o.svgLumaHidden=!1;return o}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(o){var i,a="SourceGraphic",t=o.data.ef?o.data.ef.length:0,r=createElementID(),e=filtersFactory.createFilter(r,!0),n=0;this.filters=[];var s;for(i=0;i<t;i+=1){s=null;var l=o.data.ef[i].ty;if(registeredEffects$1[l]){var h=registeredEffects$1[l].effect;if(s=new h(e,o.effectsManager.effectElements[i],o,idPrefix+n,a),a=idPrefix+n,registeredEffects$1[l].countsAsEffect)n+=1}if(s)this.filters.push(s)}if(n)o.globalData.defs.appendChild(e),o.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+r+")");if(this.filters.length)o.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},SVGEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect$1(o,i,a){registeredEffects$1[o]={effect:i,countsAsEffect:a}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function o(){this.layerElement=createNS("g")},createContainerElements:function o(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var i=null;if(this.data.td){this.matteMasks={};var a=createNS("g");a.setAttribute("id",this.layerId),a.appendChild(this.layerElement),i=a,this.globalData.defs.appendChild(a)}else if(this.data.tt)this.matteElement.appendChild(this.layerElement),i=this.matteElement,this.baseElement=this.matteElement;else this.baseElement=this.layerElement;if(this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.ty===0&&!this.data.hd){var t=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var e=createElementID();if(t.setAttribute("id",e),t.appendChild(r),this.globalData.defs.appendChild(t),this.checkMasks()){var n=createNS("g");if(n.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")"),n.appendChild(this.layerElement),this.transformedElement=n,i)i.appendChild(this.transformedElement);else this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+e+")")}if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){if(this.finalTransform._localMatMdf)this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS());if(this.finalTransform._opMdf)this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function o(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function o(){if(this.data.hd)return null;return this.baseElement},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function o(i){if(!this.matteMasks)this.matteMasks={};if(!this.matteMasks[i]){var a=this.layerId+"_"+i,t,r,e,n;if(i===1||i===3){var s=createNS("mask");if(s.setAttribute("id",a),s.setAttribute("mask-type",i===3?"luminance":"alpha"),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),s.appendChild(e),this.globalData.defs.appendChild(s),!featureSupport.maskType&&i===1)s.setAttribute("mask-type","luminance"),t=createElementID(),r=filtersFactory.createFilter(t),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),n.appendChild(e),s.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")")}else if(i===2){var l=createNS("mask");l.setAttribute("id",a),l.setAttribute("mask-type","alpha");var h=createNS("g");l.appendChild(h),t=createElementID(),r=filtersFactory.createFilter(t);var g=createNS("feComponentTransfer");g.setAttribute("in","SourceGraphic"),r.appendChild(g);var H=createNS("feFuncA");H.setAttribute("type","table"),H.setAttribute("tableValues","1.0 0.0"),g.appendChild(H),this.globalData.defs.appendChild(r);var f=createNS("rect");if(f.setAttribute("width",this.comp.data.w),f.setAttribute("height",this.comp.data.h),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("fill","#ffffff"),f.setAttribute("opacity","0"),h.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),h.appendChild(f),e=createNS("use"),e.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),h.appendChild(e),!featureSupport.maskType)l.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),h.appendChild(f),n.appendChild(this.layerElement),h.appendChild(n);this.globalData.defs.appendChild(l)}this.matteMasks[i]=a}return this.matteMasks[i]},setMatte:function o(i){if(!this.matteElement)return;this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+i+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function o(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function o(i){this.hierarchy=i},setAsParent:function o(){this._isParent=!0},checkParenting:function o(){if(this.data.parent!==void 0)this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var o={initElement:function i(a,t,r){this.initFrame(),this.initBaseData(a,t,r),this.initTransform(a,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function i(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var a=this.baseElement||this.layerElement;a.style.display="none",this.hidden=!0}},show:function i(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var a=this.baseElement||this.layerElement;a.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function i(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},renderInnerContent:function i(){},prepareFrame:function i(a){this._mdf=!1,this.prepareRenderableFrame(a),this.prepareProperties(a,this.isInRange),this.checkTransparency()},destroy:function i(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(o)],RenderableDOMElement)})();function IImageElement(o,i,a){if(this.assetData=i.getAssetData(o.refId),this.assetData&&this.assetData.sid)this.assetData=i.slotManager.getProp(this.assetData);this.initElement(o,i,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(o,i){this.elem=o,this.pos=i}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function o(i){var a,t=this.shapeModifiers.length;for(a=0;a<t;a+=1)this.shapeModifiers[a].addShape(i)},isShapeInAnimatedModifiers:function o(i){var a=0,t=this.shapeModifiers.length;while(a<t)if(this.shapeModifiers[a].isAnimatedWithShape(i))return!0;return!1},renderModifiers:function o(){if(!this.shapeModifiers.length)return;var i,a=this.shapes.length;for(i=0;i<a;i+=1)this.shapes[i].sh.reset();a=this.shapeModifiers.length;var t;for(i=a-1;i>=0;i-=1)if(t=this.shapeModifiers[i].processShapes(this._isFirstFrame),t)break},searchProcessedElement:function o(i){var a=this.processedElements,t=0,r=a.length;while(t<r){if(a[t].elem===i)return a[t].pos;t+=1}return 0},addProcessedElement:function o(i,a){var t=this.processedElements,r=t.length;while(r)if(r-=1,t[r].elem===i){t[r].pos=a;return}t.push(new ProcessedElement(i,a))},prepareFrame:function o(i){this.prepareRenderableFrame(i),this.prepareProperties(i,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(o,i,a){this.caches=[],this.styles=[],this.transformers=o,this.lStr="",this.sh=a,this.lvl=i,this._isAnimated=!!a.k;var t=0,r=o.length;while(t<r){if(o[t].mProps.dynamicProperties.length){this._isAnimated=!0;break}t+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(o,i){this.data=o,this.type=o.ty,this.d="",this.lvl=i,this._mdf=!1,this.closed=o.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(o,i,a,t){this.elem=o,this.frameId=-1,this.dataProps=createSizedArray(i.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",i.length?i.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(t);var r,e=i.length||0,n;for(r=0;r<e;r+=1)n=PropertyFactory.getProp(o,i[r].v,0,0,this),this.k=n.k||this.k,this.dataProps[r]={n:i[r].n,p:n};if(!this.k)this.getValue(!0);this._isAnimated=this.k}DashProperty.prototype.getValue=function(o){if(this.elem.globalData.frameId===this.frameId&&!o)return;if(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||o,this._mdf){var i=0,a=this.dataProps.length;if(this.renderer==="svg")this.dashStr="";for(i=0;i<a;i+=1)if(this.dataProps[i].n!=="o")if(this.renderer==="svg")this.dashStr+=" "+this.dataProps[i].p.v;else this.dashArray[i]=this.dataProps[i].p.v;else this.dashoffset[0]=this.dataProps[i].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.c=PropertyFactory.getProp(o,i.c,1,255,this),this.style=a}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.style=a}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(o,i,a){this.data=i,this.c=createTypedArray("uint8c",i.p*4);var t=i.k.k[0].s?i.k.k[0].s.length-i.p*4:i.k.k.length-i.p*4;this.o=createTypedArray("float32",t),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=t,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(o,i.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(o,i){var a=0,t=this.o.length/2,r;while(a<t){if(r=Math.abs(o[a*4]-o[i*4+a*2]),r>0.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s){var o=0,i=this.data.k.k.length;while(o<i){if(!this.comparePoints(this.data.k.k[o].s,this.data.p))return!1;o+=1}}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(o){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||o){var i,a=this.data.p*4,t,r;for(i=0;i<a;i+=1)if(t=i%4===0?100:255,r=Math.round(this.prop.v[i]*t),this.c[i]!==r)this.c[i]=r,this._cmdf=!o;if(this.o.length){a=this.prop.v.length;for(i=this.data.p*4;i<a;i+=1)if(t=i%2===0?100:1,r=i%2===0?Math.round(this.prop.v[i]*100):this.prop.v[i],this.o[i-this.data.p*4]!==r)this.o[i-this.data.p*4]=r,this._omdf=!o}this._mdf=!o}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.initGradientData(o,i,a)}SVGGradientFillStyleData.prototype.initGradientData=function(o,i,a){this.o=PropertyFactory.getProp(o,i.o,0,0.01,this),this.s=PropertyFactory.getProp(o,i.s,1,null,this),this.e=PropertyFactory.getProp(o,i.e,1,null,this),this.h=PropertyFactory.getProp(o,i.h||{k:0},0,0.01,this),this.a=PropertyFactory.getProp(o,i.a||{k:0},0,degToRads,this),this.g=new GradientProperty(o,i.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,i),this.setGradientOpacity(i,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(o,i){var a=createElementID(),t=createNS(i.t===1?"linearGradient":"radialGradient");t.setAttribute("id",a),t.setAttribute("spreadMethod","pad"),t.setAttribute("gradientUnits","userSpaceOnUse");var r=[],e,n,s;s=i.g.p*4;for(n=0;n<s;n+=4)e=createNS("stop"),t.appendChild(e),r.push(e);o.setAttribute(i.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=t,this.cst=r},SVGGradientFillStyleData.prototype.setGradientOpacity=function(o,i){if(this.g._hasOpacity&&!this.g._collapsable){var a,t,r,e=createNS("mask"),n=createNS("path");e.appendChild(n);var s=createElementID(),l=createElementID();e.setAttribute("id",l);var h=createNS(o.t===1?"linearGradient":"radialGradient");h.setAttribute("id",s),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),r=o.g.k.k[0].s?o.g.k.k[0].s.length:o.g.k.k.length;var g=this.stops;for(t=o.g.p*4;t<r;t+=2)a=createNS("stop"),a.setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(a),g.push(a);if(n.setAttribute(o.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),o.ty==="gs"){if(n.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),o.lj===1)n.setAttribute("stroke-miterlimit",o.ml)}this.of=h,this.ms=e,this.ost=g,this.maskId=l,i.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(o,i,a){this.initDynamicPropertyContainer(o),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(o,i.w,0,null,this),this.d=new DashProperty(o,i.d||{},"svg",this),this.initGradientData(o,i,a),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(o,i,a){this.transform={mProps:o,op:i,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function o(i,a,t,r){if(a===0)return"";var{o:e,i:n,v:s}=i,l,h=" M"+r.applyToPointStringified(s[0][0],s[0][1]);for(l=1;l<a;l+=1)h+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[l][0],n[l][1])+" "+r.applyToPointStringified(s[l][0],s[l][1]);if(t&&a)h+=" C"+r.applyToPointStringified(e[l-1][0],e[l-1][1])+" "+r.applyToPointStringified(n[0][0],n[0][1])+" "+r.applyToPointStringified(s[0][0],s[0][1]),h+="z";return h},SVGElementsRenderer=function(){var o=new Matrix,i=new Matrix,a={createRenderFunction:t};function t(H){switch(H.ty){case"fl":return s;case"gf":return h;case"gs":return l;case"st":return g;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return e;default:return null}}function r(H,f,y){if(y||f.transform.op._mdf)f.transform.container.setAttribute("opacity",f.transform.op.v);if(y||f.transform.mProps._mdf)f.transform.container.setAttribute("transform",f.transform.mProps.v.to2dCSS())}function e(){}function n(H,f,y){var z,v,U,b,u,p,k=f.styles.length,R=f.lvl,V,L,w,Z;for(p=0;p<k;p+=1){if(b=f.sh._mdf||y,f.styles[p].lvl<R){L=i.reset(),w=R-f.styles[p].lvl,Z=f.transformers.length-1;while(!b&&w>0)b=f.transformers[Z].mProps._mdf||b,w-=1,Z-=1;if(b){w=R-f.styles[p].lvl,Z=f.transformers.length-1;while(w>0)L.multiply(f.transformers[Z].mProps.v),w-=1,Z-=1}}else L=o;if(V=f.sh.paths,v=V._length,b){U="";for(z=0;z<v;z+=1)if(u=V.shapes[z],u&&u._length)U+=buildShapeString(u,u._length,u.c,L);f.caches[p]=U}else U=f.caches[p];f.styles[p].d+=H.hd===!0?"":U,f.styles[p]._mdf=b||f.styles[p]._mdf}}function s(H,f,y){var z=f.style;if(f.c._mdf||y)z.pElem.setAttribute("fill","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("fill-opacity",f.o.v)}function l(H,f,y){h(H,f,y),g(H,f,y)}function h(H,f,y){var z=f.gf,v=f.g._hasOpacity,U=f.s.v,b=f.e.v;if(f.o._mdf||y){var u=H.ty==="gf"?"fill-opacity":"stroke-opacity";f.style.pElem.setAttribute(u,f.o.v)}if(f.s._mdf||y){var p=H.t===1?"x1":"cx",k=p==="x1"?"y1":"cy";if(z.setAttribute(p,U[0]),z.setAttribute(k,U[1]),v&&!f.g._collapsable)f.of.setAttribute(p,U[0]),f.of.setAttribute(k,U[1])}var R,V,L,w;if(f.g._cmdf||y){R=f.cst;var Z=f.g.c;L=R.length;for(V=0;V<L;V+=1)w=R[V],w.setAttribute("offset",Z[V*4]+"%"),w.setAttribute("stop-color","rgb("+Z[V*4+1]+","+Z[V*4+2]+","+Z[V*4+3]+")")}if(v&&(f.g._omdf||y)){var I=f.g.o;if(f.g._collapsable)R=f.cst;else R=f.ost;L=R.length;for(V=0;V<L;V+=1){if(w=R[V],!f.g._collapsable)w.setAttribute("offset",I[V*2]+"%");w.setAttribute("stop-opacity",I[V*2+1])}}if(H.t===1){if(f.e._mdf||y){if(z.setAttribute("x2",b[0]),z.setAttribute("y2",b[1]),v&&!f.g._collapsable)f.of.setAttribute("x2",b[0]),f.of.setAttribute("y2",b[1])}}else{var F;if(f.s._mdf||f.e._mdf||y){if(F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2)),z.setAttribute("r",F),v&&!f.g._collapsable)f.of.setAttribute("r",F)}if(f.s._mdf||f.e._mdf||f.h._mdf||f.a._mdf||y){if(!F)F=Math.sqrt(Math.pow(U[0]-b[0],2)+Math.pow(U[1]-b[1],2));var J=Math.atan2(b[1]-U[1],b[0]-U[0]),C=f.h.v;if(C>=1)C=0.99;else if(C<=-1)C=-0.99;var j=F*C,W=Math.cos(J+f.a.v)*j+U[0],x=Math.sin(J+f.a.v)*j+U[1];if(z.setAttribute("fx",W),z.setAttribute("fy",x),v&&!f.g._collapsable)f.of.setAttribute("fx",W),f.of.setAttribute("fy",x)}}}function g(H,f,y){var{style:z,d:v}=f;if(v&&(v._mdf||y)&&v.dashStr)z.pElem.setAttribute("stroke-dasharray",v.dashStr),z.pElem.setAttribute("stroke-dashoffset",v.dashoffset[0]);if(f.c&&(f.c._mdf||y))z.pElem.setAttribute("stroke","rgb("+bmFloor(f.c.v[0])+","+bmFloor(f.c.v[1])+","+bmFloor(f.c.v[2])+")");if(f.o._mdf||y)z.pElem.setAttribute("stroke-opacity",f.o.v);if(f.w._mdf||y){if(z.pElem.setAttribute("stroke-width",f.w.v),z.msElem)z.msElem.setAttribute("stroke-width",f.w.v)}}return a}();function SVGShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(o,i,a),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var o,i=this.shapes.length,a,t,r=this.stylesList.length,e,n=[],s=!1;for(t=0;t<r;t+=1){e=this.stylesList[t],s=!1,n.length=0;for(o=0;o<i;o+=1)if(a=this.shapes[o],a.styles.indexOf(e)!==-1)n.push(a),s=a._isAnimated||s;if(n.length>1&&s)this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(o,i){var a,t=new SVGStyleData(o,i),r=t.pElem;if(o.ty==="st")a=new SVGStrokeStyleData(this,o,t);else if(o.ty==="fl")a=new SVGFillStyleData(this,o,t);else if(o.ty==="gf"||o.ty==="gs"){var e=o.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;if(a=new e(this,o,t),this.globalData.defs.appendChild(a.gf),a.maskId)this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),r.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")")}else if(o.ty==="no")a=new SVGNoStyleData(this,o,t);if(o.ty==="st"||o.ty==="gs"){if(r.setAttribute("stroke-linecap",lineCapEnum[o.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[o.lj||2]),r.setAttribute("fill-opacity","0"),o.lj===1)r.setAttribute("stroke-miterlimit",o.ml)}if(o.r===2)r.setAttribute("fill-rule","evenodd");if(o.ln)r.setAttribute("id",o.ln);if(o.cl)r.setAttribute("class",o.cl);if(o.bm)r.style["mix-blend-mode"]=getBlendMode(o.bm);return this.stylesList.push(t),this.addToAnimatedContents(o,a),a},SVGShapeElement.prototype.createGroupElement=function(o){var i=new ShapeGroupData;if(o.ln)i.gr.setAttribute("id",o.ln);if(o.cl)i.gr.setAttribute("class",o.cl);if(o.bm)i.gr.style["mix-blend-mode"]=getBlendMode(o.bm);return i},SVGShapeElement.prototype.createTransformElement=function(o,i){var a=TransformPropertyFactory.getTransformProperty(this,o,this),t=new SVGTransformData(a,a.o,i);return this.addToAnimatedContents(o,t),t},SVGShapeElement.prototype.createShapeElement=function(o,i,a){var t=4;if(o.ty==="rc")t=5;else if(o.ty==="el")t=6;else if(o.ty==="sr")t=7;var r=ShapePropertyFactory.getShapeProp(this,o,t,this),e=new SVGShapeData(i,a,r);return this.shapes.push(e),this.addShapeToModifiers(e),this.addToAnimatedContents(o,e),e},SVGShapeElement.prototype.addToAnimatedContents=function(o,i){var a=0,t=this.animatedContents.length;while(a<t){if(this.animatedContents[a].element===i)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(o),element:i,data:o})},SVGShapeElement.prototype.setElementStyles=function(o){var i=o.styles,a,t=this.stylesList.length;for(a=0;a<t;a+=1)if(i.indexOf(this.stylesList[a])===-1&&!this.stylesList[a].closed)i.push(this.stylesList[a])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(o,i,a,t,r,e,n){var s=[].concat(e),l,h=o.length-1,g,H,f=[],y=[],z,v,U;for(l=h;l>=0;l-=1){if(U=this.searchProcessedElement(o[l]),!U)o[l]._render=n;else i[l]=a[U-1];if(o[l].ty==="fl"||o[l].ty==="st"||o[l].ty==="gf"||o[l].ty==="gs"||o[l].ty==="no"){if(!U)i[l]=this.createStyleElement(o[l],r);else i[l].style.closed=o[l].hd;if(o[l]._render){if(i[l].style.pElem.parentNode!==t)t.appendChild(i[l].style.pElem)}f.push(i[l].style)}else if(o[l].ty==="gr"){if(!U)i[l]=this.createGroupElement(o[l]);else{H=i[l].it.length;for(g=0;g<H;g+=1)i[l].prevViewData[g]=i[l].it[g]}if(this.searchShapes(o[l].it,i[l].it,i[l].prevViewData,i[l].gr,r+1,s,n),o[l]._render){if(i[l].gr.parentNode!==t)t.appendChild(i[l].gr)}}else if(o[l].ty==="tr"){if(!U)i[l]=this.createTransformElement(o[l],t);z=i[l].transform,s.push(z)}else if(o[l].ty==="sh"||o[l].ty==="rc"||o[l].ty==="el"||o[l].ty==="sr"){if(!U)i[l]=this.createShapeElement(o[l],s,r);this.setElementStyles(i[l])}else if(o[l].ty==="tm"||o[l].ty==="rd"||o[l].ty==="ms"||o[l].ty==="pb"||o[l].ty==="zz"||o[l].ty==="op"){if(!U)v=ShapeModifiers.getModifier(o[l].ty),v.init(this,o[l]),i[l]=v,this.shapeModifiers.push(v);else v=i[l],v.closed=!1;y.push(v)}else if(o[l].ty==="rp"){if(!U)v=ShapeModifiers.getModifier(o[l].ty),i[l]=v,v.init(this,o,l,i),this.shapeModifiers.push(v),n=!1;else v=i[l],v.closed=!0;y.push(v)}this.addProcessedElement(o[l],l+1)}h=f.length;for(l=0;l<h;l+=1)f[l].closed=!0;h=y.length;for(l=0;l<h;l+=1)y[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var o,i=this.stylesList.length;for(o=0;o<i;o+=1)this.stylesList[o].reset();this.renderShape();for(o=0;o<i;o+=1)if(this.stylesList[o]._mdf||this._isFirstFrame){if(this.stylesList[o].msElem)this.stylesList[o].msElem.setAttribute("d",this.stylesList[o].d),this.stylesList[o].d="M0 0"+this.stylesList[o].d;this.stylesList[o].pElem.setAttribute("d",this.stylesList[o].d||"M0 0")}},SVGShapeElement.prototype.renderShape=function(){var o,i=this.animatedContents.length,a;for(o=0;o<i;o+=1)if(a=this.animatedContents[o],(this._isFirstFrame||a.element._isAnimated)&&a.data!==!0)a.fn(a.data,a.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(o,i,a,t,r,e){this.o=o,this.sw=i,this.sc=a,this.fc=t,this.m=r,this.p=e,this._mdf={o:!0,sw:!!i,sc:!!a,fc:!!t,m:!0,p:!0}}LetterProps.prototype.update=function(o,i,a,t,r,e){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var n=!1;if(this.o!==o)this.o=o,this._mdf.o=!0,n=!0;if(this.sw!==i)this.sw=i,this._mdf.sw=!0,n=!0;if(this.sc!==a)this.sc=a,this._mdf.sc=!0,n=!0;if(this.fc!==t)this.fc=t,this._mdf.fc=!0,n=!0;if(this.m!==r)this.m=r,this._mdf.m=!0,n=!0;if(e.length&&(this.p[0]!==e[0]||this.p[1]!==e[1]||this.p[4]!==e[4]||this.p[5]!==e[5]||this.p[12]!==e[12]||this.p[13]!==e[13]))this.p=e,this._mdf.p=!0,n=!0;return n};function TextProperty(o,i){if(this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,i.d&&i.d.sid)i.d=o.globalData.slotManager.getProp(i.d);if(this.data=i,this.elem=o,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),!this.searchProperty())this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(o,i){for(var a in i)if(Object.prototype.hasOwnProperty.call(i,a))o[a]=i[a];return o},TextProperty.prototype.setCurrentData=function(o){if(!o.__complete)this.completeTextData(o);this.currentData=o,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){if(this.kf=this.data.d.k.length>1,this.kf)this.addEffect(this.getKeyframeValue.bind(this));return this.kf},TextProperty.prototype.addEffect=function(o){this.effectsSequence.push(o),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(o){if((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!o)return;this.currentData.t=this.data.d.k[this.keysIndex].s.t;var i=this.currentData,a=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var t,r=this.effectsSequence.length,e=o||this.data.d.k[this.keysIndex].s;for(t=0;t<r;t+=1)if(a!==this.keysIndex)e=this.effectsSequence[t](e,e.t);else e=this.effectsSequence[t](this.currentData,e.t);if(i!==e)this.setCurrentData(e);this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId},TextProperty.prototype.getKeyframeValue=function(){var o=this.data.d.k,i=this.elem.comp.renderedFrame,a=0,t=o.length;while(a<=t-1){if(a===t-1||o[a+1].t>i)break;a+=1}if(this.keysIndex!==a)this.keysIndex=a;return this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(o){var i=[],a=0,t=o.length,r,e,n=!1,s=!1,l="";while(a<t){if(n=s,s=!1,r=o.charCodeAt(a),l=o.charAt(a),FontManager.isCombinedCharacter(r))n=!0;else if(r>=55296&&r<=56319){if(FontManager.isRegionalFlag(o,a))l=o.substr(a,14);else if(e=o.charCodeAt(a+1),e>=56320&&e<=57343)if(FontManager.isModifier(r,e))l=o.substr(a,2),n=!0;else if(FontManager.isFlagEmoji(o.substr(a,4)))l=o.substr(a,4);else l=o.substr(a,2)}else if(r>56319){if(e=o.charCodeAt(a+1),FontManager.isVariationSelector(r))n=!0}else if(FontManager.isZeroWidthJoiner(r))n=!0,s=!0;if(n)i[i.length-1]+=l,n=!1;else i.push(l);a+=l.length}return i},TextProperty.prototype.completeTextData=function(o){o.__complete=!0;var i=this.elem.globalData.fontManager,a=this.data,t=[],r,e,n,s=0,l,h=a.m.g,g=0,H=0,f=0,y=[],z=0,v=0,U,b,u=i.getFontByName(o.f),p,k=0,R=getFontProperties(u);o.fWeight=R.weight,o.fStyle=R.style,o.finalSize=o.s,o.finalText=this.buildFinalText(o.t),e=o.finalText.length,o.finalLineHeight=o.lh;var V=o.tr/1000*o.finalSize,L;if(o.sz){var w=!0,Z=o.sz[0],I=o.sz[1],F,J;while(w){J=this.buildFinalText(o.t),F=0,z=0,e=J.length,V=o.tr/1000*o.finalSize;var C=-1;for(r=0;r<e;r+=1){if(L=J[r].charCodeAt(0),n=!1,J[r]===" ")C=r;else if(L===13||L===3)z=0,n=!0,F+=o.finalLineHeight||o.finalSize*1.2;if(i.chars)p=i.getCharData(J[r],u.fStyle,u.fFamily),k=n?0:p.w*o.finalSize/100;else k=i.measureText(J[r],o.f,o.finalSize);if(z+k>Z&&J[r]!==" "){if(C===-1)e+=1;else r=C;F+=o.finalLineHeight||o.finalSize*1.2,J.splice(r,C===r?1:0,"\r"),C=-1,z=0}else z+=k,z+=V}if(F+=u.ascent*o.finalSize/100,this.canResize&&o.finalSize>this.minimumFontSize&&I<F)o.finalSize-=1,o.finalLineHeight=o.finalSize*o.lh/o.s;else o.finalText=J,e=o.finalText.length,w=!1}}z=-V,k=0;var j=0,W;for(r=0;r<e;r+=1){if(n=!1,W=o.finalText[r],L=W.charCodeAt(0),L===13||L===3)j=0,y.push(z),v=z>v?z:v,z=-2*V,l="",n=!0,f+=1;else l=W;if(i.chars)p=i.getCharData(W,u.fStyle,i.getFontByName(o.f).fFamily),k=n?0:p.w*o.finalSize/100;else k=i.measureText(l,o.f,o.finalSize);if(W===" ")j+=k+V;else z+=k+V+j,j=0;if(t.push({l:k,an:k,add:g,n,anIndexes:[],val:l,line:f,animatorJustifyOffset:0}),h==2){if(g+=k,l===""||l===" "||r===e-1){if(l===""||l===" ")g-=k;while(H<=r)t[H].an=g,t[H].ind=s,t[H].extra=k,H+=1;s+=1,g=0}}else if(h==3){if(g+=k,l===""||r===e-1){if(l==="")g-=k;while(H<=r)t[H].an=g,t[H].ind=s,t[H].extra=k,H+=1;g=0,s+=1}}else t[s].ind=s,t[s].extra=0,s+=1}if(o.l=t,v=z>v?z:v,y.push(z),o.sz)o.boxWidth=o.sz[0],o.justifyOffset=0;else switch(o.boxWidth=v,o.j){case 1:o.justifyOffset=-o.boxWidth;break;case 2:o.justifyOffset=-o.boxWidth/2;break;default:o.justifyOffset=0}o.lineWidths=y;var x=a.a,K,c;b=x.length;var m,Q,Y=[];for(U=0;U<b;U+=1){if(K=x[U],K.a.sc)o.strokeColorAnim=!0;if(K.a.sw)o.strokeWidthAnim=!0;if(K.a.fc||K.a.fh||K.a.fs||K.a.fb)o.fillColorAnim=!0;Q=0,m=K.s.b;for(r=0;r<e;r+=1)if(c=t[r],c.anIndexes[U]=Q,m==1&&c.val!==""||m==2&&c.val!==""&&c.val!==" "||m==3&&(c.n||c.val==" "||r==e-1)||m==4&&(c.n||r==e-1)){if(K.s.rn===1)Y.push(Q);Q+=1}a.a[U].s.totalChars=Q;var T=-1,M;if(K.s.rn===1)for(r=0;r<e;r+=1){if(c=t[r],T!=c.anIndexes[U])T=c.anIndexes[U],M=Y.splice(Math.floor(Math.random()*Y.length),1)[0];c.anIndexes[U]=M}}o.yOffset=o.finalLineHeight||o.finalSize*1.2,o.ls=o.ls||0,o.ascent=u.ascent*o.finalSize/100},TextProperty.prototype.updateDocumentData=function(o,i){i=i===void 0?this.keysIndex:i;var a=this.copyData({},this.data.d.k[i].s);a=this.copyData(a,o),this.data.d.k[i].s=a,this.recalculate(i),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(o){var i=this.data.d.k[o].s;i.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(i)},TextProperty.prototype.canResizeFont=function(o){this.canResize=o,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(o){this.minimumFontSize=Math.floor(o)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var{max:o,min:i,floor:a}=Math;function t(e,n){if(this._currentTextLength=-1,this.k=!1,this.data=n,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,n.s||{k:0},0,0,this),"e"in n)this.e=PropertyFactory.getProp(e,n.e,0,0,this);else this.e={v:100};if(this.o=PropertyFactory.getProp(e,n.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,n.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,n.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,n.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,n.a,0,0.01,this),!this.dynamicProperties.length)this.getValue()}t.prototype={getMult:function e(n){if(this._currentTextLength!==this.elem.textProperty.currentData.l.length)this.getValue();var s=0,l=0,h=1,g=1;if(this.ne.v>0)s=this.ne.v/100;else l=-this.ne.v/100;if(this.xe.v>0)h=1-this.xe.v/100;else g=1+this.xe.v/100;var H=BezierFactory.getBezierEasing(s,l,h,g).get,f=0,y=this.finalS,z=this.finalE,v=this.data.sh;if(v===2){if(z===y)f=n>=z?1:0;else f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=H(f)}else if(v===3){if(z===y)f=n>=z?0:1;else f=1-o(0,i(0.5/(z-y)+(n-y)/(z-y),1));f=H(f)}else if(v===4){if(z===y)f=0;else if(f=o(0,i(0.5/(z-y)+(n-y)/(z-y),1)),f<0.5)f*=2;else f=1-2*(f-0.5);f=H(f)}else if(v===5){if(z===y)f=0;else{var U=z-y;n=i(o(0,n+0.5-y),z-y);var b=-U/2+n,u=U/2;f=Math.sqrt(1-b*b/(u*u))}f=H(f)}else if(v===6){if(z===y)f=0;else n=i(o(0,n+0.5-y),z-y),f=(1+Math.cos(Math.PI+Math.PI*2*n/(z-y)))/2;f=H(f)}else{if(n>=a(y))if(n-y<0)f=o(0,i(i(z,1)-(y-n),1));else f=o(0,i(z-n,1));f=H(f)}if(this.sm.v!==100){var p=this.sm.v*0.01;if(p===0)p=0.00000001;var k=0.5-p*0.5;if(f<k)f=0;else if(f=(f-k)/p,f>1)f=1}return f*this.a.v},getValue:function e(n){if(this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2)this.e.v=this._currentTextLength;var s=this.data.r===2?1:100/this.data.totalChars,l=this.o.v/s,h=this.s.v/s+l,g=this.e.v/s+l;if(h>g){var H=h;h=g,g=H}this.finalS=h,this.finalE=g}},extendPrototype([DynamicPropertyContainer],t);function r(e,n,s){return new t(e,n,s)}return{getTextSelectorProp:r}}();function TextAnimatorDataProperty(o,i,a){var t={propType:!1},r=PropertyFactory.getProp,e=i.a;this.a={r:e.r?r(o,e.r,0,degToRads,a):t,rx:e.rx?r(o,e.rx,0,degToRads,a):t,ry:e.ry?r(o,e.ry,0,degToRads,a):t,sk:e.sk?r(o,e.sk,0,degToRads,a):t,sa:e.sa?r(o,e.sa,0,degToRads,a):t,s:e.s?r(o,e.s,1,0.01,a):t,a:e.a?r(o,e.a,1,0,a):t,o:e.o?r(o,e.o,0,0.01,a):t,p:e.p?r(o,e.p,1,0,a):t,sw:e.sw?r(o,e.sw,0,0,a):t,sc:e.sc?r(o,e.sc,1,0,a):t,fc:e.fc?r(o,e.fc,1,0,a):t,fh:e.fh?r(o,e.fh,0,0,a):t,fs:e.fs?r(o,e.fs,0,0.01,a):t,fb:e.fb?r(o,e.fb,0,0.01,a):t,t:e.t?r(o,e.t,0,0,a):t},this.s=TextSelectorProp.getTextSelectorProp(o,i.s,a),this.s.t=i.s.t}function TextAnimatorProperty(o,i,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=o,this._renderType=i,this._elem=a,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}TextAnimatorProperty.prototype.searchProperties=function(){var o,i=this._textData.a.length,a,t=PropertyFactory.getProp;for(o=0;o<i;o+=1)a=this._textData.a[o],this._animatorsData[o]=new TextAnimatorDataProperty(this._elem,a,this);if(this._textData.p&&"m"in this._textData.p)this._pathData={a:t(this._elem,this._textData.p.a,0,0,this),f:t(this._elem,this._textData.p.f,0,0,this),l:t(this._elem,this._textData.p.l,0,0,this),r:t(this._elem,this._textData.p.r,0,0,this),p:t(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0;else this._hasMaskedPath=!1;this._moreOptions.alignment=t(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(o,i){if(this.lettersChangedFlag=i,!this._mdf&&!this._isFirstFrame&&!i&&(!this._hasMaskedPath||!this._pathData.m._mdf))return;this._isFirstFrame=!1;var a=this._moreOptions.alignment.v,t=this._animatorsData,r=this._textData,e=this.mHelper,n=this._renderType,s=this.renderedLetters.length,l,h,g,H,f=o.l,y,z,v,U,b,u,p,k,R,V,L,w,Z,I,F;if(this._hasMaskedPath){if(F=this._pathData.m,!this._pathData.n||this._pathData._mdf){var J=F.v;if(this._pathData.r.v)J=J.reverse();y={tLength:0,segments:[]},H=J._length-1;var C;w=0;for(g=0;g<H;g+=1)C=bez.buildBezierData(J.v[g],J.v[g+1],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[g+1][0]-J.v[g+1][0],J.i[g+1][1]-J.v[g+1][1]]),y.tLength+=C.segmentLength,y.segments.push(C),w+=C.segmentLength;if(g=H,F.v.c)C=bez.buildBezierData(J.v[g],J.v[0],[J.o[g][0]-J.v[g][0],J.o[g][1]-J.v[g][1]],[J.i[0][0]-J.v[0][0],J.i[0][1]-J.v[0][1]]),y.tLength+=C.segmentLength,y.segments.push(C),w+=C.segmentLength;this._pathData.pi=y}if(y=this._pathData.pi,z=this._pathData.f.v,p=0,u=1,U=0,b=!0,V=y.segments,z<0&&F.v.c){if(y.tLength<Math.abs(z))z=-Math.abs(z)%y.tLength;p=V.length-1,R=V[p].points,u=R.length-1;while(z<0)if(z+=R[u].partialLength,u-=1,u<0)p-=1,R=V[p].points,u=R.length-1}R=V[p].points,k=R[u-1],v=R[u],L=v.partialLength}H=f.length,l=0,h=0;var j=o.finalSize*1.2*0.714,W=!0,x,K,c,m,Q;m=t.length;var Y,T=-1,M,E,oo,io=z,lo=p,yo=u,Jo=-1,So,go,Ho,so,N,uo,hi,ai,oi="",ti=this.defaultPropsArray,ri;if(o.j===2||o.j===1){var $o=0,ui=0,fi=o.j===2?-0.5:-1,To=0,pi=!0;for(g=0;g<H;g+=1)if(f[g].n){if($o)$o+=ui;while(To<g)f[To].animatorJustifyOffset=$o,To+=1;$o=0,pi=!0}else{for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(pi&&o.j===2)ui+=x.t.v*fi;if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)$o+=x.t.v*Y[0]*fi;else $o+=x.t.v*Y*fi}pi=!1}if($o)$o+=ui;while(To<g)f[To].animatorJustifyOffset=$o,To+=1}for(g=0;g<H;g+=1){if(e.reset(),So=1,f[g].n){if(l=0,h+=o.yOffset,h+=W?1:0,z=io,W=!1,this._hasMaskedPath)p=lo,u=yo,R=V[p].points,k=R[u-1],v=R[u],L=v.partialLength,U=0;oi="",ai="",uo="",ri="",ti=this.defaultPropsArray}else{if(this._hasMaskedPath){if(Jo!==f[g].line){switch(o.j){case 1:z+=w-o.lineWidths[f[g].line];break;case 2:z+=(w-o.lineWidths[f[g].line])/2;break;default:break}Jo=f[g].line}if(T!==f[g].ind){if(f[T])z+=f[T].extra;z+=f[g].an/2,T=f[g].ind}z+=a[0]*f[g].an*0.005;var Xo=0;for(c=0;c<m;c+=1){if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.p.v[0]*Y[0];else Xo+=x.p.v[0]*Y;if(x.a.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)Xo+=x.a.v[0]*Y[0];else Xo+=x.a.v[0]*Y}if(b=!0,this._pathData.a.v)z=f[0].an*0.5+(w-this._pathData.f.v-f[0].an*0.5-f[f.length-1].an*0.5)*T/(H-1),z+=this._pathData.f.v;while(b)if(U+L>=z+Xo||!R)Z=(z+Xo-U)/v.partialLength,E=k.point[0]+(v.point[0]-k.point[0])*Z,oo=k.point[1]+(v.point[1]-k.point[1])*Z,e.translate(-a[0]*f[g].an*0.005,-(a[1]*j)*0.01),b=!1;else if(R){if(U+=v.partialLength,u+=1,u>=R.length)if(u=0,p+=1,!V[p])if(F.v.c)u=0,p=0,R=V[p].points;else U-=v.partialLength,R=null;else R=V[p].points;if(R)k=v,v=R[u],L=v.partialLength}M=f[g].an/2-f[g].add,e.translate(-M,0,0)}else M=f[g].an/2-f[g].add,e.translate(-M,0,0),e.translate(-a[0]*f[g].an*0.005,-a[1]*j*0.01,0);for(c=0;c<m;c+=1)if(x=t[c].a,x.t.propType){if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),l!==0||o.j!==0)if(this._hasMaskedPath)if(Y.length)z+=x.t.v*Y[0];else z+=x.t.v*Y;else if(Y.length)l+=x.t.v*Y[0];else l+=x.t.v*Y}if(o.strokeWidthAnim)Ho=o.sw||0;if(o.strokeColorAnim)if(o.sc)go=[o.sc[0],o.sc[1],o.sc[2]];else go=[0,0,0];if(o.fillColorAnim&&o.fc)so=[o.fc[0],o.fc[1],o.fc[2]];for(c=0;c<m;c+=1)if(x=t[c].a,x.a.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)e.translate(-x.a.v[0]*Y[0],-x.a.v[1]*Y[1],x.a.v[2]*Y[2]);else e.translate(-x.a.v[0]*Y,-x.a.v[1]*Y,x.a.v[2]*Y);for(c=0;c<m;c+=1)if(x=t[c].a,x.s.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),Y.length)e.scale(1+(x.s.v[0]-1)*Y[0],1+(x.s.v[1]-1)*Y[1],1);else e.scale(1+(x.s.v[0]-1)*Y,1+(x.s.v[1]-1)*Y,1);for(c=0;c<m;c+=1){if(x=t[c].a,K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),x.sk.propType)if(Y.length)e.skewFromAxis(-x.sk.v*Y[0],x.sa.v*Y[1]);else e.skewFromAxis(-x.sk.v*Y,x.sa.v*Y);if(x.r.propType)if(Y.length)e.rotateZ(-x.r.v*Y[2]);else e.rotateZ(-x.r.v*Y);if(x.ry.propType)if(Y.length)e.rotateY(x.ry.v*Y[1]);else e.rotateY(x.ry.v*Y);if(x.rx.propType)if(Y.length)e.rotateX(x.rx.v*Y[0]);else e.rotateX(x.rx.v*Y);if(x.o.propType)if(Y.length)So+=(x.o.v*Y[0]-So)*Y[0];else So+=(x.o.v*Y-So)*Y;if(o.strokeWidthAnim&&x.sw.propType)if(Y.length)Ho+=x.sw.v*Y[0];else Ho+=x.sw.v*Y;if(o.strokeColorAnim&&x.sc.propType)for(N=0;N<3;N+=1)if(Y.length)go[N]+=(x.sc.v[N]-go[N])*Y[0];else go[N]+=(x.sc.v[N]-go[N])*Y;if(o.fillColorAnim&&o.fc){if(x.fc.propType)for(N=0;N<3;N+=1)if(Y.length)so[N]+=(x.fc.v[N]-so[N])*Y[0];else so[N]+=(x.fc.v[N]-so[N])*Y;if(x.fh.propType)if(Y.length)so=addHueToRGB(so,x.fh.v*Y[0]);else so=addHueToRGB(so,x.fh.v*Y);if(x.fs.propType)if(Y.length)so=addSaturationToRGB(so,x.fs.v*Y[0]);else so=addSaturationToRGB(so,x.fs.v*Y);if(x.fb.propType)if(Y.length)so=addBrightnessToRGB(so,x.fb.v*Y[0]);else so=addBrightnessToRGB(so,x.fb.v*Y)}}for(c=0;c<m;c+=1)if(x=t[c].a,x.p.propType)if(K=t[c].s,Y=K.getMult(f[g].anIndexes[c],r.a[c].s.totalChars),this._hasMaskedPath)if(Y.length)e.translate(0,x.p.v[1]*Y[0],-x.p.v[2]*Y[1]);else e.translate(0,x.p.v[1]*Y,-x.p.v[2]*Y);else if(Y.length)e.translate(x.p.v[0]*Y[0],x.p.v[1]*Y[1],-x.p.v[2]*Y[2]);else e.translate(x.p.v[0]*Y,x.p.v[1]*Y,-x.p.v[2]*Y);if(o.strokeWidthAnim)uo=Ho<0?0:Ho;if(o.strokeColorAnim)hi="rgb("+Math.round(go[0]*255)+","+Math.round(go[1]*255)+","+Math.round(go[2]*255)+")";if(o.fillColorAnim&&o.fc)ai="rgb("+Math.round(so[0]*255)+","+Math.round(so[1]*255)+","+Math.round(so[2]*255)+")";if(this._hasMaskedPath){if(e.translate(0,-o.ls),e.translate(0,a[1]*j*0.01+h,0),this._pathData.p.v){I=(v.point[1]-k.point[1])/(v.point[0]-k.point[0]);var xi=Math.atan(I)*180/Math.PI;if(v.point[0]<k.point[0])xi+=180;e.rotate(-xi*Math.PI/180)}if(e.translate(E,oo,0),z-=a[0]*f[g].an*0.005,f[g+1]&&T!==f[g+1].ind)z+=f[g].an/2,z+=o.tr*0.001*o.finalSize}else{if(e.translate(l,h,0),o.ps)e.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(o.j){case 1:e.translate(f[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[g].line]),0,0);break;case 2:e.translate(f[g].animatorJustifyOffset+o.justifyOffset+(o.boxWidth-o.lineWidths[f[g].line])/2,0,0);break;default:break}e.translate(0,-o.ls),e.translate(M,0,0),e.translate(a[0]*f[g].an*0.005,a[1]*j*0.01,0),l+=f[g].l+o.tr*0.001*o.finalSize}if(n==="html")oi=e.toCSS();else if(n==="svg")oi=e.to2dCSS();else ti=[e.props[0],e.props[1],e.props[2],e.props[3],e.props[4],e.props[5],e.props[6],e.props[7],e.props[8],e.props[9],e.props[10],e.props[11],e.props[12],e.props[13],e.props[14],e.props[15]];ri=So}if(s<=g)Q=new LetterProps(ri,uo,hi,ai,oi,ti),this.renderedLetters.push(Q),s+=1,this.lettersChangedFlag=!0;else Q=this.renderedLetters[g],this.lettersChangedFlag=Q.update(ri,uo,hi,ai,oi,ti)||this.lettersChangedFlag}},TextAnimatorProperty.prototype.getValue=function(){if(this._elem.globalData.frameId===this._frameId)return;this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties()},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(o,i,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(o,i,a),this.textProperty=new TextProperty(this,o.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(o.t,this.renderType,this),this.initTransform(o,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(o){this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange)},ITextElement.prototype.createPathShape=function(o,i){var a,t=i.length,r,e="";for(a=0;a<t;a+=1)if(i[a].ty==="sh")r=i[a].ks.k,e+=buildShapeString(r,r.i.length,!0,o);return e},ITextElement.prototype.updateDocumentData=function(o,i){this.textProperty.updateDocumentData(o,i)},ITextElement.prototype.canResizeFont=function(o){this.textProperty.canResizeFont(o)},ITextElement.prototype.setMinimumFontSize=function(o){this.textProperty.setMinimumFontSize(o)},ITextElement.prototype.applyTextPropertiesToMatrix=function(o,i,a,t,r){if(o.ps)i.translate(o.ps[0],o.ps[1]+o.ascent,0);switch(i.translate(0,-o.ls,0),o.j){case 1:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a]),0,0);break;case 2:i.translate(o.justifyOffset+(o.boxWidth-o.lineWidths[a])/2,0,0);break;default:break}i.translate(t,r,0)},ITextElement.prototype.buildColor=function(o){return"rgb("+Math.round(o[0]*255)+","+Math.round(o[1]*255)+","+Math.round(o[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){if(this.textProperty._mdf||this.textProperty._isFirstFrame)this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1};var emptyShapeData={shapes:[]};function SVGTextLottieElement(o,i,a){this.textSpans=[],this.renderType="svg",this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){if(this.data.singleShape&&!this.globalData.fontManager.chars)this.textContainer=createNS("text")},SVGTextLottieElement.prototype.buildTextContents=function(o){var i=0,a=o.length,t=[],r="";while(i<a){if(o[i]===String.fromCharCode(13)||o[i]===String.fromCharCode(3))t.push(r),r="";else r+=o[i];i+=1}return t.push(r),t},SVGTextLottieElement.prototype.buildShapeData=function(o,i){if(o.shapes&&o.shapes.length){var a=o.shapes[0];if(a.it){var t=a.it[a.it.length-1];if(t.s)t.s.k[0]=i,t.s.k[1]=i}}return o},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var o,i,a=this.textProperty.currentData;if(this.renderedLetters=createSizedArray(a?a.l.length:0),a.fc)this.layerElement.setAttribute("fill",this.buildColor(a.fc));else this.layerElement.setAttribute("fill","rgba(0,0,0,0)");if(a.sc)this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw);this.layerElement.setAttribute("font-size",a.finalSize);var t=this.globalData.fontManager.getFontByName(a.f);if(t.fClass)this.layerElement.setAttribute("class",t.fClass);else{this.layerElement.setAttribute("font-family",t.fFamily);var{fWeight:r,fStyle:e}=a;this.layerElement.setAttribute("font-style",e),this.layerElement.setAttribute("font-weight",r)}this.layerElement.setAttribute("aria-label",a.t);var n=a.l||[],s=!!this.globalData.fontManager.chars;i=n.length;var l,h=this.mHelper,g="",H=this.data.singleShape,f=0,y=0,z=!0,v=a.tr*0.001*a.finalSize;if(H&&!s&&!a.sz){var U=this.textContainer,b="start";switch(a.j){case 1:b="end";break;case 2:b="middle";break;default:b="start";break}U.setAttribute("text-anchor",b),U.setAttribute("letter-spacing",v);var u=this.buildTextContents(a.finalText);i=u.length,y=a.ps?a.ps[1]+a.ascent:0;for(o=0;o<i;o+=1){if(l=this.textSpans[o].span||createNS("tspan"),l.textContent=u[o],l.setAttribute("x",0),l.setAttribute("y",y),l.style.display="inherit",U.appendChild(l),!this.textSpans[o])this.textSpans[o]={span:null,glyph:null};this.textSpans[o].span=l,y+=a.finalLineHeight}this.layerElement.appendChild(U)}else{var p=this.textSpans.length,k;for(o=0;o<i;o+=1){if(!this.textSpans[o])this.textSpans[o]={span:null,childSpan:null,glyph:null};if(!s||!H||o===0){if(l=p>o?this.textSpans[o].span:createNS(s?"g":"text"),p<=o){if(l.setAttribute("stroke-linecap","butt"),l.setAttribute("stroke-linejoin","round"),l.setAttribute("stroke-miterlimit","4"),this.textSpans[o].span=l,s){var R=createNS("g");l.appendChild(R),this.textSpans[o].childSpan=R}this.textSpans[o].span=l,this.layerElement.appendChild(l)}l.style.display="inherit"}if(h.reset(),H){if(n[o].n)f=-v,y+=a.yOffset,y+=z?1:0,z=!1;this.applyTextPropertiesToMatrix(a,h,n[o].line,f,y),f+=n[o].l||0,f+=v}if(s){k=this.globalData.fontManager.getCharData(a.finalText[o],t.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily);var V;if(k.t===1)V=new SVGCompElement(k.data,this.globalData,this);else{var L=emptyShapeData;if(k.data&&k.data.shapes)L=this.buildShapeData(k.data,a.finalSize);V=new SVGShapeElement(L,this.globalData,this)}if(this.textSpans[o].glyph){var w=this.textSpans[o].glyph;this.textSpans[o].childSpan.removeChild(w.layerElement),w.destroy()}if(this.textSpans[o].glyph=V,V._debug=!0,V.prepareFrame(0),V.renderFrame(),this.textSpans[o].childSpan.appendChild(V.layerElement),k.t===1)this.textSpans[o].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else{if(H)l.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")");l.textContent=n[o].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}}if(H&&l)l.setAttribute("d",g)}while(o<this.textSpans.length)this.textSpans[o].span.style.display="none",o+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var o=this.layerElement.getBBox();this.bbox={top:o.y,left:o.x,width:o.width,height:o.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var o,i=this.textSpans.length,a;this.renderedFrame=this.comp.renderedFrame;for(o=0;o<i;o+=1)if(a=this.textSpans[o].glyph,a){if(a.prepareFrame(this.comp.renderedFrame-this.data.st),a._mdf)this._mdf=!0}},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),!this.data.singleShape||this._mdf){if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){this._sizeChanged=!0;var o,i,a=this.textAnimator.renderedLetters,t=this.textProperty.currentData.l;i=t.length;var r,e,n;for(o=0;o<i;o+=1)if(!t[o].n){if(r=a[o],e=this.textSpans[o].span,n=this.textSpans[o].glyph,n)n.renderFrame();if(r._mdf.m)e.setAttribute("transform",r.m);if(r._mdf.o)e.setAttribute("opacity",r.o);if(r._mdf.sw)e.setAttribute("stroke-width",r.sw);if(r._mdf.sc)e.setAttribute("stroke",r.sc);if(r._mdf.fc)e.setAttribute("fill",r.fc)}}}};function ISolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var o=createNS("rect");o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.layerElement.appendChild(o)};function NullElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initFrame(),this.initTransform(o,i,a),this.initHierarchy()}NullElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(o){return new NullElement(o,this.globalData,this)},SVGRendererBase.prototype.createShape=function(o){return new SVGShapeElement(o,this.globalData,this)},SVGRendererBase.prototype.createText=function(o){return new SVGTextLottieElement(o,this.globalData,this)},SVGRendererBase.prototype.createImage=function(o){return new IImageElement(o,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(o){return new ISolidElement(o,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(o){if(this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize)this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize);else this.svgElement.setAttribute("viewBox","0 0 "+o.w+" "+o.h);if(!this.renderConfig.viewBoxOnly)this.svgElement.setAttribute("width",o.w),this.svgElement.setAttribute("height",o.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility;if(this.renderConfig.width)this.svgElement.setAttribute("width",this.renderConfig.width);if(this.renderConfig.height)this.svgElement.setAttribute("height",this.renderConfig.height);if(this.renderConfig.className)this.svgElement.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.svgElement.setAttribute("id",this.renderConfig.id);if(this.renderConfig.focusable!==void 0)this.svgElement.setAttribute("focusable",this.renderConfig.focusable);this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var i=this.globalData.defs;this.setupGlobalData(o,i),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=o;var a=createNS("clipPath"),t=createNS("rect");t.setAttribute("width",o.w),t.setAttribute("height",o.h),t.setAttribute("x",0),t.setAttribute("y",0);var r=createElementID();a.setAttribute("id",r),a.appendChild(t),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+r+")"),i.appendChild(a),this.layers=o.layers,this.elements=createSizedArray(o.layers.length)},SVGRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.layerElement=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(o){var i=0,a=this.layers.length;for(i=0;i<a;i+=1)if(this.layers[i].ind===o)return i;return-1},SVGRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;i[o]=!0;var a=this.createItem(this.layers[o]);if(i[o]=a,getExpressionsPlugin()){if(this.layers[o].ty===0)this.globalData.projectInterface.registerComposition(a);a.initExpressions()}if(this.appendElementInPos(a,o),this.layers[o].tt){var t="tp"in this.layers[o]?this.findIndexByInd(this.layers[o].tp):o-1;if(t===-1)return;if(!this.elements[t]||this.elements[t]===!0)this.buildItem(t),this.addPendingElement(a);else{var r=i[t],e=r.getMatte(this.layers[o].tt);a.setMatte(e)}}},SVGRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();if(o.checkParenting(),o.data.tt){var i=0,a=this.elements.length;while(i<a){if(this.elements[i]===o){var t="tp"in o.data?this.findIndexByInd(o.data.tp):i-1,r=this.elements[t],e=r.getMatte(this.layers[i].tt);o.setMatte(e);break}i+=1}}}},SVGRendererBase.prototype.renderFrame=function(o){if(this.renderedFrame===o||this.destroyed)return;if(o===null)o=this.renderedFrame;else this.renderedFrame=o;this.globalData.frameNum=o,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=o,this.globalData._mdf=!1;var i,a=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].prepareFrame(o-this.layers[i].st);if(this.globalData._mdf){for(i=0;i<a;i+=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=0,r;while(t<i){if(this.elements[t]&&this.elements[t]!==!0&&this.elements[t].getBaseElement())r=this.elements[t].getBaseElement();t+=1}if(r)this.layerElement.insertBefore(a,r);else this.layerElement.appendChild(a)},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(o,i,a){if(this.initFrame(),this.initBaseData(o,i,a),this.initTransform(o,i,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.data.xt||!i.progressiveLoad)this.buildAllItems();this.hide()},ICompElement.prototype.prepareFrame=function(o){if(this._mdf=!1,this.prepareRenderableFrame(o),this.prepareProperties(o,this.isInRange),!this.isInRange&&!this.data.xt)return;if(!this.tm._placeholder){var i=this.tm.v;if(i===this.data.op)i=this.data.op-1;this.renderedFrame=i}else this.renderedFrame=o/this.data.sr;var a,t=this.elements.length;if(!this.completeLayers)this.checkLayers(this.renderedFrame);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a]){if(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf)this._mdf=!0}},ICompElement.prototype.renderInnerContent=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.completeLayers||this.elements[o])this.elements[o].renderFrame()},ICompElement.prototype.setElements=function(o){this.elements=o},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var o,i=this.layers.length;for(o=0;o<i;o+=1)if(this.elements[o])this.elements[o].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(o,i,a){this.layers=o.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function SVGRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(i&&i.title){var t=createNS("title"),r=createElementID();t.setAttribute("id",r),t.textContent=i.title,this.svgElement.appendChild(t),a+=r}if(i&&i.description){var e=createNS("desc"),n=createElementID();e.setAttribute("id",n),e.textContent=i.description,this.svgElement.appendChild(e),a+=" "+n}if(a)this.svgElement.setAttribute("aria-labelledby",a);var s=createNS("defs");this.svgElement.appendChild(s);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",progressiveLoad:i&&i.progressiveLoad||!1,hideOnTransparent:!(i&&i.hideOnTransparent===!1),viewBoxOnly:i&&i.viewBoxOnly||!1,viewBoxSize:i&&i.viewBoxSize||!1,className:i&&i.className||"",id:i&&i.id||"",focusable:i&&i.focusable,filterSize:{width:i&&i.filterSize&&i.filterSize.width||"100%",height:i&&i.filterSize&&i.filterSize.height||"100%",x:i&&i.filterSize&&i.filterSize.x||"0%",y:i&&i.filterSize&&i.filterSize.y||"0%"},width:i&&i.width,height:i&&i.height,runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:s,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(o){return new SVGCompElement(o,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function o(i){var a,t=i.length,r="_";for(a=0;a<t;a+=1)r+=i[a].transform.key+"_";var e=this.sequences[r];if(!e)e={transforms:[].concat(i),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=e,this.sequenceList.push(e);return e},processSequence:function o(i,a){var t=0,r=i.transforms.length,e=a;while(t<r&&!a){if(i.transforms[t].transform.mProps._mdf){e=!0;break}t+=1}if(e){i.finalTransform.reset();for(t=r-1;t>=0;t-=1)i.finalTransform.multiply(i.transforms[t].transform.mProps.v)}i._mdf=e},processSequences:function o(i){var a,t=this.sequenceList.length;for(a=0;a<t;a+=1)this.processSequence(this.sequenceList[a],i)},getNewKey:function o(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function o(){var i="__lottie_element_luma_buffer",a=null,t=null,r=null;function e(){var l=createNS("svg"),h=createNS("filter"),g=createNS("feColorMatrix");if(h.setAttribute("id",i),g.setAttribute("type","matrix"),g.setAttribute("color-interpolation-filters","sRGB"),g.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),h.appendChild(g),l.appendChild(h),l.setAttribute("id",i+"_svg"),featureSupport.svgLumaHidden)l.style.display="none";return l}function n(){if(!a)r=e(),document.body.appendChild(r),a=createTag("canvas"),t=a.getContext("2d"),t.filter="url(#"+i+")",t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1)}function s(l){if(!a)n();return a.width=l.width,a.height=l.height,t.filter="url(#"+i+")",a}return{load:n,get:s}};function createCanvas(o,i){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(o,i);var a=createTag("canvas");return a.width=o,a.height=i,a}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}}(),registeredEffects={};function CVEffects(o){var i,a=o.data.ef?o.data.ef.length:0;this.filters=[];var t;for(i=0;i<a;i+=1){t=null;var r=o.data.ef[i].ty;if(registeredEffects[r]){var e=registeredEffects[r].effect;t=new e(o.effectsManager.effectElements[i],o)}if(t)this.filters.push(t)}if(this.filters.length)o.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(o){var i,a=this.filters.length;for(i=0;i<a;i+=1)this.filters[i].renderFrame(o)},CVEffects.prototype.getEffects=function(o){var i,a=this.filters.length,t=[];for(i=0;i<a;i+=1)if(this.filters[i].type===o)t.push(this.filters[i]);return t};function registerEffect(o,i){registeredEffects[o]={effect:i}}function CVMaskElement(o,i){this.data=o,this.element=i,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a,t=this.masksProperties.length,r=!1;for(a=0;a<t;a+=1){if(this.masksProperties[a].mode!=="n")r=!0;this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3)}if(this.hasMasks=r,r)this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(!this.hasMasks)return;var o=this.element.finalTransform.mat,i=this.element.canvasContext,a,t=this.masksProperties.length,r,e,n;i.beginPath();for(a=0;a<t;a+=1)if(this.masksProperties[a].mode!=="n"){if(this.masksProperties[a].inv)i.moveTo(0,0),i.lineTo(this.element.globalData.compSize.w,0),i.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),i.lineTo(0,this.element.globalData.compSize.h),i.lineTo(0,0);n=this.viewData[a].v,r=o.applyToPointArray(n.v[0][0],n.v[0][1],0),i.moveTo(r[0],r[1]);var s,l=n._length;for(s=1;s<l;s+=1)e=o.applyToTriplePoints(n.o[s-1],n.i[s],n.v[s]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);e=o.applyToTriplePoints(n.o[s-1],n.i[0],n.v[0]),i.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5])}this.element.globalData.renderer.save(!0),i.clip()},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function o(){},initRendererElement:function o(){},createContainerElements:function o(){if(this.data.tt>=1){this.buffers=[];var i=this.globalData.canvasContext,a=assetLoader.createCanvas(i.canvas.width,i.canvas.height);this.buffers.push(a);var t=assetLoader.createCanvas(i.canvas.width,i.canvas.height);if(this.buffers.push(t),this.data.tt>=3&&!document._isProxy)assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function o(){},setBlendMode:function o(){var i=this.globalData;if(i.blendMode!==this.data.bm){i.blendMode=this.data.bm;var a=getBlendMode(this.data.bm);i.canvasContext.globalCompositeOperation=a}},createRenderableComponents:function o(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function o(){if(!this.hidden&&(!this.isInRange||this.isTransparent))this.hidden=!0},showElement:function o(){if(this.isInRange&&!this.isTransparent)this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0},clearCanvas:function o(i){i.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function o(){if(this.data.tt>=1){var i=this.buffers[0],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function o(){if(this.data.tt>=1){var i=this.buffers[1],a=i.getContext("2d");this.clearCanvas(a),a.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var t=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(t.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var r=assetLoader.getLumaCanvas(this.canvasContext.canvas),e=r.getContext("2d");e.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(r,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(i,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function o(i){if(this.hidden||this.data.hd)return;if(this.data.td===1&&!i)return;this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var a=this.data.ty===0;if(this.prepareLayer(),this.globalData.renderer.save(a),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(a),this.exitLayer(),this.maskManager.hasMasks)this.globalData.renderer.restore(!0);if(this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(o,i,a,t){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var r=4;if(i.ty==="rc")r=5;else if(i.ty==="el")r=6;else if(i.ty==="sr")r=7;this.sh=ShapePropertyFactory.getShapeProp(o,i,r,o);var e,n=a.length,s;for(e=0;e<n;e+=1)if(!a[e].closed)s={transforms:t.addTransformSequence(a[e].transforms),trNodes:[]},this.styledShapes.push(s),a[e].elements.push(s)}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(o,i){var a={data:o,type:o.ty,preTransforms:this.transformsManager.addTransformSequence(i),transforms:[],elements:[],closed:o.hd===!0},t={};if(o.ty==="fl"||o.ty==="st"){if(t.c=PropertyFactory.getProp(this,o.c,1,255,this),!t.c.k)a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"}else if(o.ty==="gf"||o.ty==="gs")t.s=PropertyFactory.getProp(this,o.s,1,null,this),t.e=PropertyFactory.getProp(this,o.e,1,null,this),t.h=PropertyFactory.getProp(this,o.h||{k:0},0,0.01,this),t.a=PropertyFactory.getProp(this,o.a||{k:0},0,degToRads,this),t.g=new GradientProperty(this,o.g,this);if(t.o=PropertyFactory.getProp(this,o.o,0,0.01,this),o.ty==="st"||o.ty==="gs"){if(a.lc=lineCapEnum[o.lc||2],a.lj=lineJoinEnum[o.lj||2],o.lj==1)a.ml=o.ml;if(t.w=PropertyFactory.getProp(this,o.w,0,null,this),!t.w.k)a.wi=t.w.v;if(o.d){var r=new DashProperty(this,o.d,"canvas",this);if(t.d=r,!t.d.k)a.da=t.d.dashArray,a.do=t.d.dashoffset[0]}}else a.r=o.r===2?"evenodd":"nonzero";return this.stylesList.push(a),t.style=a,t},CVShapeElement.prototype.createGroupElement=function(){var o={it:[],prevViewData:[]};return o},CVShapeElement.prototype.createTransformElement=function(o){var i={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,o.o,0,0.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,o,this)}};return i},CVShapeElement.prototype.createShapeElement=function(o){var i=new CVShapeData(this,o,this.stylesList,this.transformsManager);return this.shapes.push(i),this.addShapeToModifiers(i),i},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var o,i=this.itemsData.length;for(o=0;o<i;o+=1)this.prevViewData[o]=this.itemsData[o];this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),i=this.dynamicProperties.length;for(o=0;o<i;o+=1)this.dynamicProperties[o].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(o){var i,a=this.stylesList.length;for(i=0;i<a;i+=1)if(!this.stylesList[i].closed)this.stylesList[i].transforms.push(o)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var o,i=this.stylesList.length;for(o=0;o<i;o+=1)if(!this.stylesList[o].closed)this.stylesList[o].transforms.pop()},CVShapeElement.prototype.closeStyles=function(o){var i,a=o.length;for(i=0;i<a;i+=1)o[i].closed=!0},CVShapeElement.prototype.searchShapes=function(o,i,a,t,r){var e,n=o.length-1,s,l,h=[],g=[],H,f,y,z=[].concat(r);for(e=n;e>=0;e-=1){if(H=this.searchProcessedElement(o[e]),!H)o[e]._shouldRender=t;else i[e]=a[H-1];if(o[e].ty==="fl"||o[e].ty==="st"||o[e].ty==="gf"||o[e].ty==="gs"){if(!H)i[e]=this.createStyleElement(o[e],z);else i[e].style.closed=!1;h.push(i[e].style)}else if(o[e].ty==="gr"){if(!H)i[e]=this.createGroupElement(o[e]);else{l=i[e].it.length;for(s=0;s<l;s+=1)i[e].prevViewData[s]=i[e].it[s]}this.searchShapes(o[e].it,i[e].it,i[e].prevViewData,t,z)}else if(o[e].ty==="tr"){if(!H)y=this.createTransformElement(o[e]),i[e]=y;z.push(i[e]),this.addTransformToStyleList(i[e])}else if(o[e].ty==="sh"||o[e].ty==="rc"||o[e].ty==="el"||o[e].ty==="sr"){if(!H)i[e]=this.createShapeElement(o[e])}else if(o[e].ty==="tm"||o[e].ty==="rd"||o[e].ty==="pb"||o[e].ty==="zz"||o[e].ty==="op"){if(!H)f=ShapeModifiers.getModifier(o[e].ty),f.init(this,o[e]),i[e]=f,this.shapeModifiers.push(f);else f=i[e],f.closed=!1;g.push(f)}else if(o[e].ty==="rp"){if(!H)f=ShapeModifiers.getModifier(o[e].ty),i[e]=f,f.init(this,o,e,i),this.shapeModifiers.push(f),t=!1;else f=i[e],f.closed=!0;g.push(f)}this.addProcessedElement(o[e],e+1)}this.removeTransformFromStyleList(),this.closeStyles(h),n=g.length;for(e=0;e<n;e+=1)g[e].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(o,i){if(o._opMdf||i.op._mdf||this._isFirstFrame)i.opacity=o.opacity,i.opacity*=i.op.v,i._opMdf=!0},CVShapeElement.prototype.drawLayer=function(){var o,i=this.stylesList.length,a,t,r,e,n,s,l=this.globalData.renderer,h=this.globalData.canvasContext,g,H;for(o=0;o<i;o+=1)if(H=this.stylesList[o],g=H.type,!((g==="st"||g==="gs")&&H.wi===0||!H.data._shouldRender||H.coOp===0||this.globalData.currentGlobalAlpha===0)){if(l.save(),n=H.elements,g==="st"||g==="gs")l.ctxStrokeStyle(g==="st"?H.co:H.grd),l.ctxLineWidth(H.wi),l.ctxLineCap(H.lc),l.ctxLineJoin(H.lj),l.ctxMiterLimit(H.ml||0);else l.ctxFillStyle(g==="fl"?H.co:H.grd);if(l.ctxOpacity(H.coOp),g!=="st"&&g!=="gs")h.beginPath();l.ctxTransform(H.preTransforms.finalTransform.props),t=n.length;for(a=0;a<t;a+=1){if(g==="st"||g==="gs"){if(h.beginPath(),H.da)h.setLineDash(H.da),h.lineDashOffset=H.do}s=n[a].trNodes,e=s.length;for(r=0;r<e;r+=1)if(s[r].t==="m")h.moveTo(s[r].p[0],s[r].p[1]);else if(s[r].t==="c")h.bezierCurveTo(s[r].pts[0],s[r].pts[1],s[r].pts[2],s[r].pts[3],s[r].pts[4],s[r].pts[5]);else h.closePath();if(g==="st"||g==="gs"){if(l.ctxStroke(),H.da)h.setLineDash(this.dashResetter)}}if(g!=="st"&&g!=="gs")this.globalData.renderer.ctxFill(H.r);l.restore()}},CVShapeElement.prototype.renderShape=function(o,i,a,t){var r,e=i.length-1,n;n=o;for(r=e;r>=0;r-=1)if(i[r].ty==="tr")n=a[r].transform,this.renderShapeTransform(o,n);else if(i[r].ty==="sh"||i[r].ty==="el"||i[r].ty==="rc"||i[r].ty==="sr")this.renderPath(i[r],a[r]);else if(i[r].ty==="fl")this.renderFill(i[r],a[r],n);else if(i[r].ty==="st")this.renderStroke(i[r],a[r],n);else if(i[r].ty==="gf"||i[r].ty==="gs")this.renderGradientFill(i[r],a[r],n);else if(i[r].ty==="gr")this.renderShape(n,i[r].it,a[r].it);else if(i[r].ty==="tm");if(t)this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(o,i){if(this._isFirstFrame||i._mdf||o.transforms._mdf){var a=o.trNodes,t=i.paths,r,e,n,s=t._length;a.length=0;var l=o.transforms.finalTransform;for(n=0;n<s;n+=1){var h=t.shapes[n];if(h&&h.v){e=h._length;for(r=1;r<e;r+=1){if(r===1)a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)});a.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])})}if(e===1)a.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)});if(h.c&&e)a.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),a.push({t:"z"})}}o.trNodes=a}},CVShapeElement.prototype.renderPath=function(o,i){if(o.hd!==!0&&o._shouldRender){var a,t=i.styledShapes.length;for(a=0;a<t;a+=1)this.renderStyledShape(i.styledShapes[a],i.sh)}},CVShapeElement.prototype.renderFill=function(o,i,a){var t=i.style;if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderGradientFill=function(o,i,a){var t=i.style,r;if(!t.grd||i.g._mdf||i.s._mdf||i.e._mdf||o.t!==1&&(i.h._mdf||i.a._mdf)){var e=this.globalData.canvasContext,n=i.s.v,s=i.e.v;if(o.t===1)r=e.createLinearGradient(n[0],n[1],s[0],s[1]);else{var l=Math.sqrt(Math.pow(n[0]-s[0],2)+Math.pow(n[1]-s[1],2)),h=Math.atan2(s[1]-n[1],s[0]-n[0]),g=i.h.v;if(g>=1)g=0.99;else if(g<=-1)g=-0.99;var H=l*g,f=Math.cos(h+i.a.v)*H+n[0],y=Math.sin(h+i.a.v)*H+n[1];r=e.createRadialGradient(f,y,0,n[0],n[1],l)}var z,v=o.g.p,U=i.g.c,b=1;for(z=0;z<v;z+=1){if(i.g._hasOpacity&&i.g._collapsable)b=i.g.o[z*2+1];r.addColorStop(U[z*4]/100,"rgba("+U[z*4+1]+","+U[z*4+2]+","+U[z*4+3]+","+b+")")}t.grd=r}t.coOp=i.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(o,i,a){var{style:t,d:r}=i;if(r&&(r._mdf||this._isFirstFrame))t.da=r.dashArray,t.do=r.dashoffset[0];if(i.c._mdf||this._isFirstFrame)t.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")";if(i.o._mdf||a._opMdf||this._isFirstFrame)t.coOp=i.o.v*a.opacity;if(i.w._mdf||this._isFirstFrame)t.wi=i.w.v},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(o,i,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=!1;if(o.fc)i=!0,this.values.fill=this.buildColor(o.fc);else this.values.fill="rgba(0,0,0,0)";this.fill=i;var a=!1;if(o.sc)a=!0,this.values.stroke=this.buildColor(o.sc),this.values.sWidth=o.sw;var t=this.globalData.fontManager.getFontByName(o.f),r,e,n=o.l,s=this.mHelper;this.stroke=a,this.values.fValue=o.finalSize+"px "+this.globalData.fontManager.getFontByName(o.f).fFamily,e=o.finalText.length;var l,h,g,H,f,y,z,v,U,b,u=this.data.singleShape,p=o.tr*0.001*o.finalSize,k=0,R=0,V=!0,L=0;for(r=0;r<e;r+=1){if(l=this.globalData.fontManager.getCharData(o.finalText[r],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),h=l&&l.data||{},s.reset(),u&&n[r].n)k=-p,R+=o.yOffset,R+=V?1:0,V=!1;if(f=h.shapes?h.shapes[0].it:[],z=f.length,s.scale(o.finalSize/100,o.finalSize/100),u)this.applyTextPropertiesToMatrix(o,s,n[r].line,k,R);U=createSizedArray(z-1);var w=0;for(y=0;y<z;y+=1)if(f[y].ty==="sh"){H=f[y].ks.k.i.length,v=f[y].ks.k,b=[];for(g=1;g<H;g+=1){if(g===1)b.push(s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0));b.push(s.applyToX(v.o[g-1][0],v.o[g-1][1],0),s.applyToY(v.o[g-1][0],v.o[g-1][1],0),s.applyToX(v.i[g][0],v.i[g][1],0),s.applyToY(v.i[g][0],v.i[g][1],0),s.applyToX(v.v[g][0],v.v[g][1],0),s.applyToY(v.v[g][0],v.v[g][1],0))}b.push(s.applyToX(v.o[g-1][0],v.o[g-1][1],0),s.applyToY(v.o[g-1][0],v.o[g-1][1],0),s.applyToX(v.i[0][0],v.i[0][1],0),s.applyToY(v.i[0][0],v.i[0][1],0),s.applyToX(v.v[0][0],v.v[0][1],0),s.applyToY(v.v[0][0],v.v[0][1],0)),U[w]=b,w+=1}if(u)k+=n[r].l,k+=p;if(this.textSpans[L])this.textSpans[L].elem=U;else this.textSpans[L]={elem:U};L+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var o=this.canvasContext;if(o.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),!this.data.singleShape)this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var i,a,t,r,e,n,s=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;a=l.length;var h,g=null,H=null,f=null,y,z,v=this.globalData.renderer;for(i=0;i<a;i+=1)if(!l[i].n){if(h=s[i],h)v.save(),v.ctxTransform(h.p),v.ctxOpacity(h.o);if(this.fill){if(h&&h.fc){if(g!==h.fc)v.ctxFillStyle(h.fc),g=h.fc}else if(g!==this.values.fill)g=this.values.fill,v.ctxFillStyle(this.values.fill);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),v.ctxFill()}if(this.stroke){if(h&&h.sw){if(f!==h.sw)f=h.sw,v.ctxLineWidth(h.sw)}else if(f!==this.values.sWidth)f=this.values.sWidth,v.ctxLineWidth(this.values.sWidth);if(h&&h.sc){if(H!==h.sc)H=h.sc,v.ctxStrokeStyle(h.sc)}else if(H!==this.values.stroke)H=this.values.stroke,v.ctxStrokeStyle(this.values.stroke);y=this.textSpans[i].elem,r=y.length,this.globalData.canvasContext.beginPath();for(t=0;t<r;t+=1){z=y[t],n=z.length,this.globalData.canvasContext.moveTo(z[0],z[1]);for(e=2;e<n;e+=6)this.globalData.canvasContext.bezierCurveTo(z[e],z[e+1],z[e+2],z[e+3],z[e+4],z[e+5])}this.globalData.canvasContext.closePath(),v.ctxStroke()}if(h)this.globalData.renderer.restore()}};function CVImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.img=i.imageLoader.getAsset(this.assetData),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var o=createTag("canvas");o.width=this.assetData.w,o.height=this.assetData.h;var i=o.getContext("2d"),a=this.img.width,t=this.img.height,r=a/t,e=this.assetData.w/this.assetData.h,n,s,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;if(r>e&&l==="xMidYMid slice"||r<e&&l!=="xMidYMid slice")s=t,n=s*e;else n=a,s=n/e;i.drawImage(this.img,(a-n)/2,(t-s)/2,n,s,0,0,this.assetData.w,this.assetData.h),this.img=o}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(o){return new CVShapeElement(o,this.globalData,this)},CanvasRendererBase.prototype.createText=function(o){return new CVTextElement(o,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(o){return new CVImageElement(o,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(o){return new CVSolidElement(o,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(o){if(o[0]===1&&o[1]===0&&o[4]===0&&o[5]===1&&o[12]===0&&o[13]===0)return;this.canvasContext.transform(o[0],o[1],o[4],o[5],o[12],o[13])},CanvasRendererBase.prototype.ctxOpacity=function(o){this.canvasContext.globalAlpha*=o<0?0:o},CanvasRendererBase.prototype.ctxFillStyle=function(o){this.canvasContext.fillStyle=o},CanvasRendererBase.prototype.ctxStrokeStyle=function(o){this.canvasContext.strokeStyle=o},CanvasRendererBase.prototype.ctxLineWidth=function(o){this.canvasContext.lineWidth=o},CanvasRendererBase.prototype.ctxLineCap=function(o){this.canvasContext.lineCap=o},CanvasRendererBase.prototype.ctxLineJoin=function(o){this.canvasContext.lineJoin=o},CanvasRendererBase.prototype.ctxMiterLimit=function(o){this.canvasContext.miterLimit=o},CanvasRendererBase.prototype.ctxFill=function(o){this.canvasContext.fill(o)},CanvasRendererBase.prototype.ctxFillRect=function(o,i,a,t){this.canvasContext.fillRect(o,i,a,t)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(o){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}if(o)this.globalData.blendMode="source-over";this.contextData.restore(o)},CanvasRendererBase.prototype.configAnimation=function(o){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var i=this.animationItem.container.style;i.width="100%",i.height="100%";var a="0px 0px 0px";if(i.transformOrigin=a,i.mozTransformOrigin=a,i.webkitTransformOrigin=a,i["-webkit-transform"]=a,i.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className)this.animationItem.container.setAttribute("class",this.renderConfig.className);if(this.renderConfig.id)this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=o,this.layers=o.layers,this.transformCanvas={w:o.w,h:o.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(o,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(o.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(o,i){this.reset();var a,t;if(o)a=o,t=i,this.canvasContext.canvas.width=a,this.canvasContext.canvas.height=t;else{if(this.animationItem.wrapper&&this.animationItem.container)a=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight;else a=this.canvasContext.canvas.width,t=this.canvasContext.canvas.height;this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=t*this.renderConfig.dpr}var r,e;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var n=this.renderConfig.preserveAspectRatio.split(" "),s=n[1]||"meet",l=n[0]||"xMidYMid",h=l.substr(0,4),g=l.substr(4);if(r=a/t,e=this.transformCanvas.w/this.transformCanvas.h,e>r&&s==="meet"||e<r&&s==="slice")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr);else this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr);if(h==="xMid"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr;else if(h==="xMax"&&(e<r&&s==="meet"||e>r&&s==="slice"))this.transformCanvas.tx=(a-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr;else this.transformCanvas.tx=0;if(g==="YMid"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr;else if(g==="YMax"&&(e>r&&s==="meet"||e<r&&s==="slice"))this.transformCanvas.ty=(t-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr;else this.transformCanvas.ty=0}else if(this.renderConfig.preserveAspectRatio==="none")this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;else this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){if(this.renderConfig.clearCanvas&&this.animationItem.wrapper)this.animationItem.wrapper.innerText="";var o,i=this.layers?this.layers.length:0;for(o=i-1;o>=0;o-=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(o,i){if(this.renderedFrame===o&&this.renderConfig.clearCanvas===!0&&!i||this.destroyed||o===-1)return;this.renderedFrame=o,this.globalData.frameNum=o-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||i,this.globalData.projectInterface.currentFrame=o;var a,t=this.layers.length;if(!this.completeLayers)this.checkLayers(o);for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].prepareFrame(o-this.layers[a].st);if(this.globalData._mdf){if(this.renderConfig.clearCanvas===!0)this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h);else this.save();for(a=t-1;a>=0;a-=1)if(this.completeLayers||this.elements[a])this.elements[a].renderFrame();if(this.renderConfig.clearCanvas!==!0)this.restore()}},CanvasRendererBase.prototype.buildItem=function(o){var i=this.elements;if(i[o]||this.layers[o].ty===99)return;var a=this.createItem(this.layers[o],this,this.globalData);i[o]=a,a.initExpressions()},CanvasRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var o,i=15;for(o=0;o<i;o+=1){var a=new CanvasContext;this.stack[o]=a}this._length=i,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var o=this._length*2,i=0;for(i=this._length;i<o;i+=1)this.stack[i]=new CanvasContext;this._length=o},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(o){this.cArrPos-=1;var i=this.stack[this.cArrPos],a=i.transform,t,r=this.cTr.props;for(t=0;t<16;t+=1)r[t]=a[t];if(o){this.nativeContext.restore();var e=this.stack[this.cArrPos+1];this.appliedFillStyle=e.fillStyle,this.appliedStrokeStyle=e.strokeStyle,this.appliedLineWidth=e.lineWidth,this.appliedLineCap=e.lineCap,this.appliedLineJoin=e.lineJoin,this.appliedMiterLimit=e.miterLimit}if(this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13]),o||i.opacity!==-1&&this.currentOpacity!==i.opacity)this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity;this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(o){if(o)this.nativeContext.save();var i=this.cTr.props;if(this._length<=this.cArrPos)this.duplicate();var a=this.stack[this.cArrPos],t;for(t=0;t<16;t+=1)a.transform[t]=i[t];this.cArrPos+=1;var r=this.stack[this.cArrPos];r.opacity=a.opacity,r.fillStyle=a.fillStyle,r.strokeStyle=a.strokeStyle,r.lineWidth=a.lineWidth,r.lineCap=a.lineCap,r.lineJoin=a.lineJoin,r.miterLimit=a.miterLimit},CVContextData.prototype.setOpacity=function(o){this.stack[this.cArrPos].opacity=o},CVContextData.prototype.setContext=function(o){this.nativeContext=o},CVContextData.prototype.fillStyle=function(o){if(this.stack[this.cArrPos].fillStyle!==o)this.currentFillStyle=o,this.stack[this.cArrPos].fillStyle=o},CVContextData.prototype.strokeStyle=function(o){if(this.stack[this.cArrPos].strokeStyle!==o)this.currentStrokeStyle=o,this.stack[this.cArrPos].strokeStyle=o},CVContextData.prototype.lineWidth=function(o){if(this.stack[this.cArrPos].lineWidth!==o)this.currentLineWidth=o,this.stack[this.cArrPos].lineWidth=o},CVContextData.prototype.lineCap=function(o){if(this.stack[this.cArrPos].lineCap!==o)this.currentLineCap=o,this.stack[this.cArrPos].lineCap=o},CVContextData.prototype.lineJoin=function(o){if(this.stack[this.cArrPos].lineJoin!==o)this.currentLineJoin=o,this.stack[this.cArrPos].lineJoin=o},CVContextData.prototype.miterLimit=function(o){if(this.stack[this.cArrPos].miterLimit!==o)this.currentMiterLimit=o,this.stack[this.cArrPos].miterLimit=o},CVContextData.prototype.transform=function(o){this.transformMat.cloneFromProps(o);var i=this.cTr;this.transformMat.multiply(i),i.cloneFromProps(this.transformMat.props);var a=i.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(o){var i=this.stack[this.cArrPos].opacity;if(i*=o<0?0:o,this.stack[this.cArrPos].opacity!==i){if(this.currentOpacity!==o)this.nativeContext.globalAlpha=o,this.currentOpacity=o;this.stack[this.cArrPos].opacity=i}},CVContextData.prototype.fill=function(o){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fill(o)},CVContextData.prototype.fillRect=function(o,i,a,t){if(this.appliedFillStyle!==this.currentFillStyle)this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle;this.nativeContext.fillRect(o,i,a,t)},CVContextData.prototype.stroke=function(){if(this.appliedStrokeStyle!==this.currentStrokeStyle)this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle;if(this.appliedLineWidth!==this.currentLineWidth)this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth;if(this.appliedLineCap!==this.currentLineCap)this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap;if(this.appliedLineJoin!==this.currentLineJoin)this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin;if(this.appliedMiterLimit!==this.currentMiterLimit)this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit;this.nativeContext.stroke()};function CVCompElement(o,i,a){this.completeLayers=!1,this.layers=o.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var o=this.canvasContext;o.beginPath(),o.moveTo(0,0),o.lineTo(this.data.w,0),o.lineTo(this.data.w,this.data.h),o.lineTo(0,this.data.h),o.lineTo(0,0),o.clip();var i,a=this.layers.length;for(i=a-1;i>=0;i-=1)if(this.completeLayers||this.elements[i])this.elements[i].renderFrame()},CVCompElement.prototype.destroy=function(){var o,i=this.layers.length;for(o=i-1;o>=0;o-=1)if(this.elements[o])this.elements[o].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function CanvasRenderer(o,i){if(this.animationItem=o,this.renderConfig={clearCanvas:i&&i.clearCanvas!==void 0?i.clearCanvas:!0,context:i&&i.context||null,progressiveLoad:i&&i.progressiveLoad||!1,preserveAspectRatio:i&&i.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:i&&i.contentVisibility||"visible",className:i&&i.className||"",id:i&&i.id||"",runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.renderConfig.dpr=i&&i.dpr||1,this.animationItem.wrapper)this.renderConfig.dpr=i&&i.dpr||window.devicePixelRatio||1;if(this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas)this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData)}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(o){return new CVCompElement(o,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function o(){},initRendererElement:function o(){if(this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask)this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement);else this.layerElement=this.baseElement;styleDiv(this.baseElement)},createContainerElements:function o(){if(this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln)this.layerElement.setAttribute("id",this.data.ln);if(this.data.cl)this.layerElement.setAttribute("class",this.data.cl);if(this.data.bm!==0)this.setBlendMode()},renderElement:function o(){var i=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var a=this.finalTransform.mat.toCSS();i.transform=a,i.webkitTransform=a}if(this.finalTransform._opMdf)i.opacity=this.finalTransform.mProp.o.v},renderFrame:function o(){if(this.data.hd||this.hidden)return;if(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame)this._isFirstFrame=!1},destroy:function o(){if(this.layerElement=null,this.transformedElement=null,this.matteElement)this.matteElement=null;if(this.maskManager)this.maskManager.destroy(),this.maskManager=null},createRenderableComponents:function o(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function o(){},setMatte:function o(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(o,i,a){this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var o;if(this.data.hasMask)o=createNS("rect"),o.setAttribute("width",this.data.sw),o.setAttribute("height",this.data.sh),o.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh);else o=createTag("div"),o.style.width=this.data.sw+"px",o.style.height=this.data.sh+"px",o.style.backgroundColor=this.data.sc;this.layerElement.appendChild(o)};function HShapeElement(o,i,a){this.shapes=[],this.shapesData=o.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(o,i,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var o;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),o=this.svgElement;else{o=createNS("svg");var i=this.comp.data?this.comp.data:this.globalData.compSize;o.setAttribute("width",i.w),o.setAttribute("height",i.h),o.appendChild(this.shapesContainer),this.layerElement.appendChild(o)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=o},HShapeElement.prototype.getTransformedPoint=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)i=o[a].mProps.v.applyToPointArray(i[0],i[1],0);return i},HShapeElement.prototype.calculateShapeBoundingBox=function(o,i){var a=o.sh.v,t=o.transformers,r,e=a._length,n,s,l,h;if(e<=1)return;for(r=0;r<e-1;r+=1)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[r+1]),h=this.getTransformedPoint(t,a.v[r+1]),this.checkBounds(n,s,l,h,i);if(a.c)n=this.getTransformedPoint(t,a.v[r]),s=this.getTransformedPoint(t,a.o[r]),l=this.getTransformedPoint(t,a.i[0]),h=this.getTransformedPoint(t,a.v[0]),this.checkBounds(n,s,l,h,i)},HShapeElement.prototype.checkBounds=function(o,i,a,t,r){this.getBoundsOfCurve(o,i,a,t);var e=this.shapeBoundingBox;r.x=bmMin(e.left,r.x),r.xMax=bmMax(e.right,r.xMax),r.y=bmMin(e.top,r.y),r.yMax=bmMax(e.bottom,r.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(o,i,a,t){var r=[[o[0],t[0]],[o[1],t[1]]];for(var e,n,s,l,h,g,H,f=0;f<2;++f)if(n=6*o[f]-12*i[f]+6*a[f],e=-3*o[f]+9*i[f]-9*a[f]+3*t[f],s=3*i[f]-3*o[f],n|=0,e|=0,s|=0,e===0&&n===0);else if(e===0){if(l=-s/n,l>0&&l<1)r[f].push(this.calculateF(l,o,i,a,t,f))}else if(h=n*n-4*s*e,h>=0){if(g=(-n+bmSqrt(h))/(2*e),g>0&&g<1)r[f].push(this.calculateF(g,o,i,a,t,f));if(H=(-n-bmSqrt(h))/(2*e),H>0&&H<1)r[f].push(this.calculateF(H,o,i,a,t,f))}this.shapeBoundingBox.left=bmMin.apply(null,r[0]),this.shapeBoundingBox.top=bmMin.apply(null,r[1]),this.shapeBoundingBox.right=bmMax.apply(null,r[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,r[1])},HShapeElement.prototype.calculateF=function(o,i,a,t,r,e){return bmPow(1-o,3)*i[e]+3*bmPow(1-o,2)*o*a[e]+3*(1-o)*bmPow(o,2)*t[e]+bmPow(o,3)*r[e]},HShapeElement.prototype.calculateBoundingBox=function(o,i){var a,t=o.length;for(a=0;a<t;a+=1)if(o[a]&&o[a].sh)this.calculateShapeBoundingBox(o[a],i);else if(o[a]&&o[a].it)this.calculateBoundingBox(o[a].it,i);else if(o[a]&&o[a].style&&o[a].w)this.expandStrokeBoundingBox(o[a].w,i)},HShapeElement.prototype.expandStrokeBoundingBox=function(o,i){var a=0;if(o.keyframes){for(var t=0;t<o.keyframes.length;t+=1){var r=o.keyframes[t].s;if(r>a)a=r}a*=o.mult}else a=o.v*o.mult;i.x-=a,i.xMax+=a,i.y-=a,i.yMax+=a},HShapeElement.prototype.currentBoxContains=function(o){return this.currentBBox.x<=o.x&&this.currentBBox.y<=o.y&&this.currentBBox.width+this.currentBBox.x>=o.x+o.width&&this.currentBBox.height+this.currentBBox.y>=o.y+o.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var o=this.tempBoundingBox,i=999999;if(o.x=i,o.xMax=-i,o.y=i,o.yMax=-i,this.calculateBoundingBox(this.itemsData,o),o.width=o.xMax<o.x?0:o.xMax-o.x,o.height=o.yMax<o.y?0:o.yMax-o.y,this.currentBoxContains(o))return;var a=!1;if(this.currentBBox.w!==o.width)this.currentBBox.w=o.width,this.shapeCont.setAttribute("width",o.width),a=!0;if(this.currentBBox.h!==o.height)this.currentBBox.h=o.height,this.shapeCont.setAttribute("height",o.height),a=!0;if(a||this.currentBBox.x!==o.x||this.currentBBox.y!==o.y){this.currentBBox.w=o.width,this.currentBBox.h=o.height,this.currentBBox.x=o.x,this.currentBBox.y=o.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var t=this.shapeCont.style,r="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=r,t.webkitTransform=r}}};function HTextElement(o,i,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var o=createNS("g");this.maskedElement.appendChild(o),this.innerElem=o}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var o=this.textProperty.currentData;this.renderedLetters=createSizedArray(o.l?o.l.length:0);var i=this.innerElem.style,a=o.fc?this.buildColor(o.fc):"rgba(0,0,0,0)";if(i.fill=a,i.color=a,o.sc)i.stroke=this.buildColor(o.sc),i.strokeWidth=o.sw+"px";var t=this.globalData.fontManager.getFontByName(o.f);if(!this.globalData.fontManager.chars)if(i.fontSize=o.finalSize+"px",i.lineHeight=o.finalSize+"px",t.fClass)this.innerElem.className=t.fClass;else{i.fontFamily=t.fFamily;var{fWeight:r,fStyle:e}=o;i.fontStyle=e,i.fontWeight=r}var n,s,l=o.l;s=l.length;var h,g,H,f=this.mHelper,y,z="",v=0;for(n=0;n<s;n+=1){if(this.globalData.fontManager.chars){if(!this.textPaths[v])h=createNS("path"),h.setAttribute("stroke-linecap",lineCapEnum[1]),h.setAttribute("stroke-linejoin",lineJoinEnum[2]),h.setAttribute("stroke-miterlimit","4");else h=this.textPaths[v];if(!this.isMasked)if(this.textSpans[v])g=this.textSpans[v],H=g.children[0];else g=createTag("div"),g.style.lineHeight=0,H=createNS("svg"),H.appendChild(h),styleDiv(g)}else if(!this.isMasked)if(this.textSpans[v])g=this.textSpans[v],h=this.textPaths[v];else g=createTag("span"),styleDiv(g),h=createTag("span"),styleDiv(h),g.appendChild(h);else h=this.textPaths[v]?this.textPaths[v]:createNS("text");if(this.globalData.fontManager.chars){var U=this.globalData.fontManager.getCharData(o.finalText[n],t.fStyle,this.globalData.fontManager.getFontByName(o.f).fFamily),b;if(U)b=U.data;else b=null;if(f.reset(),b&&b.shapes&&b.shapes.length)y=b.shapes[0].it,f.scale(o.finalSize/100,o.finalSize/100),z=this.createPathShape(f,y),h.setAttribute("d",z);if(!this.isMasked){if(this.innerElem.appendChild(g),b&&b.shapes){document.body.appendChild(H);var u=H.getBBox();H.setAttribute("width",u.width+2),H.setAttribute("height",u.height+2),H.setAttribute("viewBox",u.x-1+" "+(u.y-1)+" "+(u.width+2)+" "+(u.height+2));var p=H.style,k="translate("+(u.x-1)+"px,"+(u.y-1)+"px)";p.transform=k,p.webkitTransform=k,l[n].yOffset=u.y-1}else H.setAttribute("width",1),H.setAttribute("height",1);g.appendChild(H)}else this.innerElem.appendChild(h)}else if(h.textContent=l[n].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),!this.isMasked){this.innerElem.appendChild(g);var R=h.style,V="translate3d(0,"+-o.finalSize/1.2+"px,0)";R.transform=V,R.webkitTransform=V}else this.innerElem.appendChild(h);if(!this.isMasked)this.textSpans[v]=g;else this.textSpans[v]=h;this.textSpans[v].style.display="block",this.textPaths[v]=h,v+=1}while(v<this.textSpans.length)this.textSpans[v].style.display="none",v+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var o;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),o=this.svgElement.style;var i="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";o.transform=i,o.webkitTransform=i}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)return;var a,t,r=0,e=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;t=n.length;var s,l,h;for(a=0;a<t;a+=1)if(n[a].n)r+=1;else{if(l=this.textSpans[a],h=this.textPaths[a],s=e[r],r+=1,s._mdf.m)if(!this.isMasked)l.style.webkitTransform=s.m,l.style.transform=s.m;else l.setAttribute("transform",s.m);if(l.style.opacity=s.o,s.sw&&s._mdf.sw)h.setAttribute("stroke-width",s.sw);if(s.sc&&s._mdf.sc)h.setAttribute("stroke",s.sc);if(s.fc&&s._mdf.fc)h.setAttribute("fill",s.fc),h.style.color=s.fc}if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var g=this.innerElem.getBBox();if(this.currentBBox.w!==g.width)this.currentBBox.w=g.width,this.svgElement.setAttribute("width",g.width);if(this.currentBBox.h!==g.height)this.currentBBox.h=g.height,this.svgElement.setAttribute("height",g.height);var H=1;if(this.currentBBox.w!==g.width+H*2||this.currentBBox.h!==g.height+H*2||this.currentBBox.x!==g.x-H||this.currentBBox.y!==g.y-H){this.currentBBox.w=g.width+H*2,this.currentBBox.h=g.height+H*2,this.currentBBox.x=g.x-H,this.currentBBox.y=g.y-H,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),o=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";o.transform=f,o.webkitTransform=f}}};function HCameraElement(o,i,a){this.initFrame(),this.initBaseData(o,i,a),this.initHierarchy();var t=PropertyFactory.getProp;if(this.pe=t(this,o.pe,0,0,this),o.ks.p.s)this.px=t(this,o.ks.p.x,1,0,this),this.py=t(this,o.ks.p.y,1,0,this),this.pz=t(this,o.ks.p.z,1,0,this);else this.p=t(this,o.ks.p,1,0,this);if(o.ks.a)this.a=t(this,o.ks.a,1,0,this);if(o.ks.or.k.length&&o.ks.or.k[0].to){var r,e=o.ks.or.k.length;for(r=0;r<e;r+=1)o.ks.or.k[r].to=null,o.ks.or.k[r].ti=null}this.or=t(this,o.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=t(this,o.ks.rx,0,degToRads,this),this.ry=t(this,o.ks.ry,0,degToRads,this),this.rz=t(this,o.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var o,i=this.comp.threeDElements.length,a,t,r;for(o=0;o<i;o+=1)if(a=this.comp.threeDElements[o],a.type==="3d"){t=a.perspectiveElem.style,r=a.container.style;var e=this.pe.v+"px",n="0px 0px 0px",s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";t.perspective=e,t.webkitPerspective=e,r.transformOrigin=n,r.mozTransformOrigin=n,r.webkitTransformOrigin=n,t.transform=s,t.webkitTransform=s}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var o=this._isFirstFrame,i,a;if(this.hierarchy){a=this.hierarchy.length;for(i=0;i<a;i+=1)o=this.hierarchy[i].finalTransform.mProp._mdf||o}if(o||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy){a=this.hierarchy.length-1;for(i=a;i>=0;i-=1){var t=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-t.p.v[0],-t.p.v[1],t.p.v[2]),this.mat.rotateX(-t.or.v[0]).rotateY(-t.or.v[1]).rotateZ(t.or.v[2]),this.mat.rotateX(-t.rx.v).rotateY(-t.ry.v).rotateZ(t.rz.v),this.mat.scale(1/t.s.v[0],1/t.s.v[1],1/t.s.v[2]),this.mat.translate(t.a.v[0],t.a.v[1],t.a.v[2])}}if(this.p)this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]);else this.mat.translate(-this.px.v,-this.py.v,this.pz.v);if(this.a){var r;if(this.p)r=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]];else r=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var e=Math.sqrt(Math.pow(r[0],2)+Math.pow(r[1],2)+Math.pow(r[2],2)),n=[r[0]/e,r[1]/e,r[2]/e],s=Math.sqrt(n[2]*n[2]+n[0]*n[0]),l=Math.atan2(n[1],s),h=Math.atan2(n[0],-n[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var g=!this._prevMat.equals(this.mat);if((g||this.pe._mdf)&&this.comp.threeDElements){a=this.comp.threeDElements.length;var H,f,y;for(i=0;i<a;i+=1)if(H=this.comp.threeDElements[i],H.type==="3d"){if(g){var z=this.mat.toCSS();y=H.container.style,y.transform=z,y.webkitTransform=z}if(this.pe._mdf)f=H.perspectiveElem.style,f.perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px"}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(o){this.prepareProperties(o,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(o,i,a){this.assetData=i.getAssetData(o.refId),this.initElement(o,i,a)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var o=this.globalData.getAssetsPath(this.assetData),i=new Image;if(this.data.hasMask)this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",o),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h);else this.layerElement.appendChild(i);if(i.crossOrigin="anonymous",i.src=o,this.data.ln)this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){while(this.pendingElements.length){var o=this.pendingElements.pop();o.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(o,i){var a=o.getBaseElement();if(!a)return;var t=this.layers[i];if(!t.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(a,i);else{var r=0,e,n,s;while(r<i){if(this.elements[r]&&this.elements[r]!==!0&&this.elements[r].getBaseElement)n=this.elements[r],s=this.layers[r].ddd?this.getThreeDContainerByPos(r):n.getBaseElement(),e=s||e;r+=1}if(e){if(!t.ddd||!this.supports3d)this.layerElement.insertBefore(a,e)}else if(!t.ddd||!this.supports3d)this.layerElement.appendChild(a)}else this.addTo3dContainer(a,i)},HybridRendererBase.prototype.createShape=function(o){if(!this.supports3d)return new SVGShapeElement(o,this.globalData,this);return new HShapeElement(o,this.globalData,this)},HybridRendererBase.prototype.createText=function(o){if(!this.supports3d)return new SVGTextLottieElement(o,this.globalData,this);return new HTextElement(o,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(o){return this.camera=new HCameraElement(o,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(o){if(!this.supports3d)return new IImageElement(o,this.globalData,this);return new HImageElement(o,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(o){if(!this.supports3d)return new ISolidElement(o,this.globalData,this);return new HSolidElement(o,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(o){var i=0,a=this.threeDElements.length;while(i<a){if(this.threeDElements[i].startPos<=o&&this.threeDElements[i].endPos>=o)return this.threeDElements[i].perspectiveElem;i+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(o,i){var a=createTag("div"),t,r;styleDiv(a);var e=createTag("div");if(styleDiv(e),i==="3d"){t=a.style,t.width=this.globalData.compSize.w+"px",t.height=this.globalData.compSize.h+"px";var n="50% 50%";t.webkitTransformOrigin=n,t.mozTransformOrigin=n,t.transformOrigin=n,r=e.style;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.transform=s,r.webkitTransform=s}a.appendChild(e);var l={container:e,perspectiveElem:a,startPos:o,endPos:o,type:i};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var o,i=this.layers.length,a,t="";for(o=0;o<i;o+=1)if(this.layers[o].ddd&&this.layers[o].ty!==3){if(t!=="3d")t="3d",a=this.createThreeDContainer(o,"3d");a.endPos=Math.max(a.endPos,o)}else{if(t!=="2d")t="2d",a=this.createThreeDContainer(o,"2d");a.endPos=Math.max(a.endPos,o)}i=this.threeDElements.length;for(o=i-1;o>=0;o-=1)this.resizerElem.appendChild(this.threeDElements[o].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(o,i){var a=0,t=this.threeDElements.length;while(a<t){if(i<=this.threeDElements[a].endPos){var r=this.threeDElements[a].startPos,e;while(r<i){if(this.elements[r]&&this.elements[r].getBaseElement)e=this.elements[r].getBaseElement();r+=1}if(e)this.threeDElements[a].container.insertBefore(o,e);else this.threeDElements[a].container.appendChild(o);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(o){var i=createTag("div"),a=this.animationItem.wrapper,t=i.style;if(t.width=o.w+"px",t.height=o.h+"px",this.resizerElem=i,styleDiv(i),t.transformStyle="flat",t.mozTransformStyle="flat",t.webkitTransformStyle="flat",this.renderConfig.className)i.setAttribute("class",this.renderConfig.className);a.appendChild(i),t.overflow="hidden";var r=createNS("svg");r.setAttribute("width","1"),r.setAttribute("height","1"),styleDiv(r),this.resizerElem.appendChild(r);var e=createNS("defs");r.appendChild(e),this.data=o,this.setupGlobalData(o,r),this.globalData.defs=e,this.layers=o.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){if(this.animationItem.wrapper)this.animationItem.wrapper.innerText="";this.animationItem.container=null,this.globalData.defs=null;var o,i=this.layers?this.layers.length:0;for(o=0;o<i;o+=1)if(this.elements[o]&&this.elements[o].destroy)this.elements[o].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var o=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight,a=o/i,t=this.globalData.compSize.w/this.globalData.compSize.h,r,e,n,s;if(t>a)r=o/this.globalData.compSize.w,e=o/this.globalData.compSize.w,n=0,s=(i-this.globalData.compSize.h*(o/this.globalData.compSize.w))/2;else r=i/this.globalData.compSize.h,e=i/this.globalData.compSize.h,n=(o-this.globalData.compSize.w*(i/this.globalData.compSize.h))/2,s=0;var l=this.resizerElem.style;l.webkitTransform="matrix3d("+r+",0,0,0,0,"+e+",0,0,0,0,1,0,"+n+","+s+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var o=this.globalData.compSize.w,i=this.globalData.compSize.h,a,t=this.threeDElements.length;for(a=0;a<t;a+=1){var r=this.threeDElements[a].perspectiveElem.style;r.webkitPerspective=Math.sqrt(Math.pow(o,2)+Math.pow(i,2))+"px",r.perspective=r.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(o){var i,a=o.length,t=createTag("div");for(i=0;i<a;i+=1)if(o[i].xt){var r=this.createComp(o[i],t,this.globalData.comp,null);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}};function HCompElement(o,i,a){this.layers=o.layers,this.supports3d=!o.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(o,i,a),this.tm=o.tm?PropertyFactory.getProp(this,o.tm,0,i.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){if(this._createBaseContainerElements(),this.data.hasMask)this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement;else this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(o,i){var a=0,t;while(a<i){if(this.elements[a]&&this.elements[a].getBaseElement)t=this.elements[a].getBaseElement();a+=1}if(t)this.layerElement.insertBefore(o,t);else this.layerElement.appendChild(o)},HCompElement.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};function HybridRenderer(o,i){this.animationItem=o,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:i&&i.className||"",imagePreserveAspectRatio:i&&i.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(i&&i.hideOnTransparent===!1),filterSize:{width:i&&i.filterSize&&i.filterSize.width||"400%",height:i&&i.filterSize&&i.filterSize.height||"400%",x:i&&i.filterSize&&i.filterSize.x||"-100%",y:i&&i.filterSize&&i.filterSize.y||"-100%"},runExpressions:!i||i.runExpressions===void 0||i.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(o){if(!this.supports3d)return new SVGCompElement(o,this.globalData,this);return new HCompElement(o,this.globalData,this)};var CompExpressionInterface=function(){return function(o){function i(a){var t=0,r=o.layers.length;while(t<r){if(o.layers[t].nm===a||o.layers[t].ind===a)return o.elements[t].layerInterface;t+=1}return null}return Object.defineProperty(i,"_name",{value:o.data.nm}),i.layer=i,i.pixelAspect=1,i.height=o.data.h||o.globalData.compSize.h,i.width=o.data.w||o.globalData.compSize.w,i.pixelAspect=1,i.frameDuration=1/o.globalData.frameRate,i.displayStartTime=0,i.numLayers=o.layers.length,i}}();function _typeof$2(o){return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$2(o)}function seedRandom(o,i){var a=this,t=256,r=6,e=52,n="random",s=i.pow(t,r),l=i.pow(2,e),h=l*2,g=t-1,H;function f(p,k,R){var V=[];k=k===!0?{entropy:!0}:k||{};var L=U(v(k.entropy?[p,u(o)]:p===null?b():p,3),V),w=new y(V),Z=function I(){var F=w.g(r),J=s,C=0;while(F<l)F=(F+C)*t,J*=t,C=w.g(1);while(F>=h)F/=2,J/=2,C>>>=1;return(F+C)/J};return Z.int32=function(){return w.g(4)|0},Z.quick=function(){return w.g(4)/4294967296},Z.double=Z,U(u(w.S),o),(k.pass||R||function(I,F,J,C){if(C){if(C.S)z(C,w);I.state=function(){return z(w,{})}}if(J)return i[n]=I,F;else return I})(Z,L,"global"in k?k.global:this==i,k.state)}i["seed"+n]=f;function y(p){var k,R=p.length,V=this,L=0,w=V.i=V.j=0,Z=V.S=[];if(!R)p=[R++];while(L<t)Z[L]=L++;for(L=0;L<t;L++)Z[L]=Z[w=g&w+p[L%R]+(k=Z[L])],Z[w]=k;V.g=function(I){var F,J=0,C=V.i,j=V.j,W=V.S;while(I--)F=W[C=g&C+1],J=J*t+W[g&(W[C]=W[j=g&j+F])+(W[j]=F)];return V.i=C,V.j=j,J}}function z(p,k){return k.i=p.i,k.j=p.j,k.S=p.S.slice(),k}function v(p,k){var R=[],V=_typeof$2(p),L;if(k&&V=="object")for(L in p)try{R.push(v(p[L],k-1))}catch(w){}return R.length?R:V=="string"?p:p+"\x00"}function U(p,k){var R=p+"",V,L=0;while(L<R.length)k[g&L]=g&(V^=k[g&L]*19)+R.charCodeAt(L++);return u(k)}function b(){try{if(H)return u(H.randomBytes(t));var p=new Uint8Array(t);return(a.crypto||a.msCrypto).getRandomValues(p),u(p)}catch(V){var k=a.navigator,R=k&&k.plugins;return[+new Date,a,R,a.screen,u(o)]}}function u(p){return String.fromCharCode.apply(0,p)}U(i.random(),o)}function initialize$2(o){seedRandom([],o)}var propTypes={SHAPE:"shape"};function _typeof$1(o){return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$1(o)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(o){return o.constructor===Array||o.constructor===Float32Array}function isNumerable(o,i){return o==="number"||i instanceof Number||o==="boolean"||o==="string"}function $bm_neg(o){var i=_typeof$1(o);if(i==="number"||o instanceof Number||i==="boolean")return-o;if($bm_isInstanceOfArray(o)){var a,t=o.length,r=[];for(a=0;a<t;a+=1)r[a]=-o[a];return r}if(o.propType)return o.v;return-o}var easeInBez=BezierFactory.getBezierEasing(0.333,0,0.833,0.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(0.167,0.167,0.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(0.33,0,0.667,1,"easeInOut").get;function sum(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)||a==="string"||t==="string")return o+i;if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]+=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o+i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]+i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}var add=sum;function sub(o,i){var a=_typeof$1(o),t=_typeof$1(i);if(isNumerable(a,o)&&isNumerable(t,i)){if(a==="string")o=parseInt(o,10);if(t==="string")i=parseInt(i,10);return o-i}if($bm_isInstanceOfArray(o)&&isNumerable(t,i))return o=o.slice(0),o[0]-=i,o;if(isNumerable(a,o)&&$bm_isInstanceOfArray(i))return i=i.slice(0),i[0]=o-i[0],i;if($bm_isInstanceOfArray(o)&&$bm_isInstanceOfArray(i)){var r=0,e=o.length,n=i.length,s=[];while(r<e||r<n){if((typeof o[r]==="number"||o[r]instanceof Number)&&(typeof i[r]==="number"||i[r]instanceof Number))s[r]=o[r]-i[r];else s[r]=i[r]===void 0?o[r]:o[r]||i[r];r+=1}return s}return 0}function mul(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o*i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]*i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o*i[e];return r}return 0}function div(o,i){var a=_typeof$1(o),t=_typeof$1(i),r;if(isNumerable(a,o)&&isNumerable(t,i))return o/i;var e,n;if($bm_isInstanceOfArray(o)&&isNumerable(t,i)){n=o.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o[e]/i;return r}if(isNumerable(a,o)&&$bm_isInstanceOfArray(i)){n=i.length,r=createTypedArray("float32",n);for(e=0;e<n;e+=1)r[e]=o/i[e];return r}return 0}function mod(o,i){if(typeof o==="string")o=parseInt(o,10);if(typeof i==="string")i=parseInt(i,10);return o%i}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(o,i,a){if(i>a){var t=a;a=i,i=t}return Math.min(Math.max(o,i),a)}function radiansToDegrees(o){return o/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(o){return o*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(o,i){if(typeof o==="number"||o instanceof Number)return i=i||0,Math.abs(o-i);if(!i)i=helperLengthArray;var a,t=Math.min(o.length,i.length),r=0;for(a=0;a<t;a+=1)r+=Math.pow(i[a]-o[a],2);return Math.sqrt(r)}function normalize(o){return div(o,length(o))}function rgbToHsl(o){var i=o[0],a=o[1],t=o[2],r=Math.max(i,a,t),e=Math.min(i,a,t),n,s,l=(r+e)/2;if(r===e)n=0,s=0;else{var h=r-e;switch(s=l>0.5?h/(2-r-e):h/(r+e),r){case i:n=(a-t)/h+(a<t?6:0);break;case a:n=(t-i)/h+2;break;case t:n=(i-a)/h+4;break;default:break}n/=6}return[n,s,l,o[3]]}function hue2rgb(o,i,a){if(a<0)a+=1;if(a>1)a-=1;if(a<0.16666666666666666)return o+(i-o)*6*a;if(a<0.5)return i;if(a<0.6666666666666666)return o+(i-o)*(0.6666666666666666-a)*6;return o}function hslToRgb(o){var i=o[0],a=o[1],t=o[2],r,e,n;if(a===0)r=t,n=t,e=t;else{var s=t<0.5?t*(1+a):t+a-t*a,l=2*t-s;r=hue2rgb(l,s,i+0.3333333333333333),e=hue2rgb(l,s,i),n=hue2rgb(l,s,i-0.3333333333333333)}return[r,e,n,o[3]]}function linear(o,i,a,t,r){if(t===void 0||r===void 0)t=i,r=a,i=0,a=1;if(a<i){var e=a;a=i,i=e}if(o<=i)return t;if(o>=a)return r;var n=a===i?0:(o-i)/(a-i);if(!t.length)return t+(r-t)*n;var s,l=t.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=t[s]+(r[s]-t[s])*n;return h}function random(o,i){if(i===void 0)if(o===void 0)o=0,i=1;else i=o,o=void 0;if(i.length){var a,t=i.length;if(!o)o=createTypedArray("float32",t);var r=createTypedArray("float32",t),e=BMMath.random();for(a=0;a<t;a+=1)r[a]=o[a]+e*(i[a]-o[a]);return r}if(o===void 0)o=0;var n=BMMath.random();return o+n*(i-o)}function createPath(o,i,a,t){var r,e=o.length,n=shapePool.newElement();n.setPathData(!!t,e);var s=[0,0],l,h;for(r=0;r<e;r+=1)l=i&&i[r]?i[r]:s,h=a&&a[r]?a[r]:s,n.setTripleAt(o[r][0],o[r][1],h[0]+o[r][0],h[1]+o[r][1],l[0]+o[r][0],l[1]+o[r][1],r,!0);return n}function initiateExpression(elem,data,property){function noOp(o){return o}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function o(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=function o(i,a){var t,r,e=this.pv.length?this.pv.length:1,n=createTypedArray("float32",e);i=5;var s=Math.floor(time*i);t=0,r=0;while(t<s){for(r=0;r<e;r+=1)n[r]+=-a+a*2*BMMath.random();t+=1}var l=time*i,h=l-Math.floor(l),g=createTypedArray("float32",e);if(e>1){for(r=0;r<e;r+=1)g[r]=this.pv[r]+n[r]+(-a+a*2*BMMath.random())*h;return g}return this.pv+n[0]+(-a+a*2*BMMath.random())*h}.bind(this);if(thisProperty.loopIn)loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn;if(thisProperty.loopOut)loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut;if(thisProperty.smooth)smooth=thisProperty.smooth.bind(thisProperty);function loopInDuration(o,i){return loopIn(o,i,!0)}function loopOutDuration(o,i){return loopOut(o,i,!0)}if(this.getValueAtTime)valueAtTime=this.getValueAtTime.bind(this);if(this.getVelocityAtTime)velocityAtTime=this.getVelocityAtTime.bind(this);var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(o,i){var a=[i[0]-o[0],i[1]-o[1],i[2]-o[2]],t=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads,r=-Math.atan2(a[1],a[2])/degToRads;return[r,t,0]}function easeOut(o,i,a,t,r){return applyEase(easeOutBez,o,i,a,t,r)}function easeIn(o,i,a,t,r){return applyEase(easeInBez,o,i,a,t,r)}function ease(o,i,a,t,r){return applyEase(easeInOutBez,o,i,a,t,r)}function applyEase(o,i,a,t,r,e){if(r===void 0)r=a,e=t;else i=(i-a)/(t-a);if(i>1)i=1;else if(i<0)i=0;var n=o(i);if($bm_isInstanceOfArray(r)){var s,l=r.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=(e[s]-r[s])*n+r[s];return h}return(e-r)*n+r}function nearestKey(o){var i,a=data.k.length,t,r;if(!data.k.length||typeof data.k[0]==="number")t=0,r=0;else if(t=-1,o*=elem.comp.globalData.frameRate,o<data.k[0].t)t=1,r=data.k[0].t;else{for(i=0;i<a-1;i+=1)if(o===data.k[i].t){t=i+1,r=data.k[i].t;break}else if(o>data.k[i].t&&o<data.k[i+1].t){if(o-data.k[i].t>data.k[i+1].t-o)t=i+2,r=data.k[i+1].t;else t=i+1,r=data.k[i].t;break}if(t===-1)t=i+1,r=data.k[i].t}var e={};return e.index=t,e.time=r/elem.comp.globalData.frameRate,e}function key(o){var i,a,t;if(!data.k.length||typeof data.k[0]==="number")throw new Error("The property has no keyframe at index "+o);o-=1,i={time:data.k[o].t/elem.comp.globalData.frameRate,value:[]};var r=Object.prototype.hasOwnProperty.call(data.k[o],"s")?data.k[o].s:data.k[o-1].e;t=r.length;for(a=0;a<t;a+=1)i[a]=r[a],i.value[a]=r[a];return i}function framesToTime(o,i){if(!i)i=elem.comp.globalData.frameRate;return o/i}function timeToFrames(o,i){if(!o&&o!==0)o=time;if(!i)i=elem.comp.globalData.frameRate;return o*i}function seedRandom(o){BMMath.seedrandom(randSeed+o)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(o,i){if(typeof value==="string"){if(i===void 0)return value.substring(o);return value.substring(o,i)}return""}function substr(o,i){if(typeof value==="string"){if(i===void 0)return value.substr(o);return value.substr(o,i)}return""}function posterizeTime(o){time=o===0?0:Math.floor(time*o)/o,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(o){if(value=o,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector")return value;if(this.propType==="textSelector")textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue;if(!thisLayer)text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp;if(!transform){if(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform)anchorPoint=transform.anchorPoint}if(elemType===4&&!content)content=thisLayer("ADBE Root Vectors Group");if(!effect)effect=thisLayer(4);if(hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent)parent=elem.hierarchy[0].layerInterface;if(time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom)seedRandom(randSeed+time);if(needsVelocity)velocity=velocityAtTime(time);return expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var o={};o.initExpressions=i,o.resetFrame=ExpressionManager.resetFrame;function i(a){var t=0,r=[];function e(){t+=1}function n(){if(t-=1,t===0)l()}function s(h){if(r.indexOf(h)===-1)r.push(h)}function l(){var h,g=r.length;for(h=0;h<g;h+=1)r[h].release();r.length=0}a.renderer.compInterface=CompExpressionInterface(a.renderer),a.renderer.globalData.projectInterface.registerComposition(a.renderer),a.renderer.globalData.pushExpression=e,a.renderer.globalData.popExpression=n,a.renderer.globalData.registerExpressionProperty=s}return o}(),MaskManagerInterface=function(){function o(a,t){this._mask=a,this._data=t}Object.defineProperty(o.prototype,"maskPath",{get:function a(){if(this._mask.prop.k)this._mask.prop.getValue();return this._mask.prop}}),Object.defineProperty(o.prototype,"maskOpacity",{get:function a(){if(this._mask.op.k)this._mask.op.getValue();return this._mask.op.v*100}});var i=function a(t){var r=createSizedArray(t.viewData.length),e,n=t.viewData.length;for(e=0;e<n;e+=1)r[e]=new o(t.viewData[e],t.masksProperties[e]);var s=function l(h){e=0;while(e<n){if(t.masksProperties[e].nm===h)return r[e];e+=1}return null};return s};return i}(),ExpressionPropertyInterface=function(){var o={pv:0,v:0,mult:1},i={pv:[0,0,0],v:[0,0,0],mult:1};function a(n,s,l){Object.defineProperty(n,"velocity",{get:function h(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(h){if(!n.numKeys)return 0;var g="";if("s"in s.keyframes[h-1])g=s.keyframes[h-1].s;else if("e"in s.keyframes[h-2])g=s.keyframes[h-2].e;else g=s.keyframes[h-2].s;var H=l==="unidimensional"?new Number(g):Object.assign({},g);return H.time=s.keyframes[h-1].t/s.elem.comp.globalData.frameRate,H.value=l==="unidimensional"?g[0]:g,H},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function t(n){if(!n||!("pv"in n))n=o;var s=1/n.mult,l=n.pv*s,h=new Number(l);return h.value=l,a(h,n,"unidimensional"),function(){if(n.k)n.getValue();if(l=n.v*s,h.value!==l)h=new Number(l),h.value=l,h[0]=l,a(h,n,"unidimensional");return h}}function r(n){if(!n||!("pv"in n))n=i;var s=1/n.mult,l=n.data&&n.data.l||n.pv.length,h=createTypedArray("float32",l),g=createTypedArray("float32",l);return h.value=g,a(h,n,"multidimensional"),function(){if(n.k)n.getValue();for(var H=0;H<l;H+=1)g[H]=n.v[H]*s,h[H]=g[H];return h}}function e(){return o}return function(n){if(!n)return e;if(n.propType==="unidimensional")return t(n);return r(n)}}(),TransformExpressionInterface=function(){return function(o){function i(n){switch(n){case"scale":case"Scale":case"ADBE Scale":case 6:return i.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return i.rotation;case"ADBE Rotate X":return i.xRotation;case"ADBE Rotate Y":return i.yRotation;case"position":case"Position":case"ADBE Position":case 2:return i.position;case"ADBE Position_0":return i.xPosition;case"ADBE Position_1":return i.yPosition;case"ADBE Position_2":return i.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return i.anchorPoint;case"opacity":case"Opacity":case 11:return i.opacity;default:return null}}Object.defineProperty(i,"rotation",{get:ExpressionPropertyInterface(o.r||o.rz)}),Object.defineProperty(i,"zRotation",{get:ExpressionPropertyInterface(o.rz||o.r)}),Object.defineProperty(i,"xRotation",{get:ExpressionPropertyInterface(o.rx)}),Object.defineProperty(i,"yRotation",{get:ExpressionPropertyInterface(o.ry)}),Object.defineProperty(i,"scale",{get:ExpressionPropertyInterface(o.s)});var a,t,r,e;if(o.p)e=ExpressionPropertyInterface(o.p);else if(a=ExpressionPropertyInterface(o.px),t=ExpressionPropertyInterface(o.py),o.pz)r=ExpressionPropertyInterface(o.pz);return Object.defineProperty(i,"position",{get:function n(){if(o.p)return e();return[a(),t(),r?r():0]}}),Object.defineProperty(i,"xPosition",{get:ExpressionPropertyInterface(o.px)}),Object.defineProperty(i,"yPosition",{get:ExpressionPropertyInterface(o.py)}),Object.defineProperty(i,"zPosition",{get:ExpressionPropertyInterface(o.pz)}),Object.defineProperty(i,"anchorPoint",{get:ExpressionPropertyInterface(o.a)}),Object.defineProperty(i,"opacity",{get:ExpressionPropertyInterface(o.o)}),Object.defineProperty(i,"skew",{get:ExpressionPropertyInterface(o.sk)}),Object.defineProperty(i,"skewAxis",{get:ExpressionPropertyInterface(o.sa)}),Object.defineProperty(i,"orientation",{get:ExpressionPropertyInterface(o.or)}),i}}(),LayerExpressionInterface=function(){function o(h){var g=new Matrix;if(h!==void 0){var H=this._elem.finalTransform.mProp.getValueAtTime(h);H.clone(g)}else{var f=this._elem.finalTransform.mProp;f.applyToMatrix(g)}return g}function i(h,g){var H=this.getMatrix(g);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.applyPoint(H,h)}function a(h,g){var H=this.getMatrix(g);return this.applyPoint(H,h)}function t(h,g){var H=this.getMatrix(g);return H.props[12]=0,H.props[13]=0,H.props[14]=0,this.invertPoint(H,h)}function r(h,g){var H=this.getMatrix(g);return this.invertPoint(H,h)}function e(h,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(g[0],g[1],g[2]||0)}function n(h,g){if(this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(g)}function s(h){var g=new Matrix;if(g.reset(),this._elem.finalTransform.mProp.applyToMatrix(g),this._elem.hierarchy&&this._elem.hierarchy.length){var H,f=this._elem.hierarchy.length;for(H=0;H<f;H+=1)this._elem.hierarchy[H].finalTransform.mProp.applyToMatrix(g);return g.inversePoint(h)}return g.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var g;function H(v){y.mask=new MaskManagerInterface(v,h)}function f(v){y.effect=v}function y(v){switch(v){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return g;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=o,y.invertPoint=n,y.applyPoint=e,y.toWorld=a,y.toWorldVec=i,y.fromWorld=r,y.fromWorldVec=t,y.toComp=a,y.fromComp=s,y.sampleImage=l,y.sourceRectAtTime=h.sourceRectAtTime.bind(h),y._elem=h,g=TransformExpressionInterface(h.finalTransform.mProp);var z=getDescriptor(g,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function v(){return h.hierarchy.length}},parent:{get:function v(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(g,"rotation"),scale:getDescriptor(g,"scale"),position:getDescriptor(g,"position"),opacity:getDescriptor(g,"opacity"),anchorPoint:z,anchor_point:z,transform:{get:function v(){return g}},active:{get:function v(){return h.isInRange}}}),y.startTime=h.data.st,y.index=h.data.ind,y.source=h.data.refId,y.height=h.data.ty===0?h.data.h:100,y.width=h.data.ty===0?h.data.w:100,y.inPoint=h.data.ip/h.comp.globalData.frameRate,y.outPoint=h.data.op/h.comp.globalData.frameRate,y._name=h.data.nm,y.registerMaskInterface=H,y.registerEffectsInterface=f,y}}(),propertyGroupFactory=function(){return function(o,i){return function(a){if(a=a===void 0?1:a,a<=0)return o;return i(a-1)}}}(),PropertyInterface=function(){return function(o,i){var a={_name:o};function t(r){if(r=r===void 0?1:r,r<=0)return a;return i(r-1)}return t}}(),EffectsExpressionInterface=function(){var o={createEffectsInterface:i};function i(r,e){if(r.effectsManager){var n=[],s=r.data.ef,l,h=r.effectsManager.effectElements.length;for(l=0;l<h;l+=1)n.push(a(s[l],r.effectsManager.effectElements[l],e,r));var g=r.data.ef||[],H=function f(y){l=0,h=g.length;while(l<h){if(y===g[l].nm||y===g[l].mn||y===g[l].ix)return n[l];l+=1}return null};return Object.defineProperty(H,"numProperties",{get:function f(){return g.length}}),H}return null}function a(r,e,n,s){function l(y){var z=r.ef,v=0,U=z.length;while(v<U){if(y===z[v].nm||y===z[v].mn||y===z[v].ix){if(z[v].ty===5)return g[v];return g[v]()}v+=1}throw new Error}var h=propertyGroupFactory(l,n),g=[],H,f=r.ef.length;for(H=0;H<f;H+=1)if(r.ef[H].ty===5)g.push(a(r.ef[H],e.effectElements[H],e.effectElements[H].propertyGroup,s));else g.push(t(e.effectElements[H],r.ef[H].ty,s,h));if(r.mn==="ADBE Color Control")Object.defineProperty(l,"color",{get:function y(){return g[0]()}});return Object.defineProperties(l,{numProperties:{get:function y(){return r.np}},_name:{value:r.nm},propertyGroup:{value:h}}),l.enabled=r.en!==0,l.active=l.enabled,l}function t(r,e,n,s){var l=ExpressionPropertyInterface(r.p);function h(){if(e===10)return n.comp.compInterface(r.p.v);return l()}if(r.p.setGroupProperty)r.p.setGroupProperty(PropertyInterface("",s));return h}return o}(),ShapePathInterface=function(){return function o(i,a,t){var r=a.sh;function e(s){if(s==="Shape"||s==="shape"||s==="Path"||s==="path"||s==="ADBE Vector Shape"||s===2)return e.path;return null}var n=propertyGroupFactory(e,t);return r.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(e,{path:{get:function s(){if(r.k)r.getValue();return r}},shape:{get:function s(){if(r.k)r.getValue();return r}},_name:{value:i.nm},ix:{value:i.ix},propertyIndex:{value:i.ix},mn:{value:i.mn},propertyGroup:{value:t}}),e}}(),ShapeExpressionInterface=function(){function o(z,v,U){var b=[],u,p=z?z.length:0;for(u=0;u<p;u+=1)if(z[u].ty==="gr")b.push(a(z[u],v[u],U));else if(z[u].ty==="fl")b.push(t(z[u],v[u],U));else if(z[u].ty==="st")b.push(n(z[u],v[u],U));else if(z[u].ty==="tm")b.push(s(z[u],v[u],U));else if(z[u].ty==="tr");else if(z[u].ty==="el")b.push(h(z[u],v[u],U));else if(z[u].ty==="sr")b.push(g(z[u],v[u],U));else if(z[u].ty==="sh")b.push(ShapePathInterface(z[u],v[u],U));else if(z[u].ty==="rc")b.push(H(z[u],v[u],U));else if(z[u].ty==="rd")b.push(f(z[u],v[u],U));else if(z[u].ty==="rp")b.push(y(z[u],v[u],U));else if(z[u].ty==="gf")b.push(r(z[u],v[u],U));else b.push(e(z[u],v[u],U));return b}function i(z,v,U){var b,u=function k(R){var V=0,L=b.length;while(V<L){if(b[V]._name===R||b[V].mn===R||b[V].propertyIndex===R||b[V].ix===R||b[V].ind===R)return b[V];V+=1}if(typeof R==="number")return b[R-1];return null};u.propertyGroup=propertyGroupFactory(u,U),b=o(z.it,v.it,u.propertyGroup),u.numProperties=b.length;var p=l(z.it[z.it.length-1],v.it[v.it.length-1],u.propertyGroup);return u.transform=p,u.propertyIndex=z.cix,u._name=z.nm,u}function a(z,v,U){var b=function k(R){switch(R){case"ADBE Vectors Group":case"Contents":case 2:return b.content;default:return b.transform}};b.propertyGroup=propertyGroupFactory(b,U);var u=i(z,v,b.propertyGroup),p=l(z.it[z.it.length-1],v.it[v.it.length-1],b.propertyGroup);return b.content=u,b.transform=p,Object.defineProperty(b,"_name",{get:function k(){return z.nm}}),b.numProperties=z.np,b.propertyIndex=z.ix,b.nm=z.nm,b.mn=z.mn,b}function t(z,v,U){function b(u){if(u==="Color"||u==="color")return b.color;if(u==="Opacity"||u==="opacity")return b.opacity;return null}return Object.defineProperties(b,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",U)),v.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function r(z,v,U){function b(u){if(u==="Start Point"||u==="start point")return b.startPoint;if(u==="End Point"||u==="end point")return b.endPoint;if(u==="Opacity"||u==="opacity")return b.opacity;return null}return Object.defineProperties(b,{startPoint:{get:ExpressionPropertyInterface(v.s)},endPoint:{get:ExpressionPropertyInterface(v.e)},opacity:{get:ExpressionPropertyInterface(v.o)},type:{get:function u(){return"a"}},_name:{value:z.nm},mn:{value:z.mn}}),v.s.setGroupProperty(PropertyInterface("Start Point",U)),v.e.setGroupProperty(PropertyInterface("End Point",U)),v.o.setGroupProperty(PropertyInterface("Opacity",U)),b}function e(){function z(){return null}return z}function n(z,v,U){var b=propertyGroupFactory(L,U),u=propertyGroupFactory(V,b);function p(w){Object.defineProperty(V,z.d[w].nm,{get:ExpressionPropertyInterface(v.d.dataProps[w].p)})}var k,R=z.d?z.d.length:0,V={};for(k=0;k<R;k+=1)p(k),v.d.dataProps[k].p.setGroupProperty(u);function L(w){if(w==="Color"||w==="color")return L.color;if(w==="Opacity"||w==="opacity")return L.opacity;if(w==="Stroke Width"||w==="stroke width")return L.strokeWidth;return null}return Object.defineProperties(L,{color:{get:ExpressionPropertyInterface(v.c)},opacity:{get:ExpressionPropertyInterface(v.o)},strokeWidth:{get:ExpressionPropertyInterface(v.w)},dash:{get:function w(){return V}},_name:{value:z.nm},mn:{value:z.mn}}),v.c.setGroupProperty(PropertyInterface("Color",b)),v.o.setGroupProperty(PropertyInterface("Opacity",b)),v.w.setGroupProperty(PropertyInterface("Stroke Width",b)),L}function s(z,v,U){function b(p){if(p===z.e.ix||p==="End"||p==="end")return b.end;if(p===z.s.ix)return b.start;if(p===z.o.ix)return b.offset;return null}var u=propertyGroupFactory(b,U);return b.propertyIndex=z.ix,v.s.setGroupProperty(PropertyInterface("Start",u)),v.e.setGroupProperty(PropertyInterface("End",u)),v.o.setGroupProperty(PropertyInterface("Offset",u)),b.propertyIndex=z.ix,b.propertyGroup=U,Object.defineProperties(b,{start:{get:ExpressionPropertyInterface(v.s)},end:{get:ExpressionPropertyInterface(v.e)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:z.nm}}),b.mn=z.mn,b}function l(z,v,U){function b(p){if(z.a.ix===p||p==="Anchor Point")return b.anchorPoint;if(z.o.ix===p||p==="Opacity")return b.opacity;if(z.p.ix===p||p==="Position")return b.position;if(z.r.ix===p||p==="Rotation"||p==="ADBE Vector Rotation")return b.rotation;if(z.s.ix===p||p==="Scale")return b.scale;if(z.sk&&z.sk.ix===p||p==="Skew")return b.skew;if(z.sa&&z.sa.ix===p||p==="Skew Axis")return b.skewAxis;return null}var u=propertyGroupFactory(b,U);if(v.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",u)),v.transform.mProps.p.setGroupProperty(PropertyInterface("Position",u)),v.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",u)),v.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",u)),v.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",u)),v.transform.mProps.sk)v.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",u)),v.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",u));return v.transform.op.setGroupProperty(PropertyInterface("Opacity",u)),Object.defineProperties(b,{opacity:{get:ExpressionPropertyInterface(v.transform.mProps.o)},position:{get:ExpressionPropertyInterface(v.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(v.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(v.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(v.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(v.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(v.transform.mProps.sa)},_name:{value:z.nm}}),b.ty="tr",b.mn=z.mn,b.propertyGroup=U,b}function h(z,v,U){function b(k){if(z.p.ix===k)return b.position;if(z.s.ix===k)return b.size;return null}var u=propertyGroupFactory(b,U);b.propertyIndex=z.ix;var p=v.sh.ty==="tm"?v.sh.prop:v.sh;return p.s.setGroupProperty(PropertyInterface("Size",u)),p.p.setGroupProperty(PropertyInterface("Position",u)),Object.defineProperties(b,{size:{get:ExpressionPropertyInterface(p.s)},position:{get:ExpressionPropertyInterface(p.p)},_name:{value:z.nm}}),b.mn=z.mn,b}function g(z,v,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.rotation;if(z.pt.ix===k)return b.points;if(z.or.ix===k||k==="ADBE Vector Star Outer Radius")return b.outerRadius;if(z.os.ix===k)return b.outerRoundness;if(z.ir&&(z.ir.ix===k||k==="ADBE Vector Star Inner Radius"))return b.innerRadius;if(z.is&&z.is.ix===k)return b.innerRoundness;return null}var u=propertyGroupFactory(b,U),p=v.sh.ty==="tm"?v.sh.prop:v.sh;if(b.propertyIndex=z.ix,p.or.setGroupProperty(PropertyInterface("Outer Radius",u)),p.os.setGroupProperty(PropertyInterface("Outer Roundness",u)),p.pt.setGroupProperty(PropertyInterface("Points",u)),p.p.setGroupProperty(PropertyInterface("Position",u)),p.r.setGroupProperty(PropertyInterface("Rotation",u)),z.ir)p.ir.setGroupProperty(PropertyInterface("Inner Radius",u)),p.is.setGroupProperty(PropertyInterface("Inner Roundness",u));return Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},rotation:{get:ExpressionPropertyInterface(p.r)},points:{get:ExpressionPropertyInterface(p.pt)},outerRadius:{get:ExpressionPropertyInterface(p.or)},outerRoundness:{get:ExpressionPropertyInterface(p.os)},innerRadius:{get:ExpressionPropertyInterface(p.ir)},innerRoundness:{get:ExpressionPropertyInterface(p.is)},_name:{value:z.nm}}),b.mn=z.mn,b}function H(z,v,U){function b(k){if(z.p.ix===k)return b.position;if(z.r.ix===k)return b.roundness;if(z.s.ix===k||k==="Size"||k==="ADBE Vector Rect Size")return b.size;return null}var u=propertyGroupFactory(b,U),p=v.sh.ty==="tm"?v.sh.prop:v.sh;return b.propertyIndex=z.ix,p.p.setGroupProperty(PropertyInterface("Position",u)),p.s.setGroupProperty(PropertyInterface("Size",u)),p.r.setGroupProperty(PropertyInterface("Rotation",u)),Object.defineProperties(b,{position:{get:ExpressionPropertyInterface(p.p)},roundness:{get:ExpressionPropertyInterface(p.r)},size:{get:ExpressionPropertyInterface(p.s)},_name:{value:z.nm}}),b.mn=z.mn,b}function f(z,v,U){function b(k){if(z.r.ix===k||k==="Round Corners 1")return b.radius;return null}var u=propertyGroupFactory(b,U),p=v;return b.propertyIndex=z.ix,p.rd.setGroupProperty(PropertyInterface("Radius",u)),Object.defineProperties(b,{radius:{get:ExpressionPropertyInterface(p.rd)},_name:{value:z.nm}}),b.mn=z.mn,b}function y(z,v,U){function b(k){if(z.c.ix===k||k==="Copies")return b.copies;if(z.o.ix===k||k==="Offset")return b.offset;return null}var u=propertyGroupFactory(b,U),p=v;return b.propertyIndex=z.ix,p.c.setGroupProperty(PropertyInterface("Copies",u)),p.o.setGroupProperty(PropertyInterface("Offset",u)),Object.defineProperties(b,{copies:{get:ExpressionPropertyInterface(p.c)},offset:{get:ExpressionPropertyInterface(p.o)},_name:{value:z.nm}}),b.mn=z.mn,b}return function(z,v,U){var b;function u(k){if(typeof k==="number"){if(k=k===void 0?1:k,k===0)return U;return b[k-1]}var R=0,V=b.length;while(R<V){if(b[R]._name===k)return b[R];R+=1}return null}function p(){return U}return u.propertyGroup=propertyGroupFactory(u,p),b=o(z,v,u.propertyGroup),u.numProperties=b.length,u._name="Contents",u}}(),TextExpressionInterface=function(){return function(o){var i;function a(t){switch(t){case"ADBE Text Document":return a.sourceText;default:return null}}return Object.defineProperty(a,"sourceText",{get:function t(){o.textProperty.getValue();var r=o.textProperty.currentData.t;if(!i||r!==i.value)i=new String(r),i.value=r||new String(r),Object.defineProperty(i,"style",{get:function e(){return{fillColor:o.textProperty.currentData.fc}}});return i}}),a}}();function _typeof(o){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof(o)}var FootageInterface=function(){var o=function a(t){var r="",e=t.getFootageData();function n(){return r="",e=t.getFootageData(),s}function s(l){if(e[l]){if(r=l,e=e[l],_typeof(e)==="object")return s;return e}var h=l.indexOf(r);if(h!==-1){var g=parseInt(l.substr(h+r.length),10);if(e=e[g],_typeof(e)==="object")return s;return e}return""}return n},i=function a(t){function r(e){if(e==="Outline")return r.outlineInterface();return null}return r._name="Outline",r.outlineInterface=o(t),r};return function(a){function t(r){if(r==="Data")return t.dataInterface;return null}return t._name="Data",t.dataInterface=i(a),t}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(o){return interfaces[o]||null}var expressionHelpers=function(){function o(n,s,l){if(s.x)l.k=!0,l.x=!0,l.initiateExpression=ExpressionManager.initiateExpression,l.effectsSequence.push(l.initiateExpression(n,s,l).bind(l))}function i(n){if(n*=this.elem.globalData.frameRate,n-=this.offsetTime,n!==this._cachingAtTime.lastFrame)this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<n?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(n,this._cachingAtTime),this._cachingAtTime.lastFrame=n;return this._cachingAtTime.value}function a(n){var s=-0.01,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),g=0;if(l.length){var H;for(H=0;H<l.length;H+=1)g+=Math.pow(h[H]-l[H],2);g=Math.sqrt(g)*100}else g=0;return g}function t(n){if(this.vel!==void 0)return this.vel;var s=-0.001,l=this.getValueAtTime(n),h=this.getValueAtTime(n+s),g;if(l.length){g=createTypedArray("float32",l.length);var H;for(H=0;H<l.length;H+=1)g[H]=(h[H]-l[H])/s}else g=(h-l)/s;return g}function r(){return this.pv}function e(n){this.propertyGroup=n}return{searchExpressions:o,getSpeedAtTime:a,getVelocityAtTime:t,getValueAtTime:i,getStaticValueAtTime:r,setGroupProperty:e}}();function addPropertyDecorator(){function o(f,y,z){if(!this.k||!this.keyframes)return this.pv;f=f?f.toLowerCase():"";var v=this.comp.renderedFrame,U=this.keyframes,b=U[U.length-1].t;if(v<=b)return this.pv;var u,p;if(!z){if(!y||y>U.length-1)y=U.length-1;p=U[U.length-1-y].t,u=b-p}else{if(!y)u=Math.max(0,b-this.elem.data.ip);else u=Math.abs(b-this.elem.comp.globalData.frameRate*y);p=b-u}var k,R,V;if(f==="pingpong"){var L=Math.floor((v-p)/u);if(L%2!==0)return this.getValueAtTime((u-(v-p)%u+p)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(p/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(b/this.comp.globalData.frameRate,0),I=this.getValueAtTime(((v-p)%u+p)/this.comp.globalData.frameRate,0),F=Math.floor((v-p)/u);if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=(Z[k]-w[k])*F+I[k];return V}return(Z-w)*F+I}else if(f==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),C=this.getValueAtTime((b-0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-C[k])*((v-b)/this.comp.globalData.frameRate)/0.0005;return V}return J+(J-C)*((v-b)/0.001)}return this.getValueAtTime(((v-p)%u+p)/this.comp.globalData.frameRate,0)}function i(f,y,z){if(!this.k)return this.pv;f=f?f.toLowerCase():"";var v=this.comp.renderedFrame,U=this.keyframes,b=U[0].t;if(v>=b)return this.pv;var u,p;if(!z){if(!y||y>U.length-1)y=U.length-1;p=U[y].t,u=p-b}else{if(!y)u=Math.max(0,this.elem.data.op-b);else u=Math.abs(this.elem.comp.globalData.frameRate*y);p=b+u}var k,R,V;if(f==="pingpong"){var L=Math.floor((b-v)/u);if(L%2===0)return this.getValueAtTime(((b-v)%u+b)/this.comp.globalData.frameRate,0)}else if(f==="offset"){var w=this.getValueAtTime(b/this.comp.globalData.frameRate,0),Z=this.getValueAtTime(p/this.comp.globalData.frameRate,0),I=this.getValueAtTime((u-(b-v)%u+b)/this.comp.globalData.frameRate,0),F=Math.floor((b-v)/u)+1;if(this.pv.length){V=new Array(w.length),R=V.length;for(k=0;k<R;k+=1)V[k]=I[k]-(Z[k]-w[k])*F;return V}return I-(Z-w)*F}else if(f==="continue"){var J=this.getValueAtTime(b/this.comp.globalData.frameRate,0),C=this.getValueAtTime((b+0.001)/this.comp.globalData.frameRate,0);if(this.pv.length){V=new Array(J.length),R=V.length;for(k=0;k<R;k+=1)V[k]=J[k]+(J[k]-C[k])*(b-v)/0.001;return V}return J+(J-C)*(b-v)/0.001}return this.getValueAtTime((u-((b-v)%u+b))/this.comp.globalData.frameRate,0)}function a(f,y){if(!this.k)return this.pv;if(f=(f||0.4)*0.5,y=Math.floor(y||5),y<=1)return this.pv;var z=this.comp.renderedFrame/this.comp.globalData.frameRate,v=z-f,U=z+f,b=y>1?(U-v)/(y-1):1,u=0,p=0,k;if(this.pv.length)k=createTypedArray("float32",this.pv.length);else k=0;var R;while(u<y){if(R=this.getValueAtTime(v+u*b),this.pv.length)for(p=0;p<this.pv.length;p+=1)k[p]+=R[p];else k+=R;u+=1}if(this.pv.length)for(p=0;p<this.pv.length;p+=1)k[p]/=y;else k/=y;return k}function t(f){if(!this._transformCachingAtTime)this._transformCachingAtTime={v:new Matrix};var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var z=this.a.getValueAtTime(f);y.translate(-z[0]*this.a.mult,-z[1]*this.a.mult,z[2]*this.a.mult)}if(this.appliedTransformations<2){var v=this.s.getValueAtTime(f);y.scale(v[0]*this.s.mult,v[1]*this.s.mult,v[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var U=this.sk.getValueAtTime(f),b=this.sa.getValueAtTime(f);y.skewFromAxis(-U*this.sk.mult,b*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var u=this.r.getValueAtTime(f);y.rotate(-u*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var p=this.rz.getValueAtTime(f),k=this.ry.getValueAtTime(f),R=this.rx.getValueAtTime(f),V=this.or.getValueAtTime(f);y.rotateZ(-p*this.rz.mult).rotateY(k*this.ry.mult).rotateX(R*this.rx.mult).rotateZ(-V[2]*this.or.mult).rotateY(V[1]*this.or.mult).rotateX(V[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var L=this.px.getValueAtTime(f),w=this.py.getValueAtTime(f);if(this.data.p.z){var Z=this.pz.getValueAtTime(f);y.translate(L*this.px.mult,w*this.py.mult,-Z*this.pz.mult)}else y.translate(L*this.px.mult,w*this.py.mult,0)}else{var I=this.p.getValueAtTime(f);y.translate(I[0]*this.p.mult,I[1]*this.p.mult,-I[2]*this.p.mult)}return y}function r(){return this.v.clone(new Matrix)}var e=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(f,y,z){var v=e(f,y,z);if(v.dynamicProperties.length)v.getValueAtTime=t.bind(v);else v.getValueAtTime=r.bind(v);return v.setGroupProperty=expressionHelpers.setGroupProperty,v};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(f,y,z,v,U){var b=n(f,y,z,v,U);if(b.kf)b.getValueAtTime=expressionHelpers.getValueAtTime.bind(b);else b.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(b);b.setGroupProperty=expressionHelpers.setGroupProperty,b.loopOut=o,b.loopIn=i,b.smooth=a,b.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(b),b.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(b),b.numKeys=y.a===1?y.k.length:0,b.propertyIndex=y.ix;var u=0;if(z!==0)u=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length);if(b._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(f,y,b),b.k)U.addDynamicProperty(b);return b};function s(f){if(!this._cachingAtTime)this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame};if(f*=this.elem.globalData.frameRate,f-=this.offsetTime,f!==this._cachingAtTime.lastTime)this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<f?this._caching.lastIndex:0,this._cachingAtTime.lastTime=f,this.interpolateShape(f,this._cachingAtTime.shapeValue,this._cachingAtTime);return this._cachingAtTime.shapeValue}var l=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function g(){}g.prototype={vertices:function f(y,z){if(this.k)this.getValue();var v=this.v;if(z!==void 0)v=this.getValueAtTime(z,0);var U,b=v._length,u=v[y],p=v.v,k=createSizedArray(b);for(U=0;U<b;U+=1)if(y==="i"||y==="o")k[U]=[u[U][0]-p[U][0],u[U][1]-p[U][1]];else k[U]=[u[U][0],u[U][1]];return k},points:function f(y){return this.vertices("v",y)},inTangents:function f(y){return this.vertices("i",y)},outTangents:function f(y){return this.vertices("o",y)},isClosed:function f(){return this.v.c},pointOnPath:function f(y,z){var v=this.v;if(z!==void 0)v=this.getValueAtTime(z,0);if(!this._segmentsLength)this._segmentsLength=bez.getSegmentsLength(v);var U=this._segmentsLength,b=U.lengths,u=U.totalLength*y,p=0,k=b.length,R=0,V;while(p<k){if(R+b[p].addedLength>u){var L=p,w=v.c&&p===k-1?0:p+1,Z=(u-R)/b[p].addedLength;V=bez.getPointInSegment(v.v[L],v.v[w],v.o[L],v.i[w],Z,b[p]);break}else R+=b[p].addedLength;p+=1}if(!V)V=v.c?[v.v[0][0],v.v[0][1]]:[v.v[v._length-1][0],v.v[v._length-1][1]];return V},vectorOnPath:function f(y,z,v){if(y==1)y=this.v.c;else if(y==0)y=0.999;var U=this.pointOnPath(y,z),b=this.pointOnPath(y+0.001,z),u=b[0]-U[0],p=b[1]-U[1],k=Math.sqrt(Math.pow(u,2)+Math.pow(p,2));if(k===0)return[0,0];var R=v==="tangent"?[u/k,p/k]:[-p/k,u/k];return R},tangentOnPath:function f(y,z){return this.vectorOnPath(y,z,"tangent")},normalOnPath:function f(y,z){return this.vectorOnPath(y,z,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([g],l),extendPrototype([g],h),h.prototype.getValueAtTime=s,h.prototype.initiateExpression=ExpressionManager.initiateExpression;var H=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(f,y,z,v,U){var b=H(f,y,z,v,U);if(b.propertyIndex=y.ix,b.lock=!1,z===3)expressionHelpers.searchExpressions(f,y.pt,b);else if(z===4)expressionHelpers.searchExpressions(f,y.ks,b);if(b.k)f.addDynamicProperty(b);return b}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function o(){if(this.data.d.x)return this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0;return null}TextProperty.prototype.getExpressionValue=function(i,a){var t=this.calculateExpression(a);if(i.t!==t){var r={};return this.copyData(r,i),r.t=t.toString(),r.__complete=!1,r}return i},TextProperty.prototype.searchProperty=function(){var i=this.searchKeyframes(),a=this.searchExpressions();return this.kf=i||a,this.kf},TextProperty.prototype.searchExpressions=o}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function o(i,a){var t=createNS("feMerge");t.setAttribute("result",i);var r,e;for(e=0;e<a.length;e+=1)r=createNS("feMergeNode"),r.setAttribute("in",a[e]),t.appendChild(r),t.appendChild(r);return t}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(o,i,a,t,r){this.filterManager=i;var e=createNS("feColorMatrix");e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","linearRGB"),e.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=e,e.setAttribute("result",t+"_tint_1"),o.appendChild(e),e=createNS("feColorMatrix"),e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),e.setAttribute("result",t+"_tint_2"),o.appendChild(e),this.matrixFilter=e;var n=this.createMergeNode(t,[r,t+"_tint_1",t+"_tint_2"]);o.appendChild(n)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+t+" 0"),this.matrixFilter.setAttribute("values",a[0]-i[0]+" 0 0 0 "+i[0]+" "+(a[1]-i[1])+" 0 0 0 "+i[1]+" "+(a[2]-i[2])+" 0 0 0 "+i[2]+" 0 0 0 1 0")}};function SVGFillFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),r.setAttribute("result",t),o.appendChild(r),this.matrixFilter=r}SVGFillFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[2].p.v,a=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+i[0]+" 0 0 0 0 "+i[1]+" 0 0 0 0 "+i[2]+" 0 0 0 "+a+" 0")}};function SVGStrokeEffect(o,i,a){this.initialized=!1,this.filterManager=i,this.elem=a,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var o=this.elem.layerElement.children||this.elem.layerElement.childNodes,i,a,t,r;if(this.filterManager.effectElements[1].p.v===1)r=this.elem.maskManager.masksProperties.length,t=0;else t=this.filterManager.effectElements[0].p.v-1,r=t+1;a=createNS("g"),a.setAttribute("fill","none"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-dashoffset",1);for(t;t<r;t+=1)i=createNS("path"),a.appendChild(i),this.paths.push({p:i,m:t});if(this.filterManager.effectElements[10].p.v===3){var e=createNS("mask"),n=createElementID();e.setAttribute("id",n),e.setAttribute("mask-type","alpha"),e.appendChild(a),this.elem.globalData.defs.appendChild(e);var s=createNS("g");s.setAttribute("mask","url("+getLocationHref()+"#"+n+")");while(o[0])s.appendChild(o[0]);this.elem.layerElement.appendChild(s),this.masker=e,a.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2){o=this.elem.layerElement.children||this.elem.layerElement.childNodes;while(o.length)this.elem.layerElement.removeChild(o[0])}this.elem.layerElement.appendChild(a),this.elem.layerElement.removeAttribute("mask"),a.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=a},SVGStrokeEffect.prototype.renderFrame=function(o){if(!this.initialized)this.initialize();var i,a=this.paths.length,t,r;for(i=0;i<a;i+=1)if(this.paths[i].m!==-1){if(t=this.elem.maskManager.viewData[this.paths[i].m],r=this.paths[i].p,o||this.filterManager._mdf||t.prop._mdf)r.setAttribute("d",t.lastPath);if(o||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||t.prop._mdf){var e;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var n=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,s=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*0.01,l=r.getTotalLength();e="0 0 0 "+l*n+" ";var h=l*(s-n),g=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01,H=Math.floor(h/g),f;for(f=0;f<H;f+=1)e+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01+" ";e+="0 "+l*10+" 0 0"}else e="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*0.01;r.setAttribute("stroke-dasharray",e)}}if(o||this.filterManager.effectElements[4].p._mdf)this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2);if(o||this.filterManager.effectElements[6].p._mdf)this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v);if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(o||this.filterManager.effectElements[3].p._mdf){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}}};function SVGTritoneFilter(o,i,a,t){this.filterManager=i;var r=createNS("feColorMatrix");r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","linearRGB"),r.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),o.appendChild(r);var e=createNS("feComponentTransfer");e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),this.matrixFilter=e;var n=createNS("feFuncR");n.setAttribute("type","table"),e.appendChild(n),this.feFuncR=n;var s=createNS("feFuncG");s.setAttribute("type","table"),e.appendChild(s),this.feFuncG=s;var l=createNS("feFuncB");l.setAttribute("type","table"),e.appendChild(l),this.feFuncB=l,o.appendChild(e)}SVGTritoneFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,t=this.filterManager.effectElements[2].p.v,r=t[0]+" "+a[0]+" "+i[0],e=t[1]+" "+a[1]+" "+i[1],n=t[2]+" "+a[2]+" "+i[2];this.feFuncR.setAttribute("tableValues",r),this.feFuncG.setAttribute("tableValues",e),this.feFuncB.setAttribute("tableValues",n)}};function SVGProLevelsFilter(o,i,a,t){this.filterManager=i;var r=this.filterManager.effectElements,e=createNS("feComponentTransfer");if(r[10].p.k||r[10].p.v!==0||r[11].p.k||r[11].p.v!==1||r[12].p.k||r[12].p.v!==1||r[13].p.k||r[13].p.v!==0||r[14].p.k||r[14].p.v!==1)this.feFuncR=this.createFeFunc("feFuncR",e);if(r[17].p.k||r[17].p.v!==0||r[18].p.k||r[18].p.v!==1||r[19].p.k||r[19].p.v!==1||r[20].p.k||r[20].p.v!==0||r[21].p.k||r[21].p.v!==1)this.feFuncG=this.createFeFunc("feFuncG",e);if(r[24].p.k||r[24].p.v!==0||r[25].p.k||r[25].p.v!==1||r[26].p.k||r[26].p.v!==1||r[27].p.k||r[27].p.v!==0||r[28].p.k||r[28].p.v!==1)this.feFuncB=this.createFeFunc("feFuncB",e);if(r[31].p.k||r[31].p.v!==0||r[32].p.k||r[32].p.v!==1||r[33].p.k||r[33].p.v!==1||r[34].p.k||r[34].p.v!==0||r[35].p.k||r[35].p.v!==1)this.feFuncA=this.createFeFunc("feFuncA",e);if(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)e.setAttribute("color-interpolation-filters","sRGB"),o.appendChild(e);if(r[3].p.k||r[3].p.v!==0||r[4].p.k||r[4].p.v!==1||r[5].p.k||r[5].p.v!==1||r[6].p.k||r[6].p.v!==0||r[7].p.k||r[7].p.v!==1)e=createNS("feComponentTransfer"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("result",t),o.appendChild(e),this.feFuncRComposed=this.createFeFunc("feFuncR",e),this.feFuncGComposed=this.createFeFunc("feFuncG",e),this.feFuncBComposed=this.createFeFunc("feFuncB",e)}SVGProLevelsFilter.prototype.createFeFunc=function(o,i){var a=createNS(o);return a.setAttribute("type","table"),i.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(o,i,a,t,r){var e=0,n=256,s,l=Math.min(o,i),h=Math.max(o,i),g=Array.call(null,{length:n}),H,f=0,y=r-t,z=i-o;while(e<=256){if(s=e/256,s<=l)H=z<0?r:t;else if(s>=h)H=z<0?t:r;else H=t+y*Math.pow((s-o)/z,1/a);g[f]=H,f+=1,e+=256/(n-1)}return g.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i,a=this.filterManager.effectElements;if(this.feFuncRComposed&&(o||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf))i=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",i),this.feFuncGComposed.setAttribute("tableValues",i),this.feFuncBComposed.setAttribute("tableValues",i);if(this.feFuncR&&(o||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf))i=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",i);if(this.feFuncG&&(o||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf))i=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",i);if(this.feFuncB&&(o||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf))i=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",i);if(this.feFuncA&&(o||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf))i=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",i)}};function SVGDropShadowEffect(o,i,a,t,r){var e=i.container.globalData.renderConfig.filterSize,n=i.data.fs||e;o.setAttribute("x",n.x||e.x),o.setAttribute("y",n.y||e.y),o.setAttribute("width",n.width||e.width),o.setAttribute("height",n.height||e.height),this.filterManager=i;var s=createNS("feGaussianBlur");s.setAttribute("in","SourceAlpha"),s.setAttribute("result",t+"_drop_shadow_1"),s.setAttribute("stdDeviation","0"),this.feGaussianBlur=s,o.appendChild(s);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",t+"_drop_shadow_1"),l.setAttribute("result",t+"_drop_shadow_2"),this.feOffset=l,o.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",t+"_drop_shadow_3"),this.feFlood=h,o.appendChild(h);var g=createNS("feComposite");g.setAttribute("in",t+"_drop_shadow_3"),g.setAttribute("in2",t+"_drop_shadow_2"),g.setAttribute("operator","in"),g.setAttribute("result",t+"_drop_shadow_4"),o.appendChild(g);var H=this.createMergeNode(t,[t+"_drop_shadow_4",r]);o.appendChild(H)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){if(o||this.filterManager.effectElements[4].p._mdf)this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4);if(o||this.filterManager.effectElements[0].p._mdf){var i=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(i[0]*255),Math.round(i[1]*255),Math.round(i[2]*255)))}if(o||this.filterManager.effectElements[1].p._mdf)this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255);if(o||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,t=(this.filterManager.effectElements[2].p.v-90)*degToRads,r=a*Math.cos(t),e=a*Math.sin(t);this.feOffset.setAttribute("dx",r),this.feOffset.setAttribute("dy",e)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(o,i,a){this.initialized=!1,this.filterManager=i,this.filterElem=o,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}SVGMatte3Effect.prototype.findSymbol=function(o){var i=0,a=_svgMatteSymbols.length;while(i<a){if(_svgMatteSymbols[i]===o)return _svgMatteSymbols[i];i+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(o,i){var a=o.layerElement.parentNode;if(!a)return;var t=a.children,r=0,e=t.length;while(r<e){if(t[r]===o.layerElement)break;r+=1}var n;if(r<=e-2)n=t[r+1];var s=createNS("use");if(s.setAttribute("href","#"+i),n)a.insertBefore(s,n);else a.appendChild(s)},SVGMatte3Effect.prototype.setElementAsMask=function(o,i){if(!this.findSymbol(i)){var a=createElementID(),t=createNS("mask");t.setAttribute("id",i.layerId),t.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(i);var r=o.globalData.defs;r.appendChild(t);var e=createNS("symbol");e.setAttribute("id",a),this.replaceInParent(i,a),e.appendChild(i.layerElement),r.appendChild(e);var n=createNS("use");n.setAttribute("href","#"+a),t.appendChild(n),i.data.hd=!1,i.show()}o.setMatte(i.layerId)},SVGMatte3Effect.prototype.initialize=function(){var o=this.filterManager.effectElements[0].p.v,i=this.elem.comp.elements,a=0,t=i.length;while(a<t){if(i[a]&&i[a].data.ind===o)this.setElementAsMask(this.elem,i[a]);a+=1}this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){if(!this.initialized)this.initialize()};function SVGGaussianBlurEffect(o,i,a,t){o.setAttribute("x","-100%"),o.setAttribute("y","-100%"),o.setAttribute("width","300%"),o.setAttribute("height","300%"),this.filterManager=i;var r=createNS("feGaussianBlur");r.setAttribute("result",t),o.appendChild(r),this.feGaussianBlur=r}SVGGaussianBlurEffect.prototype.renderFrame=function(o){if(o||this.filterManager._mdf){var i=0.3,a=this.filterManager.effectElements[0].p.v*i,t=this.filterManager.effectElements[1].p.v,r=t==3?0:a,e=t==2?0:a;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+e);var n=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}};function TransformEffect(){}TransformEffect.prototype.init=function(o){this.effectsManager=o,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(o){if(this._opMdf=!1,this._mdf=!1,o||this.effectsManager._mdf){var i=this.effectsManager.effectElements,a=i[0].p.v,t=i[1].p.v,r=i[2].p.v===1,e=i[3].p.v,n=r?e:i[4].p.v,s=i[5].p.v,l=i[6].p.v,h=i[7].p.v;if(this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(n*0.01,e*0.01,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-s*degToRads,(l+90)*degToRads),this.matrix.translate(t[0],t[1],0),this._mdf=!0,this.opacity!==i[8].p.v)this.opacity=i[8].p.v,this._opMdf=!0}};function SVGTransformEffect(o,i){this.init(i)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(o){this.init(o)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})});class zi extends Event{constructor(o,i,a,t){super("context-request",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i,this.callback=a,this.subscribe=t??!1}}function ei(o){return o}class wo{constructor(o,i,a,t){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,e)),this.unsubscribe=e},this.host=o,i.context!==void 0){let r=i;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=i,this.callback=a,this.subscribe=t??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new zi(this.context,this.host,this.t,this.subscribe))}}class Pa{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,i=!1){let a=i||!Object.is(o,this.o);this.o=o,a&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:a}]of this.subscriptions)i(this.o,a)},o!==void 0&&(this.value=o)}addCallback(o,i,a){if(!a)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:i});let{disposer:t}=this.subscriptions.get(o);o(this.value,t)}clearCallbacks(){this.subscriptions.clear()}}class Vr extends Event{constructor(o,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=o,this.contextTarget=i}}class yi extends Pa{constructor(o,i,a){super(i.context!==void 0?i.initialValue:a),this.onContextRequest=(t)=>{if(t.context!==this.context)return;let r=t.contextTarget??t.composedPath()[0];r!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,r,t.subscribe))},this.onProviderRequest=(t)=>{if(t.context!==this.context)return;if((t.contextTarget??t.composedPath()[0])===this.host)return;let r=new Set;for(let[e,{consumerHost:n}]of this.subscriptions)r.has(e)||(r.add(e),n.dispatchEvent(new zi(this.context,n,e,!0)));t.stopPropagation()},this.host=o,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Vr(this.context,this.host))}}function ao({context:o,subscribe:i}){return(a,t)=>{typeof t=="object"?t.addInitializer(function(){new wo(this,{context:o,callback:(r)=>{a.set.call(this,r)},subscribe:i})}):a.constructor.addInitializer((r)=>{new wo(r,{context:o,callback:(e)=>{r[t]=e},subscribe:i})})}}var Gn=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Aa=Math.ceil,jo=Math.floor,Yo="[BigNumber Error] ",Ir=Yo+"Number primitive has more than 15 significant digits: ",Bo=100000000000000,no=14,_a=9007199254740991,Oa=[1,10,100,1000,1e4,1e5,1e6,1e7,1e8,1e9,10000000000,100000000000,1000000000000,10000000000000],gi=1e7,Zo=1e9;function qr(o){var i,a,t,r=u.prototype={constructor:u,toString:null,valueOf:null},e=new u(1),n=20,s=4,l=-7,h=21,g=-1e7,H=1e7,f=!1,y=1,z=0,v={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},U="0123456789abcdefghijklmnopqrstuvwxyz",b=!0;function u(w,Z){var I,F,J,C,j,W,x,K,c=this;if(!(c instanceof u))return new u(w,Z);if(Z==null){if(w&&w._isBigNumber===!0){if(c.s=w.s,!w.c||w.e>H)c.c=c.e=null;else if(w.e<g)c.c=[c.e=0];else c.e=w.e,c.c=w.c.slice();return}if((W=typeof w=="number")&&w*0==0){if(c.s=1/w<0?(w=-w,-1):1,w===~~w){for(C=0,j=w;j>=10;j/=10,C++);if(C>H)c.c=c.e=null;else c.e=C,c.c=[w];return}K=String(w)}else{if(!Gn.test(K=String(w)))return t(c,K,W);c.s=K.charCodeAt(0)==45?(K=K.slice(1),-1):1}if((C=K.indexOf("."))>-1)K=K.replace(".","");if((j=K.search(/e/i))>0){if(C<0)C=j;C+=+K.slice(j+1),K=K.substring(0,j)}else if(C<0)C=K.length}else{if(ko(Z,2,U.length,"Base"),Z==10&&b)return c=new u(w),V(c,n+c.e+1,s);if(K=String(w),W=typeof w=="number"){if(w*0!=0)return t(c,K,W,Z);if(c.s=1/w<0?(K=K.slice(1),-1):1,u.DEBUG&&K.replace(/^0\.0*|\./,"").length>15)throw Error(Ir+w)}else c.s=K.charCodeAt(0)===45?(K=K.slice(1),-1):1;I=U.slice(0,Z),C=j=0;for(x=K.length;j<x;j++)if(I.indexOf(F=K.charAt(j))<0){if(F=="."){if(j>C){C=x;continue}}else if(!J){if(K==K.toUpperCase()&&(K=K.toLowerCase())||K==K.toLowerCase()&&(K=K.toUpperCase())){J=!0,j=-1,C=0;continue}}return t(c,String(w),W,Z)}if(W=!1,K=a(K,Z,10,c.s),(C=K.indexOf("."))>-1)K=K.replace(".","");else C=K.length}for(j=0;K.charCodeAt(j)===48;j++);for(x=K.length;K.charCodeAt(--x)===48;);if(K=K.slice(j,++x)){if(x-=j,W&&u.DEBUG&&x>15&&(w>_a||w!==jo(w)))throw Error(Ir+c.s*w);if((C=C-j-1)>H)c.c=c.e=null;else if(C<g)c.c=[c.e=0];else{if(c.e=C,c.c=[],j=(C+1)%no,C<0)j+=no;if(j<x){if(j)c.c.push(+K.slice(0,j));for(x-=no;j<x;)c.c.push(+K.slice(j,j+=no));j=no-(K=K.slice(j)).length}else j-=x;for(;j--;K+="0");c.c.push(+K)}}else c.c=[c.e=0]}u.clone=qr,u.ROUND_UP=0,u.ROUND_DOWN=1,u.ROUND_CEIL=2,u.ROUND_FLOOR=3,u.ROUND_HALF_UP=4,u.ROUND_HALF_DOWN=5,u.ROUND_HALF_EVEN=6,u.ROUND_HALF_CEIL=7,u.ROUND_HALF_FLOOR=8,u.EUCLID=9,u.config=u.set=function(w){var Z,I;if(w!=null)if(typeof w=="object"){if(w.hasOwnProperty(Z="DECIMAL_PLACES"))I=w[Z],ko(I,0,Zo,Z),n=I;if(w.hasOwnProperty(Z="ROUNDING_MODE"))I=w[Z],ko(I,0,8,Z),s=I;if(w.hasOwnProperty(Z="EXPONENTIAL_AT"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,0,Z),ko(I[1],0,Zo,Z),l=I[0],h=I[1];else ko(I,-Zo,Zo,Z),l=-(h=I<0?-I:I);if(w.hasOwnProperty(Z="RANGE"))if(I=w[Z],I&&I.pop)ko(I[0],-Zo,-1,Z),ko(I[1],1,Zo,Z),g=I[0],H=I[1];else if(ko(I,-Zo,Zo,Z),I)g=-(H=I<0?-I:I);else throw Error(Yo+Z+" cannot be zero: "+I);if(w.hasOwnProperty(Z="CRYPTO"))if(I=w[Z],I===!!I)if(I)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))f=I;else throw f=!I,Error(Yo+"crypto unavailable");else f=I;else throw Error(Yo+Z+" not true or false: "+I);if(w.hasOwnProperty(Z="MODULO_MODE"))I=w[Z],ko(I,0,9,Z),y=I;if(w.hasOwnProperty(Z="POW_PRECISION"))I=w[Z],ko(I,0,Zo,Z),z=I;if(w.hasOwnProperty(Z="FORMAT"))if(I=w[Z],typeof I=="object")v=I;else throw Error(Yo+Z+" not an object: "+I);if(w.hasOwnProperty(Z="ALPHABET"))if(I=w[Z],typeof I=="string"&&!/^.?$|[+\-.\s]|(.).*\1/.test(I))b=I.slice(0,10)=="0123456789",U=I;else throw Error(Yo+Z+" invalid: "+I)}else throw Error(Yo+"Object expected: "+w);return{DECIMAL_PLACES:n,ROUNDING_MODE:s,EXPONENTIAL_AT:[l,h],RANGE:[g,H],CRYPTO:f,MODULO_MODE:y,POW_PRECISION:z,FORMAT:v,ALPHABET:U}},u.isBigNumber=function(w){if(!w||w._isBigNumber!==!0)return!1;if(!u.DEBUG)return!0;var Z,I,F=w.c,J=w.e,C=w.s;o:if({}.toString.call(F)=="[object Array]"){if((C===1||C===-1)&&J>=-Zo&&J<=Zo&&J===jo(J)){if(F[0]===0){if(J===0&&F.length===1)return!0;break o}if(Z=(J+1)%no,Z<1)Z+=no;if(String(F[0]).length==Z){for(Z=0;Z<F.length;Z++)if(I=F[Z],I<0||I>=Bo||I!==jo(I))break o;if(I!==0)return!0}}}else if(F===null&&J===null&&(C===null||C===1||C===-1))return!0;throw Error(Yo+"Invalid BigNumber: "+w)},u.maximum=u.max=function(){return k(arguments,-1)},u.minimum=u.min=function(){return k(arguments,1)},u.random=function(){var w=9007199254740992,Z=Math.random()*w&2097151?function(){return jo(Math.random()*w)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(I){var F,J,C,j,W,x=0,K=[],c=new u(e);if(I==null)I=n;else ko(I,0,Zo);if(j=Aa(I/no),f)if(crypto.getRandomValues){F=crypto.getRandomValues(new Uint32Array(j*=2));for(;x<j;)if(W=F[x]*131072+(F[x+1]>>>11),W>=9000000000000000)J=crypto.getRandomValues(new Uint32Array(2)),F[x]=J[0],F[x+1]=J[1];else K.push(W%100000000000000),x+=2;x=j/2}else if(crypto.randomBytes){F=crypto.randomBytes(j*=7);for(;x<j;)if(W=(F[x]&31)*281474976710656+F[x+1]*1099511627776+F[x+2]*4294967296+F[x+3]*16777216+(F[x+4]<<16)+(F[x+5]<<8)+F[x+6],W>=9000000000000000)crypto.randomBytes(7).copy(F,x);else K.push(W%100000000000000),x+=7;x=j/7}else throw f=!1,Error(Yo+"crypto unavailable");if(!f){for(;x<j;)if(W=Z(),W<9000000000000000)K[x++]=W%100000000000000}if(j=K[--x],I%=no,j&&I)W=Oa[no-I],K[x]=jo(j/W)*W;for(;K[x]===0;K.pop(),x--);if(x<0)K=[C=0];else{for(C=-1;K[0]===0;K.splice(0,1),C-=no);for(x=1,W=K[0];W>=10;W/=10,x++);if(x<no)C-=no-x}return c.e=C,c.c=K,c}}(),u.sum=function(){var w=1,Z=arguments,I=new u(Z[0]);for(;w<Z.length;)I=I.plus(Z[w++]);return I},a=function(){var w="0123456789";function Z(I,F,J,C){var j,W=[0],x,K=0,c=I.length;for(;K<c;){for(x=W.length;x--;W[x]*=F);W[0]+=C.indexOf(I.charAt(K++));for(j=0;j<W.length;j++)if(W[j]>J-1){if(W[j+1]==null)W[j+1]=0;W[j+1]+=W[j]/J|0,W[j]%=J}}return W.reverse()}return function(I,F,J,C,j){var W,x,K,c,m,Q,Y,T,M=I.indexOf("."),E=n,oo=s;if(M>=0)c=z,z=0,I=I.replace(".",""),T=new u(F),Q=T.pow(I.length-M),z=c,T.c=Z(ni(Qo(Q.c),Q.e,"0"),10,J,w),T.e=T.c.length;Y=Z(I,F,J,j?(W=U,w):(W=w,U)),K=c=Y.length;for(;Y[--c]==0;Y.pop());if(!Y[0])return W.charAt(0);if(M<0)--K;else Q.c=Y,Q.e=K,Q.s=C,Q=i(Q,T,E,oo,J),Y=Q.c,m=Q.r,K=Q.e;if(x=K+E+1,M=Y[x],c=J/2,m=m||x<0||Y[x+1]!=null,m=oo<4?(M!=null||m)&&(oo==0||oo==(Q.s<0?3:2)):M>c||M==c&&(oo==4||m||oo==6&&Y[x-1]&1||oo==(Q.s<0?8:7)),x<1||!Y[0])I=m?ni(W.charAt(1),-E,W.charAt(0)):W.charAt(0);else{if(Y.length=x,m){for(--J;++Y[--x]>J;)if(Y[x]=0,!x)++K,Y=[1].concat(Y)}for(c=Y.length;!Y[--c];);for(M=0,I="";M<=c;I+=W.charAt(Y[M++]));I=ni(I,K,W.charAt(0))}return I}}(),i=function(){function w(F,J,C){var j,W,x,K,c=0,m=F.length,Q=J%gi,Y=J/gi|0;for(F=F.slice();m--;)x=F[m]%gi,K=F[m]/gi|0,j=Y*x+K*Q,W=Q*x+j%gi*gi+c,c=(W/C|0)+(j/gi|0)+Y*K,F[m]=W%C;if(c)F=[c].concat(F);return F}function Z(F,J,C,j){var W,x;if(C!=j)x=C>j?1:-1;else for(W=x=0;W<C;W++)if(F[W]!=J[W]){x=F[W]>J[W]?1:-1;break}return x}function I(F,J,C,j){var W=0;for(;C--;)F[C]-=W,W=F[C]<J[C]?1:0,F[C]=W*j+F[C]-J[C];for(;!F[0]&&F.length>1;F.splice(0,1));}return function(F,J,C,j,W){var x,K,c,m,Q,Y,T,M,E,oo,io,lo,yo,Jo,So,go,Ho,so=F.s==J.s?1:-1,N=F.c,uo=J.c;if(!N||!N[0]||!uo||!uo[0])return new u(!F.s||!J.s||(N?uo&&N[0]==uo[0]:!uo)?NaN:N&&N[0]==0||!uo?so*0:so/0);if(M=new u(so),E=M.c=[],K=F.e-J.e,so=C+K+1,!W)W=Bo,K=Po(F.e/no)-Po(J.e/no),so=so/no|0;for(c=0;uo[c]==(N[c]||0);c++);if(uo[c]>(N[c]||0))K--;if(so<0)E.push(1),m=!0;else{if(Jo=N.length,go=uo.length,c=0,so+=2,Q=jo(W/(uo[0]+1)),Q>1)uo=w(uo,Q,W),N=w(N,Q,W),go=uo.length,Jo=N.length;yo=go,oo=N.slice(0,go),io=oo.length;for(;io<go;oo[io++]=0);if(Ho=uo.slice(),Ho=[0].concat(Ho),So=uo[0],uo[1]>=W/2)So++;do{if(Q=0,x=Z(uo,oo,go,io),x<0){if(lo=oo[0],go!=io)lo=lo*W+(oo[1]||0);if(Q=jo(lo/So),Q>1){if(Q>=W)Q=W-1;Y=w(uo,Q,W),T=Y.length,io=oo.length;while(Z(Y,oo,T,io)==1)Q--,I(Y,go<T?Ho:uo,T,W),T=Y.length,x=1}else{if(Q==0)x=Q=1;Y=uo.slice(),T=Y.length}if(T<io)Y=[0].concat(Y);if(I(oo,Y,io,W),io=oo.length,x==-1)while(Z(uo,oo,go,io)<1)Q++,I(oo,go<io?Ho:uo,io,W),io=oo.length}else if(x===0)Q++,oo=[0];if(E[c++]=Q,oo[0])oo[io++]=N[yo]||0;else oo=[N[yo]],io=1}while((yo++<Jo||oo[0]!=null)&&so--);if(m=oo[0]!=null,!E[0])E.splice(0,1)}if(W==Bo){for(c=1,so=E[0];so>=10;so/=10,c++);V(M,C+(M.e=c+K*no-1)+1,j,m)}else M.e=K,M.r=+m;return M}}();function p(w,Z,I,F){var J,C,j,W,x;if(I==null)I=s;else ko(I,0,8);if(!w.c)return w.toString();if(J=w.c[0],j=w.e,Z==null)x=Qo(w.c),x=F==1||F==2&&(j<=l||j>=h)?la(x,j):ni(x,j,"0");else if(w=V(new u(w),Z,I),C=w.e,x=Qo(w.c),W=x.length,F==1||F==2&&(Z<=C||C<=l)){for(;W<Z;x+="0",W++);x=la(x,C)}else if(Z-=j,x=ni(x,C,"0"),C+1>W){if(--Z>0)for(x+=".";Z--;x+="0");}else if(Z+=C-W,Z>0){if(C+1==W)x+=".";for(;Z--;x+="0");}return w.s<0&&J?"-"+x:x}function k(w,Z){var I,F,J=1,C=new u(w[0]);for(;J<w.length;J++)if(F=new u(w[J]),!F.s||(I=Hi(C,F))===Z||I===0&&C.s===Z)C=F;return C}function R(w,Z,I){var F=1,J=Z.length;for(;!Z[--J];Z.pop());for(J=Z[0];J>=10;J/=10,F++);if((I=F+I*no-1)>H)w.c=w.e=null;else if(I<g)w.c=[w.e=0];else w.e=I,w.c=Z;return w}t=function(){var w=/^(-?)0([xbo])(?=\w[\w.]*$)/i,Z=/^([^.]+)\.$/,I=/^\.([^.]+)$/,F=/^-?(Infinity|NaN)$/,J=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(C,j,W,x){var K,c=W?j:j.replace(J,"");if(F.test(c))C.s=isNaN(c)?null:c<0?-1:1;else{if(!W){if(c=c.replace(w,function(m,Q,Y){return K=(Y=Y.toLowerCase())=="x"?16:Y=="b"?2:8,!x||x==K?Q:m}),x)K=x,c=c.replace(Z,"$1").replace(I,"0.$1");if(j!=c)return new u(c,K)}if(u.DEBUG)throw Error(Yo+"Not a"+(x?" base "+x:"")+" number: "+j);C.s=null}C.c=C.e=null}}();function V(w,Z,I,F){var J,C,j,W,x,K,c,m=w.c,Q=Oa;if(m){o:{for(J=1,W=m[0];W>=10;W/=10,J++);if(C=Z-J,C<0)C+=no,j=Z,x=m[K=0],c=jo(x/Q[J-j-1]%10);else if(K=Aa((C+1)/no),K>=m.length)if(F){for(;m.length<=K;m.push(0));x=c=0,J=1,C%=no,j=C-no+1}else break o;else{x=W=m[K];for(J=1;W>=10;W/=10,J++);C%=no,j=C-no+J,c=j<0?0:jo(x/Q[J-j-1]%10)}if(F=F||Z<0||m[K+1]!=null||(j<0?x:x%Q[J-j-1]),F=I<4?(c||F)&&(I==0||I==(w.s<0?3:2)):c>5||c==5&&(I==4||F||I==6&&(C>0?j>0?x/Q[J-j]:0:m[K-1])%10&1||I==(w.s<0?8:7)),Z<1||!m[0]){if(m.length=0,F)Z-=w.e+1,m[0]=Q[(no-Z%no)%no],w.e=-Z||0;else m[0]=w.e=0;return w}if(C==0)m.length=K,W=1,K--;else m.length=K+1,W=Q[no-C],m[K]=j>0?jo(x/Q[J-j]%Q[j])*W:0;if(F)for(;;)if(K==0){for(C=1,j=m[0];j>=10;j/=10,C++);j=m[0]+=W;for(W=1;j>=10;j/=10,W++);if(C!=W){if(w.e++,m[0]==Bo)m[0]=1}break}else{if(m[K]+=W,m[K]!=Bo)break;m[K--]=0,W=1}for(C=m.length;m[--C]===0;m.pop());}if(w.e>H)w.c=w.e=null;else if(w.e<g)w.c=[w.e=0]}return w}function L(w){var Z,I=w.e;if(I===null)return w.toString();return Z=Qo(w.c),Z=I<=l||I>=h?la(Z,I):ni(Z,I,"0"),w.s<0?"-"+Z:Z}if(r.absoluteValue=r.abs=function(){var w=new u(this);if(w.s<0)w.s=1;return w},r.comparedTo=function(w,Z){return Hi(this,new u(w,Z))},r.decimalPlaces=r.dp=function(w,Z){var I,F,J,C=this;if(w!=null){if(ko(w,0,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new u(C),w+C.e+1,Z)}if(!(I=C.c))return null;if(F=((J=I.length-1)-Po(this.e/no))*no,J=I[J])for(;J%10==0;J/=10,F--);if(F<0)F=0;return F},r.dividedBy=r.div=function(w,Z){return i(this,new u(w,Z),n,s)},r.dividedToIntegerBy=r.idiv=function(w,Z){return i(this,new u(w,Z),0,1)},r.exponentiatedBy=r.pow=function(w,Z){var I,F,J,C,j,W,x,K,c,m=this;if(w=new u(w),w.c&&!w.isInteger())throw Error(Yo+"Exponent not an integer: "+L(w));if(Z!=null)Z=new u(Z);if(W=w.e>14,!m.c||!m.c[0]||m.c[0]==1&&!m.e&&m.c.length==1||!w.c||!w.c[0])return c=new u(Math.pow(+L(m),W?w.s*(2-sa(w)):+L(w))),Z?c.mod(Z):c;if(x=w.s<0,Z){if(Z.c?!Z.c[0]:!Z.s)return new u(NaN);if(F=!x&&m.isInteger()&&Z.isInteger(),F)m=m.mod(Z)}else if(w.e>9&&(m.e>0||m.e<-1||(m.e==0?m.c[0]>1||W&&m.c[1]>=240000000:m.c[0]<80000000000000||W&&m.c[0]<=99999750000000))){if(C=m.s<0&&sa(w)?-0:0,m.e>-1)C=1/C;return new u(x?1/C:C)}else if(z)C=Aa(z/no+2);if(W){if(I=new u(0.5),x)w.s=1;K=sa(w)}else J=Math.abs(+L(w)),K=J%2;c=new u(e);for(;;){if(K){if(c=c.times(m),!c.c)break;if(C){if(c.c.length>C)c.c.length=C}else if(F)c=c.mod(Z)}if(J){if(J=jo(J/2),J===0)break;K=J%2}else if(w=w.times(I),V(w,w.e+1,1),w.e>14)K=sa(w);else{if(J=+L(w),J===0)break;K=J%2}if(m=m.times(m),C){if(m.c&&m.c.length>C)m.c.length=C}else if(F)m=m.mod(Z)}if(F)return c;if(x)c=e.div(c);return Z?c.mod(Z):C?V(c,z,s,j):c},r.integerValue=function(w){var Z=new u(this);if(w==null)w=s;else ko(w,0,8);return V(Z,Z.e+1,w)},r.isEqualTo=r.eq=function(w,Z){return Hi(this,new u(w,Z))===0},r.isFinite=function(){return!!this.c},r.isGreaterThan=r.gt=function(w,Z){return Hi(this,new u(w,Z))>0},r.isGreaterThanOrEqualTo=r.gte=function(w,Z){return(Z=Hi(this,new u(w,Z)))===1||Z===0},r.isInteger=function(){return!!this.c&&Po(this.e/no)>this.c.length-2},r.isLessThan=r.lt=function(w,Z){return Hi(this,new u(w,Z))<0},r.isLessThanOrEqualTo=r.lte=function(w,Z){return(Z=Hi(this,new u(w,Z)))===-1||Z===0},r.isNaN=function(){return!this.s},r.isNegative=function(){return this.s<0},r.isPositive=function(){return this.s>0},r.isZero=function(){return!!this.c&&this.c[0]==0},r.minus=function(w,Z){var I,F,J,C,j=this,W=j.s;if(w=new u(w,Z),Z=w.s,!W||!Z)return new u(NaN);if(W!=Z)return w.s=-Z,j.plus(w);var x=j.e/no,K=w.e/no,c=j.c,m=w.c;if(!x||!K){if(!c||!m)return c?(w.s=-Z,w):new u(m?j:NaN);if(!c[0]||!m[0])return m[0]?(w.s=-Z,w):new u(c[0]?j:s==3?-0:0)}if(x=Po(x),K=Po(K),c=c.slice(),W=x-K){if(C=W<0)W=-W,J=c;else K=x,J=m;J.reverse();for(Z=W;Z--;J.push(0));J.reverse()}else{F=(C=(W=c.length)<(Z=m.length))?W:Z;for(W=Z=0;Z<F;Z++)if(c[Z]!=m[Z]){C=c[Z]<m[Z];break}}if(C)J=c,c=m,m=J,w.s=-w.s;if(Z=(F=m.length)-(I=c.length),Z>0)for(;Z--;c[I++]=0);Z=Bo-1;for(;F>W;){if(c[--F]<m[F]){for(I=F;I&&!c[--I];c[I]=Z);--c[I],c[F]+=Bo}c[F]-=m[F]}for(;c[0]==0;c.splice(0,1),--K);if(!c[0])return w.s=s==3?-1:1,w.c=[w.e=0],w;return R(w,c,K)},r.modulo=r.mod=function(w,Z){var I,F,J=this;if(w=new u(w,Z),!J.c||!w.s||w.c&&!w.c[0])return new u(NaN);else if(!w.c||J.c&&!J.c[0])return new u(J);if(y==9)F=w.s,w.s=1,I=i(J,w,0,3),w.s=F,I.s*=F;else I=i(J,w,0,y);if(w=J.minus(I.times(w)),!w.c[0]&&y==1)w.s=J.s;return w},r.multipliedBy=r.times=function(w,Z){var I,F,J,C,j,W,x,K,c,m,Q,Y,T,M,E,oo=this,io=oo.c,lo=(w=new u(w,Z)).c;if(!io||!lo||!io[0]||!lo[0]){if(!oo.s||!w.s||io&&!io[0]&&!lo||lo&&!lo[0]&&!io)w.c=w.e=w.s=null;else if(w.s*=oo.s,!io||!lo)w.c=w.e=null;else w.c=[0],w.e=0;return w}if(F=Po(oo.e/no)+Po(w.e/no),w.s*=oo.s,x=io.length,m=lo.length,x<m)T=io,io=lo,lo=T,J=x,x=m,m=J;for(J=x+m,T=[];J--;T.push(0));M=Bo,E=gi;for(J=m;--J>=0;){I=0,Q=lo[J]%E,Y=lo[J]/E|0;for(j=x,C=J+j;C>J;)K=io[--j]%E,c=io[j]/E|0,W=Y*K+c*Q,K=Q*K+W%E*E+T[C]+I,I=(K/M|0)+(W/E|0)+Y*c,T[C--]=K%M;T[C]=I}if(I)++F;else T.splice(0,1);return R(w,T,F)},r.negated=function(){var w=new u(this);return w.s=-w.s||null,w},r.plus=function(w,Z){var I,F=this,J=F.s;if(w=new u(w,Z),Z=w.s,!J||!Z)return new u(NaN);if(J!=Z)return w.s=-Z,F.minus(w);var C=F.e/no,j=w.e/no,W=F.c,x=w.c;if(!C||!j){if(!W||!x)return new u(J/0);if(!W[0]||!x[0])return x[0]?w:new u(W[0]?F:J*0)}if(C=Po(C),j=Po(j),W=W.slice(),J=C-j){if(J>0)j=C,I=x;else J=-J,I=W;I.reverse();for(;J--;I.push(0));I.reverse()}if(J=W.length,Z=x.length,J-Z<0)I=x,x=W,W=I,Z=J;for(J=0;Z;)J=(W[--Z]=W[Z]+x[Z]+J)/Bo|0,W[Z]=Bo===W[Z]?0:W[Z]%Bo;if(J)W=[J].concat(W),++j;return R(w,W,j)},r.precision=r.sd=function(w,Z){var I,F,J,C=this;if(w!=null&&w!==!!w){if(ko(w,1,Zo),Z==null)Z=s;else ko(Z,0,8);return V(new u(C),w,Z)}if(!(I=C.c))return null;if(J=I.length-1,F=J*no+1,J=I[J]){for(;J%10==0;J/=10,F--);for(J=I[0];J>=10;J/=10,F++);}if(w&&C.e+1>F)F=C.e+1;return F},r.shiftedBy=function(w){return ko(w,-_a,_a),this.times("1e"+w)},r.squareRoot=r.sqrt=function(){var w,Z,I,F,J,C=this,j=C.c,W=C.s,x=C.e,K=n+4,c=new u("0.5");if(W!==1||!j||!j[0])return new u(!W||W<0&&(!j||j[0])?NaN:j?C:1/0);if(W=Math.sqrt(+L(C)),W==0||W==1/0){if(Z=Qo(j),(Z.length+x)%2==0)Z+="0";if(W=Math.sqrt(+Z),x=Po((x+1)/2)-(x<0||x%2),W==1/0)Z="5e"+x;else Z=W.toExponential(),Z=Z.slice(0,Z.indexOf("e")+1)+x;I=new u(Z)}else I=new u(W+"");if(I.c[0]){if(x=I.e,W=x+K,W<3)W=0;for(;;)if(J=I,I=c.times(J.plus(i(C,J,K,1))),Qo(J.c).slice(0,W)===(Z=Qo(I.c)).slice(0,W)){if(I.e<x)--W;if(Z=Z.slice(W-3,W+1),Z=="9999"||!F&&Z=="4999"){if(!F){if(V(J,J.e+n+2,0),J.times(J).eq(C)){I=J;break}}K+=4,W+=4,F=1}else{if(!+Z||!+Z.slice(1)&&Z.charAt(0)=="5")V(I,I.e+n+2,1),w=!I.times(I).eq(C);break}}}return V(I,I.e+n+1,s,w)},r.toExponential=function(w,Z){if(w!=null)ko(w,0,Zo),w++;return p(this,w,Z,1)},r.toFixed=function(w,Z){if(w!=null)ko(w,0,Zo),w=w+this.e+1;return p(this,w,Z)},r.toFormat=function(w,Z,I){var F,J=this;if(I==null)if(w!=null&&Z&&typeof Z=="object")I=Z,Z=null;else if(w&&typeof w=="object")I=w,w=Z=null;else I=v;else if(typeof I!="object")throw Error(Yo+"Argument not an object: "+I);if(F=J.toFixed(w,Z),J.c){var C,j=F.split("."),W=+I.groupSize,x=+I.secondaryGroupSize,K=I.groupSeparator||"",c=j[0],m=j[1],Q=J.s<0,Y=Q?c.slice(1):c,T=Y.length;if(x)C=W,W=x,x=C,T-=C;if(W>0&&T>0){C=T%W||W,c=Y.substr(0,C);for(;C<T;C+=W)c+=K+Y.substr(C,W);if(x>0)c+=K+Y.slice(C);if(Q)c="-"+c}F=m?c+(I.decimalSeparator||"")+((x=+I.fractionGroupSize)?m.replace(new RegExp("\\d{"+x+"}\\B","g"),"$&"+(I.fractionGroupSeparator||"")):m):c}return(I.prefix||"")+F+(I.suffix||"")},r.toFraction=function(w){var Z,I,F,J,C,j,W,x,K,c,m,Q,Y=this,T=Y.c;if(w!=null){if(W=new u(w),!W.isInteger()&&(W.c||W.s!==1)||W.lt(e))throw Error(Yo+"Argument "+(W.isInteger()?"out of range: ":"not an integer: ")+L(W))}if(!T)return new u(Y);Z=new u(e),K=I=new u(e),F=x=new u(e),Q=Qo(T),C=Z.e=Q.length-Y.e-1,Z.c[0]=Oa[(j=C%no)<0?no+j:j],w=!w||W.comparedTo(Z)>0?C>0?Z:K:W,j=H,H=1/0,W=new u(Q),x.c[0]=0;for(;;){if(c=i(W,Z,0,1),J=I.plus(c.times(F)),J.comparedTo(w)==1)break;I=F,F=J,K=x.plus(c.times(J=K)),x=J,Z=W.minus(c.times(J=Z)),W=J}return J=i(w.minus(I),F,0,1),x=x.plus(J.times(K)),I=I.plus(J.times(F)),x.s=K.s=Y.s,C=C*2,m=i(K,F,C,s).minus(Y).abs().comparedTo(i(x,I,C,s).minus(Y).abs())<1?[K,F]:[x,I],H=j,m},r.toNumber=function(){return+L(this)},r.toPrecision=function(w,Z){if(w!=null)ko(w,1,Zo);return p(this,w,Z,2)},r.toString=function(w){var Z,I=this,F=I.s,J=I.e;if(J===null)if(F){if(Z="Infinity",F<0)Z="-"+Z}else Z="NaN";else{if(w==null)Z=J<=l||J>=h?la(Qo(I.c),J):ni(Qo(I.c),J,"0");else if(w===10&&b)I=V(new u(I),n+J+1,s),Z=ni(Qo(I.c),I.e,"0");else ko(w,2,U.length,"Base"),Z=a(ni(Qo(I.c),J,"0"),10,w,F,!0);if(F<0&&I.c[0])Z="-"+Z}return Z},r.valueOf=r.toJSON=function(){return L(this)},r._isBigNumber=!0,r[Symbol.toStringTag]="BigNumber",r[Symbol.for("nodejs.util.inspect.custom")]=r.valueOf,o!=null)u.set(o);return u}function Po(o){var i=o|0;return o>0||o===i?i:i-1}function Qo(o){var i,a,t=1,r=o.length,e=o[0]+"";for(;t<r;){i=o[t++]+"",a=no-i.length;for(;a--;i="0"+i);e+=i}for(r=e.length;e.charCodeAt(--r)===48;);return e.slice(0,r+1||1)}function Hi(o,i){var a,t,r=o.c,e=i.c,n=o.s,s=i.s,l=o.e,h=i.e;if(!n||!s)return null;if(a=r&&!r[0],t=e&&!e[0],a||t)return a?t?0:-s:n;if(n!=s)return n;if(a=n<0,t=l==h,!r||!e)return t?0:!r^a?1:-1;if(!t)return l>h^a?1:-1;s=(l=r.length)<(h=e.length)?l:h;for(n=0;n<s;n++)if(r[n]!=e[n])return r[n]>e[n]^a?1:-1;return l==h?0:l>h^a?1:-1}function ko(o,i,a,t){if(o<i||o>a||o!==jo(o))throw Error(Yo+(t||"Argument")+(typeof o=="number"?o<i||o>a?" out of range: ":" not an integer: ":" not a primitive number: ")+String(o))}function sa(o){var i=o.c.length-1;return Po(o.e/no)==i&&o.c[i]%2!=0}function la(o,i){return(o.length>1?o.charAt(0)+"."+o.slice(1):o)+(i<0?"e":"e+")+i}function ni(o,i,a){var t,r;if(i<0){for(r=a+".";++i;r+=a);o=r+o}else if(t=o.length,++i>t){for(r=a,i-=t;--i;r+=a);o+=r}else if(i<t)o=o.slice(0,i)+"."+o.slice(i);return o}var Dn=qr(),P=Dn;var da=globalThis,ca=da.ShadowRoot&&(da.ShadyCSS===void 0||da.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ta=Symbol(),Jr=new WeakMap;class ha{constructor(o,i,a){if(this._$cssResult$=!0,a!==Ta)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=i}get styleSheet(){let o=this.o,i=this.t;if(ca&&o===void 0){let a=i!==void 0&&i.length===1;a&&(o=Jr.get(i)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),a&&Jr.set(i,o))}return o}toString(){return this.cssText}}var $r=(o)=>new ha(typeof o=="string"?o:o+"",void 0,Ta),X=(o,...i)=>{let a=o.length===1?o[0]:i.reduce((t,r,e)=>t+((n)=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+o[e+1],o[0]);return new ha(a,o,Ta)},Yr=(o,i)=>{if(ca)o.adoptedStyleSheets=i.map((a)=>a instanceof CSSStyleSheet?a:a.styleSheet);else for(let a of i){let t=document.createElement("style"),r=da.litNonce;r!==void 0&&t.setAttribute("nonce",r),t.textContent=a.cssText,o.appendChild(t)}},Xa=ca?(o)=>o:(o)=>o instanceof CSSStyleSheet?((i)=>{let a="";for(let t of i.cssRules)a+=t.cssText;return $r(a)})(o):o;var{is:Nn,defineProperty:Mn,getOwnPropertyDescriptor:En,getOwnPropertyNames:os,getOwnPropertySymbols:is,getPrototypeOf:as}=Object,ua=globalThis,Lr=ua.trustedTypes,ts=Lr?Lr.emptyScript:"",rs=ua.reactiveElementPolyfillSupport,ji=(o,i)=>o,Pi={toAttribute(o,i){switch(i){case Boolean:o=o?ts:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,i){let a=o;switch(i){case Boolean:a=o!==null;break;case Number:a=o===null?null:Number(o);break;case Object:case Array:try{a=JSON.parse(o)}catch(t){a=null}}return a}},fa=(o,i)=>!Nn(o,i),Cr={attribute:!0,type:String,converter:Pi,reflect:!1,useDefault:!1,hasChanged:fa};Symbol.metadata??=Symbol("metadata"),ua.litPropertyMetadata??=new WeakMap;class bi extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??=[]).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,i=Cr){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(o,i),!i.noAccessor){let a=Symbol(),t=this.getPropertyDescriptor(o,a,i);t!==void 0&&Mn(this.prototype,o,t)}}static getPropertyDescriptor(o,i,a){let{get:t,set:r}=En(this.prototype,o)??{get(){return this[i]},set(e){this[i]=e}};return{get:t,set(e){let n=t?.call(this);r?.call(this,e),this.requestUpdate(o,n,a)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??Cr}static _$Ei(){if(this.hasOwnProperty(ji("elementProperties")))return;let o=as(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(ji("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ji("properties"))){let i=this.properties,a=[...os(i),...is(i)];for(let t of a)this.createProperty(t,i[t])}let o=this[Symbol.metadata];if(o!==null){let i=litPropertyMetadata.get(o);if(i!==void 0)for(let[a,t]of i)this.elementProperties.set(a,t)}this._$Eh=new Map;for(let[i,a]of this.elementProperties){let t=this._$Eu(i,a);t!==void 0&&this._$Eh.set(t,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(o){let i=[];if(Array.isArray(o)){let a=new Set(o.flat(1/0).reverse());for(let t of a)i.unshift(Xa(t))}else o!==void 0&&i.push(Xa(o));return i}static _$Eu(o,i){let a=i.attribute;return a===!1?void 0:typeof a=="string"?a:typeof o=="string"?o.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((o)=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((o)=>o(this))}addController(o){(this._$EO??=new Set).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,i=this.constructor.elementProperties;for(let a of i.keys())this.hasOwnProperty(a)&&(o.set(a,this[a]),delete this[a]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yr(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((o)=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach((o)=>o.hostDisconnected?.())}attributeChangedCallback(o,i,a){this._$AK(o,a)}_$ET(o,i){let a=this.constructor.elementProperties.get(o),t=this.constructor._$Eu(o,a);if(t!==void 0&&a.reflect===!0){let r=(a.converter?.toAttribute!==void 0?a.converter:Pi).toAttribute(i,a.type);this._$Em=o,r==null?this.removeAttribute(t):this.setAttribute(t,r),this._$Em=null}}_$AK(o,i){let a=this.constructor,t=a._$Eh.get(o);if(t!==void 0&&this._$Em!==t){let r=a.getPropertyOptions(t),e=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:Pi;this._$Em=t,this[t]=e.fromAttribute(i,r.type)??this._$Ej?.get(t)??null,this._$Em=null}}requestUpdate(o,i,a){if(o!==void 0){let t=this.constructor,r=this[o];if(a??=t.getPropertyOptions(o),!((a.hasChanged??fa)(r,i)||a.useDefault&&a.reflect&&r===this._$Ej?.get(o)&&!this.hasAttribute(t._$Eu(o,a))))return;this.C(o,i,a)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,i,{useDefault:a,reflect:t,wrapped:r},e){a&&!(this._$Ej??=new Map).has(o)&&(this._$Ej.set(o,e??i??this[o]),r!==!0||e!==void 0)||(this._$AL.has(o)||(this.hasUpdated||a||(i=void 0),this._$AL.set(o,i)),t===!0&&this._$Em!==o&&(this._$Eq??=new Set).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}let o=this.scheduleUpdate();return o!=null&&await o,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,r]of this._$Ep)this[t]=r;this._$Ep=void 0}let a=this.constructor.elementProperties;if(a.size>0)for(let[t,r]of a){let{wrapped:e}=r,n=this[t];e!==!0||this._$AL.has(t)||n===void 0||this.C(t,void 0,r,n)}}let o=!1,i=this._$AL;try{o=this.shouldUpdate(i),o?(this.willUpdate(i),this._$EO?.forEach((a)=>a.hostUpdate?.()),this.update(i)):this._$EM()}catch(a){throw o=!1,this._$EM(),a}o&&this._$AE(i)}willUpdate(o){}_$AE(o){this._$EO?.forEach((i)=>i.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&=this._$Eq.forEach((i)=>this._$ET(i,this[i])),this._$EM()}updated(o){}firstUpdated(o){}}bi.elementStyles=[],bi.shadowRootOptions={mode:"open"},bi[ji("elementProperties")]=new Map,bi[ji("finalized")]=new Map,rs?.({ReactiveElement:bi}),(ua.reactiveElementVersions??=[]).push("2.1.0");var Ba=globalThis,pa=Ba.trustedTypes,Fr=pa?pa.createPolicy("lit-html",{createHTML:(o)=>o}):void 0;var si=`lit$${Math.random().toFixed(9).slice(2)}$`,Ga="?"+si,es=`<${Ga}>`,Ki=document,_i=()=>Ki.createComment(""),Oi=(o)=>o===null||typeof o!="object"&&typeof o!="function",Da=Array.isArray,Or=(o)=>Da(o)||typeof o?.[Symbol.iterator]=="function";var Ai=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qr=/-->/g,jr=/>/g,Si=RegExp(`>|[
10
10
  \f\r](?:([^\\s"'>=/]+)([
11
11
  \f\r]*=[
12
12
  \f\r]*(?:[^
13
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Pr=/'/g,Ar=/"/g,Or=/^(?:script|style|textarea|title)$/i,Na=(o)=>(i,...a)=>({_$litType$:o,strings:i,values:a}),$=Na(1),eo=Na(2),Tl=Na(3),Ko=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),jr=new WeakMap,yi=Si.createTreeWalker(Si,129);function Tr(o,i){if(!Da(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Lr!==void 0?Lr.createHTML(i):i}var Xr=(o,i)=>{let a=o.length-1,t=[],r,e=i===2?"<svg>":i===3?"<math>":"",n=ji;for(let s=0;s<a;s++){let l=o[s],u,g,S=-1,f=0;for(;f<l.length&&(n.lastIndex=f,g=n.exec(l),g!==null);)f=n.lastIndex,n===ji?g[1]==="!--"?n=Fr:g[1]!==void 0?n=Qr:g[2]!==void 0?(Or.test(g[2])&&(r=RegExp("</"+g[2],"g")),n=zi):g[3]!==void 0&&(n=zi):n===zi?g[0]===">"?(n=r??ji,S=-1):g[1]===void 0?S=-2:(S=n.lastIndex-g[2].length,u=g[1],n=g[3]===void 0?zi:g[3]==='"'?Ar:Pr):n===Ar||n===Pr?n=zi:n===Fr||n===Qr?n=ji:(n=zi,r=void 0);let y=n===zi&&o[s+1].startsWith("/>")?" ":"";e+=n===ji?l+es:S>=0?(t.push(u),l.slice(0,S)+"$lit$"+l.slice(S)+si+y):l+si+(S===-2?s:y)}return[Tr(o,e+(o[a]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),t]};class Ti{constructor({strings:o,_$litType$:i},a){let t;this.parts=[];let r=0,e=0,n=o.length-1,s=this.parts,[l,u]=Xr(o,i);if(this.el=Ti.createElement(l,a),yi.currentNode=this.el.content,i===2||i===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(t=yi.nextNode())!==null&&s.length<n;){if(t.nodeType===1){if(t.hasAttributes())for(let g of t.getAttributeNames())if(g.endsWith("$lit$")){let S=u[e++],f=t.getAttribute(g).split(si),y=/([.?@])?(.*)/.exec(S);s.push({type:1,index:r,name:y[2],strings:f,ctor:y[1]==="."?Ea:y[1]==="?"?ot:y[1]==="@"?it:Ji}),t.removeAttribute(g)}else g.startsWith(si)&&(s.push({type:6,index:r}),t.removeAttribute(g));if(Or.test(t.tagName)){let g=t.textContent.split(si),S=g.length-1;if(S>0){t.textContent=pa?pa.emptyScript:"";for(let f=0;f<S;f++)t.append(g[f],_i()),yi.nextNode(),s.push({type:2,index:++r});t.append(g[S],_i())}}}else if(t.nodeType===8)if(t.data===Ga)s.push({type:2,index:r});else{let g=-1;for(;(g=t.data.indexOf(si,g+1))!==-1;)s.push({type:7,index:r}),g+=si.length-1}r++}}static createElement(o,i){let a=Si.createElement("template");return a.innerHTML=o,a}}function Hi(o,i,a=o,t){if(i===Ko)return i;let r=t!==void 0?a._$Co?.[t]:a._$Cl,e=Oi(i)?void 0:i._$litDirective$;return r?.constructor!==e&&(r?._$AO?.(!1),e===void 0?r=void 0:(r=new e(o),r._$AT(o,a,t)),t!==void 0?(a._$Co??=[])[t]=r:a._$Cl=r),r!==void 0&&(i=Hi(o,r._$AS(o,i.values),r,t)),i}class Ma{constructor(o,i){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:i},parts:a}=this._$AD,t=(o?.creationScope??Si).importNode(i,!0);yi.currentNode=t;let r=yi.nextNode(),e=0,n=0,s=a[0];for(;s!==void 0;){if(e===s.index){let l;s.type===2?l=new qi(r,r.nextSibling,this,o):s.type===1?l=new s.ctor(r,s.name,s.strings,this,o):s.type===6&&(l=new at(r,this,o)),this._$AV.push(l),s=a[++n]}e!==s?.index&&(r=yi.nextNode(),e++)}return yi.currentNode=Si,t}p(o){let i=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(o,a,i),i+=a.strings.length-2):a._$AI(o[i])),i++}}class qi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,i,a,t){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=i,this._$AM=a,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,i=this._$AM;return i!==void 0&&o?.nodeType===11&&(o=i.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,i=this){o=Hi(this,o,i),Oi(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==Ko&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):_r(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==_&&Oi(this._$AH)?this._$AA.nextSibling.data=o:this.T(Si.createTextNode(o)),this._$AH=o}$(o){let{values:i,_$litType$:a}=o,t=typeof a=="number"?this._$AC(o):(a.el===void 0&&(a.el=Ti.createElement(Tr(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===t)this._$AH.p(i);else{let r=new Ma(t,this),e=r.u(this.options);r.p(i),this.T(e),this._$AH=r}}_$AC(o){let i=jr.get(o.strings);return i===void 0&&jr.set(o.strings,i=new Ti(o)),i}k(o){Da(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,a,t=0;for(let r of o)t===i.length?i.push(a=new qi(this.O(_i()),this.O(_i()),this,this.options)):a=i[t],a._$AI(r),t++;t<i.length&&(this._$AR(a&&a._$AB.nextSibling,t),i.length=t)}_$AR(o=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}}class Ji{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,i,a,t,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=i,this._$AM=t,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=_}_$AI(o,i=this,a,t){let r=this.strings,e=!1;if(r===void 0)o=Hi(this,o,i,0),e=!Oi(o)||o!==this._$AH&&o!==Ko,e&&(this._$AH=o);else{let n=o,s,l;for(o=r[0],s=0;s<r.length-1;s++)l=Hi(this,n[a+s],i,s),l===Ko&&(l=this._$AH[s]),e||=!Oi(l)||l!==this._$AH[s],l===_?o=_:o!==_&&(o+=(l??"")+r[s+1]),this._$AH[s]=l}e&&!t&&this.j(o)}j(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class Ea extends Ji{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}}class ot extends Ji{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}}class it extends Ji{constructor(o,i,a,t,r){super(o,i,a,t,r),this.type=5}_$AI(o,i=this){if((o=Hi(this,o,i,0)??_)===Ko)return;let a=this._$AH,t=o===_&&a!==_||o.capture!==a.capture||o.once!==a.once||o.passive!==a.passive,r=o!==_&&(a===_||t);t&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class at{constructor(o,i,a){this.element=o,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(o){Hi(this,o)}}var Br={M:"$lit$",P:si,A:Ga,C:1,L:Xr,R:Ma,D:_r,V:Hi,I:qi,H:Ji,N:ot,U:it,B:Ea,F:at},ns=Ba.litHtmlPolyfillSupport;ns?.(Ti,qi),(Ba.litHtmlVersions??=[]).push("3.3.0");var Gr=(o,i,a)=>{let t=a?.renderBefore??i,r=t._$litPart$;if(r===void 0){let e=a?.renderBefore??null;t._$litPart$=r=new qi(i.insertBefore(_i(),e),e,void 0,a??{})}return r._$AI(o),r};var tt=globalThis;class zo extends fi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Gr(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}zo._$litElement$=!0,zo.finalized=!0,tt.litElementHydrateSupport?.({LitElement:zo});var ss=tt.litElementPolyfillSupport;ss?.({LitElement:zo});(tt.litElementVersions??=[]).push("4.2.0");var O=(o)=>(i,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var ls={attribute:!0,type:String,converter:Ai,reflect:!1,hasChanged:fa},ds=(o=ls,i,a)=>{let{kind:t,metadata:r}=a,e=globalThis.litPropertyMetadata.get(r);if(e===void 0&&globalThis.litPropertyMetadata.set(r,e=new Map),t==="setter"&&((o=Object.create(o)).wrapped=!0),e.set(a.name,o),t==="accessor"){let{name:n}=a;return{set(s){let l=i.get.call(this);i.set.call(this,s),this.requestUpdate(n,l,o)},init(s){return s!==void 0&&this.C(n,void 0,o,s),s}}}if(t==="setter"){let{name:n}=a;return function(s){let l=this[n];i.call(this,s),this.requestUpdate(n,l,o)}}throw Error("Unsupported decorator location: "+t)};function H(o){return(i,a)=>typeof a=="object"?ds(o,i,a):((t,r,e)=>{let n=r.hasOwnProperty(e);return r.constructor.createProperty(e,t),n?Object.getOwnPropertyDescriptor(r,e):void 0})(o,i,a)}function j(o){return H({...o,state:!0,attribute:!1})}var Zi=(o,i,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,a),a);function fo(o,i){return(a,t,r)=>{let e=(n)=>n.renderRoot?.querySelector(o)??null;if(i){let{get:n,set:s}=typeof t=="object"?a:r??(()=>{let l=Symbol();return{get(){return this[l]},set(u){this[l]=u}}})();return Zi(a,t,{get(){let l=n.call(this);return l===void 0&&(l=e(this),(l!==null||this.hasUpdated)&&s.call(this,l)),l}})}return Zi(a,t,{get(){return e(this)}})}}class rt{canVibrate;constructor(o){o.addController(this),this.canVibrate="vibrate"in navigator}trigger(o=10){if(!this.canVibrate)return;try{navigator.vibrate(o)}catch{}}click(){this.trigger(50)}lightClick(){this.trigger(35)}}function Dr(o){let i=o.replace(/-/g,"").substring(0,12),a=parseInt(i,16);return new Date(a)}function Nr(o){return o.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0})}class et extends EventTarget{host;_historyData=[];_hasData=null;_isInitialized=!1;_hasNextPage=!1;_initialLoadSize=6;_hasLoadedMore=!1;_clientSeed=null;_hasLoadedClientSeed=!1;constructor(o){super();this.host=o,o.addController(this),setTimeout(()=>{this.preloadHistory(),this.loadClientSeed()},100)}get historyData(){return this._historyData}get hasData(){return this._hasData}get isInitialized(){return this._isInitialized}get hasNextPage(){return this._hasNextPage}get clientSeed(){return this._clientSeed}get hasLoadedClientSeed(){return this._hasLoadedClientSeed}notifyDataChanged(){this.dispatchEvent(new CustomEvent("history-data-changed",{detail:{historyData:this._historyData,hasNextPage:this._hasNextPage,hasData:this._hasData}}))}notifyClientSeedChanged(){this.dispatchEvent(new CustomEvent("client-seed-changed",{detail:{clientSeed:this._clientSeed}}))}async preloadHistory(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return;try{let{historyData:o,hasNextPage:i}=await this.fetchHistory(void 0,this._initialLoadSize);this._historyData=o,this._hasData=o.length>0,this._hasNextPage=i,this._isInitialized=!0,this._hasLoadedMore=!1,this.notifyDataChanged()}catch(o){console.error("Failed to preload history:",o),this._isInitialized=!0,this._hasData=null}}async fetchHistory(o,i=5){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return{historyData:[],hasNextPage:!1};let a=new URL(`${this.host.gameData.baseUrl}/bet/my-bets`);if(a.searchParams.append("limit",i.toString()),o)a.searchParams.append("beforeId",o);let t=await fetch(a.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);let r=await t.json();return{historyData:r.results.map((n)=>({id:`${n.id.slice(0,3)}...${n.id.slice(-3)}`,fullId:n.id,timestamp:Nr(Dr(n.id)),currency:n.currency,bet:Number(n.amount),win:Number(n.payout)})),hasNextPage:!!r.nextCursor}}async refreshHistory(o=!1){try{let i=o&&this._hasLoadedMore?this._historyData.length:this._initialLoadSize,{historyData:a,hasNextPage:t}=await this.fetchHistory(void 0,i);if(this._historyData=a,this._hasData=a.length>0,this._hasNextPage=t,!o)this._hasLoadedMore=!1;this.notifyDataChanged()}catch(i){console.error("Failed to refresh history:",i)}}async loadMore(){if(!this._hasNextPage||this._historyData.length===0)return{historyData:[],hasNextPage:!1};let o=this._historyData[this._historyData.length-1],{historyData:i,hasNextPage:a}=await this.fetchHistory(o.fullId,this._initialLoadSize);return this._historyData=[...this._historyData,...i],this._hasNextPage=a,this._hasLoadedMore=!0,this.notifyDataChanged(),{historyData:i,hasNextPage:a}}addNewBet(o){if(this._historyData.some((a)=>a.fullId===o.id))return;let i={id:`${o.id.slice(0,3)}...${o.id.slice(-3)}`,fullId:o.id,timestamp:Nr(Dr(o.id)),currency:o.currency,bet:Number(o.amount),win:Number(o.payout)};if(!this._hasLoadedMore&&this._historyData.length>=this._initialLoadSize)this._historyData=[i,...this._historyData.slice(0,this._initialLoadSize-1)],this._hasNextPage=!0;else this._historyData=[i,...this._historyData];this._hasData=!0,this.notifyDataChanged()}async loadClientSeed(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken||this._hasLoadedClientSeed)return;try{let o=await fetch(`${this.host.gameData.baseUrl}/provably-fair/my-info`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);let i=await o.json();this._clientSeed=i.clientSeed,this._hasLoadedClientSeed=!0,this.notifyClientSeedChanged()}catch(o){console.error("Failed to load client seed:",o)}}updateClientSeed(o){this._clientSeed=o,this.notifyClientSeedChanged()}}class nt{host;muted=!1;audioCtx;buffer;spriteMap=null;constructor(o){this.host=o,o.addController(this);let i=window.AudioContext||window.webkitAudioContext;this.audioCtx=new i,fetch("https://assets.betorigami.com/sounds/sounds.mp3").then((a)=>{return a.arrayBuffer().then((t)=>{this.audioCtx.decodeAudioData(t,(r)=>{this.buffer=r})}).catch((t)=>{})}).catch(),fetch("https://assets.betorigami.com/sounds/sounds.json").then((a)=>a.json()).catch().then((a)=>{this.spriteMap=a.spritemap}).catch(),window.onclick=()=>{this.play("bet",!0),window.onclick=null}}preload(o){}async play(o,i,a=1,t,r=()=>{}){if(!this.buffer||!this.spriteMap)return;let e=this.audioCtx.createBufferSource();e.buffer=this.buffer;let n=this.spriteMap[o];try{if(this.audioCtx&&e){let s=this.audioCtx.createGain(),l=t??(this.host.gameData?.volume??100)/100,u=i??this.muted;return s.gain.value=u?0:Math.min(l,1),s.connect(this.audioCtx.destination),e.connect(s),e.playbackRate.value=a,e.start(0,n.start),setTimeout(()=>{e?.stop(),r()},1000*(n.end-n.start)),e}}catch(s){}}}var Xi=100;class B extends zo{static componentStyles=[];emit(o,i){let a=new CustomEvent(o,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...i});return this.dispatchEvent(a),a}}var D=ei(Symbol("game"));class ga extends B{constructor(){super(...arguments);this.currency="USD";this.showCurrencyAsText=!1;this.balance=0;this.currencyDecimals=2;this.baseUrl="https://betorigami.com";this.authToken="";this.origamiGame="DICE";this.lobbyUrl="https://betorigami.com";this.depositUrl=void 0;this.maxPayout=1e6;this.minBet=0.01;this.maxBet=100;this.betAmount="0.00";this.autobetNumberOfBets=0;this.hotkeysOpenEnabled=!1;this.volume=100;this.instantBetEnabled=!1;this.mainWidth=0;this.publicKey="";this.language="en"}_soundController=new nt(this);_historyController=new et(this);_hapticController=new rt(this);_gameProvider=new ki(this,{context:D,initialValue:{amount:this.betAmount,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),currency:this.currency,showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,authToken:this.authToken,publicKey:this.publicKey,autobetNumberOfBets:this.autobetNumberOfBets,hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language}});connectedCallback(){super.connectedCallback(),this.updateProviderValue(),this.fetchBalance(),this.fetchPublicKey()}disconnectedCallback(){super.disconnectedCallback()}updated(o){if(super.updated(o),o.has("currency")||o.has("balance")||o.has("baseUrl")||o.has("showCurrencyAsText")||o.has("authToken")||o.has("hotkeysOpenEnabled")||o.has("volume")||o.has("instantBetEnabled")||o.has("mainWidth"))this.updateProviderValue()}get gameData(){return this._gameProvider.value}updateProviderValue(){this._gameProvider.setValue({amount:this.betAmount,currency:this.currency,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,publicKey:this.publicKey,authToken:this.authToken,autobetNumberOfBets:this.autobetNumberOfBets,updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language})}fetchBalance=async()=>{if(!this.authToken||!this.baseUrl){this.balance=1000;return}try{let o=await fetch(`${this.baseUrl}/users/balance?currency=${this.currency}&origamiGame=${this.origamiGame}`,{headers:{Authorization:`Bearer ${this.authToken}`,"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch balance:",o.statusText);return}let i=await o.json();this.balance=new A(i.balance).toNumber()}catch(o){console.error("Error fetching balance:",o)}};fetchPublicKey=async()=>{if(!this.authToken||!this.baseUrl)return;let o=await fetch(`${this.baseUrl}/provably-fair/public-key`);if(!o.ok){console.error("Failed to fetch public key:",o.statusText);return}let i=await o.json();this.publicKey=i.publicKey};updateHotkeysOpenEnabled(o){this.hotkeysOpenEnabled=o,this.updateProviderValue()}updateVolume(o){this.volume=o,this.updateProviderValue()}updateInstantBetEnabled(o){this.instantBetEnabled=o,this.updateProviderValue()}updateAutobetNumberOfBets(o){this.autobetNumberOfBets=o,this.updateProviderValue()}updateMainWidth(o){this.mainWidth=o,this.updateProviderValue()}updateBetAmount(o){if(o.isNaN())return;if(o.isLessThan(0)){this.betAmount="0";return}let i=o.toFixed(this.currencyDecimals);this.betAmount=i,this.updateProviderValue()}updateBalance(o){if(o.isNaN())return;if(o.isLessThan(0)){this.balance=0;return}this.balance=o.toNumber(),this.updateProviderValue()}render(){switch(this.origamiGame){case"DICE":return $`<origami-dice-game></origami-dice-game>`;case"KENO":return $`<origami-keno-game></origami-keno-game>`;case"MINES":return $`<origami-mines-game></origami-mines-game>`;case"LIMBO":return $`<origami-limbo-game></origami-limbo-game>`;default:this.origamiGame}}}d([H({type:String})],ga.prototype,"currency",void 0),d([H({type:Boolean})],ga.prototype,"showCurrencyAsText",void 0),d([H({type:Number})],ga.prototype,"balance",void 0),d([H({type:Number})],ga.prototype,"currencyDecimals",void 0),d([H({type:String})],ga.prototype,"baseUrl",void 0),d([H({type:String})],ga.prototype,"authToken",void 0),d([H({type:String})],ga.prototype,"origamiGame",void 0),d([H({type:String})],ga.prototype,"lobbyUrl",void 0),d([H({type:String})],ga.prototype,"depositUrl",void 0),d([H({type:Number})],ga.prototype,"maxPayout",void 0),d([H({type:Number})],ga.prototype,"minBet",void 0),d([H({type:Number})],ga.prototype,"maxBet",void 0),d([j()],ga.prototype,"betAmount",void 0),d([j()],ga.prototype,"autobetNumberOfBets",void 0),d([j()],ga.prototype,"hotkeysOpenEnabled",void 0),d([j()],ga.prototype,"volume",void 0),d([j()],ga.prototype,"instantBetEnabled",void 0),d([j()],ga.prototype,"mainWidth",void 0),d([j()],ga.prototype,"publicKey",void 0),d([H()],ga.prototype,"language",void 0),ga=d([O("origami-game-provider-wrapper")],ga);var Mr=X`
13
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Pr=/'/g,Ar=/"/g,Tr=/^(?:script|style|textarea|title)$/i,Na=(o)=>(i,...a)=>({_$litType$:o,strings:i,values:a}),$=Na(1),eo=Na(2),Tl=Na(3),Ko=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),_r=new WeakMap,Zi=Ki.createTreeWalker(Ki,129);function Xr(o,i){if(!Da(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fr!==void 0?Fr.createHTML(i):i}var Br=(o,i)=>{let a=o.length-1,t=[],r,e=i===2?"<svg>":i===3?"<math>":"",n=Ai;for(let s=0;s<a;s++){let l=o[s],h,g,H=-1,f=0;for(;f<l.length&&(n.lastIndex=f,g=n.exec(l),g!==null);)f=n.lastIndex,n===Ai?g[1]==="!--"?n=Qr:g[1]!==void 0?n=jr:g[2]!==void 0?(Tr.test(g[2])&&(r=RegExp("</"+g[2],"g")),n=Si):g[3]!==void 0&&(n=Si):n===Si?g[0]===">"?(n=r??Ai,H=-1):g[1]===void 0?H=-2:(H=n.lastIndex-g[2].length,h=g[1],n=g[3]===void 0?Si:g[3]==='"'?Ar:Pr):n===Ar||n===Pr?n=Si:n===Qr||n===jr?n=Ai:(n=Si,r=void 0);let y=n===Si&&o[s+1].startsWith("/>")?" ":"";e+=n===Ai?l+es:H>=0?(t.push(h),l.slice(0,H)+"$lit$"+l.slice(H)+si+y):l+si+(H===-2?s:y)}return[Xr(o,e+(o[a]||"<?>")+(i===2?"</svg>":i===3?"</math>":"")),t]};class Ti{constructor({strings:o,_$litType$:i},a){let t;this.parts=[];let r=0,e=0,n=o.length-1,s=this.parts,[l,h]=Br(o,i);if(this.el=Ti.createElement(l,a),Zi.currentNode=this.el.content,i===2||i===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(t=Zi.nextNode())!==null&&s.length<n;){if(t.nodeType===1){if(t.hasAttributes())for(let g of t.getAttributeNames())if(g.endsWith("$lit$")){let H=h[e++],f=t.getAttribute(g).split(si),y=/([.?@])?(.*)/.exec(H);s.push({type:1,index:r,name:y[2],strings:f,ctor:y[1]==="."?Ea:y[1]==="?"?ot:y[1]==="@"?it:Ji}),t.removeAttribute(g)}else g.startsWith(si)&&(s.push({type:6,index:r}),t.removeAttribute(g));if(Tr.test(t.tagName)){let g=t.textContent.split(si),H=g.length-1;if(H>0){t.textContent=pa?pa.emptyScript:"";for(let f=0;f<H;f++)t.append(g[f],_i()),Zi.nextNode(),s.push({type:2,index:++r});t.append(g[H],_i())}}}else if(t.nodeType===8)if(t.data===Ga)s.push({type:2,index:r});else{let g=-1;for(;(g=t.data.indexOf(si,g+1))!==-1;)s.push({type:7,index:r}),g+=si.length-1}r++}}static createElement(o,i){let a=Ki.createElement("template");return a.innerHTML=o,a}}function Ri(o,i,a=o,t){if(i===Ko)return i;let r=t!==void 0?a._$Co?.[t]:a._$Cl,e=Oi(i)?void 0:i._$litDirective$;return r?.constructor!==e&&(r?._$AO?.(!1),e===void 0?r=void 0:(r=new e(o),r._$AT(o,a,t)),t!==void 0?(a._$Co??=[])[t]=r:a._$Cl=r),r!==void 0&&(i=Ri(o,r._$AS(o,i.values),r,t)),i}class Ma{constructor(o,i){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:i},parts:a}=this._$AD,t=(o?.creationScope??Ki).importNode(i,!0);Zi.currentNode=t;let r=Zi.nextNode(),e=0,n=0,s=a[0];for(;s!==void 0;){if(e===s.index){let l;s.type===2?l=new qi(r,r.nextSibling,this,o):s.type===1?l=new s.ctor(r,s.name,s.strings,this,o):s.type===6&&(l=new at(r,this,o)),this._$AV.push(l),s=a[++n]}e!==s?.index&&(r=Zi.nextNode(),e++)}return Zi.currentNode=Ki,t}p(o){let i=0;for(let a of this._$AV)a!==void 0&&(a.strings!==void 0?(a._$AI(o,a,i),i+=a.strings.length-2):a._$AI(o[i])),i++}}class qi{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,i,a,t){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=i,this._$AM=a,this.options=t,this._$Cv=t?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,i=this._$AM;return i!==void 0&&o?.nodeType===11&&(o=i.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,i=this){o=Ri(this,o,i),Oi(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==Ko&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Or(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==_&&Oi(this._$AH)?this._$AA.nextSibling.data=o:this.T(Ki.createTextNode(o)),this._$AH=o}$(o){let{values:i,_$litType$:a}=o,t=typeof a=="number"?this._$AC(o):(a.el===void 0&&(a.el=Ti.createElement(Xr(a.h,a.h[0]),this.options)),a);if(this._$AH?._$AD===t)this._$AH.p(i);else{let r=new Ma(t,this),e=r.u(this.options);r.p(i),this.T(e),this._$AH=r}}_$AC(o){let i=_r.get(o.strings);return i===void 0&&_r.set(o.strings,i=new Ti(o)),i}k(o){Da(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,a,t=0;for(let r of o)t===i.length?i.push(a=new qi(this.O(_i()),this.O(_i()),this,this.options)):a=i[t],a._$AI(r),t++;t<i.length&&(this._$AR(a&&a._$AB.nextSibling,t),i.length=t)}_$AR(o=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);o&&o!==this._$AB;){let a=o.nextSibling;o.remove(),o=a}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}}class Ji{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,i,a,t,r){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=i,this._$AM=t,this.options=r,a.length>2||a[0]!==""||a[1]!==""?(this._$AH=Array(a.length-1).fill(new String),this.strings=a):this._$AH=_}_$AI(o,i=this,a,t){let r=this.strings,e=!1;if(r===void 0)o=Ri(this,o,i,0),e=!Oi(o)||o!==this._$AH&&o!==Ko,e&&(this._$AH=o);else{let n=o,s,l;for(o=r[0],s=0;s<r.length-1;s++)l=Ri(this,n[a+s],i,s),l===Ko&&(l=this._$AH[s]),e||=!Oi(l)||l!==this._$AH[s],l===_?o=_:o!==_&&(o+=(l??"")+r[s+1]),this._$AH[s]=l}e&&!t&&this.j(o)}j(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}}class Ea extends Ji{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}}class ot extends Ji{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}}class it extends Ji{constructor(o,i,a,t,r){super(o,i,a,t,r),this.type=5}_$AI(o,i=this){if((o=Ri(this,o,i,0)??_)===Ko)return;let a=this._$AH,t=o===_&&a!==_||o.capture!==a.capture||o.once!==a.once||o.passive!==a.passive,r=o!==_&&(a===_||t);t&&this.element.removeEventListener(this.name,this,a),r&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}}class at{constructor(o,i,a){this.element=o,this.type=6,this._$AN=void 0,this._$AM=i,this.options=a}get _$AU(){return this._$AM._$AU}_$AI(o){Ri(this,o)}}var Gr={M:"$lit$",P:si,A:Ga,C:1,L:Br,R:Ma,D:Or,V:Ri,I:qi,H:Ji,N:ot,U:it,B:Ea,F:at},ns=Ba.litHtmlPolyfillSupport;ns?.(Ti,qi),(Ba.litHtmlVersions??=[]).push("3.3.0");var Dr=(o,i,a)=>{let t=a?.renderBefore??i,r=t._$litPart$;if(r===void 0){let e=a?.renderBefore??null;t._$litPart$=r=new qi(i.insertBefore(_i(),e),e,void 0,a??{})}return r._$AI(o),r};var tt=globalThis;class zo extends bi{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let o=super.createRenderRoot();return this.renderOptions.renderBefore??=o.firstChild,o}update(o){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Dr(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ko}}zo._$litElement$=!0,zo.finalized=!0,tt.litElementHydrateSupport?.({LitElement:zo});var ss=tt.litElementPolyfillSupport;ss?.({LitElement:zo});(tt.litElementVersions??=[]).push("4.2.0");var O=(o)=>(i,a)=>{a!==void 0?a.addInitializer(()=>{customElements.define(o,i)}):customElements.define(o,i)};var ls={attribute:!0,type:String,converter:Pi,reflect:!1,hasChanged:fa},ds=(o=ls,i,a)=>{let{kind:t,metadata:r}=a,e=globalThis.litPropertyMetadata.get(r);if(e===void 0&&globalThis.litPropertyMetadata.set(r,e=new Map),t==="setter"&&((o=Object.create(o)).wrapped=!0),e.set(a.name,o),t==="accessor"){let{name:n}=a;return{set(s){let l=i.get.call(this);i.set.call(this,s),this.requestUpdate(n,l,o)},init(s){return s!==void 0&&this.C(n,void 0,o,s),s}}}if(t==="setter"){let{name:n}=a;return function(s){let l=this[n];i.call(this,s),this.requestUpdate(n,l,o)}}throw Error("Unsupported decorator location: "+t)};function S(o){return(i,a)=>typeof a=="object"?ds(o,i,a):((t,r,e)=>{let n=r.hasOwnProperty(e);return r.constructor.createProperty(e,t),n?Object.getOwnPropertyDescriptor(r,e):void 0})(o,i,a)}function A(o){return S({...o,state:!0,attribute:!1})}var Ui=(o,i,a)=>(a.configurable=!0,a.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(o,i,a),a);function fo(o,i){return(a,t,r)=>{let e=(n)=>n.renderRoot?.querySelector(o)??null;if(i){let{get:n,set:s}=typeof t=="object"?a:r??(()=>{let l=Symbol();return{get(){return this[l]},set(h){this[l]=h}}})();return Ui(a,t,{get(){let l=n.call(this);return l===void 0&&(l=e(this),(l!==null||this.hasUpdated)&&s.call(this,l)),l}})}return Ui(a,t,{get(){return e(this)}})}}class rt{canVibrate;constructor(o){o.addController(this),this.canVibrate="vibrate"in navigator}trigger(o=10){if(!this.canVibrate)return;try{navigator.vibrate(o)}catch{}}click(){this.trigger(50)}lightClick(){this.trigger(35)}}function Nr(o){let i=o.replace(/-/g,"").substring(0,12),a=parseInt(i,16);return new Date(a)}function Mr(o){return o.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0})}class et extends EventTarget{host;_historyData=[];_hasData=null;_isInitialized=!1;_hasNextPage=!1;_initialLoadSize=6;_hasLoadedMore=!1;_clientSeed=null;_hasLoadedClientSeed=!1;constructor(o){super();this.host=o,o.addController(this),setTimeout(()=>{this.preloadHistory(),this.loadClientSeed()},100)}get historyData(){return this._historyData}get hasData(){return this._hasData}get isInitialized(){return this._isInitialized}get hasNextPage(){return this._hasNextPage}get clientSeed(){return this._clientSeed}get hasLoadedClientSeed(){return this._hasLoadedClientSeed}notifyDataChanged(){this.dispatchEvent(new CustomEvent("history-data-changed",{detail:{historyData:this._historyData,hasNextPage:this._hasNextPage,hasData:this._hasData}}))}notifyClientSeedChanged(){this.dispatchEvent(new CustomEvent("client-seed-changed",{detail:{clientSeed:this._clientSeed}}))}async preloadHistory(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return;try{let{historyData:o,hasNextPage:i}=await this.fetchHistory(void 0,this._initialLoadSize);this._historyData=o,this._hasData=o.length>0,this._hasNextPage=i,this._isInitialized=!0,this._hasLoadedMore=!1,this.notifyDataChanged()}catch(o){console.error("Failed to preload history:",o),this._isInitialized=!0,this._hasData=null}}async fetchHistory(o,i=5){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken)return{historyData:[],hasNextPage:!1};let a=new URL(`${this.host.gameData.baseUrl}/bet/my-bets`);if(a.searchParams.append("limit",i.toString()),o)a.searchParams.append("beforeId",o);let t=await fetch(a.toString(),{headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);let r=await t.json();return{historyData:r.results.map((n)=>({id:`${n.id.slice(0,3)}...${n.id.slice(-3)}`,fullId:n.id,timestamp:Mr(Nr(n.id)),currency:n.currency,bet:Number(n.amount),win:Number(n.payout)})),hasNextPage:!!r.nextCursor}}async refreshHistory(o=!1){try{let i=o&&this._hasLoadedMore?this._historyData.length:this._initialLoadSize,{historyData:a,hasNextPage:t}=await this.fetchHistory(void 0,i);if(this._historyData=a,this._hasData=a.length>0,this._hasNextPage=t,!o)this._hasLoadedMore=!1;this.notifyDataChanged()}catch(i){console.error("Failed to refresh history:",i)}}async loadMore(){if(!this._hasNextPage||this._historyData.length===0)return{historyData:[],hasNextPage:!1};let o=this._historyData[this._historyData.length-1],{historyData:i,hasNextPage:a}=await this.fetchHistory(o.fullId,this._initialLoadSize);return this._historyData=[...this._historyData,...i],this._hasNextPage=a,this._hasLoadedMore=!0,this.notifyDataChanged(),{historyData:i,hasNextPage:a}}addNewBet(o){if(this._historyData.some((a)=>a.fullId===o.id))return;let i={id:`${o.id.slice(0,3)}...${o.id.slice(-3)}`,fullId:o.id,timestamp:Mr(Nr(o.id)),currency:o.currency,bet:Number(o.amount),win:Number(o.payout)};if(!this._hasLoadedMore&&this._historyData.length>=this._initialLoadSize)this._historyData=[i,...this._historyData.slice(0,this._initialLoadSize-1)],this._hasNextPage=!0;else this._historyData=[i,...this._historyData];this._hasData=!0,this.notifyDataChanged()}async loadClientSeed(){if(!this.host.gameData?.baseUrl||!this.host.gameData?.authToken||this._hasLoadedClientSeed)return;try{let o=await fetch(`${this.host.gameData.baseUrl}/provably-fair/my-info`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.host.gameData.authToken}`}});if(!o.ok)throw new Error(`HTTP error! status: ${o.status}`);let i=await o.json();this._clientSeed=i.clientSeed,this._hasLoadedClientSeed=!0,this.notifyClientSeedChanged()}catch(o){console.error("Failed to load client seed:",o)}}updateClientSeed(o){this._clientSeed=o,this.notifyClientSeedChanged()}}class nt{host;muted=!1;audioCtx;buffer;spriteMap=null;constructor(o){this.host=o,o.addController(this);let i=window.AudioContext||window.webkitAudioContext;this.audioCtx=new i,fetch("https://assets.betorigami.com/sounds/sounds.mp3").then((a)=>{return a.arrayBuffer().then((t)=>{this.audioCtx.decodeAudioData(t,(r)=>{this.buffer=r})}).catch((t)=>{})}).catch(),fetch("https://assets.betorigami.com/sounds/sounds.json").then((a)=>a.json()).catch().then((a)=>{this.spriteMap=a.spritemap}).catch(),window.onclick=()=>{this.play("bet",!0),window.onclick=null}}preload(o){}async play(o,i,a=1,t,r=()=>{}){if(!this.buffer||!this.spriteMap)return;let e=this.audioCtx.createBufferSource();e.buffer=this.buffer;let n=this.spriteMap[o];try{if(this.audioCtx&&e){let s=this.audioCtx.createGain(),l=t??(this.host.gameData?.volume??100)/100,h=i??this.muted;return s.gain.value=h?0:Math.min(l,1),s.connect(this.audioCtx.destination),e.connect(s),e.playbackRate.value=a,e.start(0,n.start),setTimeout(()=>{e?.stop(),r()},1000*(n.end-n.start)),e}}catch(s){}}}var Xi=100;class B extends zo{static componentStyles=[];emit(o,i){let a=new CustomEvent(o,{bubbles:!0,cancelable:!1,composed:!0,detail:{},...i});return this.dispatchEvent(a),a}}var D=ei(Symbol("game"));class ga extends B{constructor(){super(...arguments);this.currency="USD";this.showCurrencyAsText=!1;this.balance=0;this.currencyDecimals=2;this.baseUrl="https://betorigami.com";this.authToken="";this.origamiGame="DICE";this.lobbyUrl="https://betorigami.com";this.depositUrl=void 0;this.maxPayout=1e6;this.minBet=0.01;this.maxBet=100;this.betAmount="0.00";this.autobetNumberOfBets=0;this.hotkeysOpenEnabled=!1;this.volume=100;this.instantBetEnabled=!1;this.mainWidth=0;this.publicKey="";this.language="en"}_soundController=new nt(this);_historyController=new et(this);_hapticController=new rt(this);_gameProvider=new yi(this,{context:D,initialValue:{amount:this.betAmount,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),currency:this.currency,showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,authToken:this.authToken,publicKey:this.publicKey,autobetNumberOfBets:this.autobetNumberOfBets,hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language}});connectedCallback(){super.connectedCallback(),this.updateProviderValue(),this.fetchBalance(),this.fetchPublicKey()}disconnectedCallback(){super.disconnectedCallback()}updated(o){if(super.updated(o),o.has("currency")||o.has("balance")||o.has("baseUrl")||o.has("showCurrencyAsText")||o.has("authToken")||o.has("hotkeysOpenEnabled")||o.has("volume")||o.has("instantBetEnabled")||o.has("mainWidth"))this.updateProviderValue()}get gameData(){return this._gameProvider.value}updateProviderValue(){this._gameProvider.setValue({amount:this.betAmount,currency:this.currency,updateBetAmount:this.updateBetAmount.bind(this),updateBalance:this.updateBalance.bind(this),showCurrencyAsText:this.showCurrencyAsText,currencyDecimals:this.currencyDecimals,lobbyUrl:this.lobbyUrl,depositUrl:this.depositUrl,maxPayout:this.maxPayout,minBet:this.minBet,maxBet:this.maxBet,balance:this.balance,baseUrl:this.baseUrl,publicKey:this.publicKey,authToken:this.authToken,autobetNumberOfBets:this.autobetNumberOfBets,updateAutobetNumberOfBets:this.updateAutobetNumberOfBets.bind(this),hotkeysOpenEnabled:this.hotkeysOpenEnabled,volume:this.volume,instantBetEnabled:this.instantBetEnabled,soundController:this._soundController,historyController:this._historyController,hapticController:this._hapticController,updateHotkeysOpenEnabled:this.updateHotkeysOpenEnabled.bind(this),updateVolume:this.updateVolume.bind(this),updateInstantBetEnabled:this.updateInstantBetEnabled.bind(this),mainWidth:this.mainWidth,updateMainWidth:this.updateMainWidth.bind(this),language:this.language})}fetchBalance=async()=>{if(!this.authToken||!this.baseUrl){this.balance=1000;return}try{let o=await fetch(`${this.baseUrl}/users/balance?currency=${this.currency}&origamiGame=${this.origamiGame}`,{headers:{Authorization:`Bearer ${this.authToken}`,"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch balance:",o.statusText);return}let i=await o.json();this.balance=new P(i.balance).toNumber()}catch(o){console.error("Error fetching balance:",o)}};fetchPublicKey=async()=>{if(!this.authToken||!this.baseUrl)return;let o=await fetch(`${this.baseUrl}/provably-fair/public-key`);if(!o.ok){console.error("Failed to fetch public key:",o.statusText);return}let i=await o.json();this.publicKey=i.publicKey};updateHotkeysOpenEnabled(o){this.hotkeysOpenEnabled=o,this.updateProviderValue()}updateVolume(o){this.volume=o,this.updateProviderValue()}updateInstantBetEnabled(o){this.instantBetEnabled=o,this.updateProviderValue()}updateAutobetNumberOfBets(o){this.autobetNumberOfBets=o,this.updateProviderValue()}updateMainWidth(o){this.mainWidth=o,this.updateProviderValue()}updateBetAmount(o){if(o.isNaN())return;if(o.isLessThan(0)){this.betAmount="0";return}let i=o.toFixed(this.currencyDecimals);this.betAmount=i,this.updateProviderValue()}updateBalance(o){if(o.isNaN())return;if(o.isLessThan(0)){this.balance=0;return}this.balance=o.toNumber(),this.updateProviderValue()}render(){switch(this.origamiGame){case"DICE":return $`<origami-dice-game></origami-dice-game>`;case"KENO":return $`<origami-keno-game></origami-keno-game>`;case"MINES":return $`<origami-mines-game></origami-mines-game>`;case"LIMBO":return $`<origami-limbo-game></origami-limbo-game>`;default:this.origamiGame}}}d([S({type:String})],ga.prototype,"currency",void 0),d([S({type:Boolean})],ga.prototype,"showCurrencyAsText",void 0),d([S({type:Number})],ga.prototype,"balance",void 0),d([S({type:Number})],ga.prototype,"currencyDecimals",void 0),d([S({type:String})],ga.prototype,"baseUrl",void 0),d([S({type:String})],ga.prototype,"authToken",void 0),d([S({type:String})],ga.prototype,"origamiGame",void 0),d([S({type:String})],ga.prototype,"lobbyUrl",void 0),d([S({type:String})],ga.prototype,"depositUrl",void 0),d([S({type:Number})],ga.prototype,"maxPayout",void 0),d([S({type:Number})],ga.prototype,"minBet",void 0),d([S({type:Number})],ga.prototype,"maxBet",void 0),d([A()],ga.prototype,"betAmount",void 0),d([A()],ga.prototype,"autobetNumberOfBets",void 0),d([A()],ga.prototype,"hotkeysOpenEnabled",void 0),d([A()],ga.prototype,"volume",void 0),d([A()],ga.prototype,"instantBetEnabled",void 0),d([A()],ga.prototype,"mainWidth",void 0),d([A()],ga.prototype,"publicKey",void 0),d([S()],ga.prototype,"language",void 0),ga=d([O("origami-game-provider-wrapper")],ga);var Er=X`
14
14
  :host {
15
15
  display: flex;
16
16
  flex-direction: column;
@@ -247,38 +247,38 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
247
247
  justify-content: flex-end;
248
248
  gap: 4px;
249
249
  }
250
- `;var Er=eo`
250
+ `;var oe=eo`
251
251
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
252
252
  <path fill="#F5CB3F" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
253
253
  <path fill="#366218" d="M2 10.232a.41.41 0 0 1 .03-.138L3.6 5.891a.462.462 0 0 1 .109-.183c.039-.034.097-.052.176-.052h.562c.078 0 .137.018.176.052a.465.465 0 0 1 .108.183l1.57 4.203c.02.055.03.1.03.131a.132.132 0 0 1-.033.097.128.128 0 0 1-.096.035h-.958a.217.217 0 0 1-.136-.038.264.264 0 0 1-.08-.128l-.217-.664H3.514l-.21.664a.265.265 0 0 1-.08.128.23.23 0 0 1-.143.038H2.13c-.087 0-.13-.042-.13-.125Zm2.54-1.645-.377-1.175-.377 1.175h.754ZM6.811 10.274c-.047-.056-.07-.143-.07-.263V6.01c0-.12.024-.209.073-.266.05-.058.132-.087.247-.087h1.52c.573 0 .995.134 1.267.401.272.268.408.666.408 1.196 0 .66-.227 1.113-.68 1.362l.612 1.486a.27.27 0 0 1 .025.11.143.143 0 0 1-.04.104.144.144 0 0 1-.108.042H9.2a.316.316 0 0 1-.146-.028c-.035-.018-.06-.053-.077-.104l-.513-1.403h-.476v1.189c0 .12-.024.207-.074.263-.05.055-.134.083-.253.083h-.6c-.119 0-.202-.028-.25-.083Zm1.635-2.44c.374 0 .562-.194.562-.581 0-.387-.177-.588-.531-.588h-.489v1.169h.458ZM11.775 10.917c-.05-.055-.074-.143-.074-.263V10.4a3.005 3.005 0 0 1-.587-.152 1.722 1.722 0 0 1-.464-.25c-.074-.055-.11-.108-.11-.158 0-.023.014-.063.042-.118l.303-.539c.033-.055.066-.083.099-.083.02 0 .056.016.105.048.152.102.326.181.522.239.196.058.388.086.578.086.202 0 .347-.032.436-.097.088-.064.132-.168.132-.31a.425.425 0 0 0-.067-.25.555.555 0 0 0-.198-.165 6.522 6.522 0 0 0-.458-.208 4.3 4.3 0 0 1-.685-.356 1.56 1.56 0 0 1-.458-.46 1.206 1.206 0 0 1-.179-.67c0-.355.088-.643.263-.864a1.3 1.3 0 0 1 .726-.45v-.29c0-.12.024-.208.074-.266.05-.057.134-.086.253-.086h.495c.12 0 .204.029.256.086.052.058.077.147.077.267v.242c.396.055.71.177.946.366.07.06.105.115.105.166 0 .032-.013.069-.037.11l-.303.54c-.037.055-.07.082-.099.082-.017 0-.05-.016-.099-.048-.226-.175-.513-.263-.859-.263-.185 0-.324.033-.417.097-.093.065-.139.17-.139.318 0 .134.043.235.13.304a2.566 2.566 0 0 0 .571.304l.09.042c.325.152.573.287.742.404.168.118.296.262.383.432.086.17.13.392.13.664 0 .341-.096.627-.288.857-.192.23-.477.38-.856.45v.234c0 .12-.025.208-.077.263-.052.055-.137.083-.256.083h-.495c-.12 0-.204-.028-.253-.083Z"/>
254
254
  </svg>
255
- `;var oe=eo`
255
+ `;var ie=eo`
256
256
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
257
257
  <path fill="#006847" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
258
258
  <path fill="#FFAE2C" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
259
259
  </svg>
260
- `;var ie=eo`
260
+ `;var ae=eo`
261
261
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
262
262
  <circle cx="8" cy="8" r="8" fill="#229E45"/>
263
263
  <path fill="#F8E509" d="M8.75 10.682c.47.468 1.091.763 1.736.876V12.7h1.128v-1.134c1.124-.193 1.736-1.006 1.736-1.964 0-2.162-3.179-1.837-3.179-3.1 0-.468.413-.774 1.038-.774.537 0 1.123.258 1.498.593l.547-1.004c-.448-.407-1.043-.64-1.64-.707V3.5h-1.128v1.185c-.924.242-1.553.926-1.553 1.875 0 2.114 3.178 1.846 3.178 3.137 0 .46-.384.775-.998.775-.615 0-1.287-.354-1.69-.717l-.673.927ZM3 11.382V4.65h2.552c.488 0 .905.091 1.25.273.348.18.612.435.793.766.183.329.275.716.275 1.16 0 .447-.093.832-.278 1.154-.185.32-.454.565-.805.736-.35.171-.773.257-1.27.257H3.808V7.852h1.488c.261 0 .478-.037.65-.112a.782.782 0 0 0 .386-.335c.086-.15.13-.334.13-.556 0-.223-.044-.412-.13-.565a.804.804 0 0 0-.389-.348 1.538 1.538 0 0 0-.653-.122h-.923v5.568H3ZM6.493 8.32 8.1 11.382H6.59L5.019 8.32h1.475Z"/>
264
264
  </svg>
265
- `;var ae=eo`
265
+ `;var te=eo`
266
266
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
267
267
  <path fill="#41E733" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
268
268
  <path fill="#D52B1E" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
269
269
  <path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
270
270
  </svg>
271
- `;var te=eo`
271
+ `;var re=eo`
272
272
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
273
273
  <circle cx="8" cy="8" r="8" fill="#fff"/>
274
274
  <path fill="#EE1C25" d="M8 0C3.589 0 0 3.589 0 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8Zm2.667 7.333v1.334h-2v.666h2v1.334h-2v2H7.333v-2h-2V9.333h2v-.666h-2V7.333h1.28l-2.216-2.77 1.041-.834L8 6.933l2.563-3.204 1.041.834-2.217 2.77h1.28Z"/>
275
275
  </svg>
276
- `;var re=eo`
276
+ `;var ee=eo`
277
277
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
278
278
  <circle cx="8" cy="8" r="8" fill="#012169"/>
279
279
  <path fill="#FFAB01" d="M5.23 8c0-.178.008-.357.022-.535H4.157V6.394h1.28c.18-.644.491-1.254.986-1.733.615-.597 1.467-.944 2.563-.944 1.485 0 2.426.593 2.793.96l-.758.757c-.169-.168-.838-.646-2.035-.646-.853 0-1.426.262-1.816.64a2.576 2.576 0 0 0-.605.966h2.957v1.07H6.33a5.627 5.627 0 0 0 0 1.072h3.193v1.07H6.565c.142.382.341.71.605.966.39.378.963.64 1.816.64 1.197 0 1.866-.477 2.035-.645l.758.757c-.367.367-1.308.96-2.793.96-1.096 0-1.948-.348-2.563-.944-.495-.48-.806-1.09-.986-1.733h-1.28V8.536h1.095A6.768 6.768 0 0 1 5.23 8Z"/>
280
280
  </svg>
281
- `;var ee=eo`
281
+ `;var ne=eo`
282
282
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
283
283
  <circle cx="8" cy="8" r="8" fill="#FFAB01"/>
284
284
  <g clip-path="url(#a)">
@@ -290,27 +290,27 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
290
290
  </clipPath>
291
291
  </defs>
292
292
  </svg>
293
- `;var ne=eo`
293
+ `;var se=eo`
294
294
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
295
295
  <path fill="#BC002D" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
296
296
  <path fill="#fff" d="M8 0C3.589 0 0 3.589 0 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8Zm2.667 7.333v1.334h-2v.666h2v1.334h-2v2H7.333v-2h-2V9.333h2v-.666h-2V7.333h1.28l-2.216-2.77 1.041-.834L8 6.933l2.563-3.204 1.041.834-2.217 2.77h1.28Z"/>
297
297
  </svg>
298
- `;var se=eo`
298
+ `;var le=eo`
299
299
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
300
300
  <path fill="#006847" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
301
301
  <path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
302
302
  </svg>
303
- `;var le=eo`
303
+ `;var de=eo`
304
304
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
305
305
  <path fill="#006847" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
306
306
  <path fill="#fff" d="m5.82 3.59 1.772 2.756h2.613V3.59h1.102v2.756h1.102v1.102h-1.102V8.55h1.102v1.103h-1.102v2.756H10.18L8.408 9.653H5.795v2.756H4.693V9.653H3.59V8.55h1.102V7.448H3.59V6.346h1.102V3.59H5.82Zm4.385 6.82v-.757h-.487l.487.757ZM9.009 8.55h1.196V7.448H8.3l.708 1.102Zm-3.214 0H7.7l-.708-1.102H5.795V8.55Zm0-2.204h.487l-.487-.758v.758Z"/>
307
307
  </svg>
308
- `;var de=eo`
308
+ `;var ce=eo`
309
309
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
310
310
  <circle cx="8" cy="8" r="8" fill="#C8102E"/>
311
311
  <path fill="#fff" d="M3.5 11.5v-7h1.511v3.086h.094L7.677 4.5h1.811L6.836 7.634 9.52 11.5H7.712L5.754 8.622l-.743.889V11.5H3.5ZM10.248 11.5V6.25h1.44v.916h.057c.097-.326.261-.572.492-.738.23-.169.495-.253.795-.253a2.295 2.295 0 0 1 .468.051v1.292a2.655 2.655 0 0 0-.628-.079c-.219 0-.414.047-.586.14-.17.092-.305.22-.405.383a1.088 1.088 0 0 0-.147.568v2.97h-1.486Z"/>
312
312
  </svg>
313
- `;var ce=eo`
313
+ `;var he=eo`
314
314
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
315
315
  <path fill="#012169" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
316
316
  <path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
@@ -320,7 +320,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
320
320
  <path fill="#D73531" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
321
321
  <path fill="#fff" d="M5.386 3h3.129c1.148 0 2.014.255 2.6.764.59.504.885 1.245.885 2.223 0 .987-.295 1.733-.885 2.237-.586.505-1.452.757-2.6.757H6.772v1.112h3.8v1.112h-3.8V13H5.386v-1.795H4v-1.112h1.386V8.981H4V7.87h1.386V3Zm1.386 1.112v3.757h1.743c.645 0 1.143-.163 1.495-.489.353-.326.529-.79.529-1.393 0-.598-.176-1.06-.529-1.386-.352-.326-.85-.49-1.495-.49H6.772Z"/>
322
322
  </svg>
323
- `;var he=eo`
323
+ `;var fe=eo`
324
324
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none">
325
325
  <path fill="#D73531" d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Z"/>
326
326
  <path fill="#F6F6F6" d="M6.324 13.32V7.953l-2.34.558V7.367l2.34-.558V5.657l-2.34.558V5.07l2.34-.557V2.637h1.405v1.535l2.427-.594v1.145l-2.427.594v1.151l2.427-.594V7.02l-2.427.594v4.483a3.172 3.172 0 0 0 1.224-.492c.353-.241.649-.544.887-.91.24-.364.42-.778.544-1.241a5.8 5.8 0 0 0 .184-1.493h1.45c0 .821-.124 1.564-.37 2.228a4.956 4.956 0 0 1-1.036 1.702c-.444.47-.973.834-1.586 1.09a5.176 5.176 0 0 1-2.014.384 5.31 5.31 0 0 1-.688-.043Z"/>
@@ -331,7 +331,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
331
331
  <path fill="#229E45" d="M15.957 8A7.958 7.958 0 1 1 .04 8a7.958 7.958 0 0 1 15.916 0"/>
332
332
  <path fill="#fff" d="M5.5 10.807c.51.509 1.186.829 1.886.951V13h1.228v-1.232c1.22-.21 1.886-1.094 1.886-2.136 0-2.35-3.455-1.996-3.455-3.368 0-.51.449-.842 1.127-.842.585 0 1.222.28 1.629.644l.595-1.091c-.487-.442-1.134-.696-1.782-.768V3H7.386v1.288c-1.003.263-1.688 1.006-1.688 2.038 0 2.298 3.455 2.007 3.455 3.41 0 .5-.417.842-1.085.842-.668 0-1.399-.384-1.837-.78L5.5 10.807Z"/>
333
333
  </svg>
334
- `;var Co=(o)=>{switch(o){case"USD":return st;case"EUR":return re;case"ARS":return Er;case"AUD":return oe;case"BRL":return ie;case"CAD":return ae;case"CNY":return te;case"INR":return ee;case"JPY":return ne;case"MXN":return se;case"NGN":return le;case"NOK":return de;case"NZD":return ce;case"RUB":return ue;case"TRY":return he;default:return st}};var Ki=(o)=>{switch(o){case"USD":return"$";case"EUR":return"€";case"ARS":return"$";case"AUD":return"$";case"BRL":return"R$";case"CAD":return"$";case"CNY":return"¥";case"INR":return"₹";case"JPY":return"¥";case"MXN":return"$";case"NGN":return"₦";case"NOK":return"kr";case"NZD":return"$";case"RUB":return"₽";case"TRY":return"₺";default:return"$"}};var Ri=(o)=>{switch(o){case"USD":return 2;case"EUR":return 2;case"ARS":return 2;case"AUD":return 2;case"BRL":return 2;case"CAD":return 2;case"CNY":return 2;case"INR":return 2;case"JPY":return 0;case"MXN":return 2;case"NGN":return 2;case"NOK":return 2;case"NZD":return 2;case"RUB":return 2;case"TRY":return 2;default:return 2}};var Ui=(o)=>{switch(o){case"USD":return 0;case"EUR":return 1;case"ARS":return 0;case"AUD":return 0;case"BRL":return 0;case"CAD":return 0;case"CNY":return 0;case"INR":return 0;case"JPY":return 0;case"MXN":return 0;case"NGN":return 0;case"NOK":return 1;case"NZD":return 0;case"RUB":return 1;case"TRY":return 0;default:return 0}};class ba extends B{constructor(){super(...arguments);this.baseUrl="https://betorigami.com";this.betId="";this._betDetails=null}static styles=Mr;get _gameName(){return this._betDetails?.gameName||"Loading..."}get _roundId(){return this._betDetails?.id||"Loading..."}get _timestamp(){if(!this._betDetails||!this._betDetails.betActions[0])return"Loading...";return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(this._betDetails.betActions[0].createdAt))}get _currency(){if(!this._betDetails)return $`Loading...`;let{currency:o}=this._betDetails;return $`${o} ${Co(o)}`}get _betAmount(){if(!this._betDetails)return $`Loading...`;let{amount:o,currency:i}=this._betDetails,a=Ki(i),t=Ui(i),r=Ri(i),e=Co(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}get _multiplier(){if(!this._betDetails)return"Loading...";return`${Number(this._betDetails.multiplier).toFixed(2)}x`}get _payout(){if(!this._betDetails)return $`Loading...`;let{payout:o,currency:i}=this._betDetails,a=Ki(i),t=Ui(i),r=Ri(i),e=Co(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}render(){return $`
334
+ `;var Lo=(o)=>{switch(o){case"USD":return st;case"EUR":return ee;case"ARS":return oe;case"AUD":return ie;case"BRL":return ae;case"CAD":return te;case"CNY":return re;case"INR":return ne;case"JPY":return se;case"MXN":return le;case"NGN":return de;case"NOK":return ce;case"NZD":return he;case"RUB":return ue;case"TRY":return fe;default:return st}};var li=(o)=>{switch(o){case"USD":return"$";case"EUR":return"€";case"ARS":return"$";case"AUD":return"$";case"BRL":return"R$";case"CAD":return"$";case"CNY":return"¥";case"INR":return"₹";case"JPY":return"¥";case"MXN":return"$";case"NGN":return"₦";case"NOK":return"kr";case"NZD":return"$";case"RUB":return"₽";case"TRY":return"₺";default:return"$"}};var di=(o)=>{switch(o){case"USD":return 2;case"EUR":return 2;case"ARS":return 2;case"AUD":return 2;case"BRL":return 2;case"CAD":return 2;case"CNY":return 2;case"INR":return 2;case"JPY":return 0;case"MXN":return 2;case"NGN":return 2;case"NOK":return 2;case"NZD":return 2;case"RUB":return 2;case"TRY":return 2;default:return 2}};var ci=(o)=>{switch(o){case"USD":return 0;case"EUR":return 1;case"ARS":return 0;case"AUD":return 0;case"BRL":return 0;case"CAD":return 0;case"CNY":return 0;case"INR":return 0;case"JPY":return 0;case"MXN":return 0;case"NGN":return 0;case"NOK":return 1;case"NZD":return 0;case"RUB":return 1;case"TRY":return 0;default:return 0}};class ba extends B{constructor(){super(...arguments);this.baseUrl="https://betorigami.com";this.betId="";this._betDetails=null}static styles=Er;get _gameName(){return this._betDetails?.gameName||"Loading..."}get _roundId(){return this._betDetails?.id||"Loading..."}get _timestamp(){if(!this._betDetails||!this._betDetails.betActions[0])return"Loading...";return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"}).format(new Date(this._betDetails.betActions[0].createdAt))}get _currency(){if(!this._betDetails)return $`Loading...`;let{currency:o}=this._betDetails;return $`${o} ${Lo(o)}`}get _betAmount(){if(!this._betDetails)return $`Loading...`;let{amount:o,currency:i}=this._betDetails,a=li(i),t=ci(i),r=di(i),e=Lo(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}get _multiplier(){if(!this._betDetails)return"Loading...";return`${Number(this._betDetails.multiplier).toFixed(2)}x`}get _payout(){if(!this._betDetails)return $`Loading...`;let{payout:o,currency:i}=this._betDetails,a=li(i),t=ci(i),r=di(i),e=Lo(i);if(t===0)return $`${i}${a}${Number(o).toFixed(r)} ${e}`;return $`${Number(o).toFixed(r)} ${i}${a} ${e}`}render(){return $`
335
335
  <div class="header-outer">
336
336
  <div class="header-middle">
337
337
  <div class="header-inner">
@@ -410,7 +410,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
410
410
  </div>
411
411
  </div>
412
412
  </div>
413
- `}async connectedCallback(){super.connectedCallback(),await this.fetchBetDetails()}async handleShare(){let o={url:window.location.href};try{if(navigator.share)await navigator.share(o);else await navigator.clipboard.writeText(window.location.href),alert("Link copied to clipboard!")}catch(i){console.error("Error sharing:",i)}}fetchBetDetails=async()=>{if(!this.baseUrl||!this.betId)return;try{let o=await fetch(`${this.baseUrl}/bet/bet-info?betId=${this.betId}`,{headers:{"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch bet details:",o.statusText);return}this._betDetails=await o.json()}catch(o){console.error("Error fetching bet details:",o)}}}d([H({type:String})],ba.prototype,"baseUrl",void 0),d([H({type:String})],ba.prototype,"betId",void 0),d([j()],ba.prototype,"_betDetails",void 0),ba=d([O("origami-bet-details")],ba);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Do=(o)=>(...i)=>({_$litDirective$:o,values:i});class No{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,i,a){this._$Ct=o,this._$AM=i,this._$Ci=a}_$AS(o,i){return this.update(o,i)}update(o,i){return this.render(...i)}}var to=Do(class extends No{constructor(o){if(super(o),o.type!==qo.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter((i)=>o[i]).join(" ")+" "}update(o,[i]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter((t)=>t!=="")));for(let t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}let a=o.element.classList;for(let t of this.st)t in i||(a.remove(t),this.st.delete(t));for(let t in i){let r=!!i[t];r===this.st.has(t)||this.nt?.has(t)||(r?(a.add(t),this.st.add(t)):(a.remove(t),this.st.delete(t)))}return Ko}});var mo=(o)=>o??_;var G=X`
413
+ `}async connectedCallback(){super.connectedCallback(),await this.fetchBetDetails()}async handleShare(){let o={url:window.location.href};try{if(navigator.share)await navigator.share(o);else await navigator.clipboard.writeText(window.location.href),alert("Link copied to clipboard!")}catch(i){console.error("Error sharing:",i)}}fetchBetDetails=async()=>{if(!this.baseUrl||!this.betId)return;try{let o=await fetch(`${this.baseUrl}/bet/bet-info?betId=${this.betId}`,{headers:{"Content-Type":"application/json"}});if(!o.ok){console.error("Failed to fetch bet details:",o.statusText);return}this._betDetails=await o.json()}catch(o){console.error("Error fetching bet details:",o)}}}d([S({type:String})],ba.prototype,"baseUrl",void 0),d([S({type:String})],ba.prototype,"betId",void 0),d([A()],ba.prototype,"_betDetails",void 0),ba=d([O("origami-bet-details")],ba);var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Do=(o)=>(...i)=>({_$litDirective$:o,values:i});class No{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,i,a){this._$Ct=o,this._$AM=i,this._$Ci=a}_$AS(o,i){return this.update(o,i)}update(o,i){return this.render(...i)}}var to=Do(class extends No{constructor(o){if(super(o),o.type!==qo.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter((i)=>o[i]).join(" ")+" "}update(o,[i]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter((t)=>t!=="")));for(let t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}let a=o.element.classList;for(let t of this.st)t in i||(a.remove(t),this.st.delete(t));for(let t in i){let r=!!i[t];r===this.st.has(t)||this.nt?.has(t)||(r?(a.add(t),this.st.add(t)):(a.remove(t),this.st.delete(t)))}return Ko}});var vo=(o)=>o??_;var G=X`
414
414
  :host {
415
415
  all: initial;
416
416
  display: block;
@@ -497,7 +497,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
497
497
  background-color: rgba(218, 255, 1, 0.3);
498
498
  color: inherit;
499
499
  }
500
- `;var Zs={ar:()=>Promise.resolve().then(() => uo(lt(),1)),de:()=>Promise.resolve().then(() => uo(dt(),1)),en:()=>Promise.resolve().then(() => uo(ct(),1)),es:()=>Promise.resolve().then(() => uo(ut(),1)),fi:()=>Promise.resolve().then(() => uo(ht(),1)),fr:()=>Promise.resolve().then(() => uo(ft(),1)),hi:()=>Promise.resolve().then(() => uo(pt(),1)),id:()=>Promise.resolve().then(() => uo(gt(),1)),ja:()=>Promise.resolve().then(() => uo(bt(),1)),ko:()=>Promise.resolve().then(() => uo(wt(),1)),pl:()=>Promise.resolve().then(() => uo(mt(),1)),pt:()=>Promise.resolve().then(() => uo(vt(),1)),ru:()=>Promise.resolve().then(() => uo(kt(),1)),tr:()=>Promise.resolve().then(() => uo(xt(),1)),vi:()=>Promise.resolve().then(() => uo(zt(),1)),zh:()=>Promise.resolve().then(() => uo(yt(),1))};class pe{loadedLanguages=new Set;loadingPromises=new Map;loadedTranslations=new Map;async loadLanguage(o){if(this.loadedLanguages.has(o))return;if(this.loadingPromises.has(o))return this.loadingPromises.get(o);let i=this.loadLanguageModule(o);this.loadingPromises.set(o,i);try{await i,this.loadedLanguages.add(o)}finally{this.loadingPromises.delete(o)}}getTranslationData(o){return this.loadedTranslations.get(o)||null}isLanguageLoaded(o){return this.loadedLanguages.has(o)}getLoadedLanguages(){return Array.from(this.loadedLanguages)}async preloadLanguages(o){let i=o.map((a)=>this.loadLanguage(a).catch(()=>{}));await Promise.all(i)}clearAll(){this.loadedLanguages.clear(),this.loadingPromises.clear(),this.loadedTranslations.clear(),St()}async loadLanguageModule(o){try{let i=await Zs[o]();this.loadedTranslations.set(o,i.default),St()}catch(i){throw i}}}var wa=new pe;wa.loadLanguage("en").catch(()=>{});var be=uo(lt(),1),we=uo(dt(),1),me=uo(ct(),1),ve=uo(ut(),1),ke=uo(ht(),1),xe=uo(ft(),1),ze=uo(pt(),1),ye=uo(gt(),1),Se=uo(bt(),1),He=uo(wt(),1),Ze=uo(mt(),1),Ke=uo(vt(),1),Re=uo(kt(),1),Ue=uo(xt(),1),We=uo(zt(),1),Ve=uo(yt(),1);var _c=ei("language"),$i="en";var Ht={ar:be.default,de:we.default,en:me.default,es:ve.default,fi:ke.default,fr:xe.default,hi:ze.default,id:ye.default,ja:Se.default,ko:He.default,pl:Ze.default,pt:Ke.default,ru:Re.default,tr:Ue.default,vi:We.default,zh:Ve.default};function Ks(o){let i=wa.getTranslationData(o);if(i)return i;return Ht[o]||Ht[$i]}var Dc=ei(Symbol("translation"));class Ie{cache=new Map;maxSize=1000;get(o){return this.cache.get(o)}set(o,i){if(this.cache.size>=this.maxSize)this.cache.clear();this.cache.set(o,i)}clear(){this.cache.clear()}size(){return this.cache.size}}var Zt=new Ie,ge=new Map;function Rs(o){let i=ge.get(o);if(!i)i=o.split("."),ge.set(o,i);return i}function qe(o,i,a){let t=Ks(i);try{let r=Rs(o),e=t;for(let n of r)if(e=e?.[n],e===void 0)break;if(typeof e==="string")return e;if(i!==$i)return qe(o,$i,a);return a||o}catch{return a||o}}function q(o,i=$i,a){let t=a?`${o}:${i}:${a}`:`${o}:${i}`,r=Zt.get(t);if(r!==void 0)return r;let e=qe(o,i,a);return Zt.set(t,e),e}function St(){Zt.clear()}var Je=X`
500
+ `;var Zs={ar:()=>Promise.resolve().then(() => ho(dt(),1)),de:()=>Promise.resolve().then(() => ho(ct(),1)),en:()=>Promise.resolve().then(() => ho(ht(),1)),es:()=>Promise.resolve().then(() => ho(ut(),1)),fi:()=>Promise.resolve().then(() => ho(ft(),1)),fr:()=>Promise.resolve().then(() => ho(pt(),1)),hi:()=>Promise.resolve().then(() => ho(gt(),1)),id:()=>Promise.resolve().then(() => ho(bt(),1)),ja:()=>Promise.resolve().then(() => ho(wt(),1)),ko:()=>Promise.resolve().then(() => ho(vt(),1)),pl:()=>Promise.resolve().then(() => ho(mt(),1)),pt:()=>Promise.resolve().then(() => ho(kt(),1)),ru:()=>Promise.resolve().then(() => ho(xt(),1)),tr:()=>Promise.resolve().then(() => ho(zt(),1)),vi:()=>Promise.resolve().then(() => ho(yt(),1)),zh:()=>Promise.resolve().then(() => ho(Ht(),1))};class pe{loadedLanguages=new Set;loadingPromises=new Map;loadedTranslations=new Map;async loadLanguage(o){if(this.loadedLanguages.has(o))return;if(this.loadingPromises.has(o))return this.loadingPromises.get(o);let i=this.loadLanguageModule(o);this.loadingPromises.set(o,i);try{await i,this.loadedLanguages.add(o)}finally{this.loadingPromises.delete(o)}}getTranslationData(o){return this.loadedTranslations.get(o)||null}isLanguageLoaded(o){return this.loadedLanguages.has(o)}getLoadedLanguages(){return Array.from(this.loadedLanguages)}async preloadLanguages(o){let i=o.map((a)=>this.loadLanguage(a).catch(()=>{}));await Promise.all(i)}clearAll(){this.loadedLanguages.clear(),this.loadingPromises.clear(),this.loadedTranslations.clear(),St()}async loadLanguageModule(o){try{let i=await Zs[o]();this.loadedTranslations.set(o,i.default),St()}catch(i){throw i}}}var wa=new pe;wa.loadLanguage("en").catch(()=>{});var be=ho(dt(),1),we=ho(ct(),1),ve=ho(ht(),1),me=ho(ut(),1),ke=ho(ft(),1),xe=ho(pt(),1),ze=ho(gt(),1),ye=ho(bt(),1),He=ho(wt(),1),Se=ho(vt(),1),Ze=ho(mt(),1),Ke=ho(kt(),1),Re=ho(xt(),1),Ue=ho(zt(),1),We=ho(yt(),1),Ve=ho(Ht(),1);var _c=ei("language"),$i="en";var Zt={ar:be.default,de:we.default,en:ve.default,es:me.default,fi:ke.default,fr:xe.default,hi:ze.default,id:ye.default,ja:He.default,ko:Se.default,pl:Ze.default,pt:Ke.default,ru:Re.default,tr:Ue.default,vi:We.default,zh:Ve.default};function Ks(o){let i=wa.getTranslationData(o);if(i)return i;return Zt[o]||Zt[$i]}var Dc=ei(Symbol("translation"));class Ie{cache=new Map;maxSize=1000;get(o){return this.cache.get(o)}set(o,i){if(this.cache.size>=this.maxSize)this.cache.clear();this.cache.set(o,i)}clear(){this.cache.clear()}size(){return this.cache.size}}var Kt=new Ie,ge=new Map;function Rs(o){let i=ge.get(o);if(!i)i=o.split("."),ge.set(o,i);return i}function qe(o,i,a){let t=Ks(i);try{let r=Rs(o),e=t;for(let n of r)if(e=e?.[n],e===void 0)break;if(typeof e==="string")return e;if(i!==$i)return qe(o,$i,a);return a||o}catch{return a||o}}function q(o,i=$i,a){let t=a?`${o}:${i}:${a}`:`${o}:${i}`,r=Kt.get(t);if(r!==void 0)return r;let e=qe(o,i,a);return Kt.set(t,e),e}function St(){Kt.clear()}var Je=X`
501
501
  :host {
502
502
  display: grid;
503
503
  grid-template-columns: var(--toggle-button-grid-columns, 1fr 1fr);
@@ -573,7 +573,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
573
573
  .button.selected:focus-visible {
574
574
  outline-color: rgba(55, 55, 55, 0.8);
575
575
  }
576
- `;class Kt extends B{constructor(){super(...arguments);this.option1="";this.option2="";this.option1Value="";this.option2Value="";this.value="";this.disabled=!1;this.name="Toggle";this.class="";this.noRightBorderRadius=!1}static styles=[G,Je];handleOptionClick(o){if(this.value!==o)this.value=o,this.gameContext?.soundController?.play("toggle").catch((i)=>console.error(i)),this.emit("toggle-change",{detail:{value:o},bubbles:!1,composed:!1})}render(){let o=this.gameContext?.language||"en",i=this.option1Value||this.option1||"Manual",a=this.option2Value||this.option2||"Auto",t=this.value===i,r=this.value===a,e=this.option1||q("common.manual",o),n=this.option2||q("common.auto",o);return $`
576
+ `;class Rt extends B{constructor(){super(...arguments);this.option1="";this.option2="";this.option1Value="";this.option2Value="";this.value="";this.disabled=!1;this.name="Toggle";this.class="";this.noRightBorderRadius=!1}static styles=[G,Je];handleOptionClick(o){if(this.value!==o)this.value=o,this.gameContext?.soundController?.play("toggle").catch((i)=>console.error(i)),this.emit("toggle-change",{detail:{value:o},bubbles:!1,composed:!1})}render(){let o=this.gameContext?.language||"en",i=this.option1Value||this.option1||"Manual",a=this.option2Value||this.option2||"Auto",t=this.value===i,r=this.value===a,e=this.option1||q("common.manual",o),n=this.option2||q("common.auto",o);return $`
577
577
  <button
578
578
  .variant=${t?"primary":"secondary"}
579
579
  @click=${()=>this.handleOptionClick(i)}
@@ -583,7 +583,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
583
583
  aria-disabled=${this.disabled?"true":"false"}
584
584
  id="option1Button"
585
585
  tabindex="0"
586
- name=${mo(this.name)}
586
+ name=${vo(this.name)}
587
587
  >
588
588
  ${e}
589
589
  </button>
@@ -597,11 +597,11 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
597
597
  aria-disabled=${this.disabled?"true":"false"}
598
598
  id="option2Button"
599
599
  tabindex="0"
600
- name=${mo(this.name)}
600
+ name=${vo(this.name)}
601
601
  >
602
602
  ${n}
603
603
  </button>
604
- `}}d([ao({context:D,subscribe:!0}),H({attribute:!1})],Kt.prototype,"gameContext",void 0),d([H({type:String})],Kt.prototype,"option1",void 0),d([H({type:String})],Kt.prototype,"option2",void 0),d([H({type:String})],Kt.prototype,"option1Value",void 0),d([H({type:String})],Kt.prototype,"option2Value",void 0),d([H({type:String,reflect:!0})],Kt.prototype,"value",void 0),d([H({type:Boolean,reflect:!0})],Kt.prototype,"disabled",void 0),d([H({type:String})],Kt.prototype,"name",void 0),d([H({type:String})],Kt.prototype,"class",void 0),d([H({type:Boolean})],Kt.prototype,"noRightBorderRadius",void 0),Kt=d([O("origami-toggle")],Kt);var{I:Us}=Br;var ma=(o)=>o.strings===void 0,$e=()=>document.createComment(""),Yi=(o,i,a)=>{let t=o._$AA.parentNode,r=i===void 0?o._$AB:i._$AA;if(a===void 0){let e=t.insertBefore($e(),r),n=t.insertBefore($e(),r);a=new Us(e,n,o,o.options)}else{let e=a._$AB.nextSibling,n=a._$AM,s=n!==o;if(s){let l;a._$AQ?.(o),a._$AM=o,a._$AP!==void 0&&(l=o._$AU)!==n._$AU&&a._$AP(l)}if(e!==r||s){let l=a._$AA;for(;l!==e;){let u=l.nextSibling;t.insertBefore(l,r),l=u}}}return a},pi=(o,i,a=o)=>(o._$AI(i,a),o),Ws={},va=(o,i=Ws)=>o._$AH=i,Ye=(o)=>o._$AH,ka=(o)=>{o._$AP?.(!1,!0);let i=o._$AA,a=o._$AB.nextSibling;for(;i!==a;){let t=i.nextSibling;i.remove(),i=t}};var Bi=(o,i)=>{let a=o._$AN;if(a===void 0)return!1;for(let t of a)t._$AO?.(i,!1),Bi(t,i);return!0},xa=(o)=>{let i,a;do{if((i=o._$AM)===void 0)break;a=i._$AN,a.delete(o),o=i}while(a?.size===0)},Ce=(o)=>{for(let i;i=o._$AM;o=i){let a=i._$AN;if(a===void 0)i._$AN=a=new Set;else if(a.has(o))break;a.add(o),qs(i)}};function Vs(o){this._$AN!==void 0?(xa(this),this._$AM=o,Ce(this)):this._$AM=o}function Is(o,i=!1,a=0){let t=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(t))for(let e=a;e<t.length;e++)Bi(t[e],!1),xa(t[e]);else t!=null&&(Bi(t,!1),xa(t));else Bi(this,o)}var qs=(o)=>{o.type==qo.CHILD&&(o._$AP??=Is,o._$AQ??=Vs)};class Rt extends No{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,i,a){super._$AT(o,i,a),Ce(this),this.isConnected=o._$AU}_$AO(o,i=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),i&&(Bi(this,o),xa(this))}setValue(o){if(ma(this._$Ct))this._$Ct._$AI(o,this);else{let i=[...this._$Ct._$AH];i[this._$Ci]=o,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}var Wi=()=>new Le;class Le{}var Ut=new WeakMap,Vi=Do(class extends Rt{render(o){return _}update(o,[i]){let a=i!==this.G;return a&&this.G!==void 0&&this.rt(void 0),(a||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),_}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,a=Ut.get(i);a===void 0&&(a=new WeakMap,Ut.set(i,a)),a.get(this.G)!==void 0&&this.G.call(this.ht,void 0),a.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Ut.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Fe=X`
604
+ `}}d([ao({context:D,subscribe:!0}),S({attribute:!1})],Rt.prototype,"gameContext",void 0),d([S({type:String})],Rt.prototype,"option1",void 0),d([S({type:String})],Rt.prototype,"option2",void 0),d([S({type:String})],Rt.prototype,"option1Value",void 0),d([S({type:String})],Rt.prototype,"option2Value",void 0),d([S({type:String,reflect:!0})],Rt.prototype,"value",void 0),d([S({type:Boolean,reflect:!0})],Rt.prototype,"disabled",void 0),d([S({type:String})],Rt.prototype,"name",void 0),d([S({type:String})],Rt.prototype,"class",void 0),d([S({type:Boolean})],Rt.prototype,"noRightBorderRadius",void 0),Rt=d([O("origami-toggle")],Rt);var{I:Us}=Gr;var va=(o)=>o.strings===void 0,$e=()=>document.createComment(""),Yi=(o,i,a)=>{let t=o._$AA.parentNode,r=i===void 0?o._$AB:i._$AA;if(a===void 0){let e=t.insertBefore($e(),r),n=t.insertBefore($e(),r);a=new Us(e,n,o,o.options)}else{let e=a._$AB.nextSibling,n=a._$AM,s=n!==o;if(s){let l;a._$AQ?.(o),a._$AM=o,a._$AP!==void 0&&(l=o._$AU)!==n._$AU&&a._$AP(l)}if(e!==r||s){let l=a._$AA;for(;l!==e;){let h=l.nextSibling;t.insertBefore(l,r),l=h}}}return a},wi=(o,i,a=o)=>(o._$AI(i,a),o),Ws={},ma=(o,i=Ws)=>o._$AH=i,Ye=(o)=>o._$AH,ka=(o)=>{o._$AP?.(!1,!0);let i=o._$AA,a=o._$AB.nextSibling;for(;i!==a;){let t=i.nextSibling;i.remove(),i=t}};var Bi=(o,i)=>{let a=o._$AN;if(a===void 0)return!1;for(let t of a)t._$AO?.(i,!1),Bi(t,i);return!0},xa=(o)=>{let i,a;do{if((i=o._$AM)===void 0)break;a=i._$AN,a.delete(o),o=i}while(a?.size===0)},Le=(o)=>{for(let i;i=o._$AM;o=i){let a=i._$AN;if(a===void 0)i._$AN=a=new Set;else if(a.has(o))break;a.add(o),qs(i)}};function Vs(o){this._$AN!==void 0?(xa(this),this._$AM=o,Le(this)):this._$AM=o}function Is(o,i=!1,a=0){let t=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(i)if(Array.isArray(t))for(let e=a;e<t.length;e++)Bi(t[e],!1),xa(t[e]);else t!=null&&(Bi(t,!1),xa(t));else Bi(this,o)}var qs=(o)=>{o.type==qo.CHILD&&(o._$AP??=Is,o._$AQ??=Vs)};class Ut extends No{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,i,a){super._$AT(o,i,a),Le(this),this.isConnected=o._$AU}_$AO(o,i=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),i&&(Bi(this,o),xa(this))}setValue(o){if(va(this._$Ct))this._$Ct._$AI(o,this);else{let i=[...this._$Ct._$AH];i[this._$Ci]=o,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}var Wi=()=>new Ce;class Ce{}var Wt=new WeakMap,Vi=Do(class extends Ut{render(o){return _}update(o,[i]){let a=i!==this.G;return a&&this.G!==void 0&&this.rt(void 0),(a||this.lt!==this.ct)&&(this.G=i,this.ht=o.options?.host,this.rt(this.ct=o.element)),_}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let i=this.ht??globalThis,a=Wt.get(i);a===void 0&&(a=new WeakMap,Wt.set(i,a)),a.get(this.G)!==void 0&&this.G.call(this.ht,void 0),a.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Wt.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Fe=X`
605
605
  :host {
606
606
  display: inline-block;
607
607
  position: relative;
@@ -921,7 +921,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
921
921
  </g>
922
922
  </g>
923
923
  </g>
924
- </svg>`;class Wt extends zo{static styles=[Qe];render(){return Js}}Wt=d([O("origami-spinner")],Wt);class Vt extends B{constructor(){super(...arguments);this.variant="primary";this.disabled=!1;this.noPointerEvents=!1;this.ariaLabel=null;this.ariaDescribedby=null;this.type="button";this.isLoading=!1;this.fullWidth=!1;this.hotkeyActive=!1}static styles=[G,Fe];static shadowRootOptions={...zo.shadowRootOptions,delegatesFocus:!0};_handleClick(o){if(this.hotkey===" "&&this.gameData?.hapticController)this.gameData.hapticController.click();this.emit("button-click",{detail:{originalEvent:o},composed:!1,bubbles:!1})}triggerActiveState(){this.hotkeyActive=!0,setTimeout(()=>{this.hotkeyActive=!1},150)}render(){let o=this.variant==="icon"||this.variant==="icon-secondary",i=this.disabled||this.isLoading,a={button:!0,[this.variant]:!0,"full-width":this.fullWidth,loading:this.isLoading,"hotkey-active":this.hotkeyActive},t=o?$`<slot name="icon" aria-hidden="true"></slot>`:$`<slot></slot>`,r=this.hotkey&&this.gameData?.hotkeysOpenEnabled&&!o;return $`
924
+ </svg>`;class Vt extends zo{static styles=[Qe];render(){return Js}}Vt=d([O("origami-spinner")],Vt);class It extends B{constructor(){super(...arguments);this.variant="primary";this.disabled=!1;this.noPointerEvents=!1;this.ariaLabel=null;this.ariaDescribedby=null;this.type="button";this.isLoading=!1;this.fullWidth=!1;this.hotkeyActive=!1}static styles=[G,Fe];static shadowRootOptions={...zo.shadowRootOptions,delegatesFocus:!0};_handleClick(o){if(this.hotkey===" "&&this.gameData?.hapticController)this.gameData.hapticController.click();this.emit("button-click",{detail:{originalEvent:o},composed:!1,bubbles:!1})}triggerActiveState(){this.hotkeyActive=!0,setTimeout(()=>{this.hotkeyActive=!1},150)}render(){let o=this.variant==="icon"||this.variant==="icon-secondary",i=this.disabled||this.isLoading,a={button:!0,[this.variant]:!0,"full-width":this.fullWidth,loading:this.isLoading,"hotkey-active":this.hotkeyActive},t=o?$`<slot name="icon" aria-hidden="true"></slot>`:$`<slot></slot>`,r=this.hotkey&&this.gameData?.hotkeysOpenEnabled&&!o;return $`
925
925
  <button
926
926
  class=${to(a)}
927
927
  @click=${this._handleClick}
@@ -945,7 +945,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
945
945
  <span class="visually-hidden">${q("common.loading",this.gameData?.language||"en")}</span>
946
946
  </span>
947
947
  </button>
948
- `}}d([ao({context:D,subscribe:!0})],Vt.prototype,"gameData",void 0),d([H({type:String,reflect:!0})],Vt.prototype,"variant",void 0),d([H({type:Boolean,reflect:!0})],Vt.prototype,"disabled",void 0),d([H({type:Boolean})],Vt.prototype,"noPointerEvents",void 0),d([H({type:String,attribute:"aria-label"})],Vt.prototype,"ariaLabel",void 0),d([H({type:String,attribute:"aria-describedby"})],Vt.prototype,"ariaDescribedby",void 0),d([H({type:String})],Vt.prototype,"type",void 0),d([H({type:Boolean,reflect:!0})],Vt.prototype,"isLoading",void 0),d([H({type:Boolean,reflect:!0})],Vt.prototype,"fullWidth",void 0),d([H({type:String})],Vt.prototype,"hotkey",void 0),d([H({type:Boolean,reflect:!0})],Vt.prototype,"hotkeyActive",void 0),Vt=d([O("origami-button")],Vt);var Pe=X`
948
+ `}}d([ao({context:D,subscribe:!0})],It.prototype,"gameData",void 0),d([S({type:String,reflect:!0})],It.prototype,"variant",void 0),d([S({type:Boolean,reflect:!0})],It.prototype,"disabled",void 0),d([S({type:Boolean})],It.prototype,"noPointerEvents",void 0),d([S({type:String,attribute:"aria-label"})],It.prototype,"ariaLabel",void 0),d([S({type:String,attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",void 0),d([S({type:String})],It.prototype,"type",void 0),d([S({type:Boolean,reflect:!0})],It.prototype,"isLoading",void 0),d([S({type:Boolean,reflect:!0})],It.prototype,"fullWidth",void 0),d([S({type:String})],It.prototype,"hotkey",void 0),d([S({type:Boolean,reflect:!0})],It.prototype,"hotkeyActive",void 0),It=d([O("origami-button")],It);var je=X`
949
949
  :host {
950
950
  display: inline-flex;
951
951
  position: relative;
@@ -1001,7 +1001,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1001
1001
  ::slotted(origami-button:focus-within) {
1002
1002
  z-index: 1;
1003
1003
  }
1004
- `;class It extends B{constructor(){super(...arguments);this.position="right"}static styles=[G,Pe];render(){return $`<slot></slot>`}}d([H({type:String,reflect:!0})],It.prototype,"position",void 0),It=d([O("origami-button-group")],It);var Ae=Do(class extends No{constructor(o){if(super(o),o.type!==qo.PROPERTY&&o.type!==qo.ATTRIBUTE&&o.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!ma(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===Ko||i===_)return i;let{element:a,name:t}=o;if(o.type===qo.PROPERTY){if(i===a[t])return Ko}else if(o.type===qo.BOOLEAN_ATTRIBUTE){if(!!i===a.hasAttribute(t))return Ko}else if(o.type===qo.ATTRIBUTE&&a.getAttribute(t)===i+"")return Ko;return va(o),i}});var je=X`
1004
+ `;class qt extends B{constructor(){super(...arguments);this.position="right"}static styles=[G,je];render(){return $`<slot></slot>`}}d([S({type:String,reflect:!0})],qt.prototype,"position",void 0),qt=d([O("origami-button-group")],qt);var Pe=Do(class extends No{constructor(o){if(super(o),o.type!==qo.PROPERTY&&o.type!==qo.ATTRIBUTE&&o.type!==qo.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!va(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[i]){if(i===Ko||i===_)return i;let{element:a,name:t}=o;if(o.type===qo.PROPERTY){if(i===a[t])return Ko}else if(o.type===qo.BOOLEAN_ATTRIBUTE){if(!!i===a.hasAttribute(t))return Ko}else if(o.type===qo.ATTRIBUTE&&a.getAttribute(t)===i+"")return Ko;return ma(o),i}});var Ae=X`
1005
1005
  :host {
1006
1006
  --input-text-color: white;
1007
1007
  --input-background-color: #1a1a1a;
@@ -1306,7 +1306,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1306
1306
  ::slotted(origami-button-group) {
1307
1307
  height: 100%;
1308
1308
  }
1309
- `;class qt extends B{constructor(){super(...arguments);this.value="";this.label="";this.placeholder="";this.type="text";this.disabled=!1;this.rightText=null;this.min=null;this.max=null;this.step=null;this.addonButtonsPosition="right";this.name=null;this.autocomplete=null;this.required=!1;this.readonly=!1;this.pattern=null;this.validateOnInput=!1;this.tooltipFullWidth=!1;this.validationPattern=null;this.validationMessage=null;this.inputMode="text";this.hideRightLabel=!1;this.clickable=!1;this.forceActiveBorder=!1;this.keepLabelEnabled=!1;this.handleBeforeInput=null;this.tooltipOffset=4;this.errorMessage=null;this._isIconRotating=!1;this.isHovering=!1;this._hasRightIcon=!1;this.errorTooltipMessage="";this._iconRotationState=!1}static styles=[G,je];inputRef=Wi();inputId=`input-${Math.random().toString(36).substring(2,11)}`;errorId=`${this.inputId}-error`;handleSlotChange(){let o=this.shadowRoot?.querySelector('slot[name="right-icon"]');if(o){let i=o.assignedNodes({flatten:!0}).length>0;requestAnimationFrame(()=>{this._hasRightIcon=i})}}firstUpdated(){this.handleSlotChange()}handleMouseEnter(){this.isHovering=!0}handleMouseLeave(){this.isHovering=!1}handleInput(o){let i=o.target,a=i.value;this.emit("input-change",{detail:{value:a,target:i}})}handlePaste(o){if(this.type!=="number")return;let i=o.clipboardData;if(!i)return;let a=i.getData("text");if(a&&/[eE]/.test(a)){o.preventDefault();return}}handleClick(o){if(this.clickable){if(o.preventDefault(),o.stopPropagation(),window.getSelection()?.removeAllRanges(),this.emit("input-click"),this._hasRightIcon)this._iconRotationState=!this._iconRotationState,this._isIconRotating=!0}}handleAnimationEnd(){requestAnimationFrame(()=>{this._isIconRotating=!1})}handleFocus(){if(!this.readonly&&!this.disabled)this.inputRef.value?.select();this.emit("input-focus")}handleBlur(){this.emit("input-blur",{detail:{value:this.value}})}render(){let o=!this.hideRightLabel&&this.type==="number"?`${Number(this.value||0).toFixed(4)} ${this.rightText}`:void 0,i={"clickable-wrapper":this.clickable,"disable-user-select":this.readonly||this.disabled},a={"input-field":!0,error:!!this.errorMessage,"clickable-input":this.clickable,active:this.forceActiveBorder},t={"input-inner":!0,"has-right-icon":this._hasRightIcon},r={"input-label":!0,disabled:this.disabled&&!this.keepLabelEnabled};return $`
1309
+ `;class Jt extends B{constructor(){super(...arguments);this.value="";this.label="";this.placeholder="";this.type="text";this.disabled=!1;this.rightText=null;this.min=null;this.max=null;this.step=null;this.addonButtonsPosition="right";this.name=null;this.autocomplete=null;this.required=!1;this.readonly=!1;this.pattern=null;this.validateOnInput=!1;this.tooltipFullWidth=!1;this.validationPattern=null;this.validationMessage=null;this.inputMode="text";this.hideRightLabel=!1;this.clickable=!1;this.forceActiveBorder=!1;this.keepLabelEnabled=!1;this.handleBeforeInput=null;this.tooltipOffset=4;this.errorMessage=null;this._isIconRotating=!1;this.isHovering=!1;this._hasRightIcon=!1;this.errorTooltipMessage="";this._iconRotationState=!1}static styles=[G,Ae];inputRef=Wi();inputId=`input-${Math.random().toString(36).substring(2,11)}`;errorId=`${this.inputId}-error`;handleSlotChange(){let o=this.shadowRoot?.querySelector('slot[name="right-icon"]');if(o){let i=o.assignedNodes({flatten:!0}).length>0;requestAnimationFrame(()=>{this._hasRightIcon=i})}}firstUpdated(){this.handleSlotChange()}handleMouseEnter(){this.isHovering=!0}handleMouseLeave(){this.isHovering=!1}handleInput(o){let i=o.target,a=i.value;this.emit("input-change",{detail:{value:a,target:i}})}handlePaste(o){if(this.type!=="number")return;let i=o.clipboardData;if(!i)return;let a=i.getData("text");if(a&&/[eE]/.test(a)){o.preventDefault();return}}handleClick(o){if(this.clickable){if(o.preventDefault(),o.stopPropagation(),window.getSelection()?.removeAllRanges(),this.emit("input-click"),this._hasRightIcon)this._iconRotationState=!this._iconRotationState,this._isIconRotating=!0}}handleAnimationEnd(){requestAnimationFrame(()=>{this._isIconRotating=!1})}handleFocus(){if(!this.readonly&&!this.disabled)this.inputRef.value?.select();this.emit("input-focus")}handleBlur(){this.emit("input-blur",{detail:{value:this.value}})}render(){let o=!this.hideRightLabel&&this.type==="number"?`${Number(this.value||0).toFixed(4)} ${this.rightText}`:void 0,i={"clickable-wrapper":this.clickable,"disable-user-select":this.readonly||this.disabled},a={"input-field":!0,error:!!this.errorMessage,"clickable-input":this.clickable,active:this.forceActiveBorder},t={"input-inner":!0,"has-right-icon":this._hasRightIcon},r={"input-label":!0,disabled:this.disabled&&!this.keepLabelEnabled};return $`
1310
1310
  <div
1311
1311
  class=${to(i)}
1312
1312
  @mouseenter=${this.handleMouseEnter}
@@ -1344,7 +1344,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1344
1344
  ${Vi(this.inputRef)}
1345
1345
  id=${this.inputId}
1346
1346
  type=${this.type}
1347
- .value=${Ae(this.value)}
1347
+ .value=${Pe(this.value)}
1348
1348
  @input=${this.handleInput}
1349
1349
  @paste=${this.handlePaste}
1350
1350
  @beforeinput=${this.handleBeforeInput}
@@ -1352,21 +1352,21 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1352
1352
  @focus=${this.handleFocus}
1353
1353
  @focusout=${this.handleBlur}
1354
1354
  @click=${this.clickable?(e)=>{this.handleClick(e)}:void 0}
1355
- placeholder=${mo(this.placeholder||void 0)}
1355
+ placeholder=${vo(this.placeholder||void 0)}
1356
1356
  class=${to(a)}
1357
1357
  ?disabled=${this.disabled}
1358
1358
  ?required=${this.required}
1359
1359
  ?readonly=${this.readonly}
1360
- tabindex=${mo(this.readonly||this.disabled?-1:void 0)}
1361
- min=${mo(this.min!==null?this.min:void 0)}
1362
- max=${mo(this.max!==null?this.max:void 0)}
1363
- step=${mo(this.step||void 0)}
1364
- name=${mo(this.name||void 0)}
1365
- pattern=${mo(this.pattern||void 0)}
1360
+ tabindex=${vo(this.readonly||this.disabled?-1:void 0)}
1361
+ min=${vo(this.min!==null?this.min:void 0)}
1362
+ max=${vo(this.max!==null?this.max:void 0)}
1363
+ step=${vo(this.step||void 0)}
1364
+ name=${vo(this.name||void 0)}
1365
+ pattern=${vo(this.pattern||void 0)}
1366
1366
  aria-invalid=${this.errorMessage?"true":"false"}
1367
- aria-describedby=${mo(this.errorMessage?this.errorId:void 0)}
1368
- aria-labelledby=${mo(this.label?`${this.inputId}-label`:void 0)}
1369
- autocomplete=${mo(this.autocomplete||void 0)}
1367
+ aria-describedby=${vo(this.errorMessage?this.errorId:void 0)}
1368
+ aria-labelledby=${vo(this.label?`${this.inputId}-label`:void 0)}
1369
+ autocomplete=${vo(this.autocomplete||void 0)}
1370
1370
  />
1371
1371
  <div
1372
1372
  class="input-right-icon ${this._isIconRotating?this._iconRotationState?"rotating-forward":"rotating-backward":""}"
@@ -1381,7 +1381,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1381
1381
  </div>
1382
1382
  ${_}
1383
1383
  </div>
1384
- `}get rightIcon(){return this._hasRightIcon}get leftIcon(){return!!this.querySelector('[slot="left-icon"]')}get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}}d([H({type:String})],qt.prototype,"value",void 0),d([H({type:String})],qt.prototype,"label",void 0),d([H({type:String})],qt.prototype,"placeholder",void 0),d([H({type:String,reflect:!0})],qt.prototype,"type",void 0),d([H({type:Boolean,reflect:!0})],qt.prototype,"disabled",void 0),d([H({type:String})],qt.prototype,"rightText",void 0),d([H({type:Number})],qt.prototype,"min",void 0),d([H({type:Number})],qt.prototype,"max",void 0),d([H({type:Number})],qt.prototype,"step",void 0),d([H({type:String})],qt.prototype,"addonButtonsPosition",void 0),d([H({type:String})],qt.prototype,"name",void 0),d([H({type:String})],qt.prototype,"autocomplete",void 0),d([H({type:Boolean,reflect:!0})],qt.prototype,"required",void 0),d([H({type:Boolean,reflect:!0})],qt.prototype,"readonly",void 0),d([H({type:String})],qt.prototype,"pattern",void 0),d([H({type:Boolean})],qt.prototype,"validateOnInput",void 0),d([H({type:Boolean})],qt.prototype,"tooltipFullWidth",void 0),d([H({type:String})],qt.prototype,"validationPattern",void 0),d([H({type:String})],qt.prototype,"validationMessage",void 0),d([H({type:String})],qt.prototype,"inputMode",void 0),d([H({type:Boolean})],qt.prototype,"hideRightLabel",void 0),d([H({type:Boolean})],qt.prototype,"clickable",void 0),d([H({type:Boolean,reflect:!0})],qt.prototype,"forceActiveBorder",void 0),d([H({type:Boolean})],qt.prototype,"keepLabelEnabled",void 0),d([H({type:Function,attribute:!1})],qt.prototype,"handleBeforeInput",void 0),d([H({type:Number})],qt.prototype,"tooltipOffset",void 0),d([j()],qt.prototype,"errorMessage",void 0),d([j()],qt.prototype,"_isIconRotating",void 0),d([j()],qt.prototype,"isHovering",void 0),d([j()],qt.prototype,"_hasRightIcon",void 0),d([H({type:String})],qt.prototype,"errorTooltipMessage",void 0),d([j()],qt.prototype,"_iconRotationState",void 0),qt=d([O("origami-input")],qt);var _e=X`
1384
+ `}get rightIcon(){return this._hasRightIcon}get leftIcon(){return!!this.querySelector('[slot="left-icon"]')}get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}}d([S({type:String})],Jt.prototype,"value",void 0),d([S({type:String})],Jt.prototype,"label",void 0),d([S({type:String})],Jt.prototype,"placeholder",void 0),d([S({type:String,reflect:!0})],Jt.prototype,"type",void 0),d([S({type:Boolean,reflect:!0})],Jt.prototype,"disabled",void 0),d([S({type:String})],Jt.prototype,"rightText",void 0),d([S({type:Number})],Jt.prototype,"min",void 0),d([S({type:Number})],Jt.prototype,"max",void 0),d([S({type:Number})],Jt.prototype,"step",void 0),d([S({type:String})],Jt.prototype,"addonButtonsPosition",void 0),d([S({type:String})],Jt.prototype,"name",void 0),d([S({type:String})],Jt.prototype,"autocomplete",void 0),d([S({type:Boolean,reflect:!0})],Jt.prototype,"required",void 0),d([S({type:Boolean,reflect:!0})],Jt.prototype,"readonly",void 0),d([S({type:String})],Jt.prototype,"pattern",void 0),d([S({type:Boolean})],Jt.prototype,"validateOnInput",void 0),d([S({type:Boolean})],Jt.prototype,"tooltipFullWidth",void 0),d([S({type:String})],Jt.prototype,"validationPattern",void 0),d([S({type:String})],Jt.prototype,"validationMessage",void 0),d([S({type:String})],Jt.prototype,"inputMode",void 0),d([S({type:Boolean})],Jt.prototype,"hideRightLabel",void 0),d([S({type:Boolean})],Jt.prototype,"clickable",void 0),d([S({type:Boolean,reflect:!0})],Jt.prototype,"forceActiveBorder",void 0),d([S({type:Boolean})],Jt.prototype,"keepLabelEnabled",void 0),d([S({type:Function,attribute:!1})],Jt.prototype,"handleBeforeInput",void 0),d([S({type:Number})],Jt.prototype,"tooltipOffset",void 0),d([A()],Jt.prototype,"errorMessage",void 0),d([A()],Jt.prototype,"_isIconRotating",void 0),d([A()],Jt.prototype,"isHovering",void 0),d([A()],Jt.prototype,"_hasRightIcon",void 0),d([S({type:String})],Jt.prototype,"errorTooltipMessage",void 0),d([A()],Jt.prototype,"_iconRotationState",void 0),Jt=d([O("origami-input")],Jt);var _e=X`
1385
1385
  :host {
1386
1386
  display: block;
1387
1387
 
@@ -1562,7 +1562,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1562
1562
  .select-input option:disabled {
1563
1563
  color: #b3b3b3;
1564
1564
  }
1565
- `;class Jt extends B{constructor(){super(...arguments);this.dir="ltr";this.label="";this.options=[];this.placeholder="";this.helperText=null;this.disabled=!1;this.required=!1;this.defaultValue=null;this.id="";this.name="";this.error="";this.size=null;this.autoFocus=!1;this._errorMessage=null;this.value=""}static styles=[G,_e];_generatedId=`select-${Math.random().toString(36).substring(2,11)}`;get _effectiveId(){return this.id||this._generatedId}getGroupedOptions(){let o=this.options.reduce((a,t)=>{if(t.group){if(!a[t.group])a[t.group]=[];a[t.group].push(t)}return a},{}),i=this.options.filter((a)=>!a.group);return{groupedOptions:o,hasGroups:Object.keys(o).length>0,ungroupedOptions:i}}handleChange(o){let a=o.target.value;this.emit("select-change",{detail:{value:a,originalEvent:o},bubbles:!1,composed:!1}),this.validate()}validate(){if(this.required&&!this.value)return this._errorMessage=this._errorMessage||q("common.thisFieldIsRequired",this.gameData?.language||"en"),!1;return this._errorMessage=null,!0}generateOptionElements(){let{groupedOptions:o,hasGroups:i,ungroupedOptions:a}=this.getGroupedOptions();return $`
1565
+ `;class $t extends B{constructor(){super(...arguments);this.dir="ltr";this.label="";this.options=[];this.placeholder="";this.helperText=null;this.disabled=!1;this.required=!1;this.defaultValue=null;this.id="";this.name="";this.error="";this.size=null;this.autoFocus=!1;this._errorMessage=null;this.value=""}static styles=[G,_e];_generatedId=`select-${Math.random().toString(36).substring(2,11)}`;get _effectiveId(){return this.id||this._generatedId}getGroupedOptions(){let o=this.options.reduce((a,t)=>{if(t.group){if(!a[t.group])a[t.group]=[];a[t.group].push(t)}return a},{}),i=this.options.filter((a)=>!a.group);return{groupedOptions:o,hasGroups:Object.keys(o).length>0,ungroupedOptions:i}}handleChange(o){let a=o.target.value;this.emit("select-change",{detail:{value:a,originalEvent:o},bubbles:!1,composed:!1}),this.validate()}validate(){if(this.required&&!this.value)return this._errorMessage=this._errorMessage||q("common.thisFieldIsRequired",this.gameData?.language||"en"),!1;return this._errorMessage=null,!0}generateOptionElements(){let{groupedOptions:o,hasGroups:i,ungroupedOptions:a}=this.getGroupedOptions();return $`
1566
1566
  ${this.placeholder?$`
1567
1567
  <option value="" ?disabled=${!this.value} ?selected=${!this.value}>
1568
1568
  ${this.placeholder}
@@ -1579,7 +1579,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1579
1579
  value=${o.value}
1580
1580
  ?disabled=${o.disabled}
1581
1581
  ?selected=${this.value===o.value}
1582
- title=${mo(o.label)}
1582
+ title=${vo(o.label)}
1583
1583
  >
1584
1584
  ${o.label}
1585
1585
  </option>
@@ -1597,7 +1597,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1597
1597
  <div class="select-inner">
1598
1598
  <select
1599
1599
  id=${this._effectiveId}
1600
- name=${mo(this.name||void 0)}
1600
+ name=${vo(this.name||void 0)}
1601
1601
  .value=${this.value}
1602
1602
  @change=${this.handleChange}
1603
1603
  @blur=${this.validate}
@@ -1605,11 +1605,11 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1605
1605
  ?disabled=${this.disabled}
1606
1606
  ?required=${this.required}
1607
1607
  role="combobox"
1608
- size=${mo(this.size??void 0)}
1608
+ size=${vo(this.size??void 0)}
1609
1609
  ?autofocus=${this.autoFocus}
1610
1610
  aria-required=${this.required?"true":"false"}
1611
1611
  aria-invalid=${o?"true":"false"}
1612
- aria-describedby=${mo(e||void 0)}
1612
+ aria-describedby=${vo(e||void 0)}
1613
1613
  >
1614
1614
  ${this.generateOptionElements()}
1615
1615
  </select>
@@ -1637,7 +1637,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1637
1637
  `:_}
1638
1638
  ${this.helperText?$` <div id=${a} class="select-helper">${this.helperText}</div> `:_}
1639
1639
  </div>
1640
- `}}d([ao({context:D,subscribe:!0}),H({attribute:!1})],Jt.prototype,"gameData",void 0),d([H({type:String,reflect:!0})],Jt.prototype,"dir",void 0),d([H({type:String})],Jt.prototype,"label",void 0),d([H({type:Array})],Jt.prototype,"options",void 0),d([H({type:String})],Jt.prototype,"placeholder",void 0),d([H({type:String})],Jt.prototype,"helperText",void 0),d([H({type:Boolean,reflect:!0})],Jt.prototype,"disabled",void 0),d([H({type:Boolean,reflect:!0})],Jt.prototype,"required",void 0),d([H({type:String})],Jt.prototype,"defaultValue",void 0),d([H({type:String})],Jt.prototype,"id",void 0),d([H({type:String})],Jt.prototype,"name",void 0),d([H({type:String})],Jt.prototype,"error",void 0),d([H({type:Number})],Jt.prototype,"size",void 0),d([H({type:Boolean})],Jt.prototype,"autoFocus",void 0),d([j()],Jt.prototype,"_errorMessage",void 0),d([H({type:String})],Jt.prototype,"value",void 0),Jt=d([O("origami-select")],Jt);var Oe="important",$s=" !"+Oe,Vo=Do(class extends No{constructor(o){if(super(o),o.type!==qo.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((i,a)=>{let t=o[a];return t==null?i:i+`${a=a.includes("-")?a:a.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${t};`},"")}update(o,[i]){let{style:a}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let t of this.ft)i[t]==null&&(this.ft.delete(t),t.includes("-")?a.removeProperty(t):a[t]=null);for(let t in i){let r=i[t];if(r!=null){this.ft.add(t);let e=typeof r=="string"&&r.endsWith($s);t.includes("-")||e?a.setProperty(t,e?r.slice(0,-11):r,e?Oe:""):a[t]=r}}return Ko}});function vo(o,i){let a={waitUntilFirstUpdate:!1,...i};return(t,r)=>{let{update:e}=t,n=Array.isArray(o)?o:[o];t.update=function(s){n.forEach((l)=>{let u=l;if(s.has(u)){let g=s.get(u),S=this[u];if(g!==S){if(!a.waitUntilFirstUpdate||this.hasUpdated)this[r](g,S)}}}),e.call(this,s)}}}var Te=X`
1640
+ `}}d([ao({context:D,subscribe:!0}),S({attribute:!1})],$t.prototype,"gameData",void 0),d([S({type:String,reflect:!0})],$t.prototype,"dir",void 0),d([S({type:String})],$t.prototype,"label",void 0),d([S({type:Array})],$t.prototype,"options",void 0),d([S({type:String})],$t.prototype,"placeholder",void 0),d([S({type:String})],$t.prototype,"helperText",void 0),d([S({type:Boolean,reflect:!0})],$t.prototype,"disabled",void 0),d([S({type:Boolean,reflect:!0})],$t.prototype,"required",void 0),d([S({type:String})],$t.prototype,"defaultValue",void 0),d([S({type:String})],$t.prototype,"id",void 0),d([S({type:String})],$t.prototype,"name",void 0),d([S({type:String})],$t.prototype,"error",void 0),d([S({type:Number})],$t.prototype,"size",void 0),d([S({type:Boolean})],$t.prototype,"autoFocus",void 0),d([A()],$t.prototype,"_errorMessage",void 0),d([S({type:String})],$t.prototype,"value",void 0),$t=d([O("origami-select")],$t);var Oe="important",$s=" !"+Oe,Vo=Do(class extends No{constructor(o){if(super(o),o.type!==qo.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((i,a)=>{let t=o[a];return t==null?i:i+`${a=a.includes("-")?a:a.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${t};`},"")}update(o,[i]){let{style:a}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(i)),this.render(i);for(let t of this.ft)i[t]==null&&(this.ft.delete(t),t.includes("-")?a.removeProperty(t):a[t]=null);for(let t in i){let r=i[t];if(r!=null){this.ft.add(t);let e=typeof r=="string"&&r.endsWith($s);t.includes("-")||e?a.setProperty(t,e?r.slice(0,-11):r,e?Oe:""):a[t]=r}}return Ko}});function mo(o,i){let a={waitUntilFirstUpdate:!1,...i};return(t,r)=>{let{update:e}=t,n=Array.isArray(o)?o:[o];t.update=function(s){n.forEach((l)=>{let h=l;if(s.has(h)){let g=s.get(h),H=this[h];if(g!==H){if(!a.waitUntilFirstUpdate||this.hasUpdated)this[r](g,H)}}}),e.call(this,s)}}}var Te=X`
1641
1641
  :host {
1642
1642
  position: relative;
1643
1643
  width: 100%;
@@ -1863,7 +1863,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1863
1863
  .tooltip[data-position="right-end"] .tooltip-arrow {
1864
1864
  bottom: var(--tooltip-arrow-size);
1865
1865
  }
1866
- `;var Ys={top:"bottom","top-start":"bottom-start","top-end":"bottom-end",bottom:"top","bottom-start":"top-start","bottom-end":"top-end",left:"right","left-start":"right-start","left-end":"right-end",right:"left","right-start":"left-start","right-end":"left-end"};class za extends zo{constructor(){super(...arguments);this.content="";this.position="top";this.trigger=["hover","focus"];this.arrow=!0;this.open=!1;this.disabled=!1;this.offset=4;this.theme="light";this.edgePadding=12;this.delay=0;this.hideDelay=0;this.fullWidth=!1;this.boundarySelector=".game-layout-main, .game-layout-container"}static styles=[G,Te];tooltipRef=Wi();triggerRef=Wi();static nextId=0;tooltipId=`tooltip-${++za.nextId}`;showTimeout=null;hideTimeout=null;scrollTimeout=null;clickOutsideHandler=null;keydownHandler=null;scrollHandler=null;resizeHandler=null;debounceTime=50;disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),this.clearTimeouts()}onOpenChange(){if(this.open)this.show();else this.hide()}onDisabledChange(){if(this.disabled)this.hide()}onPositionChange(){requestAnimationFrame(()=>this.updatePosition())}onBoundaryChange(){requestAnimationFrame(()=>this.updatePosition())}addEventListeners(){if(!this.keydownHandler)this.keydownHandler=this.handleKeyDown,document.addEventListener("keydown",this.keydownHandler);if(this.hasTrigger("click")&&!this.clickOutsideHandler)this.clickOutsideHandler=this.handleClickOutside,document.addEventListener("click",this.clickOutsideHandler,{capture:!0});if(!this.scrollHandler)this.scrollHandler=this.handleScroll,window.addEventListener("scroll",this.scrollHandler,{passive:!0});if(!this.resizeHandler)this.resizeHandler=this.handleResize,window.addEventListener("resize",this.resizeHandler,{passive:!0})}removeEventListeners(){if(this.keydownHandler)document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null;if(this.clickOutsideHandler)document.removeEventListener("click",this.clickOutsideHandler,{capture:!0}),this.clickOutsideHandler=null;if(this.scrollHandler)window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null;if(this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null}hasTrigger(o){return(Array.isArray(this.trigger)?this.trigger:[this.trigger]).includes(o)}handleScroll=()=>{if(this.scrollTimeout!==null)window.clearTimeout(this.scrollTimeout);this.scrollTimeout=window.setTimeout(()=>{if(this.open)this.updatePosition();this.scrollTimeout=null},this.debounceTime)};handleResize=()=>{if(this.scrollTimeout!==null)window.clearTimeout(this.scrollTimeout);this.scrollTimeout=window.setTimeout(()=>{if(this.open)this.updatePosition();this.scrollTimeout=null},this.debounceTime)};clearTimeouts(){let o=["showTimeout","hideTimeout","scrollTimeout"];for(let i of o){let a=this[i];if(a!==null)window.clearTimeout(a);this[i]=null}}show(){if(this.disabled||this.open)return;if(this.clearTimeouts(),this.delay>0)this.showTimeout=window.setTimeout(()=>{this.showTooltip()},this.delay);else this.showTooltip()}hide(){if(this.disabled||!this.open)return;if(this.clearTimeouts(),this.hideDelay>0)this.hideTimeout=window.setTimeout(()=>{this.hideTooltip()},this.hideDelay);else this.hideTooltip()}showTooltip(){if(this.tooltipRef.value&&!this.disabled)this.open=!0,this.updatePosition(),this.addEventListeners()}hideTooltip(){if(this.tooltipRef.value)this.open=!1,this.removeEventListeners(),this.clearTimeouts()}updatePosition(){if(!this.tooltipRef.value||!this.triggerRef.value||!this.open)return;let o=this.tooltipRef.value,i=this.triggerRef.value,a=this.triggerSlot.assignedElements()[0]||i,t=this.position,r=this.offset,e=a.getBoundingClientRect(),n=o.getBoundingClientRect(),s=(p)=>{if(!p)return null;if(p instanceof ShadowRoot)return p.host;return p.parentNode},g=((()=>{let p=(this.boundarySelector||"").split(",").map((R)=>R.trim()).filter(Boolean),k=this;while(k){if(k instanceof HTMLElement){if(p.length>0&&p.some((R)=>{try{return k.matches(R)}catch{return!1}}))return k}k=s(k)}return null})()??document.documentElement).getBoundingClientRect(),S=e.top-g.top,f=g.bottom-e.bottom,y=e.left-g.left,z=g.right-e.right,m=t,U=0,b=(p)=>{if(p.startsWith("top"))return S>=n.height+r+6;else if(p.startsWith("bottom"))return f>=n.height+r+6;return!0},h=()=>{let p=e.left+e.width/2,k=n.width/2,R=p-k,V=0,C=g.left+this.edgePadding,w=g.right-this.edgePadding;if(R<C)V=C-R,R=C;let Z=R+n.width;if(Z>w)V=w-Z;return V};if((t.startsWith("top")||t.startsWith("bottom"))&&b(t)){let p=h();if(p!==0){U=-p;let k=n.width/2-12;U=Math.max(-k,Math.min(k,U))}m=t}else{let p=(k)=>{switch(k){case"top":case"top-start":case"top-end":return S<n.height+r+6;case"bottom":case"bottom-start":case"bottom-end":return f<n.height+r+6;case"left":case"left-start":case"left-end":return y<n.width+r+6;case"right":case"right-start":case"right-end":return z<n.width+r+6;default:return!1}};if(p(t)){let k=Ys[t];if(!p(k))m=k;else{let V=["top","right","bottom","left"].find((C)=>!p(C));if(V)m=V}}}if(o.setAttribute("data-position",m),this.triggerRef.value)if(this.triggerRef.value.style.setProperty("--arrow-offset",`${U}px`),U!==0&&(m.startsWith("top")||m.startsWith("bottom"))){let p=-U;this.triggerRef.value.style.setProperty("--tooltip-translate-x",`${p}px`)}else this.triggerRef.value.style.setProperty("--tooltip-translate-x","0px")}handleMouseEnter=()=>{if(this.hasTrigger("hover"))this.show()};handleMouseLeave=(o)=>{let i=o.relatedTarget;if(this.tooltipRef.value?.contains(i))return;if(this.hasTrigger("hover"))this.hide()};handleFocus=(o)=>{if(o.composedPath().some((t)=>t===this.triggerRef.value||this.triggerRef.value?.contains(t))&&this.hasTrigger("focus"))this.show()};handleBlur=(o)=>{if(o.composedPath().some((t)=>t===this.triggerRef.value||this.triggerRef.value?.contains(t))&&this.hasTrigger("focus"))this.hide()};handleClick=()=>{if(this.hasTrigger("click"))if(!this.open)this.show();else this.hide()};handleClickOutside=(o)=>{if(!this.open||!this.hasTrigger("click"))return;let i=o.composedPath(),a=this.triggerRef.value&&i.includes(this.triggerRef.value),t=this.tooltipRef.value&&i.includes(this.tooltipRef.value);if(!a&&!t)this.hide()};handleKeyDown=(o)=>{if(o.key==="Escape"&&this.open)this.hide()};render(){let o={tooltip:!0,"light-theme":this.theme==="light",visible:this.open,"full-width":this.fullWidth};return $`
1866
+ `;var Ys={top:"bottom","top-start":"bottom-start","top-end":"bottom-end",bottom:"top","bottom-start":"top-start","bottom-end":"top-end",left:"right","left-start":"right-start","left-end":"right-end",right:"left","right-start":"left-start","right-end":"left-end"};class za extends zo{constructor(){super(...arguments);this.content="";this.position="top";this.trigger=["hover","focus"];this.arrow=!0;this.open=!1;this.disabled=!1;this.offset=4;this.theme="light";this.edgePadding=12;this.delay=0;this.hideDelay=0;this.fullWidth=!1;this.boundarySelector=".game-layout-main, .game-layout-container"}static styles=[G,Te];tooltipRef=Wi();triggerRef=Wi();static nextId=0;tooltipId=`tooltip-${++za.nextId}`;showTimeout=null;hideTimeout=null;scrollTimeout=null;clickOutsideHandler=null;keydownHandler=null;scrollHandler=null;resizeHandler=null;debounceTime=50;disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners(),this.clearTimeouts()}onOpenChange(){if(this.open)this.show();else this.hide()}onDisabledChange(){if(this.disabled)this.hide()}onPositionChange(){requestAnimationFrame(()=>this.updatePosition())}onBoundaryChange(){requestAnimationFrame(()=>this.updatePosition())}addEventListeners(){if(!this.keydownHandler)this.keydownHandler=this.handleKeyDown,document.addEventListener("keydown",this.keydownHandler);if(this.hasTrigger("click")&&!this.clickOutsideHandler)this.clickOutsideHandler=this.handleClickOutside,document.addEventListener("click",this.clickOutsideHandler,{capture:!0});if(!this.scrollHandler)this.scrollHandler=this.handleScroll,window.addEventListener("scroll",this.scrollHandler,{passive:!0});if(!this.resizeHandler)this.resizeHandler=this.handleResize,window.addEventListener("resize",this.resizeHandler,{passive:!0})}removeEventListeners(){if(this.keydownHandler)document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null;if(this.clickOutsideHandler)document.removeEventListener("click",this.clickOutsideHandler,{capture:!0}),this.clickOutsideHandler=null;if(this.scrollHandler)window.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null;if(this.resizeHandler)window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null}hasTrigger(o){return(Array.isArray(this.trigger)?this.trigger:[this.trigger]).includes(o)}handleScroll=()=>{if(this.scrollTimeout!==null)window.clearTimeout(this.scrollTimeout);this.scrollTimeout=window.setTimeout(()=>{if(this.open)this.updatePosition();this.scrollTimeout=null},this.debounceTime)};handleResize=()=>{if(this.scrollTimeout!==null)window.clearTimeout(this.scrollTimeout);this.scrollTimeout=window.setTimeout(()=>{if(this.open)this.updatePosition();this.scrollTimeout=null},this.debounceTime)};clearTimeouts(){let o=["showTimeout","hideTimeout","scrollTimeout"];for(let i of o){let a=this[i];if(a!==null)window.clearTimeout(a);this[i]=null}}show(){if(this.disabled||this.open)return;if(this.clearTimeouts(),this.delay>0)this.showTimeout=window.setTimeout(()=>{this.showTooltip()},this.delay);else this.showTooltip()}hide(){if(this.disabled||!this.open)return;if(this.clearTimeouts(),this.hideDelay>0)this.hideTimeout=window.setTimeout(()=>{this.hideTooltip()},this.hideDelay);else this.hideTooltip()}showTooltip(){if(this.tooltipRef.value&&!this.disabled)this.open=!0,this.updatePosition(),this.addEventListeners()}hideTooltip(){if(this.tooltipRef.value)this.open=!1,this.removeEventListeners(),this.clearTimeouts()}updatePosition(){if(!this.tooltipRef.value||!this.triggerRef.value||!this.open)return;let o=this.tooltipRef.value,i=this.triggerRef.value,a=this.triggerSlot.assignedElements()[0]||i,t=this.position,r=this.offset,e=a.getBoundingClientRect(),n=o.getBoundingClientRect(),s=(p)=>{if(!p)return null;if(p instanceof ShadowRoot)return p.host;return p.parentNode},g=((()=>{let p=(this.boundarySelector||"").split(",").map((R)=>R.trim()).filter(Boolean),k=this;while(k){if(k instanceof HTMLElement){if(p.length>0&&p.some((R)=>{try{return k.matches(R)}catch{return!1}}))return k}k=s(k)}return null})()??document.documentElement).getBoundingClientRect(),H=e.top-g.top,f=g.bottom-e.bottom,y=e.left-g.left,z=g.right-e.right,v=t,U=0,b=(p)=>{if(p.startsWith("top"))return H>=n.height+r+6;else if(p.startsWith("bottom"))return f>=n.height+r+6;return!0},u=()=>{let p=e.left+e.width/2,k=n.width/2,R=p-k,V=0,L=g.left+this.edgePadding,w=g.right-this.edgePadding;if(R<L)V=L-R,R=L;let Z=R+n.width;if(Z>w)V=w-Z;return V};if((t.startsWith("top")||t.startsWith("bottom"))&&b(t)){let p=u();if(p!==0){U=-p;let k=n.width/2-12;U=Math.max(-k,Math.min(k,U))}v=t}else{let p=(k)=>{switch(k){case"top":case"top-start":case"top-end":return H<n.height+r+6;case"bottom":case"bottom-start":case"bottom-end":return f<n.height+r+6;case"left":case"left-start":case"left-end":return y<n.width+r+6;case"right":case"right-start":case"right-end":return z<n.width+r+6;default:return!1}};if(p(t)){let k=Ys[t];if(!p(k))v=k;else{let V=["top","right","bottom","left"].find((L)=>!p(L));if(V)v=V}}}if(o.setAttribute("data-position",v),this.triggerRef.value)if(this.triggerRef.value.style.setProperty("--arrow-offset",`${U}px`),U!==0&&(v.startsWith("top")||v.startsWith("bottom"))){let p=-U;this.triggerRef.value.style.setProperty("--tooltip-translate-x",`${p}px`)}else this.triggerRef.value.style.setProperty("--tooltip-translate-x","0px")}handleMouseEnter=()=>{if(this.hasTrigger("hover"))this.show()};handleMouseLeave=(o)=>{let i=o.relatedTarget;if(this.tooltipRef.value?.contains(i))return;if(this.hasTrigger("hover"))this.hide()};handleFocus=(o)=>{if(o.composedPath().some((t)=>t===this.triggerRef.value||this.triggerRef.value?.contains(t))&&this.hasTrigger("focus"))this.show()};handleBlur=(o)=>{if(o.composedPath().some((t)=>t===this.triggerRef.value||this.triggerRef.value?.contains(t))&&this.hasTrigger("focus"))this.hide()};handleClick=()=>{if(this.hasTrigger("click"))if(!this.open)this.show();else this.hide()};handleClickOutside=(o)=>{if(!this.open||!this.hasTrigger("click"))return;let i=o.composedPath(),a=this.triggerRef.value&&i.includes(this.triggerRef.value),t=this.tooltipRef.value&&i.includes(this.tooltipRef.value);if(!a&&!t)this.hide()};handleKeyDown=(o)=>{if(o.key==="Escape"&&this.open)this.hide()};render(){let o={tooltip:!0,"light-theme":this.theme==="light",visible:this.open,"full-width":this.fullWidth};return $`
1867
1867
  <div
1868
1868
  style=${Vo({["--tooltip-offset"]:`${this.offset}px`})}
1869
1869
  ${Vi(this.triggerRef)}
@@ -1888,7 +1888,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1888
1888
  ${this.arrow?$`<div class="tooltip-arrow"></div>`:_}
1889
1889
  </div>
1890
1890
  </div>
1891
- `}}d([H({type:String})],za.prototype,"content",void 0),d([H({type:String,reflect:!0})],za.prototype,"position",void 0),d([H({type:Array,converter:(o)=>{if(typeof o==="string")return o.split(/[\s,]+/).filter(Boolean);return o}})],za.prototype,"trigger",void 0),d([H({type:Boolean,reflect:!0})],za.prototype,"arrow",void 0),d([H({type:Boolean,reflect:!0})],za.prototype,"open",void 0),d([H({type:Boolean,reflect:!0})],za.prototype,"disabled",void 0),d([H({type:Number})],za.prototype,"offset",void 0),d([H({type:String,reflect:!0})],za.prototype,"theme",void 0),d([H({type:Number})],za.prototype,"edgePadding",void 0),d([H({type:Number})],za.prototype,"delay",void 0),d([H({type:Number})],za.prototype,"hideDelay",void 0),d([H({type:Boolean})],za.prototype,"fullWidth",void 0),d([H({type:String})],za.prototype,"boundarySelector",void 0),d([fo("#trigger-slot")],za.prototype,"triggerSlot",void 0),d([vo("open")],za.prototype,"onOpenChange",null),d([vo("disabled")],za.prototype,"onDisabledChange",null),d([vo(["position","offset","content"])],za.prototype,"onPositionChange",null),d([vo(["boundarySelector","edgePadding"])],za.prototype,"onBoundaryChange",null),za=d([O("origami-tooltip")],za);var Cs=(o,i=!1)=>{let a=i?o.replace(/[^0-9.-]/g,""):o.replace(/[^0-9.]/g,"");if(a.includes(".")){let t=a.split(".");a=`${t[0]}.${t.slice(1).join("")}`}return a};class $t extends B{constructor(){super(...arguments);this.label="";this.currency="USD";this.errorMessage="";this.value="";this.rightLabel="";this.suffix="";this.placeholder="0.00";this.disabled=!1;this.readonly=!1;this.disableInput=!1;this.cursorNotAllowed=!1;this.bgColor="";this.testId="";this.tooltip="";this.maxBetEnabled=!1;this.dimmed=!1;this.maxPayoutUSD=0;this.variant="primary";this.required=!1;this.hideCurrencyIcon=!1;this.allowNegative=!1}static styles=X`
1891
+ `}}d([S({type:String})],za.prototype,"content",void 0),d([S({type:String,reflect:!0})],za.prototype,"position",void 0),d([S({type:Array,converter:(o)=>{if(typeof o==="string")return o.split(/[\s,]+/).filter(Boolean);return o}})],za.prototype,"trigger",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"arrow",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"open",void 0),d([S({type:Boolean,reflect:!0})],za.prototype,"disabled",void 0),d([S({type:Number})],za.prototype,"offset",void 0),d([S({type:String,reflect:!0})],za.prototype,"theme",void 0),d([S({type:Number})],za.prototype,"edgePadding",void 0),d([S({type:Number})],za.prototype,"delay",void 0),d([S({type:Number})],za.prototype,"hideDelay",void 0),d([S({type:Boolean})],za.prototype,"fullWidth",void 0),d([S({type:String})],za.prototype,"boundarySelector",void 0),d([fo("#trigger-slot")],za.prototype,"triggerSlot",void 0),d([mo("open")],za.prototype,"onOpenChange",null),d([mo("disabled")],za.prototype,"onDisabledChange",null),d([mo(["position","offset","content"])],za.prototype,"onPositionChange",null),d([mo(["boundarySelector","edgePadding"])],za.prototype,"onBoundaryChange",null),za=d([O("origami-tooltip")],za);var Ls=(o,i=!1)=>{let a=i?o.replace(/[^0-9.-]/g,""):o.replace(/[^0-9.]/g,"");if(a.includes(".")){let t=a.split(".");a=`${t[0]}.${t.slice(1).join("")}`}return a};class Yt extends B{constructor(){super(...arguments);this.label="";this.currency="USD";this.errorMessage="";this.value="";this.rightLabel="";this.suffix="";this.placeholder="0.00";this.disabled=!1;this.readonly=!1;this.disableInput=!1;this.cursorNotAllowed=!1;this.bgColor="";this.testId="";this.tooltip="";this.maxBetEnabled=!1;this.dimmed=!1;this.maxPayoutUSD=0;this.variant="primary";this.required=!1;this.hideCurrencyIcon=!1;this.allowNegative=!1}static styles=X`
1892
1892
  .currency-display {
1893
1893
  display: flex;
1894
1894
  align-items: center;
@@ -1909,7 +1909,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1909
1909
  color: #b3b3b3;
1910
1910
  white-space: nowrap;
1911
1911
  }
1912
- `;get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}formatValue(o){if(!o)return o;try{return Number.parseFloat(o).toFixed(this.gameData.currencyDecimals)}catch{return o}}preventNonNumericInput(o){if((this.allowNegative?["e","E","+"]:["e","E","+","-"]).includes(o.key))o.preventDefault()}handleChange(o){let i=o.detail.value,a=Cs(i,this.allowNegative);this.emit("raw-currency-input-change",{detail:{value:a}})}handleBlur(){let o=this.formatValue(this.value);this.emit("raw-currency-input-change",{detail:{value:o}}),this.emit("raw-currency-input-blur")}handleFocus(){this.emit("raw-currency-input-focus")}updated(o){if(!this.readonly||!o.has("value"))return;this.value=this.formatValue(this.value)}render(){return $`
1912
+ `;get leftAddon(){return!!this.querySelector('[slot="left-addon"]')}get rightAddon(){return!!this.querySelector('[slot="right-addon"]')}formatValue(o){if(!o)return o;try{return Number.parseFloat(o).toFixed(this.gameData.currencyDecimals)}catch{return o}}preventNonNumericInput(o){if((this.allowNegative?["e","E","+"]:["e","E","+","-"]).includes(o.key))o.preventDefault()}handleChange(o){let i=o.detail.value,a=Ls(i,this.allowNegative);this.emit("raw-currency-input-change",{detail:{value:a}})}handleBlur(){let o=this.formatValue(this.value);this.emit("raw-currency-input-change",{detail:{value:o}}),this.emit("raw-currency-input-blur")}handleFocus(){this.emit("raw-currency-input-focus")}updated(o){if(!this.readonly||!o.has("value"))return;this.value=this.formatValue(this.value)}render(){return $`
1913
1913
  <origami-input
1914
1914
  type="number"
1915
1915
  inputmode="decimal"
@@ -1932,15 +1932,15 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1932
1932
  ${this.leftAddon?$` <slot slot="left-addon" name="left-addon"></slot> `:_}
1933
1933
 
1934
1934
  ${!this.hideCurrencyIcon?$`<div class="currency-display" slot="right-icon">
1935
- ${this.gameData?.showCurrencyAsText?$`<span class="currency-text">${this.currency}</span>`:Co(this.currency)}
1935
+ ${this.gameData?.showCurrencyAsText?$`<span class="currency-text">${this.currency}</span>`:Lo(this.currency)}
1936
1936
  </div>`:_}
1937
1937
  </origami-input>
1938
- `}}d([ao({context:D,subscribe:!0})],$t.prototype,"gameData",void 0),d([H({type:String})],$t.prototype,"label",void 0),d([H({type:String})],$t.prototype,"currency",void 0),d([H({type:String})],$t.prototype,"errorMessage",void 0),d([H({type:String})],$t.prototype,"value",void 0),d([H({type:String})],$t.prototype,"rightLabel",void 0),d([H({type:String})],$t.prototype,"suffix",void 0),d([H({type:String})],$t.prototype,"placeholder",void 0),d([H({type:Boolean})],$t.prototype,"disabled",void 0),d([H({type:Boolean})],$t.prototype,"readonly",void 0),d([H({type:Boolean})],$t.prototype,"disableInput",void 0),d([H({type:Boolean})],$t.prototype,"cursorNotAllowed",void 0),d([H({type:String})],$t.prototype,"bgColor",void 0),d([H({type:String})],$t.prototype,"testId",void 0),d([H({type:String})],$t.prototype,"tooltip",void 0),d([H({type:Boolean})],$t.prototype,"maxBetEnabled",void 0),d([H({type:Boolean})],$t.prototype,"dimmed",void 0),d([H({type:Number})],$t.prototype,"maxPayoutUSD",void 0),d([H({type:String})],$t.prototype,"variant",void 0),d([H({type:Boolean})],$t.prototype,"required",void 0),d([H({type:Boolean})],$t.prototype,"hideCurrencyIcon",void 0),d([H({type:Boolean})],$t.prototype,"allowNegative",void 0),d([fo("origami-input")],$t.prototype,"input",void 0),$t=d([O("origami-raw-currency-input")],$t);class Mo{host;handlers=new Map;isFocusedOnInput=!1;repeating=null;repeatTimer=null;DEFAULT_REPEAT_INTERVAL=200;constructor(o,i){if(this.host=o,o.addController(this),i)i.forEach(({key:a,callback:t,options:r})=>{this.register(a,t,r)})}hostConnected(){window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),window.addEventListener("focusin",this._onFocusIn),window.addEventListener("focusout",this._onFocusOut)}hostDisconnected(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),window.removeEventListener("focusin",this._onFocusIn),window.removeEventListener("focusout",this._onFocusOut),this._clearRepeatTimer()}_onFocusIn=(o)=>{let i=o.composedPath()[0];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)this.isFocusedOnInput=!0,this._clearRepeatTimer()};_onFocusOut=(o)=>{let i=o.composedPath()[0];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)this.isFocusedOnInput=!1};_clearRepeatTimer(){if(this.repeatTimer)clearTimeout(this.repeatTimer),this.repeatTimer=null;this.repeating=null}shouldSkipAction(){if(this.isFocusedOnInput)return!0;if(this.checkForOpenModals())return!0;return!1}checkForOpenModals(){let o=document.querySelector("origami-game-provider-wrapper");if(!o?.shadowRoot)return!1;let i=o.shadowRoot.querySelector("*");if(!i)return!1;if(!!i.shadowRoot?.querySelector("origami-game-layout")?.shadowRoot?.querySelector("origami-responsive-modal[open]"))return!0;return!1}_onKeyDown=(o)=>{if(this.shouldSkipAction())return;let i=o.key.toLowerCase(),a=this.handlers.get(i);if(a){let{callback:t,options:r}=a;if(r.disabled?.()??!1)return;if(o.preventDefault(),o.repeat){if(r.repeat&&!this.repeating)this.repeating=i,this._startRepeating(t,r);return}t(o)}};_onKeyUp=(o)=>{if(this.shouldSkipAction())return;let i=o.key.toLowerCase();if(this.repeating===i)this._clearRepeatTimer()};_startRepeating(o,i){let a=i.repeatInterval??this.DEFAULT_REPEAT_INTERVAL,t=()=>{if(!this.repeating)return;if(!(i.disabled?.()??!1)&&!this.shouldSkipAction())o();if(this.repeating)this.repeatTimer=window.setTimeout(t,a)};this.repeatTimer=window.setTimeout(t,a)}register(o,i,a={}){let t=o.toLowerCase(),r={repeat:!1,repeatInterval:this.DEFAULT_REPEAT_INTERVAL,disabled:()=>!1,...a};this.handlers.set(t,{callback:i,options:r})}}var Ls={["BET_AMOUNT_BELOW_MIN_BET"]:"alerts.betAmountBelowMinBet",["BET_AMOUNT_ABOVE_MAX_BET"]:"alerts.betAmountAboveMaxBet",["BET_AMOUNT_ABOVE_BALANCE"]:"alerts.notEnoughBalance"};class Yt extends B{static styles=[G,X`
1938
+ `}}d([ao({context:D,subscribe:!0})],Yt.prototype,"gameData",void 0),d([S({type:String})],Yt.prototype,"label",void 0),d([S({type:String})],Yt.prototype,"currency",void 0),d([S({type:String})],Yt.prototype,"errorMessage",void 0),d([S({type:String})],Yt.prototype,"value",void 0),d([S({type:String})],Yt.prototype,"rightLabel",void 0),d([S({type:String})],Yt.prototype,"suffix",void 0),d([S({type:String})],Yt.prototype,"placeholder",void 0),d([S({type:Boolean})],Yt.prototype,"disabled",void 0),d([S({type:Boolean})],Yt.prototype,"readonly",void 0),d([S({type:Boolean})],Yt.prototype,"disableInput",void 0),d([S({type:Boolean})],Yt.prototype,"cursorNotAllowed",void 0),d([S({type:String})],Yt.prototype,"bgColor",void 0),d([S({type:String})],Yt.prototype,"testId",void 0),d([S({type:String})],Yt.prototype,"tooltip",void 0),d([S({type:Boolean})],Yt.prototype,"maxBetEnabled",void 0),d([S({type:Boolean})],Yt.prototype,"dimmed",void 0),d([S({type:Number})],Yt.prototype,"maxPayoutUSD",void 0),d([S({type:String})],Yt.prototype,"variant",void 0),d([S({type:Boolean})],Yt.prototype,"required",void 0),d([S({type:Boolean})],Yt.prototype,"hideCurrencyIcon",void 0),d([S({type:Boolean})],Yt.prototype,"allowNegative",void 0),d([fo("origami-input")],Yt.prototype,"input",void 0),Yt=d([O("origami-raw-currency-input")],Yt);class Mo{host;handlers=new Map;isFocusedOnInput=!1;repeating=null;repeatTimer=null;DEFAULT_REPEAT_INTERVAL=200;constructor(o,i){if(this.host=o,o.addController(this),i)i.forEach(({key:a,callback:t,options:r})=>{this.register(a,t,r)})}hostConnected(){window.addEventListener("keydown",this._onKeyDown),window.addEventListener("keyup",this._onKeyUp),window.addEventListener("focusin",this._onFocusIn),window.addEventListener("focusout",this._onFocusOut)}hostDisconnected(){window.removeEventListener("keydown",this._onKeyDown),window.removeEventListener("keyup",this._onKeyUp),window.removeEventListener("focusin",this._onFocusIn),window.removeEventListener("focusout",this._onFocusOut),this._clearRepeatTimer()}_onFocusIn=(o)=>{let i=o.composedPath()[0];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)this.isFocusedOnInput=!0,this._clearRepeatTimer()};_onFocusOut=(o)=>{let i=o.composedPath()[0];if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)this.isFocusedOnInput=!1};_clearRepeatTimer(){if(this.repeatTimer)clearTimeout(this.repeatTimer),this.repeatTimer=null;this.repeating=null}shouldSkipAction(){if(this.isFocusedOnInput)return!0;if(this.checkForOpenModals())return!0;return!1}checkForOpenModals(){let o=document.querySelector("origami-game-provider-wrapper");if(!o?.shadowRoot)return!1;let i=o.shadowRoot.querySelector("*");if(!i)return!1;if(!!i.shadowRoot?.querySelector("origami-game-layout")?.shadowRoot?.querySelector("origami-responsive-modal[open]"))return!0;return!1}_onKeyDown=(o)=>{if(this.shouldSkipAction())return;let i=o.key.toLowerCase(),a=this.handlers.get(i);if(a){let{callback:t,options:r}=a;if(r.disabled?.()??!1)return;if(o.preventDefault(),o.repeat){if(r.repeat&&!this.repeating)this.repeating=i,this._startRepeating(t,r);return}t(o)}};_onKeyUp=(o)=>{if(this.shouldSkipAction())return;let i=o.key.toLowerCase();if(this.repeating===i)this._clearRepeatTimer()};_startRepeating(o,i){let a=i.repeatInterval??this.DEFAULT_REPEAT_INTERVAL,t=()=>{if(!this.repeating)return;if(!(i.disabled?.()??!1)&&!this.shouldSkipAction())o();if(this.repeating)this.repeatTimer=window.setTimeout(t,a)};this.repeatTimer=window.setTimeout(t,a)}register(o,i,a={}){let t=o.toLowerCase(),r={repeat:!1,repeatInterval:this.DEFAULT_REPEAT_INTERVAL,disabled:()=>!1,...a};this.handlers.set(t,{callback:i,options:r})}}var Cs={["BET_AMOUNT_BELOW_MIN_BET"]:"alerts.betAmountBelowMinBet",["BET_AMOUNT_ABOVE_MAX_BET"]:"alerts.betAmountAboveMaxBet",["BET_AMOUNT_ABOVE_BALANCE"]:"alerts.notEnoughBalance"};class Lt extends B{static styles=[G,X`
1939
1939
  origami-raw-currency-input {
1940
1940
  flex-grow: 1;
1941
1941
  display: block;
1942
1942
  }
1943
- `];get gameData(){return this._gameContext.value}_gameContext=new wo(this,{context:D,subscribe:!0,callback:(o)=>{if(!A(o.amount).isEqualTo(this.value)&&!this.isFocused&&this._isInitialized)requestAnimationFrame(()=>{this.value=A(o.amount).toFixed(this.gameData.currencyDecimals)});this.handleValueOrBalanceChange()}});firstUpdated(){requestAnimationFrame(()=>{if(this.gameData?.amount)this.value=A(this.gameData.amount).toFixed(this.gameData.currencyDecimals);this._isInitialized=!0})}watchValue(){this.handleValueOrBalanceChange()}handleValueOrBalanceChange(){if(!this._isInitialized)return;if(!this.gameData)return;let o=this.value===""?"0":this.value,i=A(o),a=A(this.gameData.balance??0),t=this.invalidReason;if(i.isNaN())this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.isEqualTo(0))this.invalidReason=null;else if(i.gt(this.gameData.maxBet))this.invalidReason="BET_AMOUNT_ABOVE_MAX_BET";else if(i.lt(this.gameData.minBet))this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.gt(a))this.invalidReason="BET_AMOUNT_ABOVE_BALANCE";else this.invalidReason=null;if(t!==this.invalidReason)this.emit("bet-amount-validity-change",{detail:{isValid:!this.invalidReason}})}constructor(){super();this.isFocused=!1;this.invalidReason=null;this.value="0";this._isInitialized=!1;this.disabled=!1;this.label="";new Mo(this,[{key:"a",callback:this.handleHalfBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"s",callback:this.handleDoubleBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"d",callback:this.handleZeroBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled}}])}updateBalanceState(o){if(o.isNaN())return;let i=o.toFixed(this.gameData.currencyDecimals);this.gameData?.updateBetAmount(A(i))}handleCurrencyInputChange(o){let i=o.detail.value;this.value=i,this.updateBalanceState(A(i))}updateAmount(o){if(this.disabled)return;let a=(o.isLessThan(0)?A(0):o).decimalPlaces(this.gameData.currencyDecimals,A.ROUND_DOWN);if(a.toString()!==this.value)this.value=a.toFixed(this.gameData.currencyDecimals),this.updateBalanceState(A(a))}handleHalfBet(){if(this.disabled||A(this.value).isLessThanOrEqualTo(0))return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.gameData?.hapticController?.lightClick(),this.updateAmount(A(this.value).dividedBy(2))}handleDoubleBet(){if(this.disabled)return;if(this.gameData?.soundController?.play("half-double").catch((i)=>console.error(i)),this.gameData?.hapticController?.lightClick(),A(this.value).isZero()){this.updateAmount(A(A("1").div(10**this.gameData.currencyDecimals)));return}let o=A.min(A(this.value).multipliedBy(2),A(this.gameData?.balance??0));this.updateAmount(o)}handleZeroBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.updateAmount(A(0))}handleMaxBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((t)=>console.error(t)),this.gameData?.hapticController?.lightClick();let o=A(this.gameData?.balance??0),i=A(this.gameData?.maxBet??0),a=A.min(o,i);this.updateAmount(a)}render(){let o=this.gameData?.language||"en",i="0.00000000",a=this.invalidReason?q(Ls[this.invalidReason],o):"";return $`
1943
+ `];get gameData(){return this._gameContext.value}_gameContext=new wo(this,{context:D,subscribe:!0,callback:(o)=>{if(!P(o.amount).isEqualTo(this.value)&&!this.isFocused&&this._isInitialized)requestAnimationFrame(()=>{this.value=P(o.amount).toFixed(this.gameData.currencyDecimals)});this.handleValueOrBalanceChange()}});firstUpdated(){requestAnimationFrame(()=>{if(this.gameData?.amount)this.value=P(this.gameData.amount).toFixed(this.gameData.currencyDecimals);this._isInitialized=!0})}watchValue(){this.handleValueOrBalanceChange()}handleValueOrBalanceChange(){if(!this._isInitialized)return;if(!this.gameData)return;let o=this.value===""?"0":this.value,i=P(o),a=P(this.gameData.balance??0),t=this.invalidReason;if(i.isNaN())this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.isEqualTo(0))this.invalidReason=null;else if(i.gt(this.gameData.maxBet))this.invalidReason="BET_AMOUNT_ABOVE_MAX_BET";else if(i.lt(this.gameData.minBet))this.invalidReason="BET_AMOUNT_BELOW_MIN_BET";else if(i.gt(a))this.invalidReason="BET_AMOUNT_ABOVE_BALANCE";else this.invalidReason=null;if(t!==this.invalidReason)this.emit("bet-amount-validity-change",{detail:{isValid:!this.invalidReason}})}constructor(){super();this.isFocused=!1;this.invalidReason=null;this.value="0";this._isInitialized=!1;this.disabled=!1;this.label="";new Mo(this,[{key:"a",callback:this.handleHalfBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"s",callback:this.handleDoubleBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled,repeat:!0,repeatInterval:200}},{key:"d",callback:this.handleZeroBet.bind(this),options:{disabled:()=>this.disabled||!this.gameData?.hotkeysOpenEnabled}}])}updateBalanceState(o){if(o.isNaN())return;let i=o.toFixed(this.gameData.currencyDecimals);this.gameData?.updateBetAmount(P(i))}handleCurrencyInputChange(o){let i=o.detail.value;this.value=i,this.updateBalanceState(P(i))}updateAmount(o){if(this.disabled)return;let a=(o.isLessThan(0)?P(0):o).decimalPlaces(this.gameData.currencyDecimals,P.ROUND_DOWN);if(a.toString()!==this.value)this.value=a.toFixed(this.gameData.currencyDecimals),this.updateBalanceState(P(a))}handleHalfBet(){if(this.disabled||P(this.value).isLessThanOrEqualTo(0))return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.gameData?.hapticController?.lightClick(),this.updateAmount(P(this.value).dividedBy(2))}handleDoubleBet(){if(this.disabled)return;if(this.gameData?.soundController?.play("half-double").catch((i)=>console.error(i)),this.gameData?.hapticController?.lightClick(),P(this.value).isZero()){this.updateAmount(P(P("1").div(10**this.gameData.currencyDecimals)));return}let o=P.min(P(this.value).multipliedBy(2),P(this.gameData?.balance??0));this.updateAmount(o)}handleZeroBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((o)=>console.error(o)),this.updateAmount(P(0))}handleMaxBet(){if(this.disabled)return;this.gameData?.soundController?.play("half-double").catch((t)=>console.error(t)),this.gameData?.hapticController?.lightClick();let o=P(this.gameData?.balance??0),i=P(this.gameData?.maxBet??0),a=P.min(o,i);this.updateAmount(a)}formatMonetaryAmount(o,i){let a=Math.abs(o),t=di(i),r=li(i),e=ci(i),n="";if(o<0)n+="-";if(e===0)n+=`${r}${a.toFixed(t)}`;if(e===1)n+=`${a.toFixed(t)} ${r}`;return n}render(){let o=this.gameData?.language||"en",i="0.00000000",a=this.invalidReason?q(Cs[this.invalidReason],o):"";if(this.invalidReason==="BET_AMOUNT_BELOW_MIN_BET")a=a.replace("{value}",this.formatMonetaryAmount(this.gameData.minBet,this.gameData.currency));if(this.invalidReason==="BET_AMOUNT_ABOVE_MAX_BET")a=a.replace("{value}",this.formatMonetaryAmount(this.gameData.maxBet,this.gameData.currency));return $`
1944
1944
  <origami-raw-currency-input
1945
1945
  .value=${this.value}
1946
1946
  .label=${this.label||q("common.betAmount",o)}
@@ -1981,7 +1981,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
1981
1981
  </origami-button>
1982
1982
  </origami-button-group>
1983
1983
  </origami-raw-currency-input>
1984
- `}}d([j()],Yt.prototype,"isFocused",void 0),d([j()],Yt.prototype,"invalidReason",void 0),d([vo(["value"])],Yt.prototype,"watchValue",null),d([j()],Yt.prototype,"value",void 0),d([j()],Yt.prototype,"_isInitialized",void 0),d([H({type:Boolean})],Yt.prototype,"disabled",void 0),d([H({type:String})],Yt.prototype,"label",void 0),Yt=d([O("origami-bet-amount-input")],Yt);var Ct=new Map;class Lt extends B{constructor(){super(...arguments);this.src="";this.size="24px";this.triggerSelector="origami-button";this.active=!1;this.autoplay=!1;this.tone="default"}static styles=X`
1984
+ `}}d([A()],Lt.prototype,"isFocused",void 0),d([A()],Lt.prototype,"invalidReason",void 0),d([mo(["value"])],Lt.prototype,"watchValue",null),d([A()],Lt.prototype,"value",void 0),d([A()],Lt.prototype,"_isInitialized",void 0),d([S({type:Boolean})],Lt.prototype,"disabled",void 0),d([S({type:String})],Lt.prototype,"label",void 0),Lt=d([O("origami-bet-amount-input")],Lt);var Ct=new Map;class Ft extends B{constructor(){super(...arguments);this.src="";this.size="24px";this.triggerSelector="origami-button";this.active=!1;this.autoplay=!1;this.tone="default"}static styles=X`
1985
1985
  :host {
1986
1986
  display: flex;
1987
1987
  align-items: center;
@@ -2114,7 +2114,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2114
2114
  justify-content: center;
2115
2115
  }
2116
2116
 
2117
- `;animation=null;containerRef=Wi();abortController=null;lottieModule=null;async connectedCallback(){super.connectedCallback(),await this.initialize()}disconnectedCallback(){this.cleanup(),super.disconnectedCallback()}async initialize(){if(!this.src)return;try{let[o,i]=await Promise.all([this.loadLottieModule(),this.loadAnimationData()]);this.lottieModule=o,await this.setupAnimation(i),this.setupTriggers()}catch(o){console.warn("[LottieIcon] Failed to initialize:",o)}}async loadLottieModule(){let o=await Promise.resolve().then(() => uo(Xe(),1));return o.default||o}async loadAnimationData(){if(Ct.has(this.src))return Ct.get(this.src);let o=await fetch(this.src);if(!o.ok)throw new Error(`Failed to load animation: ${o.status}`);let i=await o.json();return Ct.set(this.src,i),i}async setupAnimation(o){if(await this.updateComplete,!this.containerRef.value||!this.lottieModule)return;this.animation=this.lottieModule.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:!1,autoplay:this.autoplay,animationData:o,rendererSettings:{preserveAspectRatio:"xMidYMid meet",clearCanvas:!1,hideOnTransparent:!0}})}setupTriggers(){if(!this.animation||this.autoplay)return;let o=this.closest(this.triggerSelector);if(!o){console.warn(`[LottieIcon] Trigger element "${this.triggerSelector}" not found`);return}this.abortController=new AbortController;let i=()=>this.playAnimation(),a={signal:this.abortController.signal,passive:!0};o.addEventListener("mouseenter",i,a),o.addEventListener("focus",i,a)}playAnimation(){if(!this.animation)return;let o=this.closest(this.triggerSelector);if(o&&"disabled"in o&&o.disabled)return;this.animation.goToAndStop(0,!0),this.animation.play()}cleanup(){if(this.abortController?.abort(),this.abortController=null,this.animation)this.animation.destroy(),this.animation=null;this.lottieModule=null}render(){return $`
2117
+ `;animation=null;containerRef=Wi();abortController=null;lottieModule=null;async connectedCallback(){super.connectedCallback(),await this.initialize()}disconnectedCallback(){this.cleanup(),super.disconnectedCallback()}async initialize(){if(!this.src)return;try{let[o,i]=await Promise.all([this.loadLottieModule(),this.loadAnimationData()]);this.lottieModule=o,await this.setupAnimation(i),this.setupTriggers()}catch(o){console.warn("[LottieIcon] Failed to initialize:",o)}}async loadLottieModule(){let o=await Promise.resolve().then(() => ho(Xe(),1));return o.default||o}async loadAnimationData(){if(Ct.has(this.src))return Ct.get(this.src);let o=await fetch(this.src);if(!o.ok)throw new Error(`Failed to load animation: ${o.status}`);let i=await o.json();return Ct.set(this.src,i),i}async setupAnimation(o){if(await this.updateComplete,!this.containerRef.value||!this.lottieModule)return;this.animation=this.lottieModule.loadAnimation({container:this.containerRef.value,renderer:"svg",loop:!1,autoplay:this.autoplay,animationData:o,rendererSettings:{preserveAspectRatio:"xMidYMid meet",clearCanvas:!1,hideOnTransparent:!0}})}setupTriggers(){if(!this.animation||this.autoplay)return;let o=this.closest(this.triggerSelector);if(!o){console.warn(`[LottieIcon] Trigger element "${this.triggerSelector}" not found`);return}this.abortController=new AbortController;let i=()=>this.playAnimation(),a={signal:this.abortController.signal,passive:!0};o.addEventListener("mouseenter",i,a),o.addEventListener("focus",i,a)}playAnimation(){if(!this.animation)return;let o=this.closest(this.triggerSelector);if(o&&"disabled"in o&&o.disabled)return;this.animation.goToAndStop(0,!0),this.animation.play()}cleanup(){if(this.abortController?.abort(),this.abortController=null,this.animation)this.animation.destroy(),this.animation=null;this.lottieModule=null}render(){return $`
2118
2118
  <div
2119
2119
  class=${to({container:!0,active:this.active})}
2120
2120
  style=${Vo({width:this.size,height:this.size})}
@@ -2122,7 +2122,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2122
2122
  role="img"
2123
2123
  aria-hidden="true"
2124
2124
  ></div>
2125
- `}}d([H({type:String})],Lt.prototype,"src",void 0),d([H({type:String})],Lt.prototype,"size",void 0),d([H({type:String,attribute:"trigger-selector"})],Lt.prototype,"triggerSelector",void 0),d([H({type:Boolean})],Lt.prototype,"active",void 0),d([H({type:Boolean})],Lt.prototype,"autoplay",void 0),d([H({type:String,reflect:!0})],Lt.prototype,"tone",void 0),Lt=d([O("lottie-icon")],Lt);var jo=25;var Li=3,ya=Array.from({length:24},(o,i)=>({value:(i+1).toString(),label:(i+1).toString()}));var Sa=X`
2125
+ `}}d([S({type:String})],Ft.prototype,"src",void 0),d([S({type:String})],Ft.prototype,"size",void 0),d([S({type:String,attribute:"trigger-selector"})],Ft.prototype,"triggerSelector",void 0),d([S({type:Boolean})],Ft.prototype,"active",void 0),d([S({type:Boolean})],Ft.prototype,"autoplay",void 0),d([S({type:String,reflect:!0})],Ft.prototype,"tone",void 0),Ft=d([O("lottie-icon")],Ft);var Ao=25;var Ci=3,ya=Array.from({length:24},(o,i)=>({value:(i+1).toString(),label:(i+1).toString()}));var Ha=X`
2126
2126
  :host {
2127
2127
  display: flex;
2128
2128
  flex-direction: column;
@@ -2159,7 +2159,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2159
2159
  flex-direction: column;
2160
2160
  }
2161
2161
  }
2162
- `;var Be=1e4,Fs=100;function Qs(o){if(o<Fs)throw new Error("Exceeded Minimum edge allowed on platform");return new A(Be).minus(o).dividedBy(Be)}function De(o){if(!o)return new Uint8Array;let i=[];for(let a=0;a<o.length;a+=2)i.push(parseInt(o.substring(a,a+2),16));return new Uint8Array(i)}var Ft=[new A(1)];function Za(o){if(!Number.isInteger(o)||o<0)throw new Error(`Factorial: <${o}> should be an integer greater or equal to 0`);let i=new A(o);if(!Ft[o])Ft[o]=i.multipliedBy(Za(o-1));return Ft[o]}function Di(o,i){return Za(o).dividedBy(Za(i)).dividedBy(Za(new A(o).minus(i).toNumber()))}var Ps=new A(256),Ha=new A(25),Ni=class{static getResults(o,i){let a=[],t=Array.from(Array(Ha.toNumber()).keys());return o.map(De).every((r,e)=>{for(let n=0;n<8;n++){if(a.length>=i)return!1;let s=new A(0);for(let l=0;l<4;l++){let u=r[4*n+l];s=s.plus(new A(u).dividedBy(Ps.pow(l+1)))}s=s.multipliedBy(Ha.minus(new A(8*e+n))).integerValue(A.ROUND_DOWN),a.push(t.splice(s.toNumber(),1)[0])}return!0}),a}static hitMine=(o,i)=>{return i.some((a)=>a===o)};static calculateMultiplierBN(o,i,a){return Qs(a).dividedBy(this.calculateWinChanceBN(o,i))}static calculateWinChanceBN(o,i){return Di(Ha.minus(i).toNumber(),o).dividedBy(Di(Ha.toNumber(),o))}},ro=((o)=>{return o.CLASSIC="CLASSIC",o.LOW_RISK="LOW_RISK",o.MEDIUM_RISK="MEDIUM_RISK",o.HIGH_RISK="HIGH_RISK",o})(ro||{}),As=new A(256),Ge=new A(40),js=[{tiles:1,payout:{["CLASSIC"]:[0,3.96],["LOW_RISK"]:[0.7,1.85],["MEDIUM_RISK"]:[0.4,2.75],["HIGH_RISK"]:[0,3.96]}},{tiles:2,payout:{["CLASSIC"]:[0,1.9,4.5],["LOW_RISK"]:[0,2,3.8],["MEDIUM_RISK"]:[0,1.8,5.1],["HIGH_RISK"]:[0,0,17.1]}},{tiles:3,payout:{["CLASSIC"]:[0,1,3.1,10.4],["LOW_RISK"]:[0,1.1,1.38,26],["MEDIUM_RISK"]:[0,0,2.8,50],["HIGH_RISK"]:[0,0,0,81.5]}},{tiles:4,payout:{["CLASSIC"]:[0,0.8,1.8,5,22.5],["LOW_RISK"]:[0,0,2.2,7.9,90],["MEDIUM_RISK"]:[0,0,1.7,10,100],["HIGH_RISK"]:[0,0,0,10,259]}},{tiles:5,payout:{["CLASSIC"]:[0,0.25,1.4,4.1,16.5,36],["LOW_RISK"]:[0,0,1.5,4.2,13,300],["MEDIUM_RISK"]:[0,0,1.4,4,14,390],["HIGH_RISK"]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{["CLASSIC"]:[0,0,1,3.68,7,16.5,40],["LOW_RISK"]:[0,0,1.1,2,6.2,100,700],["MEDIUM_RISK"]:[0,0,0,3,9,180,710],["HIGH_RISK"]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{["CLASSIC"]:[0,0,0.47,3,4.5,14,31,60],["LOW_RISK"]:[0,0,1.1,1.6,3.5,15,225,700],["MEDIUM_RISK"]:[0,0,0,2,7,30,400,800],["HIGH_RISK"]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{["CLASSIC"]:[0,0,0,2.2,4,13,22,55,70],["LOW_RISK"]:[0,0,1.1,1.5,2,5.5,39,100,800],["MEDIUM_RISK"]:[0,0,0,2,4,11,67,400,900],["HIGH_RISK"]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{["CLASSIC"]:[0,0,0,1.55,3,8,15,44,60,85],["LOW_RISK"]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],["MEDIUM_RISK"]:[0,0,0,2,2.5,5,15,100,500,1000],["HIGH_RISK"]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{["CLASSIC"]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],["LOW_RISK"]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],["MEDIUM_RISK"]:[0,0,0,1.6,2,4,7,26,100,500,1000],["HIGH_RISK"]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}],Ka=class{static configs(){return js}static calculateMultiplier(o,i,a){let t=a.filter((e)=>i.includes(e)),r=this.configs().find((e)=>e.tiles===i.length);if(!r)throw new Error(`No configuration found for ${i.length} tiles`);return new A(r.payout[o][t.length]??0)}static getResults(o,i){let a=[],t=Array.from(Array(Ge.toNumber()).keys());return o.map(De).every((r,e)=>{for(let n=0;n<8;n++){if(a.length>=i)return!1;let s=new A(0);for(let l=0;l<4;l++){let u=r[4*n+l];s=s.plus(new A(u).dividedBy(As.pow(l+1)))}s=s.multipliedBy(Ge.minus(new A(8*e+n))).integerValue(A.ROUND_DOWN),a.push(t.splice(s.toNumber(),1)[0]+1)}return!0}),a}static getChance({correctPicks:o,picked:i}){return new A(Di(10,o)).multipliedBy(Di(30,i-o)).dividedBy(new A(Di(40,i)))}},xo=((o)=>{return o.ABOVE="ABOVE",o.BELOW="BELOW",o})(xo||{});class Wo{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/mines"}async startManualBet(o){let i=await fetch(`${this.baseUrl}/start`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}async getActiveBet(){try{let i=await(await fetch(`${this.baseUrl}/active-bet`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`}})).json();if(!i.activeBet)return{success:!1,error:"No active bet"};return{success:!0,data:i.activeBet}}catch(o){return{success:!1,error:o?.message||"Unknown Error"}}}async selectTile(o){try{let a=await(await fetch(`${this.baseUrl}/next`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}async cashout(){try{let i=await(await fetch(`${this.baseUrl}/cashout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify({})})).json();if(!i.id)throw new Error("Unknown error");return{success:!0,data:i}}catch(o){return{success:!1,error:o?.message||"Unknown Error"}}}async autobetPlay(o){let i=await fetch(`${this.baseUrl}/auto`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}static getInitialState=()=>{return{selectedTiles:[],mineLocations:[],minesCount:Li,numMinesRemaining:Li,numGemsRemaining:jo-Li,outcome:null,numGemsFound:0,state:"NO_GAME_ACTIVE",betAmount:A(0)}};static deriveSelectedTiles=(o)=>{if(!o?.length)return[];return Array.from(new Set(o.flatMap(({data:i})=>i.MINES&&("selectedTiles"in i.MINES)?i.MINES.selectedTiles:[])))};static deriveMineLocations=(o)=>{return o?.find((a)=>a.data.MINES&&("result"in a.data.MINES))?.data.MINES?.result??[]};static getMinesBetInfo=(o)=>{let i=o?.map((r)=>({minesResult:r.data.MINES&&"result"in r.data.MINES?r.data.MINES.result:[],selected:r.data.MINES&&"selectedTiles"in r.data.MINES?r.data.MINES.selectedTiles:[]}))??[],a=[],t=[];return i.forEach(({minesResult:r,selected:e})=>{a.push(...e),t.push(...r)}),{selected:a,mines:t}};static deriveOutcome=(o)=>{let a=(o?.betActions??[]).find((r)=>r.data.MINES&&("result"in r.data.MINES))?.data.MINES;if(!a||!a?.result||a?.result?.length===0)return null;return A(o?.multiplier??0).isGreaterThan(0)?"WIN":"LOSS"};static deriveAutoOutcome=(o)=>{let i=o?.betActions??[],a=i.find((e)=>e.data.MINES&&("result"in e.data.MINES))?.data.MINES;if(!a||!a.result)return null;let t=i.flatMap((e)=>e.data.MINES&&("selectedTiles"in e.data.MINES)?e.data.MINES.selectedTiles:[]);return a.result.some((e)=>t.includes(e))?"LOSS":"WIN"};static calculateMinesMultiplier=(o,i)=>{if(!i)return A(0);if(o===0)return A(1);let a=Math.min(jo-o,i);return Ni.calculateMultiplierBN(o,a,Xi)};static getState=(o)=>{let i=o?.betActions??[];if(!i||i.length===0||!o)return Wo.getInitialState();let a=Wo.deriveOutcome(o),t=o?.betActions?.[0]?.data.MINES?.minesCount??0,r=a==="LOSS"?t-1:t,e=a?"VIEWING_RESULTS":"GAME_IN_PROGRESS",n=Wo.deriveSelectedTiles(o?.betActions),s=jo-t-n.length,l=Wo.deriveMineLocations(o?.betActions),u=n.filter((g)=>!l.includes(g)).length;return{currency:o?.currency,selectedTiles:n,mineLocations:l,outcome:a,minesCount:t,numMinesRemaining:r,numGemsFound:u,numGemsRemaining:s,state:e,betAmount:A(o.amount)}}}class Pt extends B{static styles=X`
2162
+ `;var Be=1e4,Fs=100;function Qs(o){if(o<Fs)throw new Error("Exceeded Minimum edge allowed on platform");return new P(Be).minus(o).dividedBy(Be)}function De(o){if(!o)return new Uint8Array;let i=[];for(let a=0;a<o.length;a+=2)i.push(parseInt(o.substring(a,a+2),16));return new Uint8Array(i)}var Qt=[new P(1)];function Za(o){if(!Number.isInteger(o)||o<0)throw new Error(`Factorial: <${o}> should be an integer greater or equal to 0`);let i=new P(o);if(!Qt[o])Qt[o]=i.multipliedBy(Za(o-1));return Qt[o]}function Di(o,i){return Za(o).dividedBy(Za(i)).dividedBy(Za(new P(o).minus(i).toNumber()))}var js=new P(256),Sa=new P(25),Ni=class{static getResults(o,i){let a=[],t=Array.from(Array(Sa.toNumber()).keys());return o.map(De).every((r,e)=>{for(let n=0;n<8;n++){if(a.length>=i)return!1;let s=new P(0);for(let l=0;l<4;l++){let h=r[4*n+l];s=s.plus(new P(h).dividedBy(js.pow(l+1)))}s=s.multipliedBy(Sa.minus(new P(8*e+n))).integerValue(P.ROUND_DOWN),a.push(t.splice(s.toNumber(),1)[0])}return!0}),a}static hitMine=(o,i)=>{return i.some((a)=>a===o)};static calculateMultiplierBN(o,i,a){return Qs(a).dividedBy(this.calculateWinChanceBN(o,i))}static calculateWinChanceBN(o,i){return Di(Sa.minus(i).toNumber(),o).dividedBy(Di(Sa.toNumber(),o))}},ro=((o)=>{return o.CLASSIC="CLASSIC",o.LOW_RISK="LOW_RISK",o.MEDIUM_RISK="MEDIUM_RISK",o.HIGH_RISK="HIGH_RISK",o})(ro||{}),Ps=new P(256),Ge=new P(40),As=[{tiles:1,payout:{["CLASSIC"]:[0,3.96],["LOW_RISK"]:[0.7,1.85],["MEDIUM_RISK"]:[0.4,2.75],["HIGH_RISK"]:[0,3.96]}},{tiles:2,payout:{["CLASSIC"]:[0,1.9,4.5],["LOW_RISK"]:[0,2,3.8],["MEDIUM_RISK"]:[0,1.8,5.1],["HIGH_RISK"]:[0,0,17.1]}},{tiles:3,payout:{["CLASSIC"]:[0,1,3.1,10.4],["LOW_RISK"]:[0,1.1,1.38,26],["MEDIUM_RISK"]:[0,0,2.8,50],["HIGH_RISK"]:[0,0,0,81.5]}},{tiles:4,payout:{["CLASSIC"]:[0,0.8,1.8,5,22.5],["LOW_RISK"]:[0,0,2.2,7.9,90],["MEDIUM_RISK"]:[0,0,1.7,10,100],["HIGH_RISK"]:[0,0,0,10,259]}},{tiles:5,payout:{["CLASSIC"]:[0,0.25,1.4,4.1,16.5,36],["LOW_RISK"]:[0,0,1.5,4.2,13,300],["MEDIUM_RISK"]:[0,0,1.4,4,14,390],["HIGH_RISK"]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{["CLASSIC"]:[0,0,1,3.68,7,16.5,40],["LOW_RISK"]:[0,0,1.1,2,6.2,100,700],["MEDIUM_RISK"]:[0,0,0,3,9,180,710],["HIGH_RISK"]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{["CLASSIC"]:[0,0,0.47,3,4.5,14,31,60],["LOW_RISK"]:[0,0,1.1,1.6,3.5,15,225,700],["MEDIUM_RISK"]:[0,0,0,2,7,30,400,800],["HIGH_RISK"]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{["CLASSIC"]:[0,0,0,2.2,4,13,22,55,70],["LOW_RISK"]:[0,0,1.1,1.5,2,5.5,39,100,800],["MEDIUM_RISK"]:[0,0,0,2,4,11,67,400,900],["HIGH_RISK"]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{["CLASSIC"]:[0,0,0,1.55,3,8,15,44,60,85],["LOW_RISK"]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],["MEDIUM_RISK"]:[0,0,0,2,2.5,5,15,100,500,1000],["HIGH_RISK"]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{["CLASSIC"]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],["LOW_RISK"]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],["MEDIUM_RISK"]:[0,0,0,1.6,2,4,7,26,100,500,1000],["HIGH_RISK"]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}],Ka=class{static configs(){return As}static calculateMultiplier(o,i,a){let t=a.filter((e)=>i.includes(e)),r=this.configs().find((e)=>e.tiles===i.length);if(!r)throw new Error(`No configuration found for ${i.length} tiles`);return new P(r.payout[o][t.length]??0)}static getResults(o,i){let a=[],t=Array.from(Array(Ge.toNumber()).keys());return o.map(De).every((r,e)=>{for(let n=0;n<8;n++){if(a.length>=i)return!1;let s=new P(0);for(let l=0;l<4;l++){let h=r[4*n+l];s=s.plus(new P(h).dividedBy(Ps.pow(l+1)))}s=s.multipliedBy(Ge.minus(new P(8*e+n))).integerValue(P.ROUND_DOWN),a.push(t.splice(s.toNumber(),1)[0]+1)}return!0}),a}static getChance({correctPicks:o,picked:i}){return new P(Di(10,o)).multipliedBy(Di(30,i-o)).dividedBy(new P(Di(40,i)))}},xo=((o)=>{return o.ABOVE="ABOVE",o.BELOW="BELOW",o})(xo||{});class Wo{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/mines"}async startManualBet(o){let i=await fetch(`${this.baseUrl}/start`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}async getActiveBet(){try{let i=await(await fetch(`${this.baseUrl}/active-bet`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`}})).json();if(!i.activeBet)return{success:!1,error:"No active bet"};return{success:!0,data:i.activeBet}}catch(o){return{success:!1,error:o?.message||"Unknown Error"}}}async selectTile(o){try{let a=await(await fetch(`${this.baseUrl}/next`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)})).json();if(!a.id)throw new Error("Unknown error");return{success:!0,data:a}}catch(i){return{success:!1,error:i?.message||"Unknown Error"}}}async cashout(){try{let i=await(await fetch(`${this.baseUrl}/cashout`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify({})})).json();if(!i.id)throw new Error("Unknown error");return{success:!0,data:i}}catch(o){return{success:!1,error:o?.message||"Unknown Error"}}}async autobetPlay(o){let i=await fetch(`${this.baseUrl}/auto`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}static getInitialState=()=>{return{selectedTiles:[],mineLocations:[],minesCount:Ci,numMinesRemaining:Ci,numGemsRemaining:Ao-Ci,outcome:null,numGemsFound:0,state:"NO_GAME_ACTIVE",betAmount:P(0)}};static deriveSelectedTiles=(o)=>{if(!o?.length)return[];return Array.from(new Set(o.flatMap(({data:i})=>i.MINES&&("selectedTiles"in i.MINES)?i.MINES.selectedTiles:[])))};static deriveMineLocations=(o)=>{return o?.find((a)=>a.data.MINES&&("result"in a.data.MINES))?.data.MINES?.result??[]};static getMinesBetInfo=(o)=>{let i=o?.map((r)=>({minesResult:r.data.MINES&&"result"in r.data.MINES?r.data.MINES.result:[],selected:r.data.MINES&&"selectedTiles"in r.data.MINES?r.data.MINES.selectedTiles:[]}))??[],a=[],t=[];return i.forEach(({minesResult:r,selected:e})=>{a.push(...e),t.push(...r)}),{selected:a,mines:t}};static deriveOutcome=(o)=>{let a=(o?.betActions??[]).find((r)=>r.data.MINES&&("result"in r.data.MINES))?.data.MINES;if(!a||!a?.result||a?.result?.length===0)return null;return P(o?.multiplier??0).isGreaterThan(0)?"WIN":"LOSS"};static deriveAutoOutcome=(o)=>{let i=o?.betActions??[],a=i.find((e)=>e.data.MINES&&("result"in e.data.MINES))?.data.MINES;if(!a||!a.result)return null;let t=i.flatMap((e)=>e.data.MINES&&("selectedTiles"in e.data.MINES)?e.data.MINES.selectedTiles:[]);return a.result.some((e)=>t.includes(e))?"LOSS":"WIN"};static calculateMinesMultiplier=(o,i)=>{if(!i)return P(0);if(o===0)return P(1);let a=Math.min(Ao-o,i);return Ni.calculateMultiplierBN(o,a,Xi)};static getState=(o)=>{let i=o?.betActions??[];if(!i||i.length===0||!o)return Wo.getInitialState();let a=Wo.deriveOutcome(o),t=o?.betActions?.[0]?.data.MINES?.minesCount??0,r=a==="LOSS"?t-1:t,e=a?"VIEWING_RESULTS":"GAME_IN_PROGRESS",n=Wo.deriveSelectedTiles(o?.betActions),s=Ao-t-n.length,l=Wo.deriveMineLocations(o?.betActions),h=n.filter((g)=>!l.includes(g)).length;return{currency:o?.currency,selectedTiles:n,mineLocations:l,outcome:a,minesCount:t,numMinesRemaining:r,numGemsFound:h,numGemsRemaining:s,state:e,betAmount:P(o.amount)}}}class Pt extends B{static styles=X`
2163
2163
  .currency-display {
2164
2164
  display: flex;
2165
2165
  align-items: center;
@@ -2176,7 +2176,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2176
2176
  color: #b3b3b3;
2177
2177
  white-space: nowrap;
2178
2178
  }
2179
- `;handleDepositClick(){let o=this.gameContext?.depositUrl;if(o)if(window.top)window.top.location.href=o;else window.location.href=o}render(){if(!this.gameContext)return $``;let{balance:o,currency:i}=this.gameContext,a=A(o).isLessThan(this.gameContext.minBet)&&!!this.gameContext.depositUrl;return $`
2179
+ `;handleDepositClick(){let o=this.gameContext?.depositUrl;if(o)if(window.top)window.top.location.href=o;else window.location.href=o}render(){if(!this.gameContext)return $``;let{balance:o,currency:i}=this.gameContext,a=P(o).isLessThan(this.gameContext.minBet)&&!!this.gameContext.depositUrl;return $`
2180
2180
  <origami-input
2181
2181
  .label=${q("common.balance",this.gameContext.language)}
2182
2182
  .value=${o.toFixed(this.gameContext.currencyDecimals)}
@@ -2184,7 +2184,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2184
2184
  readonly
2185
2185
  >
2186
2186
  <div class="currency-display" slot="right-icon">
2187
- ${this.gameContext.showCurrencyAsText?$`<span class="currency-text">${i}</span>`:Co(i)}
2187
+ ${this.gameContext.showCurrencyAsText?$`<span class="currency-text">${i}</span>`:Lo(i)}
2188
2188
  </div>
2189
2189
  ${a?$`
2190
2190
  <origami-button-group .position=${"right"} slot="right-addon">
@@ -2197,11 +2197,11 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2197
2197
  </origami-button-group>
2198
2198
  `:""}
2199
2199
  </origami-input>
2200
- `}}d([ao({context:D,subscribe:!0})],Pt.prototype,"gameContext",void 0),Pt=d([O("origami-balance-input")],Pt);class At extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.minesState=null;this.isGameActive=!1;this.isLoading=!1;this.minesCount=3;this.isSelectingRandomTile=!1;this.isTileLoading=!1;this.isBetAmountValid=!0}static styles=[G,Sa];get _isActionDisabled(){return this.isLoading||this.isSelectingRandomTile||this.isTileLoading}render(){let{betAmount:o=A(0),minesCount:i=0,numGemsFound:a=0,numGemsRemaining:t=0,selectedTiles:r=[]}=this.minesState??{},e=this.gameData?.language||"en",n=Wo.calculateMinesMultiplier(a+1,i),s=Wo.calculateMinesMultiplier(a,i),l=r.length>0,u=A(o).multipliedBy(s).minus(o).toFixed(8),g=A(o).multipliedBy(n).minus(o).toFixed(8);return $`
2200
+ `}}d([ao({context:D,subscribe:!0})],Pt.prototype,"gameContext",void 0),Pt=d([O("origami-balance-input")],Pt);class At extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.minesState=null;this.isGameActive=!1;this.isLoading=!1;this.minesCount=3;this.isSelectingRandomTile=!1;this.isTileLoading=!1;this.isBetAmountValid=!0}static styles=[G,Ha];get _isActionDisabled(){return this.isLoading||this.isSelectingRandomTile||this.isTileLoading}render(){let{betAmount:o=P(0),minesCount:i=0,numGemsFound:a=0,numGemsRemaining:t=0,selectedTiles:r=[]}=this.minesState??{},e=this.gameData?.language||"en",n=Wo.calculateMinesMultiplier(a+1,i),s=Wo.calculateMinesMultiplier(a,i),l=r.length>0,h=P(o).multipliedBy(s).minus(o).toFixed(8),g=P(o).multipliedBy(n).minus(o).toFixed(8);return $`
2201
2201
  <origami-balance-input></origami-balance-input>
2202
2202
  <origami-bet-amount-input
2203
2203
  ?disabled=${this.inputsDisabled}
2204
- @bet-amount-validity-change=${(S)=>{this.isBetAmountValid=S.detail.isValid}}
2204
+ @bet-amount-validity-change=${(H)=>{this.isBetAmountValid=H.detail.isValid}}
2205
2205
  ></origami-bet-amount-input>
2206
2206
  ${this.isGameActive?$`
2207
2207
  <div class="grid-two-cells in-game-stats">
@@ -2222,7 +2222,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2222
2222
  <origami-raw-currency-input
2223
2223
  class="full-width"
2224
2224
  .label=${q("common.profit",e)}
2225
- .value=${u}
2225
+ .value=${h}
2226
2226
  .currency=${this.gameData?.currency??"USD"}
2227
2227
  readonly
2228
2228
  >
@@ -2240,7 +2240,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2240
2240
  label=${q("games.mines.mines",e)}
2241
2241
  .options=${ya}
2242
2242
  .value=${this.minesCount.toString()}
2243
- @select-change=${(S)=>{this.emit("mines-count-change",{detail:{count:+S.detail.value}})}}
2243
+ @select-change=${(H)=>{this.emit("mines-count-change",{detail:{count:+H.detail.value}})}}
2244
2244
  ?disabled=${this.inputsDisabled}
2245
2245
  ></origami-select>
2246
2246
  `}
@@ -2281,7 +2281,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2281
2281
  </origami-button>
2282
2282
  `}
2283
2283
  </div>
2284
- `}}d([ao({context:D,subscribe:!0})],At.prototype,"gameData",void 0),d([H({type:Boolean})],At.prototype,"inputsDisabled",void 0),d([H({type:Object})],At.prototype,"minesState",void 0),d([H({type:Boolean})],At.prototype,"isGameActive",void 0),d([H({type:Boolean})],At.prototype,"isLoading",void 0),d([H({type:Number})],At.prototype,"minesCount",void 0),d([H({type:Boolean})],At.prototype,"isSelectingRandomTile",void 0),d([H({type:Boolean})],At.prototype,"isTileLoading",void 0),d([j()],At.prototype,"isBetAmountValid",void 0),At=d([O("origami-mines-manual")],At);var Os=(o)=>{return o.replace(/[^0-9]/g,"")};class jt extends B{constructor(){super(...arguments);this.disabled=!1}static styles=[G];_handleAutobetGamesChange(o){if(o.detail&&typeof o.detail.value==="string"){let i=o.detail.value,a=Os(i);this.gameData?.updateAutobetNumberOfBets(+a)}}_handleAutobetGamesBlur(o){let i=o.detail.value;if(i===""||i==="0")this.gameData?.updateAutobetNumberOfBets(0);else{let a=parseInt(i,10);this.gameData?.updateAutobetNumberOfBets(a)}}preventNonWholeNumberInput(o){if(["e","E","+","-","."].includes(o.key))o.preventDefault()}render(){return $`
2284
+ `}}d([ao({context:D,subscribe:!0})],At.prototype,"gameData",void 0),d([S({type:Boolean})],At.prototype,"inputsDisabled",void 0),d([S({type:Object})],At.prototype,"minesState",void 0),d([S({type:Boolean})],At.prototype,"isGameActive",void 0),d([S({type:Boolean})],At.prototype,"isLoading",void 0),d([S({type:Number})],At.prototype,"minesCount",void 0),d([S({type:Boolean})],At.prototype,"isSelectingRandomTile",void 0),d([S({type:Boolean})],At.prototype,"isTileLoading",void 0),d([A()],At.prototype,"isBetAmountValid",void 0),At=d([O("origami-mines-manual")],At);var Os=(o)=>{return o.replace(/[^0-9]/g,"")};class _t extends B{constructor(){super(...arguments);this.disabled=!1}static styles=[G];_handleAutobetGamesChange(o){if(o.detail&&typeof o.detail.value==="string"){let i=o.detail.value,a=Os(i);this.gameData?.updateAutobetNumberOfBets(+a)}}_handleAutobetGamesBlur(o){let i=o.detail.value;if(i===""||i==="0")this.gameData?.updateAutobetNumberOfBets(0);else{let a=parseInt(i,10);this.gameData?.updateAutobetNumberOfBets(a)}}preventNonWholeNumberInput(o){if(["e","E","+","-","."].includes(o.key))o.preventDefault()}render(){return $`
2285
2285
  <origami-input
2286
2286
  label=${q("autobet.games",this.gameData?.language||"en")}
2287
2287
  type="number"
@@ -2304,7 +2304,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2304
2304
  ></lottie-icon>
2305
2305
  `:_}
2306
2306
  </origami-input>
2307
- `}}d([ao({context:D,subscribe:!0})],jt.prototype,"gameData",void 0),d([H({type:Boolean})],jt.prototype,"disabled",void 0),jt=d([O("origami-bet-count-input")],jt);var Ne=X`
2307
+ `}}d([ao({context:D,subscribe:!0})],_t.prototype,"gameData",void 0),d([S({type:Boolean})],_t.prototype,"disabled",void 0),_t=d([O("origami-bet-count-input")],_t);var Ne=X`
2308
2308
  :host {
2309
2309
  width: 100%;
2310
2310
  height: 100%;
@@ -2411,7 +2411,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2411
2411
  width: 16px;
2412
2412
  height: 16px;
2413
2413
  }
2414
- `;var Ts=(o="en")=>[{value:"5",label:q("autobet.games5",o,"5 games")},{value:"10",label:q("autobet.games10",o,"10 games")},{value:"25",label:q("autobet.games25",o,"25 games")},{value:"50",label:q("autobet.games50",o,"50 games")},{value:"100",label:q("autobet.games100",o,"100 games")},{value:"0",label:q("autobet.infinite",o,"Infinite")}],Me=Ts(),Ee=Me[Me.length-1]?.value??"0",on=ei("autobet-context");var Xs=(o,i)=>{if(!o)return q("autobet.startAutobet",i);return q("autobet.stopAutobet",i)},Bs={onWinPercentage:"0.00",onLossPercentage:"0.00",stopOnProfit:"0.00",stopOnLoss:"0.00",onLossStrategy:"Reset",onWinStrategy:"Reset"},an=(o)=>{if(["e","E","+"].includes(o.key))o.preventDefault()},gi=(o)=>{let i=o.replace(/[^0-9.-]/g,"");if(i.includes(".")){let a=i.split(".");i=`${a[0]}.${a.slice(1).join("")}`}return i};class _t extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetSettings=Bs;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this._isStarting=!1;this._onWinFocused=!1;this._onLossFocused=!1;this._stopOnLossFocused=!1;this._stopOnProfitFocused=!1;this.isBetAmountValid=!0}static styles=[G,Ne];_autobetProvider=new ki(this,{context:on,initialValue:{numberOfBets:Ee,updateNumberOfBets:this.updateNumberOfBets.bind(this)}});willUpdate(o){if(o.has("autobetInProgress")){if(this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"success",message:q("alerts.autobetStarted",this.gameData?.language||"en")}});else if(o.get("autobetInProgress")!==void 0)this.emit("show-alert",{detail:{id:"autobet-stopped",type:"error",message:q("alerts.autobetStopped",this.gameData?.language||"en")}})}if(o.has("autobetInProgress")&&this.autobetInProgress)this._isStarting=!1}updateNumberOfBets(o){this._autobetProvider.setValue({...this._autobetProvider.value,numberOfBets:o})}_handleWinPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onWinPercentage:gi(o.detail.value)}}_handleLossPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onLossPercentage:gi(o.detail.value)}}_handleStopOnProfitChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnProfit:gi(o.detail.value)}}_handleStopOnLossChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnLoss:gi(o.detail.value)}}_hasCustomInputs(){if(!this.customInputsSlot)return!1;let o=this.customInputsSlot.assignedNodes();return o.length>0&&o.some((i)=>i.nodeType===Node.ELEMENT_NODE)}render(){let o=this.gameData?.language||"en";return $`
2414
+ `;var Ts=(o="en")=>[{value:"5",label:q("autobet.games5",o,"5 games")},{value:"10",label:q("autobet.games10",o,"10 games")},{value:"25",label:q("autobet.games25",o,"25 games")},{value:"50",label:q("autobet.games50",o,"50 games")},{value:"100",label:q("autobet.games100",o,"100 games")},{value:"0",label:q("autobet.infinite",o,"Infinite")}],Me=Ts(),Ee=Me[Me.length-1]?.value??"0",on=ei("autobet-context");var Xs=(o,i)=>{if(!o)return q("autobet.startAutobet",i);return q("autobet.stopAutobet",i)},Bs={onWinPercentage:"0.00",onLossPercentage:"0.00",stopOnProfit:"0.00",stopOnLoss:"0.00",onLossStrategy:"Reset",onWinStrategy:"Reset"},an=(o)=>{if(["e","E","+"].includes(o.key))o.preventDefault()},vi=(o)=>{let i=o.replace(/[^0-9.-]/g,"");if(i.includes(".")){let a=i.split(".");i=`${a[0]}.${a.slice(1).join("")}`}return i};class Ot extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetSettings=Bs;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this._isStarting=!1;this._onWinFocused=!1;this._onLossFocused=!1;this._stopOnLossFocused=!1;this._stopOnProfitFocused=!1;this.isBetAmountValid=!0}static styles=[G,Ne];_autobetProvider=new yi(this,{context:on,initialValue:{numberOfBets:Ee,updateNumberOfBets:this.updateNumberOfBets.bind(this)}});willUpdate(o){if(o.has("autobetInProgress")){if(this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"success",message:q("alerts.autobetStarted",this.gameData?.language||"en")}});else if(o.get("autobetInProgress")!==void 0)this.emit("show-alert",{detail:{id:"autobet-stopped",type:"error",message:q("alerts.autobetStopped",this.gameData?.language||"en")}})}if(o.has("autobetInProgress")&&this.autobetInProgress)this._isStarting=!1}updateNumberOfBets(o){this._autobetProvider.setValue({...this._autobetProvider.value,numberOfBets:o})}_handleWinPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onWinPercentage:vi(o.detail.value)}}_handleLossPercentageChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,onLossPercentage:vi(o.detail.value)}}_handleStopOnProfitChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnProfit:vi(o.detail.value)}}_handleStopOnLossChange(o){if(o.detail&&typeof o.detail.value==="string")this.autobetSettings={...this.autobetSettings,stopOnLoss:vi(o.detail.value)}}_hasCustomInputs(){if(!this.customInputsSlot)return!1;let o=this.customInputsSlot.assignedNodes();return o.length>0&&o.some((i)=>i.nodeType===Node.ELEMENT_NODE)}render(){let o=this.gameData?.language||"en";return $`
2415
2415
  <origami-balance-input></origami-balance-input>
2416
2416
 
2417
2417
  <div
@@ -2437,7 +2437,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2437
2437
  ?disabled=${this.autobetSettings.onWinStrategy==="Reset"||this.inputsDisabled}
2438
2438
  ?keepLabelEnabled=${!0}
2439
2439
  @input-focus=${()=>{this._onWinFocused=!0}}
2440
- @input-blur=${(i)=>{this._onWinFocused=!1;let a=A(gi(i.detail.value));this.autobetSettings={...this.autobetSettings,onWinPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2440
+ @input-blur=${(i)=>{this._onWinFocused=!1;let a=P(vi(i.detail.value));this.autobetSettings={...this.autobetSettings,onWinPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2441
2441
  >
2442
2442
  <origami-toggle
2443
2443
  slot="left-addon"
@@ -2469,7 +2469,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2469
2469
  ?disabled=${this.autobetSettings.onLossStrategy==="Reset"||this.inputsDisabled}
2470
2470
  ?keepLabelEnabled=${!0}
2471
2471
  @input-focus=${()=>{this._onLossFocused=!0}}
2472
- @input-blur=${(i)=>{this._onLossFocused=!1;let a=A(gi(i.detail.value));this.autobetSettings={...this.autobetSettings,onLossPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2472
+ @input-blur=${(i)=>{this._onLossFocused=!1;let a=P(vi(i.detail.value));this.autobetSettings={...this.autobetSettings,onLossPercentage:a.isNaN()?"0.00":a.toFixed(2)}}}
2473
2473
  >
2474
2474
  <origami-toggle
2475
2475
  slot="left-addon"
@@ -2502,7 +2502,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2502
2502
  ?disabled=${this.inputsDisabled}
2503
2503
  ?allowNegative=${!0}
2504
2504
  @raw-currency-input-focus=${()=>{this._stopOnLossFocused=!0}}
2505
- @raw-currency-input-blur=${()=>{this._stopOnLossFocused=!1;let i=A(gi(this.autobetSettings.stopOnLoss));this.autobetSettings={...this.autobetSettings,stopOnLoss:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2505
+ @raw-currency-input-blur=${()=>{this._stopOnLossFocused=!1;let i=P(vi(this.autobetSettings.stopOnLoss));this.autobetSettings={...this.autobetSettings,stopOnLoss:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2506
2506
  ></origami-raw-currency-input>
2507
2507
 
2508
2508
  <origami-raw-currency-input
@@ -2514,7 +2514,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2514
2514
  ?disabled=${this.inputsDisabled}
2515
2515
  ?allowNegative=${!0}
2516
2516
  @raw-currency-input-focus=${()=>{this._stopOnProfitFocused=!0}}
2517
- @raw-currency-input-blur=${()=>{this._stopOnProfitFocused=!1;let i=A(gi(this.autobetSettings.stopOnProfit));this.autobetSettings={...this.autobetSettings,stopOnProfit:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2517
+ @raw-currency-input-blur=${()=>{this._stopOnProfitFocused=!1;let i=P(vi(this.autobetSettings.stopOnProfit));this.autobetSettings={...this.autobetSettings,stopOnProfit:i.isNaN()?"0.00":i.toFixed(this.gameData.currencyDecimals)}}}
2518
2518
  ></origami-raw-currency-input>
2519
2519
  </div>
2520
2520
  </div>
@@ -2534,7 +2534,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2534
2534
  >
2535
2535
  ${Xs(this.autobetInProgress,this.gameData?.language||"en")}
2536
2536
  </origami-button>
2537
- `}}d([H({type:Boolean})],_t.prototype,"inputsDisabled",void 0),d([H({type:Object})],_t.prototype,"autobetSettings",void 0),d([H({type:Boolean})],_t.prototype,"autobetStopping",void 0),d([H({type:Boolean})],_t.prototype,"autobetInProgress",void 0),d([H({type:String})],_t.prototype,"profitOnWin",void 0),d([H({type:Boolean})],_t.prototype,"betDisabled",void 0),d([j()],_t.prototype,"_isStarting",void 0),d([j()],_t.prototype,"_onWinFocused",void 0),d([j()],_t.prototype,"_onLossFocused",void 0),d([j()],_t.prototype,"_stopOnLossFocused",void 0),d([j()],_t.prototype,"_stopOnProfitFocused",void 0),d([j()],_t.prototype,"isBetAmountValid",void 0),d([ao({context:D,subscribe:!0})],_t.prototype,"gameData",void 0),d([fo('slot[name="custom-inputs"]')],_t.prototype,"customInputsSlot",void 0),_t=d([O("origami-generic-autobet")],_t);class Ot extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.minesCount=5;this.disableBet=!1;this.isDesktop=!1}static styles=[G,Sa];_handleMinesCountChange(o){this.emit("mines-count-change",{detail:{count:+o.detail.value}})}render(){let o=this.gameData?.language||"en";return $`
2537
+ `}}d([S({type:Boolean})],Ot.prototype,"inputsDisabled",void 0),d([S({type:Object})],Ot.prototype,"autobetSettings",void 0),d([S({type:Boolean})],Ot.prototype,"autobetStopping",void 0),d([S({type:Boolean})],Ot.prototype,"autobetInProgress",void 0),d([S({type:String})],Ot.prototype,"profitOnWin",void 0),d([S({type:Boolean})],Ot.prototype,"betDisabled",void 0),d([A()],Ot.prototype,"_isStarting",void 0),d([A()],Ot.prototype,"_onWinFocused",void 0),d([A()],Ot.prototype,"_onLossFocused",void 0),d([A()],Ot.prototype,"_stopOnLossFocused",void 0),d([A()],Ot.prototype,"_stopOnProfitFocused",void 0),d([A()],Ot.prototype,"isBetAmountValid",void 0),d([ao({context:D,subscribe:!0})],Ot.prototype,"gameData",void 0),d([fo('slot[name="custom-inputs"]')],Ot.prototype,"customInputsSlot",void 0),Ot=d([O("origami-generic-autobet")],Ot);class Tt extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.minesCount=5;this.disableBet=!1;this.isDesktop=!1}static styles=[G,Ha];_handleMinesCountChange(o){this.emit("mines-count-change",{detail:{count:+o.detail.value}})}render(){let o=this.gameData?.language||"en";return $`
2538
2538
  <origami-generic-autobet
2539
2539
  data-is-desktop=${this.isDesktop}
2540
2540
  ?inputsDisabled=${this.inputsDisabled}
@@ -2555,7 +2555,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2555
2555
  <origami-bet-count-input></origami-bet-count-input>
2556
2556
  </div>
2557
2557
  </origami-generic-autobet>
2558
- `}}d([H({type:Boolean})],Ot.prototype,"inputsDisabled",void 0),d([H({type:Boolean})],Ot.prototype,"autobetStopping",void 0),d([H({type:Boolean})],Ot.prototype,"autobetInProgress",void 0),d([H({type:String})],Ot.prototype,"profitOnWin",void 0),d([H({type:Number})],Ot.prototype,"minesCount",void 0),d([H({type:Boolean})],Ot.prototype,"disableBet",void 0),d([H({type:Boolean})],Ot.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],Ot.prototype,"gameData",void 0),Ot=d([O("origami-mines-auto")],Ot);var tn=X`
2558
+ `}}d([S({type:Boolean})],Tt.prototype,"inputsDisabled",void 0),d([S({type:Boolean})],Tt.prototype,"autobetStopping",void 0),d([S({type:Boolean})],Tt.prototype,"autobetInProgress",void 0),d([S({type:String})],Tt.prototype,"profitOnWin",void 0),d([S({type:Number})],Tt.prototype,"minesCount",void 0),d([S({type:Boolean})],Tt.prototype,"disableBet",void 0),d([S({type:Boolean})],Tt.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],Tt.prototype,"gameData",void 0),Tt=d([O("origami-mines-auto")],Tt);var tn=X`
2559
2559
  :host {
2560
2560
  container-type: inline-size;
2561
2561
  }
@@ -2591,7 +2591,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2591
2591
  margin-top: 0;
2592
2592
  }
2593
2593
  }
2594
- `;class Tt extends B{constructor(){super(...arguments);this.mode="Manual";this.toggleDisabled=!1;this.isLoading=!1;this.className=""}static styles=[G,tn];betAmount="10.00";_handleToggleChange(o){let i=o.detail?.value;if(i&&i!==this.mode)this.mode=i,this.emit("bet-mode-change",{detail:{tab:i}})}render(){let o=this.gameData?.language||"en";return $`
2594
+ `;class Xt extends B{constructor(){super(...arguments);this.mode="Manual";this.toggleDisabled=!1;this.isLoading=!1;this.className=""}static styles=[G,tn];betAmount="10.00";_handleToggleChange(o){let i=o.detail?.value;if(i&&i!==this.mode)this.mode=i,this.emit("bet-mode-change",{detail:{tab:i}})}render(){let o=this.gameData?.language||"en";return $`
2595
2595
  <div
2596
2596
  class=${to({controls:!0,[this.className]:!!this.className})}
2597
2597
  >
@@ -2610,7 +2610,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2610
2610
 
2611
2611
  <slot name="controls"> </slot>
2612
2612
  </div>
2613
- `}}d([ao({context:D,subscribe:!0})],Tt.prototype,"gameData",void 0),d([H({type:String})],Tt.prototype,"mode",void 0),d([H({type:Boolean})],Tt.prototype,"toggleDisabled",void 0),d([H({type:Boolean})],Tt.prototype,"isLoading",void 0),d([H({type:String})],Tt.prototype,"className",void 0),Tt=d([O("origami-game-sidebar")],Tt);var rn=X`
2613
+ `}}d([ao({context:D,subscribe:!0})],Xt.prototype,"gameData",void 0),d([S({type:String})],Xt.prototype,"mode",void 0),d([S({type:Boolean})],Xt.prototype,"toggleDisabled",void 0),d([S({type:Boolean})],Xt.prototype,"isLoading",void 0),d([S({type:String})],Xt.prototype,"className",void 0),Xt=d([O("origami-game-sidebar")],Xt);var rn=X`
2614
2614
  :host {
2615
2615
  display: block;
2616
2616
  container-type: inline-size;
@@ -2692,7 +2692,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2692
2692
  display: flex;
2693
2693
  }
2694
2694
  }
2695
- `;class Xt extends B{constructor(){super(...arguments);this.showLogo=!0;this.showHistoryButton=!0;this.isVolumeSliderOpen=!1}static styles=[G,rn];handleLobbyClick(){let o=this.gameData?.lobbyUrl||"https://betorigami.com";if(window.top)window.top.location.href=o;else window.location.href=o}handleVolumeClick(){if(this.isVolumeSliderOpen=!this.isVolumeSliderOpen,document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleInstantBetClick(){if(this.gameData?.updateInstantBetEnabled(!this.gameData?.instantBetEnabled),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleProvablyFairClick(){if(this.emit("footer-provably-fair-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleGameInfoClick(){if(this.emit("footer-game-info-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleHotkeysClick(){if(this.gameData?.updateHotkeysOpenEnabled(!this.gameData?.hotkeysOpenEnabled),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleVerifyClick(){if(this.emit("footer-verify-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}render(){let o=this.gameData?.language||"en",i={position:"top",delay:0,hideDelay:0,offset:0,arrow:!0,theme:"light",trigger:["hover"]},a={"icon-wrapper":!0,"icon-active":this.isVolumeSliderOpen},t={"icon-wrapper":!0},r={"icon-wrapper":!0,"icon-active":this.gameData?.instantBetEnabled??!1},e={"icon-wrapper":!0};return $`
2695
+ `;class Bt extends B{constructor(){super(...arguments);this.showLogo=!0;this.showHistoryButton=!0;this.isVolumeSliderOpen=!1}static styles=[G,rn];handleLobbyClick(){let o=this.gameData?.lobbyUrl||"https://betorigami.com";if(window.top)window.top.location.href=o;else window.location.href=o}handleVolumeClick(){if(this.isVolumeSliderOpen=!this.isVolumeSliderOpen,document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleInstantBetClick(){if(this.gameData?.updateInstantBetEnabled(!this.gameData?.instantBetEnabled),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleProvablyFairClick(){if(this.emit("footer-provably-fair-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleGameInfoClick(){if(this.emit("footer-game-info-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleHotkeysClick(){if(this.gameData?.updateHotkeysOpenEnabled(!this.gameData?.hotkeysOpenEnabled),document.activeElement instanceof HTMLElement)document.activeElement.blur()}handleVerifyClick(){if(this.emit("footer-verify-click"),document.activeElement instanceof HTMLElement)document.activeElement.blur()}render(){let o=this.gameData?.language||"en",i={position:"top",delay:0,hideDelay:0,offset:0,arrow:!0,theme:"light",trigger:["hover"]},a={"icon-wrapper":!0,"icon-active":this.isVolumeSliderOpen},t={"icon-wrapper":!0},r={"icon-wrapper":!0,"icon-active":this.gameData?.instantBetEnabled??!1},e={"icon-wrapper":!0};return $`
2696
2696
  <footer class="footer" role="contentinfo" aria-label=${q("common.siteInformation",o)}>
2697
2697
  <nav class="footer-icon-group" role="navigation" aria-label=${q("common.footerNavigation",o)}>
2698
2698
 
@@ -2853,7 +2853,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2853
2853
  </origami-tooltip>
2854
2854
  </div>
2855
2855
  </footer>
2856
- `}}d([ao({context:D,subscribe:!0})],Xt.prototype,"gameData",void 0),d([H({type:Boolean})],Xt.prototype,"showLogo",void 0),d([H({type:Boolean})],Xt.prototype,"showHistoryButton",void 0),d([j()],Xt.prototype,"isVolumeSliderOpen",void 0),Xt=d([O("origami-footer")],Xt);function _o(o,i,a){return new Promise((t)=>{if(a?.duration===Number.POSITIVE_INFINITY)throw new Error("Promise-based animations must be finite.");let r=o.animate(i,{...a,duration:Gs()?0:a?.duration??0});r.addEventListener("cancel",t,{once:!0}),r.addEventListener("finish",t,{once:!0})})}function Gs(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ii(o){return Promise.all(o.getAnimations().map((i)=>{return new Promise((a)=>{i.cancel(),requestAnimationFrame(a)})}))}var nn=new Map,Ds=new WeakMap;function Ns(o){return o??{keyframes:[],options:{duration:0}}}function en(o,i){if(i.toLowerCase()==="rtl")return{keyframes:o.rtlKeyframes||o.keyframes,options:o.options};return o}function Ro(o,i){nn.set(o,Ns(i))}function Oo(o,i,a){let t=Ds.get(o);if(t?.[i])return en(t[i],a.dir);let r=nn.get(i);if(r)return en(r,a.dir);return{keyframes:[],options:{duration:0}}}function Fi(o,i){return new Promise((a)=>{function t(r){if(r.target===o)o.removeEventListener(i,t),a()}o.addEventListener(i,t)})}function*Ra(o=document.activeElement){if(o===null||o===void 0)return;if(yield o,"shadowRoot"in o&&o.shadowRoot&&o.shadowRoot.mode!=="closed")yield*Ra(o.shadowRoot.activeElement)}function sn(){return[...Ra()].pop()}var ln=new WeakMap;function dn(o){let i=ln.get(o);if(!i)i=window.getComputedStyle(o,null),ln.set(o,i);return i}function Ms(o){if(typeof o.checkVisibility==="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=dn(o);return i.visibility!=="hidden"&&i.display!=="none"}function Es(o){let i=dn(o),{overflowY:a,overflowX:t}=i;if(a==="scroll"||t==="scroll")return!0;if(a!=="auto"||t!=="auto")return!1;if(o.scrollHeight>o.clientHeight&&a==="auto")return!0;if(o.scrollWidth>o.clientWidth&&t==="auto")return!0;return!1}function ol(o){let i=o.tagName.toLowerCase(),a=Number(o.getAttribute("tabindex"));if(o.hasAttribute("tabindex")&&(isNaN(a)||a<=-1))return!1;if(o.hasAttribute("disabled"))return!1;if(o.closest("[inert]"))return!1;if(i==="input"&&o.getAttribute("type")==="radio"){let e=o.getRootNode(),n=`input[type='radio'][name="${o.getAttribute("name")}"]`,s=e.querySelector(`${n}:checked`);if(s)return s===o;return e.querySelector(n)===o}if(!Ms(o))return!1;if((i==="audio"||i==="video")&&o.hasAttribute("controls"))return!0;if(o.hasAttribute("tabindex"))return!0;if(o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false")return!0;if(["button","input","select","textarea","a","audio","video","summary","iframe"].includes(i))return!0;return Es(o)}function il(o,i){return o.getRootNode({composed:!0})?.host!==i}function Bt(o){let i=new WeakMap,a=[];function t(r){if(r instanceof Element){if(r.hasAttribute("inert")||r.closest("[inert]"))return;if(i.has(r))return;if(i.set(r,!0),!a.includes(r)&&ol(r))a.push(r);if(r instanceof HTMLSlotElement&&il(r,o))r.assignedElements({flatten:!0}).forEach((e)=>{t(e)});if(r.shadowRoot!==null&&r.shadowRoot.mode==="open")t(r.shadowRoot)}for(let e of r.children)t(e)}return t(o),a.sort((r,e)=>{let n=Number(r.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-n})}var Mi=[];class Qi{element;isExternalActivated=!1;tabDirection="forward";currentFocus=null;previousFocus=null;elementsWithTabbableControls;constructor(o){this.element=o,this.elementsWithTabbableControls=["iframe"]}activate(){Mi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Mi=Mi.filter((o)=>o!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Mi[Mi.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){let o=Bt(this.element);if(!this.element.matches(":focus-within")){let i=o[0],a=o[o.length-1],t=this.tabDirection==="forward"?i:a;if(typeof t?.focus==="function")this.currentFocus=t,t.focus({preventScroll:!1})}}}handleFocusIn=()=>{if(!this.isActive())return;this.checkFocus()};possiblyHasTabbableChildren(o){return this.elementsWithTabbableControls.includes(o.tagName.toLowerCase())||o.hasAttribute("controls")}handleKeyDown=(o)=>{if(o.key!=="Tab"||this.isExternalActivated)return;if(!this.isActive())return;let i=sn();if(this.previousFocus=i,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o.shiftKey)this.tabDirection="backward";else this.tabDirection="forward";let a=Bt(this.element),t=a.findIndex((e)=>e===i);this.previousFocus=this.currentFocus;let r=this.tabDirection==="forward"?1:-1;while(!0){if(t+r>=a.length)t=0;else if(t+r<0)t=a.length-1;else t+=r;this.previousFocus=this.currentFocus;let e=a[t];if(this.tabDirection==="backward"){if(this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return}if(e&&this.possiblyHasTabbableChildren(e))return;o.preventDefault(),this.currentFocus=e??null,this.currentFocus?.focus({preventScroll:!1});let n=[...Ra()];if(this.currentFocus&&n.includes(this.currentFocus)||this.previousFocus&&!n.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())};handleKeyUp=()=>{this.tabDirection="forward"}}var Gt=new Set;function al(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function tl(){let o=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));if(Number.isNaN(o)||!o)return 0;return o}function Ii(o){if(Gt.add(o),!document.documentElement.classList.contains("sl-scroll-lock")){let i=al()+tl(),a=getComputedStyle(document.documentElement).scrollbarGutter;if(!a||a==="auto")a="stable";if(i<2)a="";document.documentElement.style.setProperty("--sl-scroll-lock-gutter",a),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${i}px`)}}function bi(o){if(Gt.delete(o),Gt.size===0)document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size")}var cn=X`
2856
+ `}}d([ao({context:D,subscribe:!0})],Bt.prototype,"gameData",void 0),d([S({type:Boolean})],Bt.prototype,"showLogo",void 0),d([S({type:Boolean})],Bt.prototype,"showHistoryButton",void 0),d([A()],Bt.prototype,"isVolumeSliderOpen",void 0),Bt=d([O("origami-footer")],Bt);function _o(o,i,a){return new Promise((t)=>{if(a?.duration===Number.POSITIVE_INFINITY)throw new Error("Promise-based animations must be finite.");let r=o.animate(i,{...a,duration:Gs()?0:a?.duration??0});r.addEventListener("cancel",t,{once:!0}),r.addEventListener("finish",t,{once:!0})})}function Gs(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function ii(o){return Promise.all(o.getAnimations().map((i)=>{return new Promise((a)=>{i.cancel(),requestAnimationFrame(a)})}))}var nn=new Map,Ds=new WeakMap;function Ns(o){return o??{keyframes:[],options:{duration:0}}}function en(o,i){if(i.toLowerCase()==="rtl")return{keyframes:o.rtlKeyframes||o.keyframes,options:o.options};return o}function Ro(o,i){nn.set(o,Ns(i))}function Oo(o,i,a){let t=Ds.get(o);if(t?.[i])return en(t[i],a.dir);let r=nn.get(i);if(r)return en(r,a.dir);return{keyframes:[],options:{duration:0}}}function Fi(o,i){return new Promise((a)=>{function t(r){if(r.target===o)o.removeEventListener(i,t),a()}o.addEventListener(i,t)})}function*Ra(o=document.activeElement){if(o===null||o===void 0)return;if(yield o,"shadowRoot"in o&&o.shadowRoot&&o.shadowRoot.mode!=="closed")yield*Ra(o.shadowRoot.activeElement)}function sn(){return[...Ra()].pop()}var ln=new WeakMap;function dn(o){let i=ln.get(o);if(!i)i=window.getComputedStyle(o,null),ln.set(o,i);return i}function Ms(o){if(typeof o.checkVisibility==="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let i=dn(o);return i.visibility!=="hidden"&&i.display!=="none"}function Es(o){let i=dn(o),{overflowY:a,overflowX:t}=i;if(a==="scroll"||t==="scroll")return!0;if(a!=="auto"||t!=="auto")return!1;if(o.scrollHeight>o.clientHeight&&a==="auto")return!0;if(o.scrollWidth>o.clientWidth&&t==="auto")return!0;return!1}function ol(o){let i=o.tagName.toLowerCase(),a=Number(o.getAttribute("tabindex"));if(o.hasAttribute("tabindex")&&(isNaN(a)||a<=-1))return!1;if(o.hasAttribute("disabled"))return!1;if(o.closest("[inert]"))return!1;if(i==="input"&&o.getAttribute("type")==="radio"){let e=o.getRootNode(),n=`input[type='radio'][name="${o.getAttribute("name")}"]`,s=e.querySelector(`${n}:checked`);if(s)return s===o;return e.querySelector(n)===o}if(!Ms(o))return!1;if((i==="audio"||i==="video")&&o.hasAttribute("controls"))return!0;if(o.hasAttribute("tabindex"))return!0;if(o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false")return!0;if(["button","input","select","textarea","a","audio","video","summary","iframe"].includes(i))return!0;return Es(o)}function il(o,i){return o.getRootNode({composed:!0})?.host!==i}function Gt(o){let i=new WeakMap,a=[];function t(r){if(r instanceof Element){if(r.hasAttribute("inert")||r.closest("[inert]"))return;if(i.has(r))return;if(i.set(r,!0),!a.includes(r)&&ol(r))a.push(r);if(r instanceof HTMLSlotElement&&il(r,o))r.assignedElements({flatten:!0}).forEach((e)=>{t(e)});if(r.shadowRoot!==null&&r.shadowRoot.mode==="open")t(r.shadowRoot)}for(let e of r.children)t(e)}return t(o),a.sort((r,e)=>{let n=Number(r.getAttribute("tabindex"))||0;return(Number(e.getAttribute("tabindex"))||0)-n})}var Mi=[];class Qi{element;isExternalActivated=!1;tabDirection="forward";currentFocus=null;previousFocus=null;elementsWithTabbableControls;constructor(o){this.element=o,this.elementsWithTabbableControls=["iframe"]}activate(){Mi.push(this.element),document.addEventListener("focusin",this.handleFocusIn),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}deactivate(){Mi=Mi.filter((o)=>o!==this.element),this.currentFocus=null,document.removeEventListener("focusin",this.handleFocusIn),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)}isActive(){return Mi[Mi.length-1]===this.element}activateExternal(){this.isExternalActivated=!0}deactivateExternal(){this.isExternalActivated=!1}checkFocus(){if(this.isActive()&&!this.isExternalActivated){let o=Gt(this.element);if(!this.element.matches(":focus-within")){let i=o[0],a=o[o.length-1],t=this.tabDirection==="forward"?i:a;if(typeof t?.focus==="function")this.currentFocus=t,t.focus({preventScroll:!1})}}}handleFocusIn=()=>{if(!this.isActive())return;this.checkFocus()};possiblyHasTabbableChildren(o){return this.elementsWithTabbableControls.includes(o.tagName.toLowerCase())||o.hasAttribute("controls")}handleKeyDown=(o)=>{if(o.key!=="Tab"||this.isExternalActivated)return;if(!this.isActive())return;let i=sn();if(this.previousFocus=i,this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return;if(o.shiftKey)this.tabDirection="backward";else this.tabDirection="forward";let a=Gt(this.element),t=a.findIndex((e)=>e===i);this.previousFocus=this.currentFocus;let r=this.tabDirection==="forward"?1:-1;while(!0){if(t+r>=a.length)t=0;else if(t+r<0)t=a.length-1;else t+=r;this.previousFocus=this.currentFocus;let e=a[t];if(this.tabDirection==="backward"){if(this.previousFocus&&this.possiblyHasTabbableChildren(this.previousFocus))return}if(e&&this.possiblyHasTabbableChildren(e))return;o.preventDefault(),this.currentFocus=e??null,this.currentFocus?.focus({preventScroll:!1});let n=[...Ra()];if(this.currentFocus&&n.includes(this.currentFocus)||this.previousFocus&&!n.includes(this.previousFocus))break}setTimeout(()=>this.checkFocus())};handleKeyUp=()=>{this.tabDirection="forward"}}var Dt=new Set;function al(){let o=document.documentElement.clientWidth;return Math.abs(window.innerWidth-o)}function tl(){let o=Number(getComputedStyle(document.body).paddingRight.replace(/px/,""));if(Number.isNaN(o)||!o)return 0;return o}function Ii(o){if(Dt.add(o),!document.documentElement.classList.contains("sl-scroll-lock")){let i=al()+tl(),a=getComputedStyle(document.documentElement).scrollbarGutter;if(!a||a==="auto")a="stable";if(i<2)a="";document.documentElement.style.setProperty("--sl-scroll-lock-gutter",a),document.documentElement.classList.add("sl-scroll-lock"),document.documentElement.style.setProperty("--sl-scroll-lock-size",`${i}px`)}}function mi(o){if(Dt.delete(o),Dt.size===0)document.documentElement.classList.remove("sl-scroll-lock"),document.documentElement.style.removeProperty("--sl-scroll-lock-size")}var cn=X`
2857
2857
  :host {
2858
2858
  --sl-spacing-2x-large: 36px;
2859
2859
  --sl-border-radius-medium: 10px;
@@ -2964,7 +2964,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2964
2964
  border: solid 1px var(--sl-color-neutral-0);
2965
2965
  }
2966
2966
  }
2967
- `;class Ua extends B{constructor(){super(...arguments);this.fixedPosition=!1;this.open=!1;this.label="";this.lockScrolling=!1;this.noHeader=!1}static styles=[G,cn];originalTrigger=null;focusTrap=new Qi(this);closeWatcher=null;firstUpdated(){if(this.dialog.hidden=!this.open,this.open){if(this.addOpenListeners(),this.focusTrap.activate(),this.lockScrolling)Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),this.focusTrap.deactivate(),bi(this),this.removeOpenListeners()}requestClose(o){if(this.emit("modal-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"dialog.denyClose",{dir:""});_o(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){if("CloseWatcher"in window)this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard");else document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){this.closeWatcher?.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown=(o)=>{if(o.key==="Escape"&&this.focusTrap.isActive()&&this.open)o.stopPropagation(),this.requestClose("keyboard")};async handleOpenChange(){if(this.open){if(this.emit("modal-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.focusTrap.activate(),this.lockScrolling)Ii(this);let o=this.querySelector("[autofocus]");if(o)o.removeAttribute("autofocus");await Promise.all([ii(this.dialog),ii(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{if(!this.emit("modal-initial-focus",{cancelable:!0}).defaultPrevented)if(o)o.focus({preventScroll:!0});else this.panel.focus({preventScroll:!0});if(o)o.setAttribute("autofocus","")});let i=Oo(this,"dialog.show",{dir:""}),a=Oo(this,"dialog.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(this.overlay,a.keyframes,a.options)]),this.emit("modal-after-show")}else{this.emit("modal-hide"),this.removeOpenListeners(),this.focusTrap.deactivate(),await Promise.all([ii(this.dialog),ii(this.overlay)]);let o=Oo(this,"dialog.hide",{dir:""}),i=Oo(this,"dialog.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,bi(this);let a=this.originalTrigger;if(typeof a?.focus==="function")setTimeout(()=>a.focus());this.emit("modal-after-hide")}}async show(){if(this.open)return;return this.open=!0,Fi(this,"modal-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"modal-after-hide")}render(){return $`
2967
+ `;class Ua extends B{constructor(){super(...arguments);this.fixedPosition=!1;this.open=!1;this.label="";this.lockScrolling=!1;this.noHeader=!1}static styles=[G,cn];originalTrigger=null;focusTrap=new Qi(this);closeWatcher=null;firstUpdated(){if(this.dialog.hidden=!this.open,this.open){if(this.addOpenListeners(),this.focusTrap.activate(),this.lockScrolling)Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),this.focusTrap.deactivate(),mi(this),this.removeOpenListeners()}requestClose(o){if(this.emit("modal-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"dialog.denyClose",{dir:""});_o(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){if("CloseWatcher"in window)this.closeWatcher?.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard");else document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){this.closeWatcher?.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}handleDocumentKeyDown=(o)=>{if(o.key==="Escape"&&this.focusTrap.isActive()&&this.open)o.stopPropagation(),this.requestClose("keyboard")};async handleOpenChange(){if(this.open){if(this.emit("modal-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,this.focusTrap.activate(),this.lockScrolling)Ii(this);let o=this.querySelector("[autofocus]");if(o)o.removeAttribute("autofocus");await Promise.all([ii(this.dialog),ii(this.overlay)]),this.dialog.hidden=!1,requestAnimationFrame(()=>{if(!this.emit("modal-initial-focus",{cancelable:!0}).defaultPrevented)if(o)o.focus({preventScroll:!0});else this.panel.focus({preventScroll:!0});if(o)o.setAttribute("autofocus","")});let i=Oo(this,"dialog.show",{dir:""}),a=Oo(this,"dialog.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(this.overlay,a.keyframes,a.options)]),this.emit("modal-after-show")}else{this.emit("modal-hide"),this.removeOpenListeners(),this.focusTrap.deactivate(),await Promise.all([ii(this.dialog),ii(this.overlay)]);let o=Oo(this,"dialog.hide",{dir:""}),i=Oo(this,"dialog.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.dialog.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1,mi(this);let a=this.originalTrigger;if(typeof a?.focus==="function")setTimeout(()=>a.focus());this.emit("modal-after-hide")}}async show(){if(this.open)return;return this.open=!0,Fi(this,"modal-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"modal-after-hide")}render(){return $`
2968
2968
  <div
2969
2969
  part="base"
2970
2970
  class=${to({dialog:!0,"dialog--open":this.open,"dialog--fixed-position":this.fixedPosition})}
@@ -2982,8 +2982,8 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2982
2982
  role="dialog"
2983
2983
  aria-modal="true"
2984
2984
  aria-hidden=${this.open?"false":"true"}
2985
- aria-label=${mo(this.noHeader?this.label:void 0)}
2986
- aria-labelledby=${mo(!this.noHeader?"title":void 0)}
2985
+ aria-label=${vo(this.noHeader?this.label:void 0)}
2986
+ aria-labelledby=${vo(!this.noHeader?"title":void 0)}
2987
2987
  tabindex="-1"
2988
2988
  >
2989
2989
  <div part="body" class="dialog__body" tabindex="-1"><slot></slot></div>
@@ -2992,7 +2992,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
2992
2992
  </div>
2993
2993
  </div>
2994
2994
  </div>
2995
- `}}d([ao({context:D,subscribe:!0})],Ua.prototype,"gameData",void 0),d([H({type:Boolean})],Ua.prototype,"fixedPosition",void 0),d([fo(".dialog")],Ua.prototype,"dialog",void 0),d([fo(".dialog__panel")],Ua.prototype,"panel",void 0),d([fo(".dialog__overlay")],Ua.prototype,"overlay",void 0),d([H({type:Boolean,reflect:!0})],Ua.prototype,"open",void 0),d([H({reflect:!0})],Ua.prototype,"label",void 0),d([H({type:Boolean})],Ua.prototype,"lockScrolling",void 0),d([H({attribute:"no-header",type:Boolean,reflect:!0})],Ua.prototype,"noHeader",void 0),d([vo("open",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleOpenChange",null),Ua=d([O("origami-modal")],Ua);Ro("dialog.show",{keyframes:[{opacity:0.9,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.hide",{keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0.9,transform:"translateX(100%)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:150}});Ro("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:150}});Ro("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:150}});var un=X`
2995
+ `}}d([ao({context:D,subscribe:!0})],Ua.prototype,"gameData",void 0),d([S({type:Boolean})],Ua.prototype,"fixedPosition",void 0),d([fo(".dialog")],Ua.prototype,"dialog",void 0),d([fo(".dialog__panel")],Ua.prototype,"panel",void 0),d([fo(".dialog__overlay")],Ua.prototype,"overlay",void 0),d([S({type:Boolean,reflect:!0})],Ua.prototype,"open",void 0),d([S({reflect:!0})],Ua.prototype,"label",void 0),d([S({type:Boolean})],Ua.prototype,"lockScrolling",void 0),d([S({attribute:"no-header",type:Boolean,reflect:!0})],Ua.prototype,"noHeader",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Ua.prototype,"handleOpenChange",null),Ua=d([O("origami-modal")],Ua);Ro("dialog.show",{keyframes:[{opacity:0.9,transform:"translateX(100%)"},{opacity:1,transform:"translateX(0)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.hide",{keyframes:[{opacity:1,transform:"translateX(0)"},{opacity:0.9,transform:"translateX(100%)"}],options:{duration:150,easing:"ease-out"}});Ro("dialog.denyClose",{keyframes:[{scale:1},{scale:1.02},{scale:1}],options:{duration:150}});Ro("dialog.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:150}});Ro("dialog.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:150}});var hn=X`
2996
2996
  :host {
2997
2997
  display: flex;
2998
2998
  flex-direction: column;
@@ -3116,7 +3116,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3116
3116
  color: #ffffff !important;
3117
3117
  }
3118
3118
  }
3119
- `;class Lo{static instance;cache=new Map;pendingRequests=new Map;maxCacheSize=50;cacheExpirationMs=300000;static getInstance(){if(!Lo.instance)Lo.instance=new Lo;return Lo.instance}async fetchBetResult(o,i){let a=this.getFromCache(o);if(a)return a;let t=this.pendingRequests.get(o);if(t)return t;let r=this.performFetch(o,i);this.pendingRequests.set(o,r);try{return await r}finally{this.pendingRequests.delete(o)}}async performFetch(o,i){try{let a=await fetch(`${i}/bet/bet-info?betId=${o}`);if(!a.ok)return null;let t=await a.json();return this.addToCache(o,t),t}catch(a){return console.error("Failed to fetch bet result:",a),null}}getFromCache(o){let i=this.cache.get(o);if(!i)return null;if(Date.now()-i.timestamp>this.cacheExpirationMs)return this.cache.delete(o),null;return i.data}addToCache(o,i){if(this.cache.size>=this.maxCacheSize){let a=this.cache.keys().next().value;if(a)this.cache.delete(a)}this.cache.set(o,{data:i,timestamp:Date.now()})}preloadBetResult(o,i){this.fetchBetResult(o,i).catch(()=>{})}}class Dt extends B{constructor(){super(...arguments);this._historyData=[];this._isLoading=!0}static styles=[G,un];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Lo.getInstance();_historyDataChangedHandler=(o)=>{let i=o;this._historyData=[...i.detail.historyData]};_previousHistoryController;connectedCallback(){super.connectedCallback(),this._setupHistoryController()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupHistoryController()}willUpdate(o){if(super.willUpdate(o),this.gameConsumer.value?.historyController!==this._previousHistoryController)this._cleanupHistoryController(),this._setupHistoryController()}_setupHistoryController(){let o=this.gameConsumer.value?.historyController;if(o)o.addEventListener("history-data-changed",this._historyDataChangedHandler),this._previousHistoryController=o,this._initializeFromCache()}_cleanupHistoryController(){if(this._previousHistoryController)this._previousHistoryController.removeEventListener("history-data-changed",this._historyDataChangedHandler),this._previousHistoryController=void 0}async firstUpdated(){if(this._historyData.length>0)this._refreshInBackground();else await this.loadHistoryData()}_initializeFromCache(){let o=this.gameConsumer.value?.historyController;if(o?.isInitialized)this._historyData=[...o.historyData]}async _refreshInBackground(){let o=this.gameConsumer.value?.historyController;if(!o)return;try{await o.refreshHistory(!0)}catch(i){console.error("Failed to refresh history in background:",i)}}async loadHistoryData(){let o=this.gameConsumer.value?.historyController;if(o?.isInitialized&&o.historyData.length>0){this._historyData=[...o.historyData];return}this._isLoading=!0;try{if(o)await o.refreshHistory()}catch(i){console.error("Failed to load history data:",i)}finally{this._isLoading=!1}}_handleRowHover(o){let i=this.gameConsumer.value?.baseUrl;if(i&&o)this.betResultCache.preloadBetResult(o,i)}_formatMonetaryAmount(o,i){let a=Math.abs(o),t=Ri(i),r=Ki(i),e=Ui(i),n="";if(o<0)n+="-";if(e===0)n+=`${r}${a.toFixed(t)}`;if(e===1)n+=`${a.toFixed(t)} ${r}`;return n}_getCurrencyDisplay(o){return Co(o??"USD")}_formatTimestamp(o){let i=new Date(o);if(isNaN(i.getTime()))return o;let a=i.getDate().toString().padStart(2,"0"),t=(i.getMonth()+1).toString().padStart(2,"0"),r=i.getFullYear().toString().slice(-2),e=i.getHours(),n=i.getMinutes().toString().padStart(2,"0"),s=e>=12?"PM":"AM";return e=e%12||12,`${a}/${t}/${r} ${e}:${n}${s}`}_calculateMultiplier(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e)||r===0)return"0.00x";return`${(e/r).toFixed(2)}x`}_calculatePayout(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e))return{amount:0,isProfit:!1};if(e===0)return{amount:-r,isProfit:!1};return{amount:e,isProfit:e>r}}render(){let o=this.gameConsumer.value?.language||"en",i=(this.gameConsumer.value?.mainWidth??0)<768;if(this._isLoading&&this._historyData.length===0)return $`
3119
+ `;class Co{static instance;cache=new Map;pendingRequests=new Map;maxCacheSize=50;cacheExpirationMs=300000;static getInstance(){if(!Co.instance)Co.instance=new Co;return Co.instance}async fetchBetResult(o,i){let a=this.getFromCache(o);if(a)return a;let t=this.pendingRequests.get(o);if(t)return t;let r=this.performFetch(o,i);this.pendingRequests.set(o,r);try{return await r}finally{this.pendingRequests.delete(o)}}async performFetch(o,i){try{let a=await fetch(`${i}/bet/bet-info?betId=${o}`);if(!a.ok)return null;let t=await a.json();return this.addToCache(o,t),t}catch(a){return console.error("Failed to fetch bet result:",a),null}}getFromCache(o){let i=this.cache.get(o);if(!i)return null;if(Date.now()-i.timestamp>this.cacheExpirationMs)return this.cache.delete(o),null;return i.data}addToCache(o,i){if(this.cache.size>=this.maxCacheSize){let a=this.cache.keys().next().value;if(a)this.cache.delete(a)}this.cache.set(o,{data:i,timestamp:Date.now()})}preloadBetResult(o,i){this.fetchBetResult(o,i).catch(()=>{})}}class Nt extends B{constructor(){super(...arguments);this._historyData=[];this._isLoading=!0}static styles=[G,hn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Co.getInstance();_historyDataChangedHandler=(o)=>{let i=o;this._historyData=[...i.detail.historyData]};_previousHistoryController;connectedCallback(){super.connectedCallback(),this._setupHistoryController()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupHistoryController()}willUpdate(o){if(super.willUpdate(o),this.gameConsumer.value?.historyController!==this._previousHistoryController)this._cleanupHistoryController(),this._setupHistoryController()}_setupHistoryController(){let o=this.gameConsumer.value?.historyController;if(o)o.addEventListener("history-data-changed",this._historyDataChangedHandler),this._previousHistoryController=o,this._initializeFromCache()}_cleanupHistoryController(){if(this._previousHistoryController)this._previousHistoryController.removeEventListener("history-data-changed",this._historyDataChangedHandler),this._previousHistoryController=void 0}async firstUpdated(){if(this._historyData.length>0)this._refreshInBackground();else await this.loadHistoryData()}_initializeFromCache(){let o=this.gameConsumer.value?.historyController;if(o?.isInitialized)this._historyData=[...o.historyData]}async _refreshInBackground(){let o=this.gameConsumer.value?.historyController;if(!o)return;try{await o.refreshHistory(!0)}catch(i){console.error("Failed to refresh history in background:",i)}}async loadHistoryData(){let o=this.gameConsumer.value?.historyController;if(o?.isInitialized&&o.historyData.length>0){this._historyData=[...o.historyData];return}this._isLoading=!0;try{if(o)await o.refreshHistory()}catch(i){console.error("Failed to load history data:",i)}finally{this._isLoading=!1}}_handleRowHover(o){let i=this.gameConsumer.value?.baseUrl;if(i&&o)this.betResultCache.preloadBetResult(o,i)}_formatMonetaryAmount(o,i){let a=Math.abs(o),t=di(i),r=li(i),e=ci(i),n="";if(o<0)n+="-";if(e===0)n+=`${r}${a.toFixed(t)}`;if(e===1)n+=`${a.toFixed(t)} ${r}`;return n}_getCurrencyDisplay(o){return Lo(o??"USD")}_formatTimestamp(o){let i=new Date(o);if(isNaN(i.getTime()))return o;let a=i.getDate().toString().padStart(2,"0"),t=(i.getMonth()+1).toString().padStart(2,"0"),r=i.getFullYear().toString().slice(-2),e=i.getHours(),n=i.getMinutes().toString().padStart(2,"0"),s=e>=12?"PM":"AM";return e=e%12||12,`${a}/${t}/${r} ${e}:${n}${s}`}_calculateMultiplier(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e)||r===0)return"0.00x";return`${(e/r).toFixed(2)}x`}_calculatePayout(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e))return{amount:0,isProfit:!1};if(e===0)return{amount:-r,isProfit:!1};return{amount:e,isProfit:e>r}}render(){let o=this.gameConsumer.value?.language||"en",i=(this.gameConsumer.value?.mainWidth??0)<768;if(this._isLoading&&this._historyData.length===0)return $`
3120
3120
  <div class="history-table-container" style=${"display:flex;align-items:center;justify-content:center;min-height:200px;"}>
3121
3121
  <div class="spinner-container">
3122
3122
  <origami-spinner></origami-spinner>
@@ -3181,7 +3181,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3181
3181
 
3182
3182
  ${_}
3183
3183
  </div>
3184
- `}}d([j()],Dt.prototype,"_historyData",void 0),d([j()],Dt.prototype,"_isLoading",void 0),Dt=d([O("origami-history-table")],Dt);var Wa=X`
3184
+ `}}d([A()],Nt.prototype,"_historyData",void 0),d([A()],Nt.prototype,"_isLoading",void 0),Nt=d([O("origami-history-table")],Nt);var Wa=X`
3185
3185
  :host {
3186
3186
  display: flex;
3187
3187
  flex-direction: column;
@@ -3386,7 +3386,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3386
3386
  .copy-icon-container .icon-layer.visible {
3387
3387
  opacity: 1;
3388
3388
  }
3389
- `;var hn=X`
3389
+ `;var un=X`
3390
3390
  :host {
3391
3391
  display: grid;
3392
3392
  max-width: 100%;
@@ -3589,7 +3589,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3589
3589
  <path d="M-1.5299e-07 11L3.5 14.5L4.9 11.7L2.8 9.6L-1.5299e-07 11Z" fill="#03BD02"/>
3590
3590
  <path d="M10.5 14.5L14 11L11.2 9.6L9.1 11.7L10.5 14.5Z" fill="#01E401"/>
3591
3591
  <path d="M14 4L10.5 0.5L9.1 3.3L11.2 5.4L14 4Z" fill="#019902"/>
3592
- </svg>`,nl={Keno:el,Mines:rl};class Nt extends B{static styles=[G,fn];betResultCache=Lo.getInstance();gameConsumer=new wo(this,{context:D,subscribe:!0});constructor(){super();this.payout=null;this.multiplier=void 0;this.currencySymbol="$";this.title="";this.description="";this.gemCount=4;this.gameType="Keno";this.isLoss=!1;this.isPush=!1;this.addEventListener("click",this.handleClick),this.addEventListener("mouseenter",this.handleMouseEnter)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("mouseenter",this.handleMouseEnter)}handleClick(){if(this.betId)this.emit("open-bet-result-modal",{detail:{betId:this.betId}})}handleMouseEnter(){let o=this.gameConsumer.value?.baseUrl;if(o&&this.betId)this.betResultCache.preloadBetResult(this.betId,o)}updated(o){if(o.has("multiplier")&&this.multiplier!==void 0)this.isLoss=this.multiplier<1,this.isPush=this.multiplier===1}render(){return $`
3592
+ </svg>`,nl={Keno:el,Mines:rl};class Mt extends B{static styles=[G,fn];betResultCache=Co.getInstance();gameConsumer=new wo(this,{context:D,subscribe:!0});constructor(){super();this.payout=null;this.multiplier=void 0;this.currencySymbol="$";this.title="";this.description="";this.gemCount=4;this.gameType="Keno";this.isLoss=!1;this.isPush=!1;this.addEventListener("click",this.handleClick),this.addEventListener("mouseenter",this.handleMouseEnter)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("mouseenter",this.handleMouseEnter)}handleClick(){if(this.betId)this.emit("open-bet-result-modal",{detail:{betId:this.betId}})}handleMouseEnter(){let o=this.gameConsumer.value?.baseUrl;if(o&&this.betId)this.betResultCache.preloadBetResult(this.betId,o)}updated(o){if(o.has("multiplier")&&this.multiplier!==void 0)this.isLoss=this.multiplier<1,this.isPush=this.multiplier===1}render(){return $`
3593
3593
  <div class="game-win-popup-top">
3594
3594
  <h2 id="win-popup-multiplier" class="game-win-popup-multiplier">
3595
3595
  ${this.title||(this.multiplier!==void 0?$`${this.multiplier.toFixed(2)}x`:"")}
@@ -3599,7 +3599,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3599
3599
  <div class="game-win-popup-bottom">
3600
3600
  <span id="win-popup-amount" class="game-win-popup-amount">
3601
3601
  ${this.currencySymbol}${this.payout?.toFixed(2)??"0.00"}
3602
- ${Co(this.gameConsumer.value?.currency||"USD")}
3602
+ ${Lo(this.gameConsumer.value?.currency||"USD")}
3603
3603
  </span>
3604
3604
 
3605
3605
  <div class="game-win-popup-vertical-divider"></div>
@@ -3609,7 +3609,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3609
3609
  ${nl[this.gameType]}
3610
3610
  </div>
3611
3611
  </div>
3612
- `}}d([H({type:Object})],Nt.prototype,"payout",void 0),d([H({type:Number})],Nt.prototype,"multiplier",void 0),d([H({type:String})],Nt.prototype,"currencySymbol",void 0),d([H({type:String})],Nt.prototype,"title",void 0),d([H({type:String})],Nt.prototype,"description",void 0),d([H({type:Number})],Nt.prototype,"gemCount",void 0),d([H({type:String})],Nt.prototype,"gameType",void 0),d([H({type:String,reflect:!0})],Nt.prototype,"betId",void 0),d([H({type:Boolean,reflect:!0,attribute:"is-loss"})],Nt.prototype,"isLoss",void 0),d([H({type:Boolean,reflect:!0,attribute:"is-push"})],Nt.prototype,"isPush",void 0),Nt=d([O("origami-game-win-popup")],Nt);var pn=eo`
3612
+ `}}d([S({type:Object})],Mt.prototype,"payout",void 0),d([S({type:Number})],Mt.prototype,"multiplier",void 0),d([S({type:String})],Mt.prototype,"currencySymbol",void 0),d([S({type:String})],Mt.prototype,"title",void 0),d([S({type:String})],Mt.prototype,"description",void 0),d([S({type:Number})],Mt.prototype,"gemCount",void 0),d([S({type:String})],Mt.prototype,"gameType",void 0),d([S({type:String,reflect:!0})],Mt.prototype,"betId",void 0),d([S({type:Boolean,reflect:!0,attribute:"is-loss"})],Mt.prototype,"isLoss",void 0),d([S({type:Boolean,reflect:!0,attribute:"is-push"})],Mt.prototype,"isPush",void 0),Mt=d([O("origami-game-win-popup")],Mt);var pn=eo`
3613
3613
  <svg xmlns="http://www.w3.org/2000/svg" width="65" height="69" viewBox="0 0 65 69" fill="none"><path fill="#E11717" d="M7.247 10.357c4.914-4.914 9.722-8.074 10.738-7.058l3.68 3.68c.074-.03.149-.058.224-.087.035-.014.07-.03.107-.043.143-.055.287-.107.431-.16l.212-.077a31.034 31.034 0 0 1 2.103-.67l.182-.05c.169-.047.337-.091.506-.135l.084-.021a31.643 31.643 0 0 1 .624-.15c10.298-2.39 21.558.426 29.584 8.452 12.37 12.37 12.37 32.425 0 44.795-10.92 10.921-27.832 12.198-40.156 3.834l-.078-.054a31.534 31.534 0 0 1-1.228-.881l-.142-.107c-.181-.139-.36-.28-.54-.423l-.136-.11a31.96 31.96 0 0 1-.526-.434l-.116-.096c-.136-.116-.27-.236-.404-.355-.087-.076-.174-.15-.26-.228a31.817 31.817 0 0 1-5.266-6.115 31.435 31.435 0 0 1-2.899-5.51 31.792 31.792 0 0 1-1.74-17.968 31.61 31.61 0 0 1 1.639-5.612l-3.68-3.68c-1.016-1.016 2.143-5.824 7.057-10.738Z"/><path fill="#BD2828" d="M55.723 14.038c12.37 12.37 12.37 32.425 0 44.795-12.37 12.37-32.425 12.37-44.794 0-12.37-12.37-12.37-32.425 0-44.795 12.37-12.37 32.424-12.37 44.794 0Z"/><path fill="#E23437" d="M53.598 23.34c-6.27-13.79-22.841-19.744-37.013-13.3-.967.44-1.898.926-2.791 1.454a32.004 32.004 0 0 0-2.853 2.533C.318 24.65-1.182 40.94 6.441 53.165c7.826 9.004 21.155 12.13 32.85 6.812 14.172-6.444 20.577-22.847 14.307-36.636Z"/><ellipse cx="22.165" cy="31.349" fill="#FF2D31" rx="19.091" ry="19.092"/><path fill="#BD2828" d="m21.667 6.981-.011.012a.493.493 0 0 1 .096.073c.952.953-2.258 5.709-7.172 10.623S4.91 25.814 3.957 24.86a.493.493 0 0 1-.074-.096l-.01.012L.19 21.095 17.985 3.3l3.682 3.681Z"/><path fill="#FF2D31" d="M17.985 3.3c1.017 1.016-2.143 5.824-7.056 10.738C6.015 18.952 1.207 22.111.19 21.095c-1.016-1.017 2.143-5.825 7.057-10.739C12.16 5.442 16.969 2.283 17.985 3.3Z"/><path stroke="#fff" stroke-linecap="round" stroke-width="5" d="M8.28 10.522c-6.074-3.905.882-15.022 12.15 0 10.413 13.885 21.55 5.786 24.297 1.302"/></svg>
3614
3614
  `;var gn=eo`<svg xmlns="http://www.w3.org/2000/svg" width="77" height="63" viewBox="0 0 77 63" fill="none"><path fill="#08FC02" d="m38.5 62.125-14-31.5h28l-14 31.5Z"/><path fill="#00D403" d="m38.5 14.875 14 15.75h-28l14-15.75Z"/><path fill="#03BD02" d="M60.375 8.75 77 21.875l-24.5 8.75L60.375 8.75ZM16.625 8.75 0 21.875l24.5 8.75L16.625 8.75Z"/><path fill="#01E401" d="M38.5 14.875 60.375 8.75 52.5 30.625l-14-15.75ZM38.5 14.875 16.625 8.75 24.5 30.625l14-15.75Z"/><path fill="#B5FFC7" d="m16.626 8.752-5.25-3.5L.001 21.877 16.626 8.752Z"/><path fill="#01E401" d="m60.374 8.752 5.25-3.5L77 21.877 60.375 8.752Z"/><path fill="#019902" d="m38.5 62.125 14-31.5 24.5-8.75-38.5 40.25Z"/><path fill="#01E200" d="m38.5 62.125-14-31.5L0 21.875l38.5 40.25Z"/><path fill="#08FC02" d="m38.5 62.125-14-31.5h28l-14 31.5Z"/><path fill="#00D403" d="m38.5 14.875 14 15.75h-28l14-15.75Z"/><path fill="#03BD02" d="M60.375 8.75 77 21.875l-24.5 8.75L60.375 8.75ZM16.625 8.75 0 21.875l24.5 8.75L16.625 8.75Z"/><path fill="#01E401" d="M38.5 14.875 60.375 8.75 52.5 30.625l-14-15.75ZM38.5 14.875 16.625 8.75 24.5 30.625l14-15.75Z"/><path fill="#01E401" d="m60.374 8.752 5.25-3.5L77 21.877 60.375 8.752Z"/><path fill="#019902" d="m38.5 62.125 14-31.5 24.5-8.75-38.5 40.25Z"/><path fill="#01E200" d="m38.5 62.125-14-31.5L0 21.875l38.5 40.25Z"/><path fill="#08FC02" d="M60.374 8.75 38.5 14.875 16.625 8.75l-5.25-3.5L21 .875h35l9.624 4.375-5.25 3.5Z"/></svg>`;var bn=X`
3615
3615
  :host {
@@ -3845,7 +3845,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3845
3845
  transform: scale(1.1);
3846
3846
  }
3847
3847
  }
3848
- `;class Mt extends B{constructor(){super(...arguments);this.tileId=0;this.delayReveal=!1;this.autobetInProgress=!1;this.isAutoMode=!1;this.state="NORMAL";this.ariaLabel="";this.isLoading=!1;this.disabled=!1}static styles=[G,bn];updated(o){super.updated(o);o:if(o.has("state")){let i=o.get("state");if(i!==void 0&&!this._wasGemState(i)&&this._isGem)this.gameData?.hapticController?.click()}}_wasGemState(o){return["SELECTED_GEM","UNSELECTED_GEM","AUTOBET_SELECTED_GEM"].includes(o)}get _isRevealed(){return!["NORMAL","AUTOBET_SELECTED"].includes(this.state)}get _isMine(){return["SELECTED_BOMB","UNSELECTED_BOMB","AUTOBET_SELECTED_BOMB"].includes(this.state)}get _isGem(){return["SELECTED_GEM","UNSELECTED_GEM","AUTOBET_SELECTED_GEM"].includes(this.state)}get _isDisabled(){return this._isRevealed||this.disabled||this.isLoading}_handleClick(){this.gameData?.hapticController?.lightClick(),this.emit("mines-tile-selected",{detail:{tile:this.tileId}})}render(){let o={"mines-tile":!0,[this.state.toLowerCase().replace(/_/g,"-")]:!0,"delay-reveal":this.delayReveal,"is-loading":this.isLoading,"auto-mode":this.isAutoMode},i=this.gameData?.language||"en",a=this._isRevealed?this._isMine?`, ${q("games.mines.mine",i)}`:`, ${q("games.mines.gem",i)}`:`, ${q("games.mines.unrevealed",i)}`,t=this.ariaLabel||`${q("games.mines.tile",i)} ${this.tileId+1}${a}`;return $`
3848
+ `;class Et extends B{constructor(){super(...arguments);this.tileId=0;this.delayReveal=!1;this.autobetInProgress=!1;this.isAutoMode=!1;this.state="NORMAL";this.ariaLabel="";this.isLoading=!1;this.disabled=!1}static styles=[G,bn];updated(o){super.updated(o);o:if(o.has("state")){let i=o.get("state");if(i!==void 0&&!this._wasGemState(i)&&this._isGem)this.gameData?.hapticController?.click()}}_wasGemState(o){return["SELECTED_GEM","UNSELECTED_GEM","AUTOBET_SELECTED_GEM"].includes(o)}get _isRevealed(){return!["NORMAL","AUTOBET_SELECTED"].includes(this.state)}get _isMine(){return["SELECTED_BOMB","UNSELECTED_BOMB","AUTOBET_SELECTED_BOMB"].includes(this.state)}get _isGem(){return["SELECTED_GEM","UNSELECTED_GEM","AUTOBET_SELECTED_GEM"].includes(this.state)}get _isDisabled(){return this._isRevealed||this.disabled||this.isLoading}_handleClick(){this.gameData?.hapticController?.lightClick(),this.emit("mines-tile-selected",{detail:{tile:this.tileId}})}render(){let o={"mines-tile":!0,[this.state.toLowerCase().replace(/_/g,"-")]:!0,"delay-reveal":this.delayReveal,"is-loading":this.isLoading,"auto-mode":this.isAutoMode},i=this.gameData?.language||"en",a=this._isRevealed?this._isMine?`, ${q("games.mines.mine",i)}`:`, ${q("games.mines.gem",i)}`:`, ${q("games.mines.unrevealed",i)}`,t=this.ariaLabel||`${q("games.mines.tile",i)} ${this.tileId+1}${a}`;return $`
3849
3849
  <button
3850
3850
  part="tile-button"
3851
3851
  role="gridcell"
@@ -3861,7 +3861,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3861
3861
  <div class="icon-container">${this._isMine?pn:this._isGem?gn:_}</div>
3862
3862
  `:_}
3863
3863
  </button>
3864
- `}}d([H({type:Number})],Mt.prototype,"tileId",void 0),d([H({type:Boolean})],Mt.prototype,"delayReveal",void 0),d([H({type:Boolean})],Mt.prototype,"autobetInProgress",void 0),d([H({type:Boolean})],Mt.prototype,"isAutoMode",void 0),d([H({type:String})],Mt.prototype,"state",void 0),d([H({type:String,attribute:"aria-label"})],Mt.prototype,"ariaLabel",void 0),d([H({type:Boolean})],Mt.prototype,"isLoading",void 0),d([H({type:Boolean})],Mt.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Mt.prototype,"gameData",void 0),Mt=d([O("origami-mines-tile")],Mt);var wn=X`
3864
+ `}}d([S({type:Number})],Et.prototype,"tileId",void 0),d([S({type:Boolean})],Et.prototype,"delayReveal",void 0),d([S({type:Boolean})],Et.prototype,"autobetInProgress",void 0),d([S({type:Boolean})],Et.prototype,"isAutoMode",void 0),d([S({type:String})],Et.prototype,"state",void 0),d([S({type:String,attribute:"aria-label"})],Et.prototype,"ariaLabel",void 0),d([S({type:Boolean})],Et.prototype,"isLoading",void 0),d([S({type:Boolean})],Et.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Et.prototype,"gameData",void 0),Et=d([O("origami-mines-tile")],Et);var wn=X`
3865
3865
  :host {
3866
3866
  display: flex;
3867
3867
  align-items: center;
@@ -3929,7 +3929,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3929
3929
  padding: 12px;
3930
3930
  border-radius: 10px;
3931
3931
  }
3932
- `;class Et extends B{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.hasWon=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[G,wn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&this.minesState===null)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},800)}_getTileInfo(o){let i=this.minesState?.state==="VIEWING_RESULTS",a=this.minesState?.mineLocations?.includes(o)??!1,t=this.minesState?.selectedTiles?.includes(o)??!1,r=i||t,e=this.isAuto&&i&&t,n=this.autobetSelectedTiles.includes(o);return{isViewingResults:i,isMine:a,isSelected:t,isRevealed:r,wasAutoRevealed:e,isAutobetSelected:n}}get tiles(){return Array.from({length:jo},(o,i)=>{let{isMine:a,isRevealed:t,wasAutoRevealed:r}=this._getTileInfo(i);return{id:i,isMine:a,isRevealed:t,wasAutoRevealed:r&&t}})}calculateTileState(o){let{isMine:i,isRevealed:a,wasAutoRevealed:t,isAutobetSelected:r,isSelected:e}=this._getTileInfo(o);if(!a)return r?"AUTOBET_SELECTED":"NORMAL";if(i){if(t)return"AUTOBET_SELECTED_BOMB";return e?"SELECTED_BOMB":"UNSELECTED_BOMB"}if(t)return"AUTOBET_SELECTED_GEM";return e?"SELECTED_GEM":"UNSELECTED_GEM"}render(){let o=this.minesState?.state==="VIEWING_RESULTS",i=!this.isAuto&&this.minesState?.state!=="GAME_IN_PROGRESS"||this.isAuto&&this.minesState!==null,a=this.isAuto||o&&!this.hitBomb;return $`
3932
+ `;class or extends B{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.hasWon=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[G,wn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&this.minesState===null)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},800)}_getTileInfo(o){let i=this.minesState?.state==="VIEWING_RESULTS",a=this.minesState?.mineLocations?.includes(o)??!1,t=this.minesState?.selectedTiles?.includes(o)??!1,r=i||t,e=this.isAuto&&i&&t,n=this.autobetSelectedTiles.includes(o);return{isViewingResults:i,isMine:a,isSelected:t,isRevealed:r,wasAutoRevealed:e,isAutobetSelected:n}}get tiles(){return Array.from({length:Ao},(o,i)=>{let{isMine:a,isRevealed:t,wasAutoRevealed:r}=this._getTileInfo(i);return{id:i,isMine:a,isRevealed:t,wasAutoRevealed:r&&t}})}calculateTileState(o){let{isMine:i,isRevealed:a,wasAutoRevealed:t,isAutobetSelected:r,isSelected:e}=this._getTileInfo(o);if(!a)return r?"AUTOBET_SELECTED":"NORMAL";if(i){if(t)return"AUTOBET_SELECTED_BOMB";return e?"SELECTED_BOMB":"UNSELECTED_BOMB"}if(t)return"AUTOBET_SELECTED_GEM";return e?"SELECTED_GEM":"UNSELECTED_GEM"}render(){let o=this.minesState?.state==="VIEWING_RESULTS",i=!this.isAuto&&this.minesState?.state!=="GAME_IN_PROGRESS"||this.isAuto&&this.minesState!==null,a=this.isAuto||o&&!this.hitBomb;return $`
3933
3933
  <div class="mines-grid-container" role="grid">
3934
3934
  <div
3935
3935
  class=${to({"mines-grid-wrapper":!0})}
@@ -3955,7 +3955,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
3955
3955
  </div>
3956
3956
  </div>
3957
3957
  </div>
3958
- `}}d([H({type:Boolean})],Et.prototype,"isAuto",void 0),d([H({type:Array})],Et.prototype,"autobetSelectedTiles",void 0),d([H({type:Boolean})],Et.prototype,"autobetInProgress",void 0),d([H({type:Object})],Et.prototype,"minesState",void 0),d([H({type:Boolean})],Et.prototype,"hasWon",void 0),d([H({type:Boolean})],Et.prototype,"hitBomb",void 0),d([H({type:Array})],Et.prototype,"loadingTiles",void 0),d([H({type:Boolean})],Et.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],Et.prototype,"gameData",void 0),Et=d([O("origami-mines-grid")],Et);var mn=X`
3958
+ `}}d([S({type:Boolean})],or.prototype,"isAuto",void 0),d([S({type:Array})],or.prototype,"autobetSelectedTiles",void 0),d([S({type:Boolean})],or.prototype,"autobetInProgress",void 0),d([S({type:Object})],or.prototype,"minesState",void 0),d([S({type:Boolean})],or.prototype,"hasWon",void 0),d([S({type:Boolean})],or.prototype,"hitBomb",void 0),d([S({type:Array})],or.prototype,"loadingTiles",void 0),d([S({type:Boolean})],or.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],or.prototype,"gameData",void 0),or=d([O("origami-mines-grid")],or);var vn=X`
3959
3959
  :host {
3960
3960
  --multiplier-success-color: #00E701;
3961
3961
  --multiplier-danger-color: #e9113c;
@@ -4003,7 +4003,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4003
4003
  .multiplier-default {
4004
4004
  color: var(--multiplier-default-color);
4005
4005
  }
4006
- `;var sl=250;class or extends B{constructor(){super(...arguments);this.resultMultiplier=null;this.isWin=!0;this.betId="";this.betTargetMultiplier=2;this.disableAnimation=!1;this.disableSound=!1;this.inGameDisplay=!1;this.ignoreInstantBet=!1;this.currentValue=1;this.isAnimating=!1;this.queuedMultiplier=null}static styles=[G,mn];animationFrame=null;startTime=null;lastHapticTime=0;updated(o){if(o.has("resultMultiplier")&&!this.disableAnimation){if(this.resultMultiplier===null){requestAnimationFrame(()=>{if(this.isConnected)this.currentValue=1});return}if(this.isAnimating)this.queuedMultiplier={resultMultiplier:this.resultMultiplier,isWin:this.isWin,betId:this.betId,betTargetMultiplier:this.betTargetMultiplier};else requestAnimationFrame(()=>{if(this.isConnected)this.startAnimation(this.resultMultiplier,this.betId,this.betTargetMultiplier)})}}disconnectedCallback(){if(super.disconnectedCallback(),this.animationFrame)cancelAnimationFrame(this.animationFrame)}startAnimation(o,i,a){if(this.animationFrame)cancelAnimationFrame(this.animationFrame);let t=a<=o;if(this.gameData?.instantBetEnabled&&!this.ignoreInstantBet){this.isAnimating=!0,this.currentValue=o,requestAnimationFrame(()=>{if(!this.isConnected)return;this.emit("limbo-multiplier-animation-end",{detail:{resultMultiplier:o,isWin:t,betId:i}}),this.isAnimating=!1});return}requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.isAnimating=!0,this.currentValue=1,this.lastHapticTime=0,!this.disableSound)this.gameData?.soundController?.play("limbo-tick").catch((r)=>console.error(r));this.animationFrame=requestAnimationFrame((r)=>{this.startTime=r,this.updateAnimation(r,o,t,i,a)})})}updateAnimation(o,i,a,t,r){if(!this.startTime)return;let e=o-this.startTime,n=Math.min(e/sl,1);if(!this.disableSound&&e-this.lastHapticTime>60&&n<1)this.gameData?.hapticController?.lightClick(),this.lastHapticTime=e;if(i!==null)if(n>=1)this.currentValue=i,this.emit("limbo-multiplier-animation-end",{detail:{resultMultiplier:i,isWin:a,betId:t}}),requestAnimationFrame(()=>{if(this.isConnected){if(this.isAnimating=!1,this.queuedMultiplier){let s=this.queuedMultiplier;this.queuedMultiplier=null,this.startAnimation(s.resultMultiplier,s.betId,s.betTargetMultiplier)}}});else if(i>0)this.currentValue=i**n;else this.currentValue=1;else this.currentValue=1;if(n<1)this.animationFrame=requestAnimationFrame((s)=>this.updateAnimation(s,i,a,t,r))}_getMultiplierColor(){if(this.resultMultiplier!==null){if(this.resultMultiplier<this.betTargetMultiplier&&this.currentValue===this.resultMultiplier)return"multiplier-danger";if(this.currentValue>=this.betTargetMultiplier)return"multiplier-success"}return"multiplier-default"}render(){let o=["multiplier",this._getMultiplierColor()].filter(Boolean).join(" "),i=(this.resultMultiplier===0?0:this.currentValue).toFixed(2);return $`<div class=${o}>${this.disableAnimation?this.resultMultiplier?.toFixed(2):i}X</div>`}}d([ao({context:D,subscribe:!0})],or.prototype,"gameData",void 0),d([H({type:Number})],or.prototype,"resultMultiplier",void 0),d([H({type:Boolean})],or.prototype,"isWin",void 0),d([H({type:String})],or.prototype,"betId",void 0),d([H({type:Number})],or.prototype,"betTargetMultiplier",void 0),d([H({type:Boolean})],or.prototype,"disableAnimation",void 0),d([H({type:Boolean})],or.prototype,"disableSound",void 0),d([H({type:Boolean})],or.prototype,"inGameDisplay",void 0),d([H({type:Boolean})],or.prototype,"ignoreInstantBet",void 0),d([j()],or.prototype,"currentValue",void 0),d([j()],or.prototype,"isAnimating",void 0),d([j()],or.prototype,"queuedMultiplier",void 0),or=d([O("origami-limbo-multiplier")],or);var vn=X`
4006
+ `;var sl=250;class ir extends B{constructor(){super(...arguments);this.resultMultiplier=null;this.isWin=!0;this.betId="";this.betTargetMultiplier=2;this.disableAnimation=!1;this.disableSound=!1;this.inGameDisplay=!1;this.ignoreInstantBet=!1;this.currentValue=1;this.isAnimating=!1;this.queuedMultiplier=null}static styles=[G,vn];animationFrame=null;startTime=null;lastHapticTime=0;updated(o){if(o.has("resultMultiplier")&&!this.disableAnimation){if(this.resultMultiplier===null){requestAnimationFrame(()=>{if(this.isConnected)this.currentValue=1});return}if(this.isAnimating)this.queuedMultiplier={resultMultiplier:this.resultMultiplier,isWin:this.isWin,betId:this.betId,betTargetMultiplier:this.betTargetMultiplier};else requestAnimationFrame(()=>{if(this.isConnected)this.startAnimation(this.resultMultiplier,this.betId,this.betTargetMultiplier)})}}disconnectedCallback(){if(super.disconnectedCallback(),this.animationFrame)cancelAnimationFrame(this.animationFrame)}startAnimation(o,i,a){if(this.animationFrame)cancelAnimationFrame(this.animationFrame);let t=a<=o;if(this.gameData?.instantBetEnabled&&!this.ignoreInstantBet){this.isAnimating=!0,this.currentValue=o,requestAnimationFrame(()=>{if(!this.isConnected)return;this.emit("limbo-multiplier-animation-end",{detail:{resultMultiplier:o,isWin:t,betId:i}}),this.isAnimating=!1});return}requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.isAnimating=!0,this.currentValue=1,this.lastHapticTime=0,!this.disableSound)this.gameData?.soundController?.play("limbo-tick").catch((r)=>console.error(r));this.animationFrame=requestAnimationFrame((r)=>{this.startTime=r,this.updateAnimation(r,o,t,i,a)})})}updateAnimation(o,i,a,t,r){if(!this.startTime)return;let e=o-this.startTime,n=Math.min(e/sl,1);if(!this.disableSound&&e-this.lastHapticTime>60&&n<1)this.gameData?.hapticController?.lightClick(),this.lastHapticTime=e;if(i!==null)if(n>=1)this.currentValue=i,this.emit("limbo-multiplier-animation-end",{detail:{resultMultiplier:i,isWin:a,betId:t}}),requestAnimationFrame(()=>{if(this.isConnected){if(this.isAnimating=!1,this.queuedMultiplier){let s=this.queuedMultiplier;this.queuedMultiplier=null,this.startAnimation(s.resultMultiplier,s.betId,s.betTargetMultiplier)}}});else if(i>0)this.currentValue=i**n;else this.currentValue=1;else this.currentValue=1;if(n<1)this.animationFrame=requestAnimationFrame((s)=>this.updateAnimation(s,i,a,t,r))}_getMultiplierColor(){if(this.resultMultiplier!==null){if(this.resultMultiplier<this.betTargetMultiplier&&this.currentValue===this.resultMultiplier)return"multiplier-danger";if(this.currentValue>=this.betTargetMultiplier)return"multiplier-success"}return"multiplier-default"}render(){let o=["multiplier",this._getMultiplierColor()].filter(Boolean).join(" "),i=(this.resultMultiplier===0?0:this.currentValue).toFixed(2);return $`<div class=${o}>${this.disableAnimation?this.resultMultiplier?.toFixed(2):i}X</div>`}}d([ao({context:D,subscribe:!0})],ir.prototype,"gameData",void 0),d([S({type:Number})],ir.prototype,"resultMultiplier",void 0),d([S({type:Boolean})],ir.prototype,"isWin",void 0),d([S({type:String})],ir.prototype,"betId",void 0),d([S({type:Number})],ir.prototype,"betTargetMultiplier",void 0),d([S({type:Boolean})],ir.prototype,"disableAnimation",void 0),d([S({type:Boolean})],ir.prototype,"disableSound",void 0),d([S({type:Boolean})],ir.prototype,"inGameDisplay",void 0),d([S({type:Boolean})],ir.prototype,"ignoreInstantBet",void 0),d([A()],ir.prototype,"currentValue",void 0),d([A()],ir.prototype,"isAnimating",void 0),d([A()],ir.prototype,"queuedMultiplier",void 0),ir=d([O("origami-limbo-multiplier")],ir);var mn=X`
4007
4007
  :host {
4008
4008
  display: flex;
4009
4009
  flex-direction: column;
@@ -4335,7 +4335,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4335
4335
  background: #848484 !important;
4336
4336
  opacity: 1 !important;
4337
4337
  }
4338
- `;class ir extends B{constructor(){super(...arguments);this.step=1;this.isRollLower=!1;this.value=0;this.min=0;this.max=100;this.disabled=!1;this.resultValue=null;this.showDice=!1;this.isWin=!1;this.inGameDisplay=!1;this.persistResult=!1;this.ignoreInstantBet=!1;this.isResultVisible=!1;this.dimLosingSide=!1}static styles=[G,vn];fadeOutTimer;lastStepValue=null;lastSoundPlayTime=0;disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.fadeOutTimer)}updated(o){if(o.has("resultValue")&&this.resultValue!==null){if(requestAnimationFrame(()=>{if(this.isConnected)this.isResultVisible=!0,this.dimLosingSide=!0}),clearTimeout(this.fadeOutTimer),!this.persistResult)this.fadeOutTimer=setTimeout(()=>{requestAnimationFrame(()=>{if(this.isConnected)this.isResultVisible=!1,this.dimLosingSide=!1})},3000)}}handleChange(o){let i=o.target,a=Number(i.value);if(this.lastStepValue===null)this.lastStepValue=a;else if(Math.floor(a)!==Math.floor(this.lastStepValue)){let t=Date.now();if(t-this.lastSoundPlayTime>50)this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick(),this.lastSoundPlayTime=t}if(this.lastStepValue=a,this.value=a,!this.persistResult){if(this.dimLosingSide)this.dimLosingSide=!1;if(this.isResultVisible)this.isResultVisible=!1,clearTimeout(this.fadeOutTimer)}this.emit("slider-input-change",{detail:{value:a}})}handleFocus(o){o.target.select()}render(){let o={"dice-result":!0,win:this.isWin&&!this.inGameDisplay,lose:!this.isWin&&this.showDice&&!this.inGameDisplay},i=[0,100],a=this.showDice&&this.resultValue!==null&&this.dimLosingSide,t=this.isRollLower!==this.isWin,r={"track-fill":!0,reverse:!this.isRollLower,"losing-side":a&&t,"hide-track-color":this.inGameDisplay},e={"track-remaining":!0,reverse:!this.isRollLower,"losing-side":a&&!t,"hide-track-color":this.inGameDisplay},n=32,s=this.resultValue??0,l=0,u=100,S=`calc(32px + (100% - 64px) * ${Math.max(0,Math.min(100,s))/100})`;return $`
4338
+ `;class ar extends B{constructor(){super(...arguments);this.step=1;this.isRollLower=!1;this.value=0;this.min=0;this.max=100;this.disabled=!1;this.resultValue=null;this.showDice=!1;this.isWin=!1;this.inGameDisplay=!1;this.persistResult=!1;this.ignoreInstantBet=!1;this.isResultVisible=!1;this.dimLosingSide=!1}static styles=[G,mn];fadeOutTimer;lastStepValue=null;lastSoundPlayTime=0;disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.fadeOutTimer)}updated(o){if(o.has("resultValue")&&this.resultValue!==null){if(requestAnimationFrame(()=>{if(this.isConnected)this.isResultVisible=!0,this.dimLosingSide=!0}),clearTimeout(this.fadeOutTimer),!this.persistResult)this.fadeOutTimer=setTimeout(()=>{requestAnimationFrame(()=>{if(this.isConnected)this.isResultVisible=!1,this.dimLosingSide=!1})},3000)}}handleChange(o){let i=o.target,a=Number(i.value);if(this.lastStepValue===null)this.lastStepValue=a;else if(Math.floor(a)!==Math.floor(this.lastStepValue)){let t=Date.now();if(t-this.lastSoundPlayTime>50)this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick(),this.lastSoundPlayTime=t}if(this.lastStepValue=a,this.value=a,!this.persistResult){if(this.dimLosingSide)this.dimLosingSide=!1;if(this.isResultVisible)this.isResultVisible=!1,clearTimeout(this.fadeOutTimer)}this.emit("slider-input-change",{detail:{value:a}})}handleFocus(o){o.target.select()}render(){let o={"dice-result":!0,win:this.isWin&&!this.inGameDisplay,lose:!this.isWin&&this.showDice&&!this.inGameDisplay},i=[0,100],a=this.showDice&&this.resultValue!==null&&this.dimLosingSide,t=this.isRollLower!==this.isWin,r={"track-fill":!0,reverse:!this.isRollLower,"losing-side":a&&t,"hide-track-color":this.inGameDisplay},e={"track-remaining":!0,reverse:!this.isRollLower,"losing-side":a&&!t,"hide-track-color":this.inGameDisplay},n=32,s=this.resultValue??0,l=0,h=100,H=`calc(32px + (100% - 64px) * ${Math.max(0,Math.min(100,s))/100})`;return $`
4339
4339
  <div
4340
4340
  class=${"slider-container"}
4341
4341
  style=${Vo({["--track-fill-width"]:`${this.value}%`,["--result-position"]:`${this.resultValue??0}%`,...this.gameData?.instantBetEnabled&&!this.ignoreInstantBet?{["--dice-result-position-duration"]:"0ms",["--dice-result-opacity-duration"]:"0ms",["--dice-result-color-duration"]:"0ms"}:{}})}
@@ -4385,7 +4385,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4385
4385
 
4386
4386
  ${this.showDice?$`
4387
4387
  <div class=${to({"dice-result-container":!0,visible:this.isResultVisible})}>
4388
- <div class="dice-result-wrapper" style=${Vo({["--result-position-constrained"]:S})}>
4388
+ <div class="dice-result-wrapper" style=${Vo({["--result-position-constrained"]:H})}>
4389
4389
  <div class=${to(o)} aria-live="polite" aria-atomic="true">
4390
4390
  ${this.resultValue!==null?this.resultValue.toFixed(2):"0.00"}
4391
4391
  </div>
@@ -4396,7 +4396,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4396
4396
  </div>
4397
4397
  `}
4398
4398
  </div>
4399
- `}}d([H({type:Number})],ir.prototype,"step",void 0),d([H({type:Boolean})],ir.prototype,"isRollLower",void 0),d([H({type:Number})],ir.prototype,"value",void 0),d([H({type:Number})],ir.prototype,"min",void 0),d([H({type:Number})],ir.prototype,"max",void 0),d([H({type:Boolean,reflect:!0})],ir.prototype,"disabled",void 0),d([H({type:Number})],ir.prototype,"resultValue",void 0),d([H({type:Boolean})],ir.prototype,"showDice",void 0),d([H({type:Boolean})],ir.prototype,"isWin",void 0),d([H({type:Boolean})],ir.prototype,"inGameDisplay",void 0),d([H({type:Boolean})],ir.prototype,"persistResult",void 0),d([H({type:Boolean})],ir.prototype,"ignoreInstantBet",void 0),d([ao({context:D,subscribe:!0})],ir.prototype,"gameData",void 0),d([j()],ir.prototype,"isResultVisible",void 0),d([j()],ir.prototype,"dimLosingSide",void 0),ir=d([O("origami-dice-slider")],ir);var Ei=eo`
4399
+ `}}d([S({type:Number})],ar.prototype,"step",void 0),d([S({type:Boolean})],ar.prototype,"isRollLower",void 0),d([S({type:Number})],ar.prototype,"value",void 0),d([S({type:Number})],ar.prototype,"min",void 0),d([S({type:Number})],ar.prototype,"max",void 0),d([S({type:Boolean,reflect:!0})],ar.prototype,"disabled",void 0),d([S({type:Number})],ar.prototype,"resultValue",void 0),d([S({type:Boolean})],ar.prototype,"showDice",void 0),d([S({type:Boolean})],ar.prototype,"isWin",void 0),d([S({type:Boolean})],ar.prototype,"inGameDisplay",void 0),d([S({type:Boolean})],ar.prototype,"persistResult",void 0),d([S({type:Boolean})],ar.prototype,"ignoreInstantBet",void 0),d([ao({context:D,subscribe:!0})],ar.prototype,"gameData",void 0),d([A()],ar.prototype,"isResultVisible",void 0),d([A()],ar.prototype,"dimLosingSide",void 0),ar=d([O("origami-dice-slider")],ar);var Ei=eo`
4400
4400
  <svg xmlns="http://www.w3.org/2000/svg" width="64" height="65" viewBox="0 0 64 65" fill="none">
4401
4401
  <path fill="#D9D9D9" d="M0 48.4v-32l16-16h32l16 16v32l-16 16H16l-16-16Z"/>
4402
4402
  <path fill="#08FC02" d="M12.8 42V22.8l9.6-9.6h19.2l9.6 9.6V42l-9.6 9.6H22.4L12.8 42Z"/>
@@ -4629,7 +4629,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4629
4629
  text-align: center;
4630
4630
  display: block;
4631
4631
  }
4632
- `;class ar extends B{constructor(){super(...arguments);this.number=1;this.state="NORMAL";this.disabled=!1;this.ariaLabel=""}static styles=[G,kn];updated(o){if(super.updated(o),o.has("state")&&this.state==="WIN")this.gameData?.hapticController?.click()}handleClick(){this.gameData?.hapticController?.lightClick(),this.emit("keno-tile-click",{detail:{tile:this.number}})}render(){let o={"keno-tile":!0,[this.state.toLowerCase()]:!0},i=this.state==="SELECTED"||this.state==="WIN";return $`
4632
+ `;class tr extends B{constructor(){super(...arguments);this.number=1;this.state="NORMAL";this.disabled=!1;this.ariaLabel=""}static styles=[G,kn];updated(o){if(super.updated(o),o.has("state")&&this.state==="WIN")this.gameData?.hapticController?.click()}handleClick(){this.gameData?.hapticController?.lightClick(),this.emit("keno-tile-click",{detail:{tile:this.number}})}render(){let o={"keno-tile":!0,[this.state.toLowerCase()]:!0},i=this.state==="SELECTED"||this.state==="WIN";return $`
4633
4633
  <button
4634
4634
  @click=${this.handleClick}
4635
4635
  class=${to(o)}
@@ -4641,7 +4641,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4641
4641
  ${this.state==="WIN"?$`<div class="win-icon">${Ei}</div>`:_}
4642
4642
  <p class="number-text">${this.number}</p>
4643
4643
  </button>
4644
- `}}d([H({type:Number})],ar.prototype,"number",void 0),d([H({type:String})],ar.prototype,"state",void 0),d([H({type:Boolean,reflect:!0})],ar.prototype,"disabled",void 0),d([H({type:String,attribute:"aria-label"})],ar.prototype,"ariaLabel",void 0),d([ao({context:D,subscribe:!0})],ar.prototype,"gameData",void 0),ar=d([O("origami-keno-tile")],ar);var xn=X`
4644
+ `}}d([S({type:Number})],tr.prototype,"number",void 0),d([S({type:String})],tr.prototype,"state",void 0),d([S({type:Boolean,reflect:!0})],tr.prototype,"disabled",void 0),d([S({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",void 0),d([ao({context:D,subscribe:!0})],tr.prototype,"gameData",void 0),tr=d([O("origami-keno-tile")],tr);var xn=X`
4645
4645
  :host {
4646
4646
  display: flex;
4647
4647
  align-items: center;
@@ -4688,7 +4688,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4688
4688
  gap: 12px;
4689
4689
  }
4690
4690
  }
4691
- `;class tr extends B{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.popupShowing=!1;this.isPlaying=!1;this.gameOver=!1;this.autoselectRunning=!1;this.enableSounds=!0;this.ariaLabel="";this.isDesktop=!1}static styles=[G,xn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&!this.isPlaying&&!this.gameOver)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},1100)}get selectedCount(){return this.selectedTiles.length}get hitCount(){return this.selectedTiles.filter((o)=>this.resultTiles.includes(o)).length}calculateTileState(o){let i=this.selectedTiles.includes(o),a=this.resultTiles.includes(o);if(this.isPlaying||this.gameOver){if(i&&a)return"WIN";if(a&&!i)return"LOSS";if(i)return"SELECTED";return"NORMAL"}if(i)return"SELECTED";return"NORMAL"}render(){let o=Array.from({length:40},(i,a)=>a+1);return $`
4691
+ `;class rr extends B{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.popupShowing=!1;this.isPlaying=!1;this.gameOver=!1;this.autoselectRunning=!1;this.enableSounds=!0;this.ariaLabel="";this.isDesktop=!1}static styles=[G,xn];_hasAnimatedInitialLoad=!1;firstUpdated(){if(!this._hasAnimatedInitialLoad&&!this.isPlaying&&!this.gameOver)setTimeout(()=>{this._hasAnimatedInitialLoad=!0},1100)}get selectedCount(){return this.selectedTiles.length}get hitCount(){return this.selectedTiles.filter((o)=>this.resultTiles.includes(o)).length}calculateTileState(o){let i=this.selectedTiles.includes(o),a=this.resultTiles.includes(o);if(this.isPlaying||this.gameOver){if(i&&a)return"WIN";if(a&&!i)return"LOSS";if(i)return"SELECTED";return"NORMAL"}if(i)return"SELECTED";return"NORMAL"}render(){let o=Array.from({length:40},(i,a)=>a+1);return $`
4692
4692
  <div
4693
4693
  class=${to({"keno-grid":!0,inactive:this.isPlaying,autoselecting:this.autoselectRunning})}
4694
4694
  @click=${()=>this.emit("keno-grid-click")}
@@ -4706,7 +4706,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4706
4706
  ></origami-keno-tile>
4707
4707
  `})}
4708
4708
  </div>
4709
- `}}d([H({type:Array})],tr.prototype,"selectedTiles",void 0),d([H({type:Array})],tr.prototype,"resultTiles",void 0),d([H({type:Boolean})],tr.prototype,"popupShowing",void 0),d([H({type:Boolean,reflect:!0})],tr.prototype,"isPlaying",void 0),d([H({type:Boolean,reflect:!0})],tr.prototype,"gameOver",void 0),d([H({type:Boolean})],tr.prototype,"autoselectRunning",void 0),d([j()],tr.prototype,"enableSounds",void 0),d([H({type:String,attribute:"aria-label"})],tr.prototype,"ariaLabel",void 0),d([ao({context:D,subscribe:!0})],tr.prototype,"gameData",void 0),d([H({type:Boolean})],tr.prototype,"isDesktop",void 0),tr=d([O("origami-keno-grid")],tr);class rr extends zo{constructor(){super(...arguments);this.gameType="MINES";this.inBetResultModal=!1;this.enableAnimation=!1;this.persistResult=!1;this.animatedLimboMultiplier=null;this.animatedDiceResult=null;this.animatedKenoResults=[];this.animatedMinesState=null}static styles=[G,hn];gameConsumer=new wo(this,{context:D,subscribe:!0});connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.enableAnimation&&this.gameType==="LIMBO"&&this.limboData)this.animatedLimboMultiplier=null,setTimeout(()=>{if(this.isConnected)this.animatedLimboMultiplier=this.limboData?.resultMultiplier??null},100);if(this.enableAnimation&&this.gameType==="DICE"&&this.diceData)this.animatedDiceResult=null,setTimeout(()=>{if(this.isConnected)this.animatedDiceResult=this.diceData?.resultValue??null},100);if(this.enableAnimation&&this.gameType==="KENO"&&this.kenoData)this.animatedKenoResults=[],this.kenoData.resultTiles?.forEach((o,i)=>{setTimeout(()=>{if(this.isConnected)this.animatedKenoResults=[...this.animatedKenoResults,o]},100+i*150)});if(this.enableAnimation&&this.gameType==="MINES"&&this.minesData){this.animatedMinesState={selectedTiles:[],mineLocations:this.minesData.mineLocations||[],state:"GAME_IN_PROGRESS"};let o=this.minesData.selectedTiles||[];setTimeout(()=>{if(!this.isConnected)return;o.forEach((a,t)=>{setTimeout(()=>{if(this.isConnected)this.animatedMinesState={...this.animatedMinesState,selectedTiles:[...this.animatedMinesState?.selectedTiles||[],a],state:"GAME_IN_PROGRESS"}},t*200)});let i=o.length*200+300;setTimeout(()=>{if(this.isConnected)this.animatedMinesState={...this.animatedMinesState,state:"VIEWING_RESULTS"}},i)},50)}})}updated(o){if(super.updated(o),o.has("enableAnimation")&&this.enableAnimation)requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.gameType==="LIMBO"&&this.limboData)this.animatedLimboMultiplier=null,setTimeout(()=>{if(this.isConnected)this.animatedLimboMultiplier=this.limboData?.resultMultiplier??null},100);if(this.gameType==="DICE"&&this.diceData)this.animatedDiceResult=null,setTimeout(()=>{if(this.isConnected)this.animatedDiceResult=this.diceData?.resultValue??null},100);if(this.gameType==="KENO"&&this.kenoData)this.animateKenoResults()})}async animateKenoResults(){if(!this.kenoData||!this.isConnected)return;requestAnimationFrame(()=>{if(this.isConnected)this.animatedKenoResults=[]});let o=this.kenoData.resultTiles||[];await new Promise((i)=>setTimeout(i,100));for(let i of o){if(!this.isConnected)break;requestAnimationFrame(()=>{if(this.isConnected)this.animatedKenoResults=[...this.animatedKenoResults,i]}),await new Promise((a)=>setTimeout(a,150))}}render(){switch(this.gameType){case"MINES":let o=this.minesData?.selectedTiles||[],i=this.minesData?.mineLocations||[],a=o.some((r)=>i.includes(r)),t=o.length>0&&!a;return $`
4709
+ `}}d([S({type:Array})],rr.prototype,"selectedTiles",void 0),d([S({type:Array})],rr.prototype,"resultTiles",void 0),d([S({type:Boolean})],rr.prototype,"popupShowing",void 0),d([S({type:Boolean,reflect:!0})],rr.prototype,"isPlaying",void 0),d([S({type:Boolean,reflect:!0})],rr.prototype,"gameOver",void 0),d([S({type:Boolean})],rr.prototype,"autoselectRunning",void 0),d([A()],rr.prototype,"enableSounds",void 0),d([S({type:String,attribute:"aria-label"})],rr.prototype,"ariaLabel",void 0),d([ao({context:D,subscribe:!0})],rr.prototype,"gameData",void 0),d([S({type:Boolean})],rr.prototype,"isDesktop",void 0),rr=d([O("origami-keno-grid")],rr);class er extends zo{constructor(){super(...arguments);this.gameType="MINES";this.inBetResultModal=!1;this.enableAnimation=!1;this.persistResult=!1;this.animatedLimboMultiplier=null;this.animatedDiceResult=null;this.animatedKenoResults=[];this.animatedMinesState=null}static styles=[G,un];gameConsumer=new wo(this,{context:D,subscribe:!0});connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.enableAnimation&&this.gameType==="LIMBO"&&this.limboData)this.animatedLimboMultiplier=null,setTimeout(()=>{if(this.isConnected)this.animatedLimboMultiplier=this.limboData?.resultMultiplier??null},100);if(this.enableAnimation&&this.gameType==="DICE"&&this.diceData)this.animatedDiceResult=null,setTimeout(()=>{if(this.isConnected)this.animatedDiceResult=this.diceData?.resultValue??null},100);if(this.enableAnimation&&this.gameType==="KENO"&&this.kenoData)this.animatedKenoResults=[],this.kenoData.resultTiles?.forEach((o,i)=>{setTimeout(()=>{if(this.isConnected)this.animatedKenoResults=[...this.animatedKenoResults,o]},100+i*150)});if(this.enableAnimation&&this.gameType==="MINES"&&this.minesData){this.animatedMinesState={selectedTiles:[],mineLocations:this.minesData.mineLocations||[],state:"GAME_IN_PROGRESS"};let o=this.minesData.selectedTiles||[];setTimeout(()=>{if(!this.isConnected)return;o.forEach((a,t)=>{setTimeout(()=>{if(this.isConnected)this.animatedMinesState={...this.animatedMinesState,selectedTiles:[...this.animatedMinesState?.selectedTiles||[],a],state:"GAME_IN_PROGRESS"}},t*200)});let i=o.length*200+300;setTimeout(()=>{if(this.isConnected)this.animatedMinesState={...this.animatedMinesState,state:"VIEWING_RESULTS"}},i)},50)}})}updated(o){if(super.updated(o),o.has("enableAnimation")&&this.enableAnimation)requestAnimationFrame(()=>{if(!this.isConnected)return;if(this.gameType==="LIMBO"&&this.limboData)this.animatedLimboMultiplier=null,setTimeout(()=>{if(this.isConnected)this.animatedLimboMultiplier=this.limboData?.resultMultiplier??null},100);if(this.gameType==="DICE"&&this.diceData)this.animatedDiceResult=null,setTimeout(()=>{if(this.isConnected)this.animatedDiceResult=this.diceData?.resultValue??null},100);if(this.gameType==="KENO"&&this.kenoData)this.animateKenoResults()})}async animateKenoResults(){if(!this.kenoData||!this.isConnected)return;requestAnimationFrame(()=>{if(this.isConnected)this.animatedKenoResults=[]});let o=this.kenoData.resultTiles||[];await new Promise((i)=>setTimeout(i,100));for(let i of o){if(!this.isConnected)break;requestAnimationFrame(()=>{if(this.isConnected)this.animatedKenoResults=[...this.animatedKenoResults,i]}),await new Promise((a)=>setTimeout(a,150))}}render(){switch(this.gameType){case"MINES":let o=this.minesData?.selectedTiles||[],i=this.minesData?.mineLocations||[],a=o.some((r)=>i.includes(r)),t=o.length>0&&!a;return $`
4710
4710
  <origami-mines-grid
4711
4711
  .minesState=${this.enableAnimation&&this.animatedMinesState?this.animatedMinesState:{selectedTiles:this.minesData?.selectedTiles||[1,12,13],state:"VIEWING_RESULTS",mineLocations:this.minesData?.mineLocations||[7,17,22,15,23]}}
4712
4712
  ?hasWon=${t}
@@ -4749,7 +4749,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4749
4749
  ?gameOver=${this.kenoData?.gameOver??!0}
4750
4750
  ?popupShowing=${this.kenoData?.popupShowing??!1}
4751
4751
  ></origami-keno-grid>
4752
- `;case"INVALID_GAME":return $`<p>${q("fairness.invalidGame",this.gameConsumer.value?.language||"en")}</p>`;default:this.gameType}}}d([H({type:String})],rr.prototype,"gameType",void 0),d([H({type:Boolean})],rr.prototype,"inBetResultModal",void 0),d([H({type:Object})],rr.prototype,"minesData",void 0),d([H({type:Object})],rr.prototype,"limboData",void 0),d([H({type:Object})],rr.prototype,"diceData",void 0),d([H({type:Object})],rr.prototype,"kenoData",void 0),d([H({type:Boolean})],rr.prototype,"enableAnimation",void 0),d([H({type:Boolean})],rr.prototype,"persistResult",void 0),d([j()],rr.prototype,"animatedLimboMultiplier",void 0),d([j()],rr.prototype,"animatedDiceResult",void 0),d([j()],rr.prototype,"animatedKenoResults",void 0),d([j()],rr.prototype,"animatedMinesState",void 0),rr=d([O("origami-game-outcome-display")],rr);var oa=eo`
4752
+ `;case"INVALID_GAME":return $`<p>${q("fairness.invalidGame",this.gameConsumer.value?.language||"en")}</p>`;default:this.gameType}}}d([S({type:String})],er.prototype,"gameType",void 0),d([S({type:Boolean})],er.prototype,"inBetResultModal",void 0),d([S({type:Object})],er.prototype,"minesData",void 0),d([S({type:Object})],er.prototype,"limboData",void 0),d([S({type:Object})],er.prototype,"diceData",void 0),d([S({type:Object})],er.prototype,"kenoData",void 0),d([S({type:Boolean})],er.prototype,"enableAnimation",void 0),d([S({type:Boolean})],er.prototype,"persistResult",void 0),d([A()],er.prototype,"animatedLimboMultiplier",void 0),d([A()],er.prototype,"animatedDiceResult",void 0),d([A()],er.prototype,"animatedKenoResults",void 0),d([A()],er.prototype,"animatedMinesState",void 0),er=d([O("origami-game-outcome-display")],er);var oa=eo`
4753
4753
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
4754
4754
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.6666 1.33325H5.33329V2.66659H2.66663V14.6666H13.3333V2.66659H10.6666V1.33325ZM9.33329 2.66659H6.66663V3.99992H9.33329V2.66659Z" fill="#B3B3B3"/>
4755
4755
  </svg>`,ia=eo`
@@ -4757,7 +4757,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
4757
4757
  <path fill-rule="evenodd" clip-rule="evenodd" d="M20.5027 1.20526C21.1727 1.69256 21.3208 2.63069 20.8335 3.30064L9.37763 19.0506C9.13793 19.3802 8.77443 19.598 8.3708 19.6541C7.96716 19.7101 7.5581 19.5995 7.23769 19.3477L1.19357 14.5977C0.542216 14.0858 0.429156 13.1428 0.941046 12.4914C1.45294 11.8401 2.39594 11.727 3.04729 12.2389L7.86729 16.0269L18.4073 1.53599C18.8946 0.866041 19.8328 0.717971 20.5027 1.20526Z" fill="#B3B3B3"/>
4758
4758
  </svg>`,zn=eo`<svg fill="currentColor" viewBox="0 0 64 64">
4759
4759
  <path d="M32 0C14.326 0 0 14.326 0 32s14.326 32 32 32 32-14.326 32-32S49.674 0 32 0m5.24 51.68H26.76v-21h10.48zM32 24.56a6.12 6.12 0 1 1 6.12-6.12v.04a6.08 6.08 0 0 1-6.08 6.08h-.042z"></path>
4760
- </svg>`;class er extends zo{constructor(){super(...arguments);this.provablyFairData={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};this.showExtendedFields=!0;this.showClientSeedEditor=!1;this.showBackButton=!0;this._isVerifying=!1;this._isVerified=null;this._copiedFields={};this.baseUrl="";this.activeClientSeed="";this._isLoadingClientSeed=!1;this._hasClientSeedChanged=!1;this.newClientSeed="";this._isSavingClientSeed=!1;this.authToken="";this._showProvablyFairInfo=!1}static styles=[G,Wa,X`
4760
+ </svg>`;class nr extends zo{constructor(){super(...arguments);this.provablyFairData={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};this.showExtendedFields=!0;this.showClientSeedEditor=!1;this.showBackButton=!0;this._isVerifying=!1;this._isVerified=null;this._copiedFields={};this.baseUrl="";this.activeClientSeed="";this._isLoadingClientSeed=!1;this._hasClientSeedChanged=!1;this.newClientSeed="";this._isSavingClientSeed=!1;this.authToken="";this._showProvablyFairInfo=!1}static styles=[G,Wa,X`
4761
4761
  /* Accordion styles (match GameInfoModal) */
4762
4762
  .accordion {
4763
4763
  display: flex;
@@ -5006,7 +5006,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5006
5006
 
5007
5007
  ${this._renderVerificationInputs()}
5008
5008
  </div>
5009
- `}_renderProvablyFairInfo(){let o=this.gameConsumer.value?.language||"en",i=["proofString","hashSequence","gameId","tenantId","tenantUserId","nonce"],a=(s)=>{if(!s)return s;let l=new RegExp(`\\b(${i.join("|")})\\b`,"g"),u=[],g=0,S;while(S=l.exec(s)){if(S.index>g)u.push(s.slice(g,S.index));u.push($`<code>${S[0]}</code>`),g=l.lastIndex}if(g<s.length)u.push(s.slice(g));let f="draft-irtf-cfrg-vrf-15",y="https://datatracker.ietf.org/doc/draft-irtf-cfrg-vrf/15/",z=[];for(let m of u)if(typeof m==="string"&&m.includes(f)){let U=m.split(f);U.forEach((b,h)=>{if(b)z.push(b);if(h<U.length-1)z.push($`<a class="verify-link" href=${y} target="_blank" rel="noopener noreferrer">${f}</a>`)})}else z.push(m);return z},t=q("fairness.info.p1",o,"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome."),r=q("fairness.info.p2",o,"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety."),e=q("fairness.info.p3",o,"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time."),n=q("fairness.info.p4",o,"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.");return $`
5009
+ `}_renderProvablyFairInfo(){let o=this.gameConsumer.value?.language||"en",i=["proofString","hashSequence","gameId","tenantId","tenantUserId","nonce"],a=(s)=>{if(!s)return s;let l=new RegExp(`\\b(${i.join("|")})\\b`,"g"),h=[],g=0,H;while(H=l.exec(s)){if(H.index>g)h.push(s.slice(g,H.index));h.push($`<code>${H[0]}</code>`),g=l.lastIndex}if(g<s.length)h.push(s.slice(g));let f="draft-irtf-cfrg-vrf-15",y="https://datatracker.ietf.org/doc/draft-irtf-cfrg-vrf/15/",z=[];for(let v of h)if(typeof v==="string"&&v.includes(f)){let U=v.split(f);U.forEach((b,u)=>{if(b)z.push(b);if(u<U.length-1)z.push($`<a class="verify-link" href=${y} target="_blank" rel="noopener noreferrer">${f}</a>`)})}else z.push(v);return z},t=q("fairness.info.p1",o,"Every round’s result comes from verifiable randomness, not hidden server logic. We build a deterministic seed from values unique to your round—gameId, tenantId, tenantUserId, an incrementing nonce (one per completed round), plus your clientSeed. This guarantees each round is unique and reproducible: same inputs → same random stream → same outcome."),r=q("fairness.info.p2",o,"That seed is run through an Elliptic Curve Verifiable Random Function (ECVRF) per the IETF spec draft-irtf-cfrg-vrf-15. Our server uses its private key to produce a random value and a cryptographic proof (proofString). Anyone with our public key can independently verify that proof for the given inputs—confirming the randomness came from the seed and wasn’t tampered with. The SDK is TypeScript, while the core crypto uses the fastcrypto Rust library via NAPI-RS for performance and safety."),e=q("fairness.info.p3",o,"Once verified, the VRF output seeds a deterministic random byte generator (hashSequence). The games transform those bytes into outcomes using deterministic, unbiased logic. Because the process is deterministic and the nonce advances every completed round, you get both replayable audits (recreate the same round exactly) and fresh, non-repeating randomness each time."),n=q("fairness.info.p4",o,"After a round, you have the inputs (including your clientSeed and the round’s nonce), the VRF output, the proofString, and our public key. Use any ECVRF verifier or our libraries to: (1) verify the proof against the inputs and public key, and (2) regenerate the same hashSequence and outcome. Our private key never leaves secure servers; the public key is safe to use client-side for independent checks.");return $`
5010
5010
  <section class="pf-info">
5011
5011
  <div class="info-message">
5012
5012
  <span class="info-icon">${zn}</span>
@@ -5085,7 +5085,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5085
5085
  </details>
5086
5086
  </div>
5087
5087
  </section>
5088
- `}}d([H({type:Object})],er.prototype,"provablyFairData",void 0),d([H({type:Boolean})],er.prototype,"showExtendedFields",void 0),d([H({type:Boolean})],er.prototype,"showClientSeedEditor",void 0),d([H({type:Boolean})],er.prototype,"showBackButton",void 0),d([j()],er.prototype,"_isVerifying",void 0),d([j()],er.prototype,"_isVerified",void 0),d([j()],er.prototype,"_copiedFields",void 0),d([H({type:String})],er.prototype,"baseUrl",void 0),d([j()],er.prototype,"activeClientSeed",void 0),d([j()],er.prototype,"_isLoadingClientSeed",void 0),d([j()],er.prototype,"_hasClientSeedChanged",void 0),d([j()],er.prototype,"newClientSeed",void 0),d([j()],er.prototype,"_isSavingClientSeed",void 0),d([j()],er.prototype,"authToken",void 0),d([j()],er.prototype,"_showProvablyFairInfo",void 0),er=d([O("origami-fairness-content")],er);class nr extends zo{constructor(){super(...arguments);this.provablyFairData={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};this.activeTab="History";this.showExtendedFields=!0;this.showClientSeedEditor=!1;this.showBackButton=!1}static styles=[G];gameConsumer=new wo(this,{context:D,subscribe:!0});_renderTabContent(){if(this.activeTab==="Fairness")return $`<origami-fairness-content
5088
+ `}}d([S({type:Object})],nr.prototype,"provablyFairData",void 0),d([S({type:Boolean})],nr.prototype,"showExtendedFields",void 0),d([S({type:Boolean})],nr.prototype,"showClientSeedEditor",void 0),d([S({type:Boolean})],nr.prototype,"showBackButton",void 0),d([A()],nr.prototype,"_isVerifying",void 0),d([A()],nr.prototype,"_isVerified",void 0),d([A()],nr.prototype,"_copiedFields",void 0),d([S({type:String})],nr.prototype,"baseUrl",void 0),d([A()],nr.prototype,"activeClientSeed",void 0),d([A()],nr.prototype,"_isLoadingClientSeed",void 0),d([A()],nr.prototype,"_hasClientSeedChanged",void 0),d([A()],nr.prototype,"newClientSeed",void 0),d([A()],nr.prototype,"_isSavingClientSeed",void 0),d([A()],nr.prototype,"authToken",void 0),d([A()],nr.prototype,"_showProvablyFairInfo",void 0),nr=d([O("origami-fairness-content")],nr);class sr extends zo{constructor(){super(...arguments);this.provablyFairData={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};this.activeTab="History";this.showExtendedFields=!0;this.showClientSeedEditor=!1;this.showBackButton=!1}static styles=[G];gameConsumer=new wo(this,{context:D,subscribe:!0});_renderTabContent(){if(this.activeTab==="Fairness")return $`<origami-fairness-content
5089
5089
  .baseUrl=${this.gameConsumer.value?.baseUrl??""}
5090
5090
  .provablyFairData=${this.provablyFairData}
5091
5091
  .showExtendedFields=${this.showExtendedFields}
@@ -5093,7 +5093,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5093
5093
  .showBackButton=${this.showBackButton}
5094
5094
  ></origami-fairness-content>`;return $`<origami-history-table></origami-history-table>`}render(){return $`
5095
5095
  ${this._renderTabContent()}
5096
- `}}d([H({type:Object})],nr.prototype,"provablyFairData",void 0),d([H({type:String})],nr.prototype,"activeTab",void 0),d([H({type:Boolean})],nr.prototype,"showExtendedFields",void 0),d([H({type:Boolean})],nr.prototype,"showClientSeedEditor",void 0),d([H({type:Boolean})],nr.prototype,"showBackButton",void 0),nr=d([O("origami-fairness-details")],nr);class sr extends zo{constructor(){super(...arguments);this.gameType="DICE"}static styles=[G,Wa,X`
5096
+ `}}d([S({type:Object})],sr.prototype,"provablyFairData",void 0),d([S({type:String})],sr.prototype,"activeTab",void 0),d([S({type:Boolean})],sr.prototype,"showExtendedFields",void 0),d([S({type:Boolean})],sr.prototype,"showClientSeedEditor",void 0),d([S({type:Boolean})],sr.prototype,"showBackButton",void 0),sr=d([O("origami-fairness-details")],sr);class lr extends zo{constructor(){super(...arguments);this.gameType="DICE"}static styles=[G,Wa,X`
5097
5097
  .hidden {
5098
5098
  display: none;
5099
5099
  }
@@ -5436,7 +5436,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5436
5436
 
5437
5437
 
5438
5438
  </div>
5439
- `}}d([H({type:String})],sr.prototype,"gameType",void 0),sr=d([O("origami-game-info-modal")],sr);var yn=X`
5439
+ `}}d([S({type:String})],lr.prototype,"gameType",void 0),lr=d([O("origami-game-info-modal")],lr);var yn=X`
5440
5440
  :host {
5441
5441
  display: block;
5442
5442
  width: 100%;
@@ -5659,7 +5659,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5659
5659
  .footer-button-group origami-button {
5660
5660
  flex: 1;
5661
5661
  }
5662
- `;var Sn=X`
5662
+ `;var Hn=X`
5663
5663
  :host {
5664
5664
  display: block;
5665
5665
  height: 100%;
@@ -5820,7 +5820,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5820
5820
  width: 16px;
5821
5821
  height: 16px;
5822
5822
  }
5823
- `;class po{authToken;baseUrl;static totalDiceValue=1e4;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/dice"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}static getMultiplier(o,i){let a=po.getWinChance(o,i);return A(99).dividedBy(A(a)).toFixed(4)}static getWinChance(o,i){let a=i==="ABOVE"?po.totalDiceValue-o:o;return A(a).div(po.totalDiceValue).multipliedBy(100).toFixed(4)}static getSelectedValueFromMultiplier(o,i){let a=A(99).dividedBy(o);return po.getSelectedValueFromWinChance(a.toNumber(),i)}static getSelectedValueFromWinChance(o,i){let a=A(o).dividedBy(100).multipliedBy(po.totalDiceValue);if(i==="ABOVE")return po.totalDiceValue-a.toNumber();return a.toNumber()}static getSelectedValueFromRollOver(o){return po.totalDiceValue-o}static isValidMultiplier(o){if(!o||o==="")return!1;let i=+o;return i>=1.0102&&i<=9900}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.01&&i<=98}}class lr{betData;constructor(o){this.betData=o}_getDiceData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let o=this.betData.betActions[0]?.data.DICE,i=this.betData.betActions[this.betData.betActions.length-1]?.data.DICE;if(!i||!o)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let a=o.direction===xo.BELOW,t=i.result[0],r=o.selectedValue,e=o.direction===xo.ABOVE?t>r:t<r,n=po.getWinChance(o.selectedValue,o.direction);return{resultValue:t,userValue:r,isRollLower:a,winChance:n,isDiceWin:e}}_getMinesData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{mineLocations:[],selectedTiles:[]};return{mineLocations:Wo.deriveMineLocations(this.betData.betActions),selectedTiles:Wo.deriveSelectedTiles(this.betData.betActions)}}_getKenoData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{selectedNumbers:[],drawnNumbers:[],risk:ro.CLASSIC};let o=this.betData.betActions[0]?.data.KENO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.KENO;if(!i||!o)return{selectedNumbers:[],drawnNumbers:[],risk:ro.CLASSIC};return{selectedNumbers:o.selectedNumbers,drawnNumbers:i.result,risk:o.riskLevel}}_getLimboData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultMultiplier:0,targetMultiplier:0};let o=this.betData.betActions[0]?.data.LIMBO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.LIMBO;if(!i||!o)return{resultMultiplier:0,targetMultiplier:0};return{resultMultiplier:i.randomMultiplier,targetMultiplier:o.targetMultiplier,isWin:Number(i.randomMultiplier)>=Number(o.targetMultiplier)}}getMinesDisplayData(){let{mineLocations:o,selectedTiles:i}=this._getMinesData();return{selectedTiles:i,mineLocations:o}}getLimboDisplayData(){let{resultMultiplier:o,targetMultiplier:i,isWin:a}=this._getLimboData();return{isWin:a||!1,betId:this.betData.id||"123",resultMultiplier:Number(o),betTargetMultiplier:Number(i)}}getDiceDisplayData(){let{resultValue:o,userValue:i,isRollLower:a,isDiceWin:t}=this._getDiceData();return{value:i/100,min:2,max:98,step:1,showDice:!0,disabled:!0,resultValue:o/100,isWin:t,isRollLower:a}}getKenoDisplayData(){let{selectedNumbers:o,drawnNumbers:i}=this._getKenoData();return{selectedTiles:o,resultTiles:i,isPlaying:!1,gameOver:!0,popupShowing:!1}}getDiceData(){return this._getDiceData()}}var ll=({gameId:o,tenantId:i,tenantUserId:a,nonce:t,clientSeed:r})=>{return`${o}-${i}-${a}-${t}-${r}`};class dr extends B{constructor(){super(...arguments);this.betId="";this.betData=null}static styles=[G,Sn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Lo.getInstance();async betIdUpdated(){let o=this.gameConsumer.value?.baseUrl;if(!o||!this.betId){this.betData=null;return}let i=await this.betResultCache.fetchBetResult(this.betId,o);this.betData=i}_getDataExtractor(){return this.betData?new lr(this.betData):null}_formatMonetaryAmount(o,i){let a=typeof o==="string"?Number.parseFloat(o.replace(/^\$/,"")):o,t=Math.abs(Number.isNaN(a)?0:a),r=Ri(i),e=Ki(i),n=Ui(i),s="";if((Number.isNaN(a)?0:a)<0)s+="-";if(n===0)s+=`${e}${t.toFixed(r)}`;if(n===1)s+=`${t.toFixed(r)} ${e}`;return s}_calculateMultiplier(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e)||r===0)return"0.00x";return`${(e/r).toFixed(2)}x`}_calculatePayout(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e))return{amount:0,isProfit:!1};if(e===0)return{amount:-r,isProfit:!1};return{amount:e,isProfit:e>r}}_getCurrencyDisplay(){let o=this.betData?.currency?.toUpperCase();if(this.gameData?.showCurrencyAsText)return $`<span class="currency-text">${o??"USD"}</span>`;return Co(o??"USD")}openVerifyOutcomeModal(){this.emit("open-verify-outcome-modal",{detail:{verifyData:{publicKey:this.gameData?.publicKey??"",request:ll({gameId:this.gameType,tenantId:this.betData?.tenantId??"",tenantUserId:this.betData?.tenantUserId??"",nonce:this.betData?.nonce.toString()??"",clientSeed:this.betData?.clientSeed??""}),proof:this.betData?.proof??"",randomness:this.betData?.randomValue??"",clientSeed:this.betData?.clientSeed??""}}})}triggerVerify(){this.openVerifyOutcomeModal()}get gameType(){if(!this.betData)return"LIMBO";let o=this.betData?.betActions?.[this.betData?.betActions.length-1],i=Object.keys(o?.data)?.[0]??"Unknown";return i.charAt(0).toUpperCase()+i.slice(1)}renderLoading(){return $`
5823
+ `;class po{authToken;baseUrl;static totalDiceValue=1e4;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/dice"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}static getMultiplier(o,i){let a=po.getWinChance(o,i);return P(99).dividedBy(P(a)).toFixed(4)}static getWinChance(o,i){let a=i==="ABOVE"?po.totalDiceValue-o:o;return P(a).div(po.totalDiceValue).multipliedBy(100).toFixed(4)}static getSelectedValueFromMultiplier(o,i){let a=P(99).dividedBy(o);return po.getSelectedValueFromWinChance(a.toNumber(),i)}static getSelectedValueFromWinChance(o,i){let a=P(o).dividedBy(100).multipliedBy(po.totalDiceValue);if(i==="ABOVE")return po.totalDiceValue-a.toNumber();return a.toNumber()}static getSelectedValueFromRollOver(o){return po.totalDiceValue-o}static isValidMultiplier(o){if(!o||o==="")return!1;let i=+o;return i>=1.0102&&i<=9900}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.01&&i<=98}}class dr{betData;constructor(o){this.betData=o}_getDiceData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let o=this.betData.betActions[0]?.data.DICE,i=this.betData.betActions[this.betData.betActions.length-1]?.data.DICE;if(!i||!o)return{resultValue:50,userValue:50,isRollLower:!1,winChance:"50.0000",isDiceWin:!1};let a=o.direction===xo.BELOW,t=i.result[0],r=o.selectedValue,e=o.direction===xo.ABOVE?t>r:t<r,n=po.getWinChance(o.selectedValue,o.direction);return{resultValue:t,userValue:r,isRollLower:a,winChance:n,isDiceWin:e}}_getMinesData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{mineLocations:[],selectedTiles:[]};return{mineLocations:Wo.deriveMineLocations(this.betData.betActions),selectedTiles:Wo.deriveSelectedTiles(this.betData.betActions)}}_getKenoData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{selectedNumbers:[],drawnNumbers:[],risk:ro.CLASSIC};let o=this.betData.betActions[0]?.data.KENO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.KENO;if(!i||!o)return{selectedNumbers:[],drawnNumbers:[],risk:ro.CLASSIC};return{selectedNumbers:o.selectedNumbers,drawnNumbers:i.result,risk:o.riskLevel}}_getLimboData(){if(!this.betData.betActions||this.betData.betActions.length===0)return{resultMultiplier:0,targetMultiplier:0};let o=this.betData.betActions[0]?.data.LIMBO,i=this.betData.betActions[this.betData.betActions.length-1]?.data.LIMBO;if(!i||!o)return{resultMultiplier:0,targetMultiplier:0};return{resultMultiplier:i.randomMultiplier,targetMultiplier:o.targetMultiplier,isWin:Number(i.randomMultiplier)>=Number(o.targetMultiplier)}}getMinesDisplayData(){let{mineLocations:o,selectedTiles:i}=this._getMinesData();return{selectedTiles:i,mineLocations:o}}getLimboDisplayData(){let{resultMultiplier:o,targetMultiplier:i,isWin:a}=this._getLimboData();return{isWin:a||!1,betId:this.betData.id||"123",resultMultiplier:Number(o),betTargetMultiplier:Number(i)}}getDiceDisplayData(){let{resultValue:o,userValue:i,isRollLower:a,isDiceWin:t}=this._getDiceData();return{value:i/100,min:2,max:98,step:1,showDice:!0,disabled:!0,resultValue:o/100,isWin:t,isRollLower:a}}getKenoDisplayData(){let{selectedNumbers:o,drawnNumbers:i}=this._getKenoData();return{selectedTiles:o,resultTiles:i,isPlaying:!1,gameOver:!0,popupShowing:!1}}getDiceData(){return this._getDiceData()}}var ll=({gameId:o,tenantId:i,tenantUserId:a,nonce:t,clientSeed:r})=>{return`${o}-${i}-${a}-${t}-${r}`};class cr extends B{constructor(){super(...arguments);this.betId="";this.betData=null}static styles=[G,Hn];gameConsumer=new wo(this,{context:D,subscribe:!0});betResultCache=Co.getInstance();async betIdUpdated(){let o=this.gameConsumer.value?.baseUrl;if(!o||!this.betId){this.betData=null;return}let i=await this.betResultCache.fetchBetResult(this.betId,o);this.betData=i}_getDataExtractor(){return this.betData?new dr(this.betData):null}_formatMonetaryAmount(o,i){let a=typeof o==="string"?Number.parseFloat(o.replace(/^\$/,"")):o,t=Math.abs(Number.isNaN(a)?0:a),r=di(i),e=li(i),n=ci(i),s="";if((Number.isNaN(a)?0:a)<0)s+="-";if(n===0)s+=`${e}${t.toFixed(r)}`;if(n===1)s+=`${t.toFixed(r)} ${e}`;return s}_calculateMultiplier(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e)||r===0)return"0.00x";return`${(e/r).toFixed(2)}x`}_calculatePayout(o,i){let a=typeof o==="string"?o.replace(/^\$/,""):o,t=typeof i==="string"?i.replace(/^\$/,""):i,r=typeof a==="string"?parseFloat(a):a,e=typeof t==="string"?parseFloat(t):t;if(isNaN(r)||isNaN(e))return{amount:0,isProfit:!1};if(e===0)return{amount:-r,isProfit:!1};return{amount:e,isProfit:e>r}}_getCurrencyDisplay(){let o=this.betData?.currency?.toUpperCase();if(this.gameData?.showCurrencyAsText)return $`<span class="currency-text">${o??"USD"}</span>`;return Lo(o??"USD")}openVerifyOutcomeModal(){this.emit("open-verify-outcome-modal",{detail:{verifyData:{publicKey:this.gameData?.publicKey??"",request:ll({gameId:this.gameType,tenantId:this.betData?.tenantId??"",tenantUserId:this.betData?.tenantUserId??"",nonce:this.betData?.nonce.toString()??"",clientSeed:this.betData?.clientSeed??""}),proof:this.betData?.proof??"",randomness:this.betData?.randomValue??"",clientSeed:this.betData?.clientSeed??""}}})}triggerVerify(){this.openVerifyOutcomeModal()}get gameType(){if(!this.betData)return"LIMBO";let o=this.betData?.betActions?.[this.betData?.betActions.length-1],i=Object.keys(o?.data)?.[0]??"Unknown";return i.charAt(0).toUpperCase()+i.slice(1)}renderLoading(){return $`
5824
5824
  <div class="loading-container" style=${"display:flex;justify-content:center;align-items:center;min-height:200px;"}>
5825
5825
  <origami-spinner></origami-spinner>
5826
5826
  </div>
@@ -5925,7 +5925,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
5925
5925
 
5926
5926
 
5927
5927
  </div>
5928
- `}}d([ao({context:D,subscribe:!0})],dr.prototype,"gameData",void 0),d([H({type:String})],dr.prototype,"betId",void 0),d([j()],dr.prototype,"betData",void 0),d([vo("betId")],dr.prototype,"betIdUpdated",null),dr=d([O("origami-bet-result-modal")],dr);var Hn=(o)=>{let{activeElement:i}=document;if(i&&o.contains(i))document.activeElement?.blur()};var Zn=X`
5928
+ `}}d([ao({context:D,subscribe:!0})],cr.prototype,"gameData",void 0),d([S({type:String})],cr.prototype,"betId",void 0),d([A()],cr.prototype,"betData",void 0),d([mo("betId")],cr.prototype,"betIdUpdated",null),cr=d([O("origami-bet-result-modal")],cr);var Sn=(o)=>{let{activeElement:i}=document;if(i&&o.contains(i))document.activeElement?.blur()};var Zn=X`
5929
5929
  :host {
5930
5930
  --sl-color-neutral-0: hsl(240, 5.9%, 11%);
5931
5931
  --sl-color-neutral-400: hsl(240 5% 35.5%);
@@ -6073,7 +6073,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6073
6073
  border: solid 1px var(--sl-color-neutral-0);
6074
6074
  }
6075
6075
  }
6076
- `;class Va extends B{constructor(){super(...arguments);this.open=!1;this.label="";this.contained=!1;this.noHeader=!1;this.noCloseButton=!1}static styles=[G,Zn];originalTrigger=null;focusTrap=new Qi(this);closeWatcher=null;isDragging=!1;startY=0;currentY=0;isCustomClosing=!1;originalHeight=0;firstUpdated(){if(this.drawer.hidden=!this.open,this.open){if(this.addOpenListeners(),!this.contained)this.focusTrap.activate(),Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),bi(this),this.removeOpenListeners(),this.cleanupDragState()}requestClose(o){if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"drawer.denyClose",{dir:""});_o(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){if("CloseWatcher"in window){if(this.closeWatcher?.destroy(),!this.contained)this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")}else document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),this.closeWatcher?.destroy()}handleDocumentKeyDown=(o)=>{if(this.contained)return;if(o.key==="Escape"&&this.focusTrap.isActive()&&this.open)o.stopImmediatePropagation(),this.requestClose("keyboard")};handleTouchStart=(o)=>{this.isDragging=!0,this.startY=o.touches[0].clientY,this.currentY=this.startY,this.originalHeight=this.panel.offsetHeight,o.preventDefault()};handleTouchMove=(o)=>{if(!this.isDragging)return;this.currentY=o.touches[0].clientY;let i=this.currentY-this.startY;if(i>0){let a=Math.min(i,200);this.panel.style.transform=`translateY(${a}px)`,this.panel.style.transition="none";let t=Math.max(0.3,1-a/200);this.overlay.style.opacity=t.toString()}else{let a=Math.min(Math.abs(i),100),t=this.originalHeight+a;this.panel.style.transform="",this.panel.style.height=`${t}px`,this.panel.style.transition="none";let r=Math.min(1,1+a/200);this.overlay.style.opacity=r.toString()}o.preventDefault()};handleTouchEnd=()=>{if(!this.isDragging)return;this.isDragging=!1;let o=this.currentY-this.startY;if(o>100)this.closeFromCurrentPosition();else if(o>0)this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);else this.panel.style.transition="height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",this.panel.style.height=`${this.originalHeight}px`,this.overlay.style.transition="opacity 0.4s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.height="",this.overlay.style.transition="",this.overlay.style.opacity=""},400)};handleMouseDown=(o)=>{this.isDragging=!0,this.startY=o.clientY,this.currentY=this.startY,this.originalHeight=this.panel.offsetHeight,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),o.preventDefault()};handleMouseMove=(o)=>{if(!this.isDragging)return;this.currentY=o.clientY;let i=this.currentY-this.startY;if(i>0){let a=Math.min(i,200);this.panel.style.transform=`translateY(${a}px)`,this.panel.style.transition="none";let t=Math.max(0.3,1-a/200);this.overlay.style.opacity=t.toString()}else{let a=Math.min(Math.abs(i),100),t=this.originalHeight+a;this.panel.style.transform="",this.panel.style.height=`${t}px`,this.panel.style.transition="none";let r=Math.min(1,1+a/200);this.overlay.style.opacity=r.toString()}};handleMouseUp=()=>{if(!this.isDragging)return;this.isDragging=!1;let o=this.currentY-this.startY,i=100;if(document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),o>i)this.closeFromCurrentPosition();else if(o>0)this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);else this.panel.style.transition="height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",this.panel.style.height=`${this.originalHeight}px`,this.overlay.style.transition="opacity 0.4s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.height="",this.overlay.style.transition="",this.overlay.style.opacity=""},400)};async closeFromCurrentPosition(){let i=this.panel.style.transform.match(/translateY\(([^)]+)\)/)?.[1]||"0px",a=parseFloat(i),t=this.panel.offsetHeight,r=t-a,e=250,n=Math.max(100,r/t*250);if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:"overlay"}}).defaultPrevented){this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);return}if(this.isCustomClosing=!0,this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),bi(this);this.panel.style.transition=`transform ${n}ms ease-out`,this.panel.style.transform=`translateY(${t}px)`,this.overlay.style.transition=`opacity ${n}ms ease-out`,this.overlay.style.opacity="0",setTimeout(async()=>{if(this.drawer.hidden=!0,this.panel.style.transform="",this.panel.style.transition="",this.overlay.style.opacity="",this.overlay.style.transition="",this.open=!1,this.isCustomClosing=!1,typeof this.originalTrigger?.focus==="function")setTimeout(()=>this.originalTrigger?.focus());this.emit("drawer-after-hide")},n)}cleanupDragState(){if(this.isDragging=!1,document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),!this.isCustomClosing&&this.panel)this.panel.style.transform="",this.panel.style.transition="",this.panel.style.height="";if(!this.isCustomClosing&&this.overlay)this.overlay.style.opacity="",this.overlay.style.transition=""}handlePanelWheel=(o)=>{o.stopPropagation();let i=this.panel.querySelector(".drawer__body");if(i)if(!(i.scrollHeight>i.clientHeight))o.preventDefault();else{let t=i.scrollTop>0,r=i.scrollTop<i.scrollHeight-i.clientHeight;if(!t&&o.deltaY<0||!r&&o.deltaY>0)o.preventDefault()}else o.preventDefault()};handlePanelTouchStart=(o)=>{if(!this.isDragging){let i=this.panel.querySelector(".drawer__body");if(i&&o.touches.length>0)i.dataset.prevTouchY=o.touches[0].clientY.toString()}};handlePanelTouchMove=(o)=>{if(!this.isDragging){o.stopPropagation();let i=this.panel.querySelector(".drawer__body");if(i)if(!(i.scrollHeight>i.clientHeight))o.preventDefault();else{let r=o.touches[0].clientY,e=parseFloat(i.dataset.prevTouchY||"0"),n=r-e,s=i.scrollTop>0,l=i.scrollTop<i.scrollHeight-i.clientHeight;if(!s&&n>0||!l&&n<0)o.preventDefault();i.dataset.prevTouchY=r.toString()}else o.preventDefault()}};async handleOpenChange(){if(this.open){if(this.emit("drawer-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,!this.contained)this.focusTrap.activate(),Ii(this);let o=this.querySelector("[autofocus]");if(o)o.removeAttribute("autofocus");await Promise.all([ii(this.drawer),ii(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{if(!this.emit("drawer-initial-focus",{cancelable:!0}).defaultPrevented)if(o)o.focus({preventScroll:!0});else this.panel.focus({preventScroll:!0});if(o)o.setAttribute("autofocus","")});let i=Oo(this,"drawer.showBottom",{dir:""}),a=Oo(this,"drawer.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(this.overlay,a.keyframes,a.options)]),this.emit("drawer-after-show")}else{if(this.isCustomClosing)return;if(Hn(this),this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),bi(this);await Promise.all([ii(this.drawer),ii(this.overlay)]);let o=Oo(this,"drawer.hideBottom",{dir:""}),i=Oo(this,"drawer.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let a=this.originalTrigger;if(typeof a?.focus==="function")setTimeout(()=>a.focus());this.emit("drawer-after-hide")}}handleNoModalChange(){if(this.open&&!this.contained)this.focusTrap.activate(),Ii(this);if(this.open&&this.contained)this.focusTrap.deactivate(),bi(this)}async show(){if(this.open)return;return this.open=!0,Fi(this,"drawer-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"drawer-after-hide")}render(){return $`
6076
+ `;class Va extends B{constructor(){super(...arguments);this.open=!1;this.label="";this.contained=!1;this.noHeader=!1;this.noCloseButton=!1}static styles=[G,Zn];originalTrigger=null;focusTrap=new Qi(this);closeWatcher=null;isDragging=!1;startY=0;currentY=0;isCustomClosing=!1;originalHeight=0;firstUpdated(){if(this.drawer.hidden=!this.open,this.open){if(this.addOpenListeners(),!this.contained)this.focusTrap.activate(),Ii(this)}}disconnectedCallback(){super.disconnectedCallback(),mi(this),this.removeOpenListeners(),this.cleanupDragState()}requestClose(o){if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:o}}).defaultPrevented){let a=Oo(this,"drawer.denyClose",{dir:""});_o(this.panel,a.keyframes,a.options);return}this.hide()}addOpenListeners(){if("CloseWatcher"in window){if(this.closeWatcher?.destroy(),!this.contained)this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard")}else document.addEventListener("keydown",this.handleDocumentKeyDown)}removeOpenListeners(){document.removeEventListener("keydown",this.handleDocumentKeyDown),this.closeWatcher?.destroy()}handleDocumentKeyDown=(o)=>{if(this.contained)return;if(o.key==="Escape"&&this.focusTrap.isActive()&&this.open)o.stopImmediatePropagation(),this.requestClose("keyboard")};handleTouchStart=(o)=>{this.isDragging=!0,this.startY=o.touches[0].clientY,this.currentY=this.startY,this.originalHeight=this.panel.offsetHeight,o.preventDefault()};handleTouchMove=(o)=>{if(!this.isDragging)return;this.currentY=o.touches[0].clientY;let i=this.currentY-this.startY;if(i>0){let a=Math.min(i,200);this.panel.style.transform=`translateY(${a}px)`,this.panel.style.transition="none";let t=Math.max(0.3,1-a/200);this.overlay.style.opacity=t.toString()}else{let a=Math.min(Math.abs(i),100),t=this.originalHeight+a;this.panel.style.transform="",this.panel.style.height=`${t}px`,this.panel.style.transition="none";let r=Math.min(1,1+a/200);this.overlay.style.opacity=r.toString()}o.preventDefault()};handleTouchEnd=()=>{if(!this.isDragging)return;this.isDragging=!1;let o=this.currentY-this.startY;if(o>100)this.closeFromCurrentPosition();else if(o>0)this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);else this.panel.style.transition="height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",this.panel.style.height=`${this.originalHeight}px`,this.overlay.style.transition="opacity 0.4s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.height="",this.overlay.style.transition="",this.overlay.style.opacity=""},400)};handleMouseDown=(o)=>{this.isDragging=!0,this.startY=o.clientY,this.currentY=this.startY,this.originalHeight=this.panel.offsetHeight,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),o.preventDefault()};handleMouseMove=(o)=>{if(!this.isDragging)return;this.currentY=o.clientY;let i=this.currentY-this.startY;if(i>0){let a=Math.min(i,200);this.panel.style.transform=`translateY(${a}px)`,this.panel.style.transition="none";let t=Math.max(0.3,1-a/200);this.overlay.style.opacity=t.toString()}else{let a=Math.min(Math.abs(i),100),t=this.originalHeight+a;this.panel.style.transform="",this.panel.style.height=`${t}px`,this.panel.style.transition="none";let r=Math.min(1,1+a/200);this.overlay.style.opacity=r.toString()}};handleMouseUp=()=>{if(!this.isDragging)return;this.isDragging=!1;let o=this.currentY-this.startY,i=100;if(document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),o>i)this.closeFromCurrentPosition();else if(o>0)this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);else this.panel.style.transition="height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1)",this.panel.style.height=`${this.originalHeight}px`,this.overlay.style.transition="opacity 0.4s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.height="",this.overlay.style.transition="",this.overlay.style.opacity=""},400)};async closeFromCurrentPosition(){let i=this.panel.style.transform.match(/translateY\(([^)]+)\)/)?.[1]||"0px",a=parseFloat(i),t=this.panel.offsetHeight,r=t-a,e=250,n=Math.max(100,r/t*250);if(this.emit("drawer-request-close",{cancelable:!0,detail:{source:"overlay"}}).defaultPrevented){this.panel.style.transition="transform 0.3s ease",this.panel.style.transform="translateY(0)",this.overlay.style.transition="opacity 0.3s ease",this.overlay.style.opacity="1",setTimeout(()=>{this.panel.style.transition="",this.panel.style.transform="",this.overlay.style.transition="",this.overlay.style.opacity=""},300);return}if(this.isCustomClosing=!0,this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),mi(this);this.panel.style.transition=`transform ${n}ms ease-out`,this.panel.style.transform=`translateY(${t}px)`,this.overlay.style.transition=`opacity ${n}ms ease-out`,this.overlay.style.opacity="0",setTimeout(async()=>{if(this.drawer.hidden=!0,this.panel.style.transform="",this.panel.style.transition="",this.overlay.style.opacity="",this.overlay.style.transition="",this.open=!1,this.isCustomClosing=!1,typeof this.originalTrigger?.focus==="function")setTimeout(()=>this.originalTrigger?.focus());this.emit("drawer-after-hide")},n)}cleanupDragState(){if(this.isDragging=!1,document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),!this.isCustomClosing&&this.panel)this.panel.style.transform="",this.panel.style.transition="",this.panel.style.height="";if(!this.isCustomClosing&&this.overlay)this.overlay.style.opacity="",this.overlay.style.transition=""}handlePanelWheel=(o)=>{o.stopPropagation();let i=this.panel.querySelector(".drawer__body");if(i)if(!(i.scrollHeight>i.clientHeight))o.preventDefault();else{let t=i.scrollTop>0,r=i.scrollTop<i.scrollHeight-i.clientHeight;if(!t&&o.deltaY<0||!r&&o.deltaY>0)o.preventDefault()}else o.preventDefault()};handlePanelTouchStart=(o)=>{if(!this.isDragging){let i=this.panel.querySelector(".drawer__body");if(i&&o.touches.length>0)i.dataset.prevTouchY=o.touches[0].clientY.toString()}};handlePanelTouchMove=(o)=>{if(!this.isDragging){o.stopPropagation();let i=this.panel.querySelector(".drawer__body");if(i)if(!(i.scrollHeight>i.clientHeight))o.preventDefault();else{let r=o.touches[0].clientY,e=parseFloat(i.dataset.prevTouchY||"0"),n=r-e,s=i.scrollTop>0,l=i.scrollTop<i.scrollHeight-i.clientHeight;if(!s&&n>0||!l&&n<0)o.preventDefault();i.dataset.prevTouchY=r.toString()}else o.preventDefault()}};async handleOpenChange(){if(this.open){if(this.emit("drawer-show"),this.addOpenListeners(),this.originalTrigger=document.activeElement,!this.contained)this.focusTrap.activate(),Ii(this);let o=this.querySelector("[autofocus]");if(o)o.removeAttribute("autofocus");await Promise.all([ii(this.drawer),ii(this.overlay)]),this.drawer.hidden=!1,requestAnimationFrame(()=>{if(!this.emit("drawer-initial-focus",{cancelable:!0}).defaultPrevented)if(o)o.focus({preventScroll:!0});else this.panel.focus({preventScroll:!0});if(o)o.setAttribute("autofocus","")});let i=Oo(this,"drawer.showBottom",{dir:""}),a=Oo(this,"drawer.overlay.show",{dir:""});await Promise.all([_o(this.panel,i.keyframes,i.options),_o(this.overlay,a.keyframes,a.options)]),this.emit("drawer-after-show")}else{if(this.isCustomClosing)return;if(Sn(this),this.emit("drawer-hide"),this.removeOpenListeners(),this.cleanupDragState(),!this.contained)this.focusTrap.deactivate(),mi(this);await Promise.all([ii(this.drawer),ii(this.overlay)]);let o=Oo(this,"drawer.hideBottom",{dir:""}),i=Oo(this,"drawer.overlay.hide",{dir:""});await Promise.all([_o(this.overlay,i.keyframes,i.options).then(()=>{this.overlay.hidden=!0}),_o(this.panel,o.keyframes,o.options).then(()=>{this.panel.hidden=!0})]),this.drawer.hidden=!0,this.overlay.hidden=!1,this.panel.hidden=!1;let a=this.originalTrigger;if(typeof a?.focus==="function")setTimeout(()=>a.focus());this.emit("drawer-after-hide")}}handleNoModalChange(){if(this.open&&!this.contained)this.focusTrap.activate(),Ii(this);if(this.open&&this.contained)this.focusTrap.deactivate(),mi(this)}async show(){if(this.open)return;return this.open=!0,Fi(this,"drawer-after-show")}async hide(){if(!this.open)return;return this.open=!1,Fi(this,"drawer-after-hide")}render(){return $`
6077
6077
  <div
6078
6078
  part="base"
6079
6079
  class=${to({drawer:!0,"drawer--open":this.open,"drawer--bottom":!0,"drawer--contained":this.contained,"drawer--fixed":!this.contained})}
@@ -6086,8 +6086,8 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6086
6086
  role="dialog"
6087
6087
  aria-modal="true"
6088
6088
  aria-hidden=${this.open?"false":"true"}
6089
- aria-label=${mo(this.noHeader?this.label:void 0)}
6090
- aria-labelledby=${mo(!this.noHeader?"title":void 0)}
6089
+ aria-label=${vo(this.noHeader?this.label:void 0)}
6090
+ aria-labelledby=${vo(!this.noHeader?"title":void 0)}
6091
6091
  tabindex="0"
6092
6092
  @wheel=${this.handlePanelWheel}
6093
6093
  @touchstart=${this.handlePanelTouchStart}
@@ -6109,7 +6109,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6109
6109
  </div>
6110
6110
  </div>
6111
6111
  </div>
6112
- `}}d([fo(".drawer")],Va.prototype,"drawer",void 0),d([fo(".drawer__panel")],Va.prototype,"panel",void 0),d([fo(".drawer__overlay")],Va.prototype,"overlay",void 0),d([H({type:Boolean,reflect:!0})],Va.prototype,"open",void 0),d([H({reflect:!0})],Va.prototype,"label",void 0),d([H({type:Boolean,reflect:!0})],Va.prototype,"contained",void 0),d([H({attribute:"no-header",type:Boolean,reflect:!0})],Va.prototype,"noHeader",void 0),d([H({attribute:"no-close-button",type:Boolean,reflect:!0})],Va.prototype,"noCloseButton",void 0),d([vo("open",{waitUntilFirstUpdate:!0})],Va.prototype,"handleOpenChange",null),d([vo("contained",{waitUntilFirstUpdate:!0})],Va.prototype,"handleNoModalChange",null),Va=d([O("origami-drawer")],Va);Ro("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});Ro("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});Ro("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Kn=X`
6112
+ `}}d([fo(".drawer")],Va.prototype,"drawer",void 0),d([fo(".drawer__panel")],Va.prototype,"panel",void 0),d([fo(".drawer__overlay")],Va.prototype,"overlay",void 0),d([S({type:Boolean,reflect:!0})],Va.prototype,"open",void 0),d([S({reflect:!0})],Va.prototype,"label",void 0),d([S({type:Boolean,reflect:!0})],Va.prototype,"contained",void 0),d([S({attribute:"no-header",type:Boolean,reflect:!0})],Va.prototype,"noHeader",void 0),d([S({attribute:"no-close-button",type:Boolean,reflect:!0})],Va.prototype,"noCloseButton",void 0),d([mo("open",{waitUntilFirstUpdate:!0})],Va.prototype,"handleOpenChange",null),d([mo("contained",{waitUntilFirstUpdate:!0})],Va.prototype,"handleNoModalChange",null),Va=d([O("origami-drawer")],Va);Ro("drawer.showTop",{keyframes:[{opacity:0,translate:"0 -100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideTop",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 -100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.showEnd",{keyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideEnd",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.showBottom",{keyframes:[{opacity:0,translate:"0 100%"},{opacity:1,translate:"0 0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideBottom",{keyframes:[{opacity:1,translate:"0 0"},{opacity:0,translate:"0 100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.showStart",{keyframes:[{opacity:0,translate:"-100%"},{opacity:1,translate:"0"}],rtlKeyframes:[{opacity:0,translate:"100%"},{opacity:1,translate:"0"}],options:{duration:250,easing:"ease"}});Ro("drawer.hideStart",{keyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"-100%"}],rtlKeyframes:[{opacity:1,translate:"0"},{opacity:0,translate:"100%"}],options:{duration:250,easing:"ease"}});Ro("drawer.denyClose",{keyframes:[{scale:1},{scale:1.01},{scale:1}],options:{duration:250}});Ro("drawer.overlay.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:250}});Ro("drawer.overlay.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:250}});var Kn=X`
6113
6113
  :host {
6114
6114
  display: contents;
6115
6115
  }
@@ -6138,7 +6138,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6138
6138
  height: 100%;
6139
6139
  display: block;
6140
6140
  }
6141
- `;class cr extends B{constructor(){super(...arguments);this.showFooter=!0;this.open=!1;this.label="";this.width="";this.internalOpen=!1}static styles=[G,Kn];openDebounceTimeout;isAnimating=!1;openChanged(){if(this.openDebounceTimeout)clearTimeout(this.openDebounceTimeout);if(this.isAnimating)this.openDebounceTimeout=window.setTimeout(()=>{this.internalOpen=this.open},50);else this.internalOpen=this.open}disconnectedCallback(){if(super.disconnectedCallback(),this.openDebounceTimeout)clearTimeout(this.openDebounceTimeout)}handleCloseEvent(){this.isAnimating=!1,this.emit("responsive-modal-close")}handleShowEvent(){this.isAnimating=!0,setTimeout(()=>{this.isAnimating=!1},300)}handleHideEvent(){this.isAnimating=!0}render(){let o=this.width?{"--width":this.width}:{};return $`
6141
+ `;class hr extends B{constructor(){super(...arguments);this.showFooter=!0;this.open=!1;this.label="";this.width="";this.internalOpen=!1}static styles=[G,Kn];openDebounceTimeout;isAnimating=!1;openChanged(){if(this.openDebounceTimeout)clearTimeout(this.openDebounceTimeout);if(this.isAnimating)this.openDebounceTimeout=window.setTimeout(()=>{this.internalOpen=this.open},50);else this.internalOpen=this.open}disconnectedCallback(){if(super.disconnectedCallback(),this.openDebounceTimeout)clearTimeout(this.openDebounceTimeout)}handleCloseEvent(){this.isAnimating=!1,this.emit("responsive-modal-close")}handleShowEvent(){this.isAnimating=!0,setTimeout(()=>{this.isAnimating=!1},300)}handleHideEvent(){this.isAnimating=!0}render(){let o=this.width?{"--width":this.width}:{};return $`
6142
6142
  <origami-modal
6143
6143
  no-header
6144
6144
  class="hide-on-mobile"
@@ -6169,7 +6169,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6169
6169
  <slot name="mobile-footer"></slot>
6170
6170
  </div>
6171
6171
  </origami-drawer>
6172
- `}}d([H({type:Boolean})],cr.prototype,"showFooter",void 0),d([H({type:Boolean,reflect:!0})],cr.prototype,"open",void 0),d([H({type:String})],cr.prototype,"label",void 0),d([H({type:String})],cr.prototype,"width",void 0),d([j()],cr.prototype,"internalOpen",void 0),d([vo("open")],cr.prototype,"openChanged",null),cr=d([O("origami-responsive-modal")],cr);var Rn=X`
6172
+ `}}d([S({type:Boolean})],hr.prototype,"showFooter",void 0),d([S({type:Boolean,reflect:!0})],hr.prototype,"open",void 0),d([S({type:String})],hr.prototype,"label",void 0),d([S({type:String})],hr.prototype,"width",void 0),d([A()],hr.prototype,"internalOpen",void 0),d([mo("open")],hr.prototype,"openChanged",null),hr=d([O("origami-responsive-modal")],hr);var Rn=X`
6173
6173
  :host {
6174
6174
  position: absolute;
6175
6175
  top: 12px;
@@ -6345,7 +6345,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6345
6345
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
6346
6346
  <path d="M11.1967 2.71828C8.53683 0.970353 5 2.8783 5 6.0611V17.9387C5 21.1215 8.53684 23.0294 11.1967 21.2815L20.234 15.3427C22.6384 13.7627 22.6384 10.2371 20.234 8.65706L11.1967 2.71828Z" fill="#272727"/>
6347
6347
  </svg>
6348
- `,ul=eo`
6348
+ `,hl=eo`
6349
6349
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
6350
6350
  <path d="M15.2413 3H8.7587C7.95374 2.99999 7.28937 2.99998 6.74818 3.04419C6.18608 3.09012 5.66937 3.18868 5.18404 3.43598C4.43139 3.81947 3.81947 4.43139 3.43598 5.18404C3.18868 5.66937 3.09012 6.18608 3.04419 6.74818C2.99998 7.28937 2.99999 7.95372 3 8.75869V15.2413C2.99999 16.0463 2.99998 16.7106 3.04419 17.2518C3.09012 17.8139 3.18868 18.3306 3.43598 18.816C3.81947 19.5686 4.43139 20.1805 5.18404 20.564C5.66937 20.8113 6.18608 20.9099 6.74818 20.9558C7.28937 21 7.95372 21 8.75868 21H15.2413C16.0463 21 16.7106 21 17.2518 20.9558C17.8139 20.9099 18.3306 20.8113 18.816 20.564C19.5686 20.1805 20.1805 19.5686 20.564 18.816C20.8113 18.3306 20.9099 17.8139 20.9558 17.2518C21 16.7106 21 16.0463 21 15.2413V8.75868C21 7.95372 21 7.28936 20.9558 6.74818C20.9099 6.18608 20.8113 5.66937 20.564 5.18404C20.1805 4.43139 19.5686 3.81947 18.816 3.43598C18.3306 3.18868 17.8139 3.09012 17.2518 3.04419C16.7106 2.99998 16.0463 2.99999 15.2413 3Z" fill="white"/>
6351
6351
  </svg>
@@ -6356,7 +6356,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6356
6356
  @mouseleave=${this.handleMouseLeave}
6357
6357
  >
6358
6358
  <div class="alert-icon">
6359
- ${this.id==="autobet-started"?cl:this.id==="autobet-stopped"?ul:dl}
6359
+ ${this.id==="autobet-started"?cl:this.id==="autobet-stopped"?hl:dl}
6360
6360
  </div>
6361
6361
 
6362
6362
  <div class="alert-content">
@@ -6370,7 +6370,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6370
6370
  </div>
6371
6371
 
6372
6372
  </div>
6373
- `}}d([H({type:String})],ur.prototype,"type",void 0),d([H({type:String})],ur.prototype,"message",void 0),d([H({type:Number})],ur.prototype,"autoCloseDelay",void 0),d([H({type:Boolean})],ur.prototype,"flipToRefreshTimer",void 0),d([j()],ur.prototype,"isHiding",void 0),d([j()],ur.prototype,"isPaused",void 0),d([j()],ur.prototype,"progressWidth",void 0),d([ao({context:D,subscribe:!0})],ur.prototype,"gameData",void 0),d([vo("flipToRefreshTimer",{waitUntilFirstUpdate:!0})],ur.prototype,"handleAutoCloseDelayChange",null),ur=d([O("origami-alert")],ur);var Wn=(o,i,a)=>{let t=new Map;for(let r=i;r<=a;r++)t.set(o[r],r);return t},Ia=Do(class extends No{constructor(o){if(super(o),o.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,a){let t;a===void 0?a=i:i!==void 0&&(t=i);let r=[],e=[],n=0;for(let s of o)r[n]=t?t(s,n):n,e[n]=a(s,n),n++;return{values:e,keys:r}}render(o,i,a){return this.dt(o,i,a).values}update(o,[i,a,t]){let r=Ye(o),{values:e,keys:n}=this.dt(i,a,t);if(!Array.isArray(r))return this.ut=n,e;let s=this.ut??=[],l=[],u,g,S=0,f=r.length-1,y=0,z=e.length-1;for(;S<=f&&y<=z;)if(r[S]===null)S++;else if(r[f]===null)f--;else if(s[S]===n[y])l[y]=pi(r[S],e[y]),S++,y++;else if(s[f]===n[z])l[z]=pi(r[f],e[z]),f--,z--;else if(s[S]===n[z])l[z]=pi(r[S],e[z]),Yi(o,l[z+1],r[S]),S++,z--;else if(s[f]===n[y])l[y]=pi(r[f],e[y]),Yi(o,r[S],r[f]),f--,y++;else if(u===void 0&&(u=Wn(n,y,z),g=Wn(s,S,f)),u.has(s[S]))if(u.has(s[f])){let m=g.get(n[y]),U=m!==void 0?r[m]:null;if(U===null){let b=Yi(o,r[S]);pi(b,e[y]),l[y]=b}else l[y]=pi(U,e[y]),Yi(o,r[S],U),r[m]=null;y++}else ka(r[f]),f--;else ka(r[S]),S++;for(;y<=z;){let m=Yi(o,l[z+1]);pi(m,e[y]),l[y++]=m}for(;S<=f;){let m=r[S++];m!==null&&ka(m)}return this.ut=n,va(o,l),Ko}});class hr extends B{constructor(){super(...arguments);this.alerts=[]}static styles=[G,Rn];addAlert(o){let i=o.id,a={autoCloseDelay:5000,showCloseButton:!0,flipToRefreshTimer:!1,...o},t=this.alerts.findIndex((r)=>r.id===i);if(t!==-1)this.alerts=[...this.alerts.slice(0,t),{...a,flipToRefreshTimer:!a.flipToRefreshTimer},...this.alerts.slice(t+1)];else this.alerts=[...this.alerts,a];return i}clearAllAlerts(){this.alerts=[]}handleAlertClose(o){this.alerts=this.alerts.filter((i)=>i.id!==o.detail.id)}render(){let o=(this.gameData?.mainWidth??0)<768;if(this.alerts.length===0||o)return _;return $`
6373
+ `}}d([S({type:String})],ur.prototype,"type",void 0),d([S({type:String})],ur.prototype,"message",void 0),d([S({type:Number})],ur.prototype,"autoCloseDelay",void 0),d([S({type:Boolean})],ur.prototype,"flipToRefreshTimer",void 0),d([A()],ur.prototype,"isHiding",void 0),d([A()],ur.prototype,"isPaused",void 0),d([A()],ur.prototype,"progressWidth",void 0),d([ao({context:D,subscribe:!0})],ur.prototype,"gameData",void 0),d([mo("flipToRefreshTimer",{waitUntilFirstUpdate:!0})],ur.prototype,"handleAutoCloseDelayChange",null),ur=d([O("origami-alert")],ur);var Wn=(o,i,a)=>{let t=new Map;for(let r=i;r<=a;r++)t.set(o[r],r);return t},Ia=Do(class extends No{constructor(o){if(super(o),o.type!==qo.CHILD)throw Error("repeat() can only be used in text expressions")}dt(o,i,a){let t;a===void 0?a=i:i!==void 0&&(t=i);let r=[],e=[],n=0;for(let s of o)r[n]=t?t(s,n):n,e[n]=a(s,n),n++;return{values:e,keys:r}}render(o,i,a){return this.dt(o,i,a).values}update(o,[i,a,t]){let r=Ye(o),{values:e,keys:n}=this.dt(i,a,t);if(!Array.isArray(r))return this.ut=n,e;let s=this.ut??=[],l=[],h,g,H=0,f=r.length-1,y=0,z=e.length-1;for(;H<=f&&y<=z;)if(r[H]===null)H++;else if(r[f]===null)f--;else if(s[H]===n[y])l[y]=wi(r[H],e[y]),H++,y++;else if(s[f]===n[z])l[z]=wi(r[f],e[z]),f--,z--;else if(s[H]===n[z])l[z]=wi(r[H],e[z]),Yi(o,l[z+1],r[H]),H++,z--;else if(s[f]===n[y])l[y]=wi(r[f],e[y]),Yi(o,r[H],r[f]),f--,y++;else if(h===void 0&&(h=Wn(n,y,z),g=Wn(s,H,f)),h.has(s[H]))if(h.has(s[f])){let v=g.get(n[y]),U=v!==void 0?r[v]:null;if(U===null){let b=Yi(o,r[H]);wi(b,e[y]),l[y]=b}else l[y]=wi(U,e[y]),Yi(o,r[H],U),r[v]=null;y++}else ka(r[f]),f--;else ka(r[H]),H++;for(;y<=z;){let v=Yi(o,l[z+1]);wi(v,e[y]),l[y++]=v}for(;H<=f;){let v=r[H++];v!==null&&ka(v)}return this.ut=n,ma(o,l),Ko}});class fr extends B{constructor(){super(...arguments);this.alerts=[]}static styles=[G,Rn];addAlert(o){let i=o.id,a={autoCloseDelay:5000,showCloseButton:!0,flipToRefreshTimer:!1,...o},t=this.alerts.findIndex((r)=>r.id===i);if(t!==-1)this.alerts=[...this.alerts.slice(0,t),{...a,flipToRefreshTimer:!a.flipToRefreshTimer},...this.alerts.slice(t+1)];else this.alerts=[...this.alerts,a];return i}clearAllAlerts(){this.alerts=[]}handleAlertClose(o){this.alerts=this.alerts.filter((i)=>i.id!==o.detail.id)}render(){let o=(this.gameData?.mainWidth??0)<768;if(this.alerts.length===0||o)return _;return $`
6374
6374
  <div class="alert-manager" @alert-close=${this.handleAlertClose}>
6375
6375
  ${Ia(this.alerts,(i)=>i.id,(i)=>$`
6376
6376
  <origami-alert
@@ -6383,7 +6383,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6383
6383
  ></origami-alert>
6384
6384
  `)}
6385
6385
  </div>
6386
- `}}d([ao({context:D,subscribe:!0})],hr.prototype,"gameData",void 0),d([j()],hr.prototype,"alerts",void 0),hr=d([O("origami-alert-manager")],hr);var aa={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};class fr extends B{constructor(){super(...arguments);this.gameType="KENO";this.footerPosition="below";this.showFooter=!0;this.modalContent=null;this.modalNavigationStack=[];this.isModalTransitioning=!1;this.historyHasNextPage=!1;this.isLoadingMoreHistory=!1}static styles=[G,yn];pendingModalContent=null;modalTransitionTimeout;resizeObserver;previousHistoryController;onHistoryDataChanged=(o)=>{let i=o;this.historyHasNextPage=!!i.detail?.hasNextPage};firstUpdated(){this.setupMainWidthObserver(),this.setupHistoryController()}setupMainWidthObserver(){if(!this.gameLayoutMain)return;this.resizeObserver=new ResizeObserver((o)=>{for(let i of o){let a=i.contentRect.width;if(a!==this.gameData?.mainWidth)this.gameData?.updateMainWidth(a)}}),this.resizeObserver.observe(this.gameLayoutMain),requestAnimationFrame(()=>{if(this.gameLayoutMain)this.gameData?.updateMainWidth(this.gameLayoutMain.clientWidth)})}connectedCallback(){super.connectedCallback(),this.addEventListener("show-alert",(o)=>{if(this.alertManager)this.alertManager.addAlert({id:crypto.randomUUID(),...o.detail})})}disconnectedCallback(){if(super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.modalTransitionTimeout)clearTimeout(this.modalTransitionTimeout);this.cleanupHistoryController()}setModalContent(o){if(this.isModalTransitioning){this.pendingModalContent=o;return}if(!o&&this.modalContent){this.isModalTransitioning=!0,this.modalContent=null,this.modalTransitionTimeout=window.setTimeout(()=>{if(this.isModalTransitioning=!1,this.pendingModalContent){let i=this.pendingModalContent;this.pendingModalContent=null,this.setModalContent(i)}},300);return}if(o)if(this.modalContent)this.modalContent=o;else this.isModalTransitioning=!0,this.modalContent=o,this.modalTransitionTimeout=window.setTimeout(()=>{if(this.isModalTransitioning=!1,this.pendingModalContent){let i=this.pendingModalContent;this.pendingModalContent=null,this.setModalContent(i)}},300)}willUpdate(o){if(super.willUpdate(o),this.gameData?.historyController!==this.previousHistoryController)this.cleanupHistoryController(),this.setupHistoryController()}setupHistoryController(){let o=this.gameData?.historyController;if(!o)return;o.addEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=o,this.historyHasNextPage=!!this.gameData?.historyController?.hasNextPage}cleanupHistoryController(){if(this.previousHistoryController)this.previousHistoryController.removeEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=void 0}async handleLoadMoreHistory(){if(this.isLoadingMoreHistory||!this.gameData?.historyController?.hasNextPage)return;this.isLoadingMoreHistory=!0;try{await this.gameData.historyController.loadMore()}finally{this.isLoadingMoreHistory=!1}}renderModalContent(o){if(!this.modalContent)return _;switch(this.modalContent.type){case"betResult":return $`
6386
+ `}}d([ao({context:D,subscribe:!0})],fr.prototype,"gameData",void 0),d([A()],fr.prototype,"alerts",void 0),fr=d([O("origami-alert-manager")],fr);var aa={publicKey:"",request:"",proof:"",randomness:"",clientSeed:""};class pr extends B{constructor(){super(...arguments);this.gameType="KENO";this.footerPosition="below";this.showFooter=!0;this.modalContent=null;this.modalNavigationStack=[];this.isModalTransitioning=!1;this.historyHasNextPage=!1;this.isLoadingMoreHistory=!1}static styles=[G,yn];pendingModalContent=null;modalTransitionTimeout;resizeObserver;previousHistoryController;onHistoryDataChanged=(o)=>{let i=o;this.historyHasNextPage=!!i.detail?.hasNextPage};firstUpdated(){this.setupMainWidthObserver(),this.setupHistoryController()}setupMainWidthObserver(){if(!this.gameLayoutMain)return;this.resizeObserver=new ResizeObserver((o)=>{for(let i of o){let a=i.contentRect.width;if(a!==this.gameData?.mainWidth)this.gameData?.updateMainWidth(a)}}),this.resizeObserver.observe(this.gameLayoutMain),requestAnimationFrame(()=>{if(this.gameLayoutMain)this.gameData?.updateMainWidth(this.gameLayoutMain.clientWidth)})}connectedCallback(){super.connectedCallback(),this.addEventListener("show-alert",(o)=>{if(this.alertManager)this.alertManager.addAlert({id:crypto.randomUUID(),...o.detail})})}disconnectedCallback(){if(super.disconnectedCallback(),this.resizeObserver?.disconnect(),this.modalTransitionTimeout)clearTimeout(this.modalTransitionTimeout);this.cleanupHistoryController()}setModalContent(o){if(this.isModalTransitioning){this.pendingModalContent=o;return}if(!o&&this.modalContent){this.isModalTransitioning=!0,this.modalContent=null,this.modalTransitionTimeout=window.setTimeout(()=>{if(this.isModalTransitioning=!1,this.pendingModalContent){let i=this.pendingModalContent;this.pendingModalContent=null,this.setModalContent(i)}},300);return}if(o)if(this.modalContent)this.modalContent=o;else this.isModalTransitioning=!0,this.modalContent=o,this.modalTransitionTimeout=window.setTimeout(()=>{if(this.isModalTransitioning=!1,this.pendingModalContent){let i=this.pendingModalContent;this.pendingModalContent=null,this.setModalContent(i)}},300)}willUpdate(o){if(super.willUpdate(o),this.gameData?.historyController!==this.previousHistoryController)this.cleanupHistoryController(),this.setupHistoryController()}setupHistoryController(){let o=this.gameData?.historyController;if(!o)return;o.addEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=o,this.historyHasNextPage=!!this.gameData?.historyController?.hasNextPage}cleanupHistoryController(){if(this.previousHistoryController)this.previousHistoryController.removeEventListener("history-data-changed",this.onHistoryDataChanged),this.previousHistoryController=void 0}async handleLoadMoreHistory(){if(this.isLoadingMoreHistory||!this.gameData?.historyController?.hasNextPage)return;this.isLoadingMoreHistory=!0;try{await this.gameData.historyController.loadMore()}finally{this.isLoadingMoreHistory=!1}}renderModalContent(o){if(!this.modalContent)return _;switch(this.modalContent.type){case"betResult":return $`
6387
6387
  <origami-bet-result-modal
6388
6388
  slot=${o}
6389
6389
  .betId=${this.modalContent.betId}
@@ -6588,7 +6588,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6588
6588
  </div>
6589
6589
  ${this.footerPosition==="below"?o:_}
6590
6590
  </div>
6591
- `}}d([ao({context:D,subscribe:!0})],fr.prototype,"gameData",void 0),d([H({type:String})],fr.prototype,"gameType",void 0),d([H({type:String,attribute:"footer-position"})],fr.prototype,"footerPosition",void 0),d([H({type:Boolean})],fr.prototype,"showFooter",void 0),d([fo("#alert-manager")],fr.prototype,"alertManager",void 0),d([fo(".game-layout-main")],fr.prototype,"gameLayoutMain",void 0),d([j()],fr.prototype,"modalContent",void 0),d([j()],fr.prototype,"modalNavigationStack",void 0),d([j()],fr.prototype,"isModalTransitioning",void 0),d([j()],fr.prototype,"historyHasNextPage",void 0),d([j()],fr.prototype,"isLoadingMoreHistory",void 0),fr=d([O("origami-game-layout")],fr);var Vn=X`
6591
+ `}}d([ao({context:D,subscribe:!0})],pr.prototype,"gameData",void 0),d([S({type:String})],pr.prototype,"gameType",void 0),d([S({type:String,attribute:"footer-position"})],pr.prototype,"footerPosition",void 0),d([S({type:Boolean})],pr.prototype,"showFooter",void 0),d([fo("#alert-manager")],pr.prototype,"alertManager",void 0),d([fo(".game-layout-main")],pr.prototype,"gameLayoutMain",void 0),d([A()],pr.prototype,"modalContent",void 0),d([A()],pr.prototype,"modalNavigationStack",void 0),d([A()],pr.prototype,"isModalTransitioning",void 0),d([A()],pr.prototype,"historyHasNextPage",void 0),d([A()],pr.prototype,"isLoadingMoreHistory",void 0),pr=d([O("origami-game-layout")],pr);var Vn=X`
6592
6592
  :host {
6593
6593
  display: none;
6594
6594
  }
@@ -6662,7 +6662,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6662
6662
  .stat-input[disabled] .hotkey-hint {
6663
6663
  opacity: 0.5;
6664
6664
  }
6665
- `;class pr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.disabled=!1;this._winChanceFocused=!1}static styles=[G,Vn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return po.getWinChance(this.selectedValue,this.diceDirection);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return po.getMultiplier(this.selectedValue,this.diceDirection);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleMultiplierBlur(){this.multiplierInputValue=po.getMultiplier(this.selectedValue,this.diceDirection)}handleWinChanceBlur(){this.winChanceInputValue=po.getWinChance(this.selectedValue,this.diceDirection)}updated(o){if(o.has("selectedValue")||o.has("diceDirection"))requestAnimationFrame(()=>{if(this.isConnected){if(!this.isMultiplierFocused())this._multiplierInputValue=po.getMultiplier(this.selectedValue,this.diceDirection);if(!this.isWinChanceFocused())this._winChanceInputValue=po.getWinChance(this.selectedValue,this.diceDirection)}})}isMultiplierFocused(){return this.multiplierInput?.shadowRoot?.activeElement!==null||this.multiplierInput===document.activeElement}isWinChanceFocused(){return this.winChanceInput?.shadowRoot?.activeElement!==null||this.winChanceInput===document.activeElement}render(){let o=this.gameData?.language||"en",i=!po.isValidMultiplier(this.multiplierInputValue),a=!po.isValidWinChance(this.winChanceInputValue),t=i?q("errors.dice.multiplierRange",o):"",r=a?q("errors.dice.winChanceRange",o):"",e=this.isMultiplierFocused()&&i?t:"",n=this.isWinChanceFocused()&&a?r:"";return $`
6665
+ `;class gr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.disabled=!1;this._winChanceFocused=!1}static styles=[G,Vn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return po.getWinChance(this.selectedValue,this.diceDirection);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return po.getMultiplier(this.selectedValue,this.diceDirection);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleMultiplierBlur(){this.multiplierInputValue=po.getMultiplier(this.selectedValue,this.diceDirection)}handleWinChanceBlur(){this.winChanceInputValue=po.getWinChance(this.selectedValue,this.diceDirection)}updated(o){if(o.has("selectedValue")||o.has("diceDirection"))requestAnimationFrame(()=>{if(this.isConnected){if(!this.isMultiplierFocused())this._multiplierInputValue=po.getMultiplier(this.selectedValue,this.diceDirection);if(!this.isWinChanceFocused())this._winChanceInputValue=po.getWinChance(this.selectedValue,this.diceDirection)}})}isMultiplierFocused(){return this.multiplierInput?.shadowRoot?.activeElement!==null||this.multiplierInput===document.activeElement}isWinChanceFocused(){return this.winChanceInput?.shadowRoot?.activeElement!==null||this.winChanceInput===document.activeElement}render(){let o=this.gameData?.language||"en",i=!po.isValidMultiplier(this.multiplierInputValue),a=!po.isValidWinChance(this.winChanceInputValue),t=i?q("errors.dice.multiplierRange",o):"",r=a?q("errors.dice.winChanceRange",o):"",e=this.isMultiplierFocused()&&i?t:"",n=this.isWinChanceFocused()&&a?r:"";return $`
6666
6666
  <origami-input
6667
6667
  tooltipOffset=${0}
6668
6668
  class="stat-input multiplier"
@@ -6690,7 +6690,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6690
6690
  type="text"
6691
6691
  ?disabled=${this.disabled}
6692
6692
  .readonly=${!0}
6693
- .value=${A(this.selectedValue/100).toFixed(2)}
6693
+ .value=${P(this.selectedValue/100).toFixed(2)}
6694
6694
  >
6695
6695
  ${this.gameData?.hotkeysOpenEnabled?$`<kbd class="hotkey-hint hotkey-hint--square" slot="right-icon">Q</kbd>`:_}
6696
6696
  <origami-button-group .position=${"right"} slot="right-addon">
@@ -6735,7 +6735,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6735
6735
  ></lottie-icon>
6736
6736
  `:_}
6737
6737
  </origami-input>
6738
- `}}d([H({type:Number})],pr.prototype,"selectedValue",void 0),d([H({type:String})],pr.prototype,"diceDirection",void 0),d([H({type:Boolean})],pr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],pr.prototype,"gameData",void 0),d([fo(".multiplier")],pr.prototype,"multiplierInput",void 0),d([fo(".win-chance")],pr.prototype,"winChanceInput",void 0),d([j()],pr.prototype,"_winChanceInputValue",void 0),d([j()],pr.prototype,"_multiplierInputValue",void 0),d([j()],pr.prototype,"_winChanceFocused",void 0),pr=d([O("origami-dice-content-bottom")],pr);var In=X`
6738
+ `}}d([S({type:Number})],gr.prototype,"selectedValue",void 0),d([S({type:String})],gr.prototype,"diceDirection",void 0),d([S({type:Boolean})],gr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],gr.prototype,"gameData",void 0),d([fo(".multiplier")],gr.prototype,"multiplierInput",void 0),d([fo(".win-chance")],gr.prototype,"winChanceInput",void 0),d([A()],gr.prototype,"_winChanceInputValue",void 0),d([A()],gr.prototype,"_multiplierInputValue",void 0),d([A()],gr.prototype,"_winChanceFocused",void 0),gr=d([O("origami-dice-content-bottom")],gr);var In=X`
6739
6739
  :host {
6740
6740
  display: flex;
6741
6741
  flex-direction: column;
@@ -6756,7 +6756,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6756
6756
  order: 0;
6757
6757
  }
6758
6758
  }
6759
- `;class gr extends B{constructor(){super(...arguments);this.isPlaying=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.inputsDisabled=!1;this.isBetAmountValid=!0}static styles=[G,In];render(){let o=this.gameData?.language||"en";return $`
6759
+ `;class br extends B{constructor(){super(...arguments);this.isPlaying=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.inputsDisabled=!1;this.isBetAmountValid=!0}static styles=[G,In];render(){let o=this.gameData?.language||"en";return $`
6760
6760
  <origami-balance-input></origami-balance-input>
6761
6761
 
6762
6762
  <origami-bet-amount-input
@@ -6792,7 +6792,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6792
6792
  ${q("common.placeBet",o)}
6793
6793
  </origami-button>
6794
6794
  </div>
6795
- `}}d([H({type:Boolean})],gr.prototype,"isPlaying",void 0),d([H({type:String})],gr.prototype,"profitOnWin",void 0),d([H({type:Boolean})],gr.prototype,"betDisabled",void 0),d([H({type:Boolean})],gr.prototype,"inputsDisabled",void 0),d([ao({context:D,subscribe:!0})],gr.prototype,"gameData",void 0),d([j()],gr.prototype,"isBetAmountValid",void 0),gr=d([O("origami-dice-manual")],gr);class br extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isDesktop=!1}render(){return $`
6795
+ `}}d([S({type:Boolean})],br.prototype,"isPlaying",void 0),d([S({type:String})],br.prototype,"profitOnWin",void 0),d([S({type:Boolean})],br.prototype,"betDisabled",void 0),d([S({type:Boolean})],br.prototype,"inputsDisabled",void 0),d([ao({context:D,subscribe:!0})],br.prototype,"gameData",void 0),d([A()],br.prototype,"isBetAmountValid",void 0),br=d([O("origami-dice-manual")],br);class wr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isDesktop=!1}render(){return $`
6796
6796
  <origami-generic-autobet
6797
6797
  data-is-desktop=${this.isDesktop}
6798
6798
  ?inputsDisabled=${this.inputsDisabled}
@@ -6802,7 +6802,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6802
6802
  ?betDisabled=${this.betDisabled}
6803
6803
  >
6804
6804
  </origami-generic-autobet>
6805
- `}}d([H({type:Boolean})],br.prototype,"inputsDisabled",void 0),d([H({type:Boolean})],br.prototype,"autobetStopping",void 0),d([H({type:Boolean})],br.prototype,"autobetInProgress",void 0),d([H({type:String})],br.prototype,"profitOnWin",void 0),d([H({type:Boolean})],br.prototype,"betDisabled",void 0),d([H({type:Boolean})],br.prototype,"isDesktop",void 0),br=d([O("origami-dice-auto")],br);var qn=X`
6805
+ `}}d([S({type:Boolean})],wr.prototype,"inputsDisabled",void 0),d([S({type:Boolean})],wr.prototype,"autobetStopping",void 0),d([S({type:Boolean})],wr.prototype,"autobetInProgress",void 0),d([S({type:String})],wr.prototype,"profitOnWin",void 0),d([S({type:Boolean})],wr.prototype,"betDisabled",void 0),d([S({type:Boolean})],wr.prototype,"isDesktop",void 0),wr=d([O("origami-dice-auto")],wr);var qn=X`
6806
6806
  :host {
6807
6807
  width: 100%;
6808
6808
  height: 100%;
@@ -6950,7 +6950,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6950
6950
  opacity: 0.8;
6951
6951
  }
6952
6952
  }
6953
- `;class wr extends B{constructor(){super(...arguments);this.history=[];this.gameType="MINES";this.animatingInIds=new Set}static styles=[G,Jn];betResultCache=Lo.getInstance();gameConsumer=new wo(this,{context:D,subscribe:!0});get disableHistoryModal(){return!this.gameConsumer.value?.baseUrl||!this.gameConsumer.value?.authToken}updated(o){if(super.updated(o),o.has("history"))this.handleHistoryChange(o.get("history"))}handleHistoryChange(o){let i=this.history.filter((a)=>!o.includes(a));if(this.isConnected&&!this.gameConsumer.value?.instantBetEnabled)this.animatingInIds=new Set([...this.animatingInIds,...i.map((a)=>a.id)])}handleAnimationEnd(o,i){if(o.animationName==="scaleUp"&&this.animatingInIds.has(i.id))requestAnimationFrame(()=>{if(this.isConnected)this.animatingInIds=new Set([...this.animatingInIds].filter((a)=>a!==i.id))})}formatMultiplier(o){return o.toFixed(2)}handleHistoryPillClick(o){if(this.disableHistoryModal)return;this.emit("open-bet-result-modal",{detail:{betId:o.id}})}handlePillKeyDown(o,i){if(this.disableHistoryModal)return;let a=o.key;if(a==="Enter"||a===" ")o.preventDefault(),this.handleHistoryPillClick(i)}handleHistoryPillHover(o){if(this.disableHistoryModal)return;let i=this.gameConsumer.value?.baseUrl;if(i&&o)this.betResultCache.preloadBetResult(o,i)}renderHistoryPill(o){let i={"history-pill":!0,"history-pill-won":o.won,"slide-in":this.animatingInIds.has(o.id),"cursor-initial":this.disableHistoryModal},a=this.gameType==="DICE"?this.formatMultiplier(o.multiplier):`${this.formatMultiplier(o.multiplier)}X`;return $`
6953
+ `;class vr extends B{constructor(){super(...arguments);this.history=[];this.gameType="MINES";this.animatingInIds=new Set}static styles=[G,Jn];betResultCache=Co.getInstance();gameConsumer=new wo(this,{context:D,subscribe:!0});get disableHistoryModal(){return!this.gameConsumer.value?.baseUrl||!this.gameConsumer.value?.authToken}updated(o){if(super.updated(o),o.has("history"))this.handleHistoryChange(o.get("history"))}handleHistoryChange(o){let i=this.history.filter((a)=>!o.includes(a));if(this.isConnected&&!this.gameConsumer.value?.instantBetEnabled)this.animatingInIds=new Set([...this.animatingInIds,...i.map((a)=>a.id)])}handleAnimationEnd(o,i){if(o.animationName==="scaleUp"&&this.animatingInIds.has(i.id))requestAnimationFrame(()=>{if(this.isConnected)this.animatingInIds=new Set([...this.animatingInIds].filter((a)=>a!==i.id))})}formatMultiplier(o){return o.toFixed(2)}handleHistoryPillClick(o){if(this.disableHistoryModal)return;this.emit("open-bet-result-modal",{detail:{betId:o.id}})}handlePillKeyDown(o,i){if(this.disableHistoryModal)return;let a=o.key;if(a==="Enter"||a===" ")o.preventDefault(),this.handleHistoryPillClick(i)}handleHistoryPillHover(o){if(this.disableHistoryModal)return;let i=this.gameConsumer.value?.baseUrl;if(i&&o)this.betResultCache.preloadBetResult(o,i)}renderHistoryPill(o){let i={"history-pill":!0,"history-pill-won":o.won,"slide-in":this.animatingInIds.has(o.id),"cursor-initial":this.disableHistoryModal},a=this.gameType==="DICE"?this.formatMultiplier(o.multiplier):`${this.formatMultiplier(o.multiplier)}X`;return $`
6954
6954
  <div
6955
6955
  class=${to(i)}
6956
6956
  role="button"
@@ -6964,7 +6964,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
6964
6964
  </div>
6965
6965
  `}render(){return $`
6966
6966
  ${Ia(this.history,(o)=>o.id,(o)=>this.renderHistoryPill(o))}
6967
- `}}d([H({type:Array})],wr.prototype,"history",void 0),d([H({type:String})],wr.prototype,"gameType",void 0),d([j()],wr.prototype,"animatingInIds",void 0),wr=d([O("origami-history-pills")],wr);class mr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.isPlaying=!1;this.showDice=!0;this.isWin=!0;this.resultValue=null;this.history=[];this.isDesktop=!1}static styles=[G,qn];render(){if(this.isDesktop)return $`
6967
+ `}}d([S({type:Array})],vr.prototype,"history",void 0),d([S({type:String})],vr.prototype,"gameType",void 0),d([A()],vr.prototype,"animatingInIds",void 0),vr=d([O("origami-history-pills")],vr);class mr extends B{constructor(){super(...arguments);this.selectedValue=50;this.diceDirection=xo.ABOVE;this.isPlaying=!1;this.showDice=!0;this.isWin=!0;this.resultValue=null;this.history=[];this.isDesktop=!1}static styles=[G,qn];render(){if(this.isDesktop)return $`
6968
6968
  <origami-history-pills
6969
6969
  data-is-desktop=${this.isDesktop}
6970
6970
  .gameType=${"DICE"}
@@ -7013,13 +7013,13 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7013
7013
  .isRollLower=${this.diceDirection===xo.BELOW}
7014
7014
  ></origami-dice-slider>
7015
7015
  </div>
7016
- `}}d([H({type:Number})],mr.prototype,"selectedValue",void 0),d([H({type:String})],mr.prototype,"diceDirection",void 0),d([H({type:Boolean})],mr.prototype,"isPlaying",void 0),d([H({type:Boolean})],mr.prototype,"showDice",void 0),d([H({type:Boolean})],mr.prototype,"isWin",void 0),d([H({type:Number})],mr.prototype,"resultValue",void 0),d([H({type:Array})],mr.prototype,"history",void 0),d([H({type:Boolean})],mr.prototype,"isDesktop",void 0),mr=d([O("origami-dice-content")],mr);var wi=(o)=>{if(o===1)return"Draw";if(o>1)return"Win";return"Loss"};function bo(o){return new Promise((i)=>setTimeout(i,o))}class Eo extends B{constructor(){super(...arguments);this.manualOrAuto="Manual";this.hasPendingBet=!1;this.autobetInProgress=!1;this.autobetStopping=!1}static soundsToPreload=[];static styles=[G];gameConsumer=new wo(this,{context:D,subscribe:!0});get gameData(){return this.gameConsumer.value}get isDemoMode(){return!this.gameData.authToken||!this.gameData.baseUrl}get isToggleDisabled(){return this.autobetInProgress||this.hasPendingBet}get areInputsDisabled(){return this.autobetInProgress||this.hasPendingBet}getDelay(o){return this.gameData.instantBetEnabled?Math.min(o/10,20):o}getAutobetDelay(){return 300}async forceUIUpdate(){this.requestUpdate(),await new Promise((o)=>setTimeout(o,0))}async executeInstantOrAnimated(o,i){if(this.gameData.instantBetEnabled){let a=await o();return await this.forceUIUpdate(),a}else return await i()}async ensureMinimumDisplayTime(o=!1,i=500,a=500){if(!this.gameData.instantBetEnabled)await this.forceUIUpdate(),await bo(o?i:a)}firstUpdated(){this.constructor.soundsToPreload.forEach((i)=>{this.gameData.soundController?.preload(i)})}disconnectedCallback(){if(super.disconnectedCallback(),this.autobetInProgress)this.autobetStopping=!0,this.autobetInProgress=!1,this.hasPendingBet=!1}async toggleAutobet(o){if(this.autobetInProgress){this.autobetStopping=!0,this.gameData.soundController?.play("bet").catch((e)=>console.error(e));return}let i=o.detail;this.autobetStopping=!1,this.autobetInProgress=!0;let a=this.gameData.amount??"0",t=A(0),r=a;try{this.hasPendingBet=!0;let e=!0;while(e&&!this.autobetStopping){let n=await this.executeAutobet(i,r);if(n.hasError){if(n.errorMessage)this.emit("show-alert",{detail:{type:"error",message:n.errorMessage}});else this.emit("show-alert",{detail:{type:"error",message:q("alerts.gameError",this.gameData.language||"en")}});e=!1;continue}if(t=t.plus(n.pnl),r=this.adjustBetAmount(i,n.gameOutcome,a,r),this.gameData.updateBetAmount(A(r)),!this.isPnLWithinLimits(i,t)){e=!1;continue}if(this.gameData.autobetNumberOfBets===0){e=!0;continue}this.gameData.updateAutobetNumberOfBets(this.gameData.autobetNumberOfBets-1),e=!Number.isNaN(this.gameData.autobetNumberOfBets)&&!!this.gameData.autobetNumberOfBets&&this.gameData.autobetNumberOfBets>0}}catch(e){console.error("Error occurred in toggle autobet",e),this.emit("show-alert",{detail:{type:"error",message:q("alerts.gameError",this.gameData?.language||"en")}})}finally{this.autobetInProgress=!1,this.hasPendingBet=!1,this.autobetStopping=!1}}adjustBetAmount(o,i,a,t){if(i==="Draw")return t;if(o.onWinStrategy==="Reset"&&i==="Win"||o.onLossStrategy==="Reset"&&i==="Loss")return a;let r=i==="Win"?o.onWinPercentage:o.onLossPercentage,e=A(r).dividedBy(100).plus(1);return A(t).multipliedBy(e).toFixed(2)}isPnLWithinLimits(o,i){let a=!A(o.stopOnLoss).eq(0)&&A(i).negated().gte(o.stopOnLoss),t=!A(o.stopOnProfit).eq(0)&&i.gte(o.stopOnProfit);return!a&&!t}updateHistoryWithBet(o){let i=this.gameData?.historyController;if(i&&o)i.addNewBet(o)}showError(o){let i=new CustomEvent("show-alert",{detail:{type:"error",message:o},bubbles:!1,composed:!0});this.renderRoot.querySelector("origami-game-layout")?.dispatchEvent(i)}}d([j()],Eo.prototype,"manualOrAuto",void 0),d([j()],Eo.prototype,"hasPendingBet",void 0),d([j()],Eo.prototype,"autobetInProgress",void 0),d([j()],Eo.prototype,"autobetStopping",void 0);var $n=X`
7016
+ `}}d([S({type:Number})],mr.prototype,"selectedValue",void 0),d([S({type:String})],mr.prototype,"diceDirection",void 0),d([S({type:Boolean})],mr.prototype,"isPlaying",void 0),d([S({type:Boolean})],mr.prototype,"showDice",void 0),d([S({type:Boolean})],mr.prototype,"isWin",void 0),d([S({type:Number})],mr.prototype,"resultValue",void 0),d([S({type:Array})],mr.prototype,"history",void 0),d([S({type:Boolean})],mr.prototype,"isDesktop",void 0),mr=d([O("origami-dice-content")],mr);var ki=(o)=>{if(o===1)return"Draw";if(o>1)return"Win";return"Loss"};function bo(o){return new Promise((i)=>setTimeout(i,o))}class Eo extends B{constructor(){super(...arguments);this.manualOrAuto="Manual";this.hasPendingBet=!1;this.autobetInProgress=!1;this.autobetStopping=!1}static soundsToPreload=[];static styles=[G];gameConsumer=new wo(this,{context:D,subscribe:!0});get gameData(){return this.gameConsumer.value}get isDemoMode(){return!this.gameData.authToken||!this.gameData.baseUrl}get isToggleDisabled(){return this.autobetInProgress||this.hasPendingBet}get areInputsDisabled(){return this.autobetInProgress||this.hasPendingBet}getDelay(o){return this.gameData.instantBetEnabled?Math.min(o/10,20):o}getAutobetDelay(){return 300}async forceUIUpdate(){this.requestUpdate(),await new Promise((o)=>setTimeout(o,0))}async executeInstantOrAnimated(o,i){if(this.gameData.instantBetEnabled){let a=await o();return await this.forceUIUpdate(),a}else return await i()}async ensureMinimumDisplayTime(o=!1,i=500,a=500){if(!this.gameData.instantBetEnabled)await this.forceUIUpdate(),await bo(o?i:a)}firstUpdated(){this.constructor.soundsToPreload.forEach((i)=>{this.gameData.soundController?.preload(i)})}disconnectedCallback(){if(super.disconnectedCallback(),this.autobetInProgress)this.autobetStopping=!0,this.autobetInProgress=!1,this.hasPendingBet=!1}async toggleAutobet(o){if(this.autobetInProgress){this.autobetStopping=!0,this.gameData.soundController?.play("bet").catch((e)=>console.error(e));return}let i=o.detail;this.autobetStopping=!1,this.autobetInProgress=!0;let a=this.gameData.amount??"0",t=P(0),r=a;try{this.hasPendingBet=!0;let e=!0;while(e&&!this.autobetStopping){let n=await this.executeAutobet(i,r);if(n.hasError){if(n.errorMessage)this.emit("show-alert",{detail:{type:"error",message:n.errorMessage}});else this.emit("show-alert",{detail:{type:"error",message:q("alerts.gameError",this.gameData.language||"en")}});e=!1;continue}if(t=t.plus(n.pnl),r=this.adjustBetAmount(i,n.gameOutcome,a,r),this.gameData.updateBetAmount(P(r)),!this.isPnLWithinLimits(i,t)){e=!1;continue}if(this.gameData.autobetNumberOfBets===0){e=!0;continue}this.gameData.updateAutobetNumberOfBets(this.gameData.autobetNumberOfBets-1),e=!Number.isNaN(this.gameData.autobetNumberOfBets)&&!!this.gameData.autobetNumberOfBets&&this.gameData.autobetNumberOfBets>0}}catch(e){console.error("Error occurred in toggle autobet",e),this.emit("show-alert",{detail:{type:"error",message:q("alerts.gameError",this.gameData?.language||"en")}})}finally{this.autobetInProgress=!1,this.hasPendingBet=!1,this.autobetStopping=!1}}adjustBetAmount(o,i,a,t){if(i==="Draw")return t;if(o.onWinStrategy==="Reset"&&i==="Win"||o.onLossStrategy==="Reset"&&i==="Loss")return a;let r=i==="Win"?o.onWinPercentage:o.onLossPercentage,e=P(r).dividedBy(100).plus(1);return P(t).multipliedBy(e).toFixed(2)}isPnLWithinLimits(o,i){let a=!P(o.stopOnLoss).eq(0)&&P(i).negated().gte(o.stopOnLoss),t=!P(o.stopOnProfit).eq(0)&&i.gte(o.stopOnProfit);return!a&&!t}updateHistoryWithBet(o){let i=this.gameData?.historyController;if(i&&o)i.addNewBet(o)}showError(o){let i=new CustomEvent("show-alert",{detail:{type:"error",message:o},bubbles:!1,composed:!0});this.renderRoot.querySelector("origami-game-layout")?.dispatchEvent(i)}}d([A()],Eo.prototype,"manualOrAuto",void 0),d([A()],Eo.prototype,"hasPendingBet",void 0),d([A()],Eo.prototype,"autobetInProgress",void 0),d([A()],Eo.prototype,"autobetStopping",void 0);var $n=X`
7017
7017
  origami-dice-content-bottom[slot="content-bottom"] {
7018
7018
  display: grid;
7019
7019
  grid-template-columns: 1fr 1fr 1fr;
7020
7020
  gap: 8px;
7021
7021
  }
7022
- `;class Ja{static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}async startBet(o){let{amount:i,direction:a,selectedValue:t}=o,r=Ja.getRandomValueInRange(0,1e4),e=0;if(r>t)if(a===xo.ABOVE)e=A(po.getMultiplier(t,a)).toNumber();else e=0;else if(a===xo.BELOW)e=A(po.getMultiplier(t,a)).toNumber();else e=0;let n=A(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"dice",currency:"USD",amount:i,payout:n,afterBalance:"1000",multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{DICE:{direction:a,selectedValue:t}},type:"START_BET",actionIndex:0,betAmount:i,payoutAmount:"0"},{id:crypto.randomUUID(),data:{DICE:{result:[r]}},type:"END_BET",actionIndex:1,betAmount:"0",payoutAmount:n}]};return await bo(250),{success:!0,data:s}}}class $a extends Eo{static styles=[...Eo.styles,$n];get isToggleDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get areInputsDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}firstUpdated(){this.gameData?.soundController?.preload("https://assets.betorigami.com/sounds/dice/roll.mp3"),this.gameData?.soundController?.preload("win")}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._diceManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._diceAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")this.dicePlay();else{let i=this._diceAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};diceRollOverToggle=()=>{this.diceDirection=this.diceDirection===xo.ABOVE?xo.BELOW:xo.ABOVE,this.selectedValue=po.getSelectedValueFromRollOver(this.selectedValue)};constructor(){super();this.diceDirection=xo.ABOVE;this.selectedValue=5000;this.isManualPlaying=!1;this.showDice=!1;this.isWin=!0;this.resultValue=null;this.history=[];new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{repeat:!0,repeatInterval:200,disabled:this.isSpacebarDisabled}},{key:"q",callback:this.diceRollOverToggle.bind(this),options:{disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.decreaseSlider.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"e",callback:this.increaseSlider.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}}])}decreaseSlider(){let o=Math.max(5,this.selectedValue-100);if(o!==this.selectedValue)this.selectedValue=o,this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick()}increaseSlider(){let o=Math.min(9995,this.selectedValue+100);if(o!==this.selectedValue)this.selectedValue=o,this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick()}get diceApi(){return this.isDemoMode?new Ja:new po(this.gameData.authToken,this.gameData.baseUrl??"")}async dicePlay(){this.isManualPlaying=!0,this.showDice=!1,this.gameData?.soundController?.play("bet").catch((o)=>console.error(o));try{let o=await this.handleBetExecution(this.gameData.amount);if(!o.success)console.error(o.error)}catch(o){console.error("Error in dicePlay:",o)}finally{this.isManualPlaying=!1}}async handleBetExecution(o){if(!this.gameData.currency)throw new Error(q("alerts.gameError",this.gameData?.language||"en"));let i={language:this.gameData.language,amount:o,currency:this.gameData.currency,direction:this.diceDirection,selectedValue:this.selectedValue},a=await this.diceApi.startBet(i);if(a.success){if(!this.gameData.instantBetEnabled)this.gameData.soundController?.play("dice-roll").catch((l)=>{console.error("Failed to play sound:",l)});let t=this.isDemoMode?A(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):A(a.data.afterBalance??0);this.gameData.updateBalance(t),this.showDice=!0;let{betActions:r}=a.data,e=r[r.length-1];if(!e)throw new Error("No action data received");let{result:n}=e.data.DICE,s=n[0];if(this.resultValue=s,!this.gameData.instantBetEnabled)this.gameData?.hapticController?.trigger([10,20,30,40,30,20,10]);if(this.isWin=this.diceDirection===xo.ABOVE?s>this.selectedValue:s<this.selectedValue,this.isWin)setTimeout(()=>{this.gameData.soundController?.play("win").catch((l)=>{console.error("Failed to play sound:",l)})},300);this.addToHistory(s/100,this.isWin,a.data.id??""),this.updateHistoryWithBet(a.data)}else this.showError(a.error);return a}addToHistory(o,i,a){this.history=[...this.history,{multiplier:o,won:i,id:a}]}async executeAutobet(o,i){try{let a=await this.handleBetExecution(i);if(!a.success)return{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.gameError",this.gameData?.language||"en")};let t=a.data;this.updateHistoryWithBet(t);let r=A(t.payout??0).minus(t.amount??0),e=wi(Number(t.multiplier)),n=this.isWin;return await this.ensureMinimumDisplayTime(n,300,300),await bo(this.getAutobetDelay()),{pnl:r,gameOutcome:e,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}sliderInputChange=(o)=>{this.selectedValue=o.detail.value*100};diceMultiplierChange=(o)=>{let i=+o.detail.multiplier;if(!Number.isNaN(i)&&i>0&&po.isValidMultiplier(o.detail.multiplier))this.selectedValue=po.getSelectedValueFromMultiplier(i,this.diceDirection)};diceWinChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&po.isValidWinChance(o.detail.winChance))this.selectedValue=po.getSelectedValueFromWinChance(i,this.diceDirection)};render(){let o=A(po.getMultiplier(this.selectedValue,this.diceDirection)).multipliedBy(this.gameData.amount).minus(this.gameData.amount).toFixed(4),i=+po.getMultiplier(this.selectedValue,this.diceDirection),a=i<1.0102||Number.isNaN(i)||i>9900,t=this.gameData.mainWidth>=768;return $`
7022
+ `;class Ja{static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}async startBet(o){let{amount:i,direction:a,selectedValue:t}=o,r=Ja.getRandomValueInRange(0,1e4),e=0;if(r>t)if(a===xo.ABOVE)e=P(po.getMultiplier(t,a)).toNumber();else e=0;else if(a===xo.BELOW)e=P(po.getMultiplier(t,a)).toNumber();else e=0;let n=P(i).multipliedBy(e).toString(),s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"dice",currency:"USD",amount:i,payout:n,afterBalance:"1000",multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{DICE:{direction:a,selectedValue:t}},type:"START_BET",actionIndex:0,betAmount:i,payoutAmount:"0"},{id:crypto.randomUUID(),data:{DICE:{result:[r]}},type:"END_BET",actionIndex:1,betAmount:"0",payoutAmount:n}]};return await bo(250),{success:!0,data:s}}}class $a extends Eo{static styles=[...Eo.styles,$n];get isToggleDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get areInputsDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}firstUpdated(){this.gameData?.soundController?.preload("https://assets.betorigami.com/sounds/dice/roll.mp3"),this.gameData?.soundController?.preload("win")}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._diceManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._diceAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")this.dicePlay();else{let i=this._diceAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};diceRollOverToggle=()=>{this.diceDirection=this.diceDirection===xo.ABOVE?xo.BELOW:xo.ABOVE,this.selectedValue=po.getSelectedValueFromRollOver(this.selectedValue)};constructor(){super();this.diceDirection=xo.ABOVE;this.selectedValue=5000;this.isManualPlaying=!1;this.showDice=!1;this.isWin=!0;this.resultValue=null;this.history=[];new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{repeat:!0,repeatInterval:200,disabled:this.isSpacebarDisabled}},{key:"q",callback:this.diceRollOverToggle.bind(this),options:{disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.decreaseSlider.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"e",callback:this.increaseSlider.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>this.isManualPlaying||this.autobetInProgress||this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}}])}decreaseSlider(){let o=Math.max(5,this.selectedValue-100);if(o!==this.selectedValue)this.selectedValue=o,this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick()}increaseSlider(){let o=Math.min(9995,this.selectedValue+100);if(o!==this.selectedValue)this.selectedValue=o,this.gameData?.soundController?.play("dice-tick"),this.gameData?.hapticController?.lightClick()}get diceApi(){return this.isDemoMode?new Ja:new po(this.gameData.authToken,this.gameData.baseUrl??"")}async dicePlay(){this.isManualPlaying=!0,this.showDice=!1,this.gameData?.soundController?.play("bet").catch((o)=>console.error(o));try{let o=await this.handleBetExecution(this.gameData.amount);if(!o.success)console.error(o.error)}catch(o){console.error("Error in dicePlay:",o)}finally{this.isManualPlaying=!1}}async handleBetExecution(o){if(!this.gameData.currency)throw new Error(q("alerts.gameError",this.gameData?.language||"en"));let i={language:this.gameData.language,amount:o,currency:this.gameData.currency,direction:this.diceDirection,selectedValue:this.selectedValue},a=await this.diceApi.startBet(i);if(a.success){if(!this.gameData.instantBetEnabled)this.gameData.soundController?.play("dice-roll").catch((l)=>{console.error("Failed to play sound:",l)});let t=this.isDemoMode?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);this.gameData.updateBalance(t),this.showDice=!0;let{betActions:r}=a.data,e=r[r.length-1];if(!e)throw new Error("No action data received");let{result:n}=e.data.DICE,s=n[0];if(this.resultValue=s,!this.gameData.instantBetEnabled)this.gameData?.hapticController?.trigger([10,20,30,40,30,20,10]);if(this.isWin=this.diceDirection===xo.ABOVE?s>this.selectedValue:s<this.selectedValue,this.isWin)setTimeout(()=>{this.gameData.soundController?.play("win").catch((l)=>{console.error("Failed to play sound:",l)})},300);this.addToHistory(s/100,this.isWin,a.data.id??""),this.updateHistoryWithBet(a.data)}else this.showError(a.error);return a}addToHistory(o,i,a){this.history=[...this.history,{multiplier:o,won:i,id:a}]}async executeAutobet(o,i){try{let a=await this.handleBetExecution(i);if(!a.success)return{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.gameError",this.gameData?.language||"en")};let t=a.data;this.updateHistoryWithBet(t);let r=P(t.payout??0).minus(t.amount??0),e=ki(Number(t.multiplier)),n=this.isWin;return await this.ensureMinimumDisplayTime(n,300,300),await bo(this.getAutobetDelay()),{pnl:r,gameOutcome:e,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}sliderInputChange=(o)=>{this.selectedValue=o.detail.value*100};diceMultiplierChange=(o)=>{let i=+o.detail.multiplier;if(!Number.isNaN(i)&&i>0&&po.isValidMultiplier(o.detail.multiplier))this.selectedValue=po.getSelectedValueFromMultiplier(i,this.diceDirection)};diceWinChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&po.isValidWinChance(o.detail.winChance))this.selectedValue=po.getSelectedValueFromWinChance(i,this.diceDirection)};render(){let o=P(po.getMultiplier(this.selectedValue,this.diceDirection)).multipliedBy(this.gameData.amount).minus(this.gameData.amount).toFixed(4),i=+po.getMultiplier(this.selectedValue,this.diceDirection),a=i<1.0102||Number.isNaN(i)||i>9900,t=this.gameData.mainWidth>=768;return $`
7023
7023
  <origami-game-layout footer-position="below" .gameType=${"DICE"}>
7024
7024
  <origami-game-sidebar
7025
7025
  data-is-desktop=${t}
@@ -7076,7 +7076,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7076
7076
  @dice-roll-over-toggle=${this.diceRollOverToggle}
7077
7077
  ></origami-dice-content>
7078
7078
  </origami-game-layout>
7079
- `}}d([j()],$a.prototype,"diceDirection",void 0),d([j()],$a.prototype,"selectedValue",void 0),d([j()],$a.prototype,"isManualPlaying",void 0),d([j()],$a.prototype,"showDice",void 0),d([j()],$a.prototype,"isWin",void 0),d([j()],$a.prototype,"resultValue",void 0),d([j()],$a.prototype,"history",void 0),d([fo("origami-dice-manual")],$a.prototype,"_diceManualEl",void 0),d([fo("origami-dice-auto")],$a.prototype,"_diceAutoEl",void 0),$a=d([O("origami-dice-game")],$a);var Ya=X`
7079
+ `}}d([A()],$a.prototype,"diceDirection",void 0),d([A()],$a.prototype,"selectedValue",void 0),d([A()],$a.prototype,"isManualPlaying",void 0),d([A()],$a.prototype,"showDice",void 0),d([A()],$a.prototype,"isWin",void 0),d([A()],$a.prototype,"resultValue",void 0),d([A()],$a.prototype,"history",void 0),d([fo("origami-dice-manual")],$a.prototype,"_diceManualEl",void 0),d([fo("origami-dice-auto")],$a.prototype,"_diceAutoEl",void 0),$a=d([O("origami-dice-game")],$a);var Ya=X`
7080
7080
  :host {
7081
7081
  display: flex;
7082
7082
  flex-direction: column-reverse;
@@ -7149,7 +7149,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7149
7149
  gap: var(--keno-controls-gap);
7150
7150
  grid-column: 1 / -1;
7151
7151
  }
7152
- `;class vr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.risk=ro.CLASSIC;this.isPlaying=!1;this.disableBet=!1;this.autoselectRunning=!1;this.selectedTilesCount=0;this.isBetAmountValid=!0}static styles=[G,Ya];render(){let o=this.gameData?.language||"en";return $`
7152
+ `;class kr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.risk=ro.CLASSIC;this.isPlaying=!1;this.disableBet=!1;this.autoselectRunning=!1;this.selectedTilesCount=0;this.isBetAmountValid=!0}static styles=[G,Ya];render(){let o=this.gameData?.language||"en";return $`
7153
7153
  <div class="controls-section">
7154
7154
  <origami-balance-input
7155
7155
  class="grid-full-width hide-on-mobile"
@@ -7243,7 +7243,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7243
7243
  ${q("common.placeBet",o)}
7244
7244
  </origami-button>
7245
7245
  </div>
7246
- `}}d([H({type:Boolean})],vr.prototype,"inputsDisabled",void 0),d([H({type:String})],vr.prototype,"risk",void 0),d([H({type:Boolean})],vr.prototype,"isPlaying",void 0),d([H({type:Boolean})],vr.prototype,"disableBet",void 0),d([H({type:Boolean})],vr.prototype,"autoselectRunning",void 0),d([H({type:Number})],vr.prototype,"selectedTilesCount",void 0),d([ao({context:D,subscribe:!0})],vr.prototype,"gameData",void 0),d([j()],vr.prototype,"isBetAmountValid",void 0),vr=d([O("origami-keno-manual")],vr);class kr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.disableBet=!1;this.autobetInProgress=!1;this.autoselectRunning=!1;this.selectedTilesCount=0;this.isDesktop=!1}static styles=[G,Ya];render(){let o=this.gameData?.language||"en";return $`
7246
+ `}}d([S({type:Boolean})],kr.prototype,"inputsDisabled",void 0),d([S({type:String})],kr.prototype,"risk",void 0),d([S({type:Boolean})],kr.prototype,"isPlaying",void 0),d([S({type:Boolean})],kr.prototype,"disableBet",void 0),d([S({type:Boolean})],kr.prototype,"autoselectRunning",void 0),d([S({type:Number})],kr.prototype,"selectedTilesCount",void 0),d([ao({context:D,subscribe:!0})],kr.prototype,"gameData",void 0),d([A()],kr.prototype,"isBetAmountValid",void 0),kr=d([O("origami-keno-manual")],kr);class xr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.disableBet=!1;this.autobetInProgress=!1;this.autoselectRunning=!1;this.selectedTilesCount=0;this.isDesktop=!1}static styles=[G,Ya];render(){let o=this.gameData?.language||"en";return $`
7247
7247
  <origami-generic-autobet
7248
7248
  ?inputsDisabled=${this.inputsDisabled||this.autoselectRunning}
7249
7249
  ?autobetStopping=${this.autobetStopping}
@@ -7313,7 +7313,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7313
7313
  </div>
7314
7314
  </div>
7315
7315
  </origami-generic-autobet>
7316
- `}}d([H({type:Boolean})],kr.prototype,"inputsDisabled",void 0),d([H({type:Boolean})],kr.prototype,"autobetStopping",void 0),d([H({type:Boolean})],kr.prototype,"disableBet",void 0),d([H({type:Boolean})],kr.prototype,"autobetInProgress",void 0),d([H({type:Boolean})],kr.prototype,"autoselectRunning",void 0),d([H({type:Number})],kr.prototype,"selectedTilesCount",void 0),d([H({type:Boolean})],kr.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],kr.prototype,"gameData",void 0),kr=d([O("origami-keno-auto")],kr);var Yn=X`
7316
+ `}}d([S({type:Boolean})],xr.prototype,"inputsDisabled",void 0),d([S({type:Boolean})],xr.prototype,"autobetStopping",void 0),d([S({type:Boolean})],xr.prototype,"disableBet",void 0),d([S({type:Boolean})],xr.prototype,"autobetInProgress",void 0),d([S({type:Boolean})],xr.prototype,"autoselectRunning",void 0),d([S({type:Number})],xr.prototype,"selectedTilesCount",void 0),d([S({type:Boolean})],xr.prototype,"isDesktop",void 0),d([ao({context:D,subscribe:!0})],xr.prototype,"gameData",void 0),xr=d([O("origami-keno-auto")],xr);var Yn=X`
7317
7317
  :host {
7318
7318
  display: flex;
7319
7319
  flex-direction: column;
@@ -7469,7 +7469,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7469
7469
  background: #464646;
7470
7470
  }
7471
7471
  }
7472
- `;var hl=[{tiles:1,payout:{[ro.CLASSIC]:[0,3.96],[ro.LOW_RISK]:[0.7,1.85],[ro.MEDIUM_RISK]:[0.4,2.75],[ro.HIGH_RISK]:[0,3.96]}},{tiles:2,payout:{[ro.CLASSIC]:[0,1.9,4.5],[ro.LOW_RISK]:[0,2,3.8],[ro.MEDIUM_RISK]:[0,1.8,5.1],[ro.HIGH_RISK]:[0,0,17.1]}},{tiles:3,payout:{[ro.CLASSIC]:[0,1,3.1,10.4],[ro.LOW_RISK]:[0,1.1,1.38,26],[ro.MEDIUM_RISK]:[0,0,2.8,50],[ro.HIGH_RISK]:[0,0,0,81.5]}},{tiles:4,payout:{[ro.CLASSIC]:[0,0.8,1.8,5,22.5],[ro.LOW_RISK]:[0,0,2.2,7.9,90],[ro.MEDIUM_RISK]:[0,0,1.7,10,100],[ro.HIGH_RISK]:[0,0,0,10,259]}},{tiles:5,payout:{[ro.CLASSIC]:[0,0.25,1.4,4.1,16.5,36],[ro.LOW_RISK]:[0,0,1.5,4.2,13,300],[ro.MEDIUM_RISK]:[0,0,1.4,4,14,390],[ro.HIGH_RISK]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{[ro.CLASSIC]:[0,0,1,3.68,7,16.5,40],[ro.LOW_RISK]:[0,0,1.1,2,6.2,100,700],[ro.MEDIUM_RISK]:[0,0,0,3,9,180,710],[ro.HIGH_RISK]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{[ro.CLASSIC]:[0,0,0.47,3,4.5,14,31,60],[ro.LOW_RISK]:[0,0,1.1,1.6,3.5,15,225,700],[ro.MEDIUM_RISK]:[0,0,0,2,7,30,400,800],[ro.HIGH_RISK]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{[ro.CLASSIC]:[0,0,0,2.2,4,13,22,55,70],[ro.LOW_RISK]:[0,0,1.1,1.5,2,5.5,39,100,800],[ro.MEDIUM_RISK]:[0,0,0,2,4,11,67,400,900],[ro.HIGH_RISK]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{[ro.CLASSIC]:[0,0,0,1.55,3,8,15,44,60,85],[ro.LOW_RISK]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],[ro.MEDIUM_RISK]:[0,0,0,2,2.5,5,15,100,500,1000],[ro.HIGH_RISK]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{[ro.CLASSIC]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],[ro.LOW_RISK]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],[ro.MEDIUM_RISK]:[0,0,0,1.6,2,4,7,26,100,500,1000],[ro.HIGH_RISK]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}];class xr extends B{constructor(){super(...arguments);this.isDesktop=!1;this.selectedTiles=[];this.risk=ro.CLASSIC;this.betAmount="0";this.hitCount=0;this.multipliersForSelectedTiles=0;this.resultTiles=[];this.hoverItemIndex=-1}static styles=[G,Yn];updated(o){if(o.has("resultTiles")&&this.resultTiles.length>0)this.scrollToHighlightedGem()}scrollToHighlightedGem(){requestAnimationFrame(()=>{let o=this.shadowRoot?.querySelector('.gem-container .multiply-button[match-hit-count="true"]');if(o)o.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})})}formatMultiplier(o){return`${o.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}X`}handleMouseOver(o,i){if(!this.isDesktop)return;if(i.target)this.hoverItemIndex=o}handleMouseLeave(){if(!this.isDesktop)return;this.hoverItemIndex=-1}render(){let o=this.gameData?.language||"en",i=this.multipliersForSelectedTiles,r=[null,...hl[i-1]?.payout?.[this.risk]??[]],e=Array.from({length:i+1},(u,g)=>g),n=r[this.hoverItemIndex+1]??0,s=this.hoverItemIndex>=0&&this.hoverItemIndex<=this.multipliersForSelectedTiles?Ka.getChance({correctPicks:this.hoverItemIndex,picked:this.multipliersForSelectedTiles}).times(100):A(0),l=n*+this.betAmount;if(i===0)return $`
7472
+ `;var ul=[{tiles:1,payout:{[ro.CLASSIC]:[0,3.96],[ro.LOW_RISK]:[0.7,1.85],[ro.MEDIUM_RISK]:[0.4,2.75],[ro.HIGH_RISK]:[0,3.96]}},{tiles:2,payout:{[ro.CLASSIC]:[0,1.9,4.5],[ro.LOW_RISK]:[0,2,3.8],[ro.MEDIUM_RISK]:[0,1.8,5.1],[ro.HIGH_RISK]:[0,0,17.1]}},{tiles:3,payout:{[ro.CLASSIC]:[0,1,3.1,10.4],[ro.LOW_RISK]:[0,1.1,1.38,26],[ro.MEDIUM_RISK]:[0,0,2.8,50],[ro.HIGH_RISK]:[0,0,0,81.5]}},{tiles:4,payout:{[ro.CLASSIC]:[0,0.8,1.8,5,22.5],[ro.LOW_RISK]:[0,0,2.2,7.9,90],[ro.MEDIUM_RISK]:[0,0,1.7,10,100],[ro.HIGH_RISK]:[0,0,0,10,259]}},{tiles:5,payout:{[ro.CLASSIC]:[0,0.25,1.4,4.1,16.5,36],[ro.LOW_RISK]:[0,0,1.5,4.2,13,300],[ro.MEDIUM_RISK]:[0,0,1.4,4,14,390],[ro.HIGH_RISK]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{[ro.CLASSIC]:[0,0,1,3.68,7,16.5,40],[ro.LOW_RISK]:[0,0,1.1,2,6.2,100,700],[ro.MEDIUM_RISK]:[0,0,0,3,9,180,710],[ro.HIGH_RISK]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{[ro.CLASSIC]:[0,0,0.47,3,4.5,14,31,60],[ro.LOW_RISK]:[0,0,1.1,1.6,3.5,15,225,700],[ro.MEDIUM_RISK]:[0,0,0,2,7,30,400,800],[ro.HIGH_RISK]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{[ro.CLASSIC]:[0,0,0,2.2,4,13,22,55,70],[ro.LOW_RISK]:[0,0,1.1,1.5,2,5.5,39,100,800],[ro.MEDIUM_RISK]:[0,0,0,2,4,11,67,400,900],[ro.HIGH_RISK]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{[ro.CLASSIC]:[0,0,0,1.55,3,8,15,44,60,85],[ro.LOW_RISK]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],[ro.MEDIUM_RISK]:[0,0,0,2,2.5,5,15,100,500,1000],[ro.HIGH_RISK]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{[ro.CLASSIC]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],[ro.LOW_RISK]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],[ro.MEDIUM_RISK]:[0,0,0,1.6,2,4,7,26,100,500,1000],[ro.HIGH_RISK]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}];class zr extends B{constructor(){super(...arguments);this.isDesktop=!1;this.selectedTiles=[];this.risk=ro.CLASSIC;this.betAmount="0";this.hitCount=0;this.multipliersForSelectedTiles=0;this.resultTiles=[];this.hoverItemIndex=-1}static styles=[G,Yn];updated(o){if(o.has("resultTiles")&&this.resultTiles.length>0)this.scrollToHighlightedGem()}scrollToHighlightedGem(){requestAnimationFrame(()=>{let o=this.shadowRoot?.querySelector('.gem-container .multiply-button[match-hit-count="true"]');if(o)o.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})})}formatMultiplier(o){return`${o.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}X`}handleMouseOver(o,i){if(!this.isDesktop)return;if(i.target)this.hoverItemIndex=o}handleMouseLeave(){if(!this.isDesktop)return;this.hoverItemIndex=-1}render(){let o=this.gameData?.language||"en",i=this.multipliersForSelectedTiles,r=[null,...ul[i-1]?.payout?.[this.risk]??[]],e=Array.from({length:i+1},(h,g)=>g),n=r[this.hoverItemIndex+1]??0,s=this.hoverItemIndex>=0&&this.hoverItemIndex<=this.multipliersForSelectedTiles?Ka.getChance({correctPicks:this.hoverItemIndex,picked:this.multipliersForSelectedTiles}).times(100):P(0),l=n*+this.betAmount;if(i===0)return $`
7473
7473
  <div class="container" style=${Vo({["--button-count"]:"1"})}>
7474
7474
  ${this.isDesktop&&this.hoverItemIndex>-1?$`<div class="multiplier-info">
7475
7475
  <div class="info-item">
@@ -7518,7 +7518,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7518
7518
  class="multiply-button"
7519
7519
  data-testid="keno-multiple-0"
7520
7520
  hovered=${this.hoverItemIndex===0}
7521
- @mouseenter=${(u)=>this.handleMouseOver(0,u)}
7521
+ @mouseenter=${(h)=>this.handleMouseOver(0,h)}
7522
7522
  >
7523
7523
  <span>0</span> ${Ei}
7524
7524
  </span>
@@ -7564,29 +7564,29 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7564
7564
  </div>
7565
7565
  </div>`:$`<div class="top-row-scroll-wrapper">
7566
7566
  <div class="hit-column-wrapper">
7567
- ${e.map((u)=>$`
7568
- <span class="multiply-button" data-testid="keno-multiple-${u}">
7569
- ${this.formatMultiplier(r[u+1]??0)}
7567
+ ${e.map((h)=>$`
7568
+ <span class="multiply-button" data-testid="keno-multiple-${h}">
7569
+ ${this.formatMultiplier(r[h+1]??0)}
7570
7570
  </span>
7571
7571
  `)}
7572
7572
  </div>
7573
7573
  </div>`}
7574
7574
 
7575
7575
  <div class="gem-container" @mouseleave=${()=>this.handleMouseLeave()}>
7576
- ${e.map((u)=>$`
7576
+ ${e.map((h)=>$`
7577
7577
  <span
7578
7578
  class="multiply-button"
7579
- data-testid="keno-multiple-${u}"
7580
- hovered=${this.hoverItemIndex===u}
7581
- match-hit-count=${this.hitCount===u&&this.resultTiles.length>0}
7582
- @mouseenter=${(g)=>this.handleMouseOver(u,g)}
7579
+ data-testid="keno-multiple-${h}"
7580
+ hovered=${this.hoverItemIndex===h}
7581
+ match-hit-count=${this.hitCount===h&&this.resultTiles.length>0}
7582
+ @mouseenter=${(g)=>this.handleMouseOver(h,g)}
7583
7583
  >
7584
- <span>${u}</span> ${Ei}
7584
+ <span>${h}</span> ${Ei}
7585
7585
  </span>
7586
7586
  `)}
7587
7587
  </div>
7588
7588
  </div>
7589
- `}}d([H({type:Boolean,attribute:"data-is-desktop"})],xr.prototype,"isDesktop",void 0),d([H({type:Array})],xr.prototype,"selectedTiles",void 0),d([H({type:String})],xr.prototype,"risk",void 0),d([H({type:String})],xr.prototype,"betAmount",void 0),d([H({type:Number})],xr.prototype,"hitCount",void 0),d([H({type:Number})],xr.prototype,"multipliersForSelectedTiles",void 0),d([H({type:Array})],xr.prototype,"resultTiles",void 0),d([j()],xr.prototype,"hoverItemIndex",void 0),d([ao({context:D,subscribe:!0})],xr.prototype,"gameData",void 0),xr=d([O("origami-keno-content-bottom")],xr);var Cn=X`
7589
+ `}}d([S({type:Boolean,attribute:"data-is-desktop"})],zr.prototype,"isDesktop",void 0),d([S({type:Array})],zr.prototype,"selectedTiles",void 0),d([S({type:String})],zr.prototype,"risk",void 0),d([S({type:String})],zr.prototype,"betAmount",void 0),d([S({type:Number})],zr.prototype,"hitCount",void 0),d([S({type:Number})],zr.prototype,"multipliersForSelectedTiles",void 0),d([S({type:Array})],zr.prototype,"resultTiles",void 0),d([A()],zr.prototype,"hoverItemIndex",void 0),d([ao({context:D,subscribe:!0})],zr.prototype,"gameData",void 0),zr=d([O("origami-keno-content-bottom")],zr);var Ln=X`
7590
7590
  :host {
7591
7591
  height: 100%;
7592
7592
 
@@ -7634,7 +7634,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7634
7634
  }
7635
7635
  }
7636
7636
 
7637
- `;class zr extends B{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.isPlaying=!1;this.gameOver=!1;this.multipliersForSelectedTiles=0;this.payout=null;this.gameWinPopupShowing=!1;this.multiplier=0;this.risk=ro.CLASSIC;this.betAmount="0";this.autoselectRunning=!1;this.isDesktop=!1}static styles=[G,Cn];get hitCount(){return this.selectedTiles.filter((o)=>this.resultTiles.includes(o)).length}render(){return $`
7637
+ `;class yr extends B{constructor(){super(...arguments);this.selectedTiles=[];this.resultTiles=[];this.isPlaying=!1;this.gameOver=!1;this.multipliersForSelectedTiles=0;this.payout=null;this.gameWinPopupShowing=!1;this.multiplier=0;this.risk=ro.CLASSIC;this.betAmount="0";this.autoselectRunning=!1;this.isDesktop=!1}static styles=[G,Ln];get hitCount(){return this.selectedTiles.filter((o)=>this.resultTiles.includes(o)).length}render(){return $`
7638
7638
  <div
7639
7639
  class=${to({container:!0})}
7640
7640
  >
@@ -7673,7 +7673,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7673
7673
  .multipliersForSelectedTiles=${this.multipliersForSelectedTiles}
7674
7674
  ></origami-keno-content-bottom>
7675
7675
  </div>
7676
- `}}d([H({type:Array})],zr.prototype,"selectedTiles",void 0),d([H({type:Array})],zr.prototype,"resultTiles",void 0),d([H({type:Boolean})],zr.prototype,"isPlaying",void 0),d([H({type:Boolean})],zr.prototype,"gameOver",void 0),d([H({type:Number})],zr.prototype,"multipliersForSelectedTiles",void 0),d([H({type:Object})],zr.prototype,"payout",void 0),d([H({type:Boolean})],zr.prototype,"gameWinPopupShowing",void 0),d([H({type:Number})],zr.prototype,"multiplier",void 0),d([H({type:String})],zr.prototype,"risk",void 0),d([H({type:String})],zr.prototype,"betAmount",void 0),d([H({type:String})],zr.prototype,"betId",void 0),d([H({type:Boolean})],zr.prototype,"autoselectRunning",void 0),d([H({type:Boolean})],zr.prototype,"isDesktop",void 0),zr=d([O("origami-keno-content")],zr);var Ca=10,Ln=40;class yr{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/keno"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}}var fl=10;var pl=[{tiles:1,payout:{["CLASSIC"]:[0,3.96],["LOW_RISK"]:[0.7,1.85],["MEDIUM_RISK"]:[0.4,2.75],["HIGH_RISK"]:[0,3.96]}},{tiles:2,payout:{["CLASSIC"]:[0,1.9,4.5],["LOW_RISK"]:[0,2,3.8],["MEDIUM_RISK"]:[0,1.8,5.1],["HIGH_RISK"]:[0,0,17.1]}},{tiles:3,payout:{["CLASSIC"]:[0,1,3.1,10.4],["LOW_RISK"]:[0,1.1,1.38,26],["MEDIUM_RISK"]:[0,0,2.8,50],["HIGH_RISK"]:[0,0,0,81.5]}},{tiles:4,payout:{["CLASSIC"]:[0,0.8,1.8,5,22.5],["LOW_RISK"]:[0,0,2.2,7.9,90],["MEDIUM_RISK"]:[0,0,1.7,10,100],["HIGH_RISK"]:[0,0,0,10,259]}},{tiles:5,payout:{["CLASSIC"]:[0,0.25,1.4,4.1,16.5,36],["LOW_RISK"]:[0,0,1.5,4.2,13,300],["MEDIUM_RISK"]:[0,0,1.4,4,14,390],["HIGH_RISK"]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{["CLASSIC"]:[0,0,1,3.68,7,16.5,40],["LOW_RISK"]:[0,0,1.1,2,6.2,100,700],["MEDIUM_RISK"]:[0,0,0,3,9,180,710],["HIGH_RISK"]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{["CLASSIC"]:[0,0,0.47,3,4.5,14,31,60],["LOW_RISK"]:[0,0,1.1,1.6,3.5,15,225,700],["MEDIUM_RISK"]:[0,0,0,2,7,30,400,800],["HIGH_RISK"]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{["CLASSIC"]:[0,0,0,2.2,4,13,22,55,70],["LOW_RISK"]:[0,0,1.1,1.5,2,5.5,39,100,800],["MEDIUM_RISK"]:[0,0,0,2,4,11,67,400,900],["HIGH_RISK"]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{["CLASSIC"]:[0,0,0,1.55,3,8,15,44,60,85],["LOW_RISK"]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],["MEDIUM_RISK"]:[0,0,0,2,2.5,5,15,100,500,1000],["HIGH_RISK"]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{["CLASSIC"]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],["LOW_RISK"]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],["MEDIUM_RISK"]:[0,0,0,1.6,2,4,7,26,100,500,1000],["HIGH_RISK"]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}];class ta{static generateRandomTiles(o,i=[]){let a=Array.from({length:Ln},(t,r)=>r+1).filter((t)=>!i.includes(t));return[...a].sort(()=>0.5-Math.random()).slice(0,Math.min(o,a.length))}static calculateMultiplier(o,i,a){let t=o.filter((s)=>i.includes(s)).length,r=o.length,e=pl[r-1].payout;if(!e)return 0;let n=e[a];if(!n||t>=n.length)return 0;return n[t]||0}startBet=async(o)=>{let{amount:i,riskLevel:a,selectedNumbers:t}=o,r=ta.generateRandomTiles(fl),e=ta.calculateMultiplier(t,r,a),n=A(i).multipliedBy(e).toString(),l={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"KENO",currency:o.currency,amount:i,payout:n,afterBalance:"1000",multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{KENO:{selectedNumbers:t,riskLevel:a}},type:"START_BET",actionIndex:0,betAmount:i,payoutAmount:null},{id:crypto.randomUUID(),data:{KENO:{result:r}},type:"END_BET",actionIndex:1,betAmount:null,payoutAmount:n}]};return await bo(250),{success:!0,data:l}}}class La extends Eo{getDisplayMultiplier(o,i,a){return A(o).isZero()?Ka.calculateMultiplier(this.kenoRisk,this.selectedTiles,a).toNumber():i}get isToggleDisabled(){return this.autobetInProgress||this.isManualPlaying||this.autoselectRunning}get areInputsDisabled(){return this.autobetInProgress||this.isManualPlaying||this.autoselectRunning}get kenoApi(){return this.isDemoMode?new ta:new yr(this.gameData.authToken,this.gameData.baseUrl)}async kenoPlay(){if(this.gameWinPopupShowing=!1,this.selectedTiles.length===0){alert(q("games.keno.selectAtLeastOneTile",this.gameData?.language||"en"));return}this.gameData?.soundController?.play("bet").catch((o)=>console.error(o)),this.isManualPlaying=!0,this.resultTiles=[],this.gameOver=!1;try{let o=await this.handleBetExecution(this.gameData?.amount??"0",this.getDelay(150));if(!o.success){this.showError(o.error);return}this.betId=o.data.id}catch(o){console.error("Error in kenoPlay:",o)}finally{this.isManualPlaying=!1,this.gameOver=!0}}async handleBetExecution(o,i){if(!this.gameData?.currency)throw new Error("Currency is not set");let a={language:this.gameData.language,amount:o,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(t.success){let{betActions:r}=t.data,e=r[r.length-1]?.data.KENO;if(!e)throw new Error("No keno data found");if(this.multiplier=this.getDisplayMultiplier(this.gameData?.amount??"0",Number(t.data.multiplier),e.result),await this.executeInstantOrAnimated(async()=>{if(e.result.some((l)=>this.selectedTiles.includes(l)))this.gameData?.soundController?.play("keno-gem").catch((l)=>console.error(l));else this.gameData?.soundController?.play("secondary").catch((l)=>console.error(l));this.resultTiles=[...e.result]},async()=>{for(let s of e.result){if(this.selectedTiles.includes(s))this.gameData?.soundController?.play("keno-gem").catch((l)=>console.error(l));else this.gameData?.soundController?.play("secondary").catch((l)=>console.error(l));this.resultTiles=[...this.resultTiles,s],await bo(i)}}),this.gameWinPopupShowing=this.multiplier>0,this.gameWinPopupShowing)this.gameData?.soundController?.play("win").catch((s)=>console.error(s));this.payout=A(t.data.payout??0),this.addToHistory(A(t.data.multiplier??0).toNumber(),this.gameWinPopupShowing,t.data.id??""),this.updateHistoryWithBet(t.data);let n=this.isDemoMode?A(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):A(t.data.afterBalance??0);this.gameData.updateBalance(n)}return t}addToHistory(o,i,a){let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t.slice(-5)}async executeAutobet(o,i){try{if(!this.gameData?.currency)throw new Error("Currency is not set");if(this.resultTiles=[],this.gameOver=!1,this.gameWinPopupShowing=!1,this.gameData?.instantBetEnabled)await this.forceUIUpdate();if(this.selectedTiles.length===0)return{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.keno.selectTileToAutobet",this.gameData?.language||"en")};let a={language:this.gameData.language,amount:i,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(!t.success)return this.showError(t.error),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:t.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};let r=t.data,e=A(r.payout??0).minus(r.amount??0),n=wi(Number(r.multiplier)),s=r.betActions,l=s[s.length-1]?.data.KENO;if(!l)throw new Error("No keno data found");let{result:u}=l;if(this.multiplier=this.getDisplayMultiplier(i,Number(r.multiplier),u),await this.executeInstantOrAnimated(async()=>{if(u.some((f)=>this.selectedTiles.includes(f)))this.gameData?.soundController?.play("keno-gem").catch((f)=>console.error(f));else this.gameData?.soundController?.play("secondary").catch((f)=>console.error(f));this.resultTiles=[...u]},async()=>{for(let S of u){if(this.selectedTiles.includes(S))this.gameData?.soundController?.play("keno-gem").catch((f)=>console.error(f));else this.gameData?.soundController?.play("secondary").catch((f)=>console.error(f));this.resultTiles=[...this.resultTiles,S],await bo(this.getDelay(150))}}),this.gameWinPopupShowing=this.multiplier>0,this.gameWinPopupShowing)this.gameData?.soundController?.play("win").catch((S)=>console.error(S));this.payout=A(r.payout??0),this.addToHistory(Number(r.multiplier??0),this.gameWinPopupShowing,r.id??""),this.updateHistoryWithBet(r),await this.ensureMinimumDisplayTime(this.gameWinPopupShowing,300,300),await bo(this.getAutobetDelay()),this.gameWinPopupShowing=!1;let g=this.isDemoMode?A(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):A(t.data.afterBalance??0);return this.gameData.updateBalance(g),{pnl:e,gameOutcome:n,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}finally{this.gameOver=!0}}handleTileClick=(o)=>{if(this.gameOver)this.newGame();if(this.autoselectRunning)return;if(this.gameData?.soundController?.play("click").catch((a)=>console.error(a)),this.selectedTiles.includes(o.detail.tile))this.selectedTiles=this.selectedTiles.filter((a)=>a!==o.detail.tile);else if(this.selectedTiles.length<Ca)this.selectedTiles=[...this.selectedTiles,o.detail.tile]};handleRiskChange=(o)=>{this.kenoRisk=o.detail.value};autoPick=async()=>{if(this.isManualPlaying||this.autoselectRunning)return;if(this.autoselectRunning=!0,this.hadTilesBeforeAutopick=this.selectedTiles.length>0,this.resultTiles=[],this.gameWinPopupShowing=!1,this.selectedTiles.length>=Ca)this.selectedTiles=[];let o=Ca-this.selectedTiles.length;if(o<=0)return;let a=Array.from({length:40},(e,n)=>n+1).filter((e)=>!this.selectedTiles.includes(e));if(a.length===0)return;let r=[...a].sort(()=>0.5-Math.random()).slice(0,o);for(let e of r)this.gameData?.soundController?.play("click").catch((n)=>console.error(n)),this.gameData?.hapticController?.lightClick(),this.selectedTiles=[...this.selectedTiles,e],await bo(150);this.autoselectRunning=!1,this.hadTilesBeforeAutopick=!1};clearTable=()=>{if(this.isManualPlaying||this.autoselectRunning)return;this.gameData?.soundController?.play("keno-clear").catch((o)=>console.error(o)),this.gameWinPopupShowing=!1,this.selectedTiles=[],this.resultTiles=[],this.payout=null};newGame=()=>{this.gameWinPopupShowing=!1,this.resultTiles=[],this.payout=null};render(){let o=this.autoselectRunning?10:this.selectedTiles.length,i=this.selectedTiles.length>0||this.autoselectRunning,a=this.gameData?.mainWidth>=768;return $`
7676
+ `}}d([S({type:Array})],yr.prototype,"selectedTiles",void 0),d([S({type:Array})],yr.prototype,"resultTiles",void 0),d([S({type:Boolean})],yr.prototype,"isPlaying",void 0),d([S({type:Boolean})],yr.prototype,"gameOver",void 0),d([S({type:Number})],yr.prototype,"multipliersForSelectedTiles",void 0),d([S({type:Object})],yr.prototype,"payout",void 0),d([S({type:Boolean})],yr.prototype,"gameWinPopupShowing",void 0),d([S({type:Number})],yr.prototype,"multiplier",void 0),d([S({type:String})],yr.prototype,"risk",void 0),d([S({type:String})],yr.prototype,"betAmount",void 0),d([S({type:String})],yr.prototype,"betId",void 0),d([S({type:Boolean})],yr.prototype,"autoselectRunning",void 0),d([S({type:Boolean})],yr.prototype,"isDesktop",void 0),yr=d([O("origami-keno-content")],yr);var La=10,Cn=40;class Hr{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/keno"}async startBet(o){let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}}}var fl=10;var pl=[{tiles:1,payout:{["CLASSIC"]:[0,3.96],["LOW_RISK"]:[0.7,1.85],["MEDIUM_RISK"]:[0.4,2.75],["HIGH_RISK"]:[0,3.96]}},{tiles:2,payout:{["CLASSIC"]:[0,1.9,4.5],["LOW_RISK"]:[0,2,3.8],["MEDIUM_RISK"]:[0,1.8,5.1],["HIGH_RISK"]:[0,0,17.1]}},{tiles:3,payout:{["CLASSIC"]:[0,1,3.1,10.4],["LOW_RISK"]:[0,1.1,1.38,26],["MEDIUM_RISK"]:[0,0,2.8,50],["HIGH_RISK"]:[0,0,0,81.5]}},{tiles:4,payout:{["CLASSIC"]:[0,0.8,1.8,5,22.5],["LOW_RISK"]:[0,0,2.2,7.9,90],["MEDIUM_RISK"]:[0,0,1.7,10,100],["HIGH_RISK"]:[0,0,0,10,259]}},{tiles:5,payout:{["CLASSIC"]:[0,0.25,1.4,4.1,16.5,36],["LOW_RISK"]:[0,0,1.5,4.2,13,300],["MEDIUM_RISK"]:[0,0,1.4,4,14,390],["HIGH_RISK"]:[0,0,0,4.5,48,450]}},{tiles:6,payout:{["CLASSIC"]:[0,0,1,3.68,7,16.5,40],["LOW_RISK"]:[0,0,1.1,2,6.2,100,700],["MEDIUM_RISK"]:[0,0,0,3,9,180,710],["HIGH_RISK"]:[0,0,0,0,11,350,710]}},{tiles:7,payout:{["CLASSIC"]:[0,0,0.47,3,4.5,14,31,60],["LOW_RISK"]:[0,0,1.1,1.6,3.5,15,225,700],["MEDIUM_RISK"]:[0,0,0,2,7,30,400,800],["HIGH_RISK"]:[0,0,0,0,7,90,400,800]}},{tiles:8,payout:{["CLASSIC"]:[0,0,0,2.2,4,13,22,55,70],["LOW_RISK"]:[0,0,1.1,1.5,2,5.5,39,100,800],["MEDIUM_RISK"]:[0,0,0,2,4,11,67,400,900],["HIGH_RISK"]:[0,0,0,0,5,20,270,600,900]}},{tiles:9,payout:{["CLASSIC"]:[0,0,0,1.55,3,8,15,44,60,85],["LOW_RISK"]:[0,0,1.1,1.3,1.7,2.5,7.5,50,250,1000],["MEDIUM_RISK"]:[0,0,0,2,2.5,5,15,100,500,1000],["HIGH_RISK"]:[0,0,0,0,4,11,56,500,800,1000]}},{tiles:10,payout:{["CLASSIC"]:[0,0,0,1.4,2.25,4.5,8,17,50,80,100],["LOW_RISK"]:[0,0,1.1,1.2,1.3,1.8,3.5,13,50,250,1000],["MEDIUM_RISK"]:[0,0,0,1.6,2,4,7,26,100,500,1000],["HIGH_RISK"]:[0,0,0,0,3.5,8,13,63,500,800,1000]}}];class ta{static generateRandomTiles(o,i=[]){let a=Array.from({length:Cn},(t,r)=>r+1).filter((t)=>!i.includes(t));return[...a].sort(()=>0.5-Math.random()).slice(0,Math.min(o,a.length))}static calculateMultiplier(o,i,a){let t=o.filter((s)=>i.includes(s)).length,r=o.length,e=pl[r-1].payout;if(!e)return 0;let n=e[a];if(!n||t>=n.length)return 0;return n[t]||0}startBet=async(o)=>{let{amount:i,riskLevel:a,selectedNumbers:t}=o,r=ta.generateRandomTiles(fl),e=ta.calculateMultiplier(t,r,a),n=P(i).multipliedBy(e).toString(),l={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"KENO",currency:o.currency,amount:i,payout:n,afterBalance:"1000",multiplier:e.toString(),tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{KENO:{selectedNumbers:t,riskLevel:a}},type:"START_BET",actionIndex:0,betAmount:i,payoutAmount:null},{id:crypto.randomUUID(),data:{KENO:{result:r}},type:"END_BET",actionIndex:1,betAmount:null,payoutAmount:n}]};return await bo(250),{success:!0,data:l}}}class Ca extends Eo{getDisplayMultiplier(o,i,a){return P(o).isZero()?Ka.calculateMultiplier(this.kenoRisk,this.selectedTiles,a).toNumber():i}get isToggleDisabled(){return this.autobetInProgress||this.isManualPlaying||this.autoselectRunning}get areInputsDisabled(){return this.autobetInProgress||this.isManualPlaying||this.autoselectRunning}get kenoApi(){return this.isDemoMode?new ta:new Hr(this.gameData.authToken,this.gameData.baseUrl)}async kenoPlay(){if(this.gameWinPopupShowing=!1,this.selectedTiles.length===0){alert(q("games.keno.selectAtLeastOneTile",this.gameData?.language||"en"));return}this.gameData?.soundController?.play("bet").catch((o)=>console.error(o)),this.isManualPlaying=!0,this.resultTiles=[],this.gameOver=!1;try{let o=await this.handleBetExecution(this.gameData?.amount??"0",this.getDelay(150));if(!o.success){this.showError(o.error);return}this.betId=o.data.id}catch(o){console.error("Error in kenoPlay:",o)}finally{this.isManualPlaying=!1,this.gameOver=!0}}async handleBetExecution(o,i){if(!this.gameData?.currency)throw new Error("Currency is not set");let a={language:this.gameData.language,amount:o,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(t.success){let{betActions:r}=t.data,e=r[r.length-1]?.data.KENO;if(!e)throw new Error("No keno data found");if(this.multiplier=this.getDisplayMultiplier(this.gameData?.amount??"0",Number(t.data.multiplier),e.result),await this.executeInstantOrAnimated(async()=>{if(e.result.some((l)=>this.selectedTiles.includes(l)))this.gameData?.soundController?.play("keno-gem").catch((l)=>console.error(l));else this.gameData?.soundController?.play("secondary").catch((l)=>console.error(l));this.resultTiles=[...e.result]},async()=>{for(let s of e.result){if(this.selectedTiles.includes(s))this.gameData?.soundController?.play("keno-gem").catch((l)=>console.error(l));else this.gameData?.soundController?.play("secondary").catch((l)=>console.error(l));this.resultTiles=[...this.resultTiles,s],await bo(i)}}),this.gameWinPopupShowing=this.multiplier>0,this.gameWinPopupShowing)this.gameData?.soundController?.play("win").catch((s)=>console.error(s));this.payout=P(t.data.payout??0),this.addToHistory(P(t.data.multiplier??0).toNumber(),this.gameWinPopupShowing,t.data.id??""),this.updateHistoryWithBet(t.data);let n=this.isDemoMode?P(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):P(t.data.afterBalance??0);this.gameData.updateBalance(n)}return t}addToHistory(o,i,a){let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t.slice(-5)}async executeAutobet(o,i){try{if(!this.gameData?.currency)throw new Error("Currency is not set");if(this.resultTiles=[],this.gameOver=!1,this.gameWinPopupShowing=!1,this.gameData?.instantBetEnabled)await this.forceUIUpdate();if(this.selectedTiles.length===0)return{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.keno.selectTileToAutobet",this.gameData?.language||"en")};let a={language:this.gameData.language,amount:i,currency:this.gameData.currency,riskLevel:this.kenoRisk,selectedNumbers:this.selectedTiles},t=await this.kenoApi.startBet(a);if(!t.success)return this.showError(t.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:t.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};let r=t.data,e=P(r.payout??0).minus(r.amount??0),n=ki(Number(r.multiplier)),s=r.betActions,l=s[s.length-1]?.data.KENO;if(!l)throw new Error("No keno data found");let{result:h}=l;if(this.multiplier=this.getDisplayMultiplier(i,Number(r.multiplier),h),await this.executeInstantOrAnimated(async()=>{if(h.some((f)=>this.selectedTiles.includes(f)))this.gameData?.soundController?.play("keno-gem").catch((f)=>console.error(f));else this.gameData?.soundController?.play("secondary").catch((f)=>console.error(f));this.resultTiles=[...h]},async()=>{for(let H of h){if(this.selectedTiles.includes(H))this.gameData?.soundController?.play("keno-gem").catch((f)=>console.error(f));else this.gameData?.soundController?.play("secondary").catch((f)=>console.error(f));this.resultTiles=[...this.resultTiles,H],await bo(this.getDelay(150))}}),this.gameWinPopupShowing=this.multiplier>0,this.gameWinPopupShowing)this.gameData?.soundController?.play("win").catch((H)=>console.error(H));this.payout=P(r.payout??0),this.addToHistory(Number(r.multiplier??0),this.gameWinPopupShowing,r.id??""),this.updateHistoryWithBet(r),await this.ensureMinimumDisplayTime(this.gameWinPopupShowing,300,300),await bo(this.getAutobetDelay()),this.gameWinPopupShowing=!1;let g=this.isDemoMode?P(this.gameData.balance).minus(t.data.amount??0).plus(t.data.payout??0):P(t.data.afterBalance??0);return this.gameData.updateBalance(g),{pnl:e,gameOutcome:n,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}finally{this.gameOver=!0}}handleTileClick=(o)=>{if(this.gameOver)this.newGame();if(this.autoselectRunning)return;if(this.gameData?.soundController?.play("click").catch((a)=>console.error(a)),this.selectedTiles.includes(o.detail.tile))this.selectedTiles=this.selectedTiles.filter((a)=>a!==o.detail.tile);else if(this.selectedTiles.length<La)this.selectedTiles=[...this.selectedTiles,o.detail.tile]};handleRiskChange=(o)=>{this.kenoRisk=o.detail.value};autoPick=async()=>{if(this.isManualPlaying||this.autoselectRunning)return;if(this.autoselectRunning=!0,this.hadTilesBeforeAutopick=this.selectedTiles.length>0,this.resultTiles=[],this.gameWinPopupShowing=!1,this.selectedTiles.length>=La)this.selectedTiles=[];let o=La-this.selectedTiles.length;if(o<=0)return;let a=Array.from({length:40},(e,n)=>n+1).filter((e)=>!this.selectedTiles.includes(e));if(a.length===0)return;let r=[...a].sort(()=>0.5-Math.random()).slice(0,o);for(let e of r)this.gameData?.soundController?.play("click").catch((n)=>console.error(n)),this.gameData?.hapticController?.lightClick(),this.selectedTiles=[...this.selectedTiles,e],await bo(150);this.autoselectRunning=!1,this.hadTilesBeforeAutopick=!1};clearTable=()=>{if(this.isManualPlaying||this.autoselectRunning)return;this.gameData?.soundController?.play("keno-clear").catch((o)=>console.error(o)),this.gameWinPopupShowing=!1,this.selectedTiles=[],this.resultTiles=[],this.payout=null};newGame=()=>{this.gameWinPopupShowing=!1,this.resultTiles=[],this.payout=null};render(){let o=this.autoselectRunning?10:this.selectedTiles.length,i=this.selectedTiles.length>0||this.autoselectRunning,a=this.gameData?.mainWidth>=768;return $`
7677
7677
  <origami-game-layout footer-position="below" .gameType=${"KENO"}>
7678
7678
  <origami-game-sidebar
7679
7679
  data-is-desktop=${a}
@@ -7745,7 +7745,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7745
7745
  ></origami-keno-content>
7746
7746
  ${_}
7747
7747
  </origami-game-layout>
7748
- `}getButton(o){let i;if(this.manualOrAuto==="Manual")i=this._kenoManualEl?.shadowRoot?.querySelector(`origami-button[hotkey="${o}"]`);else if(o===" ")i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");else i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.querySelector(`origami-button[hotkey="${o}"]`);return i}isButtonDisabled(o){if(!this.gameData?.hotkeysOpenEnabled)return!0;return this.getButton(o)?.disabled??!0}handleSpacebar=()=>{if(this.isButtonDisabled(" "))return;if(this.manualOrAuto==="Manual")this.kenoPlay();else this.getButton(" ")?.click()};handleAutoPick=()=>{if(this.isButtonDisabled("Q"))return;this.autoPick()};handleClearTable=()=>{if(this.isButtonDisabled("W"))return;this.clearTable()};constructor(){super();this.isManualPlaying=!1;this.history=[];this.selectedTiles=[];this.resultTiles=[];this.gameWinPopupShowing=!1;this.gameOver=!1;this.payout=null;this.kenoRisk=ro.CLASSIC;this.autoselectRunning=!1;this.multiplier=0;this.hadTilesBeforeAutopick=!1;this.showResetAnimation=!0;new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:()=>this.isButtonDisabled(" ")}},{key:"q",callback:this.handleAutoPick.bind(this),options:{disabled:()=>this.isButtonDisabled("Q")}},{key:"w",callback:this.handleClearTable.bind(this),options:{disabled:()=>this.isButtonDisabled("W")}}])}async firstUpdated(){super.firstUpdated(),requestAnimationFrame(()=>{setTimeout(()=>{this.showResetAnimation=!1},350)})}}d([j()],La.prototype,"isManualPlaying",void 0),d([j()],La.prototype,"history",void 0),d([j()],La.prototype,"selectedTiles",void 0),d([j()],La.prototype,"resultTiles",void 0),d([H({type:Boolean})],La.prototype,"gameWinPopupShowing",void 0),d([j()],La.prototype,"gameOver",void 0),d([j()],La.prototype,"payout",void 0),d([j()],La.prototype,"kenoRisk",void 0),d([j()],La.prototype,"autoselectRunning",void 0),d([j()],La.prototype,"multiplier",void 0),d([j()],La.prototype,"hadTilesBeforeAutopick",void 0),d([j()],La.prototype,"betId",void 0),d([j()],La.prototype,"showResetAnimation",void 0),d([fo("origami-keno-manual")],La.prototype,"_kenoManualEl",void 0),d([fo("origami-keno-auto")],La.prototype,"_kenoAutoEl",void 0),La=d([O("origami-keno-game")],La);var Fn=X`
7748
+ `}getButton(o){let i;if(this.manualOrAuto==="Manual")i=this._kenoManualEl?.shadowRoot?.querySelector(`origami-button[hotkey="${o}"]`);else if(o===" ")i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");else i=this._kenoAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.querySelector(`origami-button[hotkey="${o}"]`);return i}isButtonDisabled(o){if(!this.gameData?.hotkeysOpenEnabled)return!0;return this.getButton(o)?.disabled??!0}handleSpacebar=()=>{if(this.isButtonDisabled(" "))return;if(this.manualOrAuto==="Manual")this.kenoPlay();else this.getButton(" ")?.click()};handleAutoPick=()=>{if(this.isButtonDisabled("Q"))return;this.autoPick()};handleClearTable=()=>{if(this.isButtonDisabled("W"))return;this.clearTable()};constructor(){super();this.isManualPlaying=!1;this.history=[];this.selectedTiles=[];this.resultTiles=[];this.gameWinPopupShowing=!1;this.gameOver=!1;this.payout=null;this.kenoRisk=ro.CLASSIC;this.autoselectRunning=!1;this.multiplier=0;this.hadTilesBeforeAutopick=!1;this.showResetAnimation=!0;new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:()=>this.isButtonDisabled(" ")}},{key:"q",callback:this.handleAutoPick.bind(this),options:{disabled:()=>this.isButtonDisabled("Q")}},{key:"w",callback:this.handleClearTable.bind(this),options:{disabled:()=>this.isButtonDisabled("W")}}])}async firstUpdated(){super.firstUpdated(),requestAnimationFrame(()=>{setTimeout(()=>{this.showResetAnimation=!1},350)})}}d([A()],Ca.prototype,"isManualPlaying",void 0),d([A()],Ca.prototype,"history",void 0),d([A()],Ca.prototype,"selectedTiles",void 0),d([A()],Ca.prototype,"resultTiles",void 0),d([S({type:Boolean})],Ca.prototype,"gameWinPopupShowing",void 0),d([A()],Ca.prototype,"gameOver",void 0),d([A()],Ca.prototype,"payout",void 0),d([A()],Ca.prototype,"kenoRisk",void 0),d([A()],Ca.prototype,"autoselectRunning",void 0),d([A()],Ca.prototype,"multiplier",void 0),d([A()],Ca.prototype,"hadTilesBeforeAutopick",void 0),d([A()],Ca.prototype,"betId",void 0),d([A()],Ca.prototype,"showResetAnimation",void 0),d([fo("origami-keno-manual")],Ca.prototype,"_kenoManualEl",void 0),d([fo("origami-keno-auto")],Ca.prototype,"_kenoAutoEl",void 0),Ca=d([O("origami-keno-game")],Ca);var Fn=X`
7749
7749
  :host {
7750
7750
  display: flex;
7751
7751
  flex-direction: column;
@@ -7793,7 +7793,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7793
7793
  ${q("common.placeBet",o)}
7794
7794
  </origami-button>
7795
7795
  </div>
7796
- `}}d([H({type:Boolean})],Sr.prototype,"inputsDisabled",void 0),d([H({type:Boolean})],Sr.prototype,"isPlaying",void 0),d([H({type:String})],Sr.prototype,"profitOnWin",void 0),d([H({type:Boolean})],Sr.prototype,"betDisabled",void 0),d([j()],Sr.prototype,"isBetAmountValid",void 0),d([ao({context:D,subscribe:!0})],Sr.prototype,"gameData",void 0),Sr=d([O("origami-limbo-manual")],Sr);class Hr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isDesktop=!1}render(){return $`
7796
+ `}}d([S({type:Boolean})],Sr.prototype,"inputsDisabled",void 0),d([S({type:Boolean})],Sr.prototype,"isPlaying",void 0),d([S({type:String})],Sr.prototype,"profitOnWin",void 0),d([S({type:Boolean})],Sr.prototype,"betDisabled",void 0),d([A()],Sr.prototype,"isBetAmountValid",void 0),d([ao({context:D,subscribe:!0})],Sr.prototype,"gameData",void 0),Sr=d([O("origami-limbo-manual")],Sr);class Zr extends B{constructor(){super(...arguments);this.inputsDisabled=!1;this.autobetStopping=!1;this.autobetInProgress=!1;this.profitOnWin="0.00";this.betDisabled=!1;this.isDesktop=!1}render(){return $`
7797
7797
  <origami-generic-autobet
7798
7798
  data-is-desktop=${this.isDesktop}
7799
7799
  ?inputsDisabled=${this.inputsDisabled}
@@ -7803,7 +7803,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7803
7803
  ?betDisabled=${this.betDisabled}
7804
7804
  >
7805
7805
  </origami-generic-autobet>
7806
- `}}d([H({type:Boolean})],Hr.prototype,"inputsDisabled",void 0),d([H({type:Boolean})],Hr.prototype,"autobetStopping",void 0),d([H({type:Boolean})],Hr.prototype,"autobetInProgress",void 0),d([H({type:String})],Hr.prototype,"profitOnWin",void 0),d([H({type:Boolean})],Hr.prototype,"betDisabled",void 0),d([H({type:Boolean})],Hr.prototype,"isDesktop",void 0),Hr=d([O("origami-limbo-auto")],Hr);var Qn=X`
7806
+ `}}d([S({type:Boolean})],Zr.prototype,"inputsDisabled",void 0),d([S({type:Boolean})],Zr.prototype,"autobetStopping",void 0),d([S({type:Boolean})],Zr.prototype,"autobetInProgress",void 0),d([S({type:String})],Zr.prototype,"profitOnWin",void 0),d([S({type:Boolean})],Zr.prototype,"betDisabled",void 0),d([S({type:Boolean})],Zr.prototype,"isDesktop",void 0),Zr=d([O("origami-limbo-auto")],Zr);var Qn=X`
7807
7807
  :host {
7808
7808
  width: 100%;
7809
7809
  height: 100%;
@@ -7844,7 +7844,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7844
7844
  display: block;
7845
7845
  }
7846
7846
  }
7847
- `;class Fo{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/limbo"}startBet=async(o)=>{let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}};static calculateMultiplier(o){if(o<0.000099||o>99.9999)return"0";return A(99).dividedBy(A(o)).toFixed(4)}static calculateWinChance(o){return A(99).dividedBy(A(o)).toFixed(8)}static calculateProfitOnWin(o,i){return A(o).multipliedBy(i).minus(o).toFixed(4)}static isValidMultiplier(o){if(!o||o==="")return!1;return+o>=1.01}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.000099&&i<=99.9999}}var Pn=X`
7847
+ `;class Fo{authToken;baseUrl;constructor(o,i){this.authToken=o,this.baseUrl=i+"/games/limbo"}startBet=async(o)=>{let i=await fetch(`${this.baseUrl}/play`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.authToken}`},body:JSON.stringify(o)}),a=await i.json();if(i.ok)return{success:!0,data:a};let t="alerts.gameError";switch(a.errorCode){case"INSUFFICIENT_BALANCE":t="alerts.insufficientBalance";break;case"LIMIT_REACHED":t="alerts.betLimitReached";break}return{success:!1,error:q(t,o.language)}};static calculateMultiplier(o){if(o<0.000099||o>99.9999)return"0";return P(99).dividedBy(P(o)).toFixed(4)}static calculateWinChance(o){return P(99).dividedBy(P(o)).toFixed(8)}static calculateProfitOnWin(o,i){return P(o).multipliedBy(i).minus(o).toFixed(4)}static isValidMultiplier(o){if(!o||o==="")return!1;return+o>=1.01}static isValidWinChance(o){if(!o||o==="")return!1;let i=+o;return i>=0.000099&&i<=99.9999}}var jn=X`
7848
7848
  :host {
7849
7849
  display: flex;
7850
7850
  flex-direction: column;
@@ -7890,7 +7890,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7890
7890
  width: 16px;
7891
7891
  height: 16px;
7892
7892
  }
7893
- `;class Zr extends B{constructor(){super(...arguments);this.targetMultiplier=50;this.disabled=!1;this.winChanceInputFocused=!1;this.multiplierInputFocused=!1}static styles=[G,Pn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return Fo.calculateWinChance(this.targetMultiplier);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return A(this.targetMultiplier).toFixed(2);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleWinChanceBlur(){this.winChanceInputValue=Fo.calculateWinChance(this.targetMultiplier)}handleMultiplierBlur(){this.multiplierInputValue=A(this.targetMultiplier).toFixed(2)}targetMultiplierChanged(){requestAnimationFrame(()=>{if(this.isConnected){if(!this.winChanceInputFocused)this._winChanceInputValue=Fo.calculateWinChance(this.targetMultiplier);if(!this.multiplierInputFocused)this._multiplierInputValue=A(this.targetMultiplier).toFixed(2)}})}render(){let o=this.gameData?.language||"en",i=!Fo.isValidMultiplier(this.multiplierInputValue),a=!Fo.isValidWinChance(this.winChanceInputValue),t=i?q("games.limbo.multiplierError",o):"",r=a?q("games.limbo.winChanceError",o):"",e=this.multiplierInputFocused&&i?t:"",n=this.winChanceInputFocused&&a?r:"";return $`
7893
+ `;class Kr extends B{constructor(){super(...arguments);this.targetMultiplier=50;this.disabled=!1;this.winChanceInputFocused=!1;this.multiplierInputFocused=!1}static styles=[G,jn];get winChanceInputValue(){if(this._winChanceInputValue===void 0)return Fo.calculateWinChance(this.targetMultiplier);return this._winChanceInputValue}set winChanceInputValue(o){this._winChanceInputValue=o}get multiplierInputValue(){if(this._multiplierInputValue===void 0)return P(this.targetMultiplier).toFixed(2);return this._multiplierInputValue}set multiplierInputValue(o){this._multiplierInputValue=o}handleWinChanceBlur(){this.winChanceInputValue=Fo.calculateWinChance(this.targetMultiplier)}handleMultiplierBlur(){this.multiplierInputValue=P(this.targetMultiplier).toFixed(2)}targetMultiplierChanged(){requestAnimationFrame(()=>{if(this.isConnected){if(!this.winChanceInputFocused)this._winChanceInputValue=Fo.calculateWinChance(this.targetMultiplier);if(!this.multiplierInputFocused)this._multiplierInputValue=P(this.targetMultiplier).toFixed(2)}})}render(){let o=this.gameData?.language||"en",i=!Fo.isValidMultiplier(this.multiplierInputValue),a=!Fo.isValidWinChance(this.winChanceInputValue),t=i?q("games.limbo.multiplierError",o):"",r=a?q("games.limbo.winChanceError",o):"",e=this.multiplierInputFocused&&i?t:"",n=this.winChanceInputFocused&&a?r:"";return $`
7894
7894
  <origami-input
7895
7895
  class="stat-input multiplier"
7896
7896
  .label=${q("common.targetMultiplier",o)}
@@ -7934,7 +7934,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7934
7934
  ></lottie-icon>
7935
7935
  `:_}
7936
7936
  </origami-input>
7937
- `}}d([H({type:Number})],Zr.prototype,"targetMultiplier",void 0),d([H({type:Boolean,reflect:!0})],Zr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Zr.prototype,"gameData",void 0),d([j()],Zr.prototype,"winChanceInputFocused",void 0),d([j()],Zr.prototype,"multiplierInputFocused",void 0),d([j()],Zr.prototype,"_winChanceInputValue",void 0),d([j()],Zr.prototype,"_multiplierInputValue",void 0),d([vo("targetMultiplier")],Zr.prototype,"targetMultiplierChanged",null),Zr=d([O("origami-limbo-content-bottom")],Zr);class Kr extends B{constructor(){super(...arguments);this.targetMultiplier=50;this.betTargetMultiplier=2;this.history=[];this.resultMultiplier=null;this.isWin=!0;this.betId="";this.isPlaying=!1;this.isDesktop=!1;this.disableSound=!1}static styles=[G,Qn];render(){if(this.isDesktop)return $`
7937
+ `}}d([S({type:Number})],Kr.prototype,"targetMultiplier",void 0),d([S({type:Boolean,reflect:!0})],Kr.prototype,"disabled",void 0),d([ao({context:D,subscribe:!0})],Kr.prototype,"gameData",void 0),d([A()],Kr.prototype,"winChanceInputFocused",void 0),d([A()],Kr.prototype,"multiplierInputFocused",void 0),d([A()],Kr.prototype,"_winChanceInputValue",void 0),d([A()],Kr.prototype,"_multiplierInputValue",void 0),d([mo("targetMultiplier")],Kr.prototype,"targetMultiplierChanged",null),Kr=d([O("origami-limbo-content-bottom")],Kr);class Rr extends B{constructor(){super(...arguments);this.targetMultiplier=50;this.betTargetMultiplier=2;this.history=[];this.resultMultiplier=null;this.isWin=!0;this.betId="";this.isPlaying=!1;this.isDesktop=!1;this.disableSound=!1}static styles=[G,Qn];render(){if(this.isDesktop)return $`
7938
7938
  <origami-history-pills
7939
7939
  data-is-desktop=${this.isDesktop}
7940
7940
  .gameType=${"limbo"}
@@ -7974,13 +7974,13 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
7974
7974
  ?disableSound=${this.disableSound}
7975
7975
  ></origami-limbo-multiplier>
7976
7976
  </div>
7977
- `}}d([H({type:Number})],Kr.prototype,"targetMultiplier",void 0),d([H({type:Number})],Kr.prototype,"betTargetMultiplier",void 0),d([H({type:Array})],Kr.prototype,"history",void 0),d([H({type:Number})],Kr.prototype,"resultMultiplier",void 0),d([H({type:Boolean})],Kr.prototype,"isWin",void 0),d([H({type:String})],Kr.prototype,"betId",void 0),d([H({type:Boolean})],Kr.prototype,"isPlaying",void 0),d([H({type:Boolean})],Kr.prototype,"isDesktop",void 0),d([H({type:Boolean})],Kr.prototype,"disableSound",void 0),Kr=d([O("origami-limbo-content")],Kr);class Fa{static getRandomMultiplier(){return A(Math.max(1,Math.min(+(1/Math.random()),1e6)).toFixed(2)).toString()}startBet=async(o)=>{let{amount:i,targetMultiplier:a}=o,t=Fa.getRandomMultiplier(),r=a/100,e=A(t).gte(r),n=e?A(i).multipliedBy(r).toString():"0",s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"limbo",currency:"USD",amount:i,payout:n,afterBalance:"1000",multiplier:e?a.toString():"0",tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{LIMBO:{targetMultiplier:a,result:[A(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:0,betAmount:i,payoutAmount:"0"},{id:crypto.randomUUID(),data:{LIMBO:{result:[A(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:1,betAmount:"0",payoutAmount:n}]};return await bo(250),{success:!0,data:s}}}var An=X`
7977
+ `}}d([S({type:Number})],Rr.prototype,"targetMultiplier",void 0),d([S({type:Number})],Rr.prototype,"betTargetMultiplier",void 0),d([S({type:Array})],Rr.prototype,"history",void 0),d([S({type:Number})],Rr.prototype,"resultMultiplier",void 0),d([S({type:Boolean})],Rr.prototype,"isWin",void 0),d([S({type:String})],Rr.prototype,"betId",void 0),d([S({type:Boolean})],Rr.prototype,"isPlaying",void 0),d([S({type:Boolean})],Rr.prototype,"isDesktop",void 0),d([S({type:Boolean})],Rr.prototype,"disableSound",void 0),Rr=d([O("origami-limbo-content")],Rr);class Fa{static getRandomMultiplier(){return P(Math.max(1,Math.min(+(1/Math.random()),1e6)).toFixed(2)).toString()}startBet=async(o)=>{let{amount:i,targetMultiplier:a}=o,t=Fa.getRandomMultiplier(),r=a/100,e=P(t).gte(r),n=e?P(i).multipliedBy(r).toString():"0",s={id:crypto.randomUUID(),tenantId:"origami-casino",userId:"mock-user",gameId:"limbo",currency:"USD",amount:i,payout:n,afterBalance:"1000",multiplier:e?a.toString():"0",tenantUserId:"mock-user",clientSeed:"mock-seed",randomValue:"mock-random",proof:"mock-proof",nonce:1,betActions:[{id:crypto.randomUUID(),data:{LIMBO:{targetMultiplier:a,result:[P(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:0,betAmount:i,payoutAmount:"0"},{id:crypto.randomUUID(),data:{LIMBO:{result:[P(t).toNumber()],randomMultiplier:t}},type:"END_BET",actionIndex:1,betAmount:"0",payoutAmount:n}]};return await bo(250),{success:!0,data:s}}}var Pn=X`
7978
7978
  origami-limbo-content-bottom[slot="content-bottom"] {
7979
7979
  display: grid;
7980
7980
  grid-template-columns: 1fr 1fr;
7981
7981
  gap: 8px;
7982
7982
  }
7983
- `;var gl=100;class Qa extends Eo{static styles=[...Eo.styles,An];get isToggleDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get areInputsDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get limboApi(){return this.isDemoMode?new Fa:new Fo(this.gameData.authToken,this.gameData.baseUrl)}async limboPlay(){this.isManualPlaying=!0,this.gameData?.soundController?.play("bet");try{let o=await this.handleBetExecution(this.gameData?.amount??"0");if(!o.success){this.showError(o.error);return}let i=o.data.id;await new Promise((t)=>{let r=(e)=>{if(e.detail.betId===i)this.removeEventListener("limbo-multiplier-animation-end",r),t()};this.addEventListener("limbo-multiplier-animation-end",r)})}catch(o){console.error("Error in limboPlay:",o)}finally{this.isManualPlaying=!1}}async handleBetExecution(o){if(this.resultMultiplier=null,!this.gameData?.currency)throw new Error("Currency is not set");let i={language:this.gameData.language,amount:o,currency:this.gameData.currency,targetMultiplier:this.targetMultiplier*gl},a=await this.limboApi.startBet(i);if(a.success){let t=this.isDemoMode?A(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):A(a.data.afterBalance??0);this.gameData.updateBalance(t);let{betActions:r,id:e}=a.data,n=r[r.length-1];if(!n)throw new Error("No action data received");let{randomMultiplier:s}=n.data.LIMBO;this.resultMultiplier=Number(s),this.betTargetMultiplier=this.targetMultiplier,this.isWin=this.targetMultiplier<=Number(s),this.betId=e,this.updateHistoryWithBet(a.data)}return a}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._limboManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._limboAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")this.limboPlay();else{let i=this._limboAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};constructor(){super();this.targetMultiplier=2;this.resultMultiplier=null;this.isManualPlaying=!1;this.isWin=!1;this.history=[];this.betTargetMultiplier=2;this.betId="";new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{repeat:!0,repeatInterval:200,disabled:this.isSpacebarDisabled}}])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("limbo-multiplier-animation-end",null)}async executeAutobet(o,i){try{let a=await this.handleBetExecution(i);if(!a.success)return this.showError(a.error),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};let t=a.data.id;await new Promise((u)=>{let g=(S)=>{if(S.detail.betId===t)this.removeEventListener("limbo-multiplier-animation-end",g),u()};this.addEventListener("limbo-multiplier-animation-end",g)});let e=a.data,n=A(e.payout??0).minus(e.amount??0),s=wi(Number(e.multiplier??0)),l=A(e.multiplier??0).isGreaterThan(0);return await this.ensureMinimumDisplayTime(l,300,300),await bo(this.getAutobetDelay()),{pnl:n,gameOutcome:s,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}multiplierChange=(o)=>{let i=+o.detail.multiplier;if(!Number.isNaN(i)&&Fo.isValidMultiplier(o.detail.multiplier))this.targetMultiplier=i};calculateProfitOnWin(){return A(this.gameData?.amount??"0").multipliedBy(this.targetMultiplier).minus(this.gameData?.amount??"0").toFixed(4)}winChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&Fo.isValidWinChance(o.detail.winChance))this.targetMultiplier=+Fo.calculateMultiplier(i)};addToHistory(o,i,a){this.history=[...this.history.filter((t)=>t.id!==a),{multiplier:o,won:i,id:a}]}multiplierAnimationEnd=(o)=>{let{resultMultiplier:i,isWin:a,betId:t}=o.detail;if(a)this.gameData.soundController?.play("win",!1);this.addToHistory(i,a,t),this.dispatchEvent(new CustomEvent("limbo-multiplier-animation-end",{detail:o.detail,bubbles:!0,composed:!0}))};render(){let o=this.calculateProfitOnWin(),i=Fo.calculateMultiplier(this.targetMultiplier),a=this.targetMultiplier<1.01||Number.isNaN(this.targetMultiplier),t=this.gameData?.mainWidth>=768;return $`
7983
+ `;var gl=100;class Qa extends Eo{static styles=[...Eo.styles,Pn];get isToggleDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get areInputsDisabled(){return this.isManualPlaying||this.autobetInProgress||this.autobetStopping}get limboApi(){return this.isDemoMode?new Fa:new Fo(this.gameData.authToken,this.gameData.baseUrl)}async limboPlay(){this.isManualPlaying=!0,this.gameData?.soundController?.play("bet");try{let o=await this.handleBetExecution(this.gameData?.amount??"0");if(!o.success){this.showError(o.error);return}let i=o.data.id;await new Promise((t)=>{let r=(e)=>{if(e.detail.betId===i)this.removeEventListener("limbo-multiplier-animation-end",r),t()};this.addEventListener("limbo-multiplier-animation-end",r)})}catch(o){console.error("Error in limboPlay:",o)}finally{this.isManualPlaying=!1}}async handleBetExecution(o){if(this.resultMultiplier=null,!this.gameData?.currency)throw new Error("Currency is not set");let i={language:this.gameData.language,amount:o,currency:this.gameData.currency,targetMultiplier:this.targetMultiplier*gl},a=await this.limboApi.startBet(i);if(a.success){let t=this.isDemoMode?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);this.gameData.updateBalance(t);let{betActions:r,id:e}=a.data,n=r[r.length-1];if(!n)throw new Error("No action data received");let{randomMultiplier:s}=n.data.LIMBO;this.resultMultiplier=Number(s),this.betTargetMultiplier=this.targetMultiplier,this.isWin=this.targetMultiplier<=Number(s),this.betId=e,this.updateHistoryWithBet(a.data)}return a}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._limboManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._limboAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")this.limboPlay();else{let i=this._limboAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};constructor(){super();this.targetMultiplier=2;this.resultMultiplier=null;this.isManualPlaying=!1;this.isWin=!1;this.history=[];this.betTargetMultiplier=2;this.betId="";new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{repeat:!0,repeatInterval:200,disabled:this.isSpacebarDisabled}}])}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("limbo-multiplier-animation-end",null)}async executeAutobet(o,i){try{let a=await this.handleBetExecution(i);if(!a.success)return this.showError(a.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};let t=a.data.id;await new Promise((h)=>{let g=(H)=>{if(H.detail.betId===t)this.removeEventListener("limbo-multiplier-animation-end",g),h()};this.addEventListener("limbo-multiplier-animation-end",g)});let e=a.data,n=P(e.payout??0).minus(e.amount??0),s=ki(Number(e.multiplier??0)),l=P(e.multiplier??0).isGreaterThan(0);return await this.ensureMinimumDisplayTime(l,300,300),await bo(this.getAutobetDelay()),{pnl:n,gameOutcome:s,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}multiplierChange=(o)=>{let i=+o.detail.multiplier;if(!Number.isNaN(i)&&Fo.isValidMultiplier(o.detail.multiplier))this.targetMultiplier=i};calculateProfitOnWin(){return P(this.gameData?.amount??"0").multipliedBy(this.targetMultiplier).minus(this.gameData?.amount??"0").toFixed(4)}winChanceChange=(o)=>{let i=+o.detail.winChance;if(!Number.isNaN(i)&&Fo.isValidWinChance(o.detail.winChance))this.targetMultiplier=+Fo.calculateMultiplier(i)};addToHistory(o,i,a){this.history=[...this.history.filter((t)=>t.id!==a),{multiplier:o,won:i,id:a}]}multiplierAnimationEnd=(o)=>{let{resultMultiplier:i,isWin:a,betId:t}=o.detail;if(a)this.gameData.soundController?.play("win",!1);this.addToHistory(i,a,t),this.dispatchEvent(new CustomEvent("limbo-multiplier-animation-end",{detail:o.detail,bubbles:!0,composed:!0}))};render(){let o=this.calculateProfitOnWin(),i=Fo.calculateMultiplier(this.targetMultiplier),a=this.targetMultiplier<1.01||Number.isNaN(this.targetMultiplier),t=this.gameData?.mainWidth>=768;return $`
7984
7984
  <origami-game-layout footer-position="below" .gameType=${"LIMBO"}>
7985
7985
  <origami-game-sidebar
7986
7986
  data-is-desktop=${t}
@@ -8040,7 +8040,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
8040
8040
  @limbo-multiplier-animation-end=${this.multiplierAnimationEnd}
8041
8041
  ></origami-limbo-content>
8042
8042
  </origami-game-layout>
8043
- `}}d([j()],Qa.prototype,"targetMultiplier",void 0),d([j()],Qa.prototype,"resultMultiplier",void 0),d([j()],Qa.prototype,"isManualPlaying",void 0),d([j()],Qa.prototype,"isWin",void 0),d([j()],Qa.prototype,"history",void 0),d([j()],Qa.prototype,"betTargetMultiplier",void 0),d([j()],Qa.prototype,"betId",void 0),d([fo("origami-limbo-manual")],Qa.prototype,"_limboManualEl",void 0),d([fo("origami-limbo-auto")],Qa.prototype,"_limboAutoEl",void 0),Qa=d([O("origami-limbo-game")],Qa);class co{static activeBet=null;static minePositions=[];static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}static generateMinePositions(o){let i=[];while(i.length<o){let a=co.getRandomValueInRange(0,jo-1);if(!i.includes(a))i.push(a)}return i}static createBetAction(o,i,a,t=null,r=null){return{id:crypto.randomUUID(),data:{MINES:i},type:o,actionIndex:a,betAmount:t,payoutAmount:r}}static createMockBetResult(o,i,a,t=[],r=!1,e){let n=co.activeBet,s=n?.betActions||[],l=t.some((h)=>co.minePositions.includes(h)),u=t.filter((h)=>!co.minePositions.includes(h)).length,g=[...s],S=n?.nonce||Math.floor(Math.random()*1000),f=n?.randomValue||null,y=n?.proof||null;if(!n)g=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:[],hasCashedOut:!1},0,i,null)];else if(e==="INTERMEDIATE_NON_BET_ACTION"){if(g.push(co.createBetAction("INTERMEDIATE_NON_BET_ACTION",{minesCount:a,selectedTiles:t,hasCashedOut:!1},g.length,null,null)),l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,"0"))}else if(r&&!l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,null));if(r||l)f="b90c047b9c51db60bcd82590c7e754f50c6f626e0a594f12535d7f345422f90063a8511ed7aec0e5a67d3f399229d64e2381624ee6994c7a2fc0532f4274f7a3",y="d026116a800d0e90d6f9b2c189de0e9c8f9afe292200c5d9392ff5fa0ce14e387bfe171dc8c755d75bdf01a37771b27eec056e69527d369e444c665b2264d6c1477612786302cfc48bee709733d65d0e";let z=A(0);if(u>0&&!l)if(a===0)z=A(0);else if(u===0)z=A(1);else{let h=Math.min(jo-u,a);z=Ni.calculateMultiplierBN(u,h,Xi)}let m=null,U=null,b=null;if(r||l)if(!l&&u>0)m=A(i).multipliedBy(z).toFixed(8),b=z.toString(),U=A(1000).plus(m).minus(i).toFixed(8);else m="0",b="0",U=A(1000).minus(i).toFixed(8);else if(!n)U=A(1000).minus(i).toFixed(8);return{id:o,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:"USD",amount:i,payout:m,afterBalance:U,multiplier:b,clientSeed:"mock-seed",randomValue:f,proof:y,nonce:S,betActions:g}}async startManualBet(o){let i=crypto.randomUUID();co.minePositions=co.generateMinePositions(o.minesCount);let a=co.createMockBetResult(i,o.amount,o.minesCount,[],!1);return co.activeBet=a,await bo(250),{success:!0,data:a}}async getActiveBet(){if(!co.activeBet)return{success:!1,error:"No active bet"};return await bo(250),{success:!0,data:co.activeBet}}async selectTile(o){if(!co.activeBet)return{success:!1,error:"No active bet"};let i=co.activeBet,t=[...Wo.deriveSelectedTiles(i.betActions),...o.selectedTiles],e=i.betActions.find((l)=>l.type==="START_BET")?.data.MINES?.minesCount??0,n=o.selectedTiles.some((l)=>co.minePositions.includes(l)),s=co.createMockBetResult(i.id,i.amount,e,t,!1,"INTERMEDIATE_NON_BET_ACTION");return co.activeBet=n?null:s,await bo(250),{success:!0,data:s}}async cashout(){if(!co.activeBet)return{success:!1,error:"No active bet"};let o=co.activeBet,i=Wo.deriveSelectedTiles(o.betActions),t=o.betActions.find((n)=>n.type==="START_BET")?.data.MINES?.minesCount??0,r=co.createMockBetResult(o.id,o.amount,t,i,!0),e=r.betActions[r.betActions.length-1];if(e&&e.type==="END_BET")e.payoutAmount=r.payout;return co.activeBet=null,await bo(250),{success:!0,data:r}}async autobetPlay(o){let i=crypto.randomUUID(),a=o.minesCount??Li;co.minePositions=co.generateMinePositions(a);let t=o.selectedTiles.some((g)=>co.minePositions.includes(g)),r=o.selectedTiles.filter((g)=>!co.minePositions.includes(g)).length,e=A(0);if(r>0&&!t)if(a===0)e=A(0);else if(r===0)e=A(1);else{let g=Math.min(jo-r,a);e=Ni.calculateMultiplierBN(r,g,Xi)}let n=t?"0":A(o.amount).multipliedBy(e).toFixed(8),s=t?"0":e.toString(),l=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:o.selectedTiles,hasCashedOut:!0},0,o.amount,null),co.createBetAction("END_BET",{result:co.minePositions},1,null,n)],u={id:i,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:o.currency,amount:o.amount,payout:n,afterBalance:A(1000).plus(n).minus(o.amount).toFixed(8),multiplier:s,clientSeed:"mock-seed",randomValue:"bccc6bac05bf21a1de35b850f80abfd11407025b973e361f2d9c6ec7d51be44693dd4df4a04c201ebdbfb791d03d65e9414263dcca54772071ba0509fdfe82d0",proof:"4a24bc6e6e8194857d3e4f759781cea89827daf8bca1dd0eb8cfb887dc818b4c6527687647b9c5c89c4e72c8f587777bd9ae3fb6cbce88d3e3da726f95375bb8a6e3ed03194fbc4d1f22af95f1f7820a",nonce:Math.floor(Math.random()*1000),betActions:l};return await bo(250),{success:!0,data:u}}}var jn=X`
8043
+ `}}d([A()],Qa.prototype,"targetMultiplier",void 0),d([A()],Qa.prototype,"resultMultiplier",void 0),d([A()],Qa.prototype,"isManualPlaying",void 0),d([A()],Qa.prototype,"isWin",void 0),d([A()],Qa.prototype,"history",void 0),d([A()],Qa.prototype,"betTargetMultiplier",void 0),d([A()],Qa.prototype,"betId",void 0),d([fo("origami-limbo-manual")],Qa.prototype,"_limboManualEl",void 0),d([fo("origami-limbo-auto")],Qa.prototype,"_limboAutoEl",void 0),Qa=d([O("origami-limbo-game")],Qa);class co{static activeBet=null;static minePositions=[];static getRandomValueInRange(o,i){return Math.floor(Math.random()*(i-o+1))+o}static generateMinePositions(o){let i=[];while(i.length<o){let a=co.getRandomValueInRange(0,Ao-1);if(!i.includes(a))i.push(a)}return i}static createBetAction(o,i,a,t=null,r=null){return{id:crypto.randomUUID(),data:{MINES:i},type:o,actionIndex:a,betAmount:t,payoutAmount:r}}static createMockBetResult(o,i,a,t=[],r=!1,e){let n=co.activeBet,s=n?.betActions||[],l=t.some((u)=>co.minePositions.includes(u)),h=t.filter((u)=>!co.minePositions.includes(u)).length,g=[...s],H=n?.nonce||Math.floor(Math.random()*1000),f=n?.randomValue||null,y=n?.proof||null;if(!n)g=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:[],hasCashedOut:!1},0,i,null)];else if(e==="INTERMEDIATE_NON_BET_ACTION"){if(g.push(co.createBetAction("INTERMEDIATE_NON_BET_ACTION",{minesCount:a,selectedTiles:t,hasCashedOut:!1},g.length,null,null)),l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,"0"))}else if(r&&!l)g.push(co.createBetAction("END_BET",{result:co.minePositions},g.length,null,null));if(r||l)f="b90c047b9c51db60bcd82590c7e754f50c6f626e0a594f12535d7f345422f90063a8511ed7aec0e5a67d3f399229d64e2381624ee6994c7a2fc0532f4274f7a3",y="d026116a800d0e90d6f9b2c189de0e9c8f9afe292200c5d9392ff5fa0ce14e387bfe171dc8c755d75bdf01a37771b27eec056e69527d369e444c665b2264d6c1477612786302cfc48bee709733d65d0e";let z=P(0);if(h>0&&!l)if(a===0)z=P(0);else if(h===0)z=P(1);else{let u=Math.min(Ao-h,a);z=Ni.calculateMultiplierBN(h,u,Xi)}let v=null,U=null,b=null;if(r||l)if(!l&&h>0)v=P(i).multipliedBy(z).toFixed(8),b=z.toString(),U=P(1000).plus(v).minus(i).toFixed(8);else v="0",b="0",U=P(1000).minus(i).toFixed(8);else if(!n)U=P(1000).minus(i).toFixed(8);return{id:o,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:"USD",amount:i,payout:v,afterBalance:U,multiplier:b,clientSeed:"mock-seed",randomValue:f,proof:y,nonce:H,betActions:g}}async startManualBet(o){let i=crypto.randomUUID();co.minePositions=co.generateMinePositions(o.minesCount);let a=co.createMockBetResult(i,o.amount,o.minesCount,[],!1);return co.activeBet=a,await bo(250),{success:!0,data:a}}async getActiveBet(){if(!co.activeBet)return{success:!1,error:"No active bet"};return await bo(250),{success:!0,data:co.activeBet}}async selectTile(o){if(!co.activeBet)return{success:!1,error:"No active bet"};let i=co.activeBet,t=[...Wo.deriveSelectedTiles(i.betActions),...o.selectedTiles],e=i.betActions.find((l)=>l.type==="START_BET")?.data.MINES?.minesCount??0,n=o.selectedTiles.some((l)=>co.minePositions.includes(l)),s=co.createMockBetResult(i.id,i.amount,e,t,!1,"INTERMEDIATE_NON_BET_ACTION");return co.activeBet=n?null:s,await bo(250),{success:!0,data:s}}async cashout(){if(!co.activeBet)return{success:!1,error:"No active bet"};let o=co.activeBet,i=Wo.deriveSelectedTiles(o.betActions),t=o.betActions.find((n)=>n.type==="START_BET")?.data.MINES?.minesCount??0,r=co.createMockBetResult(o.id,o.amount,t,i,!0),e=r.betActions[r.betActions.length-1];if(e&&e.type==="END_BET")e.payoutAmount=r.payout;return co.activeBet=null,await bo(250),{success:!0,data:r}}async autobetPlay(o){let i=crypto.randomUUID(),a=o.minesCount??Ci;co.minePositions=co.generateMinePositions(a);let t=o.selectedTiles.some((g)=>co.minePositions.includes(g)),r=o.selectedTiles.filter((g)=>!co.minePositions.includes(g)).length,e=P(0);if(r>0&&!t)if(a===0)e=P(0);else if(r===0)e=P(1);else{let g=Math.min(Ao-r,a);e=Ni.calculateMultiplierBN(r,g,Xi)}let n=t?"0":P(o.amount).multipliedBy(e).toFixed(8),s=t?"0":e.toString(),l=[co.createBetAction("START_BET",{minesCount:a,selectedTiles:o.selectedTiles,hasCashedOut:!0},0,o.amount,null),co.createBetAction("END_BET",{result:co.minePositions},1,null,n)],h={id:i,tenantId:"origami-casino",userId:"mock-user",tenantUserId:"mock-tenant-user",gameId:"MINES",currency:o.currency,amount:o.amount,payout:n,afterBalance:P(1000).plus(n).minus(o.amount).toFixed(8),multiplier:s,clientSeed:"mock-seed",randomValue:"bccc6bac05bf21a1de35b850f80abfd11407025b973e361f2d9c6ec7d51be44693dd4df4a04c201ebdbfb791d03d65e9414263dcca54772071ba0509fdfe82d0",proof:"4a24bc6e6e8194857d3e4f759781cea89827daf8bca1dd0eb8cfb887dc818b4c6527687647b9c5c89c4e72c8f587777bd9ae3fb6cbce88d3e3da726f95375bb8a6e3ed03194fbc4d1f22af95f1f7820a",nonce:Math.floor(Math.random()*1000),betActions:l};return await bo(250),{success:!0,data:h}}}var An=X`
8044
8044
  :host {
8045
8045
  --game-content-desktop-height: 592.78px;
8046
8046
  }
@@ -8048,7 +8048,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
8048
8048
  :host([data-is-desktop='true']) {
8049
8049
  height: var(--game-content-desktop-height);
8050
8050
  }
8051
- `;class Rr extends B{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.showWinPopup=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[G,jn];render(){return $`
8051
+ `;class Ur extends B{constructor(){super(...arguments);this.isAuto=!1;this.autobetSelectedTiles=[];this.autobetInProgress=!1;this.minesState=null;this.showWinPopup=!1;this.hitBomb=!1;this.loadingTiles=[];this.isDesktop=!1}static styles=[G,An];render(){return $`
8052
8052
  <origami-mines-grid
8053
8053
  data-is-desktop=${this.isDesktop}
8054
8054
  .isDesktop=${this.isDesktop}
@@ -8060,7 +8060,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
8060
8060
  ?hitBomb=${this.hitBomb}
8061
8061
  .loadingTiles=${this.loadingTiles}
8062
8062
  ></origami-mines-grid>
8063
- `}}d([H({type:Boolean})],Rr.prototype,"isAuto",void 0),d([H({type:Array})],Rr.prototype,"autobetSelectedTiles",void 0),d([H({type:Boolean})],Rr.prototype,"autobetInProgress",void 0),d([H({type:Object})],Rr.prototype,"minesState",void 0),d([H({type:Boolean})],Rr.prototype,"showWinPopup",void 0),d([H({type:Boolean})],Rr.prototype,"hitBomb",void 0),d([H({type:Array})],Rr.prototype,"loadingTiles",void 0),d([H({type:Boolean})],Rr.prototype,"isDesktop",void 0),Rr=d([O("origami-mines-content")],Rr);class _n{previousValues=[];callback;constructor(o){this.callback=o}check(o){if(o.length!==this.previousValues.length||o.some((a,t)=>a!==this.previousValues[t]))this.callback([...o],[...this.previousValues]),this.previousValues=[...o]}}class Pa extends Eo{_playSound(o){let i={click:"click",bet:"bet",win:"win",bomb:"mines-bomb",gem:"mines-gem"};this.gameData?.soundController?.play(i[o]).catch((a)=>console.error(a))}authTokenWatcher=new _n(([o],[i])=>{if(o&&o!==i)this.isCheckingForSession=!0,this.getMinesActiveBet()});get isToggleDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get areInputsDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get isGameActive(){return this.getMinesState?.state==="GAME_IN_PROGRESS"}get minesApi(){return this.isDemoMode?new co:new Wo(this.gameData.authToken,this.gameData.baseUrl??"")}addToHistory(o,i,a){if(!a)return;let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t}async getMinesActiveBet(){try{let o=await this.minesApi.getActiveBet();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}});return}if(o.data){if(this.gameData?.updateBetAmount(A(o.data.amount)),this.minesData=o.data,this.manualOrAuto!=="Manual")this.manualOrAuto="Manual"}}finally{this.isCheckingForSession=!1}}async firstUpdated(){super.firstUpdated(),await this.getMinesActiveBet()}updated(o){super.updated(o),this.authTokenWatcher.check([this.gameData?.authToken])}get getMinesState(){if(!this.minesData)return null;return Wo.getState(this.minesData)}async executeAutobet(o,i){if(this.minesData=null,this.autobetSelectedTiles.length===0)return{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.mines.selectTileToAutobet",this.gameData.language||"en")};try{if(!this.gameData?.currency)throw new Error("Currency is not set");let a=await this.minesApi.autobetPlay({language:this.gameData.language,amount:i,currency:this.gameData.currency,minesCount:this.minesCount,selectedTiles:this.autobetSelectedTiles});if(!a.success)return this.showError(a.error),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};this.minesData=a.data;let t=this.isDemoMode?A(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):A(a.data.afterBalance??0);this.gameData.updateBalance(t);let r=a.data,{multiplier:e,id:n}=r,s=A(e||"0").isGreaterThan(0);if(s)this._playSound("win");this.addToHistory(Number(e),s,n),this.updateHistoryWithBet(r);let l=A(r.payout||"0").minus(r.amount),u=wi(Number(r.multiplier));return await this.waitForAnimationsComplete(s),{pnl:l,gameOutcome:u,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:A(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}async toggleAutobet(o){if(this.autobetSelectedTiles.length===0){this.emit("show-alert",{detail:{type:"error",message:q("games.mines.selectTileToAutobet",this.gameData?.language||"en")}});return}if(!this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"warning",message:q("autobet.startAutobet",this.gameData?.language||"en"),autoCloseDelay:5000}});await super.toggleAutobet(o)}minesClickHandler=async(o)=>{if(this._playSound("click"),this.manualOrAuto==="Auto"){if(this.autobetSelectedTiles.includes(o.detail.tile))this.autobetSelectedTiles=this.autobetSelectedTiles.filter((a)=>a!==o.detail.tile);else if(this.autobetSelectedTiles.length<25-this.minesCount)this.autobetSelectedTiles=[...this.autobetSelectedTiles,o.detail.tile];this.minesData=null;return}let i=o.detail.tile;await this.minesNext(i)};async minesManualStart(){if(this.isLoading=!0,this.minesData=null,this._playSound("bet"),!this.gameData?.currency)throw new Error("Currency is not set");let o={language:this.gameData.language,amount:this.gameData?.amount??"0",currency:this.gameData.currency,minesCount:this.minesCount},i=await this.minesApi.startManualBet(o);if(!i.success){this.showError(i.error),this.isLoading=!1;return}let a=this.isDemoMode?A(this.gameData.balance).minus(i.data.amount??0).plus(i.data.payout??0):A(i.data.afterBalance??0);this.gameData.updateBalance(a),this.minesData=i.data,this.isLoading=!1}async minesChooseRandomTile(){this.isSelectingRandomTile=!0,this._playSound("click");let i=this.getMinesState?.selectedTiles??[],a=Array.from({length:jo},(r,e)=>e).filter((r)=>!i.includes(r)),t=a[Math.floor(Math.random()*a.length)];if(t!==void 0)await this.minesNext(t);this.isSelectingRandomTile=!1}async minesNext(o){if(this.loadingTiles.includes(o))return;this.loadingTiles=[...this.loadingTiles,o];try{let i=await this.minesApi.selectTile({betId:this.minesData?.id??"",selectedTiles:[o]});if(!i.success){this.emit("show-alert",{detail:{type:"error",message:i.error}});return}let a=i.data.betActions.find((r)=>r.type==="END_BET")?.data.MINES,t=!!a&&a.result.includes(o);if(this._playSound(t?"bomb":"gem"),this.minesData=i.data,a){let{multiplier:r,id:e}=i.data,n=A(r||"0").isGreaterThan(0);this.addToHistory(Number(r),n,e),this.updateHistoryWithBet(i.data)}}finally{this.loadingTiles=this.loadingTiles.filter((i)=>i!==o)}}async minesCashout(){this.isLoading=!0,this._playSound("bet");let o=await this.minesApi.cashout();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}}),this.isLoading=!1;return}let i=o.data?.afterBalance,a=o.data?.currency;if(i&&a){let t=this.isDemoMode?A(this.gameData.balance).plus(o.data.payout??0):A(o.data.afterBalance??0);this.gameData.updateBalance(t)}if(this.isLoading=!1,this.minesData=o.data,this.minesData){let{multiplier:t,id:r}=this.minesData,e=A(t||"0").isGreaterThan(0);if(e)this._playSound("win");this.addToHistory(Number(t),e,r),this.updateHistoryWithBet(this.minesData)}}onManualOrAutoChange(){this.minesData=null,this.autobetSelectedTiles=[]}onMinesCountChange(){if(this.manualOrAuto==="Auto"&&this.autobetSelectedTiles.length>25-this.minesCount)this.autobetSelectedTiles=[]}onAutobetChange(){if(!this.autobetInProgress)this.minesData=null}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._minesManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")if(this.isGameActive)this.minesCashout();else this.minesManualStart();else{let i=this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};pickRandomTile=()=>{if(!this.isGameActive)return;this.minesChooseRandomTile()};async waitForAnimationsComplete(o){if(this.gameData?.instantBetEnabled);else{if(await bo(200),o)await bo(150);await this.ensureMinimumDisplayTime(o,300,300)}await bo(this.getAutobetDelay())}constructor(){super();this.minesCount=3;this.autobetSelectedTiles=[];this.minesData=null;this.isLoading=!1;this.isSelectingRandomTile=!1;this.history=[];this.isCheckingForSession=!0;this.loadingTiles=[];new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:this.isSpacebarDisabled}},{key:"q",callback:this.pickRandomTile.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>!this.isGameActive||this.autobetInProgress&&!this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.minesCashout.bind(this),options:{disabled:()=>!this.isGameActive||(this.getMinesState?.selectedTiles.length??0)===0||!this.gameData?.hotkeysOpenEnabled}}])}render(){let o=this.getMinesState,i=this.minesData?.multiplier,a=o?.state==="VIEWING_RESULTS"&&o?.outcome==="WIN",t=this.minesData?.payout,r=this.gameData?.currency??"USD",e=o?.mineLocations?.some((s)=>o?.selectedTiles?.includes(s))??!1,n=this.gameData?.mainWidth>=768;return $`
8063
+ `}}d([S({type:Boolean})],Ur.prototype,"isAuto",void 0),d([S({type:Array})],Ur.prototype,"autobetSelectedTiles",void 0),d([S({type:Boolean})],Ur.prototype,"autobetInProgress",void 0),d([S({type:Object})],Ur.prototype,"minesState",void 0),d([S({type:Boolean})],Ur.prototype,"showWinPopup",void 0),d([S({type:Boolean})],Ur.prototype,"hitBomb",void 0),d([S({type:Array})],Ur.prototype,"loadingTiles",void 0),d([S({type:Boolean})],Ur.prototype,"isDesktop",void 0),Ur=d([O("origami-mines-content")],Ur);class _n{previousValues=[];callback;constructor(o){this.callback=o}check(o){if(o.length!==this.previousValues.length||o.some((a,t)=>a!==this.previousValues[t]))this.callback([...o],[...this.previousValues]),this.previousValues=[...o]}}class ja extends Eo{_playSound(o){let i={click:"click",bet:"bet",win:"win",bomb:"mines-bomb",gem:"mines-gem"};this.gameData?.soundController?.play(i[o]).catch((a)=>console.error(a))}authTokenWatcher=new _n(([o],[i])=>{if(o&&o!==i)this.isCheckingForSession=!0,this.getMinesActiveBet()});get isToggleDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get areInputsDisabled(){let o=this.getMinesState;return this.autobetInProgress||o?.state==="GAME_IN_PROGRESS"||this.isCheckingForSession||this.isLoading}get isGameActive(){return this.getMinesState?.state==="GAME_IN_PROGRESS"}get minesApi(){return this.isDemoMode?new co:new Wo(this.gameData.authToken,this.gameData.baseUrl??"")}addToHistory(o,i,a){if(!a)return;let t=[...this.history,{multiplier:o,won:i,id:a}];this.history=t}async getMinesActiveBet(){try{let o=await this.minesApi.getActiveBet();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}});return}if(o.data){if(this.gameData?.updateBetAmount(P(o.data.amount)),this.minesData=o.data,this.manualOrAuto!=="Manual")this.manualOrAuto="Manual"}}finally{this.isCheckingForSession=!1}}async firstUpdated(){super.firstUpdated(),await this.getMinesActiveBet()}updated(o){super.updated(o),this.authTokenWatcher.check([this.gameData?.authToken])}get getMinesState(){if(!this.minesData)return null;return Wo.getState(this.minesData)}async executeAutobet(o,i){if(this.minesData=null,this.autobetSelectedTiles.length===0)return{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("games.mines.selectTileToAutobet",this.gameData.language||"en")};try{if(!this.gameData?.currency)throw new Error("Currency is not set");let a=await this.minesApi.autobetPlay({language:this.gameData.language,amount:i,currency:this.gameData.currency,minesCount:this.minesCount,selectedTiles:this.autobetSelectedTiles});if(!a.success)return this.showError(a.error),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:a.error||q("alerts.errorProcessingBet",this.gameData?.language||"en")};this.minesData=a.data;let t=this.isDemoMode?P(this.gameData.balance).minus(a.data.amount??0).plus(a.data.payout??0):P(a.data.afterBalance??0);this.gameData.updateBalance(t);let r=a.data,{multiplier:e,id:n}=r,s=P(e||"0").isGreaterThan(0);if(s)this._playSound("win");this.addToHistory(Number(e),s,n),this.updateHistoryWithBet(r);let l=P(r.payout||"0").minus(r.amount),h=ki(Number(r.multiplier));return await this.waitForAnimationsComplete(s),{pnl:l,gameOutcome:h,hasError:!1}}catch(a){return console.error("Error in executeAutobet:",a),{pnl:P(0),gameOutcome:"Draw",hasError:!0,errorMessage:q("alerts.gameError",this.gameData?.language||"en")}}}async toggleAutobet(o){if(this.autobetSelectedTiles.length===0){this.emit("show-alert",{detail:{type:"error",message:q("games.mines.selectTileToAutobet",this.gameData?.language||"en")}});return}if(!this.autobetInProgress)this.emit("show-alert",{detail:{id:"autobet-started",type:"warning",message:q("autobet.startAutobet",this.gameData?.language||"en"),autoCloseDelay:5000}});await super.toggleAutobet(o)}minesClickHandler=async(o)=>{if(this._playSound("click"),this.manualOrAuto==="Auto"){if(this.autobetSelectedTiles.includes(o.detail.tile))this.autobetSelectedTiles=this.autobetSelectedTiles.filter((a)=>a!==o.detail.tile);else if(this.autobetSelectedTiles.length<25-this.minesCount)this.autobetSelectedTiles=[...this.autobetSelectedTiles,o.detail.tile];this.minesData=null;return}let i=o.detail.tile;await this.minesNext(i)};async minesManualStart(){if(this.isLoading=!0,this.minesData=null,this._playSound("bet"),!this.gameData?.currency)throw new Error("Currency is not set");let o={language:this.gameData.language,amount:this.gameData?.amount??"0",currency:this.gameData.currency,minesCount:this.minesCount},i=await this.minesApi.startManualBet(o);if(!i.success){this.showError(i.error),this.isLoading=!1;return}let a=this.isDemoMode?P(this.gameData.balance).minus(i.data.amount??0).plus(i.data.payout??0):P(i.data.afterBalance??0);this.gameData.updateBalance(a),this.minesData=i.data,this.isLoading=!1}async minesChooseRandomTile(){this.isSelectingRandomTile=!0,this._playSound("click");let i=this.getMinesState?.selectedTiles??[],a=Array.from({length:Ao},(r,e)=>e).filter((r)=>!i.includes(r)),t=a[Math.floor(Math.random()*a.length)];if(t!==void 0)await this.minesNext(t);this.isSelectingRandomTile=!1}async minesNext(o){if(this.loadingTiles.includes(o))return;this.loadingTiles=[...this.loadingTiles,o];try{let i=await this.minesApi.selectTile({betId:this.minesData?.id??"",selectedTiles:[o]});if(!i.success){this.emit("show-alert",{detail:{type:"error",message:i.error}});return}let a=i.data.betActions.find((r)=>r.type==="END_BET")?.data.MINES,t=!!a&&a.result.includes(o);if(this._playSound(t?"bomb":"gem"),this.minesData=i.data,a){let{multiplier:r,id:e}=i.data,n=P(r||"0").isGreaterThan(0);this.addToHistory(Number(r),n,e),this.updateHistoryWithBet(i.data)}}finally{this.loadingTiles=this.loadingTiles.filter((i)=>i!==o)}}async minesCashout(){this.isLoading=!0,this._playSound("bet");let o=await this.minesApi.cashout();if(!o.success){this.emit("show-alert",{detail:{type:"error",message:o.error}}),this.isLoading=!1;return}let i=o.data?.afterBalance,a=o.data?.currency;if(i&&a){let t=this.isDemoMode?P(this.gameData.balance).plus(o.data.payout??0):P(o.data.afterBalance??0);this.gameData.updateBalance(t)}if(this.isLoading=!1,this.minesData=o.data,this.minesData){let{multiplier:t,id:r}=this.minesData,e=P(t||"0").isGreaterThan(0);if(e)this._playSound("win");this.addToHistory(Number(t),e,r),this.updateHistoryWithBet(this.minesData)}}onManualOrAutoChange(){this.minesData=null,this.autobetSelectedTiles=[]}onMinesCountChange(){if(this.manualOrAuto==="Auto"&&this.autobetSelectedTiles.length>25-this.minesCount)this.autobetSelectedTiles=[]}onAutobetChange(){if(!this.autobetInProgress)this.minesData=null}isSpacebarDisabled=()=>{if(!this.gameData?.hotkeysOpenEnabled)return!0;if(this.manualOrAuto==="Manual")return this._minesManualEl?.shadowRoot?.querySelector("origami-button")?.disabled??!0;else return this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn")?.disabled??!0};handleSpacebar=()=>{if(this.isSpacebarDisabled())return;if(this.manualOrAuto==="Manual")if(this.isGameActive)this.minesCashout();else this.minesManualStart();else{let i=this._minesAutoEl?.shadowRoot?.querySelector("origami-generic-autobet")?.shadowRoot?.querySelector(".bet-btn");if(i instanceof HTMLElement)i.click()}};pickRandomTile=()=>{if(!this.isGameActive)return;this.minesChooseRandomTile()};async waitForAnimationsComplete(o){if(this.gameData?.instantBetEnabled);else{if(await bo(200),o)await bo(150);await this.ensureMinimumDisplayTime(o,300,300)}await bo(this.getAutobetDelay())}constructor(){super();this.minesCount=3;this.autobetSelectedTiles=[];this.minesData=null;this.isLoading=!1;this.isSelectingRandomTile=!1;this.history=[];this.isCheckingForSession=!0;this.loadingTiles=[];new Mo(this,[{key:" ",callback:this.handleSpacebar.bind(this),options:{disabled:this.isSpacebarDisabled}},{key:"q",callback:this.pickRandomTile.bind(this),options:{repeat:!0,repeatInterval:200,disabled:()=>!this.isGameActive||this.autobetInProgress&&!this.autobetStopping||!this.gameData?.hotkeysOpenEnabled}},{key:"w",callback:this.minesCashout.bind(this),options:{disabled:()=>!this.isGameActive||(this.getMinesState?.selectedTiles.length??0)===0||!this.gameData?.hotkeysOpenEnabled}}])}render(){let o=this.getMinesState,i=this.minesData?.multiplier,a=o?.state==="VIEWING_RESULTS"&&o?.outcome==="WIN",t=this.minesData?.payout,r=this.gameData?.currency??"USD",e=o?.mineLocations?.some((s)=>o?.selectedTiles?.includes(s))??!1,n=this.gameData?.mainWidth>=768;return $`
8064
8064
  <origami-game-layout footer-position="below" .gameType=${"MINES"}>
8065
8065
  <origami-game-sidebar
8066
8066
  data-is-desktop=${n}
@@ -8113,7 +8113,7 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
8113
8113
  ${a?$`<origami-game-win-popup
8114
8114
  .gameType=${"Mines"}
8115
8115
  slot="game-overlay"
8116
- .payout=${A(t??"0")}
8116
+ .payout=${P(t??"0")}
8117
8117
  .multiplier=${Number(i)}
8118
8118
  .variant=${i&&Number(i)>0?"success":"warning"}
8119
8119
  .currencySymbol=${r}
@@ -8122,4 +8122,4 @@ var On=Object.create;var{getPrototypeOf:Tn,defineProperty:Ur,getOwnPropertyNames
8122
8122
  inModal
8123
8123
  ></origami-game-win-popup>`:_}
8124
8124
  </origami-game-layout>
8125
- `}}d([j()],Pa.prototype,"minesCount",void 0),d([j()],Pa.prototype,"autobetSelectedTiles",void 0),d([j()],Pa.prototype,"minesData",void 0),d([j()],Pa.prototype,"isLoading",void 0),d([j()],Pa.prototype,"isSelectingRandomTile",void 0),d([j()],Pa.prototype,"history",void 0),d([j()],Pa.prototype,"isCheckingForSession",void 0),d([j()],Pa.prototype,"loadingTiles",void 0),d([fo("origami-mines-manual")],Pa.prototype,"_minesManualEl",void 0),d([fo("origami-mines-auto")],Pa.prototype,"_minesAutoEl",void 0),d([vo("manualOrAuto")],Pa.prototype,"onManualOrAutoChange",null),d([vo("minesCount")],Pa.prototype,"onMinesCountChange",null),d([vo("autobetInProgress")],Pa.prototype,"onAutobetChange",null),Pa=d([O("origami-mines-game")],Pa);export{Ht as translations,q as getTranslation,Pa as MinesGame,Qa as LimboGame,La as KenoGame,ga as GameProviderWrapper,$a as DiceGame,ba as BetDetailsComponent};
8125
+ `}}d([A()],ja.prototype,"minesCount",void 0),d([A()],ja.prototype,"autobetSelectedTiles",void 0),d([A()],ja.prototype,"minesData",void 0),d([A()],ja.prototype,"isLoading",void 0),d([A()],ja.prototype,"isSelectingRandomTile",void 0),d([A()],ja.prototype,"history",void 0),d([A()],ja.prototype,"isCheckingForSession",void 0),d([A()],ja.prototype,"loadingTiles",void 0),d([fo("origami-mines-manual")],ja.prototype,"_minesManualEl",void 0),d([fo("origami-mines-auto")],ja.prototype,"_minesAutoEl",void 0),d([mo("manualOrAuto")],ja.prototype,"onManualOrAutoChange",null),d([mo("minesCount")],ja.prototype,"onMinesCountChange",null),d([mo("autobetInProgress")],ja.prototype,"onAutobetChange",null),ja=d([O("origami-mines-game")],ja);export{Zt as translations,q as getTranslation,ja as MinesGame,Qa as LimboGame,Ca as KenoGame,ga as GameProviderWrapper,$a as DiceGame,ba as BetDetailsComponent};