file_name
stringlengths
3
137
prefix
stringlengths
0
918k
suffix
stringlengths
0
962k
middle
stringlengths
0
812k
standard-set-commit-maker.js
import Ember from "ember" import hbs from "htmlbars-inline-precompile" export default Ember.Component.extend({ actions: { submit() { analytics.track("Editor - Submit Commit") if ( Ember.isEmpty(Ember.get(this, "summary")) || Ember.isEmpty(Ember.get(this, "session.profile.email")) || Ember.isEmpty(Ember.get(this, "session.profile.name")) ) { this.set("error", "All fields must be filled in.") return } else { this.set("error", false) } this.attrs.onFormSubmit({ committerName: Ember.get(this, "session.profile.name"), committerEmail: Ember.get(this, "session.profile.email"), commitSummary: Ember.get(this, "summary"), }) }, }, summary: "", classNames: ["standard-set-commit-maker"], layout: hbs` {{#if diffError}} <div class="alert alert-danger">{{diffError}}</div> {{/if}} {{#if error}} <div class="alert alert-danger">{{error}}</div> {{/if}} {{#if commitError}} <div class="alert alert-danger">{{commitError}}</div> {{/if}} {{#if commitSuccess}} <div class="alert alert-success">{{commitSuccess}}</div> {{/if}} <div class="form-group"> <label>Summary of Changes</label> {{textarea value=summary class="form-control"}} </div> <div class="row"> <div class="col-xs-6"> <div class="form-group"> <label>Your Name</label> {{input value=session.profile.name class="form-control"}} </div>
</div> <div class="col-xs-6"> <div class="form-group"> <label>Your Email</label> {{input value=session.profile.email class="form-control"}} </div> </div> </div> <div class="form-group"> <div class="btn btn-primary btn-block form-control" {{action "submit"}}>Submit Change</div> </div> `, })
superInObjectLiterals_ES5.js
//// [superInObjectLiterals_ES5.ts] var obj = { __proto__: { method() { } }, method() { super.method(); }, get prop() { super.method(); return 10; }, set prop(value) { super.method(); }, p1: function () { super.method(); }, p2: function f() { super.method(); }, p3: () => { super.method(); } }; class A { method() { } } class B extends A { f() { var obj = { __proto__: { method() { } }, method() { super.method(); }, get prop() { super.method(); return 10; }, set prop(value) { super.method(); }, p1: function () { super.method(); }, p2: function f() { super.method(); }, p3: () => { super.method(); } }; } } //// [superInObjectLiterals_ES5.js] var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var obj = { __proto__: { method: function () { } }, method: function () { _super.prototype.method.call(this); }, get prop() { _super.prototype.method.call(this); return 10; }, set prop(value) { _super.prototype.method.call(this); }, p1: function () { _super.method.call(this); }, p2: function f() { _super.method.call(this); }, p3: function () { _super.method.call(this); } }; var A = (function () { function A() { } A.prototype.method = function () { }; return A; }()); var B = (function (_super) { __extends(B, _super); function B() { _super.apply(this, arguments); } B.prototype.f = function () { var _this = this; var obj = { __proto__: {
} }, method: function () { _super.prototype.method.call(this); }, get prop() { _super.prototype.method.call(this); return 10; }, set prop(value) { _super.prototype.method.call(this); }, p1: function () { _super.method.call(this); }, p2: function f() { _super.method.call(this); }, p3: function () { _super.prototype.method.call(_this); } }; }; return B; }(A));
method: function () {
OverlayContainer.js
import { html } from "lit-html"; import Parameter from "../components/Parameter"; import Select from "../components/Select"; import { toggle } from "../components/Toggle"; import { colorByCount, purpleByCount, colorByFraction } from "./color-rules"; import Overlay from "./Overlay"; export default class OverlayContainer { constructor(id, layers, columnSet, toggleText, firstOnly, includeCoalition, multiYear) { this._id = id; this._currentSubgroupIndex = firstOnly ? 1 : 0; this.subgroups = columnSet.columns; if (includeCoalition) { this.subgroups = this.subgroups.concat([]); this.subgroups.splice(1, 0, { key: "_COALITION", name: includeCoalition, columnSet: { type: "population" }, asMapboxExpression: () => ["get", "TOTPOP"], fractionAsMapboxExpression: () => [ "case", ["==", ["get", "TOTPOP"], 0], 0, [ "/", ["+"].concat(this.subgroups .filter(sg => window.coalitionGroups[sg.key]) .map(sg => ["get", sg.key]) ), this.subgroups[0].total.asMapboxExpression() ] ], // sum: fullsum, total: columnSet.subgroups[0].total }); } this.firstOnly = firstOnly || false; this.multiYear = multiYear; this.yr = 2010; // These color rules should be explicitly attached to each subgroup, // instead of doing these brittle checks to try and figure out what's // appropriate. // Attaching them to the actual Subgroup instances would also make // it easier to unify OverlayContainer and PartisanOverlayContainer, // and to register new overlay types. Plugins could just register // their layer styles against columnSet/subgroup types. const colorRule = (this.firstOnly ? purpleByCount : ((this.subgroups[0].total === this.subgroups[0]) ? colorByCount : colorByFraction) ); this.overlay = new Overlay( layers, this.subgroups[this._currentSubgroupIndex], colorRule ); if (!toggleText) { toggleText = columnSet.name ? columnSet.name : "Show data layer"; } this.changeSubgroup = this.changeSubgroup.bind(this); this.render = this.render.bind(this); if (window.location.search.includes("layer=")) { let layerSelect = window.location.search.split("layer=")[1].split("&")[0].toUpperCase(); this.subgroups.forEach((sg, index) => { if (sg.key.toUpperCase() === layerSelect) { this.changeSubgroup(index); this.overlay.show(); if (window.location.search.includes("ltype=circle")) { this.overlay.setLayer(1); } } }); } this.visibilityToggle = toggle(toggleText, (!this.firstOnly && this._currentSubgroupIndex !== 0), visible => { document.getElementById("color-" + this._id).style.display = (visible ? "block" : "none"); if (visible) { this.overlay.show(); this.changeSubgroup(this._currentSubgroupIndex); } else { this.overlay.hide(); } }); } changeSubgroup(i) { this._currentSubgroupIndex = i; if (this.yr === 2018) { while(this.subgroups[i] && (!this.subgroups[i].name.includes("(2018)") || !this.subgroups[i].name.includes(this.subgroups[this._currentSubgroupIndex].name))) { i++; } } this.overlay.setSubgroup(this.subgroups[i]); if (this.firstOnly || (this.subgroups[i].total === this.subgroups[i]) || (this.subgroups[i].key.includes("TOTPOP"))) { if (this.firstOnly) { this.overlay.setColorRule(purpleByCount); } else { this.overlay.setColorRule(colorByCount); } let total = this.subgroups[i].max; document.querySelectorAll("#counts-" + this._id + " .square").forEach((sq, index) => { let num = Math.floor(total * index / 5); if (num === 0 || total < 100000) { if (num < 1000 || total < 10000) { if (total < 1000) { sq.innerText = Math.floor(Math.round(num / 10) * 10).toLocaleString(); } else if (total === 3000 && num === 3000) { sq.innerText = "≥3,000"; } else { sq.innerText = Math.floor(Math.round(num / 100) * 100).toLocaleString(); } } else { sq.innerText = Math.round(num / 1000) + "k"; } } else { sq.innerText = Math.round(num / 1000) + "k"; } }); document.getElementById("counts-" + this._id).style.display = "block"; document.getElementById("percents-" + this._id).style.display = "none"; } else { this.overlay.setColorRule(colorByFraction); document.getElementById("counts-" + this._id).style.display = "none"; document.getElementById("percents-" + this._id).style.display = "block"; } } selectYear(yr) { this.yr = yr; this.changeSubgroup(this._currentSubgroupIndex); } render() { return html` <div class="ui-option ui-option--slim"> <h5>${this.visibilityToggle}</h5> </div> ${this.firstOnly ? "" : Parameter({ label: "Variable:", element: Select( this.subgroups.filter(sg => !this.multiYear || !sg.name.includes("(2018)")), this.changeSubgroup, this._currentSubgroupIndex ) }) } ${this.multiYear ? html`<div class="yrselect parameter"> <label class="parameter__label ui-label ui-label--row">Year</label> <label> <input type="radio" name="${this._id + 'yr'}" value="2010" ?checked="${this.yr === 2010}" @change="${e => this.selectYear(2010)}" /> 2010 </label> <label> <input type="radio" name="${this._id + 'yr'}" value="2018" ?checked="${this.yr === 2018}" @change="${e => this.selectYear(2018)}" /> 2018 </label> </div>` : "" } ${this.firstOnly ? "" : Parameter({ label: "Display as", element: Select( this.overlay.layers.map(layer => getLayerDescription(layer) ), (i) => { this.overlay.setLayer(i); } ) }) } <div id="color-${this._id}" class="color-legend"> <span class="gradientbar ${!this.firstOnly || 'purple'}"></span> <br/> <div id="notches-${this._id}" class="notches"> <span class="notch">|</span> <span class="notch">|</span> <span class="notch">|</span> <span class="notch">|</span> <span class="notch">|</span> <span class="notch">|</span> </div> <div id="percents-${this._id}" class="labels"> <span class="square">0%</span> <span class="square">20%</span> <span class="square">40%</span> <span class="square">60%</span> <span class="square">80%</span> <span class="square">100%</span> </div> <div id="counts-${this._id}" class="labels"> <span class="square">0</span> <span class="square">1</span> <span class="square">2</span> <span class="square">3</span> <span class="square">4</span> <span class="square">5</span> </div> </div> `; } } const layerDisplayNames = { circle: "sized circles", fill: "shaded regions" }; export function ge
ayer) { return { name: layerDisplayNames[layer.type] }; }
tLayerDescription(l
ec2_test.go
package ec2 import ( "testing" "github.com/aws/aws-sdk-go/aws" "github.com/aws/aws-sdk-go/service/ec2" "github.com/dtan4/esnctl/aws/mock" "github.com/golang/mock/gomock" ) func TestRetrieveInstanceIDFromPrivateDNS(t *testing.T) { ctrl := gomock.NewController(t) defer ctrl.Finish() api := mock.NewMockEC2API(ctrl) api.EXPECT().DescribeInstances(&ec2.DescribeInstancesInput{ Filters: []*ec2.Filter{ { Name: aws.String("private-dns-name"), Values: []*string{ aws.String("ip-10-0-1-23.ap-northeast-1.compute.internal"), }, }, }, }).Return(&ec2.DescribeInstancesOutput{ Reservations: []*ec2.Reservation{ { Instances: []*ec2.Instance{ { InstanceId: aws.String("i-1234abcd"), PrivateDnsName: aws.String("ip-10-0-1-23.ap-northeast-1.compute.internal"), }, }, }, }, }, nil) client := &Client{ api: api, } privateDNS := "ip-10-0-1-23.ap-northeast-1.compute.internal" expected := "i-1234abcd" got, err := client.RetrieveInstanceIDFromPrivateDNS(privateDNS) if err != nil { t.Errorf("error should not be raised: %s", err) } if got != expected
}
{ t.Errorf("instance ID does not match. expected: %q, got: %q", expected, got) }
SingleAuthorCausalSet.ts
import { Identity } from '../../identity'; import { CausalSet } from './CausalSet'; import { Hash, HashedObject } from '../../model'; import { Authorization, Authorizer } from '../../model/causal/Authorization'; class SingleAuthorCausalSet<T> extends CausalSet<T> { static className = 'hss/v0/SingleAuthorCausalSet'; constructor(author?: Identity, acceptedTypes?: Array<string>, acceptedElements?: Array<any>) { super(acceptedTypes, acceptedElements); if (author !== undefined) { this.setAuthor(author); } } async add(elmt: T): Promise<boolean> { return super.add(elmt, this.getAuthor()); } async delete(elmt: T): Promise<boolean> { return super.delete(elmt, this.getAuthor()); } async deleteByHash(hash: Hash): Promise<boolean> { return super.deleteByHash(hash, this.getAuthor()); } has(elmt: T): boolean { return super.has(elmt); } hasByHash(hash: Hash): boolean { return super.hasByHash(hash); } async validate(references: Map<string, HashedObject>): Promise<boolean> { if (!super.validate(references)) { return false;
protected createAddAuthorizer(_elmt: T, author: Identity): Authorizer { if (author.equals(this.getAuthor())) { return Authorization.always; } else { return Authorization.never; } } protected createDeleteAuthorizerByHash(_elmtHash: Hash, author: Identity): Authorizer { if (author.equals(this.getAuthor())) { return Authorization.always; } else { return Authorization.never; } } getClassName() { return SingleAuthorCausalSet.className; } } HashedObject.registerClass(SingleAuthorCausalSet.className, SingleAuthorCausalSet); export { SingleAuthorCausalSet };
} return this.getAuthor() !== undefined; }
internal.rs
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this file except in compliance // with the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, // software distributed under the License is distributed on an // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY // KIND, either express or implied. See the License for the // specific language governing permissions and limitations // under the License. use super::get_trusted_enclave_attr; use super::runtime_config; use super::InboundDesc; use super::OutboundDesc; use super::ServiceConfig; use super::TargetDesc; pub struct Internal; impl Internal { pub fn tms() -> ServiceConfig { ServiceConfig::new( runtime_config().internal_endpoints.tms.listen_address, InboundDesc::Sgx(get_trusted_enclave_attr(vec!["fns"])), ) } pub fn kms() -> ServiceConfig { ServiceConfig::new( runtime_config().internal_endpoints.kms.listen_address, InboundDesc::Sgx(get_trusted_enclave_attr(vec!["fns", "tdfs"])), ) } pub fn tdfs() -> ServiceConfig { ServiceConfig::new( runtime_config().internal_endpoints.tdfs.listen_address, InboundDesc::Sgx(get_trusted_enclave_attr(vec!["fns", "tms"])), ) } pub fn
() -> ServiceConfig { ServiceConfig::new( runtime_config().internal_endpoints.acs.listen_address, InboundDesc::Sgx(get_trusted_enclave_attr(vec!["kms", "tms", "tdfs"])), ) } pub fn target_tms() -> TargetDesc { TargetDesc::new( runtime_config().internal_endpoints.tms.advertised_address, OutboundDesc::Sgx(get_trusted_enclave_attr(vec!["tms"])), ) } pub fn target_kms() -> TargetDesc { TargetDesc::new( runtime_config().internal_endpoints.kms.advertised_address, OutboundDesc::Sgx(get_trusted_enclave_attr(vec!["kms"])), ) } pub fn target_tdfs() -> TargetDesc { TargetDesc::new( runtime_config().internal_endpoints.tdfs.advertised_address, OutboundDesc::Sgx(get_trusted_enclave_attr(vec!["tdfs"])), ) } pub fn target_acs() -> TargetDesc { TargetDesc::new( runtime_config().internal_endpoints.acs.advertised_address, OutboundDesc::Sgx(get_trusted_enclave_attr(vec!["acs"])), ) } }
acs
controllers_v1_service_controller_remove_service_applied_to_vm_insts_responses.go
// Code generated by go-swagger; DO NOT EDIT. package services // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" models "github.com/IBM-Cloud/vcds-go-client/vcds/models" ) // ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsReader is a Reader for the ControllersV1ServiceControllerRemoveServiceAppliedToVMInsts structure. type ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 202: result := NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 401: result := NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 403: result := NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 404: result := NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: return nil, runtime.NewAPIError("unknown error", response, response.Code()) } } // NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted creates a ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted with default headers values func NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted() *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted { return &ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted{} } /*ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted handles this case with default header values. Delete of service instance initiated successfully */ type ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted struct { /*Global transaction ID for request correlation. */ XGlobalTransactionID string } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted) Error() string { return fmt.Sprintf("[DELETE /v1/vcenters/{instance_id}/service_instances/{service_instance_id}][%d] controllersV1ServiceControllerRemoveServiceAppliedToVmInstsAccepted ", 202) } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsAccepted) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header x-global-transaction-id o.XGlobalTransactionID = response.GetHeader("x-global-transaction-id") return nil } // NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized creates a ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized with default headers values func NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized() *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized { return &ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized{} } /*ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized handles this case with default header values. Unauthorized. The IAM token is invalid or expired. To retrieve your IAM token, run `ibmcloud login` and then `ibmcloud iam oauth-tokens`. */ type ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized struct { /*Global transaction ID for request correlation. */ XGlobalTransactionID string Payload *models.Error } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/vcenters/{instance_id}/service_instances/{service_instance_id}][%d] controllersV1ServiceControllerRemoveServiceAppliedToVmInstsUnauthorized %+v", 401, o.Payload) } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header x-global-transaction-id o.XGlobalTransactionID = response.GetHeader("x-global-transaction-id") o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden creates a ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden with default headers values func NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden() *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden { return &ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden{} } /*ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden handles this case with default header values. Forbidden. Access to the specified resource is not authorized. Check the IAM access policy for the `VMware Solutions` service. */ type ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden struct { /*Global transaction ID for request correlation. */ XGlobalTransactionID string Payload *models.Error } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/vcenters/{instance_id}/service_instances/{service_instance_id}][%d] controllersV1ServiceControllerRemoveServiceAppliedToVmInstsForbidden %+v", 403, o.Payload) } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsForbidden) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header x-global-transaction-id o.XGlobalTransactionID = response.GetHeader("x-global-transaction-id") o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound creates a ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound with default headers values func NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound() *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound { return &ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound{} } /*ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound handles this case with default header values. Not found. The resource cannot be found. */ type ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound struct { /*Global transaction ID for request correlation. */ XGlobalTransactionID string Payload *models.Error } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/vcenters/{instance_id}/service_instances/{service_instance_id}][%d] controllersV1ServiceControllerRemoveServiceAppliedToVmInstsNotFound %+v", 404, o.Payload) } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsNotFound) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header x-global-transaction-id o.XGlobalTransactionID = response.GetHeader("x-global-transaction-id") o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError creates a ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError with default headers values func NewControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError() *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError { return &ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError{} } /*ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError handles this case with default header values. Internal server error. Your request cannot be processed. Please wait a few minutes and try again. */ type ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError struct { /*Global transaction ID for request correlation.
Payload *models.Error } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/vcenters/{instance_id}/service_instances/{service_instance_id}][%d] controllersV1ServiceControllerRemoveServiceAppliedToVmInstsInternalServerError %+v", 500, o.Payload) } func (o *ControllersV1ServiceControllerRemoveServiceAppliedToVMInstsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response header x-global-transaction-id o.XGlobalTransactionID = response.GetHeader("x-global-transaction-id") o.Payload = new(models.Error) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
*/ XGlobalTransactionID string
home.component.ts
import {Component} from '@angular/core';
selector: 'home', template: ` <h1>home page</h1> ` }) export class HomeComponent { constructor() {} ngOnInit() { } }
@Component({
config.ts
mainnetExplorerUrlHash: "http://explorer.bitcoin2.network/transaction.html?hash={ID}", mainnetExplorerUrlBlock: "http://explorer.bitcoin2.network/block.html?hash={ID}", testnetExplorerUrl: "http://testnet.bitcoin2.network/", testnetExplorerUrlHash: "http://testnet.bitcoin2.network/transaction.html?hash={ID}", testnetExplorerUrlBlock: "http://testnet.bitcoin2.network/block.html?hash={ID}", testnet: false, coinUnitPlaces: 8, txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero addressPrefix: 2345936, integratedAddressPrefix: 0, addressPrefixTestnet: 0, integratedAddressPrefixTestnet: 0, subAddressPrefix: 0, subAddressPrefixTestnet: 0, feePerKB: new JSBigInt('1000000'),//20^10 - for testnet its not used, as fee is dynamic. dustThreshold: new JSBigInt('1000000'),//10^10 used for choosing outputs/change - we decompose all the way down if the receiver wants now regardless of threshold defaultMixin: 0, // default value mixin idleTimeout: 30, idleWarningDuration: 20, coinSymbol: 'B2N', openAliasPrefix: "b2n", coinName: 'Bitcoin2Network', coinUriPrefix: 'bitcoin2network:', avgBlockTime: 90, maxBlockNumber: 500000000, };
let global : any = typeof window !== 'undefined' ? window : self; global.config = { apiUrl: typeof window !== 'undefined' && window.location ? window.location.href.substr(0, window.location.href.lastIndexOf('/') + 1) + 'api/' : 'https://wallet.bitcoin2.network/api/', mainnetExplorerUrl: "http://explorer.bitcoin2.network/",
test_runner_change.py
# coding: utf-8 """ Betfair: Exchange Streaming API API to receive streamed updates. This is an ssl socket connection of CRLF delimited json messages (see RequestMessage & ResponseMessage) OpenAPI spec version: 1.0.1423 Contact: [email protected] Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ from __future__ import absolute_import import os import sys import unittest import swagger_client from swagger_client.rest import ApiException from swagger_client.models.runner_change import RunnerChange class TestRunnerChange(unittest.TestCase): """ RunnerChange unit test stubs """ def setUp(self): pass def tearDown(self):
def testRunnerChange(self): """ Test RunnerChange """ model = swagger_client.models.runner_change.RunnerChange() if __name__ == '__main__': unittest.main()
pass
layers.go
// Package layerfetcher fetches layers from remote peers package layerfetcher import ( "context" "errors" "fmt" "sync" "github.com/spacemeshos/go-spacemesh/common/types" "github.com/spacemeshos/go-spacemesh/common/util" "github.com/spacemeshos/go-spacemesh/database" "github.com/spacemeshos/go-spacemesh/fetch" "github.com/spacemeshos/go-spacemesh/log" "github.com/spacemeshos/go-spacemesh/p2p/p2pcrypto" "github.com/spacemeshos/go-spacemesh/p2p/peers" "github.com/spacemeshos/go-spacemesh/p2p/server" "github.com/spacemeshos/go-spacemesh/p2p/service" ) //go:generate mockgen -package=mocks -destination=./mocks/mocks.go -source=./layers.go // atxHandler defines handling function for incoming ATXs. type atxHandler interface { HandleAtxData(ctx context.Context, data []byte, syncer service.Fetcher) error } // blockHandler defines handling function for blocks. type blockHandler interface { HandleBlockData(ctx context.Context, date []byte, fetcher service.Fetcher) error } // TxProcessor is an interface for handling TX data received in sync. type TxProcessor interface { HandleTxSyncData(data []byte) error } // layerDB is an interface that returns layer data and blocks. type layerDB interface { GetLayerHash(types.LayerID) types.Hash32 GetAggregatedLayerHash(types.LayerID) types.Hash32 LayerBlockIds(types.LayerID) ([]types.BlockID, error) GetLayerInputVectorByID(types.LayerID) ([]types.BlockID, error) SaveLayerInputVectorByID(context.Context, types.LayerID, []types.BlockID) error ProcessedLayer() types.LayerID SetZeroBlockLayer(types.LayerID) error } type atxIDsDB interface { GetEpochAtxs(epochID types.EpochID) ([]types.ATXID, error) } // poetDB is an interface to reading and storing poet proofs. type poetDB interface { HasProof(proofRef []byte) bool ValidateAndStore(proofMessage *types.PoetProofMessage) error ValidateAndStoreMsg(data []byte) error } // network defines network capabilities used. type network interface { GetPeers() []peers.Peer PeerCount() uint64 SendRequest(ctx context.Context, msgType server.MessageType, payload []byte, address p2pcrypto.PublicKey, resHandler func(msg []byte), errorHandler func(err error)) error Close() } var ( // ErrNoPeers is returned when node has no peers. ErrNoPeers = errors.New("no peers") // ErrInternal is returned from the peer when the peer encounters an internal error. ErrInternal = errors.New("unspecified error returned by peer") // ErrBlockNotFetched is returned when at least one block is not fetched successfully. ErrBlockNotFetched = errors.New("block not fetched") // errLayerNotProcessed is returned when requested layer was not yet processed. errLayerNotProcessed = errors.New("requested layer is not yet processed") ) // peerResult captures the response from each peer. type peerResult struct { data *layerBlocks err error } // layerResult captures expected content of a layer across peers. type layerResult struct { layerID types.LayerID blocks map[types.BlockID]struct{} inputVector []types.BlockID responses map[peers.Peer]*peerResult } // LayerPromiseResult is the result of trying to fetch data for an entire layer. type LayerPromiseResult struct { Err error Layer types.LayerID } // Logic is the struct containing components needed to follow layer fetching logic. type Logic struct { log log.Log fetcher fetch.Fetcher net network mutex sync.Mutex layerBlocksRes map[types.LayerID]*layerResult layerBlocksChs map[types.LayerID][]chan LayerPromiseResult poetProofs poetDB atxs atxHandler blockHandler blockHandler txs TxProcessor layerDB layerDB atxIds atxIDsDB goldenATXID types.ATXID } // Config defines configuration for layer fetching logic. type Config struct { RequestTimeout int GoldenATXID types.ATXID } // DefaultConfig returns default configuration for layer fetching logic. func DefaultConfig() Config { return Config{RequestTimeout: 10} } // NewLogic creates a new instance of layer fetching logic. func NewLogic(ctx context.Context, cfg Config, blocks blockHandler, atxs atxHandler, poet poetDB, atxIDs atxIDsDB, txs TxProcessor, network service.Service, fetcher fetch.Fetcher, layers layerDB, log log.Log) *Logic { srv := fetch.NewMessageNetwork(ctx, cfg.RequestTimeout, network, layersProtocol, log) l := &Logic{ log: log, fetcher: fetcher, net: srv, layerBlocksRes: make(map[types.LayerID]*layerResult), layerBlocksChs: make(map[types.LayerID][]chan LayerPromiseResult), poetProofs: poet, atxs: atxs, layerDB: layers, blockHandler: blocks, atxIds: atxIDs, txs: txs, goldenATXID: cfg.GoldenATXID, } srv.RegisterBytesMsgHandler(server.LayerBlocksMsg, l.layerBlocksReqReceiver) srv.RegisterBytesMsgHandler(server.AtxIDsMsg, l.epochATXsReqReceiver) return l } const ( layersProtocol = "/layers/2.0/" ) // Start starts layerFetcher logic and fetch component. func (l *Logic) Start() { l.fetcher.Start() } // Close closes all running workers. func (l *Logic) Close() { l.net.Close() l.fetcher.Stop() } // AddDBs adds dbs that will be queried when sync requests are received. these databases will be exposed to external callers. func (l *Logic) AddDBs(blockDB, AtxDB, TxDB, poetDB database.Getter) { l.fetcher.AddDB(fetch.BlockDB, blockDB) l.fetcher.AddDB(fetch.ATXDB, AtxDB) l.fetcher.AddDB(fetch.TXDB, TxDB) l.fetcher.AddDB(fetch.POETDB, poetDB) } // epochATXsReqReceiver returns the ATXs for the specified epoch. func (l *Logic) epochATXsReqReceiver(ctx context.Context, msg []byte) ([]byte, error) { epoch := types.EpochID(util.BytesToUint32(msg)) atxs, err := l.atxIds.GetEpochAtxs(epoch) if err != nil { return nil, fmt.Errorf("get epoch ATXs: %w", err) } l.log.WithContext(ctx).With().Debug("responded to epoch atxs request", epoch, log.Int("count", len(atxs))) bts, err := types.InterfaceToBytes(atxs) if err != nil { l.log.WithContext(ctx).With().Panic("failed to serialize epoch atxs", epoch, log.Err(err)) return bts, fmt.Errorf("serialize: %w", err) } return bts, nil } // layerBlocksReqReceiver returns the block IDs for the specified layer hash, // it also returns the validation vector for this data and the latest blocks received in gossip. func (l *Logic) layerBlocksReqReceiver(ctx context.Context, req []byte) ([]byte, error) { lyrID := types.BytesToLayerID(req) processed := l.layerDB.ProcessedLayer() if lyrID.After(processed) { return nil, fmt.Errorf("%w: requested layer %v is higher than processed %v", errLayerNotProcessed, lyrID, processed) } b := &layerBlocks{ ProcessedLayer: processed, Hash: l.layerDB.GetLayerHash(lyrID), AggregatedHash: l.layerDB.GetAggregatedLayerHash(lyrID), } var err error b.Blocks, err = l.layerDB.LayerBlockIds(lyrID) if err != nil { // database.ErrNotFound should be considered a programming error since we are only responding for // layers older than processed layer l.log.WithContext(ctx).With().Warning("failed to get layer content", lyrID, log.Err(err)) return nil, ErrInternal } if b.InputVector, err = l.layerDB.GetLayerInputVectorByID(lyrID); err != nil { l.log.WithContext(ctx).With().Warning("failed to get input vector for layer", lyrID, log.Err(err)) return nil, ErrInternal } out, err := types.InterfaceToBytes(b) if err != nil { l.log.WithContext(ctx).With().Panic("failed to serialize layer blocks response", log.Err(err)) } return out, nil } // initLayerPolling returns false if there is an ongoing polling of the given layer content, // otherwise it initializes the polling and returns true. func (l *Logic) initLayerPolling(layerID types.LayerID, ch chan LayerPromiseResult) bool { l.mutex.Lock() defer l.mutex.Unlock() l.layerBlocksChs[layerID] = append(l.layerBlocksChs[layerID], ch) if _, ok := l.layerBlocksRes[layerID]; ok { // polling of block IDs of this layerID is ongoing, just wait for the polling to finish and get notified return false } l.layerBlocksRes[layerID] = &layerResult{ layerID: layerID, blocks: make(map[types.BlockID]struct{}), responses: make(map[peers.Peer]*peerResult), } return true } // PollLayerContent polls peers for the content of a given layer ID. // it returns a channel for the caller to be notified when responses are received from all peers. func (l *Logic) PollLayerContent(ctx context.Context, layerID types.LayerID) chan LayerPromiseResult { resChannel := make(chan LayerPromiseResult, 1) remotePeers := l.net.GetPeers() numPeers := len(remotePeers) if numPeers == 0 { resChannel <- LayerPromiseResult{Layer: layerID, Err: ErrNoPeers} return resChannel } if !l.initLayerPolling(layerID, resChannel) { return resChannel } // send a request to the first peer of the list to get blocks data. // todo: think if we should aggregate or ask from multiple peers to have some redundancy in requests for _, p := range remotePeers { peer := p receiveForPeerFunc := func(data []byte) { l.receiveLayerContent(ctx, layerID, peer, numPeers, data, nil) } errFunc := func(err error) { l.receiveLayerContent(ctx, layerID, peer, numPeers, nil, err) } err := l.net.SendRequest(ctx, server.LayerBlocksMsg, layerID.Bytes(), peer, receiveForPeerFunc, errFunc) if err != nil { l.receiveLayerContent(ctx, layerID, peer, numPeers, nil, err) } } return resChannel } // fetchLayerBlocks fetches the content of the block IDs in the specified layerBlocks. func (l *Logic) fetchLayerBlocks(ctx context.Context, layerID types.LayerID, blocks *layerBlocks) error { logger := l.log.WithContext(ctx).WithFields(layerID, log.Int("num_blocks", len(blocks.Blocks))) l.mutex.Lock() lyrResult := l.layerBlocksRes[layerID] var toFetch []types.BlockID for _, blkID := range blocks.Blocks { if _, ok := lyrResult.blocks[blkID]; !ok { // not yet fetched lyrResult.blocks[blkID] = struct{}{} toFetch = append(toFetch, blkID) } } // save the largest input vector from peers // TODO: revisit this when mesh hash resolution with peers is implemented if len(blocks.InputVector) > len(lyrResult.inputVector) { lyrResult.inputVector = blocks.InputVector } l.mutex.Unlock() logger.With().Debug("fetching new blocks", log.Int("to_fetch", len(toFetch))) if err := l.GetBlocks(ctx, toFetch); err != nil { // fail sync for the entire layer return err } return nil } func extractPeerResult(logger log.Log, layerID types.LayerID, data []byte, peerErr error) (result peerResult) { result.err = peerErr if peerErr != nil { logger.With().Debug("received peer error for layer content", layerID, log.Err(peerErr)) return } var blocks layerBlocks if err := types.BytesToInterface(data, &blocks); err != nil { logger.With().Debug("error converting bytes to layerBlocks", log.Err(err)) result.err = err return } result.data = &blocks // TODO check layer hash to be consistent with the content. if not, blacklist the peer return } // receiveLayerContent is called when response of block IDs for a layer hash is received from remote peer. // if enough responses are received, it notifies the channels waiting for the layer blocks result. func (l *Logic) receiveLayerContent(ctx context.Context, layerID types.LayerID, peer peers.Peer, expectedResults int, data []byte, peerErr error) { l.log.WithContext(ctx).With().Debug("received layer content from peer", log.String("peer", peer.String())) peerRes := extractPeerResult(l.log.WithContext(ctx), layerID, data, peerErr) if peerRes.err == nil
l.mutex.Lock() defer l.mutex.Unlock() // check if we have all responses from peers result := l.layerBlocksRes[layerID] result.responses[peer] = &peerRes if len(result.responses) < expectedResults { l.log.WithContext(ctx).With().Debug("not yet received layer blocks from all peers", log.Int("received", len(result.responses)), log.Int("expected", expectedResults)) return } // make a copy of data and channels to avoid holding a lock while notifying go notifyLayerBlocksResult(ctx, layerID, l.layerDB, l.layerBlocksChs[layerID], result, l.log.WithContext(ctx).WithFields(layerID)) delete(l.layerBlocksChs, layerID) delete(l.layerBlocksRes, layerID) } // notifyLayerBlocksResult determines the final result for the layer, and notifies subscribed channels when // all blocks are fetched for a given layer. // it deliberately doesn't hold any lock while notifying channels. func notifyLayerBlocksResult(ctx context.Context, layerID types.LayerID, layerDB layerDB, channels []chan LayerPromiseResult, lyrResult *layerResult, logger log.Log) { var ( missing, success bool err error ) for _, res := range lyrResult.responses { if res.err == nil && res.data != nil { success = true } if errors.Is(res.err, ErrBlockNotFetched) { // all fetches need to succeed missing = true err = res.err break } if err == nil { err = res.err } } result := LayerPromiseResult{Layer: layerID} // we tolerate errors from peers as long as we fetched all known blocks in this layer. if missing || !success { result.Err = err } if result.Err == nil { // save the input vector if len(lyrResult.inputVector) > 0 { if err := layerDB.SaveLayerInputVectorByID(ctx, layerID, lyrResult.inputVector); err != nil { logger.With().Error("failed to save input vector from peers", log.Err(err)) result.Err = err } } if len(lyrResult.blocks) == 0 { if err := layerDB.SetZeroBlockLayer(layerID); err != nil { // this can happen when node actually had received blocks for this layer before. ok to ignore logger.With().Warning("failed to set zero-block for layer", layerID, log.Err(err)) } } } logger.With().Debug("notifying layer blocks result", log.String("blocks", fmt.Sprintf("%+v", result))) for _, ch := range channels { ch <- result } } type epochAtxRes struct { Error error Atxs []types.ATXID } // GetEpochATXs fetches all atxs received by peer for given layer. func (l *Logic) GetEpochATXs(ctx context.Context, id types.EpochID) error { resCh := make(chan epochAtxRes, 1) // build receiver function receiveForPeerFunc := func(data []byte) { var atxsIDs []types.ATXID err := types.BytesToInterface(data, &atxsIDs) resCh <- epochAtxRes{ Error: err, Atxs: atxsIDs, } } errFunc := func(err error) { resCh <- epochAtxRes{ Error: err, Atxs: nil, } } if l.net.PeerCount() == 0 { return errors.New("no peers") } err := l.net.SendRequest(ctx, server.AtxIDsMsg, id.ToBytes(), fetch.GetRandomPeer(l.net.GetPeers()), receiveForPeerFunc, errFunc) if err != nil { return fmt.Errorf("send net request: %w", err) } l.log.WithContext(ctx).With().Debug("waiting for epoch atx response", id) res := <-resCh if res.Error != nil { return res.Error } if err := l.GetAtxs(ctx, res.Atxs); err != nil { return fmt.Errorf("get ATXs: %w", err) } return nil } // getAtxResults is called when an ATX result is received. func (l *Logic) getAtxResults(ctx context.Context, hash types.Hash32, data []byte) error { l.log.WithContext(ctx).With().Debug("got response for ATX", log.String("hash", hash.ShortString()), log.Int("dataSize", len(data))) if err := l.atxs.HandleAtxData(ctx, data, l); err != nil { return fmt.Errorf("handle ATX data: %w", err) } return nil } func (l *Logic) getTxResult(ctx context.Context, hash types.Hash32, data []byte) error { l.log.WithContext(ctx).With().Debug("got response for TX", log.String("hash", hash.ShortString()), log.Int("dataSize", len(data))) if err := l.txs.HandleTxSyncData(data); err != nil { return fmt.Errorf("handle tx sync data: %w", err) } return nil } // getPoetResult is handler function to poet proof fetch result. func (l *Logic) getPoetResult(ctx context.Context, hash types.Hash32, data []byte) error { l.log.WithContext(ctx).Debug("got poet ref", log.String("hash", hash.ShortString()), log.Int("dataSize", len(data))) if err := l.poetProofs.ValidateAndStoreMsg(data); err != nil { return fmt.Errorf("validate and store message: %w", err) } return nil } // blockReceiveFunc handles blocks received via fetch. func (l *Logic) blockReceiveFunc(ctx context.Context, data []byte) error { if err := l.blockHandler.HandleBlockData(ctx, data, l); err != nil { return fmt.Errorf("handle block data: %w", err) } return nil } // IsSynced indicates if this node is synced. func (l *Logic) IsSynced(context.Context) bool { // todo: add this logic return true } // ListenToGossip indicates if node is currently accepting packets from gossip. func (l *Logic) ListenToGossip() bool { // todo: add this logic return true } // Future is a preparation for using actual futures in the code, this will allow to truly execute // asynchronous reads and receive result only when needed. type Future struct { res chan fetch.HashDataPromiseResult ret *fetch.HashDataPromiseResult } // Result actually evaluates the result of the fetch task. func (f *Future) Result() fetch.HashDataPromiseResult { if f.ret == nil { ret := <-f.res f.ret = &ret } return *f.ret } // FetchAtx returns error if ATX was not found. func (l *Logic) FetchAtx(ctx context.Context, id types.ATXID) error { f := Future{l.fetcher.GetHash(id.Hash32(), fetch.ATXDB, false), nil} if f.Result().Err != nil { return f.Result().Err } if !f.Result().IsLocal { return l.getAtxResults(ctx, f.Result().Hash, f.Result().Data) } return nil } // FetchBlock gets data for a single block id and validates it. func (l *Logic) FetchBlock(ctx context.Context, id types.BlockID) error { res, open := <-l.fetcher.GetHash(id.AsHash32(), fetch.BlockDB, false) if !open { return fmt.Errorf("stopped on call for id %v", id.String()) } if res.Err != nil { return res.Err } if !res.IsLocal { if err := l.blockHandler.HandleBlockData(ctx, res.Data, l); err != nil { return fmt.Errorf("handle block data: %w", err) } return nil } return res.Err } // GetAtxs gets the data for given atx ids IDs and validates them. returns an error if at least one ATX cannot be fetched. func (l *Logic) GetAtxs(ctx context.Context, IDs []types.ATXID) error { hashes := make([]types.Hash32, 0, len(IDs)) for _, atxID := range IDs { hashes = append(hashes, atxID.Hash32()) } // TODO: atx Id is currently only the header bytes - should we change it? results := l.fetcher.GetHashes(hashes, fetch.ATXDB, false) for hash, resC := range results { res := <-resC if res.Err != nil { l.log.WithContext(ctx).With().Error("cannot fetch atx", log.String("hash", hash.ShortString()), log.Err(res.Err)) return res.Err } if !res.IsLocal { err := l.getAtxResults(ctx, res.Hash, res.Data) if err != nil { return err } } } return nil } // GetBlocks gets the data for given block ids and validates the blocks. returns an error if a single atx failed to be // fetched or validated. func (l *Logic) GetBlocks(ctx context.Context, IDs []types.BlockID) error { l.log.WithContext(ctx).With().Debug("requesting blocks from peer", log.Int("numBlocks", len(IDs))) hashes := make([]types.Hash32, 0, len(IDs)) for _, blockID := range IDs { hashes = append(hashes, blockID.AsHash32()) } results := l.fetcher.GetHashes(hashes, fetch.BlockDB, false) for hash, resC := range results { res, open := <-resC if !open { l.log.WithContext(ctx).With().Info("block res channel closed", log.String("hash", hash.ShortString())) continue } if res.Err != nil { l.log.WithContext(ctx).With().Error("cannot find block", log.String("hash", hash.String()), log.Err(res.Err)) return res.Err } if !res.IsLocal { if err := l.blockReceiveFunc(ctx, res.Data); err != nil { return err } } } return nil } // GetTxs fetches the txs provided as IDs and validates them, returns an error if one TX failed to be fetched. func (l *Logic) GetTxs(ctx context.Context, IDs []types.TransactionID) error { hashes := make([]types.Hash32, 0, len(IDs)) for _, atxID := range IDs { hashes = append(hashes, atxID.Hash32()) } results := l.fetcher.GetHashes(hashes, fetch.TXDB, false) for hash, resC := range results { res := <-resC if res.Err != nil { l.log.WithContext(ctx).With().Error("cannot find tx", log.String("hash", hash.String()), log.Err(res.Err)) continue } if !res.IsLocal { err := l.getTxResult(ctx, hash, res.Data) if err != nil { return err } } } return nil } // GetPoetProof gets poet proof from remote peer. func (l *Logic) GetPoetProof(ctx context.Context, id types.Hash32) error { l.log.WithContext(ctx).With().Debug("getting poet proof", log.String("hash", id.ShortString())) res := <-l.fetcher.GetHash(id, fetch.POETDB, false) if res.Err != nil { return res.Err } // if result is local we don't need to process it again if !res.IsLocal { return l.getPoetResult(ctx, res.Hash, res.Data) } return nil }
{ if err := l.fetchLayerBlocks(ctx, layerID, peerRes.data); err != nil { peerRes.err = ErrBlockNotFetched } }
applicationGroup.go
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** package v20190924preview import ( "context" "reflect" "github.com/pkg/errors" "github.com/pulumi/pulumi/sdk/v2/go/pulumi" ) // Represents a ApplicationGroup definition. type ApplicationGroup struct { pulumi.CustomResourceState // Resource Type of ApplicationGroup. ApplicationGroupType pulumi.StringOutput `pulumi:"applicationGroupType"` // Description of ApplicationGroup. Description pulumi.StringPtrOutput `pulumi:"description"` // Friendly name of ApplicationGroup. FriendlyName pulumi.StringPtrOutput `pulumi:"friendlyName"` // HostPool arm path of ApplicationGroup. HostPoolArmPath pulumi.StringOutput `pulumi:"hostPoolArmPath"` // The geo-location where the resource lives Location pulumi.StringOutput `pulumi:"location"` // The name of the resource Name pulumi.StringOutput `pulumi:"name"` // Resource tags. Tags pulumi.StringMapOutput `pulumi:"tags"` // The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type pulumi.StringOutput `pulumi:"type"` // Workspace arm path of ApplicationGroup. WorkspaceArmPath pulumi.StringOutput `pulumi:"workspaceArmPath"` } // NewApplicationGroup registers a new resource with the given unique name, arguments, and options. func NewApplicationGroup(ctx *pulumi.Context, name string, args *ApplicationGroupArgs, opts ...pulumi.ResourceOption) (*ApplicationGroup, error) { if args == nil { return nil, errors.New("missing one or more required arguments") } if args.ApplicationGroupType == nil { return nil, errors.New("invalid value for required argument 'ApplicationGroupType'") } if args.HostPoolArmPath == nil { return nil, errors.New("invalid value for required argument 'HostPoolArmPath'") } if args.ResourceGroupName == nil { return nil, errors.New("invalid value for required argument 'ResourceGroupName'") } aliases := pulumi.Aliases([]pulumi.Alias{ { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20190924preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20190123preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20190123preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20191210preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20191210preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20200921preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20200921preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20201019preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20201019preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20201102preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20201102preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20201110preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20201110preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20210114preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20210114preview:ApplicationGroup"), }, { Type: pulumi.String("azure-native:desktopvirtualization/v20210201preview:ApplicationGroup"), }, { Type: pulumi.String("azure-nextgen:desktopvirtualization/v20210201preview:ApplicationGroup"), }, }) opts = append(opts, aliases) var resource ApplicationGroup err := ctx.RegisterResource("azure-native:desktopvirtualization/v20190924preview:ApplicationGroup", name, args, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // GetApplicationGroup gets an existing ApplicationGroup resource's state with the given name, ID, and optional // state properties that are used to uniquely qualify the lookup (nil if not required). func
(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ApplicationGroupState, opts ...pulumi.ResourceOption) (*ApplicationGroup, error) { var resource ApplicationGroup err := ctx.ReadResource("azure-native:desktopvirtualization/v20190924preview:ApplicationGroup", name, id, state, &resource, opts...) if err != nil { return nil, err } return &resource, nil } // Input properties used for looking up and filtering ApplicationGroup resources. type applicationGroupState struct { // Resource Type of ApplicationGroup. ApplicationGroupType *string `pulumi:"applicationGroupType"` // Description of ApplicationGroup. Description *string `pulumi:"description"` // Friendly name of ApplicationGroup. FriendlyName *string `pulumi:"friendlyName"` // HostPool arm path of ApplicationGroup. HostPoolArmPath *string `pulumi:"hostPoolArmPath"` // The geo-location where the resource lives Location *string `pulumi:"location"` // The name of the resource Name *string `pulumi:"name"` // Resource tags. Tags map[string]string `pulumi:"tags"` // The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `pulumi:"type"` // Workspace arm path of ApplicationGroup. WorkspaceArmPath *string `pulumi:"workspaceArmPath"` } type ApplicationGroupState struct { // Resource Type of ApplicationGroup. ApplicationGroupType pulumi.StringPtrInput // Description of ApplicationGroup. Description pulumi.StringPtrInput // Friendly name of ApplicationGroup. FriendlyName pulumi.StringPtrInput // HostPool arm path of ApplicationGroup. HostPoolArmPath pulumi.StringPtrInput // The geo-location where the resource lives Location pulumi.StringPtrInput // The name of the resource Name pulumi.StringPtrInput // Resource tags. Tags pulumi.StringMapInput // The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type pulumi.StringPtrInput // Workspace arm path of ApplicationGroup. WorkspaceArmPath pulumi.StringPtrInput } func (ApplicationGroupState) ElementType() reflect.Type { return reflect.TypeOf((*applicationGroupState)(nil)).Elem() } type applicationGroupArgs struct { // The name of the application group ApplicationGroupName *string `pulumi:"applicationGroupName"` // Resource Type of ApplicationGroup. ApplicationGroupType string `pulumi:"applicationGroupType"` // Description of ApplicationGroup. Description *string `pulumi:"description"` // Friendly name of ApplicationGroup. FriendlyName *string `pulumi:"friendlyName"` // HostPool arm path of ApplicationGroup. HostPoolArmPath string `pulumi:"hostPoolArmPath"` // The geo-location where the resource lives Location *string `pulumi:"location"` // The name of the resource group. The name is case insensitive. ResourceGroupName string `pulumi:"resourceGroupName"` // Resource tags. Tags map[string]string `pulumi:"tags"` } // The set of arguments for constructing a ApplicationGroup resource. type ApplicationGroupArgs struct { // The name of the application group ApplicationGroupName pulumi.StringPtrInput // Resource Type of ApplicationGroup. ApplicationGroupType pulumi.StringInput // Description of ApplicationGroup. Description pulumi.StringPtrInput // Friendly name of ApplicationGroup. FriendlyName pulumi.StringPtrInput // HostPool arm path of ApplicationGroup. HostPoolArmPath pulumi.StringInput // The geo-location where the resource lives Location pulumi.StringPtrInput // The name of the resource group. The name is case insensitive. ResourceGroupName pulumi.StringInput // Resource tags. Tags pulumi.StringMapInput } func (ApplicationGroupArgs) ElementType() reflect.Type { return reflect.TypeOf((*applicationGroupArgs)(nil)).Elem() } type ApplicationGroupInput interface { pulumi.Input ToApplicationGroupOutput() ApplicationGroupOutput ToApplicationGroupOutputWithContext(ctx context.Context) ApplicationGroupOutput } func (*ApplicationGroup) ElementType() reflect.Type { return reflect.TypeOf((*ApplicationGroup)(nil)) } func (i *ApplicationGroup) ToApplicationGroupOutput() ApplicationGroupOutput { return i.ToApplicationGroupOutputWithContext(context.Background()) } func (i *ApplicationGroup) ToApplicationGroupOutputWithContext(ctx context.Context) ApplicationGroupOutput { return pulumi.ToOutputWithContext(ctx, i).(ApplicationGroupOutput) } type ApplicationGroupOutput struct { *pulumi.OutputState } func (ApplicationGroupOutput) ElementType() reflect.Type { return reflect.TypeOf((*ApplicationGroup)(nil)) } func (o ApplicationGroupOutput) ToApplicationGroupOutput() ApplicationGroupOutput { return o } func (o ApplicationGroupOutput) ToApplicationGroupOutputWithContext(ctx context.Context) ApplicationGroupOutput { return o } func init() { pulumi.RegisterOutputType(ApplicationGroupOutput{}) }
GetApplicationGroup
__init__.py
import logging import azure.functions as func from azure.iot.hub import IoTHubRegistryManager # Note that Azure Key Vault doesn't support underscores # and some other special chars; # we substitute with a hyphen for underscore CONNECTION_STRING = "{c2d connection string}" DEVICE_ID = "{device to invoke}" MESSAGE_COUNT = 1 def iothub_messaging_sample_run(msg): try: # IoTHubRegistryManager registry_manager = IoTHubRegistryManager(CONNECTION_STRING) for i in range(0, MESSAGE_COUNT): logging.info('Sending message: {0}'.format(i)) data = msg props = {} registry_manager.send_c2d_message( DEVICE_ID, data, properties=props) except Exception as ex: logging.info(f"Unexpected error {ex}") return def main(req: func.HttpRequest) -> func.HttpResponse: logging.info('Python HTTP trigger function processed a request.')
try: req_body = req.get_json() except ValueError: pass else: msg = req_body.get('msg') logging.info('***NOW EXECUTING C2D***') if msg: # TODO: this whitespace is to push some unicode chars off # the screen; can be removed later when Arduino code is # fixed iothub_messaging_sample_run(msg) return func.HttpResponse( f"Your text {msg} has been deployed to the" " device successfully!") else: return func.HttpResponse( "This HTTP triggered function executed successfully." " Pass a msg in the query string or in the request body" " for a personalized response.", status_code=200 )
msg = req.params.get('msg') if not msg:
get_channel_messages.rs
use super::GetChannelMessagesConfigured; use crate::{ client::Client, error::Error as HttpError, request::{Request, TryIntoRequest}, response::{marker::ListBody, ResponseFuture}, routing::Route, }; use twilight_model::{ channel::Message, id::{ marker::{ChannelMarker, MessageMarker}, Id, }, }; use twilight_validate::request::{ get_channel_messages_limit as validate_get_channel_messages_limit, ValidationError, }; struct GetChannelMessagesFields { limit: Option<u16>, } /// Get channel messages, by [`Id<ChannelMarker>`]. /// /// Only one of [`after`], [`around`], and [`before`] can be specified at a time. /// Once these are specified, the type returned is [`GetChannelMessagesConfigured`]. /// /// If [`limit`] is unspecified, the default set by Discord is 50. /// /// # Examples /// /// ```no_run /// use twilight_http::Client; /// use twilight_model::id::Id; /// /// # #[tokio::main] /// # async fn main() -> Result<(), Box<dyn std::error::Error>> { /// let client = Client::new("my token".to_owned()); /// let channel_id = Id::new(123); /// let message_id = Id::new(234); /// /// let messages = client /// .channel_messages(channel_id) /// .before(message_id) /// .limit(6u16)? /// .exec() /// .await?; /// /// # Ok(()) } /// ``` /// /// [`after`]: Self::after /// [`around`]: Self::around /// [`before`]: Self::before /// [`GetChannelMessagesConfigured`]: super::GetChannelMessagesConfigured /// [`limit`]: Self::limit #[must_use = "requests must be configured and executed"] pub struct GetChannelMessages<'a> { channel_id: Id<ChannelMarker>, fields: GetChannelMessagesFields, http: &'a Client, } impl<'a> GetChannelMessages<'a> { pub(crate) const fn new(http: &'a Client, channel_id: Id<ChannelMarker>) -> Self { Self { channel_id, fields: GetChannelMessagesFields { limit: None }, http, } } pub const fn
(self, message_id: Id<MessageMarker>) -> GetChannelMessagesConfigured<'a> { GetChannelMessagesConfigured::new( self.http, self.channel_id, Some(message_id), None, None, self.fields.limit, ) } pub const fn around(self, message_id: Id<MessageMarker>) -> GetChannelMessagesConfigured<'a> { GetChannelMessagesConfigured::new( self.http, self.channel_id, None, Some(message_id), None, self.fields.limit, ) } pub const fn before(self, message_id: Id<MessageMarker>) -> GetChannelMessagesConfigured<'a> { GetChannelMessagesConfigured::new( self.http, self.channel_id, None, None, Some(message_id), self.fields.limit, ) } /// Set the maximum number of messages to retrieve. /// /// The minimum is 1 and the maximum is 100. /// /// # Errors /// /// Returns an error of type [`GetChannelMessages`] error type if the amount /// is less than 1 or greater than 100. /// /// [`GetChannelMessages`]: twilight_validate::request::ValidationErrorType::GetChannelMessages pub const fn limit(mut self, limit: u16) -> Result<Self, ValidationError> { if let Err(source) = validate_get_channel_messages_limit(limit) { return Err(source); } self.fields.limit = Some(limit); Ok(self) } /// Execute the request, returning a future resolving to a [`Response`]. /// /// [`Response`]: crate::response::Response pub fn exec(self) -> ResponseFuture<ListBody<Message>> { let http = self.http; match self.try_into_request() { Ok(request) => http.request(request), Err(source) => ResponseFuture::error(source), } } } impl TryIntoRequest for GetChannelMessages<'_> { fn try_into_request(self) -> Result<Request, HttpError> { Ok(Request::from_route(&Route::GetMessages { after: None, around: None, before: None, channel_id: self.channel_id.get(), limit: self.fields.limit, })) } }
after
speaker.bundle.js
webpackJsonp([9,12],[function(e,t,n){n(1)},function(e,t,n){function o(){r=f.width(),i=f.height(),a=r/2,s=i/2,f.css({"margin-left":-a,"margin-top":-s})}window.jQuery=window.$=n(2),n(3),n(4),n(14),n(20),n(24),n(25);var r,i,a,s,f=$(".header-background img");$(window).on("load resize",o),$(window).on("load",function(){var e=$("#header-background"),t=$("#preloader");$("#header-background").flexslider({useCSS:!0,touch:!0,animation:"fade",start:function(){t.addClass("ready"),e.removeClass("header-background-hide")}})}),function(){function e(){t=n.offset().top}var t,n=$("#navigation-wrap");e(),$(window).resize(e).scroll(function(){var e=$(this).scrollTop();e>t?n.addClass("sticky"):n.removeClass("sticky")})}(),$("input, textarea").placeholder()},function(e,t,n){var o,r;/*! * jQuery JavaScript Library v3.1.1 * https://jquery.com/ * * Includes Sizzle.js * https://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * https://jquery.org/license * * Date: 2016-09-22T22:30Z */ !function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,i){"use strict";function a(e,t){t=t||ie;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function s(e){var t=!!e&&"length"in e&&e.length,n=ve.type(e);return"function"!==n&&!ve.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function f(e,t,n){return ve.isFunction(t)?ve.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?ve.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ve.grep(e,function(e){return le.call(t,e)>-1!==n}):Se.test(t)?ve.filter(t,e,n):(t=ve.filter(t,e),ve.grep(e,function(e){return le.call(t,e)>-1!==n&&1===e.nodeType}))}function c(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function l(e){var t={};return ve.each(e.match(qe)||[],function(e,n){t[n]=!0}),t}function u(e){return e}function d(e){throw e}function p(e,t,n){var o;try{e&&ve.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&ve.isFunction(o=e.then)?o.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function h(){ie.removeEventListener("DOMContentLoaded",h),n.removeEventListener("load",h),ve.ready()}function m(){this.expando=ve.expando+m.uid++}function b(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:He.test(e)?JSON.parse(e):e)}function g(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(We,"-$&").toLowerCase(),n=e.getAttribute(o),"string"==typeof n){try{n=b(n)}catch(e){}Re.set(e,t,n)}else n=void 0;return n}function v(e,t,n,o){var r,i=1,a=20,s=o?function(){return o.cur()}:function(){return ve.css(e,t,"")},f=s(),c=n&&n[3]||(ve.cssNumber[t]?"":"px"),l=(ve.cssNumber[t]||"px"!==c&&+f)&&Ue.exec(ve.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+f||1;do i=i||".5",l/=i,ve.style(e,t,l+c);while(i!==(i=s()/f)&&1!==i&&--a)}return n&&(l=+l||+f||0,r=n[1]?l+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=l,o.end=r)),r}function y(e){var t,n=e.ownerDocument,o=e.nodeName,r=Ye[o];return r?r:(t=n.body.appendChild(n.createElement(o)),r=ve.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),Ye[o]=r,r)}function x(e,t){for(var n,o,r=[],i=0,a=e.length;i<a;i++)o=e[i],o.style&&(n=o.style.display,t?("none"===n&&(r[i]=Me.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&Qe(o)&&(r[i]=y(o))):"none"!==n&&(r[i]="none",Me.set(o,"display",n)));for(i=0;i<a;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}function F(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&ve.nodeName(e,t)?ve.merge([e],n):n}function w(e,t){for(var n=0,o=e.length;n<o;n++)Me.set(e[n],"globalEval",!t||Me.get(t[n],"globalEval"))}function A(e,t,n,o,r){for(var i,a,s,f,c,l,u=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if(i=e[p],i||0===i)if("object"===ve.type(i))ve.merge(d,i.nodeType?[i]:i);else if(Ke.test(i)){for(a=a||u.appendChild(t.createElement("div")),s=(Xe.exec(i)||["",""])[1].toLowerCase(),f=Je[s]||Je._default,a.innerHTML=f[1]+ve.htmlPrefilter(i)+f[2],l=f[0];l--;)a=a.lastChild;ve.merge(d,a.childNodes),a=u.firstChild,a.textContent=""}else d.push(t.createTextNode(i));for(u.textContent="",p=0;i=d[p++];)if(o&&ve.inArray(i,o)>-1)r&&r.push(i);else if(c=ve.contains(i.ownerDocument,i),a=F(u.appendChild(i),"script"),c&&w(a),n)for(l=0;i=a[l++];)Ze.test(i.type||"")&&n.push(i);return u}function C(){return!0}function T(){return!1}function k(){try{return ie.activeElement}catch(e){}}function E(e,t,n,o,r,i){var a,s;if("object"==typeof t){"string"!=typeof n&&(o=o||n,n=void 0);for(s in t)E(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),r===!1)r=T;else if(!r)return e;return 1===i&&(a=r,r=function(e){return ve().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=ve.guid++)),e.each(function(){ve.event.add(this,t,r,o,n)})}function S(e,t){return ve.nodeName(e,"table")&&ve.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function D(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function N(e){var t=st.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function $(e,t){var n,o,r,i,a,s,f,c;if(1===t.nodeType){if(Me.hasData(e)&&(i=Me.access(e),a=Me.set(t,i),c=i.events)){delete a.handle,a.events={};for(r in c)for(n=0,o=c[r].length;n<o;n++)ve.event.add(t,r,c[r][n])}Re.hasData(e)&&(s=Re.access(e),f=ve.extend({},s),Re.set(t,f))}}function j(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ve.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function I(e,t,n,o){t=fe.apply([],t);var r,i,s,f,c,l,u=0,d=e.length,p=d-1,h=t[0],m=ve.isFunction(h);if(m||d>1&&"string"==typeof h&&!be.checkClone&&at.test(h))return e.each(function(r){var i=e.eq(r);m&&(t[0]=h.call(this,r,i.html())),I(i,t,n,o)});if(d&&(r=A(t,e[0].ownerDocument,!1,e,o),i=r.firstChild,1===r.childNodes.length&&(r=i),i||o)){for(s=ve.map(F(r,"script"),D),f=s.length;u<d;u++)c=r,u!==p&&(c=ve.clone(c,!0,!0),f&&ve.merge(s,F(c,"script"))),n.call(e[u],c,u);if(f)for(l=s[s.length-1].ownerDocument,ve.map(s,N),u=0;u<f;u++)c=s[u],Ze.test(c.type||"")&&!Me.access(c,"globalEval")&&ve.contains(l,c)&&(c.src?ve._evalUrl&&ve._evalUrl(c.src):a(c.textContent.replace(ft,""),l))}return e}function q(e,t,n){for(var o,r=t?ve.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||ve.cleanData(F(o)),o.parentNode&&(n&&ve.contains(o.ownerDocument,o)&&w(F(o,"script")),o.parentNode.removeChild(o));return e}function B(e,t,n){var o,r,i,a,s=e.style;return n=n||ut(e),n&&(a=n.getPropertyValue(t)||n[t],""!==a||ve.contains(e.ownerDocument,e)||(a=ve.style(e,t)),!be.pixelMarginRight()&&lt.test(a)&&ct.test(t)&&(o=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=o,s.minWidth=r,s.maxWidth=i)),void 0!==a?a+"":a}function O(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function L(e){if(e in bt)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=mt.length;n--;)if(e=mt[n]+t,e in bt)return e}function P(e,t,n){var o=Ue.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function M(e,t,n,o,r){var i,a=0;for(i=n===(o?"border":"content")?4:"width"===t?1:0;i<4;i+=2)"margin"===n&&(a+=ve.css(e,n+_e[i],!0,r)),o?("content"===n&&(a-=ve.css(e,"padding"+_e[i],!0,r)),"margin"!==n&&(a-=ve.css(e,"border"+_e[i]+"Width",!0,r))):(a+=ve.css(e,"padding"+_e[i],!0,r),"padding"!==n&&(a+=ve.css(e,"border"+_e[i]+"Width",!0,r)));return a}function R(e,t,n){var o,r=!0,i=ut(e),a="border-box"===ve.css(e,"boxSizing",!1,i);if(e.getClientRects().length&&(o=e.getBoundingClientRect()[t]),o<=0||null==o){if(o=B(e,t,i),(o<0||null==o)&&(o=e.style[t]),lt.test(o))return o;r=a&&(be.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+M(e,t,n||(a?"border":"content"),r,i)+"px"}function H(e,t,n,o,r){return new H.prototype.init(e,t,n,o,r)}function W(){vt&&(n.requestAnimationFrame(W),ve.fx.tick())}function z(){return n.setTimeout(function(){gt=void 0}),gt=ve.now()}function U(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)n=_e[o],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function _(e,t,n){for(var o,r=(Y.tweeners[t]||[]).concat(Y.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function Q(e,t,n){var o,r,i,a,s,f,c,l,u="width"in t||"height"in t,d=this,p={},h=e.style,m=e.nodeType&&Qe(e),b=Me.get(e,"fxshow");n.queue||(a=ve._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,ve.queue(e,"fx").length||a.empty.fire()})}));for(o in t)if(r=t[o],yt.test(r)){if(delete t[o],i=i||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!b||void 0===b[o])continue;m=!0}p[o]=b&&b[o]||ve.style(e,o)}if(f=!ve.isEmptyObject(t),f||!ve.isEmptyObject(p)){u&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=b&&b.display,null==c&&(c=Me.get(e,"display")),l=ve.css(e,"display"),"none"===l&&(c?l=c:(x([e],!0),c=e.style.display||c,l=ve.css(e,"display"),x([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===ve.css(e,"float")&&(f||(d.done(function(){h.display=c}),null==c&&(l=h.display,c="none"===l?"":l)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),f=!1;for(o in p)f||(b?"hidden"in b&&(m=b.hidden):b=Me.access(e,"fxshow",{display:c}),i&&(b.hidden=!m),m&&x([e],!0),d.done(function(){m||x([e]),Me.remove(e,"fxshow");for(o in p)ve.style(e,o,p[o])})),f=_(m?b[o]:0,o,d),o in b||(b[o]=f.start,m&&(f.end=f.start,f.start=0))}}function G(e,t){var n,o,r,i,a;for(n in e)if(o=ve.camelCase(n),r=t[o],i=e[n],ve.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),a=ve.cssHooks[o],a&&"expand"in a){i=a.expand(i),delete e[o];for(n in i)n in e||(e[n]=i[n],t[n]=r)}else t[o]=r}function Y(e,t,n){var o,r,i=0,a=Y.prefilters.length,s=ve.Deferred().always(function(){delete f.elem}),f=function(){if(r)return!1;for(var t=gt||z(),n=Math.max(0,c.startTime+c.duration-t),o=n/c.duration||0,i=1-o,a=0,f=c.tweens.length;a<f;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),i<1&&f?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:ve.extend({},t),opts:ve.extend(!0,{specialEasing:{},easing:ve.easing._default},n),originalProperties:t,originalOptions:n,startTime:gt||z(),duration:n.duration,tweens:[],createTween:function(t,n){var o=ve.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(o),o},stop:function(t){var n=0,o=t?c.tweens.length:0;if(r)return this;for(r=!0;n<o;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),l=c.props;for(G(l,c.opts.specialEasing);i<a;i++)if(o=Y.prefilters[i].call(c,e,l,c.opts))return ve.isFunction(o.stop)&&(ve._queueHooks(c.elem,c.opts.queue).stop=ve.proxy(o.stop,o)),o;return ve.map(l,_,c),ve.isFunction(c.opts.start)&&c.opts.start.call(e,c),ve.fx.timer(ve.extend(f,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function V(e){var t=e.match(qe)||[];return t.join(" ")}function X(e){return e.getAttribute&&e.getAttribute("class")||""}function Z(e,t,n,o){var r;if(ve.isArray(t))ve.each(t,function(t,r){n||Nt.test(e)?o(e,r):Z(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)});else if(n||"object"!==ve.type(t))o(e,t);else for(r in t)Z(e+"["+r+"]",t[r],n,o)}function J(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(qe)||[];if(ve.isFunction(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function K(e,t,n,o){function r(s){var f;return i[s]=!0,ve.each(e[s]||[],function(e,s){var c=s(t,n,o);return"string"!=typeof c||a||i[c]?a?!(f=c):void 0:(t.dataTypes.unshift(c),r(c),!1)}),f}var i={},a=e===Wt;return r(t.dataTypes[0])||!i["*"]&&r("*")}function ee(e,t){var n,o,r=ve.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&ve.extend(!0,e,o),e}function te(e,t,n){for(var o,r,i,a,s=e.contents,f=e.dataTypes;"*"===f[0];)f.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){f.unshift(r);break}if(f[0]in n)i=f[0];else{for(r in n){if(!f[0]||e.converters[r+" "+f[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==f[0]&&f.unshift(i),n[i]}function ne(e,t,n,o){var r,i,a,s,f,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!f&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),f=i,i=l.shift())if("*"===i)i=f;else if("*"!==f&&f!==i){if(a=c[f+" "+i]||c["* "+i],!a)for(r in c)if(s=r.split(" "),s[1]===i&&(a=c[f+" "+s[0]]||c["* "+s[0]])){a===!0?a=c[r]:c[r]!==!0&&(i=s[0],l.unshift(s[1]));break}if(a!==!0)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+f+" to "+i}}}return{state:"success",data:t}}function oe(e){return ve.isWindow(e)?e:9===e.nodeType&&e.defaultView}var re=[],ie=n.document,ae=Object.getPrototypeOf,se=re.slice,fe=re.concat,ce=re.push,le=re.indexOf,ue={},de=ue.toString,pe=ue.hasOwnProperty,he=pe.toString,me=he.call(Object),be={},ge="3.1.1",ve=function(e,t){return new ve.fn.init(e,t)},ye=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,xe=/^-ms-/,Fe=/-([a-z])/g,we=function(e,t){return t.toUpperCase()};ve.fn=ve.prototype={jquery:ge,constructor:ve,length:0,toArray:function(){return se.call(this)},get:function(e){return null==e?se.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ve.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ve.each(this,e)},map:function(e){return this.pushStack(ve.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(se.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ce,sort:re.sort,splice:re.splice},ve.extend=ve.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,f=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||ve.isFunction(a)||(a={}),s===f&&(a=this,s--);s<f;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],o=e[t],a!==o&&(c&&o&&(ve.isPlainObject(o)||(r=ve.isArray(o)))?(r?(r=!1,i=n&&ve.isArray(n)?n:[]):i=n&&ve.isPlainObject(n)?n:{},a[t]=ve.extend(c,i,o)):void 0!==o&&(a[t]=o));return a},ve.extend({expando:"jQuery"+(ge+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ve.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=ve.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==de.call(e))&&(!(t=ae(e))||(n=pe.call(t,"constructor")&&t.constructor,"function"==typeof n&&he.call(n)===me))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[de.call(e)]||"object":typeof e},globalEval:function(e){a(e)},camelCase:function(e){return e.replace(xe,"ms-").replace(Fe,we)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,o=0;if(s(e))for(n=e.length;o<n&&t.call(e[o],o,e[o])!==!1;o++);else for(o in e)if(t.call(e[o],o,e[o])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(ye,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(s(Object(e))?ve.merge(n,"string"==typeof e?[e]:e):ce.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:le.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o,r=[],i=0,a=e.length,s=!n;i<a;i++)o=!t(e[i],i),o!==s&&r.push(e[i]);return r},map:function(e,t,n){var o,r,i=0,a=[];if(s(e))for(o=e.length;i<o;i++)r=t(e[i],i,n),null!=r&&a.push(r);else for(i in e)r=t(e[i],i,n),null!=r&&a.push(r);return fe.apply([],a)},guid:1,proxy:function(e,t){var n,o,r;if("string"==typeof t&&(n=e[t],t=e,e=n),ve.isFunction(e))return o=se.call(arguments,2),r=function(){return e.apply(t||this,o.concat(se.call(arguments)))},r.guid=e.guid=e.guid||ve.guid++,r},now:Date.now,support:be}),"function"==typeof Symbol&&(ve.fn[Symbol.iterator]=re[Symbol.iterator]),ve.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var Ae=/*! * Sizzle CSS Selector Engine v2.3.3 * https://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-08-08 */ function(e){function t(e,t,n,o){var r,i,a,s,f,c,l,d=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!o&&((t?t.ownerDocument||t:H)!==I&&j(t),t=t||I,B)){if(11!==h&&(f=ge.exec(e)))if(r=f[1]){if(9===h){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&M(t,a)&&a.id===r)return n.push(a),n}else{if(f[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=f[3])&&w.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(w.qsa&&!Q[e+" "]&&(!O||!O.test(e))){if(1!==h)d=t,l=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(Fe,we):t.setAttribute("id",s=R),c=k(e),i=c.length;i--;)c[i]="#"+s+" "+p(c[i]);l=c.join(","),d=ve.test(e)&&u(t.parentNode)||t}if(l)try{return J.apply(n,d.querySelectorAll(l)),n}catch(e){}finally{s===R&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,o)}function n(){function e(n,o){return t.push(n+" ")>A.cacheLength&&delete e[t.shift()],e[n+" "]=o}var t=[];return e}function o(e){return e[R]=!0,e}function r(e){var t=I.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),o=n.length;o--;)A.attrHandle[n[o]]=t}function a(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function f(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ce(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function l(e){return o(function(t){return t=+t,o(function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))})})}function u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function h(e,t,n){var o=t.dir,r=t.next,i=r||o,a=n&&"parentNode"===i,s=z++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,f){var c,l,u,d=[W,s];if(f){for(;t=t[o];)if((1===t.nodeType||a)&&e(t,n,f))return!0}else for(;t=t[o];)if(1===t.nodeType||a)if(u=t[R]||(t[R]={}),l=u[t.uniqueID]||(u[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((c=l[i])&&c[0]===W&&c[1]===s)return d[2]=c[2];if(l[i]=d,d[2]=e(t,n,f))return!0}return!1}}function m(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function b(e,n,o){for(var r=0,i=n.length;r<i;r++)t(e,n[r],o);return o}function g(e,t,n,o,r){for(var i,a=[],s=0,f=e.length,c=null!=t;s<f;s++)(i=e[s])&&(n&&!n(i,o,r)||(a.push(i),c&&t.push(s)));return a}function v(e,t,n,r,i,a){return r&&!r[R]&&(r=v(r)),i&&!i[R]&&(i=v(i,a)),o(function(o,a,s,f){var c,l,u,d=[],p=[],h=a.length,m=o||b(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:g(m,d,e,s,f),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,f),r)for(c=g(y,p),r(c,[],s,f),l=c.length;l--;)(u=c[l])&&(y[p[l]]=!(v[p[l]]=u));if(o){if(i||e){if(i){for(c=[],l=y.length;l--;)(u=y[l])&&c.push(v[l]=u);i(null,y=[],c,f)}for(l=y.length;l--;)(u=y[l])&&(c=i?ee(o,u):d[l])>-1&&(o[c]=!(a[c]=u))}}else y=g(y===a?y.splice(h,y.length):y),i?i(null,a,y,f):J.apply(a,y)})}function y(e){for(var t,n,o,r=e.length,i=A.relative[e[0].type],a=i||A.relative[" "],s=i?1:0,f=h(function(e){return e===t},a,!0),c=h(function(e){return ee(t,e)>-1},a,!0),l=[function(e,n,o){var r=!i&&(o||n!==D)||((t=n).nodeType?f(e,n,o):c(e,n,o));return t=null,r}];s<r;s++)if(n=A.relative[e[s].type])l=[h(m(l),n)];else{if(n=A.filter[e[s].type].apply(null,e[s].matches),n[R]){for(o=++s;o<r&&!A.relative[e[o].type];o++);return v(s>1&&m(l),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<o&&y(e.slice(s,o)),o<r&&y(e=e.slice(o)),o<r&&p(e))}l.push(n)}return m(l)}function x(e,n){var r=n.length>0,i=e.length>0,a=function(o,a,s,f,c){var l,u,d,p=0,h="0",m=o&&[],b=[],v=D,y=o||i&&A.find.TAG("*",c),x=W+=null==v?1:Math.random()||.1,F=y.length;for(c&&(D=a===I||a||c);h!==F&&null!=(l=y[h]);h++){if(i&&l){for(u=0,a||l.ownerDocument===I||(j(l),s=!B);d=e[u++];)if(d(l,a||I,s)){f.push(l);break}c&&(W=x)}r&&((l=!d&&l)&&p--,o&&m.push(l))}if(p+=h,r&&h!==p){for(u=0;d=n[u++];)d(m,b,a,s);if(o){if(p>0)for(;h--;)m[h]||b[h]||(b[h]=X.call(f));b=g(b)}J.apply(f,b),c&&!o&&b.length>0&&p+n.length>1&&t.uniqueSort(f)}return c&&(W=x,D=v),m};return r?o(a):a}var F,w,A,C,T,k,E,S,D,N,$,j,I,q,B,O,L,P,M,R="sizzle"+1*new Date,H=e.document,W=0,z=0,U=n(),_=n(),Q=n(),G=function(e,t){return e===t&&($=!0),0},Y={}.hasOwnProperty,V=[],X=V.pop,Z=V.push,J=V.push,K=V.slice,ee=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",oe="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",re="\\["+ne+"*("+oe+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+oe+"))|)"+ne+"*\\]",ie=":("+oe+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+re+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),fe=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),le=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ue=new RegExp(ie),de=new RegExp("^"+oe+"$"),pe={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+re),PSEUDO:new RegExp("^"+ie),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,be=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var o="0x"+t-65536;return o!==o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},Fe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,we=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Ae=function(){j()},Ce=h(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{J.apply(V=K.call(H.childNodes),H.childNodes),V[H.childNodes.length].nodeType}catch(e){J={apply:V.length?function(e,t){Z.apply(e,K.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}w=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},j=t.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:H;return o!==I&&9===o.nodeType&&o.documentElement?(I=o,q=I.documentElement,B=!T(I),H!==I&&(n=I.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Ae,!1):n.attachEvent&&n.attachEvent("onunload",Ae)),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(I.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=be.test(I.getElementsByClassName),w.getById=r(function(e){return q.appendChild(e).id=R,!I.getElementsByName||!I.getElementsByName(R).length}),w.getById?(A.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){return e.getAttribute("id")===t}},A.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&B){var n=t.getElementById(e);return n?[n]:[]}}):(A.filter.ID=function(e){var t=e.replace(ye,xe);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},A.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&B){var n,o,r,i=t.getElementById(e);if(i){if(n=i.getAttributeNode("id"),n&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if(n=i.getAttributeNode("id"),n&&n.value===e)return[i]}return[]}}),A.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},A.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&B)return t.getElementsByClassName(e)},L=[],O=[],(w.qsa=be.test(I.querySelectorAll))&&(r(function(e){q.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+R+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||O.push(".#.+[+~]")}),r(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=I.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),q.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=be.test(P=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&r(function(e){w.disconnectedMatch=P.call(e,"*"),P.call(e,"[s!='']:x"),L.push("!=",ie)}),O=O.length&&new RegExp(O.join("|")),L=L.length&&new RegExp(L.join("|")),t=be.test(q.compareDocumentPosition),M=t||be.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return $=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===I||e.ownerDocument===H&&M(H,e)?-1:t===I||t.ownerDocument===H&&M(H,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return $=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,s=[e],f=[t];if(!r||!i)return e===I?-1:t===I?1:r?-1:i?1:N?ee(N,e)-ee(N,t):0;if(r===i)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)f.unshift(n);for(;s[o]===f[o];)o++;return o?a(s[o],f[o]):s[o]===H?-1:f[o]===H?1:0},I):I},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==I&&j(e),n=n.replace(le,"='$1']"),w.matchesSelector&&B&&!Q[n+" "]&&(!L||!L.test(n))&&(!O||!O.test(n)))try{var o=P.call(e,n);if(o||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){}return t(n,I,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==I&&j(e),M(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==I&&j(e);var n=A.attrHandle[t.toLowerCase()],o=n&&Y.call(A.attrHandle,t.toLowerCase())?n(e,t,!B):void 0;return void 0!==o?o:w.attributes||!B?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},t.escape=function(e){return(e+"").replace(Fe,we)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],o=0,r=0;if($=!w.detectDuplicates,N=!w.sortStable&&e.slice(0),e.sort(G),$){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return N=null,e},C=t.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=C(t);return n},A=t.selectors={cacheLength:50,createPseudo:o,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,xe),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&U(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(r){var i=t.attr(r,e);return null==i?"!="===n:!n||(i+="","="===n?i===o:"!="===n?i!==o:"^="===n?o&&0===i.indexOf(o):"*="===n?o&&i.indexOf(o)>-1:"$="===n?o&&i.slice(-o.length)===o:"~="===n?(" "+i.replace(ae," ")+" ").indexOf(o)>-1:"|="===n&&(i===o||i.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,f){var c,l,u,d,p,h,m=i!==a?"nextSibling":"previousSibling",b=t.parentNode,g=s&&t.nodeName.toLowerCase(),v=!f&&!s,y=!1;if(b){if(i){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?b.firstChild:b.lastChild],a&&v){for(d=b,u=d[R]||(d[R]={}),l=u[d.uniqueID]||(u[d.uniqueID]={}),c=l[e]||[],p=c[0]===W&&c[1],y=p&&c[2],d=p&&b.childNodes[p];d=++p&&d&&d[m]||(y=p=0)||h.pop();)if(1===d.nodeType&&++y&&d===t){l[e]=[W,p,y];break}}else if(v&&(d=t,u=d[R]||(d[R]={}),l=u[d.uniqueID]||(u[d.uniqueID]={}),c=l[e]||[],p=c[0]===W&&c[1],y=p),y===!1)for(;(d=++p&&d&&d[m]||(y=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++y||(v&&(u=d[R]||(d[R]={}),l=u[d.uniqueID]||(u[d.uniqueID]={}),l[e]=[W,y]),d!==t)););return y-=r,y===o||y%o===0&&y/o>=0}}},PSEUDO:function(e,n){var r,i=A.pseudos[e]||A.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[R]?i(n):i.length>1?(r=[e,e,"",n],A.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,t){for(var o,r=i(e,n),a=r.length;a--;)o=ee(e,r[a]),e[o]=!(t[o]=r[a])}):function(e){return i(e,0,r)}):i}},pseudos:{not:o(function(e){var t=[],n=[],r=E(e.replace(se,"$1"));return r[R]?o(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:o(function(e){return function(n){return t(e,n).length>0}}),contains:o(function(e){return e=e.replace(ye,xe),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:o(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,xe).toLowerCase(),function(t){var n;do if(n=B?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===I.activeElement&&(!I.hasFocus||I.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!A.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var o=n<0?n+t:n;--o>=0;)e.push(o);return e}),gt:l(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}},A.pseudos.nth=A.pseudos.eq;for(F in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[F]=s(F);for(F in{submit:!0,reset:!0})A.pseudos[F]=f(F);return d.prototype=A.filters=A.pseudos,A.setFilters=new d,k=t.tokenize=function(e,n){var o,r,i,a,s,f,c,l=_[e+" "];if(l)return n?0:l.slice(0);for(s=e,f=[],c=A.preFilter;s;){o&&!(r=fe.exec(s))||(r&&(s=s.slice(r[0].length)||s),f.push(i=[])),o=!1,(r=ce.exec(s))&&(o=r.shift(),i.push({value:o,type:r[0].replace(se," ")}),s=s.slice(o.length));for(a in A.filter)!(r=pe[a].exec(s))||c[a]&&!(r=c[a](r))||(o=r.shift(),i.push({value:o,type:a,matches:r}),s=s.slice(o.length));if(!o)break}return n?s.length:s?t.error(e):_(e,f).slice(0)},E=t.compile=function(e,t){var n,o=[],r=[],i=Q[e+" "];if(!i){for(t||(t=k(e)),n=t.length;n--;)i=y(t[n]),i[R]?o.push(i):r.push(i);i=Q(e,x(r,o)),i.selector=e}return i},S=t.select=function(e,t,n,o){var r,i,a,s,f,c="function"==typeof e&&e,l=!o&&k(e=c.selector||e);if(n=n||[],1===l.length){if(i=l[0]=l[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&9===t.nodeType&&B&&A.relative[i[1].type]){if(t=(A.find.ID(a.matches[0].replace(ye,xe),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=pe.needsContext.test(e)?0:i.length;r--&&(a=i[r],!A.relative[s=a.type]);)if((f=A.find[s])&&(o=f(a.matches[0].replace(ye,xe),ve.test(i[0].type)&&u(t.parentNode)||t))){if(i.splice(r,1),e=o.length&&p(i),!e)return J.apply(n,o),n;break}}return(c||E(e,l))(o,t,!B,n,!t||ve.test(e)&&u(t.parentNode)||t),n},w.sortStable=R.split("").sort(G).join("")===R,w.detectDuplicates=!!$,j(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(I.createElement("fieldset"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||i(te,function(e,t,n){var o;if(!n)return e[t]===!0?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),t}(n);ve.find=Ae,ve.expr=Ae.selectors,ve.expr[":"]=ve.expr.pseudos,ve.uniqueSort=ve.unique=Ae.uniqueSort,ve.text=Ae.getText,ve.isXMLDoc=Ae.isXML,ve.contains=Ae.contains,ve.escapeSelector=Ae.escape;var Ce=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&ve(e).is(n))break;o.push(e)}return o},Te=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},ke=ve.expr.match.needsContext,Ee=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Se=/^.[^:#\[\.,]*$/;ve.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?ve.find.matchesSelector(o,e)?[o]:[]:ve.find.matches(e,ve.grep(t,function(e){return 1===e.nodeType}))},ve.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(ve(e).filter(function(){for(t=0;t<o;t++)if(ve.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)ve.find(e,r[t],n);return o>1?ve.uniqueSort(n):n},filter:function(e){return this.pushStack(f(this,e||[],!1))},not:function(e){return this.pushStack(f(this,e||[],!0))},is:function(e){return!!f(this,"string"==typeof e&&ke.test(e)?ve(e):e||[],!1).length}});var De,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,$e=ve.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||De,"string"==typeof e){if(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ne.exec(e),!o||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof ve?t[0]:t,ve.merge(this,ve.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:ie,!0)),Ee.test(o[1])&&ve.isPlainObject(t))for(o in t)ve.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return r=ie.getElementById(o[2]),r&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ve.isFunction(e)?void 0!==n.ready?n.ready(e):e(ve):ve.makeArray(e,this)};$e.prototype=ve.fn,De=ve(ie);var je=/^(?:parents|prev(?:Until|All))/,Ie={children:!0,contents:!0,next:!0,prev:!0};ve.fn.extend({has:function(e){var t=ve(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ve.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!=typeof e&&ve(e);if(!ke.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ve.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?ve.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?le.call(ve(e),this[0]):le.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ve.uniqueSort(ve.merge(this.get(),ve(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ve.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ce(e,"parentNode")},parentsUntil:function(e,t,n){return Ce(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return Ce(e,"nextSibling")},prevAll:function(e){return Ce(e,"previousSibling")},nextUntil:function(e,t,n){return Ce(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ce(e,"previousSibling",n)},siblings:function(e){return Te((e.parentNode||{}).firstChild,e)},children:function(e){return Te(e.firstChild)},contents:function(e){return e.contentDocument||ve.merge([],e.childNodes)}},function(e,t){ve.fn[e]=function(n,o){var r=ve.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=ve.filter(o,r)),this.length>1&&(Ie[e]||ve.uniqueSort(r),je.test(e)&&r.reverse()),this.pushStack(r)}});var qe=/[^\x20\t\r\n\f]+/g;ve.Callbacks=function(e){e="string"==typeof e?l(e):ve.extend({},e);var t,n,o,r,i=[],a=[],s=-1,f=function(){for(r=e.once,o=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)i[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){ve.each(n,function(n,o){ve.isFunction(o)?e.unique&&c.has(o)||i.push(o):o&&o.length&&"string"!==ve.type(o)&&t(o)})}(arguments),n&&!t&&f()),this},remove:function(){return ve.each(arguments,function(e,t){for(var n;(n=ve.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--}),this},has:function(e){return e?ve.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],a.push(n),t||f()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},ve.extend({Deferred:function(e){var t=[["notify","progress",ve.Callbacks("memory"),ve.Callbacks("memory"),2],["resolve","done",ve.Callbacks("once memory"),ve.Callbacks("once memory"),0,"resolved"],["reject","fail",ve.Callbacks("once memory"),ve.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return ve.Deferred(function(n){ve.each(t,function(t,o){var r=ve.isFunction(e[o[4]])&&e[o[4]];i[o[1]](function(){var e=r&&r.apply(this,arguments);e&&ve.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,o,r){function i(e,t,o,r){return function(){var s=this,f=arguments,c=function(){var n,c;if(!(e<a)){if(n=o.apply(s,f),n===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,ve.isFunction(c)?r?c.call(n,i(a,t,u,r),i(a,t,d,r)):(a++,c.call(n,i(a,t,u,r),i(a,t,d,r),i(a,t,u,t.notifyWith))):(o!==u&&(s=void 0,f=[n]),(r||t.resolveWith)(s,f))}},l=r?c:function(){try{c()}catch(n){ve.Deferred.exceptionHook&&ve.Deferred.exceptionHook(n,l.stackTrace),e+1>=a&&(o!==d&&(s=void 0,f=[n]),t.rejectWith(s,f))}};e?l():(ve.Deferred.getStackHook&&(l.stackTrace=ve.Deferred.getStackHook()),n.setTimeout(l))}}var a=0;return ve.Deferred(function(n){t[0][3].add(i(0,n,ve.isFunction(r)?r:u,n.notifyWith)),t[1][3].add(i(0,n,ve.isFunction(e)?e:u)),t[2][3].add(i(0,n,ve.isFunction(o)?o:d))}).promise()},promise:function(e){return null!=e?ve.extend(e,r):r}},i={};return ve.each(t,function(e,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add(function(){o=s},t[3-e][2].disable,t[0][2].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=se.call(arguments),i=ve.Deferred(),a=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?se.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(p(e,i.done(a(n)).resolve,i.reject),"pending"===i.state()||ve.isFunction(r[n]&&r[n].then)))return i.then();for(;n--;)p(r[n],a(n),i.reject);return i.promise()}});var Be=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ve.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&Be.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ve.readyException=function(e){n.setTimeout(function(){throw e})};var Oe=ve.Deferred();ve.fn.ready=function(e){return Oe.then(e).catch(function(e){ve.readyException(e)}),this},ve.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ve.readyWait++:ve.ready(!0)},ready:function(e){(e===!0?--ve.readyWait:ve.isReady)||(ve.isReady=!0,e!==!0&&--ve.readyWait>0||Oe.resolveWith(ie,[ve]))}}),ve.ready.then=Oe.then,"complete"===ie.readyState||"loading"!==ie.readyState&&!ie.documentElement.doScroll?n.setTimeout(ve.ready):(ie.addEventListener("DOMContentLoaded",h),n.addEventListener("load",h));var Le=function(e,t,n,o,r,i,a){var s=0,f=e.length,c=null==n;if("object"===ve.type(n)){r=!0;for(s in n)Le(e,t,s,n[s],!0,i,a)}else if(void 0!==o&&(r=!0,ve.isFunction(o)||(a=!0),c&&(a?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(ve(e),n)})),t))for(;s<f;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):f?t(e[0],n):i},Pe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};m.uid=1,m.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Pe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[ve.camelCase(t)]=n;else for(o in t)r[ve.camelCase(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ve.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){ve.isArray(t)?t=t.map(ve.camelCase):(t=ve.camelCase(t),t=t in o?[t]:t.match(qe)||[]),n=t.length;for(;n--;)delete o[t[n]]}(void 0===t||ve.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ve.isEmptyObject(t)}};var Me=new m,Re=new m,He=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,We=/[A-Z]/g;ve.extend({hasData:function(e){return Re.hasData(e)||Me.hasData(e)},data:function(e,t,n){return Re.access(e,t,n)},removeData:function(e,t){Re.remove(e,t)},_data:function(e,t,n){return Me.access(e,t,n)},_removeData:function(e,t){Me.remove(e,t)}}),ve.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=Re.get(i),1===i.nodeType&&!Me.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(o=a[n].name,0===o.indexOf("data-")&&(o=ve.camelCase(o.slice(5)),g(i,o,r[o])));Me.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Re.set(this,e)}):Le(this,function(t){var n;if(i&&void 0===t){if(n=Re.get(i,e),void 0!==n)return n;if(n=g(i,e),void 0!==n)return n}else this.each(function(){Re.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Re.remove(this,e)})}}),ve.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Me.get(e,t),n&&(!o||ve.isArray(n)?o=Me.access(e,t,ve.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=ve.queue(e,t),o=n.length,r=n.shift(),i=ve._queueHooks(e,t),a=function(){ve.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,a,i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Me.get(e,n)||Me.access(e,n,{empty:ve.Callbacks("once memory").add(function(){Me.remove(e,[t+"queue",n])})})}}),ve.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ve.queue(this[0],e):void 0===t?this:this.each(function(){var n=ve.queue(this,e,t);ve._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ve.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ve.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=ve.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=Me.get(i[a],e+"queueHooks"),n&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var ze=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ue=new RegExp("^(?:([+-])=|)("+ze+")([a-z%]*)$","i"),_e=["Top","Right","Bottom","Left"],Qe=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ve.contains(e.ownerDocument,e)&&"none"===ve.css(e,"display")},Ge=function(e,t,n,o){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];r=n.apply(e,o||[]);for(i in t)e.style[i]=a[i];return r},Ye={};ve.fn.extend({show:function(){return x(this,!0)},hide:function(){return x(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Qe(this)?ve(this).show():ve(this).hide()})}});var Ve=/^(?:checkbox|radio)$/i,Xe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ze=/^$|\/(?:java|ecma)script/i,Je={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Je.optgroup=Je.option,Je.tbody=Je.tfoot=Je.colgroup=Je.caption=Je.thead,Je.th=Je.td; var Ke=/<|&#?\w+;/;!function(){var e=ie.createDocumentFragment(),t=e.appendChild(ie.createElement("div")),n=ie.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),be.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",be.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var et=ie.documentElement,tt=/^key/,nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ot=/^([^.]*)(?:\.(.+)|)/;ve.event={global:{},add:function(e,t,n,o,r){var i,a,s,f,c,l,u,d,p,h,m,b=Me.get(e);if(b)for(n.handler&&(i=n,n=i.handler,r=i.selector),r&&ve.find.matchesSelector(et,r),n.guid||(n.guid=ve.guid++),(f=b.events)||(f=b.events={}),(a=b.handle)||(a=b.handle=function(t){return"undefined"!=typeof ve&&ve.event.triggered!==t.type?ve.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(qe)||[""],c=t.length;c--;)s=ot.exec(t[c])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p&&(u=ve.event.special[p]||{},p=(r?u.delegateType:u.bindType)||p,u=ve.event.special[p]||{},l=ve.extend({type:p,origType:m,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&ve.expr.match.needsContext.test(r),namespace:h.join(".")},i),(d=f[p])||(d=f[p]=[],d.delegateCount=0,u.setup&&u.setup.call(e,o,h,a)!==!1||e.addEventListener&&e.addEventListener(p,a)),u.add&&(u.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,l):d.push(l),ve.event.global[p]=!0)},remove:function(e,t,n,o,r){var i,a,s,f,c,l,u,d,p,h,m,b=Me.hasData(e)&&Me.get(e);if(b&&(f=b.events)){for(t=(t||"").match(qe)||[""],c=t.length;c--;)if(s=ot.exec(t[c])||[],p=m=s[1],h=(s[2]||"").split(".").sort(),p){for(u=ve.event.special[p]||{},p=(o?u.delegateType:u.bindType)||p,d=f[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=d.length;i--;)l=d[i],!r&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||o&&o!==l.selector&&("**"!==o||!l.selector)||(d.splice(i,1),l.selector&&d.delegateCount--,u.remove&&u.remove.call(e,l));a&&!d.length&&(u.teardown&&u.teardown.call(e,h,b.handle)!==!1||ve.removeEvent(e,p,b.handle),delete f[p])}else for(p in f)ve.event.remove(e,p+t[c],n,o,!0);ve.isEmptyObject(f)&&Me.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=ve.event.fix(e),f=new Array(arguments.length),c=(Me.get(this,"events")||{})[s.type]||[],l=ve.event.special[s.type]||{};for(f[0]=s,t=1;t<arguments.length;t++)f[t]=arguments[t];if(s.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,s)!==!1){for(a=ve.event.handlers.call(this,s,c),t=0;(r=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(i.namespace)||(s.handleObj=i,s.data=i.data,o=((ve.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,f),void 0!==o&&(s.result=o)===!1&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,o,r,i,a,s=[],f=t.delegateCount,c=e.target;if(f&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(i=[],a={},n=0;n<f;n++)o=t[n],r=o.selector+" ",void 0===a[r]&&(a[r]=o.needsContext?ve(r,this).index(c)>-1:ve.find(r,this,null,[c]).length),a[r]&&i.push(o);i.length&&s.push({elem:c,handlers:i})}return c=this,f<t.length&&s.push({elem:c,handlers:t.slice(f)}),s},addProp:function(e,t){Object.defineProperty(ve.Event.prototype,e,{enumerable:!0,configurable:!0,get:ve.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[ve.expando]?e:new ve.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==k()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===k()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ve.nodeName(this,"input"))return this.click(),!1},_default:function(e){return ve.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ve.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ve.Event=function(e,t){return this instanceof ve.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?C:T,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ve.extend(this,t),this.timeStamp=e&&e.timeStamp||ve.now(),void(this[ve.expando]=!0)):new ve.Event(e,t)},ve.Event.prototype={constructor:ve.Event,isDefaultPrevented:T,isPropagationStopped:T,isImmediatePropagationStopped:T,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=C,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=C,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=C,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ve.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&tt.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&nt.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},ve.event.addProp),ve.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ve.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=this,r=e.relatedTarget,i=e.handleObj;return r&&(r===o||ve.contains(o,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),ve.fn.extend({on:function(e,t,n,o){return E(this,e,t,n,o)},one:function(e,t,n,o){return E(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,ve(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=T),this.each(function(){ve.event.remove(this,e,n,t)})}});var rt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,it=/<script|<style|<link/i,at=/checked\s*(?:[^=]|=\s*.checked.)/i,st=/^true\/(.*)/,ft=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ve.extend({htmlPrefilter:function(e){return e.replace(rt,"<$1></$2>")},clone:function(e,t,n){var o,r,i,a,s=e.cloneNode(!0),f=ve.contains(e.ownerDocument,e);if(!(be.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ve.isXMLDoc(e)))for(a=F(s),i=F(e),o=0,r=i.length;o<r;o++)j(i[o],a[o]);if(t)if(n)for(i=i||F(e),a=a||F(s),o=0,r=i.length;o<r;o++)$(i[o],a[o]);else $(e,s);return a=F(s,"script"),a.length>0&&w(a,!f&&F(e,"script")),s},cleanData:function(e){for(var t,n,o,r=ve.event.special,i=0;void 0!==(n=e[i]);i++)if(Pe(n)){if(t=n[Me.expando]){if(t.events)for(o in t.events)r[o]?ve.event.remove(n,o):ve.removeEvent(n,o,t.handle);n[Me.expando]=void 0}n[Re.expando]&&(n[Re.expando]=void 0)}}}),ve.fn.extend({detach:function(e){return q(this,e,!0)},remove:function(e){return q(this,e)},text:function(e){return Le(this,function(e){return void 0===e?ve.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=S(this,e);t.appendChild(e)}})},prepend:function(){return I(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=S(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return I(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ve.cleanData(F(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ve.clone(this,e,t)})},html:function(e){return Le(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!it.test(e)&&!Je[(Xe.exec(e)||["",""])[1].toLowerCase()]){e=ve.htmlPrefilter(e);try{for(;n<o;n++)t=this[n]||{},1===t.nodeType&&(ve.cleanData(F(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return I(this,arguments,function(t){var n=this.parentNode;ve.inArray(this,e)<0&&(ve.cleanData(F(this)),n&&n.replaceChild(t,this))},e)}}),ve.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ve.fn[e]=function(e){for(var n,o=[],r=ve(e),i=r.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),ve(r[a])[t](n),ce.apply(o,n.get());return this.pushStack(o)}});var ct=/^margin/,lt=new RegExp("^("+ze+")(?!px)[a-z%]+$","i"),ut=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)};!function(){function e(){if(s){s.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",et.appendChild(a);var e=n.getComputedStyle(s);t="1%"!==e.top,i="2px"===e.marginLeft,o="4px"===e.width,s.style.marginRight="50%",r="4px"===e.marginRight,et.removeChild(a),s=null}}var t,o,r,i,a=ie.createElement("div"),s=ie.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",be.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(s),ve.extend(be,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return e(),o},pixelMarginRight:function(){return e(),r},reliableMarginLeft:function(){return e(),i}}))}();var dt=/^(none|table(?!-c[ea]).+)/,pt={position:"absolute",visibility:"hidden",display:"block"},ht={letterSpacing:"0",fontWeight:"400"},mt=["Webkit","Moz","ms"],bt=ie.createElement("div").style;ve.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=B(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=ve.camelCase(t),f=e.style;return t=ve.cssProps[s]||(ve.cssProps[s]=L(s)||s),a=ve.cssHooks[t]||ve.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:f[t]:(i=typeof n,"string"===i&&(r=Ue.exec(n))&&r[1]&&(n=v(e,t,r),i="number"),null!=n&&n===n&&("number"===i&&(n+=r&&r[3]||(ve.cssNumber[s]?"":"px")),be.clearCloneStyle||""!==n||0!==t.indexOf("background")||(f[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(f[t]=n)),void 0)}},css:function(e,t,n,o){var r,i,a,s=ve.camelCase(t);return t=ve.cssProps[s]||(ve.cssProps[s]=L(s)||s),a=ve.cssHooks[t]||ve.cssHooks[s],a&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=B(e,t,o)),"normal"===r&&t in ht&&(r=ht[t]),""===n||n?(i=parseFloat(r),n===!0||isFinite(i)?i||0:r):r}}),ve.each(["height","width"],function(e,t){ve.cssHooks[t]={get:function(e,n,o){if(n)return!dt.test(ve.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?R(e,t,o):Ge(e,pt,function(){return R(e,t,o)})},set:function(e,n,o){var r,i=o&&ut(e),a=o&&M(e,t,o,"border-box"===ve.css(e,"boxSizing",!1,i),i);return a&&(r=Ue.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=ve.css(e,t)),P(e,n,a)}}}),ve.cssHooks.marginLeft=O(be.reliableMarginLeft,function(e,t){if(t)return(parseFloat(B(e,"marginLeft"))||e.getBoundingClientRect().left-Ge(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ve.each({margin:"",padding:"",border:"Width"},function(e,t){ve.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];o<4;o++)r[e+_e[o]+t]=i[o]||i[o-2]||i[0];return r}},ct.test(e)||(ve.cssHooks[e+t].set=P)}),ve.fn.extend({css:function(e,t){return Le(this,function(e,t,n){var o,r,i={},a=0;if(ve.isArray(t)){for(o=ut(e),r=t.length;a<r;a++)i[t[a]]=ve.css(e,t[a],!1,o);return i}return void 0!==n?ve.style(e,t,n):ve.css(e,t)},e,t,arguments.length>1)}}),ve.Tween=H,H.prototype={constructor:H,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||ve.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(ve.cssNumber[n]?"":"px")},cur:function(){var e=H.propHooks[this.prop];return e&&e.get?e.get(this):H.propHooks._default.get(this)},run:function(e){var t,n=H.propHooks[this.prop];return this.options.duration?this.pos=t=ve.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):H.propHooks._default.set(this),this}},H.prototype.init.prototype=H.prototype,H.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ve.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ve.fx.step[e.prop]?ve.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ve.cssProps[e.prop]]&&!ve.cssHooks[e.prop]?e.elem[e.prop]=e.now:ve.style(e.elem,e.prop,e.now+e.unit)}}},H.propHooks.scrollTop=H.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ve.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ve.fx=H.prototype.init,ve.fx.step={};var gt,vt,yt=/^(?:toggle|show|hide)$/,xt=/queueHooks$/;ve.Animation=ve.extend(Y,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return v(n.elem,e,Ue.exec(t),n),n}]},tweener:function(e,t){ve.isFunction(e)?(t=e,e=["*"]):e=e.match(qe);for(var n,o=0,r=e.length;o<r;o++)n=e[o],Y.tweeners[n]=Y.tweeners[n]||[],Y.tweeners[n].unshift(t)},prefilters:[Q],prefilter:function(e,t){t?Y.prefilters.unshift(e):Y.prefilters.push(e)}}),ve.speed=function(e,t,n){var o=e&&"object"==typeof e?ve.extend({},e):{complete:n||!n&&t||ve.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ve.isFunction(t)&&t};return ve.fx.off||ie.hidden?o.duration=0:"number"!=typeof o.duration&&(o.duration in ve.fx.speeds?o.duration=ve.fx.speeds[o.duration]:o.duration=ve.fx.speeds._default),null!=o.queue&&o.queue!==!0||(o.queue="fx"),o.old=o.complete,o.complete=function(){ve.isFunction(o.old)&&o.old.call(this),o.queue&&ve.dequeue(this,o.queue)},o},ve.fn.extend({fadeTo:function(e,t,n,o){return this.filter(Qe).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=ve.isEmptyObject(e),i=ve.speed(t,n,o),a=function(){var t=Y(this,ve.extend({},e),i);(r||Me.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||i.queue===!1?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=ve.timers,a=Me.get(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&xt.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));!t&&n||ve.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Me.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=ve.timers,a=o?o.length:0;for(n.finish=!0,ve.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),ve.each(["toggle","show","hide"],function(e,t){var n=ve.fn[t];ve.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(U(t,!0),e,o,r)}}),ve.each({slideDown:U("show"),slideUp:U("hide"),slideToggle:U("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ve.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),ve.timers=[],ve.fx.tick=function(){var e,t=0,n=ve.timers;for(gt=ve.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||ve.fx.stop(),gt=void 0},ve.fx.timer=function(e){ve.timers.push(e),e()?ve.fx.start():ve.timers.pop()},ve.fx.interval=13,ve.fx.start=function(){vt||(vt=n.requestAnimationFrame?n.requestAnimationFrame(W):n.setInterval(ve.fx.tick,ve.fx.interval))},ve.fx.stop=function(){n.cancelAnimationFrame?n.cancelAnimationFrame(vt):n.clearInterval(vt),vt=null},ve.fx.speeds={slow:600,fast:200,_default:400},ve.fn.delay=function(e,t){return e=ve.fx?ve.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,o){var r=n.setTimeout(t,e);o.stop=function(){n.clearTimeout(r)}})},function(){var e=ie.createElement("input"),t=ie.createElement("select"),n=t.appendChild(ie.createElement("option"));e.type="checkbox",be.checkOn=""!==e.value,be.optSelected=n.selected,e=ie.createElement("input"),e.value="t",e.type="radio",be.radioValue="t"===e.value}();var Ft,wt=ve.expr.attrHandle;ve.fn.extend({attr:function(e,t){return Le(this,ve.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ve.removeAttr(this,e)})}}),ve.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"==typeof e.getAttribute?ve.prop(e,t,n):(1===i&&ve.isXMLDoc(e)||(r=ve.attrHooks[t.toLowerCase()]||(ve.expr.match.bool.test(t)?Ft:void 0)),void 0!==n?null===n?void ve.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:(o=ve.find.attr(e,t),null==o?void 0:o))},attrHooks:{type:{set:function(e,t){if(!be.radioValue&&"radio"===t&&ve.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(qe);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),Ft={set:function(e,t,n){return t===!1?ve.removeAttr(e,n):e.setAttribute(n,n),n}},ve.each(ve.expr.match.bool.source.match(/\w+/g),function(e,t){var n=wt[t]||ve.find.attr;wt[t]=function(e,t,o){var r,i,a=t.toLowerCase();return o||(i=wt[a],wt[a]=r,r=null!=n(e,t,o)?a:null,wt[a]=i),r}});var At=/^(?:input|select|textarea|button)$/i,Ct=/^(?:a|area)$/i;ve.fn.extend({prop:function(e,t){return Le(this,ve.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ve.propFix[e]||e]})}}),ve.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&ve.isXMLDoc(e)||(t=ve.propFix[t]||t,r=ve.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=ve.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||Ct.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),be.optSelected||(ve.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ve.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ve.propFix[this.toLowerCase()]=this}),ve.fn.extend({addClass:function(e){var t,n,o,r,i,a,s,f=0;if(ve.isFunction(e))return this.each(function(t){ve(this).addClass(e.call(this,t,X(this)))});if("string"==typeof e&&e)for(t=e.match(qe)||[];n=this[f++];)if(r=X(n),o=1===n.nodeType&&" "+V(r)+" "){for(a=0;i=t[a++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");s=V(o),r!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,o,r,i,a,s,f=0;if(ve.isFunction(e))return this.each(function(t){ve(this).removeClass(e.call(this,t,X(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(qe)||[];n=this[f++];)if(r=X(n),o=1===n.nodeType&&" "+V(r)+" "){for(a=0;i=t[a++];)for(;o.indexOf(" "+i+" ")>-1;)o=o.replace(" "+i+" "," ");s=V(o),r!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ve.isFunction(e)?this.each(function(n){ve(this).toggleClass(e.call(this,n,X(this),t),t)}):this.each(function(){var t,o,r,i;if("string"===n)for(o=0,r=ve(this),i=e.match(qe)||[];t=i[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||(t=X(this),t&&Me.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Me.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+V(X(n))+" ").indexOf(t)>-1)return!0;return!1}});var Tt=/\r/g;ve.fn.extend({val:function(e){var t,n,o,r=this[0];{if(arguments.length)return o=ve.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=o?e.call(this,n,ve(this).val()):e,null==r?r="":"number"==typeof r?r+="":ve.isArray(r)&&(r=ve.map(r,function(e){return null==e?"":e+""})),t=ve.valHooks[this.type]||ve.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=ve.valHooks[r.type]||ve.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Tt,""):null==n?"":n)}}}),ve.extend({valHooks:{option:{get:function(e){var t=ve.find.attr(e,"value");return null!=t?t:V(ve.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],f=a?i+1:r.length;for(o=i<0?f:a?i:0;o<f;o++)if(n=r[o],(n.selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!ve.nodeName(n.parentNode,"optgroup"))){if(t=ve(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,o,r=e.options,i=ve.makeArray(t),a=r.length;a--;)o=r[a],(o.selected=ve.inArray(ve.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),ve.each(["radio","checkbox"],function(){ve.valHooks[this]={set:function(e,t){if(ve.isArray(t))return e.checked=ve.inArray(ve(e).val(),t)>-1}},be.checkOn||(ve.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt=/^(?:focusinfocus|focusoutblur)$/;ve.extend(ve.event,{trigger:function(e,t,o,r){var i,a,s,f,c,l,u,d=[o||ie],p=pe.call(e,"type")?e.type:e,h=pe.call(e,"namespace")?e.namespace.split("."):[];if(a=s=o=o||ie,3!==o.nodeType&&8!==o.nodeType&&!kt.test(p+ve.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[ve.expando]?e:new ve.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:ve.makeArray(t,[e]),u=ve.event.special[p]||{},r||!u.trigger||u.trigger.apply(o,t)!==!1)){if(!r&&!u.noBubble&&!ve.isWindow(o)){for(f=u.delegateType||p,kt.test(f+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),s=a;s===(o.ownerDocument||ie)&&d.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=d[i++])&&!e.isPropagationStopped();)e.type=i>1?f:u.bindType||p,l=(Me.get(a,"events")||{})[e.type]&&Me.get(a,"handle"),l&&l.apply(a,t),l=c&&a[c],l&&l.apply&&Pe(a)&&(e.result=l.apply(a,t),e.result===!1&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||u._default&&u._default.apply(d.pop(),t)!==!1||!Pe(o)||c&&ve.isFunction(o[p])&&!ve.isWindow(o)&&(s=o[c],s&&(o[c]=null),ve.event.triggered=p,o[p](),ve.event.triggered=void 0,s&&(o[c]=s)),e.result}},simulate:function(e,t,n){var o=ve.extend(new ve.Event,n,{type:e,isSimulated:!0});ve.event.trigger(o,null,t)}}),ve.fn.extend({trigger:function(e,t){return this.each(function(){ve.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ve.event.trigger(e,t,n,!0)}}),ve.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ve.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ve.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),be.focusin="onfocusin"in n,be.focusin||ve.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ve.event.simulate(t,e.target,ve.event.fix(e))};ve.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=Me.access(o,t);r||o.addEventListener(e,n,!0),Me.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=Me.access(o,t)-1;r?Me.access(o,t,r):(o.removeEventListener(e,n,!0),Me.remove(o,t))}}});var Et=n.location,St=ve.now(),Dt=/\?/;ve.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ve.error("Invalid XML: "+e),t};var Nt=/\[\]$/,$t=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;ve.param=function(e,t){var n,o=[],r=function(e,t){var n=ve.isFunction(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(ve.isArray(e)||e.jquery&&!ve.isPlainObject(e))ve.each(e,function(){r(this.name,this.value)});else for(n in e)Z(n,e[n],t,r);return o.join("&")},ve.fn.extend({serialize:function(){return ve.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ve.prop(this,"elements");return e?ve.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ve(this).is(":disabled")&&It.test(this.nodeName)&&!jt.test(e)&&(this.checked||!Ve.test(e))}).map(function(e,t){var n=ve(this).val();return null==n?null:ve.isArray(n)?ve.map(n,function(e){return{name:t.name,value:e.replace($t,"\r\n")}}):{name:t.name,value:n.replace($t,"\r\n")}}).get()}});var qt=/%20/g,Bt=/#.*$/,Ot=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mt=/^(?:GET|HEAD)$/,Rt=/^\/\//,Ht={},Wt={},zt="*/".concat("*"),Ut=ie.createElement("a");Ut.href=Et.href,ve.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:Pt.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ve.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ee(ee(e,ve.ajaxSettings),t):ee(ve.ajaxSettings,e)},ajaxPrefilter:J(Ht),ajaxTransport:J(Wt),ajax:function(e,t){function o(e,t,o,s){var c,d,p,x,F,w=t;l||(l=!0,f&&n.clearTimeout(f),r=void 0,a=s||"",A.readyState=e>0?4:0,c=e>=200&&e<300||304===e,o&&(x=te(h,A,o)),x=ne(h,x,A,c),c?(h.ifModified&&(F=A.getResponseHeader("Last-Modified"),F&&(ve.lastModified[i]=F),F=A.getResponseHeader("etag"),F&&(ve.etag[i]=F)),204===e||"HEAD"===h.type?w="nocontent":304===e?w="notmodified":(w=x.state,d=x.data,p=x.error,c=!p)):(p=w,!e&&w||(w="error",e<0&&(e=0))),A.status=e,A.statusText=(t||w)+"",c?g.resolveWith(m,[d,w,A]):g.rejectWith(m,[A,w,p]),A.statusCode(y),y=void 0,u&&b.trigger(c?"ajaxSuccess":"ajaxError",[A,h,c?d:p]),v.fireWith(m,[A,w]),u&&(b.trigger("ajaxComplete",[A,h]),--ve.active||ve.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,s,f,c,l,u,d,p,h=ve.ajaxSetup({},t),m=h.context||h,b=h.context&&(m.nodeType||m.jquery)?ve(m):ve.event,g=ve.Deferred(),v=ve.Callbacks("once memory"),y=h.statusCode||{},x={},F={},w="canceled",A={readyState:0,getResponseHeader:function(e){var t;if(l){if(!s)for(s={};t=Lt.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return null==l&&(e=F[e.toLowerCase()]=F[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)A.always(e[A.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||w;return r&&r.abort(t),o(0,t),this}};if(g.promise(A),h.url=((e||h.url||Et.href)+"").replace(Rt,Et.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(qe)||[""],null==h.crossDomain){c=ie.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=Ut.protocol+"//"+Ut.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=ve.param(h.data,h.traditional)),K(Ht,h,t,A),l)return A;u=ve.event&&h.global,u&&0===ve.active++&&ve.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Mt.test(h.type),i=h.url.replace(Bt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(qt,"+")):(p=h.url.slice(i.length),h.data&&(i+=(Dt.test(i)?"&":"?")+h.data,delete h.data),h.cache===!1&&(i=i.replace(Ot,"$1"),p=(Dt.test(i)?"&":"?")+"_="+St++ +p),h.url=i+p),h.ifModified&&(ve.lastModified[i]&&A.setRequestHeader("If-Modified-Since",ve.lastModified[i]),ve.etag[i]&&A.setRequestHeader("If-None-Match",ve.etag[i])),(h.data&&h.hasContent&&h.contentType!==!1||t.contentType)&&A.setRequestHeader("Content-Type",h.contentType),A.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+zt+"; q=0.01":""):h.accepts["*"]);for(d in h.headers)A.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(h.beforeSend.call(m,A,h)===!1||l))return A.abort();if(w="abort",v.add(h.complete),A.done(h.success),A.fail(h.error),r=K(Wt,h,t,A)){if(A.readyState=1,u&&b.trigger("ajaxSend",[A,h]),l)return A;h.async&&h.timeout>0&&(f=n.setTimeout(function(){A.abort("timeout")},h.timeout));try{l=!1,r.send(x,o)}catch(e){if(l)throw e;o(-1,e)}}else o(-1,"No Transport");return A},getJSON:function(e,t,n){return ve.get(e,t,n,"json")},getScript:function(e,t){return ve.get(e,void 0,t,"script")}}),ve.each(["get","post"],function(e,t){ve[t]=function(e,n,o,r){return ve.isFunction(n)&&(r=r||o,o=n,n=void 0),ve.ajax(ve.extend({url:e,type:t,dataType:r,data:n,success:o},ve.isPlainObject(e)&&e))}}),ve._evalUrl=function(e){return ve.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ve.fn.extend({wrapAll:function(e){var t;return this[0]&&(ve.isFunction(e)&&(e=e.call(this[0])),t=ve(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ve.isFunction(e)?this.each(function(t){ve(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ve(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=ve.isFunction(e);return this.each(function(n){ve(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ ve(this).replaceWith(this.childNodes)}),this}}),ve.expr.pseudos.hidden=function(e){return!ve.expr.pseudos.visible(e)},ve.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ve.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},Qt=ve.ajaxSettings.xhr();be.cors=!!Qt&&"withCredentials"in Qt,be.ajax=Qt=!!Qt,ve.ajaxTransport(function(e){var t,o;if(be.cors||Qt&&!e.crossDomain)return{send:function(r,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(a in r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=o=s.onload=s.onerror=s.onabort=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(_t[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),o=s.onerror=t("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&o()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),ve.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ve.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ve.globalEval(e),e}}}),ve.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ve.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(o,r){t=ve("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),ie.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Gt=[],Yt=/(=)\?(?=&|$)|\?\?/;ve.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||ve.expando+"_"+St++;return this[e]=!0,e}}),ve.ajaxPrefilter("json jsonp",function(e,t,o){var r,i,a,s=e.jsonp!==!1&&(Yt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Yt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=ve.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Yt,"$1"+r):e.jsonp!==!1&&(e.url+=(Dt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||ve.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=n[r],n[r]=function(){a=arguments},o.always(function(){void 0===i?ve(n).removeProp(r):n[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),a&&ve.isFunction(i)&&i(a[0]),a=i=void 0}),"script"}),be.createHTMLDocument=function(){var e=ie.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ve.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var o,r,i;return t||(be.createHTMLDocument?(t=ie.implementation.createHTMLDocument(""),o=t.createElement("base"),o.href=ie.location.href,t.head.appendChild(o)):t=ie),r=Ee.exec(e),i=!n&&[],r?[t.createElement(r[1])]:(r=A([e],t,i),i&&i.length&&ve(i).remove(),ve.merge([],r.childNodes))},ve.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return s>-1&&(o=V(e.slice(s)),e=e.slice(0,s)),ve.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&ve.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,a.html(o?ve("<div>").append(ve.parseHTML(e)).find(o):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},ve.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ve.fn[t]=function(e){return this.on(t,e)}}),ve.expr.pseudos.animated=function(e){return ve.grep(ve.timers,function(t){return e===t.elem}).length},ve.offset={setOffset:function(e,t,n){var o,r,i,a,s,f,c,l=ve.css(e,"position"),u=ve(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),i=ve.css(e,"top"),f=ve.css(e,"left"),c=("absolute"===l||"fixed"===l)&&(i+f).indexOf("auto")>-1,c?(o=u.position(),a=o.top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(f)||0),ve.isFunction(t)&&(t=t.call(e,n,ve.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},ve.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ve.offset.setOffset(this,e,t)});var t,n,o,r,i=this[0];if(i)return i.getClientRects().length?(o=i.getBoundingClientRect(),o.width||o.height?(r=i.ownerDocument,n=oe(r),t=r.documentElement,{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],o={top:0,left:0};return"fixed"===ve.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ve.nodeName(e[0],"html")||(o=e.offset()),o={top:o.top+ve.css(e[0],"borderTopWidth",!0),left:o.left+ve.css(e[0],"borderLeftWidth",!0)}),{top:t.top-o.top-ve.css(n,"marginTop",!0),left:t.left-o.left-ve.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ve.css(e,"position");)e=e.offsetParent;return e||et})}}),ve.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ve.fn[e]=function(o){return Le(this,function(e,o,r){var i=oe(e);return void 0===r?i?i[t]:e[o]:void(i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r)},e,o,arguments.length)}}),ve.each(["top","left"],function(e,t){ve.cssHooks[t]=O(be.pixelPosition,function(e,n){if(n)return n=B(e,t),lt.test(n)?ve(e).position()[t]+"px":n})}),ve.each({Height:"height",Width:"width"},function(e,t){ve.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){ve.fn[o]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return Le(this,function(t,n,r){var i;return ve.isWindow(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?ve.css(t,n,s):ve.style(t,n,r,s)},t,a?r:void 0,a)}})}),ve.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ve.parseJSON=JSON.parse,o=[],r=function(){return ve}.apply(t,o),!(void 0!==r&&(e.exports=r));var Vt=n.jQuery,Xt=n.$;return ve.noConflict=function(e){return n.$===ve&&(n.$=Xt),e&&n.jQuery===ve&&(n.jQuery=Vt),ve},i||(n.jQuery=n.$=ve),ve})},function(e,t){/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,o=this;e(this).one("bsTransitionEnd",function(){n=!0});var r=function(){n||e(o).trigger(e.support.transition.end)};return setTimeout(r,t),this},e(function(){e.support.transition=t(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var n=e(this),r=n.data("bs.alert");r||n.data("bs.alert",r=new o(this)),"string"==typeof t&&r[t].call(n)})}var n='[data-dismiss="alert"]',o=function(t){e(t).on("click",n,this.close)};o.VERSION="3.3.7",o.TRANSITION_DURATION=150,o.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var r=e(this),i=r.attr("data-target");i||(i=r.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,""));var a=e("#"===i?[]:i);t&&t.preventDefault(),a.length||(a=r.closest(".alert")),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(o.TRANSITION_DURATION):n())};var r=e.fn.alert;e.fn.alert=t,e.fn.alert.Constructor=o,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",n,o.prototype.close)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.button"),i="object"==typeof t&&t;r||o.data("bs.button",r=new n(this,i)),"toggle"==t?r.toggle():t&&r.setState(t)})}var n=function(t,o){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,o),this.isLoading=!1};n.VERSION="3.3.7",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",o=this.$element,r=o.is("input")?"val":"html",i=o.data();t+="Text",null==i.resetText&&o.data("resetText",o[r]()),setTimeout(e.proxy(function(){o[r](null==i[t]?this.options[t]:i[t]),"loadingText"==t?(this.isLoading=!0,o.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var o=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=o,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var o=e(n.target).closest(".btn");t.call(o,"toggle"),e(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),o.is("input,button")?o.trigger("focus"):o.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.carousel"),i=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t),a="string"==typeof t?t:i.slide;r||o.data("bs.carousel",r=new n(this,i)),"number"==typeof t?r.to(t):a?r[a]():i.interval&&r.pause().cycle()})}var n=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=600,n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},n.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t),o="prev"==e&&0===n||"next"==e&&n==this.$items.length-1;if(o&&!this.options.wrap)return t;var r="prev"==e?-1:1,i=(n+r)%this.$items.length;return this.$items.eq(i)},n.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,o){var r=this.$element.find(".item.active"),i=o||this.getItemForDirection(t,r),a=this.interval,s="next"==t?"left":"right",f=this;if(i.hasClass("active"))return this.sliding=!1;var c=i[0],l=e.Event("slide.bs.carousel",{relatedTarget:c,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(i)]);u&&u.addClass("active")}var d=e.Event("slid.bs.carousel",{relatedTarget:c,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,r.addClass(s),i.addClass(s),r.one("bsTransitionEnd",function(){i.removeClass([t,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),f.sliding=!1,setTimeout(function(){f.$element.trigger(d)},0)}).emulateTransitionEnd(n.TRANSITION_DURATION)):(r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var o=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=o,this};var r=function(n){var o,r=e(this),i=e(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var a=e.extend({},i.data(),r.data()),s=r.attr("data-slide-to");s&&(a.interval=!1),t.call(i,a),s&&i.data("bs.carousel").to(s),n.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),+function(e){"use strict";function t(t){var n,o=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(o)}function n(t){return this.each(function(){var n=e(this),r=n.data("bs.collapse"),i=e.extend({},o.DEFAULTS,n.data(),"object"==typeof t&&t);!r&&i.toggle&&/show|hide/.test(t)&&(i.toggle=!1),r||n.data("bs.collapse",r=new o(this,i)),"string"==typeof t&&r[t]()})}var o=function(t,n){this.$element=e(t),this.options=e.extend({},o.DEFAULTS,n),this.$trigger=e('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};o.VERSION="3.3.7",o.TRANSITION_DURATION=350,o.DEFAULTS={toggle:!0},o.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},o.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(t=r.data("bs.collapse"),t&&t.transitioning))){var i=e.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){r&&r.length&&(n.call(r,"hide"),t||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var f=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(o.TRANSITION_DURATION)[a](this.$element[0][f])}}}},o.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return e.support.transition?void this.$element[n](0).one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(o.TRANSITION_DURATION):r.call(this)}}},o.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},o.prototype.getParent=function(){return e(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy(function(n,o){var r=e(o);this.addAriaAndCollapsedClass(t(r),r)},this)).end()},o.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=e.fn.collapse;e.fn.collapse=n,e.fn.collapse.Constructor=o,e.fn.collapse.noConflict=function(){return e.fn.collapse=r,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(o){var r=e(this);r.attr("data-target")||o.preventDefault();var i=t(r),a=i.data("bs.collapse"),s=a?"toggle":r.data();n.call(i,s)})}(jQuery),+function(e){"use strict";function t(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var o=n&&e(n);return o&&o.length?o:t.parent()}function n(n){n&&3===n.which||(e(r).remove(),e(i).each(function(){var o=e(this),r=t(o),i={relatedTarget:this};r.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(r[0],n.target)||(r.trigger(n=e.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(o.attr("aria-expanded","false"),r.removeClass("open").trigger(e.Event("hidden.bs.dropdown",i)))))}))}function o(t){return this.each(function(){var n=e(this),o=n.data("bs.dropdown");o||n.data("bs.dropdown",o=new a(this)),"string"==typeof t&&o[t].call(n)})}var r=".dropdown-backdrop",i='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.7",a.prototype.toggle=function(o){var r=e(this);if(!r.is(".disabled, :disabled")){var i=t(r),a=i.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",n);var s={relatedTarget:this};if(i.trigger(o=e.Event("show.bs.dropdown",s)),o.isDefaultPrevented())return;r.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},a.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=e(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var r=t(o),a=r.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&r.find(i).trigger("focus"),o.trigger("click");var s=" li:not(.disabled):visible a",f=r.find(".dropdown-menu"+s);if(f.length){var c=f.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<f.length-1&&c++,~c||(c=0),f.eq(c).trigger("focus")}}}};var s=e.fn.dropdown;e.fn.dropdown=o,e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=s,this},e(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",i,a.prototype.toggle).on("keydown.bs.dropdown.data-api",i,a.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",a.prototype.keydown)}(jQuery),+function(e){"use strict";function t(t,o){return this.each(function(){var r=e(this),i=r.data("bs.modal"),a=e.extend({},n.DEFAULTS,r.data(),"object"==typeof t&&t);i||r.data("bs.modal",i=new n(this,a)),"string"==typeof t?i[t](o):a.show&&i.show(o)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.3.7",n.TRANSITION_DURATION=300,n.BACKDROP_TRANSITION_DURATION=150,n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var o=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=e.support.transition&&o.$element.hasClass("fade");o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),r&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:t});r?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(i)}).emulateTransitionEnd(n.TRANSITION_DURATION):o.$element.trigger("focus").trigger(i)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(n.TRANSITION_DURATION):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},n.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var o=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){o.removeBackdrop(),t&&t()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(n.BACKDROP_TRANSITION_DURATION):a()}else t&&t()},n.prototype.handleUpdate=function(){this.adjustDialog()},n.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},n.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},n.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var o=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=o,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var o=e(this),r=o.attr("href"),i=e(o.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),a=i.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),o.data());o.is("a")&&n.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),t.call(i,a,this)})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.tooltip"),i="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||o.data("bs.tooltip",r=new n(this,i)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(t,n,o){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&e(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),i=r.length;i--;){var a=r[i];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",f="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},n.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,o){n[e]!=o&&(t[e]=o)}),t},n.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},n.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue())return clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide()},n.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var o=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!o)return;var r=this,i=this.tip(),a=this.getUID(this.type);this.setContent(),i.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&i.addClass("fade");var s="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,f=/\s?auto?\s?/i,c=f.test(s);c&&(s=s.replace(f,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(s).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),u=i[0].offsetWidth,d=i[0].offsetHeight;if(c){var p=s,h=this.getPosition(this.$viewport);s="bottom"==s&&l.bottom+d>h.bottom?"top":"top"==s&&l.top-d<h.top?"bottom":"right"==s&&l.right+u>h.width?"left":"left"==s&&l.left-u<h.left?"right":s,i.removeClass(p).addClass(s)}var m=this.getCalculatedOffset(s,l,u,d);this.applyPlacement(m,s);var b=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",b).emulateTransitionEnd(n.TRANSITION_DURATION):b()}},n.prototype.applyPlacement=function(t,n){var o=this.tip(),r=o[0].offsetWidth,i=o[0].offsetHeight,a=parseInt(o.css("margin-top"),10),s=parseInt(o.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(o[0],e.extend({using:function(e){o.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),o.addClass("in");var f=o[0].offsetWidth,c=o[0].offsetHeight;"top"==n&&c!=i&&(t.top=t.top+i-c);var l=this.getViewportAdjustedDelta(n,t,f,c);l.left?t.left+=l.left:t.top+=l.top;var u=/top|bottom/.test(n),d=u?2*l.left-r+f:2*l.top-i+c,p=u?"offsetWidth":"offsetHeight";o.offset(t),this.replaceArrow(d,o[0][p],u)},n.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},n.prototype.hide=function(t){function o(){"in"!=r.hoverState&&i.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),t&&t()}var r=this,i=e(this.$tip),a=e.Event("hide.bs."+this.type);if(this.$element.trigger(a),!a.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(n.TRANSITION_DURATION):o(),this.hoverState=null,this},n.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},n.prototype.hasContent=function(){return this.getTitle()},n.prototype.getPosition=function(t){t=t||this.$element;var n=t[0],o="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=e.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var i=window.SVGElement&&n instanceof window.SVGElement,a=o?{top:0,left:0}:i?null:t.offset(),s={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},f=o?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},r,s,f,a)},n.prototype.getCalculatedOffset=function(e,t,n,o){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-o,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-o/2,left:t.left-n}:{top:t.top+t.height/2-o/2,left:t.left+t.width}},n.prototype.getViewportAdjustedDelta=function(e,t,n,o){var r={top:0,left:0};if(!this.$viewport)return r;var i=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-i-a.scroll,f=t.top+i-a.scroll+o;s<a.top?r.top=a.top-s:f>a.top+a.height&&(r.top=a.top+a.height-f)}else{var c=t.left-i,l=t.left+i+n;c<a.left?r.left=a.left-c:l>a.right&&(r.left=a.left+a.width-l)}return r},n.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)},n.prototype.getUID=function(e){do e+=~~(1e6*Math.random());while(document.getElementById(e));return e},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(t){var n=this;t&&(n=e(t.currentTarget).data("bs."+this.type),n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})};var o=e.fn.tooltip;e.fn.tooltip=t,e.fn.tooltip.Constructor=n,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=o,this}}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.popover"),i="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||o.data("bs.popover",r=new n(this,i)),"string"==typeof t&&r[t]())})}var n=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");n.VERSION="3.3.7",n.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),n.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var o=e.fn.popover;e.fn.popover=t,e.fn.popover.Constructor=n,e.fn.popover.noConflict=function(){return e.fn.popover=o,this}}(jQuery),+function(e){"use strict";function t(n,o){this.$body=e(document.body),this.$scrollElement=e(e(n).is(document.body)?window:n),this.options=e.extend({},t.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var o=e(this),r=o.data("bs.scrollspy"),i="object"==typeof n&&n;r||o.data("bs.scrollspy",r=new t(this,i)),"string"==typeof n&&r[n]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=e(this),r=t.data("target")||t.attr("href"),i=/^#./.test(r)&&e(r);return i&&i.length&&i.is(":visible")&&[[i[n]().top+o,r]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),o=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,i=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=o)return a!=(e=i[i.length-1])&&this.activate(e);if(a&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)a!=i[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(i[e])},t.prototype.activate=function(t){
this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',o=e(n).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var o=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=o,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.tab");r||o.data("bs.tab",r=new n(this)),"string"==typeof t&&r[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),o=t.data("target");if(o||(o=t.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=n.find(".active:last a"),i=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(i),t.trigger(a),!a.isDefaultPrevented()&&!i.isDefaultPrevented()){var s=e(o);this.activate(t.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},n.prototype.activate=function(t,o,r){function i(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}var a=o.find("> .active"),s=r&&e.support.transition&&(a.length&&a.hasClass("fade")||!!o.find("> .fade").length);a.length&&s?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i(),a.removeClass("in")};var o=e.fn.tab;e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=o,this};var r=function(n){n.preventDefault(),t.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),+function(e){"use strict";function t(t){return this.each(function(){var o=e(this),r=o.data("bs.affix"),i="object"==typeof t&&t;r||o.data("bs.affix",r=new n(this,i)),"string"==typeof t&&r[t]()})}var n=function(t,o){this.options=e.extend({},n.DEFAULTS,o),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.3.7",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getState=function(e,t,n,o){var r=this.$target.scrollTop(),i=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=i.top)&&"bottom":!(r+a<=e-o)&&"bottom";var s=null==this.affixed,f=s?r:i.top,c=s?a:t;return null!=n&&r<=n?"top":null!=o&&f+c>=e-o&&"bottom"},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),o=this.options.offset,r=o.top,i=o.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof o&&(i=r=o),"function"==typeof r&&(r=o.top(this.$element)),"function"==typeof i&&(i=o.bottom(this.$element));var s=this.getState(a,t,r,i);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var f="affix"+(s?"-"+s:""),c=e.Event(f+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(f).trigger(f.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-t-i})}};var o=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=o,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),o=n.data();o.offset=o.offset||{},null!=o.offsetBottom&&(o.offset.bottom=o.offsetBottom),null!=o.offsetTop&&(o.offset.top=o.offsetTop),t.call(n,o)})})}(jQuery)},function(e,t,n){var o=n(5);"string"==typeof o&&(o=[[e.id,o,""]]);n(13)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"/*!\n * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome\n * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)\n */@font-face{font-family:FontAwesome;src:url("+n(7)+");src:url("+n(8)+'?#iefix&v=4.7.0) format("embedded-opentype"),url('+n(9)+') format("woff2"),url('+n(10)+') format("woff"),url('+n(11)+') format("truetype"),url('+n(12)+'#fontawesomeregular) format("svg");font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:.08em solid #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scaleY(-1);transform:scaleY(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\\F000"}.fa-music:before{content:"\\F001"}.fa-search:before{content:"\\F002"}.fa-envelope-o:before{content:"\\F003"}.fa-heart:before{content:"\\F004"}.fa-star:before{content:"\\F005"}.fa-star-o:before{content:"\\F006"}.fa-user:before{content:"\\F007"}.fa-film:before{content:"\\F008"}.fa-th-large:before{content:"\\F009"}.fa-th:before{content:"\\F00A"}.fa-th-list:before{content:"\\F00B"}.fa-check:before{content:"\\F00C"}.fa-close:before,.fa-remove:before,.fa-times:before{content:"\\F00D"}.fa-search-plus:before{content:"\\F00E"}.fa-search-minus:before{content:"\\F010"}.fa-power-off:before{content:"\\F011"}.fa-signal:before{content:"\\F012"}.fa-cog:before,.fa-gear:before{content:"\\F013"}.fa-trash-o:before{content:"\\F014"}.fa-home:before{content:"\\F015"}.fa-file-o:before{content:"\\F016"}.fa-clock-o:before{content:"\\F017"}.fa-road:before{content:"\\F018"}.fa-download:before{content:"\\F019"}.fa-arrow-circle-o-down:before{content:"\\F01A"}.fa-arrow-circle-o-up:before{content:"\\F01B"}.fa-inbox:before{content:"\\F01C"}.fa-play-circle-o:before{content:"\\F01D"}.fa-repeat:before,.fa-rotate-right:before{content:"\\F01E"}.fa-refresh:before{content:"\\F021"}.fa-list-alt:before{content:"\\F022"}.fa-lock:before{content:"\\F023"}.fa-flag:before{content:"\\F024"}.fa-headphones:before{content:"\\F025"}.fa-volume-off:before{content:"\\F026"}.fa-volume-down:before{content:"\\F027"}.fa-volume-up:before{content:"\\F028"}.fa-qrcode:before{content:"\\F029"}.fa-barcode:before{content:"\\F02A"}.fa-tag:before{content:"\\F02B"}.fa-tags:before{content:"\\F02C"}.fa-book:before{content:"\\F02D"}.fa-bookmark:before{content:"\\F02E"}.fa-print:before{content:"\\F02F"}.fa-camera:before{content:"\\F030"}.fa-font:before{content:"\\F031"}.fa-bold:before{content:"\\F032"}.fa-italic:before{content:"\\F033"}.fa-text-height:before{content:"\\F034"}.fa-text-width:before{content:"\\F035"}.fa-align-left:before{content:"\\F036"}.fa-align-center:before{content:"\\F037"}.fa-align-right:before{content:"\\F038"}.fa-align-justify:before{content:"\\F039"}.fa-list:before{content:"\\F03A"}.fa-dedent:before,.fa-outdent:before{content:"\\F03B"}.fa-indent:before{content:"\\F03C"}.fa-video-camera:before{content:"\\F03D"}.fa-image:before,.fa-photo:before,.fa-picture-o:before{content:"\\F03E"}.fa-pencil:before{content:"\\F040"}.fa-map-marker:before{content:"\\F041"}.fa-adjust:before{content:"\\F042"}.fa-tint:before{content:"\\F043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\\F044"}.fa-share-square-o:before{content:"\\F045"}.fa-check-square-o:before{content:"\\F046"}.fa-arrows:before{content:"\\F047"}.fa-step-backward:before{content:"\\F048"}.fa-fast-backward:before{content:"\\F049"}.fa-backward:before{content:"\\F04A"}.fa-play:before{content:"\\F04B"}.fa-pause:before{content:"\\F04C"}.fa-stop:before{content:"\\F04D"}.fa-forward:before{content:"\\F04E"}.fa-fast-forward:before{content:"\\F050"}.fa-step-forward:before{content:"\\F051"}.fa-eject:before{content:"\\F052"}.fa-chevron-left:before{content:"\\F053"}.fa-chevron-right:before{content:"\\F054"}.fa-plus-circle:before{content:"\\F055"}.fa-minus-circle:before{content:"\\F056"}.fa-times-circle:before{content:"\\F057"}.fa-check-circle:before{content:"\\F058"}.fa-question-circle:before{content:"\\F059"}.fa-info-circle:before{content:"\\F05A"}.fa-crosshairs:before{content:"\\F05B"}.fa-times-circle-o:before{content:"\\F05C"}.fa-check-circle-o:before{content:"\\F05D"}.fa-ban:before{content:"\\F05E"}.fa-arrow-left:before{content:"\\F060"}.fa-arrow-right:before{content:"\\F061"}.fa-arrow-up:before{content:"\\F062"}.fa-arrow-down:before{content:"\\F063"}.fa-mail-forward:before,.fa-share:before{content:"\\F064"}.fa-expand:before{content:"\\F065"}.fa-compress:before{content:"\\F066"}.fa-plus:before{content:"\\F067"}.fa-minus:before{content:"\\F068"}.fa-asterisk:before{content:"\\F069"}.fa-exclamation-circle:before{content:"\\F06A"}.fa-gift:before{content:"\\F06B"}.fa-leaf:before{content:"\\F06C"}.fa-fire:before{content:"\\F06D"}.fa-eye:before{content:"\\F06E"}.fa-eye-slash:before{content:"\\F070"}.fa-exclamation-triangle:before,.fa-warning:before{content:"\\F071"}.fa-plane:before{content:"\\F072"}.fa-calendar:before{content:"\\F073"}.fa-random:before{content:"\\F074"}.fa-comment:before{content:"\\F075"}.fa-magnet:before{content:"\\F076"}.fa-chevron-up:before{content:"\\F077"}.fa-chevron-down:before{content:"\\F078"}.fa-retweet:before{content:"\\F079"}.fa-shopping-cart:before{content:"\\F07A"}.fa-folder:before{content:"\\F07B"}.fa-folder-open:before{content:"\\F07C"}.fa-arrows-v:before{content:"\\F07D"}.fa-arrows-h:before{content:"\\F07E"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\\F080"}.fa-twitter-square:before{content:"\\F081"}.fa-facebook-square:before{content:"\\F082"}.fa-camera-retro:before{content:"\\F083"}.fa-key:before{content:"\\F084"}.fa-cogs:before,.fa-gears:before{content:"\\F085"}.fa-comments:before{content:"\\F086"}.fa-thumbs-o-up:before{content:"\\F087"}.fa-thumbs-o-down:before{content:"\\F088"}.fa-star-half:before{content:"\\F089"}.fa-heart-o:before{content:"\\F08A"}.fa-sign-out:before{content:"\\F08B"}.fa-linkedin-square:before{content:"\\F08C"}.fa-thumb-tack:before{content:"\\F08D"}.fa-external-link:before{content:"\\F08E"}.fa-sign-in:before{content:"\\F090"}.fa-trophy:before{content:"\\F091"}.fa-github-square:before{content:"\\F092"}.fa-upload:before{content:"\\F093"}.fa-lemon-o:before{content:"\\F094"}.fa-phone:before{content:"\\F095"}.fa-square-o:before{content:"\\F096"}.fa-bookmark-o:before{content:"\\F097"}.fa-phone-square:before{content:"\\F098"}.fa-twitter:before{content:"\\F099"}.fa-facebook-f:before,.fa-facebook:before{content:"\\F09A"}.fa-github:before{content:"\\F09B"}.fa-unlock:before{content:"\\F09C"}.fa-credit-card:before{content:"\\F09D"}.fa-feed:before,.fa-rss:before{content:"\\F09E"}.fa-hdd-o:before{content:"\\F0A0"}.fa-bullhorn:before{content:"\\F0A1"}.fa-bell:before{content:"\\F0F3"}.fa-certificate:before{content:"\\F0A3"}.fa-hand-o-right:before{content:"\\F0A4"}.fa-hand-o-left:before{content:"\\F0A5"}.fa-hand-o-up:before{content:"\\F0A6"}.fa-hand-o-down:before{content:"\\F0A7"}.fa-arrow-circle-left:before{content:"\\F0A8"}.fa-arrow-circle-right:before{content:"\\F0A9"}.fa-arrow-circle-up:before{content:"\\F0AA"}.fa-arrow-circle-down:before{content:"\\F0AB"}.fa-globe:before{content:"\\F0AC"}.fa-wrench:before{content:"\\F0AD"}.fa-tasks:before{content:"\\F0AE"}.fa-filter:before{content:"\\F0B0"}.fa-briefcase:before{content:"\\F0B1"}.fa-arrows-alt:before{content:"\\F0B2"}.fa-group:before,.fa-users:before{content:"\\F0C0"}.fa-chain:before,.fa-link:before{content:"\\F0C1"}.fa-cloud:before{content:"\\F0C2"}.fa-flask:before{content:"\\F0C3"}.fa-cut:before,.fa-scissors:before{content:"\\F0C4"}.fa-copy:before,.fa-files-o:before{content:"\\F0C5"}.fa-paperclip:before{content:"\\F0C6"}.fa-floppy-o:before,.fa-save:before{content:"\\F0C7"}.fa-square:before{content:"\\F0C8"}.fa-bars:before,.fa-navicon:before,.fa-reorder:before{content:"\\F0C9"}.fa-list-ul:before{content:"\\F0CA"}.fa-list-ol:before{content:"\\F0CB"}.fa-strikethrough:before{content:"\\F0CC"}.fa-underline:before{content:"\\F0CD"}.fa-table:before{content:"\\F0CE"}.fa-magic:before{content:"\\F0D0"}.fa-truck:before{content:"\\F0D1"}.fa-pinterest:before{content:"\\F0D2"}.fa-pinterest-square:before{content:"\\F0D3"}.fa-google-plus-square:before{content:"\\F0D4"}.fa-google-plus:before{content:"\\F0D5"}.fa-money:before{content:"\\F0D6"}.fa-caret-down:before{content:"\\F0D7"}.fa-caret-up:before{content:"\\F0D8"}.fa-caret-left:before{content:"\\F0D9"}.fa-caret-right:before{content:"\\F0DA"}.fa-columns:before{content:"\\F0DB"}.fa-sort:before,.fa-unsorted:before{content:"\\F0DC"}.fa-sort-desc:before,.fa-sort-down:before{content:"\\F0DD"}.fa-sort-asc:before,.fa-sort-up:before{content:"\\F0DE"}.fa-envelope:before{content:"\\F0E0"}.fa-linkedin:before{content:"\\F0E1"}.fa-rotate-left:before,.fa-undo:before{content:"\\F0E2"}.fa-gavel:before,.fa-legal:before{content:"\\F0E3"}.fa-dashboard:before,.fa-tachometer:before{content:"\\F0E4"}.fa-comment-o:before{content:"\\F0E5"}.fa-comments-o:before{content:"\\F0E6"}.fa-bolt:before,.fa-flash:before{content:"\\F0E7"}.fa-sitemap:before{content:"\\F0E8"}.fa-umbrella:before{content:"\\F0E9"}.fa-clipboard:before,.fa-paste:before{content:"\\F0EA"}.fa-lightbulb-o:before{content:"\\F0EB"}.fa-exchange:before{content:"\\F0EC"}.fa-cloud-download:before{content:"\\F0ED"}.fa-cloud-upload:before{content:"\\F0EE"}.fa-user-md:before{content:"\\F0F0"}.fa-stethoscope:before{content:"\\F0F1"}.fa-suitcase:before{content:"\\F0F2"}.fa-bell-o:before{content:"\\F0A2"}.fa-coffee:before{content:"\\F0F4"}.fa-cutlery:before{content:"\\F0F5"}.fa-file-text-o:before{content:"\\F0F6"}.fa-building-o:before{content:"\\F0F7"}.fa-hospital-o:before{content:"\\F0F8"}.fa-ambulance:before{content:"\\F0F9"}.fa-medkit:before{content:"\\F0FA"}.fa-fighter-jet:before{content:"\\F0FB"}.fa-beer:before{content:"\\F0FC"}.fa-h-square:before{content:"\\F0FD"}.fa-plus-square:before{content:"\\F0FE"}.fa-angle-double-left:before{content:"\\F100"}.fa-angle-double-right:before{content:"\\F101"}.fa-angle-double-up:before{content:"\\F102"}.fa-angle-double-down:before{content:"\\F103"}.fa-angle-left:before{content:"\\F104"}.fa-angle-right:before{content:"\\F105"}.fa-angle-up:before{content:"\\F106"}.fa-angle-down:before{content:"\\F107"}.fa-desktop:before{content:"\\F108"}.fa-laptop:before{content:"\\F109"}.fa-tablet:before{content:"\\F10A"}.fa-mobile-phone:before,.fa-mobile:before{content:"\\F10B"}.fa-circle-o:before{content:"\\F10C"}.fa-quote-left:before{content:"\\F10D"}.fa-quote-right:before{content:"\\F10E"}.fa-spinner:before{content:"\\F110"}.fa-circle:before{content:"\\F111"}.fa-mail-reply:before,.fa-reply:before{content:"\\F112"}.fa-github-alt:before{content:"\\F113"}.fa-folder-o:before{content:"\\F114"}.fa-folder-open-o:before{content:"\\F115"}.fa-smile-o:before{content:"\\F118"}.fa-frown-o:before{content:"\\F119"}.fa-meh-o:before{content:"\\F11A"}.fa-gamepad:before{content:"\\F11B"}.fa-keyboard-o:before{content:"\\F11C"}.fa-flag-o:before{content:"\\F11D"}.fa-flag-checkered:before{content:"\\F11E"}.fa-terminal:before{content:"\\F120"}.fa-code:before{content:"\\F121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\\F122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\\F123"}.fa-location-arrow:before{content:"\\F124"}.fa-crop:before{content:"\\F125"}.fa-code-fork:before{content:"\\F126"}.fa-chain-broken:before,.fa-unlink:before{content:"\\F127"}.fa-question:before{content:"\\F128"}.fa-info:before{content:"\\F129"}.fa-exclamation:before{content:"\\F12A"}.fa-superscript:before{content:"\\F12B"}.fa-subscript:before{content:"\\F12C"}.fa-eraser:before{content:"\\F12D"}.fa-puzzle-piece:before{content:"\\F12E"}.fa-microphone:before{content:"\\F130"}.fa-microphone-slash:before{content:"\\F131"}.fa-shield:before{content:"\\F132"}.fa-calendar-o:before{content:"\\F133"}.fa-fire-extinguisher:before{content:"\\F134"}.fa-rocket:before{content:"\\F135"}.fa-maxcdn:before{content:"\\F136"}.fa-chevron-circle-left:before{content:"\\F137"}.fa-chevron-circle-right:before{content:"\\F138"}.fa-chevron-circle-up:before{content:"\\F139"}.fa-chevron-circle-down:before{content:"\\F13A"}.fa-html5:before{content:"\\F13B"}.fa-css3:before{content:"\\F13C"}.fa-anchor:before{content:"\\F13D"}.fa-unlock-alt:before{content:"\\F13E"}.fa-bullseye:before{content:"\\F140"}.fa-ellipsis-h:before{content:"\\F141"}.fa-ellipsis-v:before{content:"\\F142"}.fa-rss-square:before{content:"\\F143"}.fa-play-circle:before{content:"\\F144"}.fa-ticket:before{content:"\\F145"}.fa-minus-square:before{content:"\\F146"}.fa-minus-square-o:before{content:"\\F147"}.fa-level-up:before{content:"\\F148"}.fa-level-down:before{content:"\\F149"}.fa-check-square:before{content:"\\F14A"}.fa-pencil-square:before{content:"\\F14B"}.fa-external-link-square:before{content:"\\F14C"}.fa-share-square:before{content:"\\F14D"}.fa-compass:before{content:"\\F14E"}.fa-caret-square-o-down:before,.fa-toggle-down:before{content:"\\F150"}.fa-caret-square-o-up:before,.fa-toggle-up:before{content:"\\F151"}.fa-caret-square-o-right:before,.fa-toggle-right:before{content:"\\F152"}.fa-eur:before,.fa-euro:before{content:"\\F153"}.fa-gbp:before{content:"\\F154"}.fa-dollar:before,.fa-usd:before{content:"\\F155"}.fa-inr:before,.fa-rupee:before{content:"\\F156"}.fa-cny:before,.fa-jpy:before,.fa-rmb:before,.fa-yen:before{content:"\\F157"}.fa-rouble:before,.fa-rub:before,.fa-ruble:before{content:"\\F158"}.fa-krw:before,.fa-won:before{content:"\\F159"}.fa-bitcoin:before,.fa-btc:before{content:"\\F15A"}.fa-file:before{content:"\\F15B"}.fa-file-text:before{content:"\\F15C"}.fa-sort-alpha-asc:before{content:"\\F15D"}.fa-sort-alpha-desc:before{content:"\\F15E"}.fa-sort-amount-asc:before{content:"\\F160"}.fa-sort-amount-desc:before{content:"\\F161"}.fa-sort-numeric-asc:before{content:"\\F162"}.fa-sort-numeric-desc:before{content:"\\F163"}.fa-thumbs-up:before{content:"\\F164"}.fa-thumbs-down:before{content:"\\F165"}.fa-youtube-square:before{content:"\\F166"}.fa-youtube:before{content:"\\F167"}.fa-xing:before{content:"\\F168"}.fa-xing-square:before{content:"\\F169"}.fa-youtube-play:before{content:"\\F16A"}.fa-dropbox:before{content:"\\F16B"}.fa-stack-overflow:before{content:"\\F16C"}.fa-instagram:before{content:"\\F16D"}.fa-flickr:before{content:"\\F16E"}.fa-adn:before{content:"\\F170"}.fa-bitbucket:before{content:"\\F171"}.fa-bitbucket-square:before{content:"\\F172"}.fa-tumblr:before{content:"\\F173"}.fa-tumblr-square:before{content:"\\F174"}.fa-long-arrow-down:before{content:"\\F175"}.fa-long-arrow-up:before{content:"\\F176"}.fa-long-arrow-left:before{content:"\\F177"}.fa-long-arrow-right:before{content:"\\F178"}.fa-apple:before{content:"\\F179"}.fa-windows:before{content:"\\F17A"}.fa-android:before{content:"\\F17B"}.fa-linux:before{content:"\\F17C"}.fa-dribbble:before{content:"\\F17D"}.fa-skype:before{content:"\\F17E"}.fa-foursquare:before{content:"\\F180"}.fa-trello:before{content:"\\F181"}.fa-female:before{content:"\\F182"}.fa-male:before{content:"\\F183"}.fa-gittip:before,.fa-gratipay:before{content:"\\F184"}.fa-sun-o:before{content:"\\F185"}.fa-moon-o:before{content:"\\F186"}.fa-archive:before{content:"\\F187"}.fa-bug:before{content:"\\F188"}.fa-vk:before{content:"\\F189"}.fa-weibo:before{content:"\\F18A"}.fa-renren:before{content:"\\F18B"}.fa-pagelines:before{content:"\\F18C"}.fa-stack-exchange:before{content:"\\F18D"}.fa-arrow-circle-o-right:before{content:"\\F18E"}.fa-arrow-circle-o-left:before{content:"\\F190"}.fa-caret-square-o-left:before,.fa-toggle-left:before{content:"\\F191"}.fa-dot-circle-o:before{content:"\\F192"}.fa-wheelchair:before{content:"\\F193"}.fa-vimeo-square:before{content:"\\F194"}.fa-try:before,.fa-turkish-lira:before{content:"\\F195"}.fa-plus-square-o:before{content:"\\F196"}.fa-space-shuttle:before{content:"\\F197"}.fa-slack:before{content:"\\F198"}.fa-envelope-square:before{content:"\\F199"}.fa-wordpress:before{content:"\\F19A"}.fa-openid:before{content:"\\F19B"}.fa-bank:before,.fa-institution:before,.fa-university:before{content:"\\F19C"}.fa-graduation-cap:before,.fa-mortar-board:before{content:"\\F19D"}.fa-yahoo:before{content:"\\F19E"}.fa-google:before{content:"\\F1A0"}.fa-reddit:before{content:"\\F1A1"}.fa-reddit-square:before{content:"\\F1A2"}.fa-stumbleupon-circle:before{content:"\\F1A3"}.fa-stumbleupon:before{content:"\\F1A4"}.fa-delicious:before{content:"\\F1A5"}.fa-digg:before{content:"\\F1A6"}.fa-pied-piper-pp:before{content:"\\F1A7"}.fa-pied-piper-alt:before{content:"\\F1A8"}.fa-drupal:before{content:"\\F1A9"}.fa-joomla:before{content:"\\F1AA"}.fa-language:before{content:"\\F1AB"}.fa-fax:before{content:"\\F1AC"}.fa-building:before{content:"\\F1AD"}.fa-child:before{content:"\\F1AE"}.fa-paw:before{content:"\\F1B0"}.fa-spoon:before{content:"\\F1B1"}.fa-cube:before{content:"\\F1B2"}.fa-cubes:before{content:"\\F1B3"}.fa-behance:before{content:"\\F1B4"}.fa-behance-square:before{content:"\\F1B5"}.fa-steam:before{content:"\\F1B6"}.fa-steam-square:before{content:"\\F1B7"}.fa-recycle:before{content:"\\F1B8"}.fa-automobile:before,.fa-car:before{content:"\\F1B9"}.fa-cab:before,.fa-taxi:before{content:"\\F1BA"}.fa-tree:before{content:"\\F1BB"}.fa-spotify:before{content:"\\F1BC"}.fa-deviantart:before{content:"\\F1BD"}.fa-soundcloud:before{content:"\\F1BE"}.fa-database:before{content:"\\F1C0"}.fa-file-pdf-o:before{content:"\\F1C1"}.fa-file-word-o:before{content:"\\F1C2"}.fa-file-excel-o:before{content:"\\F1C3"}.fa-file-powerpoint-o:before{content:"\\F1C4"}.fa-file-image-o:before,.fa-file-photo-o:before,.fa-file-picture-o:before{content:"\\F1C5"}.fa-file-archive-o:before,.fa-file-zip-o:before{content:"\\F1C6"}.fa-file-audio-o:before,.fa-file-sound-o:before{content:"\\F1C7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\\F1C8"}.fa-file-code-o:before{content:"\\F1C9"}.fa-vine:before{content:"\\F1CA"}.fa-codepen:before{content:"\\F1CB"}.fa-jsfiddle:before{content:"\\F1CC"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-ring:before,.fa-life-saver:before,.fa-support:before{content:"\\F1CD"}.fa-circle-o-notch:before{content:"\\F1CE"}.fa-ra:before,.fa-rebel:before,.fa-resistance:before{content:"\\F1D0"}.fa-empire:before,.fa-ge:before{content:"\\F1D1"}.fa-git-square:before{content:"\\F1D2"}.fa-git:before{content:"\\F1D3"}.fa-hacker-news:before,.fa-y-combinator-square:before,.fa-yc-square:before{content:"\\F1D4"}.fa-tencent-weibo:before{content:"\\F1D5"}.fa-qq:before{content:"\\F1D6"}.fa-wechat:before,.fa-weixin:before{content:"\\F1D7"}.fa-paper-plane:before,.fa-send:before{content:"\\F1D8"}.fa-paper-plane-o:before,.fa-send-o:before{content:"\\F1D9"}.fa-history:before{content:"\\F1DA"}.fa-circle-thin:before{content:"\\F1DB"}.fa-header:before{content:"\\F1DC"}.fa-paragraph:before{content:"\\F1DD"}.fa-sliders:before{content:"\\F1DE"}.fa-share-alt:before{content:"\\F1E0"}.fa-share-alt-square:before{content:"\\F1E1"}.fa-bomb:before{content:"\\F1E2"}.fa-futbol-o:before,.fa-soccer-ball-o:before{content:"\\F1E3"}.fa-tty:before{content:"\\F1E4"}.fa-binoculars:before{content:"\\F1E5"}.fa-plug:before{content:"\\F1E6"}.fa-slideshare:before{content:"\\F1E7"}.fa-twitch:before{content:"\\F1E8"}.fa-yelp:before{content:"\\F1E9"}.fa-newspaper-o:before{content:"\\F1EA"}.fa-wifi:before{content:"\\F1EB"}.fa-calculator:before{content:"\\F1EC"}.fa-paypal:before{content:"\\F1ED"}.fa-google-wallet:before{content:"\\F1EE"}.fa-cc-visa:before{content:"\\F1F0"}.fa-cc-mastercard:before{content:"\\F1F1"}.fa-cc-discover:before{content:"\\F1F2"}.fa-cc-amex:before{content:"\\F1F3"}.fa-cc-paypal:before{content:"\\F1F4"}.fa-cc-stripe:before{content:"\\F1F5"}.fa-bell-slash:before{content:"\\F1F6"}.fa-bell-slash-o:before{content:"\\F1F7"}.fa-trash:before{content:"\\F1F8"}.fa-copyright:before{content:"\\F1F9"}.fa-at:before{content:"\\F1FA"}.fa-eyedropper:before{content:"\\F1FB"}.fa-paint-brush:before{content:"\\F1FC"}.fa-birthday-cake:before{content:"\\F1FD"}.fa-area-chart:before{content:"\\F1FE"}.fa-pie-chart:before{content:"\\F200"}.fa-line-chart:before{content:"\\F201"}.fa-lastfm:before{content:"\\F202"}.fa-lastfm-square:before{content:"\\F203"}.fa-toggle-off:before{content:"\\F204"}.fa-toggle-on:before{content:"\\F205"}.fa-bicycle:before{content:"\\F206"}.fa-bus:before{content:"\\F207"}.fa-ioxhost:before{content:"\\F208"}.fa-angellist:before{content:"\\F209"}.fa-cc:before{content:"\\F20A"}.fa-ils:before,.fa-shekel:before,.fa-sheqel:before{content:"\\F20B"}.fa-meanpath:before{content:"\\F20C"}.fa-buysellads:before{content:"\\F20D"}.fa-connectdevelop:before{content:"\\F20E"}.fa-dashcube:before{content:"\\F210"}.fa-forumbee:before{content:"\\F211"}.fa-leanpub:before{content:"\\F212"}.fa-sellsy:before{content:"\\F213"}.fa-shirtsinbulk:before{content:"\\F214"}.fa-simplybuilt:before{content:"\\F215"}.fa-skyatlas:before{content:"\\F216"}.fa-cart-plus:before{content:"\\F217"}.fa-cart-arrow-down:before{content:"\\F218"}.fa-diamond:before{content:"\\F219"}.fa-ship:before{content:"\\F21A"}.fa-user-secret:before{content:"\\F21B"}.fa-motorcycle:before{content:"\\F21C"}.fa-street-view:before{content:"\\F21D"}.fa-heartbeat:before{content:"\\F21E"}.fa-venus:before{content:"\\F221"}.fa-mars:before{content:"\\F222"}.fa-mercury:before{content:"\\F223"}.fa-intersex:before,.fa-transgender:before{content:"\\F224"}.fa-transgender-alt:before{content:"\\F225"}.fa-venus-double:before{content:"\\F226"}.fa-mars-double:before{content:"\\F227"}.fa-venus-mars:before{content:"\\F228"}.fa-mars-stroke:before{content:"\\F229"}.fa-mars-stroke-v:before{content:"\\F22A"}.fa-mars-stroke-h:before{content:"\\F22B"}.fa-neuter:before{content:"\\F22C"}.fa-genderless:before{content:"\\F22D"}.fa-facebook-official:before{content:"\\F230"}.fa-pinterest-p:before{content:"\\F231"}.fa-whatsapp:before{content:"\\F232"}.fa-server:before{content:"\\F233"}.fa-user-plus:before{content:"\\F234"}.fa-user-times:before{content:"\\F235"}.fa-bed:before,.fa-hotel:before{content:"\\F236"}.fa-viacoin:before{content:"\\F237"}.fa-train:before{content:"\\F238"}.fa-subway:before{content:"\\F239"}.fa-medium:before{content:"\\F23A"}.fa-y-combinator:before,.fa-yc:before{content:"\\F23B"}.fa-optin-monster:before{content:"\\F23C"}.fa-opencart:before{content:"\\F23D"}.fa-expeditedssl:before{content:"\\F23E"}.fa-battery-4:before,.fa-battery-full:before,.fa-battery:before{content:"\\F240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\\F241"}.fa-battery-2:before,.fa-battery-half:before{content:"\\F242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\\F243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\\F244"}.fa-mouse-pointer:before{content:"\\F245"}.fa-i-cursor:before{content:"\\F246"}.fa-object-group:before{content:"\\F247"}.fa-object-ungroup:before{content:"\\F248"}.fa-sticky-note:before{content:"\\F249"}.fa-sticky-note-o:before{content:"\\F24A"}.fa-cc-jcb:before{content:"\\F24B"}.fa-cc-diners-club:before{content:"\\F24C"}.fa-clone:before{content:"\\F24D"}.fa-balance-scale:before{content:"\\F24E"}.fa-hourglass-o:before{content:"\\F250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\\F251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\\F252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\\F253"}.fa-hourglass:before{content:"\\F254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\\F255"}.fa-hand-paper-o:before,.fa-hand-stop-o:before{content:"\\F256"}.fa-hand-scissors-o:before{content:"\\F257"}.fa-hand-lizard-o:before{content:"\\F258"}.fa-hand-spock-o:before{content:"\\F259"}.fa-hand-pointer-o:before{content:"\\F25A"}.fa-hand-peace-o:before{content:"\\F25B"}.fa-trademark:before{content:"\\F25C"}.fa-registered:before{content:"\\F25D"}.fa-creative-commons:before{content:"\\F25E"}.fa-gg:before{content:"\\F260"}.fa-gg-circle:before{content:"\\F261"}.fa-tripadvisor:before{content:"\\F262"}.fa-odnoklassniki:before{content:"\\F263"}.fa-odnoklassniki-square:before{content:"\\F264"}.fa-get-pocket:before{content:"\\F265"}.fa-wikipedia-w:before{content:"\\F266"}.fa-safari:before{content:"\\F267"}.fa-chrome:before{content:"\\F268"}.fa-firefox:before{content:"\\F269"}.fa-opera:before{content:"\\F26A"}.fa-internet-explorer:before{content:"\\F26B"}.fa-television:before,.fa-tv:before{content:"\\F26C"}.fa-contao:before{content:"\\F26D"}.fa-500px:before{content:"\\F26E"}.fa-amazon:before{content:"\\F270"}.fa-calendar-plus-o:before{content:"\\F271"}.fa-calendar-minus-o:before{content:"\\F272"}.fa-calendar-times-o:before{content:"\\F273"}.fa-calendar-check-o:before{content:"\\F274"}.fa-industry:before{content:"\\F275"}.fa-map-pin:before{content:"\\F276"}.fa-map-signs:before{content:"\\F277"}.fa-map-o:before{content:"\\F278"}.fa-map:before{content:"\\F279"}.fa-commenting:before{content:"\\F27A"}.fa-commenting-o:before{content:"\\F27B"}.fa-houzz:before{content:"\\F27C"}.fa-vimeo:before{content:"\\F27D"}.fa-black-tie:before{content:"\\F27E"}.fa-fonticons:before{content:"\\F280"}.fa-reddit-alien:before{content:"\\F281"}.fa-edge:before{content:"\\F282"}.fa-credit-card-alt:before{content:"\\F283"}.fa-codiepie:before{content:"\\F284"}.fa-modx:before{content:"\\F285"}.fa-fort-awesome:before{content:"\\F286"}.fa-usb:before{content:"\\F287"}.fa-product-hunt:before{content:"\\F288"}.fa-mixcloud:before{content:"\\F289"}.fa-scribd:before{content:"\\F28A"}.fa-pause-circle:before{content:"\\F28B"}.fa-pause-circle-o:before{content:"\\F28C"}.fa-stop-circle:before{content:"\\F28D"}.fa-stop-circle-o:before{content:"\\F28E"}.fa-shopping-bag:before{content:"\\F290"}.fa-shopping-basket:before{content:"\\F291"}.fa-hashtag:before{content:"\\F292"}.fa-bluetooth:before{content:"\\F293"}.fa-bluetooth-b:before{content:"\\F294"}.fa-percent:before{content:"\\F295"}.fa-gitlab:before{content:"\\F296"}.fa-wpbeginner:before{content:"\\F297"}.fa-wpforms:before{content:"\\F298"}.fa-envira:before{content:"\\F299"}.fa-universal-access:before{content:"\\F29A"}.fa-wheelchair-alt:before{content:"\\F29B"}.fa-question-circle-o:before{content:"\\F29C"}.fa-blind:before{content:"\\F29D"}.fa-audio-description:before{content:"\\F29E"}.fa-volume-control-phone:before{content:"\\F2A0"}.fa-braille:before{content:"\\F2A1"}.fa-assistive-listening-systems:before{content:"\\F2A2"}.fa-american-sign-language-interpreting:before,.fa-asl-interpreting:before{content:"\\F2A3"}.fa-deaf:before,.fa-deafness:before,.fa-hard-of-hearing:before{content:"\\F2A4"}.fa-glide:before{content:"\\F2A5"}.fa-glide-g:before{content:"\\F2A6"}.fa-sign-language:before,.fa-signing:before{content:"\\F2A7"}.fa-low-vision:before{content:"\\F2A8"}.fa-viadeo:before{content:"\\F2A9"}.fa-viadeo-square:before{content:"\\F2AA"}.fa-snapchat:before{content:"\\F2AB"}.fa-snapchat-ghost:before{content:"\\F2AC"}.fa-snapchat-square:before{content:"\\F2AD"}.fa-pied-piper:before{content:"\\F2AE"}.fa-first-order:before{content:"\\F2B0"}.fa-yoast:before{content:"\\F2B1"}.fa-themeisle:before{content:"\\F2B2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\\F2B3"}.fa-fa:before,.fa-font-awesome:before{content:"\\F2B4"}.fa-handshake-o:before{content:"\\F2B5"}.fa-envelope-open:before{content:"\\F2B6"}.fa-envelope-open-o:before{content:"\\F2B7"}.fa-linode:before{content:"\\F2B8"}.fa-address-book:before{content:"\\F2B9"}.fa-address-book-o:before{content:"\\F2BA"}.fa-address-card:before,.fa-vcard:before{content:"\\F2BB"}.fa-address-card-o:before,.fa-vcard-o:before{content:"\\F2BC"}.fa-user-circle:before{content:"\\F2BD"}.fa-user-circle-o:before{content:"\\F2BE"}.fa-user-o:before{content:"\\F2C0"}.fa-id-badge:before{content:"\\F2C1"}.fa-drivers-license:before,.fa-id-card:before{content:"\\F2C2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\\F2C3"}.fa-quora:before{content:"\\F2C4"}.fa-free-code-camp:before{content:"\\F2C5"}.fa-telegram:before{content:"\\F2C6"}.fa-thermometer-4:before,.fa-thermometer-full:before,.fa-thermometer:before{content:"\\F2C7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\\F2C8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\\F2C9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\\F2CA"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\\F2CB"}.fa-shower:before{content:"\\F2CC"}.fa-bath:before,.fa-bathtub:before,.fa-s15:before{content:"\\F2CD"}.fa-podcast:before{content:"\\F2CE"}.fa-window-maximize:before{content:"\\F2D0"}.fa-window-minimize:before{content:"\\F2D1"}.fa-window-restore:before{content:"\\F2D2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\\F2D3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\\F2D4"}.fa-bandcamp:before{content:"\\F2D5"}.fa-grav:before{content:"\\F2D6"}.fa-etsy:before{content:"\\F2D7"}.fa-imdb:before{content:"\\F2D8"}.fa-ravelry:before{content:"\\F2D9"}.fa-eercast:before{content:"\\F2DA"}.fa-microchip:before{content:"\\F2DB"}.fa-snowflake-o:before{content:"\\F2DC"}.fa-superpowers:before{content:"\\F2DD"}.fa-wpexplorer:before{content:"\\F2DE"}.fa-meetup:before{content:"\\F2E0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}',""]); },function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<t.length;r++){var a=t[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){e.exports=n.p+"assets/js/674f50d287a8c48dc19ba404d20fe713.eot"},function(e,t,n){e.exports=n.p+"assets/js/674f50d287a8c48dc19ba404d20fe713.eot"},function(e,t,n){e.exports=n.p+"assets/js/af7ae505a9eed503f8b8e6982036873e.woff2"},function(e,t,n){e.exports=n.p+"assets/js/fee66e712a8a08eef5805a46892932ad.woff"},function(e,t,n){e.exports=n.p+"assets/js/b06871f281fee6b241d60582ae9369b9.ttf"},function(e,t,n){e.exports=n.p+"assets/js/912ec66d7572ff821749319396470bde.svg"},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=p[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(c(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(c(o.parts[i],t));p[o.id]={id:o.id,refs:1,parts:a}}}}function r(e){for(var t=[],n={},o=0;o<e.length;o++){var r=e[o],i=r[0],a=r[1],s=r[2],f=r[3],c={css:a,media:s,sourceMap:f};n[i]?n[i].parts.push(c):t.push(n[i]={id:i,parts:[c]})}return t}function i(e,t){var n=b(),o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",i(e,t),t}function f(e){var t=document.createElement("link");return t.rel="stylesheet",i(e,t),t}function c(e,t){var n,o,r;if(t.singleton){var i=v++;n=g||(g=s(t)),o=l.bind(null,n,i,!1),r=l.bind(null,n,i,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=f(t),o=d.bind(null,n),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=u.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function l(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=x(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function u(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t){var n=t.css,o=t.sourceMap;o&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var r=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(r),i&&URL.revokeObjectURL(i)}var p={},h=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},m=h(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),b=h(function(){return document.head||document.getElementsByTagName("head")[0]}),g=null,v=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=m()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=r(e);return o(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],f=p[s.id];f.refs--,i.push(f)}if(e){var c=r(e);o(c,t)}for(var a=0;a<i.length;a++){var f=i[a];if(0===f.refs){for(var l=0;l<f.parts.length;l++)f.parts[l]();delete p[f.id]}}}};var x=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var o=n(15);"string"==typeof o&&(o=[[e.id,o,""]]);n(13)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,n){t=e.exports=n(6)(),t.push([e.id,"@font-face{font-family:flexslider-icon;src:url("+n(16)+");src:url("+n(16)+'?#iefix) format("embedded-opentype"),url('+n(17)+') format("woff"),url('+n(18)+') format("truetype"),url('+n(19)+'#flexslider-icon) format("svg");font-weight:400;font-style:normal}.flex-container a:hover,.flex-slider a:hover{outline:none}.flex-control-nav,.flex-direction-nav,.slides,.slides>li{margin:0;padding:0;list-style:none}.flex-pauseplay span{text-transform:capitalize}.flexslider{margin:0;padding:0}.flexslider .slides>li{display:none;-webkit-backface-visibility:hidden}.flexslider .slides img{width:100%;display:block}.flexslider .slides:after{content:" ";display:block;clear:both;visibility:hidden;line-height:0;height:0}html[xmlns] .flexslider .slides{display:block}* html .flexslider .slides{height:1%}.no-js .flexslider .slides>li:first-child{display:block}.flexslider{margin:0 0 60px;background:#fff;border:4px solid #fff;position:relative;zoom:1;border-radius:4px;-o-box-shadow:"" 0 1px 4px rgba(0,0,0,.2);box-shadow:0 1px 4px "" rgba(0,0,0,.2)}.flexslider .slides{zoom:1}.flexslider .slides img{height:auto;-moz-user-select:none}.flex-viewport{max-height:2000px;transition:all 1s ease}.loading .flex-viewport{max-height:300px}.carousel li{margin-right:5px}.flex-direction-nav{*height:0}.flex-direction-nav a{text-decoration:none;display:block;width:40px;height:40px;margin:-20px 0 0;position:absolute;top:50%;z-index:10;overflow:hidden;opacity:0;cursor:pointer;transition:all .3s ease-in-out}.flex-direction-nav a,.flex-direction-nav a:before{color:rgba(0,0,0,.8);text-shadow:1px 1px 0 hsla(0,0%,100%,.3)}.flex-direction-nav a:before{font-family:flexslider-icon;font-size:40px;display:inline-block;content:"\\F001"}.flex-direction-nav a.flex-next:before{content:"\\F002"}.flex-direction-nav .flex-prev{left:-50px}.flex-direction-nav .flex-next{right:-50px;text-align:right}.flexslider:hover .flex-direction-nav .flex-prev{opacity:.7;left:10px}.flexslider:hover .flex-direction-nav .flex-prev:hover{opacity:1}.flexslider:hover .flex-direction-nav .flex-next{opacity:.7;right:10px}.flexslider:hover .flex-direction-nav .flex-next:hover{opacity:1}.flex-direction-nav .flex-disabled{opacity:0!important;filter:alpha(opacity=0);cursor:default;z-index:-1}.flex-pauseplay a{display:block;width:20px;height:20px;position:absolute;bottom:5px;left:10px;opacity:.8;z-index:10;overflow:hidden;cursor:pointer;color:#000}.flex-pauseplay a:before{font-family:flexslider-icon;font-size:20px;display:inline-block;content:"\\F004"}.flex-pauseplay a:hover{opacity:1}.flex-pauseplay a.flex-play:before{content:"\\F003"}.flex-control-nav{width:100%;position:absolute;bottom:-40px;text-align:center}.flex-control-nav li{margin:0 6px;display:inline-block;zoom:1;*display:inline}.flex-control-paging li a{width:11px;height:11px;display:block;background:#666;background:rgba(0,0,0,.5);cursor:pointer;text-indent:-9999px;-o-box-shadow:inset 0 0 3px rgba(0,0,0,.3);box-shadow:inset 0 0 3px rgba(0,0,0,.3);border-radius:20px}.flex-control-paging li a:hover{background:#333;background:rgba(0,0,0,.7)}.flex-control-paging li a.flex-active{background:#000;background:rgba(0,0,0,.9);cursor:default}.flex-control-thumbs{margin:5px 0 0;position:static;overflow:hidden}.flex-control-thumbs li{width:25%;float:left;margin:0}.flex-control-thumbs img{width:100%;height:auto;display:block;opacity:.7;cursor:pointer;-moz-user-select:none;transition:all 1s ease}.flex-control-thumbs img:hover{opacity:1}.flex-control-thumbs .flex-active{opacity:1;cursor:default}@media screen and (max-width:860px){.flex-direction-nav .flex-prev{opacity:1;left:10px}.flex-direction-nav .flex-next{opacity:1;right:10px}}',""])},function(e,t,n){e.exports=n.p+"assets/js/9c9cb7a6055043933ba68854f521af45.eot"},function(e,t){e.exports="data:application/font-woff;base64,d09GRgABAAAAAAT0AA0AAAAAB2QAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABMAAAABoAAAAcZsz6EkdERUYAAAFMAAAAHwAAACAANgAGT1MvMgAAAWwAAABHAAAAVj7i2qhjbWFwAAABtAAAAEwAAAFW4CwD4mdhc3AAAAIAAAAACAAAAAj//wADZ2x5ZgAAAggAAAEmAAABnEQ02FZoZWFkAAADMAAAADEAAAA2+26XP2hoZWEAAANkAAAAHgAAACQDav/KaG10eAAAA4QAAAAhAAAAJAkVADdsb2NhAAADqAAAABQAAAAUAUoBsG1heHAAAAO8AAAAHQAAACAATQAjbmFtZQAAA9wAAADhAAAB3d8yt8Bwb3N0AAAEwAAAADMAAABk1Pm6tnicY2BgYGQAgjO2i86D6LPuqxfCaABMzwc8AAB4nGNgZGBg4ANiCQYQYGJgZGBm4ACSLGAeAwAEvAA9AHicY2BkjGScwMDKwMGozGjJwMBgB6WvM4gxFDMwMDGwMjPAgQCCyRCQ5prC4PCB4QMrY8P/AwwajA0MDg0MDIwgOQBthwqcAHic3YzBDcAgDAMvbYAO0TEYhP2nYAPqQD+sgCXr5MgOcLP8YoSaks3sVDGLxgU9jRGFzuJsufxo4SQ1i46Z/5GoVSw3GcfrA/tPBu4AAAAB//8AAnicXZCxTgJBEIbnF1h31iwEb3MXQUPEeBQWJghYWMgDWFhb4RuYWHnVvQONpcnxABYWxOoegTeQF/AVDmcXjcZi//1nkvky/xDIbj5RwyM5omSQjq4xGfYQuxYSL6r/vmBecJcj5ixj+bpchBds9mQ6Ygh0JJxIOAnRaRg8RzoW3CBogCISUofdluT0oV7wqzUeZaz1LNHISEN4tPnADPe0J7yGSsft0SRpxA531ZvSWuFGPS/rSuFBqfqyroloR2bWyDGjFvWI0HbqDP0weYVhvPuvRm5UrkyQ9a/FbfXiLWZe/3jZyZLFHDU6+M548hNyciH5LoPGmHNhbFMXxuyHWBlbayJeWembQjd9sb2lCTlLlMj99m0co6ymyKupxPkCUZ1CeAAAeJxjYGRgYADiBTs/3Iznt/nKwM14ACjCcNZ99UIE/f8A4wHGBiCXg4EJJAoAh5oNWwAAAHicY2BkYGBs+H+AQYPxAAPDPwcgCRRBAZwAhB0FNAAAeJxjPMAAAVMZGBgVGHiBWJYxAchuAOIFDLwgKQBCjgNTAAAAAAAAAAAAAAAAJABMAGYAlgDAAM54nGNgZGBg4GRQYGBiAAEQycgAEnMA8xkABnoAcQAAAHiclY8xbgIxEEWfYUFBRKJLOuQ+2pXtFEE06TjCXgAMWmnFSl4KTkIOlKNwBC6QwTtKkSbCkuU34z9ff4BnLhjux7DAKo8oWCuPeeNLuRDNVXnC3MyVpyzMhyhNMZPOMk/decQTTnlMzadyIZpv5Qkv3JSnLM0re1oiZ3p5G3bCiVJoS8cR9m08922zi6lstp00fn+GcpOLU34TBxm3BCoJYmUp+4/9oPGspBfydVK9i213PG26dIg2VM6u7Z8Y0vGrMpTBeRE/ukKdFb0ohgw+56WOqW/E21fuYc8fKF5PUQAAAHicY2BiwA84gZiRgYmRiZGZkYWRlZGNkZ29NC/TzcDAEEobQWljKG0CpU2htAEATR0NNQA="},function(e,t,n){e.exports=n.p+"assets/js/b4c9e5057989b9727a5df4e0a21af33c.ttf"},function(e,t,n){e.exports=n.p+"assets/js/10e8a5455c4522c48aa975eacd4f0023.svg"},function(e,t,n){(function(e){!function(t){var n=!0;t.flexslider=function(o,r){var i=t(o);i.vars=t.extend({},t.flexslider.defaults,r);var a,s=i.vars.namespace,f=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,c=("ontouchstart"in window||f||window.DocumentTouch&&document instanceof DocumentTouch)&&i.vars.touch,l="click touchend MSPointerUp keyup",u="",d="vertical"===i.vars.direction,p=i.vars.reverse,h=i.vars.itemWidth>0,m="fade"===i.vars.animation,b=""!==i.vars.asNavFor,g={};t.data(o,"flexslider",i),g={init:function(){i.animating=!1,i.currentSlide=parseInt(i.vars.startAt?i.vars.startAt:0,10),isNaN(i.currentSlide)&&(i.currentSlide=0),i.animatingTo=i.currentSlide,i.atEnd=0===i.currentSlide||i.currentSlide===i.last,i.containerSelector=i.vars.selector.substr(0,i.vars.selector.search(" ")),i.slides=t(i.vars.selector,i),i.container=t(i.containerSelector,i),i.count=i.slides.length,i.syncExists=t(i.vars.sync).length>0,"slide"===i.vars.animation&&(i.vars.animation="swing"),i.prop=d?"top":"marginLeft",i.args={},i.manualPause=!1,i.stopped=!1,i.started=!1,i.startTimeout=null,i.transitions=!i.vars.video&&!m&&i.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(void 0!==e.style[t[n]])return i.pfx=t[n].replace("Perspective","").toLowerCase(),i.prop="-"+i.pfx+"-transform",!0;return!1}(),i.ensureAnimationEnd="",""!==i.vars.controlsContainer&&(i.controlsContainer=t(i.vars.controlsContainer).length>0&&t(i.vars.controlsContainer)),""!==i.vars.manualControls&&(i.manualControls=t(i.vars.manualControls).length>0&&t(i.vars.manualControls)),""!==i.vars.customDirectionNav&&(i.customDirectionNav=2===t(i.vars.customDirectionNav).length&&t(i.vars.customDirectionNav)),i.vars.randomize&&(i.slides.sort(function(){return Math.round(Math.random())-.5}),i.container.empty().append(i.slides)),i.doMath(),i.setup("init"),i.vars.controlNav&&g.controlNav.setup(),i.vars.directionNav&&g.directionNav.setup(),i.vars.keyboard&&(1===t(i.containerSelector).length||i.vars.multipleKeyboard)&&t(document).bind("keyup",function(e){var t=e.keyCode;if(!i.animating&&(39===t||37===t)){var n=39===t?i.getTarget("next"):37===t&&i.getTarget("prev");i.flexAnimate(n,i.vars.pauseOnAction)}}),i.vars.mousewheel&&i.bind("mousewheel",function(e,t,n,o){e.preventDefault();var r=t<0?i.getTarget("next"):i.getTarget("prev");i.flexAnimate(r,i.vars.pauseOnAction)}),i.vars.pausePlay&&g.pausePlay.setup(),i.vars.slideshow&&i.vars.pauseInvisible&&g.pauseInvisible.init(),i.vars.slideshow&&(i.vars.pauseOnHover&&i.hover(function(){i.manualPlay||i.manualPause||i.pause()},function(){i.manualPause||i.manualPlay||i.stopped||i.play()}),i.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(i.vars.initDelay>0?i.startTimeout=setTimeout(i.play,i.vars.initDelay):i.play())),b&&g.asNav.setup(),c&&i.vars.touch&&g.touch(),(!m||m&&i.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",g.resize()),i.find("img").attr("draggable","false"),setTimeout(function(){i.vars.start(i)},200)},asNav:{setup:function(){i.asNav=!0,i.animatingTo=Math.floor(i.currentSlide/i.move),i.currentItem=i.currentSlide,i.slides.removeClass(s+"active-slide").eq(i.currentItem).addClass(s+"active-slide"),f?(o._slider=i,i.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var n=t(this),o=n.index();t(i.vars.asNavFor).data("flexslider").animating||n.hasClass("active")||(i.direction=i.currentItem<o?"next":"prev",i.flexAnimate(o,i.vars.pauseOnAction,!1,!0,!0))})})):i.slides.on(l,function(e){e.preventDefault();var n=t(this),o=n.index();n.offset().left-t(i).scrollLeft()<=0&&n.hasClass(s+"active-slide")?i.flexAnimate(i.getTarget("prev"),!0):t(i.vars.asNavFor).data("flexslider").animating||n.hasClass(s+"active-slide")||(i.direction=i.currentItem<o?"next":"prev",i.flexAnimate(o,i.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){i.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging()},setupPaging:function(){var e,n,o="thumbnails"===i.vars.controlNav?"control-thumbs":"control-paging",r=1;if(i.controlNavScaffold=t('<ol class="'+s+"control-nav "+s+o+'"></ol>'),i.pagingCount>1)for(var a=0;a<i.pagingCount;a++){n=i.slides.eq(a),void 0===n.attr("data-thumb-alt")&&n.attr("data-thumb-alt","");var f=""!==n.attr("data-thumb-alt")?f=' alt="'+n.attr("data-thumb-alt")+'"':"";if(e="thumbnails"===i.vars.controlNav?'<img src="'+n.attr("data-thumb")+'"'+f+"/>":'<a href="#">'+r+"</a>","thumbnails"===i.vars.controlNav&&!0===i.vars.thumbCaptions){var c=n.attr("data-thumbcaption");""!==c&&void 0!==c&&(e+='<span class="'+s+'caption">'+c+"</span>")}i.controlNavScaffold.append("<li>"+e+"</li>"),r++}i.controlsContainer?t(i.controlsContainer).append(i.controlNavScaffold):i.append(i.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),i.controlNavScaffold.delegate("a, img",l,function(e){if(e.preventDefault(),""===u||u===e.type){var n=t(this),o=i.controlNav.index(n);n.hasClass(s+"active")||(i.direction=o>i.currentSlide?"next":"prev",i.flexAnimate(o,i.vars.pauseOnAction))}""===u&&(u=e.type),g.setToClearWatchedEvent()})},setupManual:function(){i.controlNav=i.manualControls,g.controlNav.active(),i.controlNav.bind(l,function(e){if(e.preventDefault(),""===u||u===e.type){var n=t(this),o=i.controlNav.index(n);n.hasClass(s+"active")||(o>i.currentSlide?i.direction="next":i.direction="prev",i.flexAnimate(o,i.vars.pauseOnAction))}""===u&&(u=e.type),g.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===i.vars.controlNav?"img":"a";i.controlNav=t("."+s+"control-nav li "+e,i.controlsContainer?i.controlsContainer:i)},active:function(){i.controlNav.removeClass(s+"active").eq(i.animatingTo).addClass(s+"active")},update:function(e,n){i.pagingCount>1&&"add"===e?i.controlNavScaffold.append(t('<li><a href="#">'+i.count+"</a></li>")):1===i.pagingCount?i.controlNavScaffold.find("li").remove():i.controlNav.eq(n).closest("li").remove(),g.controlNav.set(),i.pagingCount>1&&i.pagingCount!==i.controlNav.length?i.update(n,e):g.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+s+'direction-nav"><li class="'+s+'nav-prev"><a class="'+s+'prev" href="#">'+i.vars.prevText+'</a></li><li class="'+s+'nav-next"><a class="'+s+'next" href="#">'+i.vars.nextText+"</a></li></ul>");i.customDirectionNav?i.directionNav=i.customDirectionNav:i.controlsContainer?(t(i.controlsContainer).append(e),i.directionNav=t("."+s+"direction-nav li a",i.controlsContainer)):(i.append(e),i.directionNav=t("."+s+"direction-nav li a",i)),g.directionNav.update(),i.directionNav.bind(l,function(e){e.preventDefault();var n;""!==u&&u!==e.type||(n=t(this).hasClass(s+"next")?i.getTarget("next"):i.getTarget("prev"),i.flexAnimate(n,i.vars.pauseOnAction)),""===u&&(u=e.type),g.setToClearWatchedEvent()})},update:function(){var e=s+"disabled";1===i.pagingCount?i.directionNav.addClass(e).attr("tabindex","-1"):i.vars.animationLoop?i.directionNav.removeClass(e).removeAttr("tabindex"):0===i.animatingTo?i.directionNav.removeClass(e).filter("."+s+"prev").addClass(e).attr("tabindex","-1"):i.animatingTo===i.last?i.directionNav.removeClass(e).filter("."+s+"next").addClass(e).attr("tabindex","-1"):i.directionNav.removeClass(e).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+s+'pauseplay"><a href="#"></a></div>');i.controlsContainer?(i.controlsContainer.append(e),i.pausePlay=t("."+s+"pauseplay a",i.controlsContainer)):(i.append(e),i.pausePlay=t("."+s+"pauseplay a",i)),g.pausePlay.update(i.vars.slideshow?s+"pause":s+"play"),i.pausePlay.bind(l,function(e){e.preventDefault(),""!==u&&u!==e.type||(t(this).hasClass(s+"pause")?(i.manualPause=!0,i.manualPlay=!1,i.pause()):(i.manualPause=!1,i.manualPlay=!0,i.play())),""===u&&(u=e.type),g.setToClearWatchedEvent()})},update:function(e){"play"===e?i.pausePlay.removeClass(s+"pause").addClass(s+"play").html(i.vars.playText):i.pausePlay.removeClass(s+"play").addClass(s+"pause").html(i.vars.pauseText)}},touch:function(){function t(e){e.stopPropagation(),i.animating?e.preventDefault():(i.pause(),o._gesture.addPointer(e.pointerId),A=0,l=d?i.h:i.w,b=Number(new Date),c=h&&p&&i.animatingTo===i.last?0:h&&p?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:h&&i.currentSlide===i.last?i.limit:h?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:p?(i.last-i.currentSlide+i.cloneOffset)*l:(i.currentSlide+i.cloneOffset)*l)}function n(t){t.stopPropagation();var n=t.target._slider;if(n){var r=-t.translationX,i=-t.translationY;if(A+=d?i:r,u=A,x=d?Math.abs(A)<Math.abs(-r):Math.abs(A)<Math.abs(-i),t.detail===t.MSGESTURE_FLAG_INERTIA)return void e(function(){o._gesture.stop()});(!x||Number(new Date)-b>500)&&(t.preventDefault(),!m&&n.transitions&&(n.vars.animationLoop||(u=A/(0===n.currentSlide&&A<0||n.currentSlide===n.last&&A>0?Math.abs(A)/l+2:1)),n.setProps(c+u,"setTouch")))}}function r(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!x&&null!==u){var n=p?-u:u,o=n>0?t.getTarget("next"):t.getTarget("prev");t.canAdvance(o)&&(Number(new Date)-b<550&&Math.abs(n)>50||Math.abs(n)>l/2)?t.flexAnimate(o,t.vars.pauseOnAction):m||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}a=null,s=null,u=null,c=null,A=0}}var a,s,c,l,u,b,g,v,y,x=!1,F=0,w=0,A=0;f?(o.style.msTouchAction="none",o._gesture=new MSGesture,o._gesture.target=o,o.addEventListener("MSPointerDown",t,!1),o._slider=i,o.addEventListener("MSGestureChange",n,!1),o.addEventListener("MSGestureEnd",r,!1)):(g=function(e){i.animating?e.preventDefault():(window.navigator.msPointerEnabled||1===e.touches.length)&&(i.pause(),l=d?i.h:i.w,b=Number(new Date),F=e.touches[0].pageX,w=e.touches[0].pageY,c=h&&p&&i.animatingTo===i.last?0:h&&p?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:h&&i.currentSlide===i.last?i.limit:h?(i.itemW+i.vars.itemMargin)*i.move*i.currentSlide:p?(i.last-i.currentSlide+i.cloneOffset)*l:(i.currentSlide+i.cloneOffset)*l,a=d?w:F,s=d?F:w,o.addEventListener("touchmove",v,!1),o.addEventListener("touchend",y,!1))},v=function(e){F=e.touches[0].pageX,w=e.touches[0].pageY,u=d?a-w:a-F,x=d?Math.abs(u)<Math.abs(F-s):Math.abs(u)<Math.abs(w-s);(!x||Number(new Date)-b>500)&&(e.preventDefault(),!m&&i.transitions&&(i.vars.animationLoop||(u/=0===i.currentSlide&&u<0||i.currentSlide===i.last&&u>0?Math.abs(u)/l+2:1),i.setProps(c+u,"setTouch")))},y=function(e){if(o.removeEventListener("touchmove",v,!1),i.animatingTo===i.currentSlide&&!x&&null!==u){var t=p?-u:u,n=t>0?i.getTarget("next"):i.getTarget("prev");i.canAdvance(n)&&(Number(new Date)-b<550&&Math.abs(t)>50||Math.abs(t)>l/2)?i.flexAnimate(n,i.vars.pauseOnAction):m||i.flexAnimate(i.currentSlide,i.vars.pauseOnAction,!0)}o.removeEventListener("touchend",y,!1),a=null,s=null,u=null,c=null},o.addEventListener("touchstart",g,!1))},resize:function(){!i.animating&&i.is(":visible")&&(h||i.doMath(),m?g.smoothHeight():h?(i.slides.width(i.computedW),i.update(i.pagingCount),i.setProps()):d?(i.viewport.height(i.h),i.setProps(i.h,"setTotal")):(i.vars.smoothHeight&&g.smoothHeight(),i.newSlides.width(i.computedW),i.setProps(i.computedW,"setTotal")))},smoothHeight:function(e){if(!d||m){var t=m?i:i.viewport;e?t.animate({height:i.slides.eq(i.animatingTo).innerHeight()},e):t.innerHeight(i.slides.eq(i.animatingTo).innerHeight())}},sync:function(e){var n=t(i.vars.sync).data("flexslider"),o=i.animatingTo;switch(e){case"animate":n.flexAnimate(o,i.vars.pauseOnAction,!1,!0);break;case"play":n.playing||n.asNav||n.play();break;case"pause":n.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=g.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){g.pauseInvisible.isHidden()?i.startTimeout?clearTimeout(i.startTimeout):i.pause():i.started?i.play():i.vars.initDelay>0?setTimeout(i.play,i.vars.initDelay):i.play()})}},isHidden:function(){var e=g.pauseInvisible.getHiddenProp();return!!e&&document[e]},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(a),a=setTimeout(function(){u=""},3e3)}},i.flexAnimate=function(e,n,o,r,a){if(i.vars.animationLoop||e===i.currentSlide||(i.direction=e>i.currentSlide?"next":"prev"),b&&1===i.pagingCount&&(i.direction=i.currentItem<e?"next":"prev"),!i.animating&&(i.canAdvance(e,a)||o)&&i.is(":visible")){if(b&&r){var f=t(i.vars.asNavFor).data("flexslider");if(i.atEnd=0===e||e===i.count-1,f.flexAnimate(e,!0,!1,!0,a),i.direction=i.currentItem<e?"next":"prev",f.direction=i.direction,Math.ceil((e+1)/i.visible)-1===i.currentSlide||0===e)return i.currentItem=e,i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),!1;i.currentItem=e,i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),e=Math.floor(e/i.visible)}if(i.animating=!0,i.animatingTo=e,n&&i.pause(),i.vars.before(i),i.syncExists&&!a&&g.sync("animate"),i.vars.controlNav&&g.controlNav.active(),h||i.slides.removeClass(s+"active-slide").eq(e).addClass(s+"active-slide"),i.atEnd=0===e||e===i.last,i.vars.directionNav&&g.directionNav.update(),e===i.last&&(i.vars.end(i),i.vars.animationLoop||i.pause()),m)c?(i.slides.eq(i.currentSlide).css({opacity:0,zIndex:1}),i.slides.eq(e).css({opacity:1,zIndex:2}),i.wrapup(y)):(i.slides.eq(i.currentSlide).css({zIndex:1}).animate({opacity:0},i.vars.animationSpeed,i.vars.easing),i.slides.eq(e).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing,i.wrapup));else{var l,u,v,y=d?i.slides.filter(":first").height():i.computedW;h?(l=i.vars.itemMargin,v=(i.itemW+l)*i.move*i.animatingTo,u=v>i.limit&&1!==i.visible?i.limit:v):u=0===i.currentSlide&&e===i.count-1&&i.vars.animationLoop&&"next"!==i.direction?p?(i.count+i.cloneOffset)*y:0:i.currentSlide===i.last&&0===e&&i.vars.animationLoop&&"prev"!==i.direction?p?0:(i.count+1)*y:p?(i.count-1-e+i.cloneOffset)*y:(e+i.cloneOffset)*y,i.setProps(u,"",i.vars.animationSpeed),i.transitions?(i.vars.animationLoop&&i.atEnd||(i.animating=!1,i.currentSlide=i.animatingTo),i.container.unbind("webkitTransitionEnd transitionend"),i.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(i.ensureAnimationEnd),i.wrapup(y)}),clearTimeout(i.ensureAnimationEnd),i.ensureAnimationEnd=setTimeout(function(){i.wrapup(y)},i.vars.animationSpeed+100)):i.container.animate(i.args,i.vars.animationSpeed,i.vars.easing,function(){i.wrapup(y)})}i.vars.smoothHeight&&g.smoothHeight(i.vars.animationSpeed)}},i.wrapup=function(e){m||h||(0===i.currentSlide&&i.animatingTo===i.last&&i.vars.animationLoop?i.setProps(e,"jumpEnd"):i.currentSlide===i.last&&0===i.animatingTo&&i.vars.animationLoop&&i.setProps(e,"jumpStart")),i.animating=!1,i.currentSlide=i.animatingTo,i.vars.after(i)},i.animateSlides=function(){!i.animating&&n&&i.flexAnimate(i.getTarget("next"))},i.pause=function(){clearInterval(i.animatedSlides),i.animatedSlides=null,i.playing=!1,i.vars.pausePlay&&g.pausePlay.update("play"),i.syncExists&&g.sync("pause")},i.play=function(){i.playing&&clearInterval(i.animatedSlides),i.animatedSlides=i.animatedSlides||setInterval(i.animateSlides,i.vars.slideshowSpeed),i.started=i.playing=!0,i.vars.pausePlay&&g.pausePlay.update("pause"),i.syncExists&&g.sync("play")},i.stop=function(){i.pause(),i.stopped=!0},i.canAdvance=function(e,t){var n=b?i.pagingCount-1:i.last;return!(!t&&(!b||i.currentItem!==i.count-1||0!==e||"prev"!==i.direction)&&(b&&0===i.currentItem&&e===i.pagingCount-1&&"next"!==i.direction||e===i.currentSlide&&!b||!i.vars.animationLoop&&(i.atEnd&&0===i.currentSlide&&e===n&&"next"!==i.direction||i.atEnd&&i.currentSlide===n&&0===e&&"next"===i.direction)))},i.getTarget=function(e){return i.direction=e,"next"===e?i.currentSlide===i.last?0:i.currentSlide+1:0===i.currentSlide?i.last:i.currentSlide-1},i.setProps=function(e,t,n){var o=function(){var n=e||(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo;return-1*function(){if(h)return"setTouch"===t?e:p&&i.animatingTo===i.last?0:p?i.limit-(i.itemW+i.vars.itemMargin)*i.move*i.animatingTo:i.animatingTo===i.last?i.limit:n;switch(t){case"setTotal":return p?(i.count-1-i.currentSlide+i.cloneOffset)*e:(i.currentSlide+i.cloneOffset)*e;case"setTouch":return e;case"jumpEnd":return p?e:i.count*e;case"jumpStart":return p?i.count*e:e;default:return e}}()+"px"}();i.transitions&&(o=d?"translate3d(0,"+o+",0)":"translate3d("+o+",0,0)",n=void 0!==n?n/1e3+"s":"0s",i.container.css("-"+i.pfx+"-transition-duration",n),i.container.css("transition-duration",n)),i.args[i.prop]=o,(i.transitions||void 0===n)&&i.container.css(i.args),i.container.css("transform",o)},i.setup=function(e){if(m)i.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(c?i.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+i.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(i.currentSlide).css({opacity:1,zIndex:2}):0==i.vars.fadeFirstSlide?i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).css({opacity:1}):i.slides.css({opacity:0,display:"block",zIndex:1}).eq(i.currentSlide).css({zIndex:2}).animate({opacity:1},i.vars.animationSpeed,i.vars.easing)),i.vars.smoothHeight&&g.smoothHeight();else{var n,o;"init"===e&&(i.viewport=t('<div class="'+s+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(i).append(i.container),i.cloneCount=0,i.cloneOffset=0,p&&(o=t.makeArray(i.slides).reverse(),i.slides=t(o),i.container.empty().append(i.slides))),i.vars.animationLoop&&!h&&(i.cloneCount=2,i.cloneOffset=1,"init"!==e&&i.container.find(".clone").remove(),i.container.append(g.uniqueID(i.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(i.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),i.newSlides=t(i.vars.selector,i),n=p?i.count-1-i.currentSlide+i.cloneOffset:i.currentSlide+i.cloneOffset,d&&!h?(i.container.height(200*(i.count+i.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){i.newSlides.css({display:"block"}),i.doMath(),i.viewport.height(i.h),i.setProps(n*i.h,"init")},"init"===e?100:0)):(i.container.width(200*(i.count+i.cloneCount)+"%"),i.setProps(n*i.computedW,"init"),setTimeout(function(){i.doMath(),i.newSlides.css({width:i.computedW,marginRight:i.computedM,float:"left",display:"block"}),i.vars.smoothHeight&&g.smoothHeight()},"init"===e?100:0))}h||i.slides.removeClass(s+"active-slide").eq(i.currentSlide).addClass(s+"active-slide"),i.vars.init(i)},i.doMath=function(){var e=i.slides.first(),t=i.vars.itemMargin,n=i.vars.minItems,o=i.vars.maxItems;i.w=void 0===i.viewport?i.width():i.viewport.width(),i.h=e.height(),i.boxPadding=e.outerWidth()-e.width(),h?(i.itemT=i.vars.itemWidth+t,i.itemM=t,i.minW=n?n*i.itemT:i.w,i.maxW=o?o*i.itemT-t:i.w,i.itemW=i.minW>i.w?(i.w-t*(n-1))/n:i.maxW<i.w?(i.w-t*(o-1))/o:i.vars.itemWidth>i.w?i.w:i.vars.itemWidth,i.visible=Math.floor(i.w/i.itemW),i.move=i.vars.move>0&&i.vars.move<i.visible?i.vars.move:i.visible,i.pagingCount=Math.ceil((i.count-i.visible)/i.move+1),i.last=i.pagingCount-1,i.limit=1===i.pagingCount?0:i.vars.itemWidth>i.w?i.itemW*(i.count-1)+t*(i.count-1):(i.itemW+t)*i.count-i.w-t):(i.itemW=i.w,i.itemM=t,i.pagingCount=i.count,i.last=i.count-1),i.computedW=i.itemW-i.boxPadding,i.computedM=i.itemM},i.update=function(e,t){i.doMath(),h||(e<i.currentSlide?i.currentSlide+=1:e<=i.currentSlide&&0!==e&&(i.currentSlide-=1),i.animatingTo=i.currentSlide),i.vars.controlNav&&!i.manualControls&&("add"===t&&!h||i.pagingCount>i.controlNav.length?g.controlNav.update("add"):("remove"===t&&!h||i.pagingCount<i.controlNav.length)&&(h&&i.currentSlide>i.last&&(i.currentSlide-=1,i.animatingTo-=1),g.controlNav.update("remove",i.last))),i.vars.directionNav&&g.directionNav.update()},i.addSlide=function(e,n){var o=t(e);i.count+=1,i.last=i.count-1,d&&p?void 0!==n?i.slides.eq(i.count-n).after(o):i.container.prepend(o):void 0!==n?i.slides.eq(n).before(o):i.container.append(o),i.update(n,"add"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.added(i)},i.removeSlide=function(e){var n=isNaN(e)?i.slides.index(t(e)):e;i.count-=1,i.last=i.count-1,isNaN(e)?t(e,i.slides).remove():d&&p?i.slides.eq(i.last).remove():i.slides.eq(e).remove(),i.doMath(),i.update(n,"remove"),i.slides=t(i.vars.selector+":not(.clone)",i),i.setup(),i.vars.removed(i)},g.init()},t(window).blur(function(e){n=!1}).focus(function(e){n=!0}),t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var n=t(this),o=e.selector?e.selector:".slides > li",r=n.find(o);1===r.length&&!1===e.allowOneSlide||0===r.length?(r.fadeIn(400),e.start&&e.start(n)):void 0===n.data("flexslider")&&new t.flexslider(this,e)});var n=t(this).data("flexslider");switch(e){case"play":n.play();break;case"pause":n.pause();break;case"stop":n.stop();break;case"next":n.flexAnimate(n.getTarget("next"),!0);break;case"prev":case"previous":n.flexAnimate(n.getTarget("prev"),!0);break;default:"number"==typeof e&&n.flexAnimate(e,!0); }}}(jQuery)}).call(t,n(21).setImmediate)},function(e,t,n){function o(e,t){this._id=e,this._clearFn=t}var r=Function.prototype.apply;t.setTimeout=function(){return new o(r.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new o(r.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(22),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){(function(e,t){!function(e,n){"use strict";function o(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return m[h]=o,p(h),h++}function r(e){delete m[e]}function i(e){var t=e.callback,o=e.args;switch(o.length){case 0:t();break;case 1:t(o[0]);break;case 2:t(o[0],o[1]);break;case 3:t(o[0],o[1],o[2]);break;default:t.apply(n,o)}}function a(e){if(b)setTimeout(a,0,e);else{var t=m[e];if(t){b=!0;try{i(t)}finally{r(e),b=!1}}}}function s(){p=function(e){t.nextTick(function(){a(e)})}}function f(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function c(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&a(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),p=function(n){e.postMessage(t+n,"*")}}function l(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;a(t)},p=function(t){e.port2.postMessage(t)}}function u(){var e=g.documentElement;p=function(t){var n=g.createElement("script");n.onreadystatechange=function(){a(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function d(){p=function(e){setTimeout(a,0,e)}}if(!e.setImmediate){var p,h=1,m={},b=!1,g=e.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(e);v=v&&v.setTimeout?v:e,"[object process]"==={}.toString.call(e.process)?s():f()?c():e.MessageChannel?l():g&&"onreadystatechange"in g.createElement("script")?u():d(),v.setImmediate=o,v.clearImmediate=r}}("undefined"==typeof self?"undefined"==typeof e?this:e:self)}).call(t,function(){return this}(),n(23))},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(u===clearTimeout)return clearTimeout(e);if((u===o||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{return u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}function a(){m&&p&&(m=!1,p.length?h=p.concat(h):b=-1,h.length&&s())}function s(){if(!m){var e=r(a);m=!0;for(var t=h.length;t;){for(p=h,h=[];++b<t;)p&&p[b].run();b=-1,t=h.length}p=null,m=!1,i(e)}}function f(e,t){this.fun=e,this.array=t}function c(){}var l,u,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:o}catch(e){u=o}}();var p,h=[],m=!1,b=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];h.push(new f(e,t)),1!==h.length||m||r(s)},f.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=c,d.addListener=c,d.once=c,d.off=c,d.removeListener=c,d.removeAllListeners=c,d.emit=c,d.prependListener=c,d.prependOnceListener=c,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){var o,r,i;/*! * jQuery Placeholder Plugin v2.3.1 * https://github.com/mathiasbynens/jquery-placeholder * * Copyright 2011, 2015 Mathias Bynens * Released under the MIT license */ !function(a){r=[n(2)],o=a,i="function"==typeof o?o.apply(t,r):o,!(void 0!==i&&(e.exports=i))}(function(e){function t(t){var n={},o=/^jQuery\d+$/;return e.each(t.attributes,function(e,t){t.specified&&!o.test(t.name)&&(n[t.name]=t.value)}),n}function n(t,n){var o=this,i=e(this);if(o.value===i.attr(s?"placeholder-x":"placeholder")&&i.hasClass(p.customClass))if(o.value="",i.removeClass(p.customClass),i.data("placeholder-password")){if(i=i.hide().nextAll('input[type="password"]:first').show().attr("id",i.removeAttr("id").data("placeholder-id")),t===!0)return i[0].value=n,n;i.focus()}else o==r()&&o.select()}function o(o){var r,i=this,a=e(this),f=i.id;if(!o||"blur"!==o.type||!a.hasClass(p.customClass))if(""===i.value){if("password"===i.type){if(!a.data("placeholder-textinput")){try{r=a.clone().prop({type:"text"})}catch(n){r=e("<input>").attr(e.extend(t(this),{type:"text"}))}r.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":a,"placeholder-id":f}).bind("focus.placeholder",n),a.data({"placeholder-textinput":r,"placeholder-id":f}).before(r)}i.value="",a=a.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",a.data("placeholder-id")).show()}else{var c=a.data("placeholder-password");c&&(c[0].value="",a.attr("id",a.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}a.addClass(p.customClass),a[0].value=a.attr(s?"placeholder-x":"placeholder")}else a.removeClass(p.customClass)}function r(){try{return document.activeElement}catch(e){}}var i,a,s=!1,f="[object OperaMini]"===Object.prototype.toString.call(window.operamini),c="placeholder"in document.createElement("input")&&!f&&!s,l="placeholder"in document.createElement("textarea")&&!f&&!s,u=e.valHooks,d=e.propHooks,p={};c&&l?(a=e.fn.placeholder=function(){return this},a.input=!0,a.textarea=!0):(a=e.fn.placeholder=function(t){var r={customClass:"placeholder"};return p=e.extend({},r,t),this.filter((c?"textarea":":input")+"["+(s?"placeholder-x":"placeholder")+"]").not("."+p.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":n,"blur.placeholder":o}).data("placeholder-enabled",!0).trigger("blur.placeholder")},a.input=c,a.textarea=l,i={get:function(t){var n=e(t),o=n.data("placeholder-password");return o?o[0].value:n.data("placeholder-enabled")&&n.hasClass(p.customClass)?"":t.value},set:function(t,i){var a,s,f=e(t);return""!==i&&(a=f.data("placeholder-textinput"),s=f.data("placeholder-password"),a?(n.call(a[0],!0,i)||(t.value=i),a[0].value=i):s&&(n.call(t,!0,i)||(s[0].value=i),t.value=i)),f.data("placeholder-enabled")?(""===i?(t.value=i,t!=r()&&o.call(t)):(f.hasClass(p.customClass)&&n.call(t),t.value=i),f):(t.value=i,f)}},c||(u.input=i,d.value=i),l||(u.textarea=i,d.value=i),e(function(){e(document).delegate("form","submit.placeholder",function(){var t=e("."+p.customClass,this).each(function(){n.call(this,!0,"")});setTimeout(function(){t.each(o)},10)})}),e(window).bind("beforeunload.placeholder",function(){var t=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(t=!1)}catch(e){}t&&e("."+p.customClass).each(function(){this.value=""})}))})},function(e,t){var n=e.exports={};n.pixelTrack=function(e){"function"==typeof window.fbq&&window.fbq("track",e)},n.attachBuyTicketsTrack=function(){var e=document.getElementById("register-cta");e.addEventListener("click",function(){"function"==typeof window.fbq&&window.fbq("track","Lead",{location:"topnav",type:"buy-tickets"})})},n.attachBuyTicketsTrack()}]);
client.go
package simpletsdb import ( "bytes" "encoding/json" "errors" "fmt" "io" "net/http" ) var ( ErrInternalServerError = errors.New("internal server error") ErrUnexpectedStatusCode = errors.New("unexpected status code") ) // Creates a new client func NewClient(host string, port int) *SimpleTSDB { client := &http.Client{} return &SimpleTSDB{ Host: host, Port: port, client: client, } } func (p *pointReader) Read(b []byte) (int, error) { offset := 0 for ; p.i < len(p.reqs); p.i++ { bs := p.reqs[p.i].toLineProtocol() if offset+len(bs)+1 >= len(b) { return offset, nil } copy(b[offset:], bs) offset += len(bs) b[offset] = '\n' offset++ } return offset, io.EOF } // Inserts points func (db *SimpleTSDB) InsertPoints(points []*InsertPointRequest) error { url := fmt.Sprintf("http://%s:%d/insert_points", db.Host, db.Port) reader := &pointReader{reqs: points} req, err := http.NewRequest("POST", url, reader) req.Header.Add("Content-Type", "application/x.simpletsdb.points") if err != nil { return err } resp, err := db.client.Do(req) if err != nil { return err } defer resp.Body.Close() if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return err } return errors.New(err0.Error) } else if resp.StatusCode == 500
else if resp.StatusCode != 200 { return ErrUnexpectedStatusCode } return nil } // Queries points in a time range func (db *SimpleTSDB) QueryPoints(query *QueryPointsRequest) ([]*Point, error) { url := fmt.Sprintf("http://%s:%d/query_points", db.Host, db.Port) buf := &bytes.Buffer{} if err := json.NewEncoder(buf).Encode(query); err != nil { return nil, err } req, err := http.NewRequest("POST", url, buf) req.Header.Add("Content-Type", "application/json") if err != nil { return nil, err } resp, err := db.client.Do(req) if err != nil { return nil, err } defer resp.Body.Close() pts := []*Point{} if err := json.NewDecoder(resp.Body).Decode(&pts); err != nil { return nil, err } if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return nil, err } return nil, errors.New(err0.Error) } else if resp.StatusCode == 500 { return nil, ErrInternalServerError } else if resp.StatusCode != 200 { return nil, ErrUnexpectedStatusCode } return pts, nil } // Deletes points in a time range func (db *SimpleTSDB) DeletePoints(request *DeletePointsRequest) error { url := fmt.Sprintf("http://%s:%d/delete_points", db.Host, db.Port) buf := &bytes.Buffer{} if err := json.NewEncoder(buf).Encode(request); err != nil { return err } req, err := http.NewRequest("DELETE", url, buf) req.Header.Add("Content-Type", "application/json") if err != nil { return err } resp, err := db.client.Do(req) if err != nil { return err } defer resp.Body.Close() if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return err } return errors.New(err0.Error) } else if resp.StatusCode == 500 { return ErrInternalServerError } else if resp.StatusCode != 200 { return ErrUnexpectedStatusCode } return nil } // Adds a downsampler func (db *SimpleTSDB) AddDownsampler(request *Downsampler) error { url := fmt.Sprintf("http://%s:%d/add_downsampler", db.Host, db.Port) buf := &bytes.Buffer{} if err := json.NewEncoder(buf).Encode(request); err != nil { return err } req, err := http.NewRequest("POST", url, buf) req.Header.Add("Content-Type", "application/json") if err != nil { return err } resp, err := db.client.Do(req) if err != nil { return err } defer resp.Body.Close() if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return err } return errors.New(err0.Error) } else if resp.StatusCode == 500 { return ErrInternalServerError } else if resp.StatusCode != 200 { return ErrUnexpectedStatusCode } return nil } // Adds many downsamplers func (db *SimpleTSDB) AddDownsamplers(request []*Downsampler) error { url := fmt.Sprintf("http://%s:%d/add_downsamplers", db.Host, db.Port) buf := &bytes.Buffer{} if err := json.NewEncoder(buf).Encode(request); err != nil { return err } req, err := http.NewRequest("POST", url, buf) req.Header.Add("Content-Type", "application/json") if err != nil { return err } resp, err := db.client.Do(req) if err != nil { return err } defer resp.Body.Close() if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return err } return errors.New(err0.Error) } else if resp.StatusCode == 500 { return ErrInternalServerError } else if resp.StatusCode != 200 { return ErrUnexpectedStatusCode } return nil } // Lists downsamplers func (db *SimpleTSDB) ListDownsamplers() ([]*Downsampler, error) { url := fmt.Sprintf("http://%s:%d/list_downsamplers", db.Host, db.Port) req, err := http.NewRequest("GET", url, nil) if err != nil { return nil, err } resp, err := db.client.Do(req) if err != nil { return nil, err } defer resp.Body.Close() if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return nil, err } return nil, errors.New(err0.Error) } else if resp.StatusCode == 500 { return nil, ErrInternalServerError } else if resp.StatusCode != 200 { return nil, ErrUnexpectedStatusCode } downsamplers := []*Downsampler{} if err := json.NewDecoder(resp.Body).Decode(&downsamplers); err != nil { return nil, err } return downsamplers, nil } // Deletes a downsampler func (db *SimpleTSDB) DeleteDownsampler(request *DeleteDownsamplerQuery) error { url := fmt.Sprintf("http://%s:%d/delete_downsampler", db.Host, db.Port) buf := &bytes.Buffer{} if err := json.NewEncoder(buf).Encode(request); err != nil { return err } req, err := http.NewRequest("DELETE", url, buf) req.Header.Add("Content-Type", "application/json") if err != nil { return err } resp, err := db.client.Do(req) if err != nil { return err } defer resp.Body.Close() if resp.StatusCode == 400 { err0 := &serverError{} if err := json.NewDecoder(resp.Body).Decode(err0); err != nil { return err } return errors.New(err0.Error) } else if resp.StatusCode == 500 { return ErrInternalServerError } else if resp.StatusCode != 200 { return ErrUnexpectedStatusCode } return nil }
{ return ErrInternalServerError }
excelize_test.go
package excelize1 import ( "fmt" "github.com/xuri/excelize/v2" _ "image/gif" _ "image/jpeg" _ "image/png" "strings" "testing" ) const pathPrefix = "../../asset/" // TestExcelizeHello 测试Excelize func TestExcelizeHello(t *testing.T) { f := excelize.NewFile() // 创建一个工作表 index := f.NewSheet("Sheet2") // 设置单元格的值 f.SetCellValue("Sheet2", "A2", "Hello work!") f.SetCellValue("Sheet1", "B2", 100) // 设置工作簿的默认工作表 f.SetActiveSheet(index) // 根据指定路径保存文件 if err := f.SaveAs(pathPrefix + "BookHello_out.xlsx"); err != nil { fmt.Println(err) } } // TestExcelizeReadExcel 测试读取文件 func TestExcelizeReadExcel(t *testing.T) { f, err := excelize.OpenFile(pathPrefix + "BookRead.xlsx") if err != nil { fmt.Println(err) return } // 获取工作表中指定单元格的值 cell, err := f.GetCellValue("Sheet1", "B2") if err != nil { fmt.Println(err) return } fmt.Println(cell) // 获取 Sheet1 上所有单元格 rows, err := f.GetRows("Sheet1") for _, row := range rows { for _, colCell := range row { fmt.Print(colCell, "\t") } fmt.Println() } f.SaveAs(pathPrefix + "BookRead_out.xlsx") } // TestExcelizeChart 添加图表 func TestExcelizeChart(t *testing.T) { f := excelize.NewFile() categories := map[string]string{"A2": "Small", "A3": "Normal", "A4": "Large", "B1": "Apple", "C1": "Orange", "D1": "Pear"} values := map[string]int{"B2": 2, "C2": 3, "D2": 3, "B3": 5, "C3": 2, "D3": 4, "B4": 6, "C4": 7, "D4": 8} for k, v := range categories { f.SetCellValue("Sheet1", k, v) } for k, v := range values { f.SetCellValue("Sheet1", k, v) } if err := f.AddChart("Sheet1", "E1", `{ "type": "col3DClustered", "series": [ { "name": "Sheet1!$A$2", "categories": "Sheet1!$B$1:$D$1", "values": "Sheet1!$B$2:$D$2" }, { "name": "Sheet1!$A$3", "categories": "Sheet1!$B$1:$D$1", "values": "Sheet1!$B$3:$D$3" }, { "name": "Sheet1!$A$4", "categories": "Sheet1!$B$1:$D$1", "values": "Sheet1!$B$4:$D$4" }], "title": { "name": "Fruit 3D Clustered Column Chart" } }`); err != nil { fmt.Println(err) return } // 根据指定路径保存文件 if err := f.SaveAs(pathPrefix + "BookChart_out.xlsx"); err != nil { fmt.Println(err) } } // TestExcelizeImage 插入图片 func TestExcelizeImage(t *testing.T) { f := excelize.NewFile() // 插入图片 if err := f.AddPicture("Sheet1", "A2", "image.png", ""); err != nil { fmt.Println(err) } // 在工作表中插入图片,并设置图片的缩放比例 if err := f.AddPicture("Sheet1", "E2", "image.jpeg", `{ "x_scale": 0.5, "y_scale": 0.5 }`); err != nil { fmt.Println(err) } // 在工作表中插入图片,并设置图片的打印属性 if err := f.AddPicture("Sheet1", "G2", "image.gif", `{ "x_offset": 15, "y_offset": 10, "print_obj": true, "lock_aspect_ratio": false, "locked": false }`); err != nil { fmt.Println(err) } // 保存文件 if err := f.SaveAs(pathPrefix + "BookImage_out.xlsx"); err != nil { fmt.Println(err) } } // TestExcelizeOneMerge 测试左侧单个合并单元格的插入是否增长 func TestExcelizeOneMerge(t *testing.T) { f := excelize.NewFile() sheet := "Sheet1" // 设置单元格的值 f.SetCellValue(sheet, "A1", 100) f.SetCellValue(sheet, "B2", 1) f.MergeCell(sheet, "A1", "A2") f.RemoveRow(sheet, 1) //f.DuplicateRowTo(sheet, 2, 3) //f.RemoveRow(sheet, 2) // 根据指定路径保存文件 f.SaveAs(pathPrefix + "BookOneMerge_out.xlsx") } // TestExcelizeExp 测试表达式 func TestExcelizeExp(t *testing.T) { f := excelize.NewFile() sheet := "Sheet1" // 设置单元格的值 f.SetCellValue(sheet, "A1", 100) f.SetCellValue(sheet, "A2", 1) f.SetCellFormula(sheet, "A3", "=A1+A2") //f.DuplicateRowTo(sheet, 2, 3) //f.RemoveRow(sheet, 2) // 根据指定路径保存文件 f.SaveAs(pathPrefix + "BookExp_out.xlsx") } // 获取主题色 func getCellBgColor(f *excelize.File, sheet, axix string) string { styleID, err := f.GetCellStyle(sheet, axix) if err != nil { return err.Error() } fillID := *f.Styles.CellXfs.Xf[styleID].FillID fgColor := f.Styles.Fills.Fill[fillID].PatternFill.FgColor if fgColor.Theme != nil { children := f.Theme.ThemeElements.ClrScheme.Children if *fgColor.Theme < 4 { dklt := map[int]string{ 0: children[1].SysClr.LastClr, 1: children[0].SysClr.LastClr, 2: *children[3].SrgbClr.Val, 3: *chil
return strings.TrimPrefix( excelize.ThemeColor(dklt[*fgColor.Theme], fgColor.Tint), "FF") } srgbClr := *children[*fgColor.Theme].SrgbClr.Val return strings.TrimPrefix(excelize.ThemeColor(srgbClr, fgColor.Tint), "FF") } return strings.TrimPrefix(fgColor.RGB, "FF") }
dren[2].SrgbClr.Val, }
client.go
// Copyright 2013 The Gorilla WebSocket Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package websocket import ( "bytes" "context" "crypto/tls" "errors" "io" "io/ioutil" "net" "net/http" "net/http/httptrace" "net/url" "strings" "time" ) // ErrBadHandshake is returned when the server response to opening handshake is // invalid. var ErrBadHandshake = errors.New("websocket: bad handshake") var errInvalidCompression = errors.New("websocket: invalid compression negotiation") // NewClient creates a new client connection using the given net connection. // The URL u specifies the host and request URI. Use requestHeader to specify // the origin (Origin), subprotocols (Sec-WebSocket-Protocol) and cookies // (Cookie). Use the response.Header to get the selected subprotocol // (Sec-WebSocket-Protocol) and cookies (Set-Cookie). // // If the WebSocket handshake fails, ErrBadHandshake is returned along with a // non-nil *http.Response so that callers can handle redirects, authentication, // etc. // // Deprecated: Use Dialer instead. func NewClient(netConn net.Conn, u *url.URL, requestHeader http.Header, readBufSize, writeBufSize int) (c *Conn, response *http.Response, err error) { d := Dialer{ ReadBufferSize: readBufSize, WriteBufferSize: writeBufSize, NetDial: func(net, addr string) (net.Conn, error) { return netConn, nil }, } return d.Dial(u.String(), requestHeader) } // A Dialer contains options for connecting to WebSocket server. // // It is safe to call Dialer's methods concurrently. type Dialer struct { // NetDial specifies the dial function for creating TCP connections. If // NetDial is nil, net.Dial is used. NetDial func(network, addr string) (net.Conn, error) // NetDialContext specifies the dial function for creating TCP connections. If // NetDialContext is nil, NetDial is used. NetDialContext func(ctx context.Context, network, addr string) (net.Conn, error) // NetDialTLSContext specifies the dial function for creating TLS/TCP connections. If // NetDialTLSContext is nil, NetDialContext is used. // If NetDialTLSContext is set, Dial assumes the TLS handshake is done there and // TLSClientConfig is ignored. NetDialTLSContext func(ctx context.Context, network, addr string) (net.Conn, error) // Proxy specifies a function to return a proxy for a given // Request. If the function returns a non-nil error, the // request is aborted with the provided error. // If Proxy is nil or returns a nil *URL, no proxy is used. Proxy func(*http.Request) (*url.URL, error) // TLSClientConfig specifies the TLS configuration to use with tls.Client. // If nil, the default configuration is used. // If either NetDialTLS or NetDialTLSContext are set, Dial assumes the TLS handshake // is done there and TLSClientConfig is ignored. TLSClientConfig *tls.Config // HandshakeTimeout specifies the duration for the handshake to complete. HandshakeTimeout time.Duration // ReadBufferSize and WriteBufferSize specify I/O buffer sizes in bytes. If a buffer // size is zero, then a useful default size is used. The I/O buffer sizes // do not limit the size of the messages that can be sent or received. ReadBufferSize, WriteBufferSize int // WriteBufferPool is a pool of buffers for write operations. If the value // is not set, then write buffers are allocated to the connection for the // lifetime of the connection. // // A pool is most useful when the application has a modest volume of writes // across a large number of connections. // // Applications should use a single pool for each unique value of // WriteBufferSize. WriteBufferPool BufferPool // Subprotocols specifies the client's requested subprotocols. Subprotocols []string // EnableCompression specifies if the client should attempt to negotiate // per message compression (RFC 7692). Setting this value to true does not // guarantee that compression will be supported. Currently only "no context // takeover" modes are supported. EnableCompression bool // Jar specifies the cookie jar. // If Jar is nil, cookies are not sent in requests and ignored // in responses. Jar http.CookieJar } // Dial creates a new client connection by calling DialContext with a background context. func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn, *http.Response, error) { return d.DialContext(context.Background(), urlStr, requestHeader) } var errMalformedURL = errors.New("malformed ws or wss URL") func hostPortNoPort(u *url.URL) (hostPort, hostNoPort string) { hostPort = u.Host hostNoPort = u.Host if i := strings.LastIndex(u.Host, ":"); i > strings.LastIndex(u.Host, "]") { hostNoPort = hostNoPort[:i] } else { switch u.Scheme { case "wss": hostPort += ":443" case "https": hostPort += ":443" default: hostPort += ":80" } } return hostPort, hostNoPort } // DefaultDialer is a dialer with all fields set to the default values. var DefaultDialer = &Dialer{ Proxy: http.ProxyFromEnvironment, HandshakeTimeout: 45 * time.Second, } // nilDialer is dialer to use when receiver is nil. var nilDialer = *DefaultDialer // DialContext creates a new client connection. Use requestHeader to specify the // origin (Origin), subprotocols (Sec-WebSocket-Protocol) and cookies (Cookie). // Use the response.Header to get the selected subprotocol // (Sec-WebSocket-Protocol) and cookies (Set-Cookie). // // The context will be used in the request and in the Dialer. // // If the WebSocket handshake fails, ErrBadHandshake is returned along with a // non-nil *http.Response so that callers can handle redirects, authentication, // etcetera. The response body may not contain the entire response and does not // need to be closed by the application. func (d *Dialer) DialContext(ctx context.Context, urlStr string, requestHeader http.Header) (*Conn, *http.Response, error) { if d == nil { d = &nilDialer } challengeKey, err := generateChallengeKey() if err != nil { return nil, nil, err } u, err := url.Parse(urlStr) if err != nil { return nil, nil, err } switch u.Scheme { case "ws": u.Scheme = "http" case "wss": u.Scheme = "https" default: return nil, nil, errMalformedURL } if u.User != nil { // User name and password are not allowed in websocket URIs. return nil, nil, errMalformedURL } req := &http.Request{ Method: http.MethodGet, URL: u, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1, Header: make(http.Header), Host: u.Host, } req = req.WithContext(ctx) // Set the cookies present in the cookie jar of the dialer if d.Jar != nil { for _, cookie := range d.Jar.Cookies(u) { req.AddCookie(cookie) } } // Set the request headers using the capitalization for names and values in // RFC examples. Although the capitalization shouldn't matter, there are // servers that depend on it. The Header.Set method is not used because the // method canonicalizes the header names. req.Header["Upgrade"] = []string{"websocket"} req.Header["Connection"] = []string{"Upgrade"} req.Header["Sec-WebSocket-Key"] = []string{challengeKey} req.Header["Sec-WebSocket-Version"] = []string{"13"} if len(d.Subprotocols) > 0 { req.Header["Sec-WebSocket-Protocol"] = []string{strings.Join(d.Subprotocols, ", ")} } for k, vs := range requestHeader { switch { case k == "Host": if len(vs) > 0 { req.Host = vs[0] } case k == "Upgrade" || k == "Connection" || k == "Sec-Websocket-Key" || k == "Sec-Websocket-Version" || (k == "Sec-Websocket-Extensions" && d.EnableCompression) || (k == "Sec-Websocket-Protocol" && len(d.Subprotocols) > 0): return nil, nil, errors.New("websocket: duplicate header not allowed: " + k) case k == "Sec-Websocket-Protocol": req.Header["Sec-WebSocket-Protocol"] = vs default: req.Header[k] = vs } } if d.EnableCompression { req.Header["Sec-WebSocket-Extensions"] = []string{"permessage-deflate; server_no_context_takeover; client_no_context_takeover"} } if d.HandshakeTimeout != 0 { var cancel func() ctx, cancel = context.WithTimeout(ctx, d.HandshakeTimeout) defer cancel() } // Get network dial function. var netDial func(network, add string) (net.Conn, error) switch u.Scheme { case "http": if d.NetDialContext != nil
else if d.NetDial != nil { netDial = d.NetDial } case "https": if d.NetDialTLSContext != nil { netDial = func(network, addr string) (net.Conn, error) { return d.NetDialTLSContext(ctx, network, addr) } } else if d.NetDialContext != nil { netDial = func(network, addr string) (net.Conn, error) { return d.NetDialContext(ctx, network, addr) } } else if d.NetDial != nil { netDial = d.NetDial } default: return nil, nil, errMalformedURL } if netDial == nil { netDialer := &net.Dialer{} netDial = func(network, addr string) (net.Conn, error) { return netDialer.DialContext(ctx, network, addr) } } // If needed, wrap the dial function to set the connection deadline. if deadline, ok := ctx.Deadline(); ok { forwardDial := netDial netDial = func(network, addr string) (net.Conn, error) { c, err := forwardDial(network, addr) if err != nil { return nil, err } err = c.SetDeadline(deadline) if err != nil { c.Close() return nil, err } return c, nil } } // If needed, wrap the dial function to connect through a proxy. if d.Proxy != nil { proxyURL, err := d.Proxy(req) if err != nil { return nil, nil, err } if proxyURL != nil { dialer, err := proxy_FromURL(proxyURL, netDialerFunc(netDial)) if err != nil { return nil, nil, err } netDial = dialer.Dial } } hostPort, hostNoPort := hostPortNoPort(u) trace := httptrace.ContextClientTrace(ctx) if trace != nil && trace.GetConn != nil { trace.GetConn(hostPort) } netConn, err := netDial("tcp", hostPort) if trace != nil && trace.GotConn != nil { trace.GotConn(httptrace.GotConnInfo{ Conn: netConn, }) } if err != nil { return nil, nil, err } defer func() { if netConn != nil { netConn.Close() } }() if u.Scheme == "https" && d.NetDialTLSContext == nil { // If NetDialTLSContext is set, assume that the TLS handshake has already been done cfg := cloneTLSConfig(d.TLSClientConfig) if cfg.ServerName == "" { cfg.ServerName = hostNoPort } tlsConn := tls.Client(netConn, cfg) netConn = tlsConn if trace != nil && trace.TLSHandshakeStart != nil { trace.TLSHandshakeStart() } err := doHandshake(ctx, tlsConn, cfg) if trace != nil && trace.TLSHandshakeDone != nil { trace.TLSHandshakeDone(tlsConn.ConnectionState(), err) } if err != nil { return nil, nil, err } } conn := newConn(netConn, false, d.ReadBufferSize, d.WriteBufferSize, d.WriteBufferPool, nil, nil) if err := req.Write(netConn); err != nil { return nil, nil, err } if trace != nil && trace.GotFirstResponseByte != nil { if peek, err := conn.br.Peek(1); err == nil && len(peek) == 1 { trace.GotFirstResponseByte() } } resp, err := http.ReadResponse(conn.br, req) if err != nil { return nil, nil, err } if d.Jar != nil { if rc := resp.Cookies(); len(rc) > 0 { d.Jar.SetCookies(u, rc) } } if resp.StatusCode != 101 || !tokenListContainsValue(resp.Header, "Upgrade", "websocket") || !tokenListContainsValue(resp.Header, "Connection", "upgrade") || resp.Header.Get("Sec-Websocket-Accept") != computeAcceptKey(challengeKey) { // Before closing the network connection on return from this // function, slurp up some of the response to aid application // debugging. buf := make([]byte, 1024) n, _ := io.ReadFull(resp.Body, buf) resp.Body = ioutil.NopCloser(bytes.NewReader(buf[:n])) return nil, resp, ErrBadHandshake } for _, ext := range parseExtensions(resp.Header) { if ext[""] != "permessage-deflate" { continue } _, snct := ext["server_no_context_takeover"] _, cnct := ext["client_no_context_takeover"] if !snct || !cnct { return nil, resp, errInvalidCompression } conn.newCompressionWriter = compressNoContextTakeover conn.newDecompressionReader = decompressNoContextTakeover break } resp.Body = ioutil.NopCloser(bytes.NewReader([]byte{})) conn.subprotocol = resp.Header.Get("Sec-Websocket-Protocol") netConn.SetDeadline(time.Time{}) netConn = nil // to avoid close in defer. return conn, resp, nil } func cloneTLSConfig(cfg *tls.Config) *tls.Config { if cfg == nil { return &tls.Config{} } return cfg.Clone() }
{ netDial = func(network, addr string) (net.Conn, error) { return d.NetDialContext(ctx, network, addr) } }
get_markets_region_id_history_200_ok.rs
/* * EVE Swagger Interface * * An OpenAPI for EVE Online * * OpenAPI spec version: 1.3.8 * * Generated by: https://github.com/swagger-api/swagger-codegen.git */ /// GetMarketsRegionIdHistory200Ok : 200 ok object #[allow(unused_imports)] use serde_json::Value; #[derive(Debug, Serialize, Deserialize)] pub struct GetMarketsRegionIdHistory200Ok { /// average number #[serde(rename = "average")] average: f64, /// The date of this historical statistic entry #[serde(rename = "date")] date: String, /// highest number #[serde(rename = "highest")] highest: f64, /// lowest number #[serde(rename = "lowest")] lowest: f64, /// Total number of orders happened that day #[serde(rename = "order_count")] order_count: i64, /// Total #[serde(rename = "volume")] volume: i64 } impl GetMarketsRegionIdHistory200Ok { /// 200 ok object pub fn new(average: f64, date: String, highest: f64, lowest: f64, order_count: i64, volume: i64) -> GetMarketsRegionIdHistory200Ok
pub fn set_average(&mut self, average: f64) { self.average = average; } pub fn with_average(mut self, average: f64) -> GetMarketsRegionIdHistory200Ok { self.average = average; self } pub fn average(&self) -> &f64 { &self.average } pub fn set_date(&mut self, date: String) { self.date = date; } pub fn with_date(mut self, date: String) -> GetMarketsRegionIdHistory200Ok { self.date = date; self } pub fn date(&self) -> &String { &self.date } pub fn set_highest(&mut self, highest: f64) { self.highest = highest; } pub fn with_highest(mut self, highest: f64) -> GetMarketsRegionIdHistory200Ok { self.highest = highest; self } pub fn highest(&self) -> &f64 { &self.highest } pub fn set_lowest(&mut self, lowest: f64) { self.lowest = lowest; } pub fn with_lowest(mut self, lowest: f64) -> GetMarketsRegionIdHistory200Ok { self.lowest = lowest; self } pub fn lowest(&self) -> &f64 { &self.lowest } pub fn set_order_count(&mut self, order_count: i64) { self.order_count = order_count; } pub fn with_order_count(mut self, order_count: i64) -> GetMarketsRegionIdHistory200Ok { self.order_count = order_count; self } pub fn order_count(&self) -> &i64 { &self.order_count } pub fn set_volume(&mut self, volume: i64) { self.volume = volume; } pub fn with_volume(mut self, volume: i64) -> GetMarketsRegionIdHistory200Ok { self.volume = volume; self } pub fn volume(&self) -> &i64 { &self.volume } }
{ GetMarketsRegionIdHistory200Ok { average: average, date: date, highest: highest, lowest: lowest, order_count: order_count, volume: volume } }
config.go
// @description wechat 是腾讯微信公众平台 api 的 golang 语言封装 // @link https://github.com/chanxuehong/wechat for the canonical source repository // @license https://github.com/chanxuehong/wechat/blob/master/LICENSE // @authors chanxuehong([email protected]) package oauth2 import ( "net/url" "strings" ) type Config interface { AuthCodeURL(state string, redirectURIExt url.Values) string // 请求用户授权的地址, 获取code; redirectURIExt 用于扩展回调地址的参数 ExchangeTokenURL(code string) string // 通过code换取access_token的地址 RefreshTokenURL(refreshToken string) string // 刷新access_token的地址 UserInfoURL(accessToken, openId, lang string) string // 获取用户信息的地址 } var _ Config = (*OAuth2Config)(nil) type OAuth2Config struct { AppId string AppSecret string // 用户授权后跳转的目的地址 // 用户授权后跳转到 RedirectURI?code=CODE&state=STATE // 用户禁止授权跳转到 RedirectURI?state=STATE RedirectURI string // 应用授权作用域, snsapi_base, snsapi_userinfo Scopes []string } func NewOAuth2Config(AppId, AppSecret, RedirectURI string, Scope ...string) *OAuth2Config { return &OAuth2Config{ AppId: AppId, AppSecret: AppSecret, RedirectURI: RedirectURI, Scopes: Scope, } } func (cfg *OAuth2Config) AuthCodeURL(state string, redirectURIExt url.Values) string { return AuthCodeURL(cfg.AppId, cfg.RedirectURI, strings.Join(cfg.Scopes, ","), state, redirectURIExt) } func AuthCodeURL(appId, redirectURI, scope, state string, redirectURIExt url.Values) string { if redirectURIExt != nil { if strings.Contains(redirectURI, "?") { redirectURI += "&" + redirectURIExt.Encode() } else { redirectURI += "?" + redirectURIExt.Encode() } } return "https://open.weixi
.QueryEscape(scope) + "&state=" + url.QueryEscape(state) + "#wechat_redirect" } func (cfg *OAuth2Config) ExchangeTokenURL(code string) string { return "https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + url.QueryEscape(cfg.AppId) + "&secret=" + url.QueryEscape(cfg.AppSecret) + "&grant_type=authorization_code&code=" + url.QueryEscape(code) } func (cfg *OAuth2Config) RefreshTokenURL(refreshToken string) string { return "https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=" + url.QueryEscape(cfg.AppId) + "&grant_type=refresh_token&refresh_token=" + url.QueryEscape(refreshToken) } func (cfg *OAuth2Config) UserInfoURL(accessToken, openId, lang string) string { return "https://api.weixin.qq.com/sns/userinfo?access_token=" + url.QueryEscape(accessToken) + "&openid=" + url.QueryEscape(openId) + "&lang=" + url.QueryEscape(lang) }
n.qq.com/connect/oauth2/authorize?appid=" + url.QueryEscape(appId) + "&redirect_uri=" + url.QueryEscape(redirectURI) + "&response_type=code&scope=" + url
app.js
const fs = require('fs'); const filename = require('minimist')(process.argv.slice(2)).file; const readline = require('readline'); const reader = readline.createInterface(process.stdin, process.stdout); const app = { //Создаем массив с картами getCardsArr : ()=>{ return new Map([ [1, 1], [2, 2], [3, 3], [4, 4], [5, 5], [6, 6], [7, 7], [8, 8], [9, 9], [10,10], ['Королева', 10], ['Король', 10], ['Валет', 10], ['Туз', 11] ]); }, //Создаем массив с мастями suits : new Map([ ['diamonds', '♦'], ['hearts', '♥'], ['spades', '♠'], ['clubs', '♣'] ]), //Генерация полной колоды generateDeck : function (){ let fullDeck = new Map(); for(let suit of this.suits.keys()) { fullDeck.set(suit, this.getCardsArr()); } return fullDeck; }, getRandomCard : function(){ //Отдаем рандомную карту и удаляем из колоды let deck = this.deck; let suits = Array.from(deck); let suit = suits[Math.floor(Math.random() * suits.length)]; let cards = Array.from(suit[1]); let suitKey = suit[0]; let cardRandom = cards[Math.floor(Math.random() * cards.length)]; let cardRandomKey = cardRandom[0]; deck.get(suitKey).delete(cardRandomKey); return cardRandom; }, player : { points: 0, wins: 0 }, ai : { points: 0, wins: 0 }, plays: 0, deck: null, play: function(){ const that = this; reader.question('\nХотите начать игру? (да/нет) ', function(text) { if (text === "нет") { console.log('Игра не начата'); reader.close(); }else if(text === "да"){ that.deck = that.generateDeck(); const dealerFirstCard = that.generateStartScore(); console.log('Игра начата, первая карта дилера: ', dealerFirstCard); that.listener(); }else{ console.log('Введен не верный ответ'); that.reset(); that.play(); } }); }, generateStartScore: function(){ const p = this.player; const ai = this.ai; p.points = this.getRandomCard()[1] + this.getRandomCard()[1]; const aiFirstCard = this.getRandomCard(); ai.points = aiFirstCard[1] + this.getRandomCard()[1]; if(p.points>21 || ai.points>21){ this.generateStartScore(); } return aiFirstCard; }, move: function(){ let card = this.getRandomCard(); let p = this.player; p.points += card[1]; console.log('Вы взяли карту ', card); this.listener(); }, aiMove: function(){ const card = this.getRandomCard(); const ai = this.ai; let random = (min, max) => { return Math.floor(Math.random() * (max - min + 1)) + min; } let decide = () => { return (Math.floor(Math.random() * 2) === 0); } if(ai.points <= 2 || ai.points <= 15){ ai.points += card[1]; this.aiMove(); }else if(ai.points <=16 + random(1,4)){ //Рандомизируем проверку в рискованных случаях
if(decide()){ //Рандомизируем решение в рискованных случаях ai.points += card[1]; this.aiMove(); }else{ this.checkPoints(); } }else if(ai.points == 21){ this.checkPoints(); }else if(ai.points > 21){ this.checkPoints(); } }, endGame: function(result){ if(result === 'ai'){ console.log('\nВы проиграли! Ваш счет: ', this.player.points); console.log('Счет дилера: ', this.ai.points); this.ai.wins += 1; }else if(result === 'player'){ console.log('\nВы выиграли! Ваш счет: ', this.player.points); console.log('Счет дилера: ', this.ai.points); this.player.wins += 1; }else if(result === 'middle'){ console.log('\nНичья! Ваш счет: ', this.player.points); console.log('Счет дилера: ', this.ai.points); } console.log('****Счёт:****\n Игрок: ', this.player.wins, 'побед'); console.log('*************\n Компьтер: ', this.ai.wins, 'побед'); this.writeLog(result); this.reset(); this.play(); }, checkPoints: function(){ const playerScore = this.player.points; const aiScore = this.ai.points; if(playerScore > 21){ this.endGame('ai'); }else if(playerScore == 21 && aiScore == 21){ this.endGame('middle'); }else if(playerScore > 21 && aiScore > 21){ this.endGame('middle'); }else if(playerScore == aiScore){ this.endGame('middle'); }else if(playerScore == 21){ this.endGame('player'); }else if(playerScore < 21 && aiScore > 21){ this.endGame('player'); }else if(playerScore < 21 && playerScore > aiScore){ this.endGame('player'); }else if((playerScore < 21 && playerScore < aiScore) && aiScore < 21){ this.endGame('ai'); }else if(playerScore < 21 && aiScore == 21){ this.endGame('ai'); } this.plays++; }, listener: function(){ const that = this; reader.question('Ваш счёт ' + that.player.points + '.\nХотите взять карту? (да/нет) ', (line) => { if (line == "нет") { that.aiMove(); }else if(line == "да"){ that.move(); }else{ console.log('Введите да или нет'); that.listener(); } }); }, reset: function(){ this.player.points = 0; this.ai.points = 0; }, writeLog: function(winner){ const filenameFull = filename + '.json'; if(typeof filename === 'undefined'){ return; }else{ let gameLog = { gameNum: this.plays, winner: winner, player: { wins: this.player.wins, points: this.player.points }, ai: { wins: this.ai.wins, points: this.ai.points } }; let gamelogStr = JSON.stringify(gameLog); if(!fs.exists(filenameFull)){ fs.writeFile(filenameFull, gamelogStr); console.log(fs.exists(filenameFull)); }else{ fs.appendFile(filenameFull, gamelogStr); } } } } app.play();
config.py
# -*- coding: utf-8 -*- #!/usr/bin/env python # Copyright 2018 ZhangT. All Rights Reserved. # Author: ZhangT # Author-Github: github.com/zhangt2333 # config.py 2018/2/10 21:49 # 包含一些通用常量和工具函数 HEADERS = {"Host": "bkjws.sdu.edu.cn", "Connection": "keep-alive", "Accept": "*/*", "Origin": "http://bkjws.sdu.edu.cn", "X-Requested-With": "XMLHttpRequest", "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36", "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", "Accept-Language": "zh-CN,zh;q=0.8"} # 获取成绩时候的post数据 aoData = 'aoData=%5B%7B%22name%22%3A%22sEcho%22%2C%22value%22%3A1%7D%2C%7B%22' \ 'name%22%3A%22iColumns%22%2C%22value%22%3A8%7D%2C%7B%22name%22%3A%22' \ 'sColumns%22%2C%22value%22%3A%22%22%7D%2C%7B%22name%22%3A%22iDisplay' \ 'Start%22%2C%22value%22%3A0%7D%2C%7B%22name%22%3A%22iDisplayLength%2' \ '2%2C%22value%22%3A-1%7D%2C%7B%22name%22%3A%22mDataProp_0%22%2C%22va' \ 'lue%22%3A%22function%22%7D%2C%7B%22name%22%3A%22mDataProp_1%22%2C%2' \ '2value%22%3A%22kch%22%7D%2C%7B%22name%22%3A%22mDataProp_2%22%2C%22v' \ 'alue%22%3A%22kcm%22%7D%2C%7B%22name%22%3A%22mDataProp_3%22%2C%22val' \ 'ue%22%3A%22kxh%22%7D%2C%7B%22name%22%3A%22mDataProp_4%22%2C%22value' \ '%22%3A%22xf%22%7D%2C%7B%22name%22%3A%22mDataProp_5%22%2C%22value%22' \ '%3A%22kssj%22%7D%2C%7B%22name%22%3A%22mDataProp_6%22%2C%22value%22%' \ '3A%22kscjView%22%7D%2C%7B%22name%22%3A%22mDataProp_7%22%2C%22value%' \ '22%3A%22kcsx%22%7D%2C%7B%22name%22%3A%22iSortingCols%22%2C%22value%' \ '22%3A0%7D%2C%7B%22name%22%3A%22bSortable_0%22%2C%22value%22%3Afalse' \ '%7D%2C%7B%22name%22%3A%22bSortable_1%22%2C%22value%22%3Afalse%7D%2C' \ '%7B%22name%22%3A%22bSortable_2%22%2C%22value%22%3Afalse%7D%2C%7B%22' \ 'name%22%3A%22bSortable_3%22%2C%22value%22%3Afalse%7D%2C%7B%22name%2' \ '2%3A%22bSortable_4%22%2C%22value%22%3Afalse%7D%2C%7B%22name%22%3A%22' \ 'bSortable_5%22%2C%22value%22%3Afalse%7D%2C%7B%22name%22%3A%22bSortab' \ 'le_6%22%2C%22value%22%3Afalse%7D%2C%7B%22name%22%3A%22bSortable_7%22' \ '%2C%22value%22%3Afalse%7D%5D' def strB2Q(ustring): """工具函数:全角转半角"""
g = "" for uchar in ustring: inside_code = ord(uchar) if inside_code == 32: # 全角空格直接转换 inside_code = 12288 elif (inside_code >= 33 and inside_code <= 126): # 全角字符(除空格)根据关系转化 inside_code += 65248 rstring += chr(inside_code) return rstring def Align_CHstr(str, format_spec): """工具函数:处理一个中英文混杂str的填充对齐""" format_spec = "{0:{1}" + format_spec + "}" return format_spec.format(strB2Q(str), chr(12288)) def compare_xnxq(xnxq1, xnxq2): """返回 xnxq1 > xnxq2""" tmp = xnxq1.split('-') xnxq1 = tmp[2] + tmp[1]*10 + tmp[0]*10000 tmp = xnxq2.split('-') xnxq2 = tmp[2] + tmp[1]*10 + tmp[0]*10000 return xnxq1 > xnxq2
rstrin
quickstart.go
/** * @license * Copyright Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // [START admin_sdk_reports_quickstart] package main import ( "encoding/json" "fmt" "io/ioutil" "log" "net/http" "os" "time" "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/google" admin "google.golang.org/api/admin/reports/v1" ) // Retrieve a token, saves the token, then returns the generated client. func getClient(config *oauth2.Config) *http.Client { // The file token.json stores the user's access and refresh tokens, and is // created automatically when the authorization flow completes for the first // time. tokFile := "token.json" tok, err := tokenFromFile(tokFile) if err != nil { tok = getTokenFromWeb(config) saveToken(tokFile, tok) } return config.Client(context.Background(), tok) } // Request a token from the web, then returns the retrieved token. func getTokenFromWeb(config *oauth2.Config) *oauth2.Token { authURL := config.AuthCodeURL("state-token", oauth2.AccessTypeOffline) fmt.Printf("Go to the following link in your browser then type the "+ "authorization code: \n%v\n", authURL) var authCode string if _, err := fmt.Scan(&authCode); err != nil { log.Fatalf("Unable to read authorization code: %v", err) } tok, err := config.Exchange(context.TODO(), authCode) if err != nil { log.Fatalf("Unable to retrieve token from web: %v", err) } return tok } // Retrieves a token from a local file. func tokenFromFile(file string) (*oauth2.Token, error) { f, err := os.Open(file) if err != nil { return nil, err } defer f.Close() tok := &oauth2.Token{} err = json.NewDecoder(f).Decode(tok) return tok, err }
fmt.Printf("Saving credential file to: %s\n", path) f, err := os.OpenFile(path, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0600) if err != nil { log.Fatalf("Unable to cache oauth token: %v", err) } defer f.Close() json.NewEncoder(f).Encode(token) } func main() { b, err := ioutil.ReadFile("credentials.json") if err != nil { log.Fatalf("Unable to read client secret file: %v", err) } // If modifying these scopes, delete your previously saved token.json. config, err := google.ConfigFromJSON(b, admin.AdminReportsAuditReadonlyScope) if err != nil { log.Fatalf("Unable to parse client secret file to config: %v", err) } client := getClient(config) srv, err := admin.New(client) if err != nil { log.Fatalf("Unable to retrieve reports Client %v", err) } r, err := srv.Activities.List("all", "login").MaxResults(10).Do() if err != nil { log.Fatalf("Unable to retrieve logins to domain. %v", err) } if len(r.Items) == 0 { fmt.Println("No logins found.") } else { fmt.Println("Logins:") for _, a := range r.Items { t, err := time.Parse(time.RFC3339Nano, a.Id.Time) if err != nil { fmt.Println("Unable to parse login time.") // Set time to zero. t = time.Time{} } fmt.Printf("%s: %s %s\n", t.Format(time.RFC822), a.Actor.Email, a.Events[0].Name) } } } // [END admin_sdk_reports_quickstart]
// Saves a token to a file path. func saveToken(path string, token *oauth2.Token) {
opt_exec_factory.go
// Copyright 2018 The Cockroach Authors. // // Use of this software is governed by the Business Source License // included in the file licenses/BSL.txt. // // As of the Change Date specified in that file, in accordance with // the Business Source License, use of this software will be governed // by the Apache License, Version 2.0, included in the file // licenses/APL.txt. package sql import ( "bytes" "compress/zlib" "context" "encoding/base64" "fmt" "net/url" "strings" "github.com/cockroachdb/cockroach/pkg/sql/opt" "github.com/cockroachdb/cockroach/pkg/sql/opt/cat" "github.com/cockroachdb/cockroach/pkg/sql/opt/constraint" "github.com/cockroachdb/cockroach/pkg/sql/opt/exec" "github.com/cockroachdb/cockroach/pkg/sql/opt/memo" "github.com/cockroachdb/cockroach/pkg/sql/opt/props/physical" "github.com/cockroachdb/cockroach/pkg/sql/row" "github.com/cockroachdb/cockroach/pkg/sql/rowexec" "github.com/cockroachdb/cockroach/pkg/sql/sem/builtins" "github.com/cockroachdb/cockroach/pkg/sql/sem/tree" "github.com/cockroachdb/cockroach/pkg/sql/span" "github.com/cockroachdb/cockroach/pkg/sql/sqlbase" "github.com/cockroachdb/cockroach/pkg/sql/types" "github.com/cockroachdb/cockroach/pkg/util" "github.com/cockroachdb/cockroach/pkg/util/encoding" "github.com/cockroachdb/errors" ) type execFactory struct { planner *planner } var _ exec.Factory = &execFactory{} func makeExecFactory(p *planner) execFactory { return execFactory{planner: p} } // ConstructValues is part of the exec.Factory interface. func (ef *execFactory) ConstructValues( rows [][]tree.TypedExpr, cols sqlbase.ResultColumns, ) (exec.Node, error) { if len(cols) == 0 && len(rows) == 1 { return &unaryNode{}, nil } if len(rows) == 0 { return &zeroNode{columns: cols}, nil } return &valuesNode{ columns: cols, tuples: rows, specifiedInQuery: true, }, nil } // ConstructScan is part of the exec.Factory interface. func (ef *execFactory) ConstructScan( table cat.Table, index cat.Index, needed exec.ColumnOrdinalSet, indexConstraint *constraint.Constraint, hardLimit int64, softLimit int64, reverse bool, maxResults uint64, reqOrdering exec.OutputOrdering, rowCount float64, locking *tree.LockingItem, ) (exec.Node, error) { tabDesc := table.(*optTable).desc indexDesc := index.(*optIndex).desc // Create a scanNode. scan := ef.planner.Scan() colCfg := makeScanColumnsConfig(table, needed) sb := span.MakeBuilder(tabDesc.TableDesc(), indexDesc) // initTable checks that the current user has the correct privilege to access // the table. However, the privilege has already been checked in optbuilder, // and does not need to be rechecked. In fact, it's an error to check the // privilege if the table was originally part of a view, since lower privilege // users might be able to access a view that uses a higher privilege table. ef.planner.skipSelectPrivilegeChecks = true defer func() { ef.planner.skipSelectPrivilegeChecks = false }() if err := scan.initTable(context.TODO(), ef.planner, tabDesc, nil, colCfg); err != nil { return nil, err } if indexConstraint != nil && indexConstraint.IsContradiction() { return newZeroNode(scan.resultColumns), nil } scan.index = indexDesc scan.isSecondaryIndex = (indexDesc != &tabDesc.PrimaryIndex) scan.hardLimit = hardLimit scan.softLimit = softLimit scan.reverse = reverse scan.maxResults = maxResults scan.parallelScansEnabled = sqlbase.ParallelScans.Get(&ef.planner.extendedEvalCtx.Settings.SV) var err error scan.spans, err = sb.SpansFromConstraint(indexConstraint, needed, false /* forDelete */) if err != nil { return nil, err } for i := range reqOrdering { if reqOrdering[i].ColIdx >= len(colCfg.wantedColumns) { return nil, errors.Errorf("invalid reqOrdering: %v", reqOrdering) } } scan.reqOrdering = ReqOrdering(reqOrdering) scan.estimatedRowCount = uint64(rowCount) if locking != nil { scan.lockingStrength = sqlbase.ToScanLockingStrength(locking.Strength) scan.lockingWaitPolicy = sqlbase.ToScanLockingWaitPolicy(locking.WaitPolicy) } return scan, nil } // ConstructVirtualScan is part of the exec.Factory interface. func (ef *execFactory) ConstructVirtualScan(table cat.Table) (exec.Node, error) { tn := &table.(*optVirtualTable).name virtual, err := ef.planner.getVirtualTabler().getVirtualTableEntry(tn) if err != nil { return nil, err } columns, constructor := virtual.getPlanInfo() return &delayedNode{ columns: columns, constructor: func(ctx context.Context, p *planner) (planNode, error) { return constructor(ctx, p, tn.Catalog()) }, }, nil } func asDataSource(n exec.Node) planDataSource { plan := n.(planNode) return planDataSource{ columns: planColumns(plan), plan: plan, } } // ConstructFilter is part of the exec.Factory interface. func (ef *execFactory) ConstructFilter( n exec.Node, filter tree.TypedExpr, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { // Push the filter into the scanNode. We cannot do this if the scanNode has a // limit (it would make the limit apply AFTER the filter). if s, ok := n.(*scanNode); ok && s.filter == nil && s.hardLimit == 0 { s.filter = s.filterVars.Rebind(filter, true /* alsoReset */, false /* normalizeToNonNil */) // Note: if the filter statically evaluates to true, s.filter stays nil. s.reqOrdering = ReqOrdering(reqOrdering) return s, nil } // Create a filterNode. src := asDataSource(n) f := &filterNode{ source: src, } f.ivarHelper = tree.MakeIndexedVarHelper(f, len(src.columns)) f.filter = f.ivarHelper.Rebind(filter, true /* alsoReset */, false /* normalizeToNonNil */) if f.filter == nil { // Filter statically evaluates to true. Just return the input plan. return n, nil } f.reqOrdering = ReqOrdering(reqOrdering) // If there's a spool, pull it up. if spool, ok := f.source.plan.(*spoolNode); ok { f.source.plan = spool.source spool.source = f return spool, nil } return f, nil } // ConstructSimpleProject is part of the exec.Factory interface. func (ef *execFactory) ConstructSimpleProject( n exec.Node, cols []exec.ColumnOrdinal, colNames []string, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { // If the top node is already a renderNode, just rearrange the columns. But // we don't want to duplicate a rendering expression (in case it is expensive // to compute or has side-effects); so if we have duplicates we avoid this // optimization (and add a new renderNode). if r, ok := n.(*renderNode); ok && !hasDuplicates(cols) { oldCols, oldRenders := r.columns, r.render r.columns = make(sqlbase.ResultColumns, len(cols)) r.render = make([]tree.TypedExpr, len(cols)) for i, ord := range cols { r.columns[i] = oldCols[ord] if colNames != nil { r.columns[i].Name = colNames[i] } r.render[i] = oldRenders[ord] } r.reqOrdering = ReqOrdering(reqOrdering) return r, nil } var inputCols sqlbase.ResultColumns if colNames == nil { // We will need the names of the input columns. inputCols = planColumns(n.(planNode)) } var rb renderBuilder rb.init(n, reqOrdering, len(cols)) for i, col := range cols { v := rb.r.ivarHelper.IndexedVar(int(col)) if colNames == nil { rb.addExpr(v, inputCols[col].Name) } else { rb.addExpr(v, colNames[i]) } } return rb.res, nil } func hasDuplicates(cols []exec.ColumnOrdinal) bool { var set util.FastIntSet for _, c := range cols { if set.Contains(int(c)) { return true } set.Add(int(c)) } return false } // ConstructRender is part of the exec.Factory interface. func (ef *execFactory) ConstructRender( n exec.Node, exprs tree.TypedExprs, colNames []string, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { var rb renderBuilder rb.init(n, reqOrdering, len(exprs)) for i, expr := range exprs { expr = rb.r.ivarHelper.Rebind(expr, false /* alsoReset */, true /* normalizeToNonNil */) rb.addExpr(expr, colNames[i]) } return rb.res, nil } // RenameColumns is part of the exec.Factory interface. func (ef *execFactory) RenameColumns(n exec.Node, colNames []string) (exec.Node, error) { inputCols := planMutableColumns(n.(planNode)) for i := range inputCols { inputCols[i].Name = colNames[i] } return n, nil } // ConstructHashJoin is part of the exec.Factory interface. func (ef *execFactory) ConstructHashJoin( joinType sqlbase.JoinType, left, right exec.Node, leftEqCols, rightEqCols []exec.ColumnOrdinal, leftEqColsAreKey, rightEqColsAreKey bool, extraOnCond tree.TypedExpr, ) (exec.Node, error) { p := ef.planner leftSrc := asDataSource(left) rightSrc := asDataSource(right) pred, err := makePredicate(joinType, leftSrc.columns, rightSrc.columns) if err != nil { return nil, err } numEqCols := len(leftEqCols) // Save some allocations by putting both sides in the same slice. intBuf := make([]int, 2*numEqCols) pred.leftEqualityIndices = intBuf[:numEqCols:numEqCols] pred.rightEqualityIndices = intBuf[numEqCols:] nameBuf := make(tree.NameList, 2*numEqCols) pred.leftColNames = nameBuf[:numEqCols:numEqCols] pred.rightColNames = nameBuf[numEqCols:] for i := range leftEqCols { pred.leftEqualityIndices[i] = int(leftEqCols[i]) pred.rightEqualityIndices[i] = int(rightEqCols[i]) pred.leftColNames[i] = tree.Name(leftSrc.columns[leftEqCols[i]].Name) pred.rightColNames[i] = tree.Name(rightSrc.columns[rightEqCols[i]].Name) } pred.leftEqKey = leftEqColsAreKey pred.rightEqKey = rightEqColsAreKey pred.onCond = pred.iVarHelper.Rebind( extraOnCond, false /* alsoReset */, false, /* normalizeToNonNil */ ) return p.makeJoinNode(leftSrc, rightSrc, pred), nil } // ConstructApplyJoin is part of the exec.Factory interface. func (ef *execFactory) ConstructApplyJoin( joinType sqlbase.JoinType, left exec.Node, leftBoundColMap opt.ColMap, memo *memo.Memo, rightProps *physical.Required, fakeRight exec.Node, right memo.RelExpr, onCond tree.TypedExpr, ) (exec.Node, error) { leftSrc := asDataSource(left) rightSrc := asDataSource(fakeRight) rightSrc.plan.Close(context.TODO()) pred, err := makePredicate(joinType, leftSrc.columns, rightSrc.columns) if err != nil { return nil, err } pred.onCond = pred.iVarHelper.Rebind( onCond, false /* alsoReset */, false, /* normalizeToNonNil */ ) rightCols := rightSrc.columns return newApplyJoinNode(joinType, asDataSource(left), leftBoundColMap, rightProps, rightCols, right, pred, memo) } // ConstructMergeJoin is part of the exec.Factory interface. func (ef *execFactory) ConstructMergeJoin( joinType sqlbase.JoinType, left, right exec.Node, onCond tree.TypedExpr, leftOrdering, rightOrdering sqlbase.ColumnOrdering, reqOrdering exec.OutputOrdering, leftEqColsAreKey, rightEqColsAreKey bool, ) (exec.Node, error) { p := ef.planner leftSrc := asDataSource(left) rightSrc := asDataSource(right) pred, err := makePredicate(joinType, leftSrc.columns, rightSrc.columns) if err != nil { return nil, err } pred.onCond = pred.iVarHelper.Rebind( onCond, false /* alsoReset */, false, /* normalizeToNonNil */ ) pred.leftEqKey = leftEqColsAreKey pred.rightEqKey = rightEqColsAreKey n := len(leftOrdering) if n == 0 || len(rightOrdering) != n { return nil, errors.Errorf("orderings from the left and right side must be the same non-zero length") } pred.leftEqualityIndices = make([]int, n) pred.rightEqualityIndices = make([]int, n) pred.leftColNames = make(tree.NameList, n) pred.rightColNames = make(tree.NameList, n) for i := 0; i < n; i++ { leftColIdx, rightColIdx := leftOrdering[i].ColIdx, rightOrdering[i].ColIdx pred.leftEqualityIndices[i] = leftColIdx pred.rightEqualityIndices[i] = rightColIdx pred.leftColNames[i] = tree.Name(leftSrc.columns[leftColIdx].Name) pred.rightColNames[i] = tree.Name(rightSrc.columns[rightColIdx].Name) } node := p.makeJoinNode(leftSrc, rightSrc, pred) node.mergeJoinOrdering = make(sqlbase.ColumnOrdering, n) for i := 0; i < n; i++ { // The mergeJoinOrdering "columns" are equality column indices. Because of // the way we constructed the equality indices, the ordering will always be // 0,1,2,3.. node.mergeJoinOrdering[i].ColIdx = i node.mergeJoinOrdering[i].Direction = leftOrdering[i].Direction } // Set up node.props, which tells the distsql planner to maintain the // resulting ordering (if needed). node.reqOrdering = ReqOrdering(reqOrdering) return node, nil } // ConstructScalarGroupBy is part of the exec.Factory interface. func (ef *execFactory) ConstructScalarGroupBy( input exec.Node, aggregations []exec.AggInfo, ) (exec.Node, error) { n := &groupNode{ plan: input.(planNode), funcs: make([]*aggregateFuncHolder, 0, len(aggregations)), columns: make(sqlbase.ResultColumns, 0, len(aggregations)), isScalar: true, } if err := ef.addAggregations(n, aggregations); err != nil { return nil, err } return n, nil } // ConstructGroupBy is part of the exec.Factory interface. func (ef *execFactory) ConstructGroupBy( input exec.Node, groupCols []exec.ColumnOrdinal, groupColOrdering sqlbase.ColumnOrdering, aggregations []exec.AggInfo, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { n := &groupNode{ plan: input.(planNode), funcs: make([]*aggregateFuncHolder, 0, len(groupCols)+len(aggregations)), columns: make(sqlbase.ResultColumns, 0, len(groupCols)+len(aggregations)), groupCols: make([]int, len(groupCols)), groupColOrdering: groupColOrdering, isScalar: false, reqOrdering: ReqOrdering(reqOrdering), } inputCols := planColumns(n.plan) for i := range groupCols { col := int(groupCols[i]) n.groupCols[i] = col // TODO(radu): only generate the grouping columns we actually need. f := n.newAggregateFuncHolder( builtins.AnyNotNull, inputCols[col].Typ, []int{col}, builtins.NewAnyNotNullAggregate, nil, /* arguments */ ef.planner.EvalContext().Mon.MakeBoundAccount(), ) n.funcs = append(n.funcs, f) n.columns = append(n.columns, inputCols[col]) } if err := ef.addAggregations(n, aggregations); err != nil { return nil, err } return n, nil } func (ef *execFactory) addAggregations(n *groupNode, aggregations []exec.AggInfo) error { inputCols := planColumns(n.plan) for i := range aggregations { agg := &aggregations[i] builtin := agg.Builtin renderIdxs := make([]int, len(agg.ArgCols)) params := make([]*types.T, len(agg.ArgCols)) for j, col := range agg.ArgCols { renderIdx := int(col) renderIdxs[j] = renderIdx params[j] = inputCols[renderIdx].Typ } aggFn := func(evalCtx *tree.EvalContext, arguments tree.Datums) tree.AggregateFunc { return builtin.AggregateFunc(params, evalCtx, arguments) } f := n.newAggregateFuncHolder( agg.FuncName, agg.ResultType, renderIdxs, aggFn, agg.ConstArgs, ef.planner.EvalContext().Mon.MakeBoundAccount(), ) if agg.Distinct { f.setDistinct() } if agg.Filter == -1 { // A value of -1 means the aggregate had no filter. f.filterRenderIdx = noRenderIdx } else { f.filterRenderIdx = int(agg.Filter) } n.funcs = append(n.funcs, f) n.columns = append(n.columns, sqlbase.ResultColumn{ Name: agg.FuncName, Typ: agg.ResultType, }) } return nil } // ConstructDistinct is part of the exec.Factory interface. func (ef *execFactory) ConstructDistinct( input exec.Node, distinctCols, orderedCols exec.ColumnOrdinalSet, reqOrdering exec.OutputOrdering, nullsAreDistinct bool, errorOnDup string, ) (exec.Node, error) { return &distinctNode{ plan: input.(planNode), distinctOnColIdxs: distinctCols, columnsInOrder: orderedCols, reqOrdering: ReqOrdering(reqOrdering), nullsAreDistinct: nullsAreDistinct, errorOnDup: errorOnDup, }, nil } // ConstructSetOp is part of the exec.Factory interface. func (ef *execFactory) ConstructSetOp( typ tree.UnionType, all bool, left, right exec.Node, ) (exec.Node, error) { return ef.planner.newUnionNode(typ, all, left.(planNode), right.(planNode)) } // ConstructSort is part of the exec.Factory interface. func (ef *execFactory) ConstructSort( input exec.Node, ordering sqlbase.ColumnOrdering, alreadyOrderedPrefix int, ) (exec.Node, error) { return &sortNode{ plan: input.(planNode), ordering: ordering, alreadyOrderedPrefix: alreadyOrderedPrefix, }, nil } // ConstructOrdinality is part of the exec.Factory interface. func (ef *execFactory) ConstructOrdinality(input exec.Node, colName string) (exec.Node, error) { plan := input.(planNode) inputColumns := planColumns(plan) cols := make(sqlbase.ResultColumns, len(inputColumns)+1) copy(cols, inputColumns) cols[len(cols)-1] = sqlbase.ResultColumn{ Name: colName, Typ: types.Int, } return &ordinalityNode{ source: plan, columns: cols, run: ordinalityRun{ row: make(tree.Datums, len(cols)), curCnt: 1, }, }, nil } // ConstructIndexJoin is part of the exec.Factory interface. func (ef *execFactory) ConstructIndexJoin( input exec.Node, table cat.Table, keyCols []exec.ColumnOrdinal, tableCols exec.ColumnOrdinalSet, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { tabDesc := table.(*optTable).desc colCfg := makeScanColumnsConfig(table, tableCols) colDescs := makeColDescList(table, tableCols) tableScan := ef.planner.Scan() if err := tableScan.initTable(context.TODO(), ef.planner, tabDesc, nil, colCfg); err != nil { return nil, err } primaryIndex := tabDesc.GetPrimaryIndex() tableScan.index = &primaryIndex tableScan.isSecondaryIndex = false tableScan.disableBatchLimit() n := &indexJoinNode{ input: input.(planNode), table: tableScan, cols: colDescs, resultColumns: sqlbase.ResultColumnsFromColDescs(colDescs), reqOrdering: ReqOrdering(reqOrdering), } n.keyCols = make([]int, len(keyCols)) for i, c := range keyCols { n.keyCols[i] = int(c) } return n, nil } // ConstructLookupJoin is part of the exec.Factory interface. func (ef *execFactory) ConstructLookupJoin( joinType sqlbase.JoinType, input exec.Node, table cat.Table, index cat.Index, eqCols []exec.ColumnOrdinal, eqColsAreKey bool, lookupCols exec.ColumnOrdinalSet, onCond tree.TypedExpr, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { tabDesc := table.(*optTable).desc indexDesc := index.(*optIndex).desc colCfg := makeScanColumnsConfig(table, lookupCols) tableScan := ef.planner.Scan() if err := tableScan.initTable(context.TODO(), ef.planner, tabDesc, nil, colCfg); err != nil { return nil, err } tableScan.index = indexDesc tableScan.isSecondaryIndex = (indexDesc != &tabDesc.PrimaryIndex) n := &lookupJoinNode{ input: input.(planNode), table: tableScan, joinType: joinType, eqColsAreKey: eqColsAreKey, reqOrdering: ReqOrdering(reqOrdering), } if onCond != nil && onCond != tree.DBoolTrue { n.onCond = onCond } n.eqCols = make([]int, len(eqCols)) for i, c := range eqCols { n.eqCols[i] = int(c) } // Build the result columns. inputCols := planColumns(input.(planNode)) var scanCols sqlbase.ResultColumns if joinType != sqlbase.LeftSemiJoin && joinType != sqlbase.LeftAntiJoin { scanCols = planColumns(tableScan) } n.columns = make(sqlbase.ResultColumns, 0, len(inputCols)+len(scanCols)) n.columns = append(n.columns, inputCols...) n.columns = append(n.columns, scanCols...) return n, nil } // Helper function to create a scanNode from just a table / index descriptor // and requested cols. func (ef *execFactory) constructScanForZigzag( indexDesc *sqlbase.IndexDescriptor, tableDesc *sqlbase.ImmutableTableDescriptor, cols exec.ColumnOrdinalSet, ) (*scanNode, error) { colCfg := scanColumnsConfig{ wantedColumns: make([]tree.ColumnID, 0, cols.Len()), } for c, ok := cols.Next(0); ok; c, ok = cols.Next(c + 1) { colCfg.wantedColumns = append(colCfg.wantedColumns, tree.ColumnID(tableDesc.Columns[c].ID)) } scan := ef.planner.Scan() if err := scan.initTable(context.TODO(), ef.planner, tableDesc, nil, colCfg); err != nil { return nil, err } scan.index = indexDesc scan.isSecondaryIndex = (indexDesc.ID != tableDesc.PrimaryIndex.ID) return scan, nil } // ConstructZigzagJoin is part of the exec.Factory interface. func (ef *execFactory) ConstructZigzagJoin( leftTable cat.Table, leftIndex cat.Index, rightTable cat.Table, rightIndex cat.Index, leftEqCols []exec.ColumnOrdinal, rightEqCols []exec.ColumnOrdinal, leftCols exec.ColumnOrdinalSet, rightCols exec.ColumnOrdinalSet, onCond tree.TypedExpr, fixedVals []exec.Node, reqOrdering exec.OutputOrdering, ) (exec.Node, error) { leftIndexDesc := leftIndex.(*optIndex).desc leftTabDesc := leftTable.(*optTable).desc rightIndexDesc := rightIndex.(*optIndex).desc rightTabDesc := rightTable.(*optTable).desc leftScan, err := ef.constructScanForZigzag(leftIndexDesc, leftTabDesc, leftCols) if err != nil { return nil, err } rightScan, err := ef.constructScanForZigzag(rightIndexDesc, rightTabDesc, rightCols) if err != nil { return nil, err } n := &zigzagJoinNode{ reqOrdering: ReqOrdering(reqOrdering), } if onCond != nil && onCond != tree.DBoolTrue { n.onCond = onCond } n.sides = make([]zigzagJoinSide, 2) n.sides[0].scan = leftScan n.sides[1].scan = rightScan n.sides[0].eqCols = make([]int, len(leftEqCols)) n.sides[1].eqCols = make([]int, len(rightEqCols)) if len(leftEqCols) != len(rightEqCols) { panic("creating zigzag join with unequal number of equated cols") } for i, c := range leftEqCols { n.sides[0].eqCols[i] = int(c) n.sides[1].eqCols[i] = int(rightEqCols[i]) } // The resultant columns are identical to those from individual index scans; so // reuse the resultColumns generated in the scanNodes. n.columns = make( sqlbase.ResultColumns, 0, len(leftScan.resultColumns)+len(rightScan.resultColumns), ) n.columns = append(n.columns, leftScan.resultColumns...) n.columns = append(n.columns, rightScan.resultColumns...) // Fixed values are the values fixed for a prefix of each side's index columns. // See the comment in pkg/sql/rowexec/zigzagjoiner.go for how they are used. for i := range fixedVals { valNode, ok := fixedVals[i].(*valuesNode) if !ok { panic("non-values node passed as fixed value to zigzag join") } if i >= len(n.sides) { panic("more fixed values passed than zigzag join sides") } n.sides[i].fixedVals = valNode } return n, nil } // ConstructLimit is part of the exec.Factory interface. func (ef *execFactory) ConstructLimit( input exec.Node, limit, offset tree.TypedExpr, ) (exec.Node, error) { plan := input.(planNode) // If the input plan is also a limitNode that has just an offset, and we are // only applying a limit, update the existing node. This is useful because // Limit and Offset are separate operators which result in separate calls to // this function. if l, ok := plan.(*limitNode); ok && l.countExpr == nil && offset == nil { l.countExpr = limit return l, nil } // If the input plan is a spoolNode, then propagate any constant limit to it. if spool, ok := plan.(*spoolNode); ok { if val, ok := limit.(*tree.DInt); ok { spool.hardLimit = int64(*val) } } return &limitNode{ plan: plan, countExpr: limit, offsetExpr: offset, }, nil } // ConstructMax1Row is part of the exec.Factory interface. func (ef *execFactory) ConstructMax1Row(input exec.Node, errorText string) (exec.Node, error) { plan := input.(planNode) return &max1RowNode{ plan: plan, errorText: errorText, }, nil } // ConstructBuffer is part of the exec.Factory interface. func (ef *execFactory) ConstructBuffer(input exec.Node, label string) (exec.Node, error) { return &bufferNode{ plan: input.(planNode), label: label, }, nil } // ConstructScanBuffer is part of the exec.Factory interface. func (ef *execFactory) ConstructScanBuffer(ref exec.Node, label string) (exec.Node, error) { return &scanBufferNode{ buffer: ref.(*bufferNode), label: label, }, nil } // ConstructRecursiveCTE is part of the exec.Factory interface. func (ef *execFactory) ConstructRecursiveCTE( initial exec.Node, fn exec.RecursiveCTEIterationFn, label string, ) (exec.Node, error) { return &recursiveCTENode{ initial: initial.(planNode), genIterationFn: fn, label: label, }, nil } // ConstructProjectSet is part of the exec.Factory interface. func (ef *execFactory) ConstructProjectSet( n exec.Node, exprs tree.TypedExprs, zipCols sqlbase.ResultColumns, numColsPerGen []int, ) (exec.Node, error) { src := asDataSource(n) cols := append(src.columns, zipCols...) p := &projectSetNode{ source: src.plan, sourceCols: src.columns, columns: cols, numColsInSource: len(src.columns), exprs: exprs, funcs: make([]*tree.FuncExpr, len(exprs)), numColsPerGen: numColsPerGen, run: projectSetRun{ gens: make([]tree.ValueGenerator, len(exprs)), done: make([]bool, len(exprs)), rowBuffer: make(tree.Datums, len(cols)), }, } for i, expr := range exprs { if tFunc, ok := expr.(*tree.FuncExpr); ok && tFunc.IsGeneratorApplication() { // Set-generating functions: generate_series() etc. p.funcs[i] = tFunc } } return p, nil } // ConstructWindow is part of the exec.Factory interface. func (ef *execFactory) ConstructWindow(root exec.Node, wi exec.WindowInfo) (exec.Node, error) { p := &windowNode{ plan: root.(planNode), columns: wi.Cols, windowRender: make([]tree.TypedExpr, len(wi.Cols)), } partitionIdxs := make([]int, len(wi.Partition)) for i, idx := range wi.Partition { partitionIdxs[i] = int(idx) } p.funcs = make([]*windowFuncHolder, len(wi.Exprs)) for i := range wi.Exprs { argsIdxs := make([]uint32, len(wi.ArgIdxs[i])) for j := range argsIdxs { argsIdxs[j] = uint32(wi.ArgIdxs[i][j]) } p.funcs[i] = &windowFuncHolder{ expr: wi.Exprs[i], args: wi.Exprs[i].Exprs, argsIdxs: argsIdxs, window: p, filterColIdx: wi.FilterIdxs[i], outputColIdx: wi.OutputIdxs[i], partitionIdxs: partitionIdxs, columnOrdering: wi.Ordering, frame: wi.Exprs[i].WindowDef.Frame, } if len(wi.Ordering) == 0 { frame := p.funcs[i].frame if frame.Mode == tree.RANGE && frame.Bounds.HasOffset() { // We have an empty ordering, but RANGE mode when at least one bound // has 'offset' requires a single column in ORDER BY. We have optimized // it out, but the execution still needs information about which column // it was, so we reconstruct the "original" ordering (note that the // direction of the ordering doesn't actually matter, so we leave it // with the default value). p.funcs[i].columnOrdering = sqlbase.ColumnOrdering{ sqlbase.ColumnOrderInfo{ ColIdx: int(wi.RangeOffsetColumn), }, } } } p.windowRender[wi.OutputIdxs[i]] = p.funcs[i] } return p, nil } // ConstructPlan is part of the exec.Factory interface. func (ef *execFactory) ConstructPlan( root exec.Node, subqueries []exec.Subquery, postqueries []exec.Node, ) (exec.Plan, error) { // No need to spool at the root. if spool, ok := root.(*spoolNode); ok { root = spool.source } res := &planTop{ plan: root.(planNode), // TODO(radu): these fields can be modified by planning various opaque // statements. We should have a cleaner way of plumbing these. avoidBuffering: ef.planner.curPlan.avoidBuffering, auditEvents: ef.planner.curPlan.auditEvents, instrumentation: ef.planner.curPlan.instrumentation, } if len(subqueries) > 0 { res.subqueryPlans = make([]subquery, len(subqueries)) for i := range subqueries { in := &subqueries[i] out := &res.subqueryPlans[i] out.subquery = in.ExprNode switch in.Mode { case exec.SubqueryExists: out.execMode = rowexec.SubqueryExecModeExists case exec.SubqueryOneRow: out.execMode = rowexec.SubqueryExecModeOneRow case exec.SubqueryAnyRows: out.execMode = rowexec.SubqueryExecModeAllRowsNormalized case exec.SubqueryAllRows: out.execMode = rowexec.SubqueryExecModeAllRows default: return nil, errors.Errorf("invalid SubqueryMode %d", in.Mode) } out.expanded = true out.plan = in.Root.(planNode) } } if len(postqueries) > 0 { res.postqueryPlans = make([]postquery, len(postqueries)) for i := range res.postqueryPlans { res.postqueryPlans[i].plan = postqueries[i].(planNode) } } return res, nil } // urlOutputter handles writing strings into an encoded URL for EXPLAIN (OPT, // ENV). It also ensures that (in the text that is encoded by the URL) each // entry gets its own line and there's exactly one blank line between entries. type urlOutputter struct { buf bytes.Buffer } func (e *urlOutputter) writef(format string, args ...interface{}) { if e.buf.Len() > 0 { e.buf.WriteString("\n") } fmt.Fprintf(&e.buf, format, args...) } func (e *urlOutputter) finish() (url.URL, error) { // Generate a URL that encodes all the text. var compressed bytes.Buffer encoder := base64.NewEncoder(base64.URLEncoding, &compressed) compressor := zlib.NewWriter(encoder) if _, err := e.buf.WriteTo(compressor); err != nil { return url.URL{}, err } if err := compressor.Close(); err != nil { return url.URL{}, err } if err := encoder.Close(); err != nil { return url.URL{}, err } return url.URL{ Scheme: "https", Host: "cockroachdb.github.io", Path: "text/decode.html", Fragment: compressed.String(), }, nil } // showEnv implements EXPLAIN (opt, env). It returns a node which displays // the environment a query was run in. func (ef *execFactory) showEnv(plan string, envOpts exec.ExplainEnvData) (exec.Node, error) { var out urlOutputter c := makeStmtEnvCollector( ef.planner.EvalContext().Context, ef.planner.extendedEvalCtx.InternalExecutor.(*InternalExecutor), ) // Show the version of Cockroach running. if err := c.PrintVersion(&out.buf); err != nil { return nil, err } out.writef("") // Show the values of any non-default session variables that can impact // planning decisions. if err := c.PrintSettings(&out.buf); err != nil { return nil, err } // Show the definition of each referenced catalog object. for i := range envOpts.Sequences { out.writef("") if err := c.PrintCreateSequence(&out.buf, &envOpts.Sequences[i]); err != nil { return nil, err } } // TODO(justin): it might also be relevant in some cases to print the create // statements for tables referenced via FKs in these tables. for i := range envOpts.Tables { out.writef("") if err := c.PrintCreateTable(&out.buf, &envOpts.Tables[i]); err != nil { return nil, err } out.writef("") // In addition to the schema, it's important to know what the table // statistics on each table are. // NOTE: We don't include the histograms because they take up a ton of // vertical space. Unfortunately this means that in some cases we won't be // able to reproduce a particular plan. err := c.PrintTableStats(&out.buf, &envOpts.Tables[i], true /* hideHistograms */) if err != nil { return nil, err } } for i := range envOpts.Views { out.writef("") if err := c.PrintCreateView(&out.buf, &envOpts.Views[i]); err != nil { return nil, err } } // Show the query running. Note that this is the *entire* query, including // the "EXPLAIN (opt, env)" preamble. out.writef("%s;\n----\n%s", ef.planner.stmt.AST.String(), plan) url, err := out.finish() if err != nil { return nil, err } return &valuesNode{ columns: sqlbase.ExplainOptColumns, tuples: [][]tree.TypedExpr{{tree.NewDString(url.String())}}, specifiedInQuery: true, }, nil } // ConstructExplainOpt is part of the exec.Factory interface. func (ef *execFactory) ConstructExplainOpt( planText string, envOpts exec.ExplainEnvData, ) (exec.Node, error) { // If this was an EXPLAIN (opt, env), we need to run a bunch of auxiliary // queries to fetch the environment info. if envOpts.ShowEnv { return ef.showEnv(planText, envOpts) } var rows [][]tree.TypedExpr ss := strings.Split(strings.Trim(planText, "\n"), "\n") for _, line := range ss { rows = append(rows, []tree.TypedExpr{tree.NewDString(line)}) } return &valuesNode{ columns: sqlbase.ExplainOptColumns, tuples: rows, specifiedInQuery: true, }, nil } // ConstructExplain is part of the exec.Factory interface. func (ef *execFactory) ConstructExplain( options *tree.ExplainOptions, stmtType tree.StatementType, plan exec.Plan, ) (exec.Node, error) { p := plan.(*planTop) analyzeSet := options.Flags[tree.ExplainFlagAnalyze] if options.Flags[tree.ExplainFlagEnv] { return nil, errors.New("ENV only supported with (OPT) option") } switch options.Mode { case tree.ExplainDistSQL: return &explainDistSQLNode{ options: options, plan: p.plan, subqueryPlans: p.subqueryPlans, postqueryPlans: p.postqueryPlans, analyze: analyzeSet, stmtType: stmtType, }, nil case tree.ExplainVec: return &explainVecNode{ options: options, plan: p.plan, subqueryPlans: p.subqueryPlans, stmtType: stmtType, }, nil case tree.ExplainPlan: if analyzeSet { return nil, errors.New("EXPLAIN ANALYZE only supported with (DISTSQL) option") } return ef.planner.makeExplainPlanNodeWithPlan( context.TODO(), options, p.plan, p.subqueryPlans, p.postqueryPlans, stmtType, ) default: panic(fmt.Sprintf("unsupported explain mode %v", options.Mode)) } } // ConstructShowTrace is part of the exec.Factory interface. func (ef *execFactory) ConstructShowTrace(typ tree.ShowTraceType, compact bool) (exec.Node, error) { var node planNode = ef.planner.makeShowTraceNode(compact, typ == tree.ShowTraceKV) // Ensure the messages are sorted in age order, so that the user // does not get confused. ageColIdx := sqlbase.GetTraceAgeColumnIdx(compact) node = &sortNode{ plan: node, ordering: sqlbase.ColumnOrdering{ sqlbase.ColumnOrderInfo{ColIdx: ageColIdx, Direction: encoding.Ascending}, }, } if typ == tree.ShowTraceReplica { node = &showTraceReplicaNode{plan: node} } return node, nil } func (ef *execFactory) ConstructInsert( input exec.Node, table cat.Table, insertColOrdSet exec.ColumnOrdinalSet, returnColOrdSet exec.ColumnOrdinalSet, checkOrdSet exec.CheckOrdinalSet, allowAutoCommit bool, skipFKChecks bool, ) (exec.Node, error) { ctx := ef.planner.extendedEvalCtx.Context // Derive insert table and column descriptors. rowsNeeded := !returnColOrdSet.Empty() tabDesc := table.(*optTable).desc colDescs := makeColDescList(table, insertColOrdSet) if err := ef.planner.maybeSetSystemConfig(tabDesc.GetID()); err != nil { return nil, err } var fkTables row.FkTableMetadata checkFKs := row.SkipFKs if !skipFKChecks { checkFKs = row.CheckFKs // Determine the foreign key tables involved in the update. var err error fkTables, err = ef.makeFkMetadata(tabDesc, row.CheckInserts) if err != nil { return nil, err } } // Create the table inserter, which does the bulk of the work. ri, err := row.MakeInserter( ctx, ef.planner.txn, tabDesc, colDescs, checkFKs, fkTables, &ef.planner.alloc, ) if err != nil { return nil, err } // Regular path for INSERT. ins := insertNodePool.Get().(*insertNode) *ins = insertNode{ source: input.(planNode), run: insertRun{ ti: tableInserter{ri: ri}, checkOrds: checkOrdSet, insertCols: ri.InsertCols, }, } // If rows are not needed, no columns are returned. if rowsNeeded { returnColDescs := makeColDescList(table, returnColOrdSet) ins.columns = sqlbase.ResultColumnsFromColDescs(returnColDescs) // Set the tabColIdxToRetIdx for the mutation. Insert always returns // non-mutation columns in the same order they are defined in the table. ins.run.tabColIdxToRetIdx = row.ColMapping(tabDesc.Columns, returnColDescs) ins.run.rowsNeeded = true } if allowAutoCommit && ef.planner.autoCommit { ins.enableAutoCommit() } // serialize the data-modifying plan to ensure that no data is // observed that hasn't been validated first. See the comments // on BatchedNext() in plan_batch.go. if rowsNeeded { return &spoolNode{source: &serializeNode{source: ins}}, nil } // We could use serializeNode here, but using rowCountNode is an // optimization that saves on calls to Next() by the caller. return &rowCountNode{source: ins}, nil } func (ef *execFactory) ConstructInsertFastPath( rows [][]tree.TypedExpr, table cat.Table, insertColOrdSet exec.ColumnOrdinalSet, returnColOrdSet exec.ColumnOrdinalSet, checkOrdSet exec.CheckOrdinalSet, fkChecks []exec.InsertFastPathFKCheck, ) (exec.Node, error) { ctx := ef.planner.extendedEvalCtx.Context // Derive insert table and column descriptors. rowsNeeded := !returnColOrdSet.Empty() tabDesc := table.(*optTable).desc colDescs := makeColDescList(table, insertColOrdSet) if err := ef.planner.maybeSetSystemConfig(tabDesc.GetID()); err != nil { return nil, err } // Create the table inserter, which does the bulk of the work. ri, err := row.MakeInserter( ctx, ef.planner.txn, tabDesc, colDescs, row.SkipFKs, nil /* fkTables */, &ef.planner.alloc, ) if err != nil { return nil, err } // Regular path for INSERT. ins := insertFastPathNodePool.Get().(*insertFastPathNode) *ins = insertFastPathNode{ input: rows, run: insertFastPathRun{ insertRun: insertRun{ ti: tableInserter{ri: ri}, checkOrds: checkOrdSet, insertCols: ri.InsertCols, }, }, } if len(fkChecks) > 0 { ins.run.fkChecks = make([]insertFastPathFKCheck, len(fkChecks)) for i := range fkChecks { ins.run.fkChecks[i].InsertFastPathFKCheck = fkChecks[i] } } // If rows are not needed, no columns are returned. if rowsNeeded { returnColDescs := makeColDescList(table, returnColOrdSet) ins.columns = sqlbase.ResultColumnsFromColDescs(returnColDescs) // Set the tabColIdxToRetIdx for the mutation. Insert always returns // non-mutation columns in the same order they are defined in the table. ins.run.tabColIdxToRetIdx = row.ColMapping(tabDesc.Columns, returnColDescs) ins.run.rowsNeeded = true } if len(rows) == 0 { return &zeroNode{columns: ins.columns}, nil } if ef.planner.autoCommit { ins.enableAutoCommit() } // serialize the data-modifying plan to ensure that no data is // observed that hasn't been validated first. See the comments // on BatchedNext() in plan_batch.go. if rowsNeeded { return &spoolNode{source: &serializeNode{source: ins}}, nil } // We could use serializeNode here, but using rowCountNode is an // optimization that saves on calls to Next() by the caller. return &rowCountNode{source: ins}, nil } func (ef *execFactory) ConstructUpdate( input exec.Node, table cat.Table, fetchColOrdSet exec.ColumnOrdinalSet, updateColOrdSet exec.ColumnOrdinalSet, returnColOrdSet exec.ColumnOrdinalSet, checks exec.CheckOrdinalSet, passthrough sqlbase.ResultColumns, allowAutoCommit bool, skipFKChecks bool, ) (exec.Node, error) { ctx := ef.planner.extendedEvalCtx.Context // Derive table and column descriptors. rowsNeeded := !returnColOrdSet.Empty() tabDesc := table.(*optTable).desc fetchColDescs := makeColDescList(table, fetchColOrdSet) if err := ef.planner.maybeSetSystemConfig(tabDesc.GetID()); err != nil { return nil, err } // Add each column to update as a sourceSlot. The CBO only uses scalarSlot, // since it compiles tuples and subqueries into a simple sequence of target // columns. updateColDescs := makeColDescList(table, updateColOrdSet) sourceSlots := make([]sourceSlot, len(updateColDescs)) for i := range sourceSlots { sourceSlots[i] = scalarSlot{column: updateColDescs[i], sourceIndex: len(fetchColDescs) + i} } var fkTables row.FkTableMetadata checkFKs := row.SkipFKs if !skipFKChecks { checkFKs = row.CheckFKs // Determine the foreign key tables involved in the update. var err error fkTables, err = ef.makeFkMetadata(tabDesc, row.CheckUpdates) if err != nil { return nil, err } } // Create the table updater, which does the bulk of the work. ru, err := row.MakeUpdater( ctx, ef.planner.txn, tabDesc, fkTables, updateColDescs, fetchColDescs, row.UpdaterDefault, checkFKs, ef.planner.EvalContext(), &ef.planner.alloc, ) if err != nil { return nil, err } // Truncate any FetchCols added by MakeUpdater. The optimizer has already // computed a correct set that can sometimes be smaller. ru.FetchCols = ru.FetchCols[:len(fetchColDescs)] // updateColsIdx inverts the mapping of UpdateCols to FetchCols. See // the explanatory comments in updateRun. updateColsIdx := make(map[sqlbase.ColumnID]int, len(ru.UpdateCols)) for i := range ru.UpdateCols { id := ru.UpdateCols[i].ID updateColsIdx[id] = i } upd := updateNodePool.Get().(*updateNode) *upd = updateNode{ source: input.(planNode), run: updateRun{ tu: tableUpdater{ru: ru}, checkOrds: checks, iVarContainerForComputedCols: sqlbase.RowIndexedVarContainer{ CurSourceRow: make(tree.Datums, len(ru.FetchCols)), Cols: ru.FetchCols, Mapping: ru.FetchColIDtoRowIndex, }, sourceSlots: sourceSlots, updateValues: make(tree.Datums, len(ru.UpdateCols)), updateColsIdx: updateColsIdx, numPassthrough: len(passthrough), }, } // If rows are not needed, no columns are returned. if rowsNeeded { returnColDescs := makeColDescList(table, returnColOrdSet) upd.columns = sqlbase.ResultColumnsFromColDescs(returnColDescs) // Add the passthrough columns to the returning columns. upd.columns = append(upd.columns, passthrough...) // Set the rowIdxToRetIdx for the mutation. Update returns the non-mutation // columns specified, in the same order they are defined in the table. // // The Updater derives/stores the fetch columns of the mutation and // since the return columns are always a subset of the fetch columns, // we can use use the fetch columns to generate the mapping for the // returned rows. upd.run.rowIdxToRetIdx = row.ColMapping(ru.FetchCols, returnColDescs) upd.run.rowsNeeded = true } if allowAutoCommit && ef.planner.autoCommit { upd.enableAutoCommit() } // Serialize the data-modifying plan to ensure that no data is observed that // hasn't been validated first. See the comments on BatchedNext() in // plan_batch.go. if rowsNeeded { return &spoolNode{source: &serializeNode{source: upd}}, nil } // We could use serializeNode here, but using rowCountNode is an // optimization that saves on calls to Next() by the caller. return &rowCountNode{source: upd}, nil } func (ef *execFactory) makeFkMetadata( tabDesc *sqlbase.ImmutableTableDescriptor, fkCheckType row.FKCheckType, ) (row.FkTableMetadata, error) { ctx := ef.planner.extendedEvalCtx.Context // Create a CheckHelper, used in case of cascading actions that cause changes // in the original table. This is only possible with UPDATE (together with // cascade loops or self-references). var checkHelper *sqlbase.CheckHelper if fkCheckType == row.CheckUpdates { var err error checkHelper, err = sqlbase.NewEvalCheckHelper(ctx, ef.planner.analyzeExpr, tabDesc) if err != nil { return nil, err } } // Determine the foreign key tables involved in the upsert. return row.MakeFkMetadata( ef.planner.extendedEvalCtx.Context, tabDesc, fkCheckType, ef.planner.LookupTableByID, ef.planner.CheckPrivilege, ef.planner.analyzeExpr, checkHelper, ) } func (ef *execFactory) ConstructUpsert( input exec.Node, table cat.Table, canaryCol exec.ColumnOrdinal, insertColOrdSet exec.ColumnOrdinalSet, fetchColOrdSet exec.ColumnOrdinalSet, updateColOrdSet exec.ColumnOrdinalSet, returnColOrdSet exec.ColumnOrdinalSet, checks exec.CheckOrdinalSet, allowAutoCommit bool, skipFKChecks bool, ) (exec.Node, error) { ctx := ef.planner.extendedEvalCtx.Context // Derive table and column descriptors. rowsNeeded := !returnColOrdSet.Empty() tabDesc := table.(*optTable).desc insertColDescs := makeColDescList(table, insertColOrdSet) fetchColDescs := makeColDescList(table, fetchColOrdSet) updateColDescs := makeColDescList(table, updateColOrdSet) if err := ef.planner.maybeSetSystemConfig(tabDesc.GetID()); err != nil { return nil, err } var fkTables row.FkTableMetadata checkFKs := row.SkipFKs if !skipFKChecks { checkFKs = row.CheckFKs // Determine the foreign key tables involved in the upsert. var err error fkTables, err = ef.makeFkMetadata(tabDesc, row.CheckUpdates) if err != nil { return nil, err } } // Create the table inserter, which does the bulk of the insert-related work. ri, err := row.MakeInserter( ctx, ef.planner.txn, tabDesc, insertColDescs, checkFKs, fkTables, &ef.planner.alloc, ) if err != nil { return nil, err } // Create the table updater, which does the bulk of the update-related work. ru, err := row.MakeUpdater( ctx, ef.planner.txn, tabDesc, fkTables, updateColDescs, fetchColDescs, row.UpdaterDefault, checkFKs, ef.planner.EvalContext(), &ef.planner.alloc, ) if err != nil { return nil, err } // Truncate any FetchCols added by MakeUpdater. The optimizer has already // computed a correct set that can sometimes be smaller. ru.FetchCols = ru.FetchCols[:len(fetchColDescs)] // updateColsIdx inverts the mapping of UpdateCols to FetchCols. See // the explanatory comments in updateRun. updateColsIdx := make(map[sqlbase.ColumnID]int, len(ru.UpdateCols)) for i := range ru.UpdateCols { id := ru.UpdateCols[i].ID updateColsIdx[id] = i } // Instantiate the upsert node. ups := upsertNodePool.Get().(*upsertNode) *ups = upsertNode{ source: input.(planNode), run: upsertRun{ checkOrds: checks, insertCols: ri.InsertCols, tw: optTableUpserter{ ri: ri, alloc: &ef.planner.alloc, canaryOrdinal: int(canaryCol), fkTables: fkTables, fetchCols: fetchColDescs, updateCols: updateColDescs, ru: ru, }, }, } // If rows are not needed, no columns are returned. if rowsNeeded { returnColDescs := makeColDescList(table, returnColOrdSet) ups.columns = sqlbase.ResultColumnsFromColDescs(returnColDescs) // Update the tabColIdxToRetIdx for the mutation. Upsert returns // non-mutation columns specified, in the same order they are defined // in the table. ups.run.tw.tabColIdxToRetIdx = row.ColMapping(tabDesc.Columns, returnColDescs) ups.run.tw.returnCols = returnColDescs ups.run.tw.collectRows = true } if allowAutoCommit && ef.planner.autoCommit { ups.enableAutoCommit() } // Serialize the data-modifying plan to ensure that no data is observed that // hasn't been validated first. See the comments on BatchedNext() in // plan_batch.go. if rowsNeeded { return &spoolNode{source: &serializeNode{source: ups}}, nil } // We could use serializeNode here, but using rowCountNode is an // optimization that saves on calls to Next() by the caller. return &rowCountNode{source: ups}, nil } func (ef *execFactory) ConstructDelete( input exec.Node, table cat.Table, fetchColOrdSet exec.ColumnOrdinalSet, returnColOrdSet exec.ColumnOrdinalSet, allowAutoCommit bool, skipFKChecks bool, ) (exec.Node, error) { ctx := ef.planner.extendedEvalCtx.Context // Derive table and column descriptors. rowsNeeded := !returnColOrdSet.Empty() tabDesc := table.(*optTable).desc fetchColDescs := makeColDescList(table, fetchColOrdSet) if err := ef.planner.maybeSetSystemConfig(tabDesc.GetID()); err != nil { return nil, err } // Determine the foreign key tables involved in the delete. // This will include all the interleaved child tables as we need them // to see if we can execute the fast path delete. fkTables, err := ef.makeFkMetadata(tabDesc, row.CheckDeletes) if err != nil { return nil, err } fastPathInterleaved := canDeleteFastInterleaved(tabDesc, fkTables) if fastPathNode, ok := maybeCreateDeleteFastNode( ctx, input.(planNode), tabDesc, fkTables, fastPathInterleaved, rowsNeeded); ok { return fastPathNode, nil } checkFKs := row.CheckFKs if skipFKChecks { checkFKs = row.SkipFKs } // Create the table deleter, which does the bulk of the work. In the HP, // the deleter derives the columns that need to be fetched. By contrast, the // CBO will have already determined the set of fetch columns, and passes // those sets into the deleter (which will basically be a no-op). rd, err := row.MakeDeleter( ctx, ef.planner.txn, tabDesc, fkTables, fetchColDescs, checkFKs, ef.planner.EvalContext(), &ef.planner.alloc, ) if err != nil { return nil, err } // Truncate any FetchCols added by MakeUpdater. The optimizer has already // computed a correct set that can sometimes be smaller. rd.FetchCols = rd.FetchCols[:len(fetchColDescs)] // Now make a delete node. We use a pool. del := deleteNodePool.Get().(*deleteNode) *del = deleteNode{ source: input.(planNode), run: deleteRun{ td: tableDeleter{rd: rd, alloc: &ef.planner.alloc}, }, } // If rows are not needed, no columns are returned. if rowsNeeded { returnColDescs := makeColDescList(table, returnColOrdSet) // Delete returns the non-mutation columns specified, in the same // order they are defined in the table. del.columns = sqlbase.ResultColumnsFromColDescs(returnColDescs) del.run.rowIdxToRetIdx = row.ColMapping(rd.FetchCols, returnColDescs) del.run.rowsNeeded = true } if allowAutoCommit && ef.planner.autoCommit { del.enableAutoCommit() } // Serialize the data-modifying plan to ensure that no data is observed that // hasn't been validated first. See the comments on BatchedNext() in // plan_batch.go. if rowsNeeded { return &spoolNode{source: &serializeNode{source: del}}, nil } // We could use serializeNode here, but using rowCountNode is an // optimization that saves on calls to Next() by the caller. return &rowCountNode{source: del}, nil } func (ef *execFactory) ConstructDeleteRange( table cat.Table, needed exec.ColumnOrdinalSet, indexConstraint *constraint.Constraint, maxReturnedKeys int, allowAutoCommit bool, ) (exec.Node, error) { tabDesc := table.(*optTable).desc indexDesc := &tabDesc.PrimaryIndex sb := span.MakeBuilder(tabDesc.TableDesc(), indexDesc) if err := ef.planner.maybeSetSystemConfig(tabDesc.GetID()); err != nil { return nil, err } // Setting the "forDelete" flag includes all column families in case where a // single record is deleted. spans, err := sb.SpansFromConstraint(indexConstraint, needed, true /* forDelete */) if err != nil { return nil, err } // Permitting autocommit in DeleteRange is very important, because DeleteRange // is used for simple deletes from primary indexes like // DELETE FROM t WHERE key = 1000 // When possible, we need to make this a 1pc transaction for performance // reasons. At the same time, we have to be careful, because DeleteRange // returns all of the keys that it deleted - so we have to set a limit on the // DeleteRange request. But, trying to set autocommit and a limit on the // request doesn't work properly if the limit is hit. So, we permit autocommit // here if we can guarantee that the number of returned keys is finite and // relatively small. autoCommitEnabled := allowAutoCommit && ef.planner.autoCommit // If maxReturnedKeys is 0, it indicates that we weren't able to determine // the maximum number of returned keys, so we'll give up and not permit // autocommit. if maxReturnedKeys == 0 || maxReturnedKeys > TableTruncateChunkSize { autoCommitEnabled = false } return &deleteRangeNode{ interleavedFastPath: false, spans: spans, desc: tabDesc, autoCommitEnabled: autoCommitEnabled, }, nil } // ConstructCreateTable is part of the exec.Factory interface. func (ef *execFactory) ConstructCreateTable( input exec.Node, schema cat.Schema, ct *tree.CreateTable, ) (exec.Node, error) { nd := &createTableNode{n: ct, dbDesc: schema.(*optSchema).desc} if input != nil { nd.sourcePlan = input.(planNode) } return nd, nil } // ConstructCreateView is part of the exec.Factory interface. func (ef *execFactory) ConstructCreateView( schema cat.Schema, viewName string, ifNotExists bool, temporary bool, viewQuery string, columns sqlbase.ResultColumns, deps opt.ViewDeps, ) (exec.Node, error) { planDeps := make(planDependencies, len(deps)) for _, d := range deps { desc, err := getDescForDataSource(d.DataSource) if err != nil { return nil, err } var ref sqlbase.TableDescriptor_Reference if d.SpecificIndex { idx := d.DataSource.(cat.Table).Index(d.Index) ref.IndexID = idx.(*optIndex).desc.ID } if !d.ColumnOrdinals.Empty() { ref.ColumnIDs = make([]sqlbase.ColumnID, 0, d.ColumnOrdinals.Len()) d.ColumnOrdinals.ForEach(func(ord int) { ref.ColumnIDs = append(ref.ColumnIDs, desc.Columns[ord].ID) }) } entry := planDeps[desc.ID] entry.desc = desc entry.deps = append(entry.deps, ref) planDeps[desc.ID] = entry } return &createViewNode{ viewName: tree.Name(viewName), ifNotExists: ifNotExists, temporary: temporary, viewQuery: viewQuery, dbDesc: schema.(*optSchema).desc, columns: columns, planDeps: planDeps, }, nil } // ConstructSequenceSelect is part of the exec.Factory interface. func (ef *execFactory) ConstructSequenceSelect(sequence cat.Sequence) (exec.Node, error) { return ef.planner.SequenceSelectNode(sequence.(*optSequence).desc) } // ConstructSaveTable is part of the exec.Factory interface. func (ef *execFactory) ConstructSaveTable( input exec.Node, table *cat.DataSourceName, colNames []string, ) (exec.Node, error) { return ef.planner.makeSaveTable(input.(planNode), table, colNames), nil } // ConstructErrorIfRows is part of the exec.Factory interface. func (ef *execFactory) ConstructErrorIfRows( input exec.Node, mkErr func(tree.Datums) error, ) (exec.Node, error) { return &errorIfRowsNode{ plan: input.(planNode), mkErr: mkErr, }, nil } // ConstructOpaque is part of the exec.Factory interface. func (ef *execFactory) ConstructOpaque(metadata opt.OpaqueMetadata) (exec.Node, error) { o, ok := metadata.(*opaqueMetadata) if !ok { return nil, errors.AssertionFailedf("unexpected OpaqueMetadata object type %T", metadata) } return o.plan, nil } // ConstructAlterTableSplit is part of the exec.Factory interface. func (ef *execFactory) ConstructAlterTableSplit( index cat.Index, input exec.Node, expiration tree.TypedExpr, ) (exec.Node, error) { expirationTime, err := parseExpirationTime(ef.planner.EvalContext(), expiration) if err != nil { return nil, err } return &splitNode{ tableDesc: &index.Table().(*optTable).desc.TableDescriptor, index: index.(*optIndex).desc, rows: input.(planNode), expirationTime: expirationTime, }, nil } // ConstructAlterTableUnsplit is part of the exec.Factory interface. func (ef *execFactory) ConstructAlterTableUnsplit( index cat.Index, input exec.Node, ) (exec.Node, error) { return &unsplitNode{ tableDesc: &index.Table().(*optTable).desc.TableDescriptor, index: index.(*optIndex).desc, rows: input.(planNode), }, nil } // ConstructAlterTableUnsplitAll is part of the exec.Factory interface. func (ef *execFactory) ConstructAlterTableUnsplitAll(index cat.Index) (exec.Node, error) { return &unsplitAllNode{ tableDesc: &index.Table().(*optTable).desc.TableDescriptor, index: index.(*optIndex).desc, }, nil } // ConstructAlterTableRelocate is part of the exec.Factory interface. func (ef *execFactory) ConstructAlterTableRelocate( index cat.Index, input exec.Node, relocateLease bool, ) (exec.Node, error) { return &relocateNode{ relocateLease: relocateLease, tableDesc: &index.Table().(*optTable).desc.TableDescriptor, index: index.(*optIndex).desc, rows: input.(planNode), }, nil } // ConstructControlJobs is part of the exec.Factory interface. func (ef *execFactory) ConstructControlJobs( command tree.JobCommand, input exec.Node, ) (exec.Node, error) { return &controlJobsNode{ rows: input.(planNode), desiredStatus: jobCommandToDesiredStatus[command], }, nil } // ConstructCancelQueries is part of the exec.Factory interface. func (ef *execFactory) ConstructCancelQueries(input exec.Node, ifExists bool) (exec.Node, error) { return &cancelQueriesNode{ rows: input.(planNode), ifExists: ifExists, }, nil } // ConstructCancelSessions is part of the exec.Factory interface. func (ef *execFactory) ConstructCancelSessions(input exec.Node, ifExists bool) (exec.Node, error) { return &cancelSessionsNode{ rows: input.(planNode), ifExists: ifExists, }, nil } // renderBuilder encapsulates the code to build a renderNode. type renderBuilder struct { r *renderNode res planNode } // init initializes the renderNode with render expressions. func (rb *renderBuilder) init(n exec.Node, reqOrdering exec.OutputOrdering, cap int) { src := asDataSource(n) rb.r = &renderNode{ source: src, render: make([]tree.TypedExpr, 0, cap), columns: make([]sqlbase.ResultColumn, 0, cap), } rb.r.ivarHelper = tree.MakeIndexedVarHelper(rb.r, len(src.columns)) rb.r.reqOrdering = ReqOrdering(reqOrdering) // If there's a spool, pull it up. if spool, ok := rb.r.source.plan.(*spoolNode); ok { rb.r.source.plan = spool.source spool.source = rb.r rb.res = spool } else { rb.res = rb.r } } // addExpr adds a new render expression with the given name. func (rb *renderBuilder) addExpr(expr tree.TypedExpr, colName string) { rb.r.render = append(rb.r.render, expr) rb.r.columns = append(rb.r.columns, sqlbase.ResultColumn{Name: colName, Typ: expr.ResolvedType()}) } // makeColDescList returns a list of table column descriptors. Columns are // included if their ordinal position in the table schema is in the cols set. func makeColDescList(table cat.Table, cols exec.ColumnOrdinalSet) []sqlbase.ColumnDescriptor { colDescs := make([]sqlbase.ColumnDescriptor, 0, cols.Len()) for i, n := 0, table.DeletableColumnCount(); i < n; i++ { if !cols.Contains(i) { continue } colDescs = append(colDescs, *table.Column(i).(*sqlbase.ColumnDescriptor)) } return colDescs } // makeScanColumnsConfig builds a scanColumnsConfig struct by constructing a // list of descriptor IDs for columns in the given cols set. Columns are // identified by their ordinal position in the table schema. func makeScanColumnsConfig(table cat.Table, cols exec.ColumnOrdinalSet) scanColumnsConfig
{ // Set visibility=publicAndNonPublicColumns, since all columns in the "cols" // set should be projected, regardless of whether they're public or non- // public. The caller decides which columns to include (or not include). Note // that when wantedColumns is non-empty, the visibility flag will never // trigger the addition of more columns. colCfg := scanColumnsConfig{ wantedColumns: make([]tree.ColumnID, 0, cols.Len()), visibility: publicAndNonPublicColumns, } for c, ok := cols.Next(0); ok; c, ok = cols.Next(c + 1) { desc := table.Column(c).(*sqlbase.ColumnDescriptor) colCfg.wantedColumns = append(colCfg.wantedColumns, tree.ColumnID(desc.ID)) } return colCfg }
client.rs
// Copyright (c) 2019 Ant Financial // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. use nix::sys::select::*; use nix::sys::socket::*; use nix::unistd::close; use protobuf::{CodedInputStream, CodedOutputStream, Message}; use std::collections::HashMap; use std::os::unix::io::RawFd; use std::sync::mpsc; use std::sync::{Arc, Mutex}; use std::thread; use crate::channel::{ read_message, write_message, MessageHeader, MESSAGE_TYPE_REQUEST, MESSAGE_TYPE_RESPONSE, }; use crate::error::{Error, Result}; use crate::ttrpc::{Code, Request, Response}; #[derive(Clone)] pub struct Client { fd: RawFd, sender_tx: mpsc::Sender<(Vec<u8>, mpsc::SyncSender<Result<Vec<u8>>>)>, client_close: Arc<ClientClose>, } impl Client { /// Initialize a new [`Client`]. pub fn new(fd: RawFd) -> Client
pub fn request(&self, req: Request) -> Result<Response> { let mut buf = Vec::with_capacity(req.compute_size() as usize); let mut s = CodedOutputStream::vec(&mut buf); req.write_to(&mut s).map_err(err_to_Others!(e, ""))?; s.flush().map_err(err_to_Others!(e, ""))?; let (tx, rx) = mpsc::sync_channel(0); self.sender_tx .send((buf, tx)) .map_err(err_to_Others!(e, "Send packet to sender error "))?; let result = rx .recv() .map_err(err_to_Others!(e, "Recive packet from recver error "))?; let buf = result?; let mut s = CodedInputStream::from_bytes(&buf); let mut res = Response::new(); res.merge_from(&mut s) .map_err(err_to_Others!(e, "Unpack response error "))?; let status = res.get_status(); if status.get_code() != Code::OK { return Err(Error::RpcStatus((*status).clone())); } Ok(res) } } struct ClientClose { fd: RawFd, close_fd: RawFd, } impl Drop for ClientClose { fn drop(&mut self) { close(self.close_fd).unwrap(); close(self.fd).unwrap(); trace!("All client is droped"); } } #[macro_export] macro_rules! client_request { ($self: ident, $req: ident, $timeout_nano: ident, $server: expr, $method: expr, $cres: ident) => { let mut creq = ::ttrpc::Request::new(); creq.set_service($server.to_string()); creq.set_method($method.to_string()); creq.set_timeout_nano($timeout_nano); creq.payload.reserve($req.compute_size() as usize); let mut s = CodedOutputStream::vec(&mut creq.payload); $req.write_to(&mut s) .map_err(::ttrpc::Err_to_Others!(e, ""))?; s.flush().map_err(::ttrpc::Err_to_Others!(e, ""))?; let res = $self.client.request(creq)?; let mut s = CodedInputStream::from_bytes(&res.payload); $cres .merge_from(&mut s) .map_err(::ttrpc::Err_to_Others!(e, "Unpack get error "))?; }; }
{ let (sender_tx, rx): ( mpsc::Sender<(Vec<u8>, mpsc::SyncSender<Result<Vec<u8>>>)>, mpsc::Receiver<(Vec<u8>, mpsc::SyncSender<Result<Vec<u8>>>)>, ) = mpsc::channel(); let (recver_fd, close_fd) = socketpair( AddressFamily::Unix, SockType::Stream, None, SockFlag::empty(), ) .unwrap(); let client_close = Arc::new(ClientClose { fd: fd, close_fd: close_fd, }); let recver_map_orig = Arc::new(Mutex::new(HashMap::new())); //Sender let recver_map = recver_map_orig.clone(); thread::spawn(move || { let mut stream_id: u32 = 1; for (buf, recver_tx) in rx.iter() { let current_stream_id = stream_id; stream_id += 2; //Put current_stream_id and recver_tx to recver_map { let mut map = recver_map.lock().unwrap(); map.insert(current_stream_id, recver_tx.clone()); } let mh = MessageHeader { length: buf.len() as u32, stream_id: current_stream_id, type_: MESSAGE_TYPE_REQUEST, flags: 0, }; if let Err(e) = write_message(fd, mh, buf) { //Remove current_stream_id and recver_tx to recver_map { let mut map = recver_map.lock().unwrap(); map.remove(&current_stream_id); } recver_tx.send(Err(e)).unwrap(); } } trace!("Sender quit"); }); //Recver let recver_map = recver_map_orig.clone(); thread::spawn(move || { let bigfd = { if fd > recver_fd { fd + 1 } else { recver_fd + 1 } }; loop { let mut rs = FdSet::new(); rs.insert(recver_fd); rs.insert(fd); select(bigfd, Some(&mut rs), None, None, None).unwrap(); if rs.contains(recver_fd) { break; } else if !rs.contains(fd) { continue; } let mh; let buf; match read_message(fd) { Ok((x, y)) => { mh = x; buf = y; } Err(x) => match x { Error::Socket(y) => { trace!("Socket error {}", y); break; } _ => { trace!("Others error {:?}", x); continue; } }, }; let mut map = recver_map.lock().unwrap(); let recver_tx = match map.get(&mh.stream_id) { Some(tx) => tx, None => { debug!("Recver got unknown packet {:?} {:?}", mh, buf); continue; } }; if mh.type_ != MESSAGE_TYPE_RESPONSE { recver_tx .send(Err(Error::Others(format!( "Recver got malformed packet {:?} {:?}", mh, buf )))) .unwrap(); continue; } recver_tx.send(Ok(buf)).unwrap(); map.remove(&mh.stream_id); } trace!("Recver quit"); }); Client { fd: fd, sender_tx: sender_tx, client_close: client_close, } }
cli.py
"""Console script for mspsmc.""" import argparse import sys def main():
if __name__ == "__main__": sys.exit(main()) # pragma: no cover
"""Console script for mspsmc.""" parser = argparse.ArgumentParser() parser.add_argument("_", nargs="*") args = parser.parse_args() print("Arguments: " + str(args._)) print("Replace this message by putting your code into " "mspsmc.cli.main") return 0
api.go
// Package client provides a Stripe client for invoking APIs across all resources package client import ( stripe "github.com/stripe/stripe-go/v72" "github.com/stripe/stripe-go/v72/account" "github.com/stripe/stripe-go/v72/accountlink" "github.com/stripe/stripe-go/v72/applepaydomain" "github.com/stripe/stripe-go/v72/balance" "github.com/stripe/stripe-go/v72/balancetransaction" "github.com/stripe/stripe-go/v72/bankaccount" billingportalconfiguration "github.com/stripe/stripe-go/v72/billingportal/configuration" billingportalsession "github.com/stripe/stripe-go/v72/billingportal/session" "github.com/stripe/stripe-go/v72/capability" "github.com/stripe/stripe-go/v72/card" "github.com/stripe/stripe-go/v72/charge" checkoutsession "github.com/stripe/stripe-go/v72/checkout/session" "github.com/stripe/stripe-go/v72/countryspec" "github.com/stripe/stripe-go/v72/coupon" "github.com/stripe/stripe-go/v72/creditnote" "github.com/stripe/stripe-go/v72/customer" "github.com/stripe/stripe-go/v72/customerbalancetransaction" "github.com/stripe/stripe-go/v72/discount" "github.com/stripe/stripe-go/v72/dispute" "github.com/stripe/stripe-go/v72/ephemeralkey" "github.com/stripe/stripe-go/v72/event" "github.com/stripe/stripe-go/v72/fee" "github.com/stripe/stripe-go/v72/feerefund" "github.com/stripe/stripe-go/v72/file" "github.com/stripe/stripe-go/v72/filelink" "github.com/stripe/stripe-go/v72/identity/verificationreport" "github.com/stripe/stripe-go/v72/identity/verificationsession" "github.com/stripe/stripe-go/v72/invoice" "github.com/stripe/stripe-go/v72/invoiceitem" "github.com/stripe/stripe-go/v72/issuing/authorization" issuingcard "github.com/stripe/stripe-go/v72/issuing/card" "github.com/stripe/stripe-go/v72/issuing/cardholder" issuingdispute "github.com/stripe/stripe-go/v72/issuing/dispute" "github.com/stripe/stripe-go/v72/issuing/transaction" "github.com/stripe/stripe-go/v72/loginlink" "github.com/stripe/stripe-go/v72/mandate" "github.com/stripe/stripe-go/v72/oauth" "github.com/stripe/stripe-go/v72/order" "github.com/stripe/stripe-go/v72/orderreturn" "github.com/stripe/stripe-go/v72/paymentintent" "github.com/stripe/stripe-go/v72/paymentmethod" "github.com/stripe/stripe-go/v72/paymentsource" "github.com/stripe/stripe-go/v72/payout" "github.com/stripe/stripe-go/v72/person" "github.com/stripe/stripe-go/v72/plan" "github.com/stripe/stripe-go/v72/price" "github.com/stripe/stripe-go/v72/product" "github.com/stripe/stripe-go/v72/promotioncode" "github.com/stripe/stripe-go/v72/quote" "github.com/stripe/stripe-go/v72/radar/earlyfraudwarning" "github.com/stripe/stripe-go/v72/radar/valuelist" "github.com/stripe/stripe-go/v72/radar/valuelistitem" "github.com/stripe/stripe-go/v72/refund" "github.com/stripe/stripe-go/v72/reporting/reportrun" "github.com/stripe/stripe-go/v72/reporting/reporttype" "github.com/stripe/stripe-go/v72/reversal" "github.com/stripe/stripe-go/v72/review" "github.com/stripe/stripe-go/v72/setupattempt" "github.com/stripe/stripe-go/v72/setupintent" "github.com/stripe/stripe-go/v72/sigma/scheduledqueryrun" "github.com/stripe/stripe-go/v72/sku" "github.com/stripe/stripe-go/v72/source" "github.com/stripe/stripe-go/v72/sourcetransaction" "github.com/stripe/stripe-go/v72/sub" "github.com/stripe/stripe-go/v72/subitem" "github.com/stripe/stripe-go/v72/subschedule" "github.com/stripe/stripe-go/v72/taxcode" "github.com/stripe/stripe-go/v72/taxid" "github.com/stripe/stripe-go/v72/taxrate" terminalconnectiontoken "github.com/stripe/stripe-go/v72/terminal/connectiontoken" terminallocation "github.com/stripe/stripe-go/v72/terminal/location" terminalreader "github.com/stripe/stripe-go/v72/terminal/reader" "github.com/stripe/stripe-go/v72/token" "github.com/stripe/stripe-go/v72/topup" "github.com/stripe/stripe-go/v72/transfer" "github.com/stripe/stripe-go/v72/usagerecord" "github.com/stripe/stripe-go/v72/usagerecordsummary" "github.com/stripe/stripe-go/v72/webhookendpoint" ) // API is the Stripe client. It contains all the different resources available. type API struct { // Account is the client used to invoke /accounts APIs. Account *account.Client // AccountLink is the client used to invoke /account_links APIs. AccountLinks *accountlink.Client // ApplePayDomains is the client used to invoke /apple_pay/domains APIs. ApplePayDomains *applepaydomain.Client // Balance is the client used to invoke /balance APIs. Balance *balance.Client // BalanceTransaction is the client used to invoke /balance_transactions APIs. BalanceTransaction *balancetransaction.Client // BankAccounts is the client used to invoke bank account related APIs. BankAccounts *bankaccount.Client // BillingPortalSessions is the client used to invoke /billing_portal/sessions APIs. BillingPortalSessions *billingportalsession.Client // BillingPortalConfigurations is the client used to invoke /billing_portal/configurations APIs. BillingPortalConfigurations *billingportalconfiguration.Client // Capabilities is the client used to invoke capability related APIs. Capabilities *capability.Client // Cards is the client used to invoke card related APIs. Cards *card.Client // Charges is the client used to invoke /charges APIs. Charges *charge.Client // CheckoutSessions is the client used to invoke /checkout/sessions APIs. CheckoutSessions *checkoutsession.Client // CountrySpec is the client used to invoke /country_specs APIs. CountrySpec *countryspec.Client // Coupons is the client used to invoke /coupons APIs. Coupons *coupon.Client // CreditNotes is the client used to invoke /credit_notes APIs. CreditNotes *creditnote.Client // Customers is the client used to invoke /customers APIs. Customers *customer.Client // CustomerBalanceTransactions is the client used to invoke /customers/balance_transactions APIs. CustomerBalanceTransactions *customerbalancetransaction.Client // Discounts is the client used to invoke discount related APIs. Discounts *discount.Client // Disputes is the client used to invoke /disputes APIs. Disputes *dispute.Client // EphemeralKeys is the client used to invoke /ephemeral_keys APIs. EphemeralKeys *ephemeralkey.Client // Events is the client used to invoke /events APIs. Events *event.Client // Fees is the client used to invoke /application_fees APIs. Fees *fee.Client // FeeRefunds is the client used to invoke /application_fees/refunds APIs. FeeRefunds *feerefund.Client // Files is the client used to invoke the /files APIs. Files *file.Client // FileLinks is the client used to invoke the /file_links APIs. FileLinks *filelink.Client // IdentityVerificationReports is the client used to invoke the /identity/verification_reports APIs. IdentityVerificationReports *verificationreport.Client // IdentityVerificationSessions is the client used to invoke the /identity/verification_sessions APIs. IdentityVerificationSessions *verificationsession.Client // Invoices is the client used to invoke /invoices APIs. Invoices *invoice.Client // InvoiceItems is the client used to invoke /invoiceitems APIs. InvoiceItems *invoiceitem.Client // IssuingAuthorizations is the client used to invoke /issuing/authorizations APIs. IssuingAuthorizations *authorization.Client // IssuingCardholders is the client used to invoke /issuing/cardholders APIs. IssuingCardholders *cardholder.Client // IssuingCards is the client used to invoke /issuing/cards APIs. IssuingCards *issuingcard.Client // IssuingDisputes is the client used to invoke /issuing/disputes APIs. IssuingDisputes *issuingdispute.Client // IssuingTransactions is the client used to invoke /issuing/transactions APIs. IssuingTransactions *transaction.Client // LoginLinks is the client used to invoke login link related APIs. LoginLinks *loginlink.Client // Mandates is the client used to invoke mandates related APIs. Mandates *mandate.Client // OAuth is the client used to invoke /oauth APIs. OAuth *oauth.Client // Orders is the client used to invoke /orders APIs. Orders *order.Client // OrderReturns is the client used to invoke /order_returns APIs. OrderReturns *orderreturn.Client // PaymentIntents is the client used to invoke /payment_intents APIs. PaymentIntents *paymentintent.Client // PaymentMethods is the client used to invoke /payment_methods APIs. PaymentMethods *paymentmethod.Client // PaymentSource is used to invoke customer sources related APIs. PaymentSource *paymentsource.Client // Payouts is the client used to invoke /payouts APIs. Payouts *payout.Client // Persons is the client used to invoke /account/persons APIs. Persons *person.Client // Plans is the client used to invoke /plans APIs. Plans *plan.Client // Prices is the client used to invoke /prices APIs. Prices *price.Client // Products is the client used to invoke /products APIs. Products *product.Client // PromotionCodes is the client used to invoke /promotion_codes APIs. PromotionCodes *promotioncode.Client // Quote is the client used to invoke /quotes APIs. Quotes *quote.Client // RadarEarlyFraudWarnings is the client used to invoke /radar/early_fraud_warnings APIs. RadarEarlyFraudWarnings *earlyfraudwarning.Client // RadarValueLists is the client used to invoke /radar/value_lists APIs. RadarValueLists *valuelist.Client // RadarValueListItems is the client used to invoke /radar/value_list_items APIs. RadarValueListItems *valuelistitem.Client // Refunds is the client used to invoke /refunds APIs. Refunds *refund.Client // ReportRuns is the client used to invoke /reporting/report_runs APIs. ReportRuns *reportrun.Client // ReportTypes is the client used to invoke /reporting/report_types APIs. ReportTypes *reporttype.Client // Reversals is the client used to invoke /transfers/reversals APIs. Reversals *reversal.Client // Reviews is the client used to invoke /reviews APIs. Reviews *review.Client // SetupAttempts is the client used to invoke /setup_attempts APIs. SetupAttempts *setupattempt.Client // SetupIntents is the client used to invoke /setup_intents APIs. SetupIntents *setupintent.Client // SigmaScheduledQueryRuns is the client used to invoke /sigma/scheduled_query_runs APIs. SigmaScheduledQueryRuns *scheduledqueryrun.Client // Skus is the client used to invoke /skus APIs. Skus *sku.Client // Sources is the client used to invoke /sources APIs. Sources *source.Client // SourceTransactions is the client used to invoke source transaction related APIs. SourceTransactions *sourcetransaction.Client // Subscriptions is the client used to invoke /subscriptions APIs. Subscriptions *sub.Client // SubscriptionItems is the client used to invoke subscription's items related APIs. SubscriptionItems *subitem.Client // SubscriptionSchedules is the client used to invoke subscription schedules related APIs. SubscriptionSchedules *subschedule.Client // TaxIDs is the client used to invoke /tax_ids APIs. TaxIDs *taxid.Client // TaxCodes is the client used to invoke /tax_codes APIs. TaxCodes *taxcode.Client // TaxRates is the client used to invoke /tax_rates APIs. TaxRates *taxrate.Client // TerminalConnectionTokens is the client used to invoke /terminal/connectiontokens related APIs. TerminalConnectionTokens *terminalconnectiontoken.Client // TerminalLocations is the client used to invoke /terminal/locations related APIs. TerminalLocations *terminallocation.Client // TerminalReaders is the client used to invoke /terminal/readers related APIs. TerminalReaders *terminalreader.Client // Tokens is the client used to invoke /tokens APIs. Tokens *token.Client // Topups is the client used to invoke /tokens APIs. Topups *topup.Client // Transfers is the client used to invoke /transfers APIs. Transfers *transfer.Client // UsageRecords is the client used to invoke usage record related APIs. UsageRecords *usagerecord.Client // UsageRecordsummaries is the client used to invoke usage record summary related APIs. UsageRecordSummaries *usagerecordsummary.Client // WebhookEndpoints is the client used to invoke usage record related APIs. WebhookEndpoints *webhookendpoint.Client } // Init initializes the Stripe client with the appropriate secret key // as well as providing the ability to override the backend as needed. func (a *API) Init(key string, backends *stripe.Backends) { if backends == nil { backends = &stripe.Backends{ API: stripe.GetBackend(stripe.APIBackend), Connect: stripe.GetBackend(stripe.ConnectBackend), Uploads: stripe.GetBackend(stripe.UploadsBackend), } } a.Account = &account.Client{B: backends.API, Key: key} a.ApplePayDomains = &applepaydomain.Client{B: backends.API, Key: key} a.AccountLinks = &accountlink.Client{B: backends.API, Key: key} a.Balance = &balance.Client{B: backends.API, Key: key} a.BalanceTransaction = &balancetransaction.Client{B: backends.API, Key: key} a.BankAccounts = &bankaccount.Client{B: backends.API, Key: key} a.BillingPortalSessions = &billingportalsession.Client{B: backends.API, Key: key} a.BillingPortalConfigurations = &billingportalconfiguration.Client{B: backends.API, Key: key} a.Capabilities = &capability.Client{B: backends.API, Key: key} a.Cards = &card.Client{B: backends.API, Key: key} a.Charges = &charge.Client{B: backends.API, Key: key} a.CheckoutSessions = &checkoutsession.Client{B: backends.API, Key: key} a.CountrySpec = &countryspec.Client{B: backends.API, Key: key} a.Coupons = &coupon.Client{B: backends.API, Key: key} a.CreditNotes = &creditnote.Client{B: backends.API, Key: key} a.Customers = &customer.Client{B: backends.API, Key: key} a.CustomerBalanceTransactions = &customerbalancetransaction.Client{B: backends.API, Key: key} a.Discounts = &discount.Client{B: backends.API, Key: key} a.Disputes = &dispute.Client{B: backends.API, Key: key} a.EphemeralKeys = &ephemeralkey.Client{B: backends.API, Key: key} a.Events = &event.Client{B: backends.API, Key: key} a.Fees = &fee.Client{B: backends.API, Key: key} a.FeeRefunds = &feerefund.Client{B: backends.API, Key: key} a.Files = &file.Client{B: backends.Uploads, Key: key} a.FileLinks = &filelink.Client{B: backends.API, Key: key} a.IdentityVerificationReports = &verificationreport.Client{B: backends.API, Key: key} a.IdentityVerificationSessions = &verificationsession.Client{B: backends.API, Key: key} a.Invoices = &invoice.Client{B: backends.API, Key: key} a.InvoiceItems = &invoiceitem.Client{B: backends.API, Key: key} a.IssuingAuthorizations = &authorization.Client{B: backends.API, Key: key} a.IssuingCardholders = &cardholder.Client{B: backends.API, Key: key} a.IssuingCards = &issuingcard.Client{B: backends.API, Key: key} a.IssuingDisputes = &issuingdispute.Client{B: backends.API, Key: key} a.IssuingTransactions = &transaction.Client{B: backends.API, Key: key} a.LoginLinks = &loginlink.Client{B: backends.API, Key: key} a.Mandates = &mandate.Client{B: backends.API, Key: key} a.OAuth = &oauth.Client{B: backends.Connect, Key: key} a.OrderReturns = &orderreturn.Client{B: backends.API, Key: key} a.Orders = &order.Client{B: backends.API, Key: key} a.PaymentIntents = &paymentintent.Client{B: backends.API, Key: key} a.PaymentMethods = &paymentmethod.Client{B: backends.API, Key: key} a.PaymentSource = &paymentsource.Client{B: backends.API, Key: key} a.Payouts = &payout.Client{B: backends.API, Key: key} a.Persons = &person.Client{B: backends.API, Key: key} a.Plans = &plan.Client{B: backends.API, Key: key} a.Prices = &price.Client{B: backends.API, Key: key} a.Products = &product.Client{B: backends.API, Key: key} a.PromotionCodes = &promotioncode.Client{B: backends.API, Key: key} a.Quotes = &quote.Client{B: backends.API, PDFBackend: backends.Uploads, Key: key} a.RadarEarlyFraudWarnings = &earlyfraudwarning.Client{B: backends.API, Key: key} a.RadarValueLists = &valuelist.Client{B: backends.API, Key: key} a.RadarValueListItems = &valuelistitem.Client{B: backends.API, Key: key} a.Refunds = &refund.Client{B: backends.API, Key: key} a.ReportRuns = &reportrun.Client{B: backends.API, Key: key} a.ReportTypes = &reporttype.Client{B: backends.API, Key: key} a.Reversals = &reversal.Client{B: backends.API, Key: key} a.Reviews = &review.Client{B: backends.API, Key: key} a.SetupAttempts = &setupattempt.Client{B: backends.API, Key: key} a.SetupIntents = &setupintent.Client{B: backends.API, Key: key} a.SigmaScheduledQueryRuns = &scheduledqueryrun.Client{B: backends.API, Key: key} a.Skus = &sku.Client{B: backends.API, Key: key} a.Sources = &source.Client{B: backends.API, Key: key} a.SourceTransactions = &sourcetransaction.Client{B: backends.API, Key: key} a.Subscriptions = &sub.Client{B: backends.API, Key: key} a.SubscriptionItems = &subitem.Client{B: backends.API, Key: key} a.SubscriptionSchedules = &subschedule.Client{B: backends.API, Key: key} a.TaxIDs = &taxid.Client{B: backends.API, Key: key} a.TaxCodes = &taxcode.Client{B: backends.API, Key: key} a.TaxRates = &taxrate.Client{B: backends.API, Key: key} a.TerminalConnectionTokens = &terminalconnectiontoken.Client{B: backends.API, Key: key} a.TerminalLocations = &terminallocation.Client{B: backends.API, Key: key} a.TerminalReaders = &terminalreader.Client{B: backends.API, Key: key} a.Tokens = &token.Client{B: backends.API, Key: key} a.Topups = &topup.Client{B: backends.API, Key: key} a.Transfers = &transfer.Client{B: backends.API, Key: key} a.UsageRecords = &usagerecord.Client{B: backends.API, Key: key} a.UsageRecordSummaries = &usagerecordsummary.Client{B: backends.API, Key: key} a.WebhookEndpoints = &webhookendpoint.Client{B: backends.API, Key: key} } // New creates a new Stripe client with the appropriate secret key // as well as providing the ability to override the backends as needed. func
(key string, backends *stripe.Backends) *API { api := API{} api.Init(key, backends) return &api }
New
navier_stokes_compressible_explicit_solver.py
from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # Importing the Kratos Library import KratosMultiphysics import KratosMultiphysics.FluidDynamicsApplication as KratosFluid ## Import base class file from KratosMultiphysics.FluidDynamicsApplication.fluid_solver import FluidSolver from KratosMultiphysics import python_linear_solver_factory as linear_solver_factory from KratosMultiphysics.FluidDynamicsApplication import check_and_prepare_model_process_fluid def CreateSolver(model, custom_settings): return NavierStokesCompressibleExplicitSolver(model, custom_settings) class NavierStokesCompressibleExplicitSolver(FluidSolver): def __init__(self, model, custom_settings): # Call base fluid solver constructor self._validate_settings_in_baseclass=True # To be removed eventually super(NavierStokesCompressibleExplicitSolver,self).__init__(model,custom_settings) # Define the formulation settings self.element_name = "CompressibleNavierStokesExplicit" if custom_settings["domain_size"].GetInt() == 2: self.condition_name = "LineCondition" # TODO: We need to create a Compressible NS condition (now using the base ones) elif custom_settings["domain_size"].GetInt() == 3: self.condition_name = "SurfaceCondition" # TODO: We need to create a Compressible NS condition (now using the base ones) else: err_msg = "Wrong domain size " raise Exception(err_msg) self.min_buffer_size = 2 self.element_has_nodal_properties = False # Note that DENSITY is nodally stored but considered as a DOF KratosMultiphysics.Logger.PrintInfo("::[NavierStokesCompressibleExplicitSolver]:: ","Construction of NavierStokesCompressibleExplicitSolver finished.") @classmethod def GetDefaultParameters(cls): ##settings string in json format default_settings = KratosMultiphysics.Parameters(""" { "solver_type": "compressible_solver_from_defaults", "model_part_name": "FluidModelPart", "domain_size": -1, "model_import_settings": { "input_type": "mdpa", "input_filename": "", "reorder": false }, "material_import_settings": { "materials_filename": "FluidMaterials.json" }, "echo_level": 1, "time_order": 2, "time_scheme" : "RK4", "move_mesh_flag": false, "shock_capturing": true, "compute_reactions": false, "reform_dofs_at_each_step" : false, "assign_neighbour_elements_to_conditions": true, "volume_model_part_name" : "volume_model_part", "skin_parts": [""], "no_skin_parts":[""], "time_stepping" : { "automatic_time_step" : true, "CFL_number" : 1.0, "minimum_delta_time" : 1.0e-8, "maximum_delta_time" : 1.0e-2 }, "use_oss" : true }""") default_settings.AddMissingParameters(super().GetDefaultParameters()) return default_settings def AddVariables(self): # Add DOF variables (formulation written in conservative form) and reactions self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.DENSITY) # Density DOF self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.MOMENTUM) # Momentum DOF self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.TOTAL_ENERGY) # Total energy DOF self.main_model_part.AddNodalSolutionStepVariable(KratosFluid.REACTION_DENSITY) # Density DOF reaction self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.REACTION) # Momentum DOF reaction self.main_model_part.AddNodalSolutionStepVariable(KratosFluid.REACTION_ENERGY) # Total energy DOF reaction # Required variables self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.BODY_FORCE) self.main_model_part.AddNodalSolutionStepVariable(KratosFluid.MASS_SOURCE) self.main_model_part.AddNodalSolutionStepVariable(KratosFluid.HEAT_SOURCE) self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.NORMAL) # Post-process variables self.main_model_part.AddNodalSolutionStepVariable(KratosFluid.MACH) self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.VELOCITY) self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.PRESSURE) self.main_model_part.AddNodalSolutionStepVariable(KratosMultiphysics.TEMPERATURE) KratosMultiphysics.Logger.PrintInfo("::[NavierStokesCompressibleExplicitSolver]:: ","Explicit compressible fluid solver variables added correctly") def
(self): domain_size = self.main_model_part.ProcessInfo[KratosMultiphysics.DOMAIN_SIZE] KratosMultiphysics.VariableUtils().AddDof(KratosMultiphysics.DENSITY, KratosFluid.REACTION_DENSITY, self.main_model_part) KratosMultiphysics.VariableUtils().AddDof(KratosMultiphysics.MOMENTUM_X, KratosMultiphysics.REACTION_X, self.main_model_part) KratosMultiphysics.VariableUtils().AddDof(KratosMultiphysics.MOMENTUM_Y, KratosMultiphysics.REACTION_Y, self.main_model_part) if domain_size == 3: KratosMultiphysics.VariableUtils().AddDof(KratosMultiphysics.MOMENTUM_Z, KratosMultiphysics.REACTION_Z, self.main_model_part) KratosMultiphysics.VariableUtils().AddDof(KratosMultiphysics.TOTAL_ENERGY, KratosFluid.REACTION_ENERGY, self.main_model_part) def Initialize(self): self.GetComputingModelPart().ProcessInfo[KratosMultiphysics.OSS_SWITCH] = int(self.settings["use_oss"].GetBool()) self.GetComputingModelPart().ProcessInfo[KratosFluid.SHOCK_CAPTURING_SWITCH] = int(self.settings["shock_capturing"].GetBool()) self.solver = self._get_solution_strategy() self.solver.SetEchoLevel(self.settings["echo_level"].GetInt()) self.solver.Initialize() KratosMultiphysics.Logger.PrintInfo("::[NavierStokesCompressibleExplicitSolver]:: ","Explicit compressible fluid solver initialization finished.") def _get_solution_strategy(self): if not hasattr(self, '_solution_strategy'): self._solution_strategy = self._create_solution_strategy() return self._solution_strategy def _create_solution_strategy(self): self.computing_model_part = self.GetComputingModelPart() strategy_settings = KratosMultiphysics.Parameters('''{}''') strategy_settings.AddEmptyValue("rebuild_level").SetInt(0 if self.settings["reform_dofs_at_each_step"].GetBool() else 1) strategy_settings.AddEmptyValue("move_mesh_flag").SetBool(self.settings["move_mesh_flag"].GetBool()) strategy_settings.AddEmptyValue("shock_capturing").SetBool(self.settings["shock_capturing"].GetBool()) rk_parameter = self.settings["time_scheme"].GetString() rk_startegies = { "RK3-TVD": KratosFluid.CompressibleNavierStokesExplicitSolvingStrategyRungeKutta3TVD, "RK4" : KratosFluid.CompressibleNavierStokesExplicitSolvingStrategyRungeKutta4 } if rk_parameter in rk_startegies: return rk_startegies[rk_parameter](self.computing_model_part, strategy_settings) err_msg = "Runge-Kutta method of type '{}' not available. Try any of\n".format(rk_parameter) for key in rk_startegies: err_msg = err_msg + " - {}\n".format(key) raise RuntimeError(err_msg) def _CreateEstimateDtUtility(self): """This method overloads FluidSolver in order to enforce: ``` self.settings["time_stepping"]["consider_compressibility_in_CFL"] == True ``` """ if self.settings["time_stepping"].Has("consider_compressibility_in_CFL"): KratosMultiphysics.Logger.PrintWarning("", "User-specifed consider_compressibility_in_CFL will be overriden with TRUE") else: self.settings["time_stepping"].AddEmptyValue("consider_compressibility_in_CFL") self.settings["time_stepping"]["consider_compressibility_in_CFL"].SetBool(True) estimate_dt_utility = KratosFluid.EstimateDtUtility( self.GetComputingModelPart(), self.settings["time_stepping"]) return estimate_dt_utility
AddDofs
help.py
from routes.band import write_comment class Help:
def __init__(self, get_all_post): self.get_all_post = get_all_post self.help_information() def help_information(self): get_all_post = self.get_all_post post_response_content = get_all_post['result_data']['items'] for item in post_response_content: commment_count = item['comment_count'] content = item['content'] post_key = item['post_key'] if '!help' in content and commment_count == 0: write_comment(comment_body=f'Here are the list of bot commands:\n' f'!clan -> Clan Information\n' f'!player -> Player Infomation\n' f'!warlog -> Warlog Infomation\n' f'!joke -> Tells a random joke', post_key=post_key)
cds.go
/* * Copyright 2017 Baidu, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ // cds.go - the cds APIs definition supported by the BCC service // Package api defines all APIs supported by the BCC service of BCE. package api import ( "encoding/json" "strconv" "github.com/baidubce/bce-sdk-go/bce" "github.com/baidubce/bce-sdk-go/http" ) // CreateCDSVolume - create a specified count of cds volumes // // PARAMS: // - cli: the client agent which can perform sending request // - args: the arguments to create cds volumes // RETURNS: // - *CreateCDSVolumeResult: the result of volume ids newly created // - error: nil if success otherwise the specific error func CreateCDSVolume(cli bce.Client, args *CreateCDSVolumeArgs) (*CreateCDSVolumeResult, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUri()) req.SetMethod(http.POST) if args.ClientToken != "" { req.SetParam("clientToken", args.ClientToken) } jsonBytes, err := json.Marshal(args) if err != nil { return nil, err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return nil, err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &CreateCDSVolumeResult{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // CreateCDSVolumeV3 - create a specified count of cds volumes // // PARAMS: // - cli: the client agent which can perform sending request // - args: the arguments to create cds volumes // RETURNS: // - *CreateCDSVolumeResult: the result of volume ids newly created // - error: nil if success otherwise the specific error func CreateCDSVolumeV3(cli bce.Client, args *CreateCDSVolumeV3Args) (*CreateCDSVolumeResult, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeV3Uri()) req.SetMethod(http.POST) if args.ClientToken != "" { req.SetParam("clientToken", args.ClientToken) } jsonBytes, err := json.Marshal(args) if err != nil { return nil, err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return nil, err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &CreateCDSVolumeResult{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // ListCDSVolume - list all cds volumes with the given parameters // // PARAMS: // - cli: the client agent which can perform sending request // - queryArgs: the optional arguments to list cds volumes // RETURNS: // - *ListCDSVolumeResult: the result of cds volume list // - error: nil if success otherwise the specific error func ListCDSVolume(cli bce.Client, queryArgs *ListCDSVolumeArgs) (*ListCDSVolumeResult, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUri()) req.SetMethod(http.GET) if queryArgs != nil { if len(queryArgs.InstanceId) != 0 { req.SetParam("instanceId", queryArgs.InstanceId) } if len(queryArgs.ZoneName) != 0 { req.SetParam("zoneName", queryArgs.ZoneName) } if len(queryArgs.Marker) != 0 { req.SetParam("marker", queryArgs.Marker) } if queryArgs.MaxKeys != 0 { req.SetParam("maxKeys", strconv.Itoa(queryArgs.MaxKeys)) } } if queryArgs == nil || queryArgs.MaxKeys == 0 { req.SetParam("maxKeys", "1000") } // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &ListCDSVolumeResult{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // ListCDSVolumeV3 - list all cds volumes with the given parameters // // PARAMS: // - cli: the client agent which can perform sending request // - queryArgs: the optional arguments to list cds volumes // RETURNS: // - *ListCDSVolumeResultV3: the result of cds volume list // - error: nil if success otherwise the specific error func ListCDSVolumeV3(cli bce.Client, queryArgs *ListCDSVolumeArgs) (*ListCDSVolumeResultV3, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeV3Uri()) req.SetMethod(http.GET) if queryArgs != nil { if len(queryArgs.InstanceId) != 0 { req.SetParam("instanceId", queryArgs.InstanceId) } if len(queryArgs.ZoneName) != 0 { req.SetParam("zoneName", queryArgs.ZoneName) } if len(queryArgs.Marker) != 0 { req.SetParam("marker", queryArgs.Marker) } if queryArgs.MaxKeys != 0 { req.SetParam("maxKeys", strconv.Itoa(queryArgs.MaxKeys)) } } if queryArgs == nil || queryArgs.MaxKeys == 0 { req.SetParam("maxKeys", "1000") } // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &ListCDSVolumeResultV3{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // GetCDSVolumeDetail - get details of the specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume // RETURNS: // - *GetVolumeDetailResult: the result of the specified cds volume details // - error: nil if success otherwise the specific error func GetCDSVolumeDetail(cli bce.Client, volumeId string) (*GetVolumeDetailResult, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.GET) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &GetVolumeDetailResult{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // GetCDSVolumeDetail - get details of the specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume // RETURNS: // - *GetVolumeDetailResultV3: the result of the specified cds volume details // - error: nil if success otherwise the specific error func GetCDSVolumeDetailV3(cli bce.Client, volumeId string) (*GetVolumeDetailResultV3, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeV3UriWithId(volumeId)) req.SetMethod(http.GET) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &GetVolumeDetailResultV3{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // AttachCDSVolume - attach an cds volume to a specified instance // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume // - args: the arguments of instance id // RETURNS: // - *AttachVolumeResult: the result of the attachment // - error: nil if success otherwise the specific error func AttachCDSVolume(cli bce.Client, volumeId string, args *AttachVolumeArgs) (*AttachVolumeResult, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) req.SetParam("attach", "") jsonBytes, err := json.Marshal(args) if err != nil { return nil, err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil
req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &AttachVolumeResult{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // DetachCDSVolume - detach an cds volume for a specified instance // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume // - args: the arguments of instance id detached from // RETURNS: // - error: nil if success otherwise the specific error func DetachCDSVolume(cli bce.Client, volumeId string, args *DetachVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) req.SetParam("detach", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // DeleteCDSVolume - delete a specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume to be deleted // - : // RETURNS: // - error: nil if success otherwise the specific error func DeleteCDSVolume(cli bce.Client, volumeId string) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.DELETE) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // DeleteCDSVolumeNew - delete a specified cds volume, the difference from the above api is that \ // can control whether to delete the snapshot associated with the volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume to be deleted // - args: the arguments to delete cds volume // RETURNS: // - error: nil if success otherwise the specific error func DeleteCDSVolumeNew(cli bce.Client, volumeId string, args *DeleteCDSVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.POST) jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // ResizeCDSVolume - resize a specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume to be resized // - args: the arguments to resize cds volume // RETURNS: // - error: nil if success otherwise the specific error func ResizeCDSVolume(cli bce.Client, volumeId string, args *ResizeCSDVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) if args.ClientToken != "" { req.SetParam("clientToken", args.ClientToken) } req.SetParam("resize", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // RollbackCDSVolume - roll back a specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the cds volume to be rolled back // - args: the arguments to roll back the cds volume // RETURNS: // - error: nil if success otherwise the specific error func RollbackCDSVolume(cli bce.Client, volumeId string, args *RollbackCSDVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) req.SetParam("rollback", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // PurchaseReservedCDSVolume - renew a specified volume to extend expiration time. // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the volume to be renewed // - args: the arguments to renew cds volume // RETURNS: // - error: nil if success otherwise the specific error func PurchaseReservedCDSVolume(cli bce.Client, volumeId string, args *PurchaseReservedCSDVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) if args.ClientToken != "" { req.SetParam("clientToken", args.ClientToken) } req.SetParam("purchaseReserved", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // RenameCDSVolume - rename a specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the volume to be renamed // - args: the arguments to rename volume // RETURNS: // - error: nil if success otherwise the specific error func RenameCDSVolume(cli bce.Client, volumeId string, args *RenameCSDVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) req.SetParam("rename", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // ModifyCDSVolume - modify attributes of the specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the volume to be modified // - args: arguments to modify volume // RETURNS: // - error: nil if success otherwise the specific error func ModifyCDSVolume(cli bce.Client, volumeId string, args *ModifyCSDVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) req.SetParam("modify", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // ModifyChargeTypeCDSVolume - modify the volume billing method, only support Postpaid to Prepaid and Prepaid to Postpaid // // PARAMS: // - cli: the client agent which can perform sending request // - volumeId: id of the volume to be modified // - args: the arguments to modify volume billing method // RETURNS: // - error: nil if success otherwise the specific error func ModifyChargeTypeCDSVolume(cli bce.Client, volumeId string, args *ModifyChargeTypeCSDVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getVolumeUriWithId(volumeId)) req.SetMethod(http.PUT) req.SetParam("modifyChargeType", "") jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // AutoRenewCDSVolume - auto renew the specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - args: the arguments to auto renew the cds volume // RETURNS: // - error: nil if success otherwise the specific error func AutoRenewCDSVolume(cli bce.Client, args *AutoRenewCDSVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getAutoRenewVolumeUri()) req.SetMethod(http.POST) if args.ClientToken != "" { req.SetParam("clientToken", args.ClientToken) } jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // CancelAutoRenewCDSVolume - cancel auto renew the specified cds volume // // PARAMS: // - cli: the client agent which can perform sending request // - args: the arguments to cancel auto renew the cds volume // RETURNS: // - error: nil if success otherwise the specific error func CancelAutoRenewCDSVolume(cli bce.Client, args *CancelAutoRenewCDSVolumeArgs) error { // Build the request req := &bce.BceRequest{} req.SetUri(getCancelAutoRenewVolumeUri()) req.SetMethod(http.POST) if args.ClientToken != "" { req.SetParam("clientToken", args.ClientToken) } jsonBytes, err := json.Marshal(args) if err != nil { return err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return err } if resp.IsFail() { return resp.ServiceError() } defer func() { resp.Body().Close() }() return nil } // GetAvailableDiskInfo - get available diskInfos of the specified zone // // PARAMS: // - cli: the client agent which can perform sending request // - zoneName: the zone name eg:cn-bj-a // RETURNS: // - *GetAvailableDiskInfoResult: the result of the specified zone diskInfos // - error: nil if success otherwise the specific error func GetAvailableDiskInfo(cli bce.Client, zoneName string) (*GetAvailableDiskInfoResult, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getAvailableDiskInfo()) req.SetMethod(http.GET) req.SetParam("zoneName", zoneName) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &GetAvailableDiskInfoResult{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil } // DeletePrepayVolume - delete the volumes for prepay // // PARAMS: // - cli: the client agent which can perform sending request // - args: the arguments of method // RETURNS: // - *VolumeDeleteResultResponse: the result of deleting volumes // - error: nil if success otherwise the specific error func DeletePrepayVolume(cli bce.Client, args *VolumePrepayDeleteRequestArgs) (*VolumeDeleteResultResponse, error) { // Build the request req := &bce.BceRequest{} req.SetUri(getDeletePrepayVolumeUri()) req.SetMethod(http.POST) jsonBytes, err := json.Marshal(args) if err != nil { return nil, err } body, err := bce.NewBodyFromBytes(jsonBytes) if err != nil { return nil, err } req.SetBody(body) // Send request and get response resp := &bce.BceResponse{} if err := cli.SendRequest(req, resp); err != nil { return nil, err } if resp.IsFail() { return nil, resp.ServiceError() } jsonBody := &VolumeDeleteResultResponse{} if err := resp.ParseJsonBody(jsonBody); err != nil { return nil, err } return jsonBody, nil }
{ return nil, err }
__init__.py
from .tspline import *
rollback.py
#!/usr/bin/env python # Copyright 2015-2016 Yelp Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. from humanize import naturaltime from paasta_tools.cli.cmds.mark_for_deployment import mark_for_deployment from paasta_tools.cli.utils import extract_tags from paasta_tools.cli.utils import figure_out_service_name from paasta_tools.cli.utils import lazy_choices_completer from paasta_tools.cli.utils import list_deploy_groups from paasta_tools.cli.utils import list_services from paasta_tools.cli.utils import validate_full_git_sha from paasta_tools.cli.utils import validate_given_deploy_groups from paasta_tools.remote_git import list_remote_refs from paasta_tools.utils import datetime_from_utc_to_local from paasta_tools.utils import DEFAULT_SOA_DIR from paasta_tools.utils import format_table from paasta_tools.utils import get_git_url from paasta_tools.utils import paasta_print from paasta_tools.utils import PaastaColors from paasta_tools.utils import parse_timestamp def add_subparser(subparsers): list_parser = subparsers.add_parser( 'rollback', help='Rollback a docker image to a previous deploy', description=( "'paasta rollback' is a human-friendly tool for marking a particular " "docker image for deployment, which invokes a bounce. While the command " "is called 'rollback', it can be used to roll forward or back, as long " "as there is a docker image available for the input git SHA." ), epilog=( "This rollback command uses the Git control plane, which requires network " "connectivity as well as authorization to the git repo." ), ) list_parser.add_argument( '-k', '--commit', help="Git SHA to mark for rollback. " "A commit to rollback to is required for paasta rollback to run. However if one is not provided, " "paasta rollback will instead output a list of valid git shas to rollback to.", required=False, type=validate_full_git_sha, ).completer = lazy_choices_completer(list_previously_deployed_shas) list_parser.add_argument( '-l', '--deploy-groups', help='Mark one or more deploy groups to roll back (e.g. ' '"all.main", "all.main,all.canary"). If no deploy groups specified,' ' all deploy groups for that service are rolled back', default='', required=False, ).completer = lazy_choices_completer(list_deploy_groups) list_parser.add_argument( '-s', '--service', help='Name of the service to rollback (e.g. "service1")', ).completer = lazy_choices_completer(list_services) list_parser.add_argument( '-y', '-d', '--soa-dir', dest="soa_dir", metavar="SOA_DIR", default=DEFAULT_SOA_DIR, help="define a different soa config directory", ) list_parser.add_argument( '-f', '--force', help=('Do not check if Git SHA was marked for deployment previously.'), action='store_true', ) list_parser.set_defaults(command=paasta_rollback) def list_previously_deployed_shas(parsed_args, **kwargs): service = parsed_args.service soa_dir = parsed_args.soa_dir deploy_groups = {deploy_group for deploy_group in parsed_args.deploy_groups.split(',') if deploy_group} return (sha for sha in get_git_shas_for_service(service, deploy_groups, soa_dir)) def get_git_shas_for_service(service, deploy_groups, soa_dir): """Returns a dictionary of 2-tuples of the form (timestamp, deploy_group) for each deploy sha""" if service is None: return [] git_url = get_git_url(service=service, soa_dir=soa_dir) all_deploy_groups = list_deploy_groups( service=service, soa_dir=soa_dir, ) deploy_groups, _ = validate_given_deploy_groups(all_deploy_groups, deploy_groups) previously_deployed_shas = {} for ref, sha in list_remote_refs(git_url).items(): regex_match = extract_tags(ref) try: deploy_group = regex_match['deploy_group'] tstamp = regex_match['tstamp'] except KeyError: pass else: # Now we filter and dedup by picking the most recent sha for a deploy group # Note that all strings are greater than '' if deploy_group in deploy_groups: tstamp_so_far = previously_deployed_shas.get(sha, ('all', ''))[1] if tstamp > tstamp_so_far: previously_deployed_shas[sha] = (tstamp, deploy_group) return previously_deployed_shas def list_previous_commits(service, deploy_groups, any_given_deploy_groups, git_shas): def format_timestamp(tstamp): return naturaltime(datetime_from_utc_to_local(parse_timestamp(tstamp))) paasta_print('Below is a list of recent commits:') git_shas = sorted(git_shas.items(), key=lambda x: x[1], reverse=True)[:10] rows = [('Timestamp -- UTC', 'Human time', 'deploy_group', 'Git SHA')] for sha, (timestamp, deploy_group) in git_shas: rows.extend([(timestamp, format_timestamp(timestamp), deploy_group, sha)]) for line in format_table(rows): paasta_print(line) if len(git_shas) >= 2: sha, (timestamp, deploy_group) = git_shas[1] deploy_groups_arg_line = '-l %s ' % ','.join(deploy_groups) if any_given_deploy_groups else '' paasta_print("\nFor example, to use the second to last commit from %s used on %s, run:" % ( format_timestamp(timestamp), PaastaColors.bold(deploy_group), )) paasta_print(PaastaColors.bold(" paasta rollback -s %s %s-k %s" % (service, deploy_groups_arg_line, sha))) def
(args): """Call mark_for_deployment with rollback parameters :param args: contains all the arguments passed onto the script: service, deploy groups and sha. These arguments will be verified and passed onto mark_for_deployment. """ soa_dir = args.soa_dir service = figure_out_service_name(args, soa_dir) git_url = get_git_url(service, soa_dir) given_deploy_groups = {deploy_group for deploy_group in args.deploy_groups.split(",") if deploy_group} all_deploy_groups = list_deploy_groups(service=service, soa_dir=soa_dir) deploy_groups, invalid = validate_given_deploy_groups(all_deploy_groups, given_deploy_groups) if len(invalid) > 0: paasta_print( PaastaColors.yellow( "These deploy groups are not valid and will be skipped: %s.\n" % (",").join(invalid), ), ) if len(deploy_groups) == 0: paasta_print(PaastaColors.red("ERROR: No valid deploy groups specified for %s.\n" % (service))) return 1 git_shas = get_git_shas_for_service(service, deploy_groups, soa_dir) commit = args.commit if not commit: paasta_print("Please specify a commit to mark for rollback (-k, --commit).") list_previous_commits(service, deploy_groups, bool(given_deploy_groups), git_shas) return 1 elif commit not in git_shas and not args.force: paasta_print(PaastaColors.red("This Git SHA has never been deployed before.")) paasta_print("Please double check it or use --force to skip this verification.\n") list_previous_commits(service, deploy_groups, bool(given_deploy_groups), git_shas) return 1 returncode = 0 for deploy_group in deploy_groups: returncode = max( mark_for_deployment( git_url=git_url, service=service, deploy_group=deploy_group, commit=commit, ), returncode, ) return returncode
paasta_rollback
ChannelApi.ts
import axios from 'axios'; import { ICache } from '../cache/ICahce'; import { LocalCache } from '../cache/LocalCache'; import { config } from '../system/config'; export interface ChannelApiSuccessResponse { id: number; yt_channel_id: string | null; bb_space_id: string | null; name: string; description: string | null; photo: string | null; published_at: string; twitter_link: string | null; last_fetch_timestamp: number; view_count?: number; subscriber_count?: number; video_count?: number; } interface ChannelApiErrorResponse { message: string; } type ChannelApiResponse = { status: 'success', data: ChannelApiSuccessResponse, } | { status: 'error', data: ChannelApiErrorResponse, }; const cache: ICache<ChannelApiResponse> = new LocalCache(); // 15 MINUTES const SUCCESS_EXPIRE_MS = 1000 * 60 * 15; // 2 MINUTES const ERROR_EXPIRE_MS = 1000 * 60 * 2; class
{ public async getById (holo_api_id: string): Promise<ChannelApiResponse> { const cacheVal = await cache.get(holo_api_id); if (cacheVal !== undefined) return cacheVal; try { const response = await axios({ url: '/channels/' + holo_api_id, method: 'get', baseURL: config.HOLO_API.URL, headers: { 'content-type': 'application/json', 'charset': 'utf-8' }, timeout: config.HOLO_API.TIMEOUT, }); response.data.last_fetch_timestamp = new Date().getTime(); const data: { status: 'success', data: ChannelApiSuccessResponse, } = { status: 'success', data: response.data as ChannelApiSuccessResponse, }; await cache.set(holo_api_id, data, { expireMs: SUCCESS_EXPIRE_MS, }); return data; } catch (error) { let message = error?.response?.data?.message || error?.message || 'Unknown error'; message += ' id:"' + holo_api_id + '"'; const data: { status: 'error', data: ChannelApiErrorResponse, } = { status: 'error', data: { message, }, }; await cache.set(holo_api_id, data, { expireMs: ERROR_EXPIRE_MS, }); return data; } } } const channelApiDao = new ChannelApiDao(); export { channelApiDao as ChannelApiDao, };
ChannelApiDao
mod.rs
#![allow(dead_code)] use std::cell::RefCell; use std::cmp::min; use std::collections::VecDeque; use std::io::{Error, ErrorKind, Write}; use std::rc::Rc; use std::sync::{Arc, Condvar, Mutex, Weak}; use std::time::Duration; pub mod bytes { pub const STX: u8 = 2; pub const ETX: u8 = 3; pub const ACK: u8 = 6; pub const NAK: u8 = 21; } pub struct SerialInterface { rx: Vec<u8>, rx_pos: usize, tx: Vec<u8>, do_read_error: bool, do_write_error: bool, } pub struct SerialIOPlane(Rc<RefCell<SerialInterface>>); impl SerialIOPlane { pub fn new(serial_if: &Rc<RefCell<SerialInterface>>) -> SerialIOPlane { SerialIOPlane(serial_if.clone()) } } impl SerialInterface { pub fn new(rx: &[u8]) -> Rc<RefCell<SerialInterface>> { Rc::new(RefCell::new(SerialInterface { rx: rx.to_vec(), tx: Vec::new(), rx_pos: 0, do_read_error: false, do_write_error: false, })) } pub fn trigger_write_error(&mut self) { self.do_write_error = true; } pub fn trigger_read_error(&mut self) { self.do_read_error = true; } } impl std::io::Read for SerialIOPlane { fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> { let mut inner = self.0.borrow_mut(); if inner.do_read_error { inner.do_read_error = false; Err(Error::new(ErrorKind::PermissionDenied, "IO read error")) } else { let old_pos = inner.rx_pos; inner.rx_pos = min(old_pos + buf.len(), inner.rx.len()); let len = inner.rx_pos - old_pos; buf[..len].copy_from_slice(&inner.rx[old_pos..inner.rx_pos]); Ok(len) } } } impl std::io::Write for SerialIOPlane { fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { let mut inner = self.0.borrow_mut(); if inner.do_write_error { inner.do_write_error = false; Err(Error::new(ErrorKind::PermissionDenied, "IO write error")) } else { inner.tx.write(buf) } } fn flush(&mut self) -> std::io::Result<()> { Ok(()) } } type BusT = Arc<Mutex<VecDeque<u8>>>; #[derive(Default)] pub struct RS422Bus { masters: Mutex<Vec<Weak<BusInterfaceLink>>>, nodes: Mutex<Vec<Weak<BusInterfaceLink>>>, master_data_available: Arc<Condvar>, node_data_available: Arc<Condvar>, } impl RS422Bus { pub fn new() -> Arc<RS422Bus> { Default::default() } pub fn new_master_interface(self: &Arc<Self>) -> BusInterface { let link = Arc::new(BusInterfaceLink { is_master: true, rx: Default::default(), rx_condvar: Arc::clone(&self.master_data_available), }); self.masters.lock().unwrap().push(Arc::downgrade(&link)); BusInterface::new(Arc::clone(self), link) } pub fn new_node_interface(self: &Arc<RS422Bus>) -> BusInterface { let link = Arc::new(BusInterfaceLink { is_master: false, rx: Default::default(), rx_condvar: Arc::clone(&self.node_data_available), }); self.nodes.lock().unwrap().push(Arc::downgrade(&link)); BusInterface::new(Arc::clone(&self), link) } pub fn wake_blocked_nodes(&self) { self.node_data_available.notify_all() } fn send_to_nodes(self: &Arc<Self>, data: u8) { let nodes = self.nodes.lock().unwrap(); for weak in nodes.iter() { if let Some(node) = weak.upgrade() { node.rx.lock().unwrap().push_back(data); } self.node_data_available.notify_all(); } } fn send_to_masters(self: &Arc<Self>, data: u8) { let masters = self.masters.lock().unwrap(); for weak in masters.iter() { if let Some(master) = weak.upgrade() { master.rx.lock().unwrap().push_back(data); } self.master_data_available.notify_all(); } } } pub struct BusInterface { bus: Arc<RS422Bus>, link: Arc<BusInterfaceLink>, pub blocking_read: bool, pub timeout: Duration, pub do_read_error: bool, pub do_write_error: bool, } struct BusInterfaceLink { is_master: bool, rx: BusT, rx_condvar: Arc<Condvar>, } impl BusInterface { fn new(bus: Arc<RS422Bus>, link: Arc<BusInterfaceLink>) -> BusInterface { BusInterface { bus, link, blocking_read: true, timeout: Duration::from_secs(1), do_read_error: false, do_write_error: false, } } pub fn putc(&mut self, byte: u8) { self.write(&[byte]).unwrap(); } } impl std::io::Read for BusInterface { fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize>
} impl std::io::Write for BusInterface { fn write(&mut self, buf: &[u8]) -> std::io::Result<usize> { if self.do_write_error { self.do_write_error = false; Err(Error::new(ErrorKind::PermissionDenied, "IO write error")) } else { for byte in buf { if self.link.is_master { self.bus.send_to_nodes(*byte); } else { self.bus.send_to_masters(*byte) } } Ok(buf.len()) } } fn flush(&mut self) -> std::io::Result<()> { Ok(()) } }
{ if self.do_read_error { self.do_read_error = false; return Err(Error::new(ErrorKind::PermissionDenied, "IO read error")); } let mut rx = if self.blocking_read { self.link.rx.lock().expect("Read mutex is poisoned") } else { self.link .rx .try_lock() .map_err(|_| Error::new(ErrorKind::WouldBlock, "IO read error: would block"))? }; loop { match rx.pop_front() { Some(byte) => { buf[0] = byte; return Ok(1); } None => { if self.blocking_read { let x = self .link .rx_condvar .wait_timeout(rx, self.timeout) .expect("Mutex lock failed"); rx = x.0; if rx.is_empty() { return Err(Error::new(ErrorKind::TimedOut, "IO read timeout")); } } else { return Ok(0); } } } } }
memory_manager.py
from collections import deque from typing import Dict, Set, Deque, List, Optional from sc2.data import Race from sc2.position import Point2 from sharpy.events import UnitDestroyedEvent from sharpy.interfaces import IMemoryManager from sharpy.managers.core import ManagerBase from sc2.ids.unit_typeid import UnitTypeId from sc2.unit import Unit from sc2.units import Units MAX_SNAPSHOTS_PER_UNIT = 10 BURROWED_ALIAS: Set[UnitTypeId] = { UnitTypeId.BANELINGBURROWED, UnitTypeId.CREEPTUMORBURROWED, UnitTypeId.DRONEBURROWED, UnitTypeId.HYDRALISKBURROWED, UnitTypeId.INFESTORBURROWED, UnitTypeId.INFESTORTERRANBURROWED, UnitTypeId.LURKERMPBURROWED, UnitTypeId.QUEENBURROWED, UnitTypeId.RAVAGERBURROWED, UnitTypeId.ROACHBURROWED, UnitTypeId.SWARMHOSTBURROWEDMP, UnitTypeId.ULTRALISKBURROWED, UnitTypeId.WIDOWMINEBURROWED, UnitTypeId.ZERGLINGBURROWED, } class MemoryManager(ManagerBase, IMemoryManager): """Manages memories of where enemy units have last been seen. Structures are ignored because they have two tags. One for the real building and another for the building's snapshot when under fog of war. """ detectors: Set[UnitTypeId] def __init__(self): super().__init__() # Dictionary of units that we remember the position of. Keyed by unit tag. # Deque is used so that new snapshots are added to the left, and old ones are removed from the right. self._memory_units_by_tag: Dict[int, Deque[Unit]] = dict() # Dictionary of units that we know of, but which are longer present at the location last seen. Keyed by unit tag. self._archive_units_by_tag: Dict[int, Deque[Unit]] = dict() self._tags_destroyed: Set[int] = set() self.unit_dict: Dict[int, Deque[Unit]] = dict() self.expire_air = 60 # Time in seconds when snapshot expires self.expire_ground = 360 # Time in seconds when snapshot expires async def start(self, knowledge: "Knowledge"): await super().start(knowledge) if knowledge.my_race == Race.Protoss: self.detectors = {UnitTypeId.PHOTONCANNON, UnitTypeId.OBSERVER, UnitTypeId.OBSERVERSIEGEMODE} elif knowledge.my_race == Race.Terran: self.detectors = {UnitTypeId.MISSILETURRET, UnitTypeId.RAVEN} else: self.detectors = {UnitTypeId.OVERSEERSIEGEMODE, UnitTypeId.OVERSEER, UnitTypeId.SPORECRAWLER} knowledge.register_on_unit_destroyed_listener(self.on_unit_destroyed) async def update(self): detectors = None self.unit_dict.clear() # Iterate all currently visible enemy units. # self.ai.enemy_units is used here because it does not include memory lane units for unit in self.ai.enemy_units: # Make sure that we have not added the same unit tag to both dictionaries, as that could # create very confusing bugs. assert not (unit.tag in self._memory_units_by_tag and unit.tag in self._archive_units_by_tag) # Ignore certain types if unit.type_id in ignored_unit_types: continue if unit.tag in self._archive_units_by_tag: snaps = self._archive_units_by_tag.pop(unit.tag) else:
snaps.appendleft(unit) if unit.tag not in self._memory_units_by_tag: self._memory_units_by_tag[unit.tag] = snaps self.unit_dict[unit.tag] = unit memory_tags_to_remove = list() for unit_tag in self._memory_units_by_tag: if self.is_unit_visible(unit_tag): continue snap = self.get_latest_snapshot(unit_tag) points: List[Point2] = [] points.append(Point2((int(snap.position.x), int(snap.position.y)))) points.append(Point2((int(snap.position.x + 1), int(snap.position.y)))) points.append(Point2((int(snap.position.x), int(snap.position.y + 1)))) points.append(Point2((int(snap.position.x + 1), int(snap.position.y + 1)))) visible = True for point in points: if not self.ai.is_visible(point): visible = False expired = self.check_expiration(snap) if expired: self.clear_unit_cache(memory_tags_to_remove, unit_tag) elif visible: # We see that the unit is no longer there. if (snap.type_id in BURROWED_ALIAS or snap.is_burrowed) and unit_tag not in self._tags_destroyed: if detectors is None: detectors = self.cache.own(self.detectors) if detectors.closer_than(11, snap.position): self.clear_unit_cache(memory_tags_to_remove, unit_tag) else: # For burrowed units, let's change the snapshot snap._proto.is_burrowed = True # snap._proto.unit_type = BURROWED_ALIAS.get(snap.type_id, snap.type_id).value # int value snap.cache.clear() else: self.clear_unit_cache(memory_tags_to_remove, unit_tag) for tag in memory_tags_to_remove: self._memory_units_by_tag.pop(tag) memory_units = self.ghost_units # Merge enemy data with memories self.ai.enemy_units = self.ai.enemy_units + memory_units self.ai.all_enemy_units = self.ai.all_enemy_units + memory_units def clear_unit_cache(self, memory_tags_to_remove, unit_tag): memory_tags_to_remove.append(unit_tag) snaps = self._memory_units_by_tag.get(unit_tag) self._archive_units_by_tag[unit_tag] = snaps async def post_update(self): if not self.debug: return for unit in self.ghost_units: # type: Unit self.ai._client.debug_text_world(f"{unit.type_id.name}", unit.position3d, size=10) @property def ghost_units(self) -> Units: """Returns latest snapshot for all units that we know of but which are currently not visible.""" memory_units = Units([], self.ai) for tag in self._memory_units_by_tag: if self.is_unit_visible(tag): continue snap = self.get_latest_snapshot(tag) memory_units.append(snap) return memory_units # return memory_units.visible def get_latest_snapshot(self, unit_tag: int) -> Unit: """Returns the latest snapshot of a unit. Throws KeyError if unit_tag is not found.""" unit_deque = self._memory_units_by_tag[unit_tag] return unit_deque[0] def is_unit_visible(self, unit_tag: int) -> bool: """Returns true if the unit is visible on this frame.""" unit: Optional[Unit] = self.unit_dict.get(unit_tag, None) return unit is not None and not unit.is_memory def on_unit_destroyed(self, event: UnitDestroyedEvent): """Call this when a unit is destroyed, to make sure that the unit is erased from memory.""" # Remove the unit from frozen dictionaries. self._memory_units_by_tag.pop(event.unit_tag, None) self._archive_units_by_tag.pop(event.unit_tag, None) self._tags_destroyed.add(event.unit_tag) def check_expiration(self, snap: Unit) -> bool: if snap.is_flying: return snap.age > self.expire_air return snap.age > self.expire_ground # Will this end up being the same set as in enemy_units_manager.py ? ignored_unit_types = { # Protoss UnitTypeId.INTERCEPTOR, # Terran UnitTypeId.MULE, UnitTypeId.AUTOTURRET, # Zerg # Cocoons? UnitTypeId.LARVA, UnitTypeId.LOCUSTMP, UnitTypeId.LOCUSTMPFLYING, UnitTypeId.INFESTEDTERRAN, UnitTypeId.BROODLING, }
snaps = self._memory_units_by_tag.get(unit.tag, deque(maxlen=MAX_SNAPSHOTS_PER_UNIT))
run.py
#!/usr/bin/env python r""" Run many simulations with varying :math:`\theta`. The simulations are run. Separate script should plot bifurcation diagram. """ import argparse import os import sys import shutil import numpy as np from mpi4py import MPI from saf.fm.nonlinear import Config from saf.action import solve from saf.util import reset_logging TOTAL_THETAS = 251 FINAL_TIME = 1000 Q = 4 IO_FORMAT = 'numpy' # Format for floating-point numbers. FMT = '.3f' def _worker(tasks, rank): for t in tasks: _worker_single_task(t, rank) def _worker_single_task(task, rank): theta = task worker_name = rank try: outdir = 'theta={:{fmt}}'.format(theta, fmt=FMT) outdir = os.path.join(OUTPUT_DIR, outdir) if os.path.exists(outdir): shutil.rmtree(outdir) os.mkdir(outdir) outname = os.path.join(outdir, 'stdout.log') errname = os.path.join(outdir, 'stderr.log') sys.stdout = open(outname, 'w') sys.stderr = open(errname, 'w') msg = 'Worker {} | theta={:{fmt}}'.format(worker_name, theta, fmt=FMT) print(msg) except Exception as e: print('theta={:{fmt}} | {}'.format(theta, str(e), fmt=FMT)) return try: c = _get_config(theta) solve('nonlinear', c, outdir, log_to_file=False) reset_logging() except Exception as e: print('theta={:{fmt}} | {}'.format(theta, str(e), fmt=FMT)) sys.stdout = sys.__stdout__ print('theta={:{fmt}} | {}'.format(theta, str(e), fmt=FMT)) def _get_config(theta): c = Config() c.n12 = N12 c.final_time = FINAL_TIME c.dt = 0.005
c.io_format = IO_FORMAT c.play_animation = False c.lambda_tol = 1e-6 c.q = Q c.theta = theta c.reaction_rate_version = 'v2' # Expression exactly as in FariaEtAl2015. c.f = 1 c.ic_amplitude = 0.0 c.ic_type = 'gaussian' c.truncation_coef = 1e6 return c p = argparse.ArgumentParser() p.add_argument('N12', help='Resolution', type=int) args = p.parse_args() N12 = args.N12 OUTPUT_DIR = os.path.join('_output', 'N12={:04d}'.format(N12)) comm = MPI.COMM_WORLD rank = comm.Get_rank() size = comm.Get_size() all_tasks = [] # Build `all_tasks` in master process to distribute it to all processes. if rank == 0: # Uniformly spaced values of :math:`\theta`. theta_values = np.linspace(0.90, 1.15, num=TOTAL_THETAS) for i in range(size): all_tasks.append([]) for i in range(len(theta_values)): all_tasks[i % size].append(theta_values[i]) # Now distribute the tasks to each process. tasks = comm.scatter(all_tasks, root=0) _worker(tasks, rank)
c.approximator = 'godunov-minmod' c.time_integrator = 'dopri5' c.plot_time_step = 0
mod.rs
mod from_data_impls; mod from_form_multi_param_impls; mod from_form_param_impls; mod from_param_impls; mod from_request_impls; mod from_segments_impls; use super::gen::OpenApiGenerator; use super::Result; use okapi::openapi3::{Parameter, RequestBody, Responses, SecurityRequirement, SecurityScheme}; /// Expose this to the public to be use when manually implementing a /// [Form Guard](https://api.rocket.rs/master/rocket/form/trait.FromForm.html). pub use from_form_multi_param_impls::get_nested_form_parameters; /// This trait is used to document the request body that implements /// [`FromData`](rocket::data::FromData). pub trait OpenApiFromData<'r>: rocket::data::FromData<'r> { /// Return a [`RequestBody`] containing the information required to document the /// [`FromData`](rocket::data::FromData) object. fn request_body(gen: &mut OpenApiGenerator) -> Result<RequestBody>; } /// This trait is used to document a dynamic part of a path that implements /// [`FromParam`](rocket::request::FromParam). /// For example `<user_id>` in route path. pub trait OpenApiFromParam<'r>: rocket::request::FromParam<'r> { /// Return a [`Parameter`] containing the information required to document the /// [`FromParam`](rocket::request::FromParam) path parameter. fn path_parameter(gen: &mut OpenApiGenerator, name: String) -> Result<Parameter>; } /// This trait is used to document a dynamic path segment that implements /// [`FromSegments`](rocket::request::FromSegments). /// For example `<param..>` in route path. pub trait OpenApiFromSegments<'r>: rocket::request::FromSegments<'r> { /// Return a [`Parameter`] containing the information required to document the /// [`FromSegments`](rocket::request::FromSegments) path parameter.
} /// This trait is used to document a query guard segment that implements /// [`FromFormField`](rocket::form::FromFormField). /// For example `?<param>` in the route's query part. pub trait OpenApiFromFormField<'r>: rocket::form::FromFormField<'r> { /// Return a [`Parameter`] containing the information required to document the /// [`FromFormField`](rocket::form::FromFormField) route's query part. fn form_parameter( gen: &mut OpenApiGenerator, name: String, required: bool, ) -> Result<Parameter>; } /// This trait is used to document multiple query guard segments that implement /// [`FromForm`](rocket::form::FromForm). /// For example `?<param>` in the route's query part. pub trait OpenApiFromForm<'r>: rocket::form::FromForm<'r> { /// Return a [`Vec<Parameter>`] containing the information required to document the /// [`FromForm`](rocket::form::FromForm) route's query part. fn form_multi_parameter( gen: &mut OpenApiGenerator, name: String, required: bool, ) -> Result<Vec<Parameter>>; } /// Used as a return type for [`OpenApiFromRequest`] trait. /// Defines what requirements a Request Guard needs in order to be validated. #[allow(clippy::large_enum_variant)] pub enum RequestHeaderInput { /// This request header requires no input anywhere None, /// Useful for when you want to set a header per route. Parameter(Parameter), /// The request guard implements a security scheme. /// /// Parameters: /// - The name of the [`SecurityScheme`]. /// - [`SecurityScheme`] is global definition of the authentication (per OpenApi spec). /// - [`SecurityRequirement`] is the requirements for the route. Security(String, SecurityScheme, SecurityRequirement), } // Re-export derive trait here for convenience. pub use rocket_okapi_codegen::OpenApiFromRequest; /// Trait that needs to be implemented for all types that implement /// [`FromRequest`](rocket::request::FromRequest). /// This trait specifies what headers or other parameters are required for this /// [Request Guards](https://rocket.rs/v0.5-rc/guide/requests/#request-guards) /// to be validated successfully. /// /// If it does not quire any headers or parameters you can use the derive macro: /// ```rust,ignore /// use rocket_okapi::request::OpenApiFromRequest; /// /// #[derive(OpenApiFromRequest)] /// pub struct MyStructName; /// ``` pub trait OpenApiFromRequest<'a>: rocket::request::FromRequest<'a> { /// Specifies what headers or other parameters are required for this Request Guards to validate /// successfully. fn from_request_input( gen: &mut OpenApiGenerator, name: String, required: bool, ) -> Result<RequestHeaderInput>; /// Optionally add responses to the Request Guard. /// This can be used for when the request guard could return a "401 Unauthorized". /// Or any other responses, other then one from the default response. fn get_responses(_gen: &mut OpenApiGenerator) -> Result<Responses> { Ok(Responses::default()) } }
fn path_multi_parameter(gen: &mut OpenApiGenerator, name: String) -> Result<Parameter>;
_utils.py
from ._constants import DEFAULT_ENDPOINT from ._types import Options from ._version import __version__ from typing import Any, Union, Optional, IO, Mapping, Tuple, List import aiohttp, urllib.parse, json, re, platform import websockets, websockets.client Payload = Optional[Union[dict, str, bytes, IO]] def _prepare_headers(options: Options, headers: Mapping[str, str] = {}) -> dict: return {**headers, 'Authorization': None if 'api_key' not in options else options.get('auth_method', 'Token') + ' ' + options['api_key'], 'User-Agent': f'deepgram/{__version__} python/{platform.python_version()}' } def _normalize_payload(payload: Payload) -> Optional[Union[bytes, IO]]: if payload is None: return None if isinstance(payload, dict): return json.dumps(payload).encode('utf-8') if isinstance(payload, str): return payload.encode('utf-8') return payload def _make_query_string(params: Mapping[str, Any] = {}) -> str: def elem_decomposer(key: str, value: Any) -> List[Tuple[str, str]]:
unflattened = [elem_decomposer(k, v) for k, v in params.items()] # sublist for each original parameter flattened = sum(unflattened, []) # flatten return ('?' if flattened else '') + urllib.parse.urlencode(flattened) async def _request(path: str, options: Options, method: str = 'GET', payload: Payload = None, headers: Optional[Mapping[str, str]] = {}) -> Optional[dict]: destination = options.get('api_url', DEFAULT_ENDPOINT) + path updated_headers = _prepare_headers(options, headers) try: async with aiohttp.request(method, destination, data=_normalize_payload(payload), headers=updated_headers, raise_for_status=True) as resp: content = (await resp.text()).strip() if not content: return None body = json.loads(content) if body.get('error'): raise Exception(f'DG: {content}') return body except aiohttp.ClientResponseError as e: raise Exception(f'DG: {e}') except aiohttp.ClientError as e: raise e async def _socket_connect(path: str, options: Options, headers: Optional[Mapping[str, str]] = {}) -> websockets.client.WebSocketClientProtocol: destination = re.sub(r'^http', 'ws', options.get('api_url', DEFAULT_ENDPOINT)) + path updated_headers = _prepare_headers(options, headers) try: return await websockets.connect(destination, extra_headers=updated_headers, ping_interval=5) # If we're streaming too much faster than realtime, connection might close without an aggressive ping interval except websockets.exceptions.InvalidHandshake as e: raise Exception(f'DG: {e}')
if value in [None, ""]: return [] if isinstance(value, list): return [elem_decomposer(key, item)[0] for item in value] # break into multiple parameters # just take the first element in the sublist, rather than trying to flatten recursively # passing nested lists as query parameters isn't really well-defined, # nor does anything in our API currently take things like that as of 2021-08-10 # so everything coming through this second pass should be a 1-item list if isinstance(value, bool): return [(key, str(value).lower())] # make sure False and True stay lowercased in accordance with DG convention return [(key, str(value))]
index.js
var formatDistanceLocale = { lessThanXSeconds: { one: 'פחות משנייה', two: 'פחות משתי שניות', other: 'פחות מ־{{count}} שניות' }, xSeconds: { one: 'שנייה', two: 'שתי שניות', other: '{{count}} שניות' }, halfAMinute: 'חצי דקה', lessThanXMinutes: { one: 'פחות מדקה', two: 'פחות משתי דקות', other: 'פחות מ־{{count}} דקות' }, xMinutes: { one: 'דקה', two: 'שתי דקות', other: '{{count}} דקות' }, aboutXHours: { one: 'בערך שעה', two: 'בערך שעתיים', other: 'בערך {{count}} שעות' }, xHours: { one: 'שעה', two: 'שעתיים', other: '{{count}} שעות' }, xDays: { one: 'יום', two: 'יומיים', other: '{{count}} ימים' }, aboutXWeeks: { one: 'בערך שבוע', two: 'בערך שבועיים', other: 'בערך {{count}} שבועות' }, xWeeks: { one: 'שבוע', two: 'שבועיים', other: '{{count}} שבועות' }, aboutXMonths: { one: 'בערך חודש', two: 'בערך חודשיים', other: 'בערך {{count}} חודשים' }, xMonths: { one: 'חודש', two: 'חודשיים', other: '{{count}} חודשים' }, aboutXYears: { one: 'בערך שנה', two: 'בערך שנתיים', other: 'בערך {{count}} שנים' }, xYears: { one: 'שנה', two: 'שנתיים', other: '{{count}} שנים' }, overXYears: { one: 'יותר משנה', two: 'יותר משנתיים', other: 'יותר מ־{{count}} שנים' }, almostXYears: { one: 'כמעט שנה', two: 'כמעט שנתיים', other: 'כמעט {{count}} שנים' } }; export default function formatDistance(token, count, options) { options = options || {}; // Return word instead of `in one day` or `one day ago` if (token === 'xDays' && options.addSuffix && count <= 2) { var past = { 1: 'אתמול', 2: 'שלשום' };
}; return options.comparison > 0 ? future[count] : past[count]; } var result; if (typeof formatDistanceLocale[token] === 'string') { result = formatDistanceLocale[token]; } else if (count === 1) { result = formatDistanceLocale[token].one; } else if (count === 2) { result = formatDistanceLocale[token].two; } else { result = formatDistanceLocale[token].other.replace('{{count}}', count); } if (options.addSuffix) { if (options.comparison > 0) { return 'בעוד ' + result; } else { return 'לפני ' + result; } } return result; }
var future = { 1: 'מחר', 2: 'מחרתיים'
Advert.js
import React, { Component } from 'react'; //Local import './Advert.css' //Components import ProductList from '../../components/ProductList/ProductList'; // import MyGoogleMap from '../../components/MyGoogleMap/MyGoogleMap'; import Button from 'material-ui/Button'; import AddIcon from 'material-ui-icons/Add'; // import RoomIcon from 'material-ui-icons/Room'; export default class
extends Component { constructor() { super(); this.limit = 36; this.state = { products: null, errorRequest: null, offset: 0, }; } componentDidMount() { this.getProducts(); } render() { var { products, errorRequest } = this.state; if (errorRequest !== null) return <div>Erreur de récupération des produits</div> if (products === null) return <div>Chargement des produits</div> return ( <div id="Advert"> <ProductList products={products} /> <Button id="bt_addProduct" fab color="primary" aria-label="add" > <AddIcon /> </Button> </div> ) } // onDeleteProduct = (index) => { // var products = this.state.products.slice(); //copy array // products.splice(index, 1); //remove element // this.setState({ // products: products, // lastProductDeleted: index // }); // } getProducts = () => { let query = `{ products(limit:${this.limit},offset:${this.state.offset}){ id, title, latitude, longitude, images{id, src} } }`; //REACT_APP_API_HOST_MOBILE or REACT_APP_API_HOST console.log(process.env.REACT_APP_API_HOST); fetch((`${process.env.REACT_APP_API_HOST}/graphql?query=${encodeURIComponent(query)}`), { method: 'post' }).then((response) => { return response.json(); }).then(({ data, errors }) => { if (errors) throw errors[0].message; this.setState({ products: data.products }) }).catch((err) => { this.setState({ errorRequest: err }); console.log(`err fetch componentDidMount Advert.js => ${err}`) }); } }
Advert
caches.py
import hashlib import json from pathlib import Path from typing import TYPE_CHECKING, Dict, Optional from pdm._types import CandidateInfo from pdm.exceptions import CorruptedCacheError from pdm.models import pip_shims from pdm.utils import open_file if TYPE_CHECKING: from pip._vendor import requests from pdm.models.candidates import Candidate class CandidateInfoCache: """Cache manager to hold (dependencies, requires_python, summary) info.""" def __init__(self, cache_file: Path) -> None: self.cache_file = cache_file self._cache = {} # type: Dict[str, CandidateInfo] self._read_cache() def _read_cache(self) -> None: if not self.cache_file.exists(): self._cache = {} return with self.cache_file.open() as fp: try: self._cache = json.load(fp) except json.JSONDecodeError: raise CorruptedCacheError("The dependencies cache seems to be broken.") def _write_cache(self) -> None:
@staticmethod def _get_key(candidate): # type: (Candidate) -> str # Name and version are set when dependencies are resolved, # so use them for cache key. Local directories won't be cached. if not candidate.name or not candidate.version: raise KeyError extras = ( "[{}]".format(",".join(sorted(candidate.req.extras))) if candidate.req.extras else "" ) return f"{candidate.name}{extras}-{candidate.version}" def get(self, candidate): # type: (Candidate) -> CandidateInfo key = self._get_key(candidate) return self._cache[key] def set(self, candidate, value): # type: (Candidate, CandidateInfo) -> None key = self._get_key(candidate) self._cache[key] = value self._write_cache() def delete(self, candidate): # type: (Candidate) -> None try: del self._cache[self._get_key(candidate)] except KeyError: pass self._write_cache() def clear(self) -> None: self._cache.clear() self._write_cache() class HashCache(pip_shims.SafeFileCache): """Caches hashes of PyPI artifacts so we do not need to re-download them. Hashes are only cached when the URL appears to contain a hash in it and the cache key includes the hash value returned from the server). This ought to avoid issues where the location on the server changes. """ def __init__(self, *args, **kwargs): self.session = None # type: Optional[requests.Session] super(HashCache, self).__init__(*args, **kwargs) def get_hash(self, link: pip_shims.Link) -> str: # If there is no link hash (i.e., md5, sha256, etc.), we don't want # to store it. hash_value = self.get(link.url) if not hash_value: if link.hash and link.hash_name in pip_shims.STRONG_HASHES: hash_value = f"{link.hash_name}:{link.hash}" else: hash_value = self._get_file_hash(link) hash_value = hash_value.encode() self.set(link.url, hash_value) return hash_value.decode("utf8") def _get_file_hash(self, link: pip_shims.Link) -> str: h = hashlib.new(pip_shims.FAVORITE_HASH) with open_file(link.url, self.session) as fp: for chunk in iter(lambda: fp.read(8096), b""): h.update(chunk) return ":".join([h.name, h.hexdigest()])
with self.cache_file.open("w") as fp: json.dump(self._cache, fp)
enr.rs
//! Helper functions and an extension trait for Ethereum 2 ENRs. pub use discv5::enr::{self, CombinedKey, EnrBuilder}; use super::enr_ext::CombinedKeyExt; use super::ENR_FILENAME; use crate::types::{Enr, EnrBitfield}; use crate::NetworkConfig; use libp2p::core::identity::Keypair; use slog::{debug, warn}; use ssz::{Decode, Encode}; use ssz_types::BitVector; use std::fs::File; use std::io::prelude::*; use std::path::Path; use std::str::FromStr; use types::{EnrForkId, EthSpec}; /// The ENR field specifying the fork id. pub const ETH2_ENR_KEY: &'static str = "eth2"; /// The ENR field specifying the subnet bitfield. pub const BITFIELD_ENR_KEY: &'static str = "attnets"; /// Extension trait for ENR's within Eth2. pub trait Eth2Enr { /// The subnet bitfield associated with the ENR. fn bitfield<TSpec: EthSpec>(&self) -> Result<EnrBitfield<TSpec>, &'static str>; fn eth2(&self) -> Result<EnrForkId, &'static str>; } impl Eth2Enr for Enr { fn bitfield<TSpec: EthSpec>(&self) -> Result<EnrBitfield<TSpec>, &'static str> { let bitfield_bytes = self .get(BITFIELD_ENR_KEY) .ok_or_else(|| "ENR bitfield non-existent")?; BitVector::<TSpec::SubnetBitfieldLength>::from_ssz_bytes(bitfield_bytes) .map_err(|_| "Could not decode the ENR SSZ bitfield") } fn eth2(&self) -> Result<EnrForkId, &'static str> { let eth2_bytes = self .get(ETH2_ENR_KEY) .ok_or_else(|| "ENR has no eth2 field")?; EnrForkId::from_ssz_bytes(eth2_bytes).map_err(|_| "Could not decode EnrForkId") } } /// Loads an ENR from file if it exists and matches the current NodeId and sequence number. If none /// exists, generates a new one. /// /// If an ENR exists, with the same NodeId, this function checks to see if the loaded ENR from /// disk is suitable to use, otherwise we increment our newly generated ENR's sequence number. pub fn build_or_load_enr<T: EthSpec>( local_key: Keypair, config: &NetworkConfig, enr_fork_id: EnrForkId, log: &slog::Logger, ) -> Result<Enr, String> { // Build the local ENR.
let enr_key = CombinedKey::from_libp2p(&local_key)?; let mut local_enr = build_enr::<T>(&enr_key, config, enr_fork_id)?; let enr_f = config.network_dir.join(ENR_FILENAME); if let Ok(mut enr_file) = File::open(enr_f.clone()) { let mut enr_string = String::new(); match enr_file.read_to_string(&mut enr_string) { Err(_) => debug!(log, "Could not read ENR from file"), Ok(_) => { match Enr::from_str(&enr_string) { Ok(disk_enr) => { // if the same node id, then we may need to update our sequence number if local_enr.node_id() == disk_enr.node_id() { if compare_enr(&local_enr, &disk_enr) { debug!(log, "ENR loaded from disk"; "file" => format!("{:?}", enr_f)); // the stored ENR has the same configuration, use it return Ok(disk_enr); } // same node id, different configuration - update the sequence number let new_seq_no = disk_enr.seq().checked_add(1).ok_or_else(|| "ENR sequence number on file is too large. Remove it to generate a new NodeId")?; local_enr.set_seq(new_seq_no, &enr_key).map_err(|e| { format!("Could not update ENR sequence number: {:?}", e) })?; debug!(log, "ENR sequence number increased"; "seq" => new_seq_no); } } Err(e) => { warn!(log, "ENR from file could not be decoded"; "error" => format!("{:?}", e)); } } } } } save_enr_to_disk(&config.network_dir, &local_enr, log); Ok(local_enr) } /// Builds a lighthouse ENR given a `NetworkConfig`. pub fn build_enr<T: EthSpec>( enr_key: &CombinedKey, config: &NetworkConfig, enr_fork_id: EnrForkId, ) -> Result<Enr, String> { let mut builder = EnrBuilder::new("v4"); if let Some(enr_address) = config.enr_address { builder.ip(enr_address); } if let Some(udp_port) = config.enr_udp_port { builder.udp(udp_port); } // we always give it our listening tcp port // TODO: Add uPnP support to map udp and tcp ports let tcp_port = config.enr_tcp_port.unwrap_or_else(|| config.libp2p_port); builder.tcp(tcp_port); // set the `eth2` field on our ENR builder.add_value(ETH2_ENR_KEY.into(), enr_fork_id.as_ssz_bytes()); // set the "attnets" field on our ENR let bitfield = BitVector::<T::SubnetBitfieldLength>::new(); builder.add_value(BITFIELD_ENR_KEY.into(), bitfield.as_ssz_bytes()); builder .tcp(config.libp2p_port) .build(enr_key) .map_err(|e| format!("Could not build Local ENR: {:?}", e)) } /// Defines the conditions under which we use the locally built ENR or the one stored on disk. /// If this function returns true, we use the `disk_enr`. fn compare_enr(local_enr: &Enr, disk_enr: &Enr) -> bool { // take preference over disk_enr address if one is not specified (local_enr.ip().is_none() || local_enr.ip() == disk_enr.ip()) // tcp ports must match && local_enr.tcp() == disk_enr.tcp() // must match on the same fork && local_enr.get(ETH2_ENR_KEY) == disk_enr.get(ETH2_ENR_KEY) // take preference over disk udp port if one is not specified && (local_enr.udp().is_none() || local_enr.udp() == disk_enr.udp()) // we need the BITFIELD_ENR_KEY key to match, otherwise we use a new ENR. This will likely only // be true for non-validating nodes && local_enr.get(BITFIELD_ENR_KEY) == disk_enr.get(BITFIELD_ENR_KEY) } /// Saves an ENR to disk pub fn save_enr_to_disk(dir: &Path, enr: &Enr, log: &slog::Logger) { let _ = std::fs::create_dir_all(dir); match File::create(dir.join(Path::new(ENR_FILENAME))) .and_then(|mut f| f.write_all(&enr.to_base64().as_bytes())) { Ok(_) => { debug!(log, "ENR written to disk"); } Err(e) => { warn!( log, "Could not write ENR to file"; "file" => format!("{:?}{:?}",dir, ENR_FILENAME), "error" => format!("{}", e) ); } } }
// Note: Discovery should update the ENR record's IP to the external IP as seen by the // majority of our peers, if the CLI doesn't expressly forbid it.
PullLoLDataAssets.py
import requests import json # Get Current Patch def getCurrentVersion(): versionResponse = requests.get("https://ddragon.leagueoflegends.com/api/versions.json") version_patch_RawData = versionResponse.json() currentVersion = version_patch_RawData[0] print(currentVersion) return currentVersion #champions, items, summoner_spells, spells def GetDDragonData_Champions(): version = getCurrentVersion() #Champions Data response = requests.get("http://ddragon.leagueoflegends.com/cdn/"+version+"/data/en_US/champion.json") allChampionRawData = json.loads(response.text) ChampionIdToName = {} for key,champion in allChampionRawData['data'].items(): ChampionIdToName[int(champion['key'])] = champion['name'] print(ChampionIdToName)
def GetDDragonData_Items(): version = getCurrentVersion() response = requests.get("http://ddragon.leagueoflegends.com/cdn/"+version+"/data/en_US/item.json") allItemsRawData = json.loads(response.text) QuickPrinter(allItemsRawData) #Items Data ItemIdToName = {} for key,item in allItemsRawData['data'].items(): ItemIdToName[int(key)] = item['name'] print(ItemToToName) return ItemIdToName def QuickPrinter(String_to_Print): print(json.dumps(String_to_Print, indent=4, sort_keys=True)) #main() version = getCurrentVersion() GetDDragonData_Champions() GetDDragonData_Items()
return ChampionIdToName
color.rs
use super::{conversion::ColorConversion, transform::ColorTransform}; use crate::{FType, Vec3}; #[cfg(all(feature = "glam", feature = "f64"))] use glam::const_dvec3; #[cfg(all(feature = "glam", feature = "f32"))] use glam::const_vec3; #[cfg(feature = "serde1")] use serde::{Deserialize, Serialize}; /// A [TransformFn] identifies an invertible mapping of colors in a linear [ColorSpace]. #[repr(u8)] #[derive(Debug, Copy, Clone, PartialEq, Hash, Eq)] #[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))] #[allow(non_camel_case_types, clippy::upper_case_acronyms)] pub enum TransformFn { NONE, /// The sRGB transfer functions (aka "gamma correction") sRGB, /// Oklab conversion from xyz Oklab, /// Oklch (Oklab's LCh variant) conversion from xyz Oklch, /// CIE xyY transform CIE_xyY, /// CIELAB transform CIELAB, /// CIELCh transform CIELCh, /// CIE 1960 UCS transform CIE_1960_UCS, /// CIE 1960 UCS transform in uvV form CIE_1960_UCS_uvV, /// CIE 1964 UVW transform CIE_1964_UVW, /// CIE 1976 Luv transform CIE_1976_Luv, /// (Hue, Saturation, Lightness), /// where L is defined as the average of the largest and smallest color components HSL, /// (Hue, Saturation, Value), /// where V is defined as the largest component of a color HSV, /// (Hue, Saturation, Intensity), /// where I is defined as the average of the three components HSI, /// BT.2100 ICtCp with PQ transfer function ICtCp_PQ, /// BT.2100 ICtCp with HLG transfer function ICtCp_HLG, /// The BT.601/BT.709/BT.2020 (they are equivalent) OETF and inverse. BT_601, /// SMPTE ST 2084:2014 aka "Perceptual Quantizer" transfer functions used in BT.2100 /// for digitally created/distributed HDR content. PQ, // ACEScc is a logarithmic transform // ACES_CC, // ACEScct is a logarithmic transform with toe // ACES_CCT, } impl TransformFn { pub const ENUM_COUNT: TransformFn = TransformFn::ICtCp_HLG; } /// [RGBPrimaries] is a set of primary colors picked to define an RGB color space. #[repr(u8)] #[derive(Debug, Copy, Clone, PartialEq, Hash, Eq)] #[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))] #[allow(non_camel_case_types, clippy::upper_case_acronyms)] pub enum RGBPrimaries { // Primaries NONE, /// BT.709 is the sRGB primaries. BT_709, // BT_2020 uses the same primaries as BT_2100 BT_2020, AP0, AP1, /// P3 is the primaries for DCI-P3 and the variations with different white points P3, ADOBE_1998, ADOBE_WIDE, APPLE, PRO_PHOTO, CIE_RGB, /// The reference XYZ color space CIE_XYZ, } impl RGBPrimaries { pub const ENUM_COUNT: RGBPrimaries = RGBPrimaries::CIE_XYZ; pub const fn values(&self) -> &[[FType; 2]; 3] { match self { Self::NONE => &[[0.0; 2]; 3], Self::BT_709 => &[[0.64, 0.33], [0.30, 0.60], [0.15, 0.06]], Self::BT_2020 => &[[0.708, 0.292], [0.17, 0.797], [0.131, 0.046]], Self::AP0 => &[[0.7347, 0.2653], [0.0000, 1.0000], [0.0001, -0.0770]], Self::AP1 => &[[0.713, 0.293], [0.165, 0.830], [0.128, 0.044]], Self::ADOBE_1998 => &[[0.64, 0.33], [0.21, 0.71], [0.15, 0.06]], Self::ADOBE_WIDE => &[[0.735, 0.265], [0.115, 0.826], [0.157, 0.018]], Self::PRO_PHOTO => &[ [0.734699, 0.265301], [0.159597, 0.840403], [0.036598, 0.000105], ], Self::APPLE => &[[0.625, 0.34], [0.28, 0.595], [0.155, 0.07]], Self::P3 => &[[0.680, 0.320], [0.265, 0.690], [0.150, 0.060]], Self::CIE_RGB => &[[0.7350, 0.2650], [0.2740, 0.7170], [0.1670, 0.0090]], Self::CIE_XYZ => &[[1.0, 0.0], [0.0, 1.0], [0.0, 0.0]], } } } /// A [WhitePoint] defines the color "white" in an RGB color system. /// White points are derived from an "illuminant" which are defined /// as some reference lighting condition based on a Spectral Power Distribution. #[repr(u8)] #[derive(Debug, Copy, Clone, PartialEq, Hash, Eq)] #[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))] #[allow(non_camel_case_types, clippy::upper_case_acronyms)] pub enum
{ NONE, /// Incandescent/tungsten A, /// Old direct sunlight at noon B, /// Old daylight C, /// Equal energy E, /// ICC profile PCS D50, /// Mid-morning daylight D55, D60, /// Daylight, sRGB, Adobe-RGB D65, /// North sky daylight D75, /// P3-DCI white point, sort of greenish P3_DCI, /// Cool fluorescent F2, /// Daylight fluorescent, D65 simulator F7, /// Ultralume 40, Philips TL84 F11, } impl WhitePoint { pub const ENUM_COUNT: WhitePoint = WhitePoint::F11; pub const fn values(&self) -> &'static [FType; 3] { match self { Self::NONE => &[0.0, 0.0, 0.0], Self::A => &[1.09850, 1.00000, 0.35585], Self::B => &[0.99072, 1.00000, 0.85223], Self::C => &[0.98074, 1.00000, 1.18232], Self::D50 => &[0.96422, 1.00000, 0.82521], Self::D55 => &[0.95682, 1.00000, 0.92149], Self::D60 => &[0.9523, 1.00000, 1.00859], Self::D65 => &[0.95047, 1.00000, 1.08883], Self::D75 => &[0.94972, 1.00000, 1.22638], Self::P3_DCI => &[0.89458689458, 1.00000, 0.95441595441], Self::E => &[1.00000, 1.00000, 1.00000], Self::F2 => &[0.99186, 1.00000, 0.67393], Self::F7 => &[0.95041, 1.00000, 1.08747], Self::F11 => &[1.00962, 1.00000, 0.64350], } } } /// A color space defined in data by its [Primaries][RGBPrimaries], [white point][WhitePoint], and an optional [invertible transform function][TransformFn]. /// /// See [spaces][crate::spaces] for defined color spaces. /// /// [ColorSpace] assumes that a color space is one of /// - the CIE XYZ color space /// - an RGB color space /// - a color space which may be defined as an invertible mapping from one the above ([TransformFn]) /// /// An example of a [TransformFn] is the sRGB "opto-eletronic transfer function", or /// "gamma compensation". /// /// `kolor` makes the distinction between "linear" and "non-linear" color spaces, where a linear /// color space can be defined as a linear transformation from the CIE XYZ color space. /// /// [ColorSpace] contains a reference [WhitePoint] to represent a color space's reference illuminant. /// /// A linear RGB [ColorSpace] can be thought of as defining a relative coordinate system in the CIE XYZ /// color coordinate space, where three RGB primaries each define an axis pointing from /// the black point (0,0,0) in CIE XYZ. /// /// Non-linear [ColorSpace]s - such as sRGB with gamma compensation applied - are defined as a non-linear mapping from a linear /// [ColorSpace]'s coordinate system. #[derive(Debug, Copy, Clone, PartialEq, Hash, Eq)] #[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))] pub struct ColorSpace { primaries: RGBPrimaries, white_point: WhitePoint, transform_fn: TransformFn, } impl ColorSpace { pub const fn new( primaries: RGBPrimaries, white_point: WhitePoint, transform_fn: TransformFn, ) -> Self { Self { primaries, white_point, transform_fn, } } pub(crate) const fn linear(primaries: RGBPrimaries, white_point: WhitePoint) -> Self { Self { primaries, white_point, transform_fn: TransformFn::NONE, } } /// Whether the color space has a non-linear transform applied pub fn is_linear(&self) -> bool { self.transform_fn == TransformFn::NONE } pub fn as_linear(&self) -> Self { Self { primaries: self.primaries, white_point: self.white_point, transform_fn: TransformFn::NONE, } } pub fn primaries(&self) -> RGBPrimaries { self.primaries } pub fn white_point(&self) -> WhitePoint { self.white_point } pub fn transform_function(&self) -> TransformFn { self.transform_fn } /// Creates a new color space with the primaries and white point from `this`, /// but with the provided [TransformFn]. pub fn with_transform(&self, new_transform: TransformFn) -> Self { Self { primaries: self.primaries, white_point: self.white_point, transform_fn: new_transform, } } /// Creates a new color space with the transform function and white point from `this`, /// but with the provided [WhitePoint]. pub fn with_whitepoint(&self, new_wp: WhitePoint) -> Self { Self { primaries: self.primaries, white_point: new_wp, transform_fn: self.transform_fn, } } /// Creates a new color space with the primaries and transform function from `this`, /// but with the provided [RGBPrimaries]. pub fn with_primaries(&self, primaries: RGBPrimaries) -> Self { Self { primaries, white_point: self.white_point, transform_fn: self.transform_fn, } } /// Creates a CIE LAB color space using this space's white point. pub fn to_cielab(&self) -> Self { Self::new(RGBPrimaries::CIE_XYZ, self.white_point, TransformFn::CIELAB) } /// Creates a CIE uvV color space using this space's white point. #[allow(non_snake_case)] pub fn to_cie_xyY(&self) -> Self { Self::new( RGBPrimaries::CIE_XYZ, self.white_point, TransformFn::CIE_xyY, ) } /// Creates a CIE LCh color space using this space's white point. pub fn to_cielch(&self) -> Self { Self::new(RGBPrimaries::CIE_XYZ, self.white_point, TransformFn::CIELCh) } } #[allow(non_upper_case_globals)] pub mod color_spaces { use super::*; /// Linear sRGB is a linear encoding in [BT.709 primaries][RGBPrimaries::BT_709] /// with a [D65 whitepoint.][WhitePoint::D65] /// Linear sRGB is equivalent to [BT_709]. pub const LINEAR_SRGB: ColorSpace = ColorSpace::linear(RGBPrimaries::BT_709, WhitePoint::D65); /// Encoded sRGB is [Linear sRGB][LINEAR_SRGB] with the [sRGB OETF](TransformFn::sRGB) applied (also called "gamma-compressed"). pub const ENCODED_SRGB: ColorSpace = ColorSpace::new(RGBPrimaries::BT_709, WhitePoint::D65, TransformFn::sRGB); /// BT.709 is a linear encoding in [BT.709 primaries][RGBPrimaries::BT_709] /// with a [D65 whitepoint.][WhitePoint::D65]. It's equivalent to [Linear sRGB][LINEAR_SRGB] pub const BT_709: ColorSpace = ColorSpace::linear(RGBPrimaries::BT_709, WhitePoint::D65); /// Encoded BT.709 is [BT.709](BT_709) with the [BT.709 OETF](TransformFn::BT_601) applied. pub const ENCODED_BT_709: ColorSpace = ColorSpace::new(RGBPrimaries::BT_709, WhitePoint::D65, TransformFn::BT_601); /// ACEScg is a linear encoding in [AP1 primaries][RGBPrimaries::AP1] /// with a [D60 whitepoint][WhitePoint::D60]. pub const ACES_CG: ColorSpace = ColorSpace::linear(RGBPrimaries::AP1, WhitePoint::D60); /// ACES2065-1 is a linear encoding in [AP0 primaries][RGBPrimaries::AP0] with a [D60 whitepoint][WhitePoint::D60]. pub const ACES2065_1: ColorSpace = ColorSpace::linear(RGBPrimaries::AP0, WhitePoint::D60); /// CIE RGB is the original RGB space, defined in [CIE RGB primaries][RGBPrimaries::CIE_RGB] /// with white point [E][WhitePoint::E]. pub const CIE_RGB: ColorSpace = ColorSpace::linear(RGBPrimaries::CIE_RGB, WhitePoint::E); /// CIE XYZ reference color space. Uses [CIE XYZ primaries][RGBPrimaries::CIE_XYZ] /// with white point [D65][WhitePoint::D65]. pub const CIE_XYZ: ColorSpace = ColorSpace::linear(RGBPrimaries::CIE_XYZ, WhitePoint::D65); /// BT.2020 is a linear encoding in [BT.2020 primaries][RGBPrimaries::BT_2020] /// with a [D65 white point][WhitePoint::D65] /// BT.2100 has the same linear color space as BT.2020. pub const BT_2020: ColorSpace = ColorSpace::linear(RGBPrimaries::BT_2020, WhitePoint::D65); /// Encoded BT.2020 is [BT.2020](BT_2020) with the [BT.2020 OETF][TransformFn::BT_601] applied. pub const ENCODED_BT_2020: ColorSpace = ColorSpace::new(RGBPrimaries::BT_2020, WhitePoint::D65, TransformFn::BT_601); /// Encoded BT.2100 PQ is [BT.2020](BT_2020) (equivalent to the linear BT.2100 space) with /// the [Perceptual Quantizer inverse EOTF][TransformFn::PQ] applied. pub const ENCODED_BT_2100_PQ: ColorSpace = ColorSpace::new(RGBPrimaries::BT_2020, WhitePoint::D65, TransformFn::PQ); /// Oklab is a non-linear, perceptual encoding in [XYZ][RGBPrimaries::CIE_XYZ], /// with a [D65 whitepoint][WhitePoint::D65]. /// /// Oklab's perceptual qualities make it a very attractive color space for performing /// blend operations between two colors which you want to be perceptually pleasing. /// See [this article](https://bottosson.github.io/posts/oklab/) /// for more on why you might want to use the Oklab colorspace. pub const OKLAB: ColorSpace = ColorSpace::new(RGBPrimaries::CIE_XYZ, WhitePoint::D65, TransformFn::Oklab); /// Oklch is a non-linear, perceptual encoding in [XYZ][RGBPrimaries::CIE_XYZ], /// with a [D65 whitepoint][WhitePoint::D65]. It is a variant of [Oklab][OKLAB] /// with LCh coordinates intead of Lab. /// /// Oklch's qualities make it a very attractive color space for performing /// computational modifications to a color. You can think of it as an improved /// version of an HSL/HSV-style color space. See [this article](https://bottosson.github.io/posts/oklab/) /// for more on why you might want to use the Oklch colorspace. pub const OKLCH: ColorSpace = ColorSpace::new(RGBPrimaries::CIE_XYZ, WhitePoint::D65, TransformFn::Oklch); /// ICtCp_PQ is a non-linear encoding in [BT.2020 primaries][RGBPrimaries::BT_2020], /// with a [D65 whitepoint][WhitePoint::D65], using the PQ transfer function pub const ICtCp_PQ: ColorSpace = ColorSpace::new( RGBPrimaries::BT_2020, WhitePoint::D65, TransformFn::ICtCp_PQ, ); /// ICtCp_HLG is a non-linear encoding in [BT.2020 primaries][RGBPrimaries::BT_2020], /// with a [D65 whitepoint][WhitePoint::D65], using the HLG transfer function pub const ICtCp_HLG: ColorSpace = ColorSpace::new( RGBPrimaries::BT_2020, WhitePoint::D65, TransformFn::ICtCp_HLG, ); /// Encoded Display P3 is [Display P3][DISPLAY_P3] with the [sRGB OETF](TransformFn::sRGB) applied. pub const ENCODED_DISPLAY_P3: ColorSpace = ColorSpace::new(RGBPrimaries::P3, WhitePoint::D65, TransformFn::sRGB); /// Display P3 by Apple is a linear encoding in [P3 primaries][RGBPrimaries::P3] /// with a [D65 white point][WhitePoint::D65] pub const DISPLAY_P3: ColorSpace = ColorSpace::linear(RGBPrimaries::P3, WhitePoint::D65); /// P3-D60 (ACES Cinema) is a linear encoding in [P3 primaries][RGBPrimaries::P3] /// with a [D60 white point][WhitePoint::D60] pub const P3_D60: ColorSpace = ColorSpace::linear(RGBPrimaries::P3, WhitePoint::D60); /// P3-DCI (Theater) is a linear encoding in [P3 primaries][RGBPrimaries::P3] /// with a [P3-DCI white point][WhitePoint::P3_DCI] pub const P3_THEATER: ColorSpace = ColorSpace::linear(RGBPrimaries::P3, WhitePoint::P3_DCI); /// Adobe RGB (1998) is a linear encoding in [Adobe 1998 primaries][RGBPrimaries::ADOBE_1998] /// with a [D65 white point][WhitePoint::D65] pub const ADOBE_1998: ColorSpace = ColorSpace::linear(RGBPrimaries::ADOBE_1998, WhitePoint::D65); /// Adobe Wide Gamut RGB is a linear encoding in [Adobe Wide primaries][RGBPrimaries::ADOBE_WIDE] /// with a [D50 white point][WhitePoint::D50] pub const ADOBE_WIDE: ColorSpace = ColorSpace::linear(RGBPrimaries::ADOBE_WIDE, WhitePoint::D50); /// Pro Photo RGB is a linear encoding in [Pro Photo primaries][RGBPrimaries::PRO_PHOTO] /// with a [D50 white point][WhitePoint::D50] pub const PRO_PHOTO: ColorSpace = ColorSpace::linear(RGBPrimaries::PRO_PHOTO, WhitePoint::D50); /// Apple RGB is a linear encoding in [Apple primaries][RGBPrimaries::APPLE] /// with a [D65 white point][WhitePoint::D65] pub const APPLE: ColorSpace = ColorSpace::linear(RGBPrimaries::APPLE, WhitePoint::D65); /// Array containing all built-in color spaces. pub const ALL_COLOR_SPACES: [ColorSpace; 22] = [ color_spaces::LINEAR_SRGB, color_spaces::ENCODED_SRGB, color_spaces::BT_709, color_spaces::ENCODED_BT_709, color_spaces::BT_2020, color_spaces::ENCODED_BT_2020, color_spaces::ENCODED_BT_2100_PQ, color_spaces::ACES_CG, color_spaces::ACES2065_1, color_spaces::CIE_RGB, color_spaces::CIE_XYZ, color_spaces::OKLAB, color_spaces::ICtCp_PQ, color_spaces::ICtCp_HLG, color_spaces::PRO_PHOTO, color_spaces::APPLE, color_spaces::P3_D60, color_spaces::P3_THEATER, color_spaces::DISPLAY_P3, color_spaces::ENCODED_DISPLAY_P3, color_spaces::ADOBE_1998, color_spaces::ADOBE_WIDE, ]; } /// [Color] is a 3-component vector defined in a [ColorSpace]. #[derive(Copy, Clone, Debug)] #[cfg_attr(feature = "serde1", derive(Serialize, Deserialize))] pub struct Color { pub value: Vec3, pub space: ColorSpace, } impl Color { pub const fn new(x: FType, y: FType, z: FType, space: ColorSpace) -> Self { #[cfg(all(feature = "glam", feature = "f64"))] return Self { value: const_dvec3!([x, y, z]), space, }; #[cfg(all(feature = "glam", feature = "f32"))] return Self { value: const_vec3!([x, y, z]), space, }; #[cfg(not(feature = "glam"))] return Self { value: Vec3::new(x, y, z), space, }; } pub const fn space(&self) -> ColorSpace { self.space } /// Equivalent to `Color::new(x, y, z, kolor::spaces::ENCODED_SRGB)` pub const fn srgb(x: FType, y: FType, z: FType) -> Self { #[cfg(all(feature = "glam", feature = "f64"))] return Self { value: const_dvec3!([x, y, z]), space: color_spaces::ENCODED_SRGB, }; #[cfg(all(feature = "glam", feature = "f32"))] return Self { value: const_vec3!([x, y, z]), space: color_spaces::ENCODED_SRGB, }; #[cfg(not(feature = "glam"))] return Self { value: Vec3::new(x, y, z), space: color_spaces::ENCODED_SRGB, }; } /// Returns a [Color] with this color converted into the provided [ColorSpace]. pub fn to(&self, space: ColorSpace) -> Color { let conversion = ColorConversion::new(self.space, space); let new_color = conversion.convert(self.value); Color { space, value: new_color, } } pub fn to_linear(&self) -> Color { if self.space.is_linear() { *self } else { let transform = ColorTransform::new(self.space.transform_function(), TransformFn::NONE) .unwrap_or_else(|| { panic!( "expected transform for {:?}", self.space.transform_function() ) }); let new_color_value = transform.apply(self.value, self.space().white_point); Self { value: new_color_value, space: self.space.as_linear(), } } } } #[cfg(test)] #[allow(non_snake_case)] mod test { use super::*; use crate::details::conversion::LinearColorConversion; use color_spaces as spaces; #[test] fn linear_srgb_to_aces_cg() { let conversion = LinearColorConversion::new(spaces::LINEAR_SRGB, spaces::ACES_CG); let result = conversion.convert(Vec3::new(0.35, 0.2, 0.8)); assert!(result.abs_diff_eq(Vec3::new(0.32276854, 0.21838512, 0.72592676), 0.001)); } #[test] fn linear_srgb_to_aces_2065_1() { let conversion = ColorConversion::new(spaces::LINEAR_SRGB, spaces::ACES2065_1); let result = conversion.convert(Vec3::new(0.35, 0.2, 0.8)); assert!(result.abs_diff_eq(Vec3::new(0.3741492, 0.27154857, 0.7261116), 0.001)); } #[test] fn linear_srgb_to_srgb() { let transform = ColorTransform::new(TransformFn::NONE, TransformFn::sRGB).unwrap(); let test = Vec3::new(0.35, 0.1, 0.8); let result = transform.apply(test, WhitePoint::D65); let expected = Vec3::new(0.6262097, 0.34919018, 0.9063317); assert!( result.abs_diff_eq(expected, 0.001), "{} != {}", result, expected ); } // #[test] // fn working_space_conversions() { // // just make sure we aren't missing a conversion // for src in &WORKING_SPACE_BY_WHITE_POINT { // for dst in &WORKING_SPACE_BY_WHITE_POINT { // let conversion = LinearColorConversion::new(*src, *dst); // let mut result = Vec3::new(0.35, 0.2, 0.8); // conversion.apply(&mut result); // } // } // } #[test] fn aces_cg_to_srgb() { let conversion = ColorConversion::new(spaces::ACES_CG, spaces::ENCODED_SRGB); let result = conversion.convert(Vec3::new(0.35, 0.1, 0.8)); let expected = Vec3::new(0.713855624199, 0.271821975708, 0.955197274685); assert!( result.abs_diff_eq(expected, 0.01), "{} != {}", result, expected ); } }
WhitePoint
sls_language_modeling.py
import os import fastestimator as fe import numpy as np import sls import torch import torch.nn as nn import wget from fastestimator.op.numpyop import NumpyOp from fastestimator.op.tensorop import TensorOp from fastestimator.op.tensorop.loss import CrossEntropy from fastestimator.op.tensorop.model import ModelOp, UpdateOp def get_ptb(folder_path, seq_length=64): file_names = ["ptb.train.txt", "ptb.valid.txt", "ptb.test.txt"] urls = [ 'https://raw.githubusercontent.com/wojzaremba/lstm/master/data/ptb.train.txt', 'https://raw.githubusercontent.com/wojzaremba/lstm/master/data/ptb.valid.txt', 'https://raw.githubusercontent.com/wojzaremba/lstm/master/data/ptb.test.txt' ] # Read text texts = [] for file_name, url in zip(file_names, urls): text = [] file_path = os.path.join(folder_path, file_name) if not os.path.exists(file_path): wget.download(url, out=folder_path) with open(file_path, 'r') as f: for line in f: text.extend(line.split() + ['<eos>']) texts.append(text) # Build dictionary from training data vocab = sorted(set(texts[0])) word2idx = {u: i for i, u in enumerate(vocab)} #convert word to index and split the sequences and discard the last incomplete sequence data = [[word2idx[word] for word in text[:-(len(text) % seq_length)]] for text in texts] train_data, eval_data, test_data = [np.array(d).reshape(-1, seq_length) for d in data] return train_data, eval_data, test_data class CreateInputAndTarget(NumpyOp): def forward(self, data, state): return data[:-1], data[1:] class DimesionAdjust(TensorOp): def forward(self, data, state): x, y = data return x.T, y.T.reshape(-1) class Perplexity(fe.trace.Trace): def on_epoch_end(self, data): ce = data["ce"] data.write_with_log(self.outputs[0], np.exp(ce)) class BuildModel(nn.Module): def __init__(self, vocab_size=10000, embedding_dim=300, rnn_units=600): super().__init__() self.embed_layer = nn.Embedding(vocab_size, embedding_dim) self.lstm_layer = nn.LSTM(embedding_dim, rnn_units) self.dropout = nn.Dropout(0.5) self.fc = nn.Linear(rnn_units, vocab_size) nn.init.xavier_uniform_(self.lstm_layer.weight_ih_l0.data) nn.init.xavier_uniform_(self.lstm_layer.weight_hh_l0.data) def forward(self, x): x = self.embed_layer(x) x, _ = self.lstm_layer(x) x = x.view(x.size(0) * x.size(1), x.size(2)) x = self.dropout(x) x = self.fc(x) return x class DummpyUpdate(UpdateOp): def forward(self, data, state): pass
super().__init__(inputs=inputs, outputs=outputs, mode=mode) self.model = model self.opt = opt self.loss_op = loss_op def forward(self, data, state): x, y = data closure = lambda: self.loss_op.forward((self.model(x), y), state=state) self.opt.zero_grad() loss = self.opt.step(closure=closure) return loss class PrintLR(fe.trace.Trace): def __init__(self, opt): super().__init__(mode="train") self.opt = opt def on_batch_end(self, data): if self.system.global_step % self.system.log_steps == 0 or self.system.global_step == 1: data.write_with_log("model_lr", float(self.opt.state['step_size'])) def get_estimator(data_dir, epochs=98, batch_size=128, seq_length=20, vocab_size=10000): train_data, _, test_data = get_ptb(folder_path=data_dir, seq_length=seq_length + 1) pipeline = fe.Pipeline(train_data=fe.dataset.NumpyDataset(data={"x": train_data}), eval_data=fe.dataset.NumpyDataset(data={"x": test_data}), batch_size=batch_size, ops=CreateInputAndTarget(inputs="x", outputs=("x", "y")), drop_last=True) # step 2 model = fe.build(model_fn=lambda: BuildModel(vocab_size, embedding_dim=300, rnn_units=600), optimizer_fn="sgd") opt = sls.Sls(model.parameters()) network = fe.Network(ops=[ DimesionAdjust(inputs=("x", "y"), outputs=("x", "y")), ModelOp(model=model, inputs="x", outputs="y_pred", mode=None), SGDLinesSearch(model=model, opt=opt, loss_op=CrossEntropy(inputs=("y_pred", "y"), outputs="ce", form="sparse", from_logits=True), inputs=("x", "y"), outputs="ce"), CrossEntropy(inputs=("y_pred", "y"), outputs="ce", form="sparse", from_logits=True, mode="eval"), DummpyUpdate(model=model, loss_name="ce") ]) # step 3 traces = [Perplexity(inputs="ce", outputs="perplexity", mode="eval"), PrintLR(opt=opt)] estimator = fe.Estimator(pipeline=pipeline, network=network, epochs=epochs, traces=traces) return estimator
class SGDLinesSearch(fe.op.tensorop.TensorOp): def __init__(self, model, opt, loss_op, inputs, outputs, mode="train"):
app.js
require('babel-register'); const express = require('express'); const session = require('express-session'); const path = require("path")//NODE const http = require('http')//NODE const fs = require('fs')//NODE const MongoStore = require('connect-mongo')(session); const mongoose = require('mongoose') const app = express(); const morgan = require('morgan')('dev'); const bodyParser = require('body-parser'); const config = require('./config.json'); const axios = require('axios'); const { send } = require('process'); db = require("./util/mongoose"); db.init(); app.set('trust proxy', 1) // trust first proxy app.use(session({ secret: "A5H2G2V", name: 'member-space', resave: false, saveUninitialized: true, store: new MongoStore({ mongooseConnection: mongoose.connection }), cookie: { } })); app.use(morgan) app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended : true})) app.use('/static', express.static(path.join(__dirname, 'public'))); app.get('/', (req, res) => { let userConnected; if(!req.session || !req.session.user) userConnected = false; else if(req.session.user.userAdmin) userConnected = 'admin'; else userConnected = 'member'; res.render(`${__dirname}/pages/index.ejs`,{ userConnected : userConnected }) }); app.get('/css', (req, res) => { res.status(200).sendFile(path.join(__dirname, 'public/css/main.css')); }); app.get('/login', (req, res) => { if (req.session.user) return res.redirect('/account') //else res.status(200).sendFile(path.join(__dirname, 'pages/login.ejs')); else res.render(`${__dirname}/pages/login.ejs`) }); app.get("/disconnection", function(req, res){ req.session.destroy(function(error){ res.redirect('/') }) }) app.get('/account', (req, res) => { let userConnected; if (!req.session || !req.session.user) { return res.redirect('/login') } if(!req.session || !req.session.user) userConnected = false; else if(req.session.user.userAdmin) userConnected = 'admin'; else userConnected = 'member'; axios.post(`http://localhost:8080/api/v1/members/${req.session.user.userID}`, { userID: req.session.user.userID, userAdmin: req.session.user.userAdmin }) .then((responce) => { if(responce.data.status === 'success'){ res.render(`${__dirname}/pages/account.ejs`,{ member : responce.data.result, userConnected : userConnected }) } else { res.render(`${__dirname}/pages/error.ejs`, { error : responce.data.message }) } }) .catch((error) => { console.log(error) res.render(`${__dirname}/pages/error.ejs`) //-------------------------ERROR-PAGE }); }); app.get('/error', (req, res) => { res.status(200).sendFile(path.join(__dirname, 'pages/error.ejs')); }); /*app.get('/usersession',(req,res) => { if(req.session.user) return res.json(req.session.user) else return res.send(false);//console.log("user is not connected.") })*/ app.get('/admin',(req,res) => { if(req.session.user){ if(req.session.user.userAdmin){ let userConnected; if(!req.session || !req.session.user) userConnected = false; else if(req.session.user.userAdmin) userConnected = 'admin'; else userConnected = 'member'; console.log("ADMIN : YES") axios.get(`http://localhost:8080/api/v1/members/`, { userID: req.session.user.userID, userAdmin: req.session.user.userAdmin }) .then((responce) => { console.log(responce.data.status) res.render(`${__dirname}/pages/admin.ejs`,{ members : responce.data.result, userConnected : userConnected }) }) .catch((error) => { console.log(error) /*sendPage( data = { status : 'error', message : 'Une erreur s\'est produite. Merci de réessayer' });*/ }); } else { console.log("ADMIN : NO"); res.redirect("/") } } else res.redirect("/") }) app.get('/admin/update/:id',(req,res) => { if(req.session.user){ if(req.session.user.userAdmin){ axios.get(`http://localhost:8080/api/v1/members/${req.params.id}`, { userID: req.session.user.userID, userAdmin: req.session.user.userAdmin }) .then((responce) => { console.log(responce.data.status) res.render(`${__dirname}/pages/adminupdate.ejs`,{ member : responce.data.result, userConnected : 'admin' }) }) .catch((error) => { console.log(error) res.render(`${__dirname}/pages/error.ejs`,{ error : error, userConnected : 'admin' }) }); //res.status(200).sendFile(path.join(__dirname, './pages/adminupdate.ejs')); } else { res.redirect("/") } } else res.redirect("/") }) app.post('/login', (req, res) => { /*http.get(`http://localhost:8080/api/v1/members/${req.body.pseudo}/${req.body.pass}`,responce => { let data = "" responce.on("data", d => { data += d }) responce.on("end", () => { // console.log(data) login(data) }) }) function login(data){ const responce = JSON.parse(data) if(responce.status === "success"){ req.session.user = { userID: responce.result.userID, userAdmin : responce.result.userAdmin } res.redirect('/account') }else res.redirect('/login') }*/ axios.get(`http://localhost:8080/api/v1/members/${req.body.pseudo}/${req.body.pass}`) .then(result =>{ responce = result.data if(responce.status === "success"){ req.session.user = { userID: responce.result.userID, userAdmin : responce.result.userAdmin } res.redirect('/account') }else { res.redirect('/login') } }) .catch(err =>{ console.log(err)//--------------------------ERREUR-A-GERER }) }); app.post('/members/add', (req, res) => { function redirect(url){ res.redirect(url) } axios.post('http://localhost:8080/api/v1/members', { pseudo : req.body.pseudo, password :req.body.password, firstName: req.body.firstName, lastName: req.body.lastName, age: req.body.age, email: req.body.email, phoneNumber: req.body.phoneNumber }) .then((res) => { console.log(`statusCode: ${res.statusCode}`) console.log(res) if(res.data.status === 'error'){ redirect('/error?error=' + res.data.message); }else if(res.data.status === 'success') redirect('/login'); }) .catch((error) => { console.error(error) }) }); app.post('/:id/update', (req, res) => { function r
url){ res.redirect(url) } axios.put(`http://localhost:8080/api/v1/members/${req.params.id}`, { pseudo : req.body.pseudo, password :req.body.password, firstName: req.body.firstName, lastName: req.body.lastName, age: req.body.age, email: req.body.email, phoneNumber: req.body.phoneNumber }) .then((res) => { console.log(`statusCode: ${res.statusCode}`) console.log(res) if(res.data.status === 'error'){ redirect('/error?error=' + res.data.message); }else if(res.data.status === 'success') redirect('/account'); }) .catch((error) => { console.error(error) }) }); app.post('/:id/delete', (req, res) => { function redirect(url){ res.redirect(url) } axios.delete(`http://localhost:8080/api/v1/members/${req.params.id}`) .then((res) => { console.log(`statusCode: ${res.statusCode}`) console.log(res) if(res.data.status === 'error'){ redirect('/error?error=' + res.data.message); }else if(res.data.status === 'success') redirect('/destroyusersession'); }) .catch((error) => { console.error(error) }) }); app.post('/admin/update/:id', (req, res) => { function redirect(url){ res.redirect(url) } axios.put(`http://localhost:8080/api/v1/members/${req.params.id}`, { pseudo : req.body.pseudo, password :req.body.password, firstName: req.body.firstName, lastName: req.body.lastName, age: req.body.age, email: req.body.email, phoneNumber: req.body.phoneNumber }) .then((res) => { console.log(`statusCode: ${res.statusCode}`) console.log(res) if(res.data.status === 'error'){ redirect('/error?error=' + res.data.message); }else if(res.data.status === 'success') redirect('/admin'); }) .catch((error) => { console.error(error) }) }); app.post('/admin/delete/:id', (req, res) => { function redirect(url){ res.redirect(url) } axios.delete(`http://localhost:8080/api/v1/members/${req.params.id}`) .then((res) => { console.log(`statusCode: ${res.statusCode}`) console.log(res) if(res.data.status === 'error'){ redirect('/error?error=' + res.data.message); }else if(res.data.status === 'success') redirect('/admin'); }) .catch((error) => { console.error(error) }) }); app.listen(config.port, () => console.log('Started on port '+ config.port));
edirect(
if1.rs
// if1.rs pub fn bigger(a: i32, b: i32) -> i32 { // Complete this function to return the bigger number! // Do not use: // - another function call // - additional variables // Execute `rustlings hint if1` for hints if a > b {a} else {b} } // Don't mind this for now :) #[cfg(test)] mod tests { use super::*; #[test] fn
() { assert_eq!(10, bigger(10, 8)); } #[test] fn fortytwo_is_bigger_than_thirtytwo() { assert_eq!(42, bigger(32, 42)); } }
ten_is_bigger_than_eight
606.js
/*! For license information please see 606.js.LICENSE.txt */ (self.webpackChunk=self.webpackChunk||[]).push([[606],{6308:(e,t,n)=>{"use strict";n.d(t,{K:()=>a});var a=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}()},79397:(e,t,n)=>{"use strict";function a(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},a=function(){};e.document.addEventListener("test",a,n),e.document.removeEventListener("test",a,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}n.r(t),n.d(t,{applyPassive:()=>a})},42851:(e,t,n)=>{"use strict";function a(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(i(n,t))return n;n=n.parentElement}return null}function i(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}function r(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var a=n.scrollWidth;return document.documentElement.removeChild(n),a}n.r(t),n.d(t,{closest:()=>a,matches:()=>i,estimateScrollWidth:()=>r})},17211:(e,t,n)=>{"use strict";function a(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function s(e){return e instanceof i(e).Element||e instanceof Element}function o(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}function l(e){return e?(e.nodeName||"").toLowerCase():null}function u(e){return((s(e)?e.ownerDocument:e.document)||window.document).documentElement}function c(e){return a(u(e)).left+r(e).scrollLeft}function m(e){return i(e).getComputedStyle(e)}function _(e){var t=m(e),n=t.overflow,a=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+a)}function h(e,t,n){void 0===n&&(n=!1);var s,d=u(t),m=a(e),h=o(t),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(h||!h&&!n)&&(("body"!==l(t)||_(d))&&(f=(s=t)!==i(s)&&o(s)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(s):r(s)),o(t)?((p=a(t)).x+=t.clientLeft,p.y+=t.clientTop):d&&(p.x=c(d))),{x:m.left+f.scrollLeft-p.x,y:m.top+f.scrollTop-p.y,width:m.width,height:m.height}}function f(e){var t=a(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function p(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||u(e)}function g(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:o(e)&&_(e)?e:g(p(e))}function L(e,t){var n;void 0===t&&(t=[]);var a=g(e),r=a===(null==(n=e.ownerDocument)?void 0:n.body),s=i(a),o=r?[s].concat(s.visualViewport||[],_(a)?a:[]):a,d=t.concat(o);return r?d:d.concat(L(p(o)))}function y(e){return["table","td","th"].indexOf(l(e))>=0}function v(e){return o(e)&&"fixed"!==m(e).position?e.offsetParent:null}function M(e){for(var t=i(e),n=v(e);n&&y(n)&&"static"===m(n).position;)n=v(n);return n&&("html"===l(n)||"body"===l(n)&&"static"===m(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(e)&&"fixed"===m(e).position)return null;for(var n=p(e);o(n)&&["html","body"].indexOf(l(n))<0;){var a=m(n);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return n;n=n.parentNode}return null}(e)||t}n.d(t,{fi:()=>ce});var b="top",Y="bottom",k="right",w="left",T="auto",D=[b,Y,k,w],x="start",$="end",S="viewport",j="popper",H=D.reduce((function(e,t){return e.concat([t+"-"+x,t+"-"+$])}),[]),C=[].concat(D,[T]).reduce((function(e,t){return e.concat([t,t+"-"+x,t+"-"+$])}),[]),E=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function O(e){var t=new Map,n=new Set,a=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var a=t.get(e);a&&i(a)}})),a.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),a}var A={placement:"bottom",modifiers:[],strategy:"absolute"};function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function R(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,a=void 0===n?[]:n,i=t.defaultOptions,r=void 0===i?A:i;return function(e,t,n){void 0===n&&(n=r);var i,o,d={placement:"bottom",orderedModifiers:[],options:Object.assign({},A,r),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],u=!1,c={state:d,setOptions:function(n){m(),d.options=Object.assign({},r,d.options,n),d.scrollParents={reference:s(e)?L(e):e.contextElement?L(e.contextElement):[],popper:L(t)};var i=function(e){var t=O(e);return E.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(a,d.options.modifiers)));return d.orderedModifiers=i.filter((function(e){return e.enabled})),d.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,a=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var r=i({state:d,name:t,instance:c,options:a}),s=function(){};l.push(r||s)}})),c.update()},forceUpdate:function(){if(!u){var e=d.elements,t=e.reference,n=e.popper;if(I(t,n)){d.rects={reference:h(t,M(n),"fixed"===d.options.strategy),popper:f(n)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach((function(e){return d.modifiersData[e.name]=Object.assign({},e.data)}));for(var a=0;a<d.orderedModifiers.length;a++)if(!0!==d.reset){var i=d.orderedModifiers[a],r=i.fn,s=i.options,o=void 0===s?{}:s,l=i.name;"function"==typeof r&&(d=r({state:d,options:o,name:l,instance:c})||d)}else d.reset=!1,a=-1}}},update:(i=function(){return new Promise((function(e){c.forceUpdate(),e(d)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(i())}))}))),o}),destroy:function(){m(),u=!0}};if(!I(e,t))return c;function m(){l.forEach((function(e){return e()})),l=[]}return c.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var P={passive:!0};const F={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,a=e.options,r=a.scroll,s=void 0===r||r,o=a.resize,d=void 0===o||o,l=i(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach((function(e){e.addEventListener("scroll",n.update,P)})),d&&l.addEventListener("resize",n.update,P),function(){s&&u.forEach((function(e){e.removeEventListener("scroll",n.update,P)})),d&&l.removeEventListener("resize",n.update,P)}},data:{}};function N(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function U(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function W(e){var t,n=e.reference,a=e.element,i=e.placement,r=i?N(i):null,s=i?z(i):null,o=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2;switch(r){case b:t={x:o,y:n.y-a.height};break;case Y:t={x:o,y:n.y+n.height};break;case k:t={x:n.x+n.width,y:d};break;case w:t={x:n.x-a.width,y:d};break;default:t={x:n.x,y:n.y}}var l=r?U(r):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case x:t[l]=t[l]-(n[u]/2-a[u]/2);break;case $:t[l]=t[l]+(n[u]/2-a[u]/2)}}return t}const V={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=W({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var G=Math.max,q=Math.min,B=Math.round,Z={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,a=e.popperRect,r=e.placement,s=e.offsets,o=e.position,d=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,_=!0===c?function(e){var t=e.x,n=e.y,a=window.devicePixelRatio||1;return{x:B(B(t*a)/a)||0,y:B(B(n*a)/a)||0}}(s):"function"==typeof c?c(s):s,h=_.x,f=void 0===h?0:h,p=_.y,g=void 0===p?0:p,L=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),v=w,T=b,D=window;if(l){var x=M(n),$="clientHeight",S="clientWidth";x===i(n)&&"static"!==m(x=u(n)).position&&($="scrollHeight",S="scrollWidth"),x=x,r===b&&(T=Y,g-=x[$]-a.height,g*=d?1:-1),r===w&&(v=k,f-=x[S]-a.width,f*=d?1:-1)}var j,H=Object.assign({position:o},l&&Z);return d?Object.assign({},H,((j={})[T]=y?"0":"",j[v]=L?"0":"",j.transform=(D.devicePixelRatio||1)<2?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",j)):Object.assign({},H,((t={})[T]=y?g+"px":"",t[v]=L?f+"px":"",t.transform="",t))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function X(e){return e.replace(/left|right|bottom|top/g,(function(e){return K[e]}))}var Q={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(function(e){return Q[e]}))}function te(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ne(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ae(e,t){return t===S?ne(function(e){var t=i(e),n=u(e),a=t.visualViewport,r=n.clientWidth,s=n.clientHeight,o=0,d=0;return a&&(r=a.width,s=a.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=a.offsetLeft,d=a.offsetTop)),{width:r,height:s,x:o+c(e),y:d}}(e)):o(t)?function(e){var t=a(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ne(function(e){var t,n=u(e),a=r(e),i=null==(t=e.ownerDocument)?void 0:t.body,s=G(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=G(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),d=-a.scrollLeft+c(e),l=-a.scrollTop;return"rtl"===m(i||n).direction&&(d+=G(n.clientWidth,i?i.clientWidth:0)-s),{width:s,height:o,x:d,y:l}}(u(e)))}function ie(e,t,n){var a="clippingParents"===t?function(e){var t=L(p(e)),n=["absolute","fixed"].indexOf(m(e).position)>=0&&o(e)?M(e):e;return s(n)?t.filter((function(e){return s(e)&&te(e,n)&&"body"!==l(e)})):[]}(e):[].concat(t),i=[].concat(a,[n]),r=i[0],d=i.reduce((function(t,n){var a=ae(e,n);return t.top=G(a.top,t.top),t.right=q(a.right,t.right),t.bottom=q(a.bottom,t.bottom),t.left=G(a.left,t.left),t}),ae(e,r));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function re(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function oe(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=void 0===i?e.placement:i,o=n.boundary,d=void 0===o?"clippingParents":o,l=n.rootBoundary,c=void 0===l?S:l,m=n.elementContext,_=void 0===m?j:m,h=n.altBoundary,f=void 0!==h&&h,p=n.padding,g=void 0===p?0:p,L=re("number"!=typeof g?g:se(g,D)),y=_===j?"reference":j,v=e.elements.reference,M=e.rects.popper,w=e.elements[f?y:_],T=ie(s(w)?w:w.contextElement||u(e.elements.popper),d,c),x=a(v),$=W({reference:x,element:M,strategy:"absolute",placement:r}),H=ne(Object.assign({},M,$)),C=_===j?H:x,E={top:T.top-C.top+L.top,bottom:C.bottom-T.bottom+L.bottom,left:T.left-C.left+L.left,right:C.right-T.right+L.right},O=e.modifiersData.offset;if(_===j&&O){var A=O[r];Object.keys(E).forEach((function(e){var t=[k,Y].indexOf(e)>=0?1:-1,n=[b,Y].indexOf(e)>=0?"y":"x";E[e]+=A[n]*t}))}return E}function de(e,t,n){return G(e,q(t,n))}function le(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ue(e){return[b,k,Y,w].some((function(t){return e[t]>=0}))}var ce=R({defaultModifiers:[F,V,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,a=n.gpuAcceleration,i=void 0===a||a,r=n.adaptive,s=void 0===r||r,o=n.roundOffsets,d=void 0===o||o,l={placement:N(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:d})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},a=t.attributes[e]||{},i=t.elements[e];o(i)&&l(i)&&(Object.assign(i.style,n),Object.keys(a).forEach((function(e){var t=a[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],i=t.attributes[e]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});o(a)&&l(a)&&(Object.assign(a.style,r),Object.keys(i).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,a=e.name,i=n.offset,r=void 0===i?[0,0]:i,s=C.reduce((function(e,n){return e[n]=function(e,t,n){var a=N(e),i=[w,b].indexOf(a)>=0?-1:1,r="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=r[0],o=r[1];return s=s||0,o=(o||0)*i,[w,k].indexOf(a)>=0?{x:o,y:s}:{x:s,y:o}}(n,t.rects,r),e}),{}),o=s[t.placement],d=o.x,l=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=d,t.modifiersData.popperOffsets.y+=l),t.modifiersData[a]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var i=n.mainAxis,r=void 0===i||i,s=n.altAxis,o=void 0===s||s,d=n.fallbackPlacements,l=n.padding,u=n.boundary,c=n.rootBoundary,m=n.altBoundary,_=n.flipVariations,h=void 0===_||_,f=n.allowedAutoPlacements,p=t.options.placement,g=N(p),L=d||(g===p||!h?[X(p)]:function(e){if(N(e)===T)return[];var t=X(e);return[ee(e),t,ee(t)]}(p)),y=[p].concat(L).reduce((function(e,n){return e.concat(N(n)===T?function(e,t){void 0===t&&(t={});var n=t,a=n.placement,i=n.boundary,r=n.rootBoundary,s=n.padding,o=n.flipVariations,d=n.allowedAutoPlacements,l=void 0===d?C:d,u=z(a),c=u?o?H:H.filter((function(e){return z(e)===u})):D,m=c.filter((function(e){return l.indexOf(e)>=0}));0===m.length&&(m=c);var _=m.reduce((function(t,n){return t[n]=oe(e,{placement:n,boundary:i,rootBoundary:r,padding:s})[N(n)],t}),{});return Object.keys(_).sort((function(e,t){return _[e]-_[t]}))}(t,{placement:n,boundary:u,rootBoundary:c,padding:l,flipVariations:h,allowedAutoPlacements:f}):n)}),[]),v=t.rects.reference,M=t.rects.popper,$=new Map,S=!0,j=y[0],E=0;E<y.length;E++){var O=y[E],A=N(O),I=z(O)===x,R=[b,Y].indexOf(A)>=0,P=R?"width":"height",F=oe(t,{placement:O,boundary:u,rootBoundary:c,altBoundary:m,padding:l}),U=R?I?k:w:I?Y:b;v[P]>M[P]&&(U=X(U));var W=X(U),V=[];if(r&&V.push(F[A]<=0),o&&V.push(F[U]<=0,F[W]<=0),V.every((function(e){return e}))){j=O,S=!1;break}$.set(O,V)}if(S)for(var G=function(e){var t=y.find((function(t){var n=$.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},q=h?3:1;q>0;q--){if("break"===G(q))break}t.placement!==j&&(t.modifiersData[a]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,a=e.name,i=n.mainAxis,r=void 0===i||i,s=n.altAxis,o=void 0!==s&&s,d=n.boundary,l=n.rootBoundary,u=n.altBoundary,c=n.padding,m=n.tether,_=void 0===m||m,h=n.tetherOffset,p=void 0===h?0:h,g=oe(t,{boundary:d,rootBoundary:l,padding:c,altBoundary:u}),L=N(t.placement),y=z(t.placement),v=!y,T=U(L),D="x"===T?"y":"x",$=t.modifiersData.popperOffsets,S=t.rects.reference,j=t.rects.popper,H="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,C={x:0,y:0};if($){if(r||o){var E="y"===T?b:w,O="y"===T?Y:k,A="y"===T?"height":"width",I=$[T],R=$[T]+g[E],P=$[T]-g[O],F=_?-j[A]/2:0,W=y===x?S[A]:j[A],V=y===x?-j[A]:-S[A],B=t.elements.arrow,Z=_&&B?f(B):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=J[E],X=J[O],Q=de(0,S[A],Z[A]),ee=v?S[A]/2-F-Q-K-H:W-Q-K-H,te=v?-S[A]/2+F+Q+X+H:V+Q+X+H,ne=t.elements.arrow&&M(t.elements.arrow),ae=ne?"y"===T?ne.clientTop||0:ne.clientLeft||0:0,ie=t.modifiersData.offset?t.modifiersData.offset[t.placement][T]:0,re=$[T]+ee-ie-ae,se=$[T]+te-ie;if(r){var le=de(_?q(R,re):R,I,_?G(P,se):P);$[T]=le,C[T]=le-I}if(o){var ue="x"===T?b:w,ce="x"===T?Y:k,me=$[D],_e=me+g[ue],he=me-g[ce],fe=de(_?q(_e,re):_e,me,_?G(he,se):he);$[D]=fe,C[D]=fe-me}}t.modifiersData[a]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,i=e.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,o=N(n.placement),d=U(o),l=[w,k].indexOf(o)>=0?"height":"width";if(r&&s){var u=function(e,t){return re("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,D))}(i.padding,n),c=f(r),m="y"===d?b:w,_="y"===d?Y:k,h=n.rects.reference[l]+n.rects.reference[d]-s[d]-n.rects.popper[l],p=s[d]-n.rects.reference[d],g=M(r),L=g?"y"===d?g.clientHeight||0:g.clientWidth||0:0,y=h/2-p/2,v=u[m],T=L-c[l]-u[_],x=L/2-c[l]/2+y,$=de(v,x,T),S=d;n.modifiersData[a]=((t={})[S]=$,t.centerOffset=$-x,t)}},effect:function(e){var t=e.state,n=e.options.element,a=void 0===n?"[data-popper-arrow]":n;null!=a&&("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&te(t.elements.popper,a)&&(t.elements.arrow=a)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,a=t.rects.reference,i=t.rects.popper,r=t.modifiersData.preventOverflow,s=oe(t,{elementContext:"reference"}),o=oe(t,{altBoundary:!0}),d=le(s,a),l=le(o,i,r),u=ue(d),c=ue(l);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":c})}}]})},50942:(e,t,n)=>{"use strict";n.d(t,{__:()=>k,ZP:()=>w});var a=n(21379),i=n(90400),r=n(22730),s=n(86551),o=n(41727);function d(e){let t,n,i,s,o,d;const l=e[6].default,u=(0,a.nu)(l,e,e[5],null);let c=[e[3]],m={};for(let e=0;e<c.length;e+=1)m=(0,a.f0)(m,c[e]);return{c(){t=(0,a.bG)("button"),u&&u.c(),(0,a.UF)(t,m)},m(l,c){(0,a.$T)(l,t,c),u&&u.m(t,null),e[7](t),s=!0,o||(d=[(0,a.TV)(n=r.ol.call(null,t,e[0])),(0,a.TV)(i=e[2].call(null,t))],o=!0)},p(e,[i]){u&&u.p&&(!s||32&i)&&(0,a.Tj)(u,l,e,e[5],s?i:-1,null,null),(0,a.UF)(t,m=(0,a.Lo)(c,[8&i&&e[3]])),n&&(0,a.sB)(n.update)&&1&i&&n.update.call(null,e[0])},i(e){s||((0,a.Ui)(u,e),s=!0)},o(e){(0,a.et)(u,e),s=!1},d(n){n&&(0,a.og)(t),u&&u.d(n),e[7](null),o=!1,(0,a.j7)(d)}}}function l(e,t,n){const i=["use","getElement"];let s=(0,a.q2)(t,i),{$$slots:o={},$$scope:d}=t,{use:l=[]}=t;const u=(0,r.PD)((0,a.w2)());let c=null;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(3,s=(0,a.q2)(t,i)),"use"in e&&n(0,l=e.use),"$$scope"in e&&n(5,d=e.$$scope)},[l,c,u,s,function(){return c},d,o,function(e){a.Vn[e?"unshift":"push"]((()=>{c=e,n(1,c)}))}]}class u extends a.f_{constructor(e){super(),(0,a.S1)(this,e,l,d,a.N8,{use:0,getElement:4})}get getElement(){return this.$$.ctx[4]}}const c=u;function m(e){let t;return{c(){t=(0,a.bG)("div"),(0,a.Lj)(t,"class","mdc-button__touch")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function _(e){let t,n,i,r;const s=e[26].default,o=(0,a.nu)(s,e,e[28],null);let d=e[6]&&m();return{c(){t=(0,a.bG)("div"),n=(0,a.Dh)(),o&&o.c(),d&&d.c(),i=(0,a.cS)(),(0,a.Lj)(t,"class","mdc-button__ripple")},m(e,s){(0,a.$T)(e,t,s),(0,a.$T)(e,n,s),o&&o.m(e,s),d&&d.m(e,s),(0,a.$T)(e,i,s),r=!0},p(e,t){o&&o.p&&(!r||268435456&t)&&(0,a.Tj)(o,s,e,e[28],r?t:-1,null,null),e[6]?d||(d=m(),d.c(),d.m(i.parentNode,i)):d&&(d.d(1),d=null)},i(e){r||((0,a.Ui)(o,e),r=!0)},o(e){(0,a.et)(o,e),r=!1},d(e){e&&(0,a.og)(t),e&&(0,a.og)(n),o&&o.d(e),d&&d.d(e),e&&(0,a.og)(i)}}}function h(e){let t,n,i;const o=[{use:[[s.Z,{ripple:e[3],unbounded:!1,color:e[4],disabled:!!e[22].disabled,addClass:e[18],removeClass:e[19],addStyle:e[20]}],e[16],...e[0]]},{class:(0,r.$o)({[e[1]]:!0,"mdc-button":!0,"mdc-button--raised":"raised"===e[5],"mdc-button--unelevated":"unelevated"===e[5],"mdc-button--outlined":"outlined"===e[5],"smui-button--color-secondary":"secondary"===e[4],"mdc-button--touch":e[6],"mdc-card__action":"card:action"===e[17],"mdc-card__action--button":"card:action"===e[17],"mdc-dialog__button":"dialog:action"===e[17],"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===e[17],"mdc-top-app-bar__action-item":"top-app-bar:action"===e[17],"mdc-snackbar__action":"snackbar:actions"===e[17],"mdc-banner__secondary-action":"banner"===e[17]&&e[8],"mdc-banner__primary-action":"banner"===e[17]&&!e[8],"mdc-tooltip__action":"tooltip:rich-actions"===e[17],...e[11]})},{style:Object.entries(e[12]).map(f).concat([e[2]]).join(" ")},e[13],e[14],e[15],{href:e[7]},e[22]];var d=e[9];function l(e){let t={$$slots:{default:[_]},$$scope:{ctx:e}};for(let e=0;e<o.length;e+=1)t=(0,a.f0)(t,o[e]);return{props:t}}return d&&(t=new d(l(e)),e[27](t),t.$on("click",e[21])),{c(){t&&(0,a.YC)(t.$$.fragment),n=(0,a.cS)()},m(e,r){t&&(0,a.ye)(t,e,r),(0,a.$T)(e,n,r),i=!0},p(e,[i]){const u=6289919&i?(0,a.Lo)(o,[6094873&i&&{use:[[s.Z,{ripple:e[3],unbounded:!1,color:e[4],disabled:!!e[22].disabled,addClass:e[18],removeClass:e[19],addStyle:e[20]}],e[16],...e[0]]},133490&i&&{class:(0,r.$o)({[e[1]]:!0,"mdc-button":!0,"mdc-button--raised":"raised"===e[5],"mdc-button--unelevated":"unelevated"===e[5],"mdc-button--outlined":"outlined"===e[5],"smui-button--color-secondary":"secondary"===e[4],"mdc-button--touch":e[6],"mdc-card__action":"card:action"===e[17],"mdc-card__action--button":"card:action"===e[17],"mdc-dialog__button":"dialog:action"===e[17],"mdc-top-app-bar__navigation-icon":"top-app-bar:navigation"===e[17],"mdc-top-app-bar__action-item":"top-app-bar:action"===e[17],"mdc-snackbar__action":"snackbar:actions"===e[17],"mdc-banner__secondary-action":"banner"===e[17]&&e[8],"mdc-banner__primary-action":"banner"===e[17]&&!e[8],"mdc-tooltip__action":"tooltip:rich-actions"===e[17],...e[11]})},4100&i&&{style:Object.entries(e[12]).map(f).concat([e[2]]).join(" ")},8192&i&&(0,a.gC)(e[13]),16384&i&&(0,a.gC)(e[14]),32768&i&&(0,a.gC)(e[15]),128&i&&{href:e[7]},4194304&i&&(0,a.gC)(e[22])]):{};if(268435520&i&&(u.$$scope={dirty:i,ctx:e}),d!==(d=e[9])){if(t){(0,a.dv)();const e=t;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}d?(t=new d(l(e)),e[27](t),t.$on("click",e[21]),(0,a.YC)(t.$$.fragment),(0,a.Ui)(t.$$.fragment,1),(0,a.ye)(t,n.parentNode,n)):t=null}else d&&t.$set(u)},i(e){i||(t&&(0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){t&&(0,a.et)(t.$$.fragment,e),i=!1},d(i){e[27](null),i&&(0,a.og)(n),t&&(0,a.vp)(t,i)}}}const f=([e,t])=>`${e}: ${t};`;function p(e,t,n){let s,d,l;const u=["use","class","style","ripple","color","variant","touch","href","action","default","secondary","component","getElement"];let m=(0,a.q2)(t,u),{$$slots:_={},$$scope:h}=t;const f=(0,r.PD)((0,a.w2)());let p,{use:g=[]}=t,{class:L=""}=t,{style:y=""}=t,{ripple:v=!0}=t,{color:M="primary"}=t,{variant:b="text"}=t,{touch:Y=!1}=t,{href:k=null}=t,{action:w="close"}=t,{default:T=!1}=t,{secondary:D=!1}=t,x={},$={},S=(0,i.fw)("SMUI:button:context"),{component:j=(null==k?c:o.Z)}=t;function H(){return p.getElement()}return(0,i.v)("SMUI:label:context","button"),(0,i.v)("SMUI:icon:context","button"),e.$$set=e=>{n(29,t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e))),n(22,m=(0,a.q2)(t,u)),"use"in e&&n(0,g=e.use),"class"in e&&n(1,L=e.class),"style"in e&&n(2,y=e.style),"ripple"in e&&n(3,v=e.ripple),"color"in e&&n(4,M=e.color),"variant"in e&&n(5,b=e.variant),"touch"in e&&n(6,Y=e.touch),"href"in e&&n(7,k=e.href),"action"in e&&n(23,w=e.action),"default"in e&&n(24,T=e.default),"secondary"in e&&n(8,D=e.secondary),"component"in e&&n(9,j=e.component),"$$scope"in e&&n(28,h=e.$$scope)},e.$$.update=()=>{n(13,s="dialog:action"===S&&null!=w?{"data-mdc-dialog-action":w}:{action:t.action}),n(14,d="dialog:action"===S&&T?{"data-mdc-dialog-button-default":""}:{default:t.default}),n(15,l="banner"===S?{}:{secondary:t.secondary})},t=(0,a.Jv)(t),[g,L,y,v,M,b,Y,k,D,j,p,x,$,s,d,l,f,S,function(e){x[e]||n(11,x[e]=!0,x)},function(e){e in x&&!x[e]||n(11,x[e]=!1,x)},function(e,t){$[e]!=t&&(""===t||null==t?(delete $[e],n(12,$)):n(12,$[e]=t,$))},function(){"banner"===S&&(0,r.WI)(H(),D?"SMUI:banner:button:secondaryActionClick":"SMUI:banner:button:primaryActionClick")},m,w,T,H,_,function(e){a.Vn[e?"unshift":"push"]((()=>{p=e,n(10,p)}))},h]}class g extends a.f_{constructor(e){super(),(0,a.S1)(this,e,p,h,a.N8,{use:0,class:1,style:2,ripple:3,color:4,variant:5,touch:6,href:7,action:23,default:24,secondary:8,component:9,getElement:25})}get getElement(){return this.$$.ctx[25]}}const L=g;var y=n(58365);function v(e){let t;const n=e[9].default,i=(0,a.nu)(n,e,e[11],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||2048&r)&&(0,a.Tj)(i,n,e,e[11],t?r:-1,null,null)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function M(e){let t,n,i;const s=[{use:[e[4],...e[0]]},{class:(0,r.$o)({[e[1]]:!0,"mdc-button__label":"button"===e[5],"mdc-fab__label":"fab"===e[5],"mdc-tab__text-label":"tab"===e[5],"mdc-image-list__label":"image-list"===e[5],"mdc-snackbar__label":"snackbar"===e[5],"mdc-banner__text":"banner"===e[5],"mdc-segmented-button__label":"segmented-button"===e[5],"mdc-data-table__pagination-rows-per-page-label":"data-table:pagination"===e[5],"mdc-data-table__header-cell-label":"data-table:sortable-header-cell"===e[5]})},"snackbar"===e[5]?{"aria-atomic":"false"}:{},{tabindex:e[6]},e[7]];var o=e[2];function d(e){let t={$$slots:{default:[v]},$$scope:{ctx:e}};for(let e=0;e<s.length;e+=1)t=(0,a.f0)(t,s[e]);return{props:t}}return o&&(t=new o(d(e)),e[10](t)),{c(){t&&(0,a.YC)(t.$$.fragment),n=(0,a.cS)()},m(e,r){t&&(0,a.ye)(t,e,r),(0,a.$T)(e,n,r),i=!0},p(e,[i]){const l=243&i?(0,a.Lo)(s,[17&i&&{use:[e[4],...e[0]]},34&i&&{class:(0,r.$o)({[e[1]]:!0,"mdc-button__label":"button"===e[5],"mdc-fab__label":"fab"===e[5],"mdc-tab__text-label":"tab"===e[5],"mdc-image-list__label":"image-list"===e[5],"mdc-snackbar__label":"snackbar"===e[5],"mdc-banner__text":"banner"===e[5],"mdc-segmented-button__label":"segmented-button"===e[5],"mdc-data-table__pagination-rows-per-page-label":"data-table:pagination"===e[5],"mdc-data-table__header-cell-label":"data-table:sortable-header-cell"===e[5]})},32&i&&(0,a.gC)("snackbar"===e[5]?{"aria-atomic":"false"}:{}),64&i&&{tabindex:e[6]},128&i&&(0,a.gC)(e[7])]):{};if(2048&i&&(l.$$scope={dirty:i,ctx:e}),o!==(o=e[2])){if(t){(0,a.dv)();const e=t;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}o?(t=new o(d(e)),e[10](t),(0,a.YC)(t.$$.fragment),(0,a.Ui)(t.$$.fragment,1),(0,a.ye)(t,n.parentNode,n)):t=null}else o&&t.$set(l)},i(e){i||(t&&(0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){t&&(0,a.et)(t.$$.fragment,e),i=!1},d(i){e[10](null),i&&(0,a.og)(n),t&&(0,a.vp)(t,i)}}}function b(e,t,n){const s=["use","class","component","getElement"];let o=(0,a.q2)(t,s),{$$slots:d={},$$scope:l}=t;const u=(0,r.PD)((0,a.w2)());let c,{use:m=[]}=t,{class:_=""}=t,{component:h=y.Z}=t;const f=(0,i.fw)("SMUI:label:context"),p=(0,i.fw)("SMUI:label:tabindex");return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(7,o=(0,a.q2)(t,s)),"use"in e&&n(0,m=e.use),"class"in e&&n(1,_=e.class),"component"in e&&n(2,h=e.component),"$$scope"in e&&n(11,l=e.$$scope)},[m,_,h,c,u,f,p,o,function(){return c.getElement()},d,function(e){a.Vn[e?"unshift":"push"]((()=>{c=e,n(3,c)}))},l]}class Y extends a.f_{constructor(e){super(),(0,a.S1)(this,e,b,M,a.N8,{use:0,class:1,component:2,getElement:8})}get getElement(){return this.$$.ctx[8]}}const k=Y;const w=L},65843:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var a=n(21379),i=n(70655),r=n(6308),s={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},o={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},d={ANIM_END_LATCH_MS:250},l=function(e){function t(n){var a=e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this;return a.currentCheckState_=o.TRANSITION_STATE_INIT,a.currentAnimationClass_="",a.animEndLatchTimer_=0,a.enableAnimationEndHandler_=!1,a}return(0,i.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(s.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(s.DISABLED):this.adapter.removeClass(s.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout((function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1}),d.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=s.SELECTED;t===o.TRANSITION_STATE_UNCHECKED?this.adapter.removeClass(n):this.adapter.addClass(n),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=o.TRANSITION_STATE_INDETERMINATE,t=o.TRANSITION_STATE_CHECKED,n=o.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var a=o.TRANSITION_STATE_INIT,i=o.TRANSITION_STATE_CHECKED,r=o.TRANSITION_STATE_UNCHECKED,s=t.cssClasses,d=s.ANIM_UNCHECKED_CHECKED,l=s.ANIM_UNCHECKED_INDETERMINATE,u=s.ANIM_CHECKED_UNCHECKED,c=s.ANIM_CHECKED_INDETERMINATE,m=s.ANIM_INDETERMINATE_CHECKED,_=s.ANIM_INDETERMINATE_UNCHECKED;switch(e){case a:return n===r?"":n===i?m:_;case r:return n===i?d:l;case i:return n===r?u:c;default:return n===i?m:_}},t.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(o.ARIA_CHECKED_ATTR,o.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(o.ARIA_CHECKED_ATTR)},t}(r.K);var u=n(90400),c=n(22730),m=n(86551);function _(e){let t,n,i,r,s,o,d,l,u,_,f,p,g,L,y,v,M,b=[{class:i=(0,c.$o)({[e[9]]:!0,"mdc-checkbox__native-control":!0})},{type:"checkbox"},e[20],{disabled:e[1]},{__value:r=e[7]===e[19]?e[6]:e[7]},{"data-indeterminate":s=e[0]!==e[19]&&e[0]?"true":null},e[16],(0,c.bO)(e[26],"input$")],Y={};for(let e=0;e<b.length;e+=1)Y=(0,a.f0)(Y,b[e]);let k=[{class:f=(0,c.$o)({[e[3]]:!0,"mdc-checkbox":!0,"mdc-checkbox--disabled":e[1],"mdc-checkbox--touch":e[5],"mdc-data-table__header-row-checkbox":"data-table"===e[21]&&e[22],"mdc-data-table__row-checkbox":"data-table"===e[21]&&!e[22],...e[14]})},{style:p=Object.entries(e[15]).map(h).concat([e[4]]).join(" ")},(0,c.De)(e[26],["input$"])],w={};for(let e=0;e<k.length;e+=1)w=(0,a.f0)(w,k[e]);return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("input"),d=(0,a.Dh)(),l=(0,a.bG)("div"),l.innerHTML='<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24"><path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path></svg> \n <div class="mdc-checkbox__mixedmark"></div>',u=(0,a.Dh)(),_=(0,a.bG)("div"),(0,a.UF)(n,Y),(0,a.Lj)(l,"class","mdc-checkbox__background"),(0,a.Lj)(_,"class","mdc-checkbox__ripple"),(0,a.UF)(t,w)},m(i,r){(0,a.$T)(i,t,r),(0,a.R3)(t,n),e[36](n),n.checked=e[12],(0,a.R3)(t,d),(0,a.R3)(t,l),(0,a.R3)(t,u),(0,a.R3)(t,_),e[38](t),v||(M=[(0,a.TV)(o=c.ol.call(null,n,e[8])),(0,a.oL)(n,"change",e[37]),(0,a.oL)(n,"blur",e[34]),(0,a.oL)(n,"focus",e[35]),(0,a.TV)(g=c.ol.call(null,t,e[2])),(0,a.TV)(L=e[18].call(null,t)),(0,a.TV)(y=m.Z.call(null,t,{unbounded:!0,addClass:e[23],removeClass:e[24],addStyle:e[25],active:e[17],eventTarget:e[11]})),(0,a.oL)(t,"animationend",e[39])],v=!0)},p(e,d){(0,a.UF)(n,Y=(0,a.Lo)(b,[512&d[0]&&i!==(i=(0,c.$o)({[e[9]]:!0,"mdc-checkbox__native-control":!0}))&&{class:i},{type:"checkbox"},e[20],2&d[0]&&{disabled:e[1]},192&d[0]&&r!==(r=e[7]===e[19]?e[6]:e[7])&&{__value:r},1&d[0]&&s!==(s=e[0]!==e[19]&&e[0]?"true":null)&&{"data-indeterminate":s},65536&d[0]&&e[16],67108864&d[0]&&(0,c.bO)(e[26],"input$")])),o&&(0,a.sB)(o.update)&&256&d[0]&&o.update.call(null,e[8]),4096&d[0]&&(n.checked=e[12]),(0,a.UF)(t,w=(0,a.Lo)(k,[16426&d[0]&&f!==(f=(0,c.$o)({[e[3]]:!0,"mdc-checkbox":!0,"mdc-checkbox--disabled":e[1],"mdc-checkbox--touch":e[5],"mdc-data-table__header-row-checkbox":"data-table"===e[21]&&e[22],"mdc-data-table__row-checkbox":"data-table"===e[21]&&!e[22],...e[14]}))&&{class:f},32784&d[0]&&p!==(p=Object.entries(e[15]).map(h).concat([e[4]]).join(" "))&&{style:p},67108864&d[0]&&(0,c.De)(e[26],["input$"])])),g&&(0,a.sB)(g.update)&&4&d[0]&&g.update.call(null,e[2]),y&&(0,a.sB)(y.update)&&133120&d[0]&&y.update.call(null,{unbounded:!0,addClass:e[23],removeClass:e[24],addStyle:e[25],active:e[17],eventTarget:e[11]})},i:a.ZT,o:a.ZT,d(n){n&&(0,a.og)(t),e[36](null),e[38](null),v=!1,(0,a.j7)(M)}}}const h=([e,t])=>`${e}: ${t};`;function f(e,t,n){const i=["use","class","style","disabled","touch","indeterminate","group","checked","value","valueKey","input$use","input$class","getId","getElement"];let r=(0,a.q2)(t,i);const s=(0,c.PD)((0,a.w2)());let o,d,m,_=()=>{},{use:h=[]}=t,{class:f=""}=t,{style:p=""}=t,{disabled:g=!1}=t,{touch:L=!1}=t,{indeterminate:y=_}=t,{group:v=_}=t,{checked:M=_}=t,{value:b=null}=t,{valueKey:Y=_}=t,{input$use:k=[]}=t,{input$class:w=""}=t,T={},D={},x={},$=!1,S=(0,u.fw)("SMUI:generic:input:props")||{},j=v===_?M!==_&&M:-1!==v.indexOf(b),H=(0,u.fw)("SMUI:checkbox:context"),C=(0,u.fw)("SMUI:data-table:row:header"),E=M,O=v===_?[]:[...v],A=j;function I(e){T[e]||n(14,T[e]=!0,T)}function R(e){e in T&&!T[e]||n(14,T[e]=!1,T)}function P(e,t){x[e]!==t&&n(16,x[e]=t,x)}function F(e){e in x&&null==x[e]||n(16,x[e]=void 0,x)}function N(){return o}(0,u.H3)((()=>{n(10,d=new l({addClass:I,forceLayout:()=>o.offsetWidth,hasNativeControl:()=>!0,isAttachedToDOM:()=>Boolean(o.parentNode),isChecked:()=>j,isIndeterminate:()=>y!==_&&y,removeClass:R,removeNativeControlAttr:F,setNativeControlAttr:P,setNativeControlDisabled:e=>n(1,g=e)}));const e={_smui_checkbox_accessor:!0,get element(){return N()},get checked(){return j},set checked(e){j!==e&&n(12,j=e)},get indeterminate(){return y!==_&&y},set indeterminate(e){n(0,y=e)},activateRipple(){g||n(17,$=!0)},deactivateRipple(){n(17,$=!1)}};return(0,c.WI)(o,"SMUI:generic:input:mount",e),(0,c.WI)(o,"SMUI:checkbox:mount",e),d.init(),()=>{(0,c.WI)(o,"SMUI:generic:input:unmount",e),(0,c.WI)(o,"SMUI:checkbox:unmount",e),d.destroy()}}));return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(26,r=(0,a.q2)(t,i)),"use"in e&&n(2,h=e.use),"class"in e&&n(3,f=e.class),"style"in e&&n(4,p=e.style),"disabled"in e&&n(1,g=e.disabled),"touch"in e&&n(5,L=e.touch),"indeterminate"in e&&n(0,y=e.indeterminate),"group"in e&&n(27,v=e.group),"checked"in e&&n(28,M=e.checked),"value"in e&&n(6,b=e.value),"valueKey"in e&&n(7,Y=e.valueKey),"input$use"in e&&n(8,k=e.input$use),"input$class"in e&&n(9,w=e.input$class)},e.$$.update=()=>{if(402660417&e.$$.dirty[0]|7&e.$$.dirty[1]){let e=!1;if(v!==_)if(A!==j){const t=v.indexOf(b);j&&-1===t?(v.push(b),n(27,v),n(19,_),n(33,A),n(12,j),n(6,b),n(32,O),n(28,M),n(31,E),n(11,m),n(0,y),n(10,d)):j||-1===t||(v.splice(t,1),n(27,v),n(19,_),n(33,A),n(12,j),n(6,b),n(32,O),n(28,M),n(31,E),n(11,m),n(0,y),n(10,d)),e=!0}else{const t=O.indexOf(b),a=v.indexOf(b);t>-1&&-1===a?(n(12,j=!1),e=!0):a>-1&&-1===t&&(n(12,j=!0),e=!0)}M===_?A!==j&&(e=!0):M!==j&&(M===E?n(28,M=j):n(12,j=M),e=!0),m&&(y===_?m.indeterminate&&(n(11,m.indeterminate=!1,m),e=!0):!y&&m.indeterminate?(n(11,m.indeterminate=!1,m),e=!0):y&&!m.indeterminate&&(n(11,m.indeterminate=!0,m),e=!0)),n(31,E=M),n(32,O=v===_?[]:[...v]),n(33,A=j),e&&d&&d.handleChange()}},[y,g,h,f,p,L,b,Y,k,w,d,m,j,o,T,D,x,$,s,_,S,H,C,I,R,function(e,t){D[e]!=t&&(""===t||null==t?(delete D[e],n(15,D)):n(15,D[e]=t,D))},r,v,M,function(){return S&&S.id},N,E,O,A,function(t){a.cK.call(this,e,t)},function(t){a.cK.call(this,e,t)},function(e){a.Vn[e?"unshift":"push"]((()=>{m=e,n(11,m),n(27,v),n(19,_),n(33,A),n(12,j),n(6,b),n(32,O),n(28,M),n(31,E),n(0,y),n(10,d)}))},function(){j=this.checked,n(12,j),n(27,v),n(19,_),n(33,A),n(6,b),n(32,O),n(28,M),n(31,E),n(11,m),n(0,y),n(10,d)},function(e){a.Vn[e?"unshift":"push"]((()=>{o=e,n(13,o)}))},()=>d&&d.handleAnimationEnd()]}class p extends a.f_{constructor(e){super(),(0,a.S1)(this,e,f,_,a.N8,{use:2,class:3,style:4,disabled:1,touch:5,indeterminate:0,group:27,checked:28,value:6,valueKey:7,input$use:8,input$class:9,getId:29,getElement:30},[-1,-1])}get getId(){return this.$$.ctx[29]}get getElement(){return this.$$.ctx[30]}}const g=p},22730:(e,t,n)=>{"use strict";n.d(t,{CH:()=>p,$o:()=>d,WI:()=>g,De:()=>L,PD:()=>o,bO:()=>y,ol:()=>v});var a=n(21379),i=n(90400);const r=/^[a-z]+(?::(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/,s=/^[^$]+(?:\$(?:preventDefault|stopPropagation|passive|nonpassive|capture|once|self))+$/;function o(e){let t,n=[];const i=e.$on;function o(t){(0,a.cK)(e,t)}return e.$on=(a,o)=>{let d=a,l=()=>{};t?l=t(d,o):n.push([d,o]);const u=d.match(r),c=d.match(s),m=u||c;if(u&&console&&console.warn('Event modifiers in SMUI now use "$" instead of ":", so that all events can be bound with modifiers. Please update your event binding: ',d),m){const e=d.split(u?":":"$");d=e[0]}const _=i.call(e,d,o);return(...e)=>(l(),_(...e))},e=>{const i=[],d={};t=(t,n)=>{let l=t,u=n,c=!1;const m=l.match(r),_=l.match(s);if(m||_){const e=l.split(m?":":"$");l=e[0],c=Object.fromEntries(e.slice(1).map((e=>[e,!0]))),c.nonpassive&&(c.passive=!1,delete c.nonpassive),c.preventDefault&&(u=(0,a.AT)(u),delete c.preventDefault),c.stopPropagation&&(u=(0,a.XE)(u),delete c.stopPropagation)}const h=(0,a.oL)(e,l,u,c),f=()=>{h();const e=i.indexOf(f);e>-1&&i.splice(e,1)};return i.push(f),!l in d&&(d[l]=(0,a.oL)(e,l,o)),f};for(let e=0;e<n.length;e++)t(n[e][0],n[e][1]);return{destroy:()=>{for(let e=0;e<i.length;e++)i[e]();for(let e of Object.entries(d))e[1]()}}}}function d(e){return Object.entries(e).filter((([e,t])=>""!==e&&t)).map((([e])=>e)).join(" ")}function l(e){let t;const n=e[10].default,i=(0,a.nu)(n,e,e[12],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||4096&r)&&(0,a.Tj)(i,n,e,e[12],t?r:-1,null,null)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function u(e){let t,n,i;const r=[{use:[e[7],...e[0]]},{class:d({[e[1]]:!0,[e[5]]:!0,...e[4]})},e[6],e[8]];var s=e[2];function o(e){let t={$$slots:{default:[l]},$$scope:{ctx:e}};for(let e=0;e<r.length;e+=1)t=(0,a.f0)(t,r[e]);return{props:t}}return s&&(t=new s(o(e)),e[11](t)),{c(){t&&(0,a.YC)(t.$$.fragment),n=(0,a.cS)()},m(e,r){t&&(0,a.ye)(t,e,r),(0,a.$T)(e,n,r),i=!0},p(e,[i]){const l=499&i?(0,a.Lo)(r,[129&i&&{use:[e[7],...e[0]]},50&i&&{class:d({[e[1]]:!0,[e[5]]:!0,...e[4]})},64&i&&(0,a.gC)(e[6]),256&i&&(0,a.gC)(e[8])]):{};if(4096&i&&(l.$$scope={dirty:i,ctx:e}),s!==(s=e[2])){if(t){(0,a.dv)();const e=t;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}s?(t=new s(o(e)),e[11](t),(0,a.YC)(t.$$.fragment),(0,a.Ui)(t.$$.fragment,1),(0,a.ye)(t,n.parentNode,n)):t=null}else s&&t.$set(l)},i(e){i||(t&&(0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){t&&(0,a.et)(t.$$.fragment,e),i=!1},d(i){e[11](null),i&&(0,a.og)(n),t&&(0,a.vp)(t,i)}}}const c={component:null,class:"",classMap:{},contexts:{},props:{}};function m(e,t,n){const r=["use","class","component","getElement"];let s,d=(0,a.q2)(t,r),{$$slots:l={},$$scope:u}=t,{use:m=[]}=t,{class:_=""}=t;const h=c.class,f={},p=[],g=c.contexts,L=c.props;let{component:y=c.component}=t;Object.entries(c.classMap).forEach((([e,t])=>{const a=(0,i.fw)(t);a&&"subscribe"in a&&p.push(a.subscribe((t=>{n(4,f[e]=t,f)})))}));const v=o((0,a.w2)());for(let e in g)g.hasOwnProperty(e)&&(0,i.v)(e,g[e]);return(0,i.ev)((()=>{for(const e of p)e()})),e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(8,d=(0,a.q2)(t,r)),"use"in e&&n(0,m=e.use),"class"in e&&n(1,_=e.class),"component"in e&&n(2,y=e.component),"$$scope"in e&&n(12,u=e.$$scope)},[m,_,y,s,f,h,L,v,d,function(){return s.getElement()},l,function(e){a.Vn[e?"unshift":"push"]((()=>{s=e,n(3,s)}))},u]}class _ extends a.f_{constructor(e){super(),(0,a.S1)(this,e,m,u,a.N8,{use:0,class:1,component:2,getElement:9})}get getElement(){return this.$$.ctx[9]}}const h=_,f={...c};function p(e){function t(...t){return Object.assign(c,f,e),new h(...t)}return t.prototype=h,h.$$render&&(t.$$render=(...t)=>Object.assign(c,f,e)&&h.$$render(...t)),h.render&&(t.render=(...t)=>Object.assign(c,f,e)&&h.render(...t)),t}function g(e,t,n={},a={bubbles:!0}){if("undefined"!=typeof Event&&e){const i=new Event(t,a);i.detail=n;return("getElement"in e?e.getElement():e).dispatchEvent(i),i}}function L(e,t){let n=Object.getOwnPropertyNames(e);const a={};for(let i=0;i<n.length;i++){const r=n[i],s=r.indexOf("$");-1!==s&&-1!==t.indexOf(r.substring(0,s+1))||-1===t.indexOf(r)&&(a[r]=e[r])}return a}function y(e,t){let n=Object.getOwnPropertyNames(e);const a={};for(let i=0;i<n.length;i++){const r=n[i];r.substring(0,t.length)===t&&(a[r.substring(t.length)]=e[r])}return a}function v(e,t){let n=[];if(t)for(let a=0;a<t.length;a++){const i=Array.isArray(t[a]),r=i?t[a][0]:t[a];i&&t[a].length>1?n.push(r(e,t[a][1])):n.push(r(e))}return{update(e){if((e&&e.length||0)!=n.length)throw new Error("You must not change the length of an actions array.");if(e)for(let t=0;t<e.length;t++)if(n[t]&&"update"in n[t]){Array.isArray(e[t])&&e[t].length>1?n[t].update(e[t][1]):n[t].update()}},destroy(){for(let e=0;e<n.length;e++)n[e]&&"destroy"in n[e]&&n[e].destroy()}}}},42160:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var a=n(21379),i=n(70655),r=n(6308),s={ROOT:"mdc-form-field"},o={LABEL_SELECTOR:".mdc-form-field > label"},d=function(e){function t(n){var a=e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this;return a.click=function(){a.handleClick()},a}return(0,i.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){e.adapter.deactivateInputRipple()}))},t}(r.K);var l=n(90400),u=n(22730);const c=e=>({}),m=e=>({});function _(e){let t,n,i,r,s,o,d,l,_,h;const f=e[13].default,p=(0,a.nu)(f,e,e[12],null),g=e[13].label,L=(0,a.nu)(g,e,e[12],m);let y=[{for:e[4]},(0,u.bO)(e[10],"label$")],v={};for(let e=0;e<y.length;e+=1)v=(0,a.f0)(v,y[e]);let M=[{class:s=(0,u.$o)({[e[1]]:!0,"mdc-form-field":!0,"mdc-form-field--align-end":"end"===e[2],"mdc-form-field--nowrap":e[3]})},(0,u.De)(e[10],["label$"])],b={};for(let e=0;e<M.length;e+=1)b=(0,a.f0)(b,M[e]);return{c(){t=(0,a.bG)("div"),p&&p.c(),n=(0,a.Dh)(),i=(0,a.bG)("label"),L&&L.c(),(0,a.UF)(i,v),(0,a.UF)(t,b)},m(s,c){(0,a.$T)(s,t,c),p&&p.m(t,null),(0,a.R3)(t,n),(0,a.R3)(t,i),L&&L.m(i,null),e[14](i),e[15](t),l=!0,_||(h=[(0,a.TV)(r=u.ol.call(null,i,e[5])),(0,a.TV)(o=u.ol.call(null,t,e[0])),(0,a.TV)(d=e[9].call(null,t)),(0,a.oL)(t,"SMUI:generic:input:mount",e[16]),(0,a.oL)(t,"SMUI:generic:input:unmount",e[17])],_=!0)},p(e,[n]){p&&p.p&&(!l||4096&n)&&(0,a.Tj)(p,f,e,e[12],l?n:-1,null,null),L&&L.p&&(!l||4096&n)&&(0,a.Tj)(L,g,e,e[12],l?n:-1,c,m),(0,a.UF)(i,v=(0,a.Lo)(y,[(!l||16&n)&&{for:e[4]},1024&n&&(0,u.bO)(e[10],"label$")])),r&&(0,a.sB)(r.update)&&32&n&&r.update.call(null,e[5]),(0,a.UF)(t,b=(0,a.Lo)(M,[(!l||14&n&&s!==(s=(0,u.$o)({[e[1]]:!0,"mdc-form-field":!0,"mdc-form-field--align-end":"end"===e[2],"mdc-form-field--nowrap":e[3]})))&&{class:s},1024&n&&(0,u.De)(e[10],["label$"])])),o&&(0,a.sB)(o.update)&&1&n&&o.update.call(null,e[0])},i(e){l||((0,a.Ui)(p,e),(0,a.Ui)(L,e),l=!0)},o(e){(0,a.et)(p,e),(0,a.et)(L,e),l=!1},d(n){n&&(0,a.og)(t),p&&p.d(n),L&&L.d(n),e[14](null),e[15](null),_=!1,(0,a.j7)(h)}}}let h=0;function f(e,t,n){const i=["use","class","align","noWrap","inputId","label$use","getElement"];let r=(0,a.q2)(t,i),{$$slots:s={},$$scope:o}=t;const c=(0,u.PD)((0,a.w2)());let m,_,f,p,{use:g=[]}=t,{class:L=""}=t,{align:y="start"}=t,{noWrap:v=!1}=t,{inputId:M="SMUI-form-field-"+h++}=t,{label$use:b=[]}=t;(0,l.v)("SMUI:generic:input:props",{id:M}),(0,l.H3)((()=>(_=new d({activateInputRipple:()=>{p&&p.activateRipple()},deactivateInputRipple:()=>{p&&p.deactivateRipple()},deregisterInteractionHandler:(e,t)=>{f.removeEventListener(e,t)},registerInteractionHandler:(e,t)=>{f.addEventListener(e,t)}}),_.init(),()=>{_.destroy()})));return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(10,r=(0,a.q2)(t,i)),"use"in e&&n(0,g=e.use),"class"in e&&n(1,L=e.class),"align"in e&&n(2,y=e.align),"noWrap"in e&&n(3,v=e.noWrap),"inputId"in e&&n(4,M=e.inputId),"label$use"in e&&n(5,b=e.label$use),"$$scope"in e&&n(12,o=e.$$scope)},[g,L,y,v,M,b,m,f,p,c,r,function(){return m},o,s,function(e){a.Vn[e?"unshift":"push"]((()=>{f=e,n(7,f)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{m=e,n(6,m)}))},e=>n(8,p=e.detail),()=>n(8,p=void 0)]}class p extends a.f_{constructor(e){super(),(0,a.S1)(this,e,f,_,a.N8,{use:0,class:1,align:2,noWrap:3,inputId:4,label$use:5,getElement:11})}get getElement(){return this.$$.ctx[11]}}const g=p},86551:(e,t,n)=>{"use strict";n.d(t,{Z:()=>L});var a,i=n(70655),r=n(6308),s={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},o={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},d={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};var l=["touchstart","pointerdown","mousedown","keydown"],u=["touchend","pointerup","mouseup","contextmenu"],c=[],m=function(e){function t(n){var a=e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this;return a.activationAnimationHasEnded_=!1,a.activationTimer_=0,a.fgDeactivationRemovalTimer_=0,a.fgScale_="0",a.frame_={width:0,height:0},a.initialSize_=0,a.layoutFrame_=0,a.maxRadius_=0,a.unboundedCoords_={left:0,top:0},a.activationState_=a.defaultActivationState_(),a.activationTimerCallback_=function(){a.activationAnimationHasEnded_=!0,a.runDeactivationUXLogicIfReady_()},a.activateHandler_=function(e){return a.activate_(e)},a.deactivateHandler_=function(){return a.deactivate_()},a.focusHandler_=function(){return a.handleFocus()},a.blurHandler_=function(){return a.handleBlur()},a.resizeHandler_=function(){return a.layout()},a}return(0,i.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var a=t.cssClasses,i=a.ROOT,r=a.UNBOUNDED;requestAnimationFrame((function(){e.adapter.addClass(i),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal_())}))}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,a=n.ROOT,i=n.UNBOUNDED;requestAnimationFrame((function(){e.adapter.removeClass(a),e.adapter.removeClass(i),e.removeCssVars_()}))}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame((function(){e.layoutInternal_(),e.layoutFrame_=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame((function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame((function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(l.forEach((function(e){t.adapter.registerInteractionHandler(e,t.activateHandler_)})),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):u.forEach((function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)}))},t.prototype.deregisterRootHandlers_=function(){var e=this;l.forEach((function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)})),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),u.forEach((function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)}))},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)}))},t.prototype.activate_=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var a=this.previousActivationEvent_;if(!(a&&void 0!==e&&a.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&c.length>0&&c.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState_():(void 0!==e&&(c.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame((function(){c=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})))}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,a=n.VAR_FG_TRANSLATE_START,i=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,s=r.FG_DEACTIVATION,o=r.FG_ACTIVATION,d=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var l="",u="";if(!this.adapter.isUnbounded()){var c=this.getFgTranslationCoordinates_(),m=c.startPoint,_=c.endPoint;l=m.x+"px, "+m.y+"px",u=_.x+"px, "+_.y+"px"}this.adapter.updateCssVariable(a,l),this.adapter.updateCssVariable(i,u),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(o),this.activationTimer_=setTimeout((function(){return e.activationTimerCallback_()}),d)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var a,i,r=t.x,s=t.y,o=r+n.left,d=s+n.top;if("touchstart"===e.type){var l=e;a=l.changedTouches[0].pageX-o,i=l.changedTouches[0].pageY-d}else{var u=e;a=u.pageX-o,i=u.pageY-d}return{x:a,y:i}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,a=this.activationState_,i=a.hasDeactivationUXRun,r=a.isActivated;(i||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout((function(){e.adapter.removeClass(n)}),d.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout((function(){return e.previousActivationEvent_=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=(0,i.pi)({},t);t.isProgrammatic?(requestAnimationFrame((function(){return e.animateDeactivation_(n)})),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame((function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()})))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){var e=this;this.frame_=this.adapter.computeBoundingRect();var n=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?n:Math.sqrt(Math.pow(e.frame_.width,2)+Math.pow(e.frame_.height,2))+t.numbers.PADDING;var a=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&a%2!=0?this.initialSize_=a-1:this.initialSize_=a,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,a=e.VAR_LEFT,i=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(r,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(a,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(i,this.unboundedCoords_.top+"px"))},t}(r.K);var _=n(79397),h=n(42851),f=n(90400);const{applyPassive:p}=_,{matches:g}=h;const L=function(e,{ripple:t=!0,surface:n=!1,unbounded:i=!1,disabled:r=!1,color:s=null,active:o=null,eventTarget:d=null,activeTarget:l=null,addClass:u=(t=>e.classList.add(t)),removeClass:c=(t=>e.classList.remove(t)),addStyle:_=((t,n)=>e.style.setProperty(t,n)),initPromise:h=Promise.resolve()}={}){let L,y,v=(0,f.fw)("SMUI:addLayoutListener"),M=o,b=d,Y=l;function k(){n&&(u("mdc-ripple-surface"),"primary"===s?(u("smui-ripple-surface--primary"),c("smui-ripple-surface--secondary")):"secondary"===s?(c("smui-ripple-surface--primary"),u("smui-ripple-surface--secondary")):(c("smui-ripple-surface--primary"),c("smui-ripple-surface--secondary"))),L&&M!==o&&(M=o,o?L.activate():!1===o&&L.deactivate()),t&&!L?(L=new m({addClass:u,browserSupportsCssVars:()=>function(e,t){void 0===t&&(t=!1);var n,i=e.CSS;if("boolean"==typeof a&&!t)return a;if(!i||"function"!=typeof i.supports)return!1;var r=i.supports("--css-vars","yes"),s=i.supports("(--css-vars: yes)")&&i.supports("color","#00000000");return n=r||s,t||(a=n),n}(window),computeBoundingRect:()=>e.getBoundingClientRect(),containsEventTarget:t=>e.contains(t),deregisterDocumentInteractionHandler:(e,t)=>document.documentElement.removeEventListener(e,t,p()),deregisterInteractionHandler:(t,n)=>(d||e).removeEventListener(t,n,p()),deregisterResizeHandler:e=>window.removeEventListener("resize",e),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset}),isSurfaceActive:()=>null==o?g(l||e,":active"):o,isSurfaceDisabled:()=>!!r,isUnbounded:()=>!!i,registerDocumentInteractionHandler:(e,t)=>document.documentElement.addEventListener(e,t,p()),registerInteractionHandler:(t,n)=>(d||e).addEventListener(t,n,p()),registerResizeHandler:e=>window.addEventListener("resize",e),removeClass:c,updateCssVariable:_}),h.then((()=>{L.init(),L.setUnbounded(i)}))):L&&!t&&h.then((()=>{L.destroy(),L=null})),!L||b===d&&Y===l||(b=d,Y=l,L.destroy(),requestAnimationFrame((()=>{L&&(L.init(),L.setUnbounded(i))}))),!t&&i&&u("mdc-ripple-upgraded--unbounded")}return k(),v&&(y=v((function(){L&&L.layout()}))),{update(a){({ripple:t,surface:n,unbounded:i,disabled:r,color:s,active:o,eventTarget:d,activeTarget:l,addClass:u,removeClass:c,addStyle:_,initPromise:h}={ripple:!0,surface:!1,unbounded:!1,disabled:!1,color:null,active:null,eventTarget:null,activeTarget:null,addClass:t=>e.classList.add(t),removeClass:t=>e.classList.remove(t),addStyle:(t,n)=>e.style.setProperty(t,n),initPromise:Promise.resolve(),...a}),k()},destroy(){L&&(L.destroy(),L=null,c("mdc-ripple-surface"),c("smui-ripple-surface--primary"),c("smui-ripple-surface--secondary")),y&&y()}}}},34236:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>ot});var a=n(21379),i=n(70655),r=n(6308),s={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},o={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},d={LABEL_SCALE:.75},l=["pattern","min","max","required","step","minlength","maxlength"],u=["color","date","datetime-local","month","range","time","week"],c=["mousedown","touchstart"],m=["click","keydown"],_=function(e){function t(n,a){void 0===a&&(a={});var r=e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this;return r.isFocused_=!1,r.receivedUserInput_=!1,r.isValid_=!0,r.useNativeValidation_=!0,r.validateOnValueChange_=!0,r.helperText_=a.helperText,r.characterCounter_=a.characterCounter,r.leadingIcon_=a.leadingIcon,r.trailingIcon_=a.trailingIcon,r.inputFocusHandler_=function(){return r.activateFocus()},r.inputBlurHandler_=function(){return r.deactivateFocus()},r.inputInputHandler_=function(){return r.handleInput()},r.setPointerXOffset_=function(e){return r.setTransformOrigin(e)},r.textFieldInteractionHandler_=function(){return r.handleTextFieldInteraction()},r.validationAttributeChangeHandler_=function(e){return r.handleValidationAttributeChange(e)},r}return(0,i.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return u.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&!!this.getValue()},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver((function(){}))},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var e=this;this.adapter.hasLabel()&&this.getNativeInput_().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler_():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating_(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler_),c.forEach((function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)})),m.forEach((function(t){e.adapter.registerTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)})),this.validationObserver_=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},t.prototype.destroy=function(){var e=this;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler_),c.forEach((function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)})),m.forEach((function(t){e.adapter.deregisterTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)})),this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput_=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some((function(e){return l.indexOf(e)>-1&&(t.styleValidity_(!0),t.adapter.setLabelRequired(t.getNativeInput_().required),!0)})),e.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*d.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText_||!this.helperText_.isPersistent()&&this.helperText_.isValidation()&&this.isValid_||this.helperText_.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!this.isDisabled()&&!this.adapter.hasOutline()){var t=e.touches,n=t?t[0]:e,a=n.target.getBoundingClientRect(),i=n.clientX-a.left;this.adapter.setLineRippleTransformOrigin(i)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity_(e),this.styleFocused_(this.isFocused_),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},t.prototype.getValue=function(){return this.getNativeInput_().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput_().value=e),this.setCharacterCounter_(e.length),this.validateOnValueChange_){var t=this.isValid();this.styleValidity_(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.validateOnValueChange_&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},t.prototype.setValid=function(e){this.isValid_=e,this.styleValidity_(e);var t=!e&&!this.isFocused_&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange_=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange_},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation_=e},t.prototype.isDisabled=function(){return this.getNativeInput_().disabled},t.prototype.setDisabled=function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)},t.prototype.setHelperTextContent=function(e){this.helperText_&&this.helperText_.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon_&&this.leadingIcon_.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon_&&this.trailingIcon_.setContent(e)},t.prototype.setCharacterCounter_=function(e){if(this.characterCounter_){var t=this.getNativeInput_().maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(e,t)}},t.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},t.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},t.prototype.styleValidity_=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText_){if(this.helperText_.setValidity(e),!this.helperText_.isValidation())return;var a=this.helperText_.isVisible(),i=this.helperText_.getId();a&&i?this.adapter.setInputAttr(s.ARIA_DESCRIBEDBY,i):this.adapter.removeInputAttr(s.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused_=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled_=function(e){var n=t.cssClasses,a=n.DISABLED,i=n.INVALID;e?(this.adapter.addClass(a),this.adapter.removeClass(i)):this.adapter.removeClass(a),this.leadingIcon_&&this.leadingIcon_.setDisabled(e),this.trailingIcon_&&this.trailingIcon_.setDisabled(e)},t.prototype.styleFloating_=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput_=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(r.K);var h=n(79397),f=n(90400),p=n(22730),g=n(15120);function L(e){let t;const n=e[4].default,i=(0,a.nu)(n,e,e[3],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,[r]){i&&i.p&&(!t||8&r)&&(0,a.Tj)(i,n,e,e[3],t?r:-1,null,null)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function y(e,t,n){let i,{$$slots:r={},$$scope:s}=t,{key:o}=t,{value:d}=t;const l=(0,g.fZ)(d);return(0,a.FI)(e,l,(e=>n(5,i=e))),(0,f.v)(o,l),(0,f.ev)((()=>{l.set(void 0)})),e.$$set=e=>{"key"in e&&n(1,o=e.key),"value"in e&&n(2,d=e.value),"$$scope"in e&&n(3,s=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&(0,a.fx)(l,i=d,i)},[l,o,d,s,r]}class v extends a.f_{constructor(e){super(),(0,a.S1)(this,e,y,L,a.N8,{key:1,value:2})}}const M=v;var b=n(86551),Y={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},k=function(e){function t(n){var a=e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this;return a.shakeAnimationEndHandler_=function(){return a.handleShakeAnimationEnd_()},a}return(0,i.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return Y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,a=n.LABEL_FLOAT_ABOVE,i=n.LABEL_SHAKE;e?this.adapter.addClass(a):(this.adapter.removeClass(a),this.adapter.removeClass(i))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(r.K);function w(e){let t,n,i,r,s,o,d,l,u;const c=e[22].default,m=(0,a.nu)(c,e,e[21],null);let _=[{class:n=(0,p.$o)({[e[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":e[0],"mdc-floating-label--required":e[1],...e[8]})},{style:i=Object.entries(e[9]).map($).concat([e[4]]).join(" ")},{for:r=e[5]||(e[11]?e[11].id:null)},e[12]],h={};for(let e=0;e<_.length;e+=1)h=(0,a.f0)(h,_[e]);return{c(){t=(0,a.bG)("label"),m&&m.c(),(0,a.UF)(t,h)},m(n,i){(0,a.$T)(n,t,i),m&&m.m(t,null),e[24](t),d=!0,l||(u=[(0,a.TV)(s=p.ol.call(null,t,e[2])),(0,a.TV)(o=e[10].call(null,t))],l=!0)},p(e,o){m&&m.p&&(!d||2097152&o)&&(0,a.Tj)(m,c,e,e[21],d?o:-1,null,null),(0,a.UF)(t,h=(0,a.Lo)(_,[(!d||267&o&&n!==(n=(0,p.$o)({[e[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":e[0],"mdc-floating-label--required":e[1],...e[8]})))&&{class:n},(!d||528&o&&i!==(i=Object.entries(e[9]).map($).concat([e[4]]).join(" ")))&&{style:i},(!d||32&o&&r!==(r=e[5]||(e[11]?e[11].id:null)))&&{for:r},4096&o&&e[12]])),s&&(0,a.sB)(s.update)&&4&o&&s.update.call(null,e[2])},i(e){d||((0,a.Ui)(m,e),d=!0)},o(e){(0,a.et)(m,e),d=!1},d(n){n&&(0,a.og)(t),m&&m.d(n),e[24](null),l=!1,(0,a.j7)(u)}}}function T(e){let t,n,i,r,s,o,d,l;const u=e[22].default,c=(0,a.nu)(u,e,e[21],null);let m=[{class:n=(0,p.$o)({[e[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":e[0],"mdc-floating-label--required":e[1],...e[8]})},{style:i=Object.entries(e[9]).map(x).concat([e[4]]).join(" ")},e[12]],_={};for(let e=0;e<m.length;e+=1)_=(0,a.f0)(_,m[e]);return{c(){t=(0,a.bG)("span"),c&&c.c(),(0,a.UF)(t,_)},m(n,i){(0,a.$T)(n,t,i),c&&c.m(t,null),e[23](t),o=!0,d||(l=[(0,a.TV)(r=p.ol.call(null,t,e[2])),(0,a.TV)(s=e[10].call(null,t))],d=!0)},p(e,s){c&&c.p&&(!o||2097152&s)&&(0,a.Tj)(c,u,e,e[21],o?s:-1,null,null),(0,a.UF)(t,_=(0,a.Lo)(m,[(!o||267&s&&n!==(n=(0,p.$o)({[e[3]]:!0,"mdc-floating-label":!0,"mdc-floating-label--float-above":e[0],"mdc-floating-label--required":e[1],...e[8]})))&&{class:n},(!o||528&s&&i!==(i=Object.entries(e[9]).map(x).concat([e[4]]).join(" ")))&&{style:i},4096&s&&e[12]])),r&&(0,a.sB)(r.update)&&4&s&&r.update.call(null,e[2])},i(e){o||((0,a.Ui)(c,e),o=!0)},o(e){(0,a.et)(c,e),o=!1},d(n){n&&(0,a.og)(t),c&&c.d(n),e[23](null),d=!1,(0,a.j7)(l)}}}function D(e){let t,n,i,r;const s=[T,w],o=[];function d(e,t){return e[6]?0:1}return t=d(e),n=o[t]=s[t](e),{c(){n.c(),i=(0,a.cS)()},m(e,n){o[t].m(e,n),(0,a.$T)(e,i,n),r=!0},p(e,[r]){let l=t;t=d(e),t===l?o[t].p(e,r):((0,a.dv)(),(0,a.et)(o[l],1,1,(()=>{o[l]=null})),(0,a.gb)(),n=o[t],n?n.p(e,r):(n=o[t]=s[t](e),n.c()),(0,a.Ui)(n,1),n.m(i.parentNode,i))},i(e){r||((0,a.Ui)(n),r=!0)},o(e){(0,a.et)(n),r=!1},d(e){o[t].d(e),e&&(0,a.og)(i)}}}const x=([e,t])=>`${e}: ${t};`,$=([e,t])=>`${e}: ${t};`;function S(e,t,n){const i=["use","class","style","for","floatAbove","required","wrapped","shake","float","setRequired","getWidth","getElement"];let r=(0,a.q2)(t,i),{$$slots:s={},$$scope:o}=t;const d=(0,p.PD)((0,a.w2)());let l,u,{use:c=[]}=t,{class:m=""}=t,{style:_=""}=t,{for:h=null}=t,{floatAbove:g=!1}=t,{required:L=!1}=t,{wrapped:y=!1}=t,v={},M={},b=(0,f.fw)("SMUI:generic:input:props")||{},Y=g,w=L;function T(e){v[e]||n(8,v[e]=!0,v)}function D(e){e in v&&!v[e]||n(8,v[e]=!1,v)}function x(e,t){M[e]!=t&&(""===t||null==t?(delete M[e],n(9,M)):n(9,M[e]=t,M))}function $(e){e in M&&(delete M[e],n(9,M))}function S(){return l}return(0,f.H3)((()=>{n(18,u=new k({addClass:T,removeClass:D,getWidth:()=>{const e=S(),t=e.cloneNode(!0);e.parentNode.appendChild(t),t.classList.add("smui-floating-label--remove-transition"),t.classList.add("smui-floating-label--force-size"),t.classList.remove("mdc-floating-label--float-above");const n=t.scrollWidth;return e.parentNode.removeChild(t),n},registerInteractionHandler:(e,t)=>S().addEventListener(e,t),deregisterInteractionHandler:(e,t)=>S().removeEventListener(e,t)}));const e={get element(){return S()},addStyle:x,removeStyle:$};return(0,p.WI)(l,"SMUI:floating-label:mount",e),u.init(),()=>{(0,p.WI)(l,"SMUI:floating-label:unmount",e),u.destroy()}})),e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(12,r=(0,a.q2)(t,i)),"use"in e&&n(2,c=e.use),"class"in e&&n(3,m=e.class),"style"in e&&n(4,_=e.style),"for"in e&&n(5,h=e.for),"floatAbove"in e&&n(0,g=e.floatAbove),"required"in e&&n(1,L=e.required),"wrapped"in e&&n(6,y=e.wrapped),"$$scope"in e&&n(21,o=e.$$scope)},e.$$.update=()=>{786433&e.$$.dirty&&Y!==g&&(n(19,Y=g),u.float(g)),1310722&e.$$.dirty&&w!==L&&(n(20,w=L),u.setRequired(L))},[g,L,c,m,_,h,y,l,v,M,d,b,r,function(e){u.shake(e)},function(e){n(0,g=e)},function(e){n(1,L=e)},function(){return u.getWidth()},S,u,Y,w,o,s,function(e){a.Vn[e?"unshift":"push"]((()=>{l=e,n(7,l)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{l=e,n(7,l)}))}]}class j extends a.f_{constructor(e){super(),(0,a.S1)(this,e,S,D,a.N8,{use:2,class:3,style:4,for:5,floatAbove:0,required:1,wrapped:6,shake:13,float:14,setRequired:15,getWidth:16,getElement:17})}get shake(){return this.$$.ctx[13]}get float(){return this.$$.ctx[14]}get setRequired(){return this.$$.ctx[15]}get getWidth(){return this.$$.ctx[16]}get getElement(){return this.$$.ctx[17]}}const H=j;var C={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},E=function(e){function t(n){var a=e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this;return a.transitionEndHandler_=function(e){return a.handleTransitionEnd(e)},a}return(0,i.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return C},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.activate=function(){this.adapter.removeClass(C.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(C.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(C.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(C.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(C.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(C.LINE_RIPPLE_DEACTIVATING))},t}(r.K);function O(e){let t,n,i,r,s,o,d,l=[{class:n=(0,p.$o)({[e[1]]:!0,"mdc-line-ripple":!0,"mdc-line-ripple--active":e[3],...e[5]})},{style:i=Object.entries(e[6]).map(A).concat([e[2]]).join(" ")},e[8]],u={};for(let e=0;e<l.length;e+=1)u=(0,a.f0)(u,l[e]);return{c(){t=(0,a.bG)("div"),(0,a.UF)(t,u)},m(n,i){(0,a.$T)(n,t,i),e[13](t),o||(d=[(0,a.TV)(r=p.ol.call(null,t,e[0])),(0,a.TV)(s=e[7].call(null,t))],o=!0)},p(e,[s]){(0,a.UF)(t,u=(0,a.Lo)(l,[42&s&&n!==(n=(0,p.$o)({[e[1]]:!0,"mdc-line-ripple":!0,"mdc-line-ripple--active":e[3],...e[5]}))&&{class:n},68&s&&i!==(i=Object.entries(e[6]).map(A).concat([e[2]]).join(" "))&&{style:i},256&s&&e[8]])),r&&(0,a.sB)(r.update)&&1&s&&r.update.call(null,e[0])},i:a.ZT,o:a.ZT,d(n){n&&(0,a.og)(t),e[13](null),o=!1,(0,a.j7)(d)}}}const A=([e,t])=>`${e}: ${t};`;function I(e,t,n){const i=["use","class","style","active","activate","deactivate","setRippleCenter","getElement"];let r=(0,a.q2)(t,i);const s=(0,p.PD)((0,a.w2)());let o,d,{use:l=[]}=t,{class:u=""}=t,{style:c=""}=t,{active:m=!1}=t,_={},h={};function g(e){return e in _?_[e]:M().classList.contains(e)}function L(e){_[e]||n(5,_[e]=!0,_)}function y(e){e in _&&!_[e]||n(5,_[e]=!1,_)}function v(e,t){h[e]!=t&&(""===t||null==t?(delete h[e],n(6,h)):n(6,h[e]=t,h))}function M(){return o}return(0,f.H3)((()=>(d=new E({addClass:L,removeClass:y,hasClass:g,setStyle:v,registerEventHandler:(e,t)=>M().addEventListener(e,t),deregisterEventHandler:(e,t)=>M().removeEventListener(e,t)}),d.init(),()=>{d.destroy()}))),e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(8,r=(0,a.q2)(t,i)),"use"in e&&n(0,l=e.use),"class"in e&&n(1,u=e.class),"style"in e&&n(2,c=e.style),"active"in e&&n(3,m=e.active)},[l,u,c,m,o,_,h,s,r,function(){d.activate()},function(){d.deactivate()},function(e){d.setRippleCenter(e)},M,function(e){a.Vn[e?"unshift":"push"]((()=>{o=e,n(4,o)}))}]}class R extends a.f_{constructor(e){super(),(0,a.S1)(this,e,I,O,a.N8,{use:0,class:1,style:2,active:3,activate:9,deactivate:10,setRippleCenter:11,getElement:12})}get activate(){return this.$$.ctx[9]}get deactivate(){return this.$$.ctx[10]}get setRippleCenter(){return this.$$.ctx[11]}get getElement(){return this.$$.ctx[12]}}const P=R;var F={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},N={NOTCH_ELEMENT_PADDING:8},z={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},U=function(e){function t(n){return e.call(this,(0,i.pi)((0,i.pi)({},t.defaultAdapter),n))||this}return(0,i.ZT)(t,e),Object.defineProperty(t,"strings",{get:function(){return F},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return z},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return N},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=N.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(r.K);function W(e){let t,n,i;const r=e[14].default,s=(0,a.nu)(r,e,e[13],null);return{c(){t=(0,a.bG)("div"),s&&s.c(),(0,a.Lj)(t,"class","mdc-notched-outline__notch"),(0,a.Lj)(t,"style",n=Object.entries(e[7]).map(G).join(" "))},m(e,n){(0,a.$T)(e,t,n),s&&s.m(t,null),i=!0},p(e,o){s&&s.p&&(!i||8192&o)&&(0,a.Tj)(s,r,e,e[13],i?o:-1,null,null),(!i||128&o&&n!==(n=Object.entries(e[7]).map(G).join(" ")))&&(0,a.Lj)(t,"style",n)},i(e){i||((0,a.Ui)(s,e),i=!0)},o(e){(0,a.et)(s,e),i=!1},d(e){e&&(0,a.og)(t),s&&s.d(e)}}}function V(e){let t,n,i,r,s,o,d,l,u,c,m,_=!e[3]&&W(e),h=[{class:o=(0,p.$o)({[e[1]]:!0,"mdc-notched-outline":!0,"mdc-notched-outline--notched":e[2],"mdc-notched-outline--no-label":e[3],...e[6]})},e[9]],f={};for(let e=0;e<h.length;e+=1)f=(0,a.f0)(f,h[e]);return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),i=(0,a.Dh)(),_&&_.c(),r=(0,a.Dh)(),s=(0,a.bG)("div"),(0,a.Lj)(n,"class","mdc-notched-outline__leading"),(0,a.Lj)(s,"class","mdc-notched-outline__trailing"),(0,a.UF)(t,f)},m(o,h){(0,a.$T)(o,t,h),(0,a.R3)(t,n),(0,a.R3)(t,i),_&&_.m(t,null),(0,a.R3)(t,r),(0,a.R3)(t,s),e[15](t),u=!0,c||(m=[(0,a.TV)(d=p.ol.call(null,t,e[0])),(0,a.TV)(l=e[8].call(null,t)),(0,a.oL)(t,"SMUI:floating-label:mount",e[16]),(0,a.oL)(t,"SMUI:floating-label:unmount",e[17])],c=!0)},p(e,[n]){e[3]?_&&((0,a.dv)(),(0,a.et)(_,1,1,(()=>{_=null})),(0,a.gb)()):_?(_.p(e,n),8&n&&(0,a.Ui)(_,1)):(_=W(e),_.c(),(0,a.Ui)(_,1),_.m(t,r)),(0,a.UF)(t,f=(0,a.Lo)(h,[(!u||78&n&&o!==(o=(0,p.$o)({[e[1]]:!0,"mdc-notched-outline":!0,"mdc-notched-outline--notched":e[2],"mdc-notched-outline--no-label":e[3],...e[6]})))&&{class:o},512&n&&e[9]])),d&&(0,a.sB)(d.update)&&1&n&&d.update.call(null,e[0])},i(e){u||((0,a.Ui)(_),u=!0)},o(e){(0,a.et)(_),u=!1},d(n){n&&(0,a.og)(t),_&&_.d(),e[15](null),c=!1,(0,a.j7)(m)}}}const G=([e,t])=>`${e}: ${t};`;function q(e,t,n){const i=["use","class","notched","noLabel","notch","closeNotch","getElement"];let r=(0,a.q2)(t,i),{$$slots:s={},$$scope:o}=t;const d=(0,p.PD)((0,a.w2)());let l,u,c,{use:m=[]}=t,{class:_=""}=t,{notched:h=!1}=t,{noLabel:g=!1}=t,L={},y={};function v(e){L[e]||n(6,L[e]=!0,L)}function M(e){e in L&&!L[e]||n(6,L[e]=!1,L)}(0,f.H3)((()=>(u=new U({addClass:v,removeClass:M,setNotchWidthProperty:e=>{return a=e+"px",void(y[t="width"]!=a&&(""===a||null==a?(delete y[t],n(7,y)):n(7,y[t]=a,y)));var t,a},removeNotchWidthProperty:()=>{var e;(e="width")in y&&(delete y[e],n(7,y))}}),u.init(),()=>{u.destroy()})));return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(9,r=(0,a.q2)(t,i)),"use"in e&&n(0,m=e.use),"class"in e&&n(1,_=e.class),"notched"in e&&n(2,h=e.notched),"noLabel"in e&&n(3,g=e.noLabel),"$$scope"in e&&n(13,o=e.$$scope)},e.$$.update=()=>{16&e.$$.dirty&&(c?(c.addStyle("transition-duration","0s"),v("mdc-notched-outline--upgraded"),requestAnimationFrame((()=>{c.removeStyle("transition-duration")}))):M("mdc-notched-outline--upgraded"))},[m,_,h,g,c,l,L,y,d,r,function(e){u.notch(e)},function(){u.closeNotch()},function(){return l},o,s,function(e){a.Vn[e?"unshift":"push"]((()=>{l=e,n(5,l)}))},e=>n(4,c=e.detail),()=>n(4,c=void 0)]}class B extends a.f_{constructor(e){super(),(0,a.S1)(this,e,q,V,a.N8,{use:0,class:1,notched:2,noLabel:3,notch:10,closeNotch:11,getElement:12})}get notch(){return this.$$.ctx[10]}get closeNotch(){return this.$$.ctx[11]}get getElement(){return this.$$.ctx[12]}}const Z=B;var J=n(26167);const K=(0,p.CH)({class:"mdc-text-field-helper-line",component:J.Z});var X=n(58365);const Q=(0,p.CH)({class:"mdc-text-field__affix mdc-text-field__affix--prefix",component:X.Z}),ee=(0,p.CH)({class:"mdc-text-field__affix mdc-text-field__affix--suffix",component:X.Z});function te(e){let t,n,i,r,s,o,d=[{class:n=(0,p.$o)({[e[1]]:!0,"mdc-text-field__input":!0})},{type:e[2]},{placeholder:e[3]},e[4],e[6],e[10]],l={};for(let e=0;e<d.length;e+=1)l=(0,a.f0)(l,d[e]);return{c(){t=(0,a.bG)("input"),(0,a.UF)(t,l)},m(n,d){(0,a.$T)(n,t,d),e[21](t),s||(o=[(0,a.TV)(i=p.ol.call(null,t,e[0])),(0,a.TV)(r=e[7].call(null,t)),(0,a.oL)(t,"change",e[22]),(0,a.oL)(t,"input",e[23]),(0,a.oL)(t,"change",e[9])],s=!0)},p(e,[r]){(0,a.UF)(t,l=(0,a.Lo)(d,[2&r&&n!==(n=(0,p.$o)({[e[1]]:!0,"mdc-text-field__input":!0}))&&{class:n},4&r&&{type:e[2]},8&r&&{placeholder:e[3]},16&r&&e[4],64&r&&e[6],1024&r&&e[10]])),i&&(0,a.sB)(i.update)&&1&r&&i.update.call(null,e[0])},i:a.ZT,o:a.ZT,d(n){n&&(0,a.og)(t),e[21](null),s=!1,(0,a.j7)(o)}}}function ne(e,t,n){const i=["use","class","type","placeholder","value","files","dirty","invalid","updateInvalid","getAttr","addAttr","removeAttr","focus","getElement"];let r=(0,a.q2)(t,i);const s=(0,p.PD)((0,a.w2)());let o,{use:d=[]}=t,{class:l=""}=t,{type:u="text"}=t,{placeholder:c=" "}=t,{value:m=""}=t,{files:_}=t,{dirty:h=!1}=t,{invalid:g=!1}=t,{updateInvalid:L=!0}=t,y={},v={};function M(e){switch(u){case"number":case"range":n(11,m=function(e){if(""===e){const e=new Number(Number.NaN);return e.length=0,e}return+e}(e.target.value));break;case"file":n(12,_=e.target.files);default:n(11,m=e.target.value)}}function b(){return o}(0,f.H3)((()=>{L&&n(14,g=o.matches(":invalid"))}));return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(10,r=(0,a.q2)(t,i)),"use"in e&&n(0,d=e.use),"class"in e&&n(1,l=e.class),"type"in e&&n(2,u=e.type),"placeholder"in e&&n(3,c=e.placeholder),"value"in e&&n(11,m=e.value),"files"in e&&n(12,_=e.files),"dirty"in e&&n(13,h=e.dirty),"invalid"in e&&n(14,g=e.invalid),"updateInvalid"in e&&n(15,L=e.updateInvalid)},e.$$.update=()=>{2068&e.$$.dirty&&("file"===u?(delete v.value,n(4,v),n(2,u),n(11,m)):n(4,v.value=null==m?"":m,v))},[d,l,u,c,v,o,y,s,M,function(e){n(13,h=!0),L&&n(14,g=o.matches(":invalid"))},r,m,_,h,g,L,function(e){return e in y?y[e]:b().getAttribute(e)},function(e,t){y[e]!==t&&n(6,y[e]=t,y)},function(e){e in y&&null==y[e]||n(6,y[e]=void 0,y)},function(){b().focus()},b,function(e){a.Vn[e?"unshift":"push"]((()=>{o=e,n(5,o)}))},e=>("file"===u||"range"===u)&&M(e),e=>"file"!==u&&M(e)]}class ae extends a.f_{constructor(e){super(),(0,a.S1)(this,e,ne,te,a.N8,{use:0,class:1,type:2,placeholder:3,value:11,files:12,dirty:13,invalid:14,updateInvalid:15,getAttr:16,addAttr:17,removeAttr:18,focus:19,getElement:20})}get getAttr(){return this.$$.ctx[16]}get addAttr(){return this.$$.ctx[17]}get removeAttr(){return this.$$.ctx[18]}get focus(){return this.$$.ctx[19]}get getElement(){return this.$$.ctx[20]}}const ie=ae;function re(e){let t,n,i,r,s,o,d,l=[{class:n=(0,p.$o)({[e[2]]:!0,"mdc-text-field__input":!0})},{style:i=`${e[4]?"":"resize: none; "}${e[3]}`},e[6],e[9]],u={};for(let e=0;e<l.length;e+=1)u=(0,a.f0)(u,l[e]);return{c(){t=(0,a.bG)("textarea"),(0,a.UF)(t,u)},m(n,i){(0,a.$T)(n,t,i),e[18](t),(0,a.Bm)(t,e[0]),o||(d=[(0,a.TV)(r=p.ol.call(null,t,e[1])),(0,a.TV)(s=e[7].call(null,t)),(0,a.oL)(t,"change",e[8]),(0,a.oL)(t,"input",e[19])],o=!0)},p(e,[s]){(0,a.UF)(t,u=(0,a.Lo)(l,[4&s&&n!==(n=(0,p.$o)({[e[2]]:!0,"mdc-text-field__input":!0}))&&{class:n},24&s&&i!==(i=`${e[4]?"":"resize: none; "}${e[3]}`)&&{style:i},64&s&&e[6],512&s&&e[9]])),r&&(0,a.sB)(r.update)&&2&s&&r.update.call(null,e[1]),1&s&&(0,a.Bm)(t,e[0])},i:a.ZT,o:a.ZT,d(n){n&&(0,a.og)(t),e[18](null),o=!1,(0,a.j7)(d)}}}function se(e,t,n){const i=["use","class","style","value","dirty","invalid","updateInvalid","resizable","getAttr","addAttr","removeAttr","focus","getElement"];let r=(0,a.q2)(t,i);const s=(0,p.PD)((0,a.w2)());let o,{use:d=[]}=t,{class:l=""}=t,{style:u=""}=t,{value:c=""}=t,{dirty:m=!1}=t,{invalid:_=!1}=t,{updateInvalid:h=!0}=t,{resizable:g=!0}=t,L={};function y(){return o}return(0,f.H3)((()=>{h&&n(11,_=o.matches(":invalid"))})),e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(9,r=(0,a.q2)(t,i)),"use"in e&&n(1,d=e.use),"class"in e&&n(2,l=e.class),"style"in e&&n(3,u=e.style),"value"in e&&n(0,c=e.value),"dirty"in e&&n(10,m=e.dirty),"invalid"in e&&n(11,_=e.invalid),"updateInvalid"in e&&n(12,h=e.updateInvalid),"resizable"in e&&n(4,g=e.resizable)},[c,d,l,u,g,o,L,s,function(){n(10,m=!0),h&&n(11,_=o.matches(":invalid"))},r,m,_,h,function(e){return e in L?L[e]:y().getAttribute(e)},function(e,t){L[e]!==t&&n(6,L[e]=t,L)},function(e){e in L&&null==L[e]||n(6,L[e]=void 0,L)},function(){y().focus()},y,function(e){a.Vn[e?"unshift":"push"]((()=>{o=e,n(5,o)}))},function(){c=this.value,n(0,c)}]}class oe extends a.f_{constructor(e){super(),(0,a.S1)(this,e,se,re,a.N8,{use:1,class:2,style:3,value:0,dirty:10,invalid:11,updateInvalid:12,resizable:4,getAttr:13,addAttr:14,removeAttr:15,focus:16,getElement:17})}get getAttr(){return this.$$.ctx[13]}get addAttr(){return this.$$.ctx[14]}get removeAttr(){return this.$$.ctx[15]}get focus(){return this.$$.ctx[16]}get getElement(){return this.$$.ctx[17]}}const de=oe,le=e=>({}),ue=e=>({}),ce=e=>({}),me=e=>({}),_e=e=>({}),he=e=>({}),fe=e=>({}),pe=e=>({}),ge=e=>({}),Le=e=>({}),ye=e=>({}),ve=e=>({}),Me=e=>({}),be=e=>({}),Ye=e=>({}),ke=e=>({}),we=e=>({}),Te=e=>({}),De=e=>({}),xe=e=>({}),$e=e=>({}),Se=e=>({}),je=e=>({}),He=e=>({});function Ce(e){let t,n,i,r,s,o,d,l,u,c,m,_,h,f,g;const L=e[50].label,y=(0,a.nu)(L,e,e[89],Le);i=new M({props:{key:"SMUI:textfield:icon:leading",value:!0,$$slots:{default:[Oe]},$$scope:{ctx:e}}});const v=e[50].default,Y=(0,a.nu)(v,e,e[89],null);o=new M({props:{key:"SMUI:textfield:icon:leading",value:!1,$$slots:{default:[Ae]},$$scope:{ctx:e}}});const k=e[50].ripple,w=(0,a.nu)(k,e,e[89],me);let T=[{class:l=(0,p.$o)({[e[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":e[12],"mdc-text-field--textarea":e[14],"mdc-text-field--filled":"filled"===e[15],"mdc-text-field--outlined":"outlined"===e[15],"smui-text-field--standard":"standard"===e[15]&&!e[14],"mdc-text-field--no-label":e[16]||!e[41].label,"mdc-text-field--with-leading-icon":e[41].leadingIcon,"mdc-text-field--with-trailing-icon":e[41].trailingIcon,"mdc-text-field--invalid":e[2]!==e[36]&&e[2],...e[26]})},{style:u=Object.entries(e[27]).map(it).concat([e[10]]).join(" ")},(0,p.De)(e[42],["input$","label$","ripple$","outline$","helperLine$"])],D={};for(let e=0;e<T.length;e+=1)D=(0,a.f0)(D,T[e]);return{c(){t=(0,a.bG)("div"),y&&y.c(),n=(0,a.Dh)(),(0,a.YC)(i.$$.fragment),r=(0,a.Dh)(),Y&&Y.c(),s=(0,a.Dh)(),(0,a.YC)(o.$$.fragment),d=(0,a.Dh)(),w&&w.c(),(0,a.UF)(t,D)},m(l,u){(0,a.$T)(l,t,u),y&&y.m(t,null),(0,a.R3)(t,n),(0,a.ye)(i,t,null),(0,a.R3)(t,r),Y&&Y.m(t,null),(0,a.R3)(t,s),(0,a.ye)(o,t,null),(0,a.R3)(t,d),w&&w.m(t,null),e[79](t),h=!0,f||(g=[(0,a.TV)(c=b.Z.call(null,t,{ripple:e[11],unbounded:!1,addClass:e[38],removeClass:e[39],addStyle:e[40]})),(0,a.TV)(m=p.ol.call(null,t,e[8])),(0,a.TV)(_=e[35].call(null,t)),(0,a.oL)(t,"SMUI:textfield:leading-icon:mount",e[80]),(0,a.oL)(t,"SMUI:textfield:leading-icon:unmount",e[81]),(0,a.oL)(t,"SMUI:textfield:trailing-icon:mount",e[82]),(0,a.oL)(t,"SMUI:textfield:trailing-icon:unmount",e[83])],f=!0)},p(e,n){y&&y.p&&(!h||134217728&n[2])&&(0,a.Tj)(y,L,e,e[89],h?n:[-1,-1,-1,-1],ge,Le);const r={};134217728&n[2]&&(r.$$scope={dirty:n,ctx:e}),i.$set(r),Y&&Y.p&&(!h||134217728&n[2])&&(0,a.Tj)(Y,v,e,e[89],h?n:[-1,-1,-1,-1],null,null);const s={};134217728&n[2]&&(s.$$scope={dirty:n,ctx:e}),o.$set(s),w&&w.p&&(!h||134217728&n[2])&&(0,a.Tj)(w,k,e,e[89],h?n:[-1,-1,-1,-1],ce,me),(0,a.UF)(t,D=(0,a.Lo)(T,[(!h||67228164&n[0]|1024&n[1]&&l!==(l=(0,p.$o)({[e[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":e[12],"mdc-text-field--textarea":e[14],"mdc-text-field--filled":"filled"===e[15],"mdc-text-field--outlined":"outlined"===e[15],"smui-text-field--standard":"standard"===e[15]&&!e[14],"mdc-text-field--no-label":e[16]||!e[41].label,"mdc-text-field--with-leading-icon":e[41].leadingIcon,"mdc-text-field--with-trailing-icon":e[41].trailingIcon,"mdc-text-field--invalid":e[2]!==e[36]&&e[2],...e[26]})))&&{class:l},(!h||134218752&n[0]&&u!==(u=Object.entries(e[27]).map(it).concat([e[10]]).join(" ")))&&{style:u},2048&n[1]&&(0,p.De)(e[42],["input$","label$","ripple$","outline$","helperLine$"])])),c&&(0,a.sB)(c.update)&&2048&n[0]&&c.update.call(null,{ripple:e[11],unbounded:!1,addClass:e[38],removeClass:e[39],addStyle:e[40]}),m&&(0,a.sB)(m.update)&&256&n[0]&&m.update.call(null,e[8])},i(e){h||((0,a.Ui)(y,e),(0,a.Ui)(i.$$.fragment,e),(0,a.Ui)(Y,e),(0,a.Ui)(o.$$.fragment,e),(0,a.Ui)(w,e),h=!0)},o(e){(0,a.et)(y,e),(0,a.et)(i.$$.fragment,e),(0,a.et)(Y,e),(0,a.et)(o.$$.fragment,e),(0,a.et)(w,e),h=!1},d(n){n&&(0,a.og)(t),y&&y.d(n),(0,a.vp)(i),Y&&Y.d(n),(0,a.vp)(o),w&&w.d(n),e[79](null),f=!1,(0,a.j7)(g)}}}function Ee(e){let t,n,i,r,s,o,d,l,u,c,m,_,h,f,g,L,y,v,Y,k,w=!e[14]&&"outlined"!==e[15]&&Ie(e),T=(e[14]||"outlined"===e[15])&&Ne(e);r=new M({props:{key:"SMUI:textfield:icon:leading",value:!0,$$slots:{default:[Ve]},$$scope:{ctx:e}}});const D=e[50].default,x=(0,a.nu)(D,e,e[89],null),$=[qe,Ge],S=[];function j(e,t){return e[14]?0:1}d=j(e),l=S[d]=$[d](e),c=new M({props:{key:"SMUI:textfield:icon:leading",value:!1,$$slots:{default:[Xe]},$$scope:{ctx:e}}});let H=!e[14]&&"outlined"!==e[15]&&e[11]&&Qe(e),C=[{class:_=(0,p.$o)({[e[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":e[12],"mdc-text-field--textarea":e[14],"mdc-text-field--filled":"filled"===e[15],"mdc-text-field--outlined":"outlined"===e[15],"smui-text-field--standard":"standard"===e[15]&&!e[14],"mdc-text-field--no-label":e[16]||null==e[17]&&!e[41].label,"mdc-text-field--label-floating":e[29]||null!=e[0]&&""!==e[0],"mdc-text-field--with-leading-icon":e[22]===e[36]?e[41].leadingIcon:e[22],"mdc-text-field--with-trailing-icon":e[23]===e[36]?e[41].trailingIcon:e[23],"mdc-text-field--with-internal-counter":e[14]&&e[41].internalCounter,"mdc-text-field--invalid":e[2]!==e[36]&&e[2],...e[26]})},{style:h=Object.entries(e[27]).map(at).concat([e[10]]).join(" ")},{for:f=null},(0,p.De)(e[42],["input$","label$","ripple$","outline$","helperLine$"])],E={};for(let e=0;e<C.length;e+=1)E=(0,a.f0)(E,C[e]);return{c(){t=(0,a.bG)("label"),w&&w.c(),n=(0,a.Dh)(),T&&T.c(),i=(0,a.Dh)(),(0,a.YC)(r.$$.fragment),s=(0,a.Dh)(),x&&x.c(),o=(0,a.Dh)(),l.c(),u=(0,a.Dh)(),(0,a.YC)(c.$$.fragment),m=(0,a.Dh)(),H&&H.c(),(0,a.UF)(t,E)},m(l,_){(0,a.$T)(l,t,_),w&&w.m(t,null),(0,a.R3)(t,n),T&&T.m(t,null),(0,a.R3)(t,i),(0,a.ye)(r,t,null),(0,a.R3)(t,s),x&&x.m(t,null),(0,a.R3)(t,o),S[d].m(t,null),(0,a.R3)(t,u),(0,a.ye)(c,t,null),(0,a.R3)(t,m),H&&H.m(t,null),e[72](t),v=!0,Y||(k=[(0,a.TV)(g=b.Z.call(null,t,{ripple:!e[14]&&"filled"===e[15],unbounded:!1,addClass:e[38],removeClass:e[39],addStyle:e[40],eventTarget:e[34],activeTarget:e[34],initPromise:e[37]})),(0,a.TV)(L=p.ol.call(null,t,e[8])),(0,a.TV)(y=e[35].call(null,t)),(0,a.oL)(t,"SMUI:textfield:leading-icon:mount",e[73]),(0,a.oL)(t,"SMUI:textfield:leading-icon:unmount",e[74]),(0,a.oL)(t,"SMUI:textfield:trailing-icon:mount",e[75]),(0,a.oL)(t,"SMUI:textfield:trailing-icon:unmount",e[76]),(0,a.oL)(t,"SMUI:textfield:character-counter:mount",e[77]),(0,a.oL)(t,"SMUI:textfield:character-counter:unmount",e[78])],Y=!0)},p(e,s){e[14]||"outlined"===e[15]?w&&((0,a.dv)(),(0,a.et)(w,1,1,(()=>{w=null})),(0,a.gb)()):w?(w.p(e,s),49152&s[0]&&(0,a.Ui)(w,1)):(w=Ie(e),w.c(),(0,a.Ui)(w,1),w.m(t,n)),e[14]||"outlined"===e[15]?T?(T.p(e,s),49152&s[0]&&(0,a.Ui)(T,1)):(T=Ne(e),T.c(),(0,a.Ui)(T,1),T.m(t,i)):T&&((0,a.dv)(),(0,a.et)(T,1,1,(()=>{T=null})),(0,a.gb)());const o={};134217728&s[2]&&(o.$$scope={dirty:s,ctx:e}),r.$set(o),x&&x.p&&(!v||134217728&s[2])&&(0,a.Tj)(x,D,e,e[89],v?s:[-1,-1,-1,-1],null,null);let m=d;d=j(e),d===m?S[d].p(e,s):((0,a.dv)(),(0,a.et)(S[m],1,1,(()=>{S[m]=null})),(0,a.gb)(),l=S[d],l?l.p(e,s):(l=S[d]=$[d](e),l.c()),(0,a.Ui)(l,1),l.m(t,u));const f={};134217728&s[2]&&(f.$$scope={dirty:s,ctx:e}),c.$set(f),!e[14]&&"outlined"!==e[15]&&e[11]?H?(H.p(e,s),51200&s[0]&&(0,a.Ui)(H,1)):(H=Qe(e),H.c(),(0,a.Ui)(H,1),H.m(t,null)):H&&((0,a.dv)(),(0,a.et)(H,1,1,(()=>{H=null})),(0,a.gb)()),(0,a.UF)(t,E=(0,a.Lo)(C,[(!v||616813061&s[0]|1024&s[1]&&_!==(_=(0,p.$o)({[e[9]]:!0,"mdc-text-field":!0,"mdc-text-field--disabled":e[12],"mdc-text-field--textarea":e[14],"mdc-text-field--filled":"filled"===e[15],"mdc-text-field--outlined":"outlined"===e[15],"smui-text-field--standard":"standard"===e[15]&&!e[14],"mdc-text-field--no-label":e[16]||null==e[17]&&!e[41].label,"mdc-text-field--label-floating":e[29]||null!=e[0]&&""!==e[0],"mdc-text-field--with-leading-icon":e[22]===e[36]?e[41].leadingIcon:e[22],"mdc-text-field--with-trailing-icon":e[23]===e[36]?e[41].trailingIcon:e[23],"mdc-text-field--with-internal-counter":e[14]&&e[41].internalCounter,"mdc-text-field--invalid":e[2]!==e[36]&&e[2],...e[26]})))&&{class:_},(!v||134218752&s[0]&&h!==(h=Object.entries(e[27]).map(at).concat([e[10]]).join(" ")))&&{style:h},{for:null},2048&s[1]&&(0,p.De)(e[42],["input$","label$","ripple$","outline$","helperLine$"])])),g&&(0,a.sB)(g.update)&&49152&s[0]|8&s[1]&&g.update.call(null,{ripple:!e[14]&&"filled"===e[15],unbounded:!1,addClass:e[38],removeClass:e[39],addStyle:e[40],eventTarget:e[34],activeTarget:e[34],initPromise:e[37]}),L&&(0,a.sB)(L.update)&&256&s[0]&&L.update.call(null,e[8])},i(e){v||((0,a.Ui)(w),(0,a.Ui)(T),(0,a.Ui)(r.$$.fragment,e),(0,a.Ui)(x,e),(0,a.Ui)(l),(0,a.Ui)(c.$$.fragment,e),(0,a.Ui)(H),v=!0)},o(e){(0,a.et)(w),(0,a.et)(T),(0,a.et)(r.$$.fragment,e),(0,a.et)(x,e),(0,a.et)(l),(0,a.et)(c.$$.fragment,e),(0,a.et)(H),v=!1},d(n){n&&(0,a.og)(t),w&&w.d(),T&&T.d(),(0,a.vp)(r),x&&x.d(n),S[d].d(),(0,a.vp)(c),H&&H.d(),e[72](null),Y=!1,(0,a.j7)(k)}}}function Oe(e){let t;const n=e[50].leadingIcon,i=(0,a.nu)(n,e,e[89],pe);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||134217728&r[2])&&(0,a.Tj)(i,n,e,e[89],t?r:[-1,-1,-1,-1],fe,pe)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function Ae(e){let t;const n=e[50].trailingIcon,i=(0,a.nu)(n,e,e[89],he);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||134217728&r[2])&&(0,a.Tj)(i,n,e,e[89],t?r:[-1,-1,-1,-1],_e,he)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function Ie(e){let t,n,i,r="filled"===e[15]&&Re(e),s=!e[16]&&(null!=e[17]||e[41].label)&&Pe(e);return{c(){r&&r.c(),t=(0,a.Dh)(),s&&s.c(),n=(0,a.cS)()},m(e,o){r&&r.m(e,o),(0,a.$T)(e,t,o),s&&s.m(e,o),(0,a.$T)(e,n,o),i=!0},p(e,i){"filled"===e[15]?r||(r=Re(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),e[16]||null==e[17]&&!e[41].label?s&&((0,a.dv)(),(0,a.et)(s,1,1,(()=>{s=null})),(0,a.gb)()):s?(s.p(e,i),196608&i[0]|1024&i[1]&&(0,a.Ui)(s,1)):(s=Pe(e),s.c(),(0,a.Ui)(s,1),s.m(n.parentNode,n))},i(e){i||((0,a.Ui)(s),i=!0)},o(e){(0,a.et)(s),i=!1},d(e){r&&r.d(e),e&&(0,a.og)(t),s&&s.d(e),e&&(0,a.og)(n)}}}function Re(e){let t;return{c(){t=(0,a.bG)("span"),(0,a.Lj)(t,"class","mdc-text-field__ripple")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function Pe(e){let t,n;const i=[{floatAbove:e[29]||null!=e[0]&&""!==e[0]},{required:e[13]},{wrapped:!0},(0,p.bO)(e[42],"label$")];let r={$$slots:{default:[Fe]},$$scope:{ctx:e}};for(let e=0;e<i.length;e+=1)r=(0,a.f0)(r,i[e]);return t=new H({props:r}),e[51](t),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const r=536879105&n[0]|2048&n[1]?(0,a.Lo)(i,[536870913&n[0]&&{floatAbove:e[29]||null!=e[0]&&""!==e[0]},8192&n[0]&&{required:e[13]},i[2],2048&n[1]&&(0,a.gC)((0,p.bO)(e[42],"label$"))]):{};131072&n[0]|134217728&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(n){e[51](null),(0,a.vp)(t,n)}}}function Fe(e){let t,n,i=(null==e[17]?"":e[17])+"";const r=e[50].label,s=(0,a.nu)(r,e,e[89],He);return{c(){t=(0,a.fL)(i),s&&s.c()},m(e,i){(0,a.$T)(e,t,i),s&&s.m(e,i),n=!0},p(e,o){(!n||131072&o[0])&&i!==(i=(null==e[17]?"":e[17])+"")&&(0,a.rT)(t,i),s&&s.p&&(!n||134217728&o[2])&&(0,a.Tj)(s,r,e,e[89],n?o:[-1,-1,-1,-1],je,He)},i(e){n||((0,a.Ui)(s,e),n=!0)},o(e){(0,a.et)(s,e),n=!1},d(e){e&&(0,a.og)(t),s&&s.d(e)}}}function Ne(e){let t,n;const i=[{noLabel:e[16]||null==e[17]&&!e[41].label},(0,p.bO)(e[42],"outline$")];let r={$$slots:{default:[We]},$$scope:{ctx:e}};for(let e=0;e<i.length;e+=1)r=(0,a.f0)(r,i[e]);return t=new Z({props:r}),e[53](t),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const r=196608&n[0]|3072&n[1]?(0,a.Lo)(i,[196608&n[0]|1024&n[1]&&{noLabel:e[16]||null==e[17]&&!e[41].label},2048&n[1]&&(0,a.gC)((0,p.bO)(e[42],"outline$"))]):{};537075745&n[0]|3072&n[1]|134217728&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(n){e[53](null),(0,a.vp)(t,n)}}}function ze(e){let t,n;const i=[{floatAbove:e[29]||null!=e[0]&&""!==e[0]},{required:e[13]},{wrapped:!0},(0,p.bO)(e[42],"label$")];let r={$$slots:{default:[Ue]},$$scope:{ctx:e}};for(let e=0;e<i.length;e+=1)r=(0,a.f0)(r,i[e]);return t=new H({props:r}),e[52](t),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const r=536879105&n[0]|2048&n[1]?(0,a.Lo)(i,[536870913&n[0]&&{floatAbove:e[29]||null!=e[0]&&""!==e[0]},8192&n[0]&&{required:e[13]},i[2],2048&n[1]&&(0,a.gC)((0,p.bO)(e[42],"label$"))]):{};131072&n[0]|134217728&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(n){e[52](null),(0,a.vp)(t,n)}}}function Ue(e){let t,n,i=(null==e[17]?"":e[17])+"";const r=e[50].label,s=(0,a.nu)(r,e,e[89],Se);return{c(){t=(0,a.fL)(i),s&&s.c()},m(e,i){(0,a.$T)(e,t,i),s&&s.m(e,i),n=!0},p(e,o){(!n||131072&o[0])&&i!==(i=(null==e[17]?"":e[17])+"")&&(0,a.rT)(t,i),s&&s.p&&(!n||134217728&o[2])&&(0,a.Tj)(s,r,e,e[89],n?o:[-1,-1,-1,-1],$e,Se)},i(e){n||((0,a.Ui)(s,e),n=!0)},o(e){(0,a.et)(s,e),n=!1},d(e){e&&(0,a.og)(t),s&&s.d(e)}}}function We(e){let t,n,i=!e[16]&&(null!=e[17]||e[41].label)&&ze(e);return{c(){i&&i.c(),t=(0,a.cS)()},m(e,r){i&&i.m(e,r),(0,a.$T)(e,t,r),n=!0},p(e,n){e[16]||null==e[17]&&!e[41].label?i&&((0,a.dv)(),(0,a.et)(i,1,1,(()=>{i=null})),(0,a.gb)()):i?(i.p(e,n),196608&n[0]|1024&n[1]&&(0,a.Ui)(i,1)):(i=ze(e),i.c(),(0,a.Ui)(i,1),i.m(t.parentNode,t))},i(e){n||((0,a.Ui)(i),n=!0)},o(e){(0,a.et)(i),n=!1},d(e){i&&i.d(e),e&&(0,a.og)(t)}}}function Ve(e){let t;const n=e[50].leadingIcon,i=(0,a.nu)(n,e,e[89],xe);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||134217728&r[2])&&(0,a.Tj)(i,n,e,e[89],t?r:[-1,-1,-1,-1],De,xe)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function Ge(e){let t,n,i,r,s,o,d,l,u,c;const m=e[50].prefix,_=(0,a.nu)(m,e,e[89],ke);let h=null!=e[19]&&Be(e);const f=[{type:e[18]},{disabled:e[12]},{required:e[13]},{updateInvalid:e[21]},{"aria-controls":e[28]},{"aria-describedby":e[28]},e[16]&&null!=e[17]?{placeholder:e[17]}:{},(0,p.bO)(e[42],"input$")];function g(t){e[63](t)}function L(t){e[64](t)}function y(t){e[65](t)}function v(t){e[66](t)}let M={};for(let e=0;e<f.length;e+=1)M=(0,a.f0)(M,f[e]);void 0!==e[0]&&(M.value=e[0]),void 0!==e[1]&&(M.files=e[1]),void 0!==e[4]&&(M.dirty=e[4]),void 0!==e[2]&&(M.invalid=e[2]),i=new ie({props:M}),e[62](i),a.Vn.push((()=>(0,a.ak)(i,"value",g))),a.Vn.push((()=>(0,a.ak)(i,"files",L))),a.Vn.push((()=>(0,a.ak)(i,"dirty",y))),a.Vn.push((()=>(0,a.ak)(i,"invalid",v))),i.$on("blur",e[67]),i.$on("focus",e[68]),i.$on("blur",e[69]),i.$on("focus",e[70]);let b=null!=e[20]&&Je(e);const Y=e[50].suffix,k=(0,a.nu)(Y,e,e[89],be);return{c(){_&&_.c(),t=(0,a.Dh)(),h&&h.c(),n=(0,a.Dh)(),(0,a.YC)(i.$$.fragment),l=(0,a.Dh)(),b&&b.c(),u=(0,a.Dh)(),k&&k.c()},m(e,r){_&&_.m(e,r),(0,a.$T)(e,t,r),h&&h.m(e,r),(0,a.$T)(e,n,r),(0,a.ye)(i,e,r),(0,a.$T)(e,l,r),b&&b.m(e,r),(0,a.$T)(e,u,r),k&&k.m(e,r),c=!0},p(e,t){_&&_.p&&(!c||134217728&t[2])&&(0,a.Tj)(_,m,e,e[89],c?t:[-1,-1,-1,-1],Ye,ke),null!=e[19]?h?(h.p(e,t),524288&t[0]&&(0,a.Ui)(h,1)):(h=Be(e),h.c(),(0,a.Ui)(h,1),h.m(n.parentNode,n)):h&&((0,a.dv)(),(0,a.et)(h,1,1,(()=>{h=null})),(0,a.gb)());const l=271003648&t[0]|2048&t[1]?(0,a.Lo)(f,[262144&t[0]&&{type:e[18]},4096&t[0]&&{disabled:e[12]},8192&t[0]&&{required:e[13]},2097152&t[0]&&{updateInvalid:e[21]},268435456&t[0]&&{"aria-controls":e[28]},268435456&t[0]&&{"aria-describedby":e[28]},196608&t[0]&&(0,a.gC)(e[16]&&null!=e[17]?{placeholder:e[17]}:{}),2048&t[1]&&(0,a.gC)((0,p.bO)(e[42],"input$"))]):{};!r&&1&t[0]&&(r=!0,l.value=e[0],(0,a.hj)((()=>r=!1))),!s&&2&t[0]&&(s=!0,l.files=e[1],(0,a.hj)((()=>s=!1))),!o&&16&t[0]&&(o=!0,l.dirty=e[4],(0,a.hj)((()=>o=!1))),!d&&4&t[0]&&(d=!0,l.invalid=e[2],(0,a.hj)((()=>d=!1))),i.$set(l),null!=e[20]?b?(b.p(e,t),1048576&t[0]&&(0,a.Ui)(b,1)):(b=Je(e),b.c(),(0,a.Ui)(b,1),b.m(u.parentNode,u)):b&&((0,a.dv)(),(0,a.et)(b,1,1,(()=>{b=null})),(0,a.gb)()),k&&k.p&&(!c||134217728&t[2])&&(0,a.Tj)(k,Y,e,e[89],c?t:[-1,-1,-1,-1],Me,be)},i(e){c||((0,a.Ui)(_,e),(0,a.Ui)(h),(0,a.Ui)(i.$$.fragment,e),(0,a.Ui)(b),(0,a.Ui)(k,e),c=!0)},o(e){(0,a.et)(_,e),(0,a.et)(h),(0,a.et)(i.$$.fragment,e),(0,a.et)(b),(0,a.et)(k,e),c=!1},d(r){_&&_.d(r),r&&(0,a.og)(t),h&&h.d(r),r&&(0,a.og)(n),e[62](null),(0,a.vp)(i,r),r&&(0,a.og)(l),b&&b.d(r),r&&(0,a.og)(u),k&&k.d(r)}}}function qe(e){let t,n,i,r,s,o,d,l;const u=[{disabled:e[12]},{required:e[13]},{updateInvalid:e[21]},{"aria-controls":e[28]},{"aria-describedby":e[28]},(0,p.bO)(e[42],"input$")];function c(t){e[55](t)}function m(t){e[56](t)}function _(t){e[57](t)}let h={};for(let e=0;e<u.length;e+=1)h=(0,a.f0)(h,u[e]);void 0!==e[0]&&(h.value=e[0]),void 0!==e[4]&&(h.dirty=e[4]),void 0!==e[2]&&(h.invalid=e[2]),n=new de({props:h}),e[54](n),a.Vn.push((()=>(0,a.ak)(n,"value",c))),a.Vn.push((()=>(0,a.ak)(n,"dirty",m))),a.Vn.push((()=>(0,a.ak)(n,"invalid",_))),n.$on("blur",e[58]),n.$on("focus",e[59]),n.$on("blur",e[60]),n.$on("focus",e[61]);const f=e[50].internalCounter,g=(0,a.nu)(f,e,e[89],Te);return{c(){t=(0,a.bG)("span"),(0,a.YC)(n.$$.fragment),o=(0,a.Dh)(),g&&g.c(),(0,a.Lj)(t,"class",d=(0,p.$o)({"mdc-text-field__resizer":!("input$resizable"in e[42])||e[42].input$resizable}))},m(e,i){(0,a.$T)(e,t,i),(0,a.ye)(n,t,null),(0,a.R3)(t,o),g&&g.m(t,null),l=!0},p(e,o){const c=270544896&o[0]|2048&o[1]?(0,a.Lo)(u,[4096&o[0]&&{disabled:e[12]},8192&o[0]&&{required:e[13]},2097152&o[0]&&{updateInvalid:e[21]},268435456&o[0]&&{"aria-controls":e[28]},268435456&o[0]&&{"aria-describedby":e[28]},2048&o[1]&&(0,a.gC)((0,p.bO)(e[42],"input$"))]):{};!i&&1&o[0]&&(i=!0,c.value=e[0],(0,a.hj)((()=>i=!1))),!r&&16&o[0]&&(r=!0,c.dirty=e[4],(0,a.hj)((()=>r=!1))),!s&&4&o[0]&&(s=!0,c.invalid=e[2],(0,a.hj)((()=>s=!1))),n.$set(c),g&&g.p&&(!l||134217728&o[2])&&(0,a.Tj)(g,f,e,e[89],l?o:[-1,-1,-1,-1],we,Te),(!l||2048&o[1]&&d!==(d=(0,p.$o)({"mdc-text-field__resizer":!("input$resizable"in e[42])||e[42].input$resizable})))&&(0,a.Lj)(t,"class",d)},i(e){l||((0,a.Ui)(n.$$.fragment,e),(0,a.Ui)(g,e),l=!0)},o(e){(0,a.et)(n.$$.fragment,e),(0,a.et)(g,e),l=!1},d(i){i&&(0,a.og)(t),e[54](null),(0,a.vp)(n),g&&g.d(i)}}}function Be(e){let t,n;return t=new Q({props:{$$slots:{default:[Ze]},$$scope:{ctx:e}}}),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};524288&n[0]|134217728&n[2]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function Ze(e){let t;return{c(){t=(0,a.fL)(e[19])},m(e,n){(0,a.$T)(e,t,n)},p(e,n){524288&n[0]&&(0,a.rT)(t,e[19])},d(e){e&&(0,a.og)(t)}}}function Je(e){let t,n;return t=new ee({props:{$$slots:{default:[Ke]},$$scope:{ctx:e}}}),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};1048576&n[0]|134217728&n[2]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function Ke(e){let t;return{c(){t=(0,a.fL)(e[20])},m(e,n){(0,a.$T)(e,t,n)},p(e,n){1048576&n[0]&&(0,a.rT)(t,e[20])},d(e){e&&(0,a.og)(t)}}}function Xe(e){let t;const n=e[50].trailingIcon,i=(0,a.nu)(n,e,e[89],ve);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||134217728&r[2])&&(0,a.Tj)(i,n,e,e[89],t?r:[-1,-1,-1,-1],ye,ve)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function Qe(e){let t,n;const i=[(0,p.bO)(e[42],"ripple$")];let r={};for(let e=0;e<i.length;e+=1)r=(0,a.f0)(r,i[e]);return t=new P({props:r}),e[71](t),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const r=2048&n[1]?(0,a.Lo)(i,[(0,a.gC)((0,p.bO)(e[42],"ripple$"))]):{};t.$set(r)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(n){e[71](null),(0,a.vp)(t,n)}}}function et(e){let t,n;const i=[(0,p.bO)(e[42],"helperLine$")];let r={$$slots:{default:[tt]},$$scope:{ctx:e}};for(let e=0;e<i.length;e+=1)r=(0,a.f0)(r,i[e]);return t=new K({props:r}),t.$on("SMUI:textfield:helper-text:id",e[84]),t.$on("SMUI:textfield:helper-text:mount",e[85]),t.$on("SMUI:textfield:helper-text:unmount",e[86]),t.$on("SMUI:textfield:character-counter:mount",e[87]),t.$on("SMUI:textfield:character-counter:unmount",e[88]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const r=2048&n[1]?(0,a.Lo)(i,[(0,a.gC)((0,p.bO)(e[42],"helperLine$"))]):{};134217728&n[2]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function tt(e){let t;const n=e[50].helper,i=(0,a.nu)(n,e,e[89],ue);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||134217728&r[2])&&(0,a.Tj)(i,n,e,e[89],t?r:[-1,-1,-1,-1],le,ue)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function nt(e){let t,n,i,r,s;const o=[Ee,Ce],d=[];function l(e,t){return e[24]?0:1}t=l(e),n=d[t]=o[t](e);let u=e[41].helper&&et(e);return{c(){n.c(),i=(0,a.Dh)(),u&&u.c(),r=(0,a.cS)()},m(e,n){d[t].m(e,n),(0,a.$T)(e,i,n),u&&u.m(e,n),(0,a.$T)(e,r,n),s=!0},p(e,s){let c=t;t=l(e),t===c?d[t].p(e,s):((0,a.dv)(),(0,a.et)(d[c],1,1,(()=>{d[c]=null})),(0,a.gb)(),n=d[t],n?n.p(e,s):(n=d[t]=o[t](e),n.c()),(0,a.Ui)(n,1),n.m(i.parentNode,i)),e[41].helper?u?(u.p(e,s),1024&s[1]&&(0,a.Ui)(u,1)):(u=et(e),u.c(),(0,a.Ui)(u,1),u.m(r.parentNode,r)):u&&((0,a.dv)(),(0,a.et)(u,1,1,(()=>{u=null})),(0,a.gb)())},i(e){s||((0,a.Ui)(n),(0,a.Ui)(u),s=!0)},o(e){(0,a.et)(n),(0,a.et)(u),s=!1},d(e){d[t].d(e),e&&(0,a.og)(i),u&&u.d(e),e&&(0,a.og)(r)}}}const at=([e,t])=>`${e}: ${t};`,it=([e,t])=>`${e}: ${t};`;function rt(e,t,n){let i,r;const s=["use","class","style","ripple","disabled","required","textarea","variant","noLabel","label","type","value","files","dirty","invalid","prefix","suffix","updateInvalid","validateOnValueChange","useNativeValidation","withLeadingIcon","withTrailingIcon","input","floatingLabel","lineRipple","notchedOutline","focus","layout","getElement"];let o=(0,a.q2)(t,s),{$$slots:d={},$$scope:l}=t;const u=(0,a.XG)(d),{applyPassive:c}=h,m=(0,p.PD)((0,a.w2)());let g,L,y,v,M,b,Y,k,w,T=()=>{},{use:D=[]}=t,{class:x=""}=t,{style:$=""}=t,{ripple:S=!0}=t,{disabled:j=!1}=t,{required:H=!1}=t,{textarea:C=!1}=t,{variant:E=(C?"outlined":"standard")}=t,{noLabel:O=!1}=t,{label:A=null}=t,{type:I="text"}=t,{value:R=T}=t,{files:P=T}=t,{dirty:F=!1}=t,{invalid:N=T}=t,{prefix:z=null}=t,{suffix:U=null}=t,{updateInvalid:W=N===T}=t,{validateOnValueChange:V=W}=t,{useNativeValidation:G=W}=t,{withLeadingIcon:q=T}=t,{withTrailingIcon:B=T}=t,{input:Z}=t,{floatingLabel:J}=t,{lineRipple:K}=t,{notchedOutline:X}=t,Q={},ee={},te=!1,ne=(0,f.fw)("SMUI:addLayoutListener"),ae=new Promise((e=>M=e)),ie=R;function re(e){return e in Q?Q[e]:le().classList.contains(e)}function se(e){Q[e]||n(26,Q[e]=!0,Q)}function oe(e){e in Q&&!Q[e]||n(26,Q[e]=!1,Q)}function de(){if(L){const e=L.shouldFloat;L.notchOutline(e)}}function le(){return g}ne&&(v=ne(de)),(0,f.H3)((()=>(n(48,L=new _({addClass:se,removeClass:oe,hasClass:re,registerTextFieldInteractionHandler:(e,t)=>le().addEventListener(e,t),deregisterTextFieldInteractionHandler:(e,t)=>le().removeEventListener(e,t),registerValidationAttributeChangeHandler:e=>{const t=new MutationObserver((t=>{G&&e((e=>e.map((e=>e.attributeName)).filter((e=>e)))(t))}));return t.observe(Z.getElement(),{attributes:!0}),t},deregisterValidationAttributeChangeHandler:e=>{e.disconnect()},getNativeInput:()=>Z.getElement(),setInputAttr:(e,t)=>{Z.addAttr(e,t)},removeInputAttr:e=>{Z.removeAttr(e)},isFocused:()=>document.activeElement===Z.getElement(),registerInputInteractionHandler:(e,t)=>{Z.getElement().addEventListener(e,t,c())},deregisterInputInteractionHandler:(e,t)=>{Z.getElement().removeEventListener(e,t,c())},floatLabel:e=>J&&J.float(e),getLabelWidth:()=>J?J.getWidth():0,hasLabel:()=>!!J,shakeLabel:e=>J&&J.shake(e),setLabelRequired:e=>J&&J.setRequired(e),activateLineRipple:()=>K&&K.activate(),deactivateLineRipple:()=>K&&K.deactivate(),setLineRippleTransformOrigin:e=>K&&K.setRippleCenter(e),closeOutline:()=>X&&X.closeNotch(),hasOutline:()=>!!X,notchOutline:e=>X&&X.notch(e)},{get helperText(){return k},get characterCounter(){return w},get leadingIcon(){return b},get trailingIcon(){return Y}})),i?L.init():(0,f.Ky)().then((()=>{L.init()})),M(),()=>{L.destroy()}))),(0,f.ev)((()=>{v&&v()}));return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(42,o=(0,a.q2)(t,s)),"use"in e&&n(8,D=e.use),"class"in e&&n(9,x=e.class),"style"in e&&n(10,$=e.style),"ripple"in e&&n(11,S=e.ripple),"disabled"in e&&n(12,j=e.disabled),"required"in e&&n(13,H=e.required),"textarea"in e&&n(14,C=e.textarea),"variant"in e&&n(15,E=e.variant),"noLabel"in e&&n(16,O=e.noLabel),"label"in e&&n(17,A=e.label),"type"in e&&n(18,I=e.type),"value"in e&&n(0,R=e.value),"files"in e&&n(1,P=e.files),"dirty"in e&&n(4,F=e.dirty),"invalid"in e&&n(2,N=e.invalid),"prefix"in e&&n(19,z=e.prefix),"suffix"in e&&n(20,U=e.suffix),"updateInvalid"in e&&n(21,W=e.updateInvalid),"validateOnValueChange"in e&&n(43,V=e.validateOnValueChange),"useNativeValidation"in e&&n(44,G=e.useNativeValidation),"withLeadingIcon"in e&&n(22,q=e.withLeadingIcon),"withTrailingIcon"in e&&n(23,B=e.withTrailingIcon),"input"in e&&n(3,Z=e.input),"floatingLabel"in e&&n(5,J=e.floatingLabel),"lineRipple"in e&&n(6,K=e.lineRipple),"notchedOutline"in e&&n(7,X=e.notchedOutline),"$$scope"in e&&n(89,l=e.$$scope)},e.$$.update=()=>{3&e.$$.dirty[0]&&n(24,i=R!==T||P!==T),8&e.$$.dirty[0]&&n(34,r=Z&&Z.getElement()),2097156&e.$$.dirty[0]|131072&e.$$.dirty[1]&&L&&L.isValid()!==!N&&(W?n(2,N=!L.isValid()):L.setValid(!N)),135168&e.$$.dirty[1]&&L&&L.getValidateOnValueChange()!==V&&L.setValidateOnValueChange(V!==T&&V),139264&e.$$.dirty[1]&&L&&L.setUseNativeValidation(G),4096&e.$$.dirty[0]|131072&e.$$.dirty[1]&&L&&L.setDisabled(j),16777217&e.$$.dirty[0]|393216&e.$$.dirty[1]&&L&&i&&ie!==R&&(n(49,ie=R),L.getValue()!==R&&L.setValue(R))},[R,P,N,Z,F,J,K,X,D,x,$,S,j,H,C,E,O,A,I,z,U,W,q,B,i,g,Q,ee,y,te,b,Y,k,w,r,m,T,ae,se,oe,function(e,t){ee[e]!=t&&(""===t||null==t?(delete ee[e],n(27,ee)):n(27,ee[e]=t,ee))},u,o,V,G,function(){Z.focus()},de,le,L,ie,d,function(e){a.Vn[e?"unshift":"push"]((()=>{J=e,n(5,J)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{J=e,n(5,J)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{X=e,n(7,X)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{Z=e,n(3,Z)}))},function(e){R=e,n(0,R)},function(e){F=e,n(4,F)},function(e){N=e,n(2,N),n(48,L),n(21,W)},()=>n(29,te=!1),()=>n(29,te=!0),function(t){a.cK.call(this,e,t)},function(t){a.cK.call(this,e,t)},function(e){a.Vn[e?"unshift":"push"]((()=>{Z=e,n(3,Z)}))},function(e){R=e,n(0,R)},function(e){P=e,n(1,P)},function(e){F=e,n(4,F)},function(e){N=e,n(2,N),n(48,L),n(21,W)},()=>n(29,te=!1),()=>n(29,te=!0),function(t){a.cK.call(this,e,t)},function(t){a.cK.call(this,e,t)},function(e){a.Vn[e?"unshift":"push"]((()=>{K=e,n(6,K)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{g=e,n(25,g)}))},e=>n(30,b=e.detail),()=>n(30,b=void 0),e=>n(31,Y=e.detail),()=>n(31,Y=void 0),e=>n(33,w=e.detail),()=>n(33,w=void 0),function(e){a.Vn[e?"unshift":"push"]((()=>{g=e,n(25,g)}))},e=>n(30,b=e.detail),()=>n(30,b=void 0),e=>n(31,Y=e.detail),()=>n(31,Y=void 0),e=>n(28,y=e.detail),e=>n(32,k=e.detail),()=>{n(28,y=void 0),n(32,k=void 0)},e=>n(33,w=e.detail),()=>n(33,w=void 0),l]}class st extends a.f_{constructor(e){super(),(0,a.S1)(this,e,rt,nt,a.N8,{use:8,class:9,style:10,ripple:11,disabled:12,required:13,textarea:14,variant:15,noLabel:16,label:17,type:18,value:0,files:1,dirty:4,invalid:2,prefix:19,suffix:20,updateInvalid:21,validateOnValueChange:43,useNativeValidation:44,withLeadingIcon:22,withTrailingIcon:23,input:3,floatingLabel:5,lineRipple:6,notchedOutline:7,focus:45,layout:46,getElement:47},[-1,-1,-1,-1])}get focus(){return this.$$.ctx[45]}get layout(){return this.$$.ctx[46]}get getElement(){return this.$$.ctx[47]}}const ot=st},9437:(e,t,n)=>{"use strict";n.d(t,{BC:()=>r,P_:()=>s,JD:()=>o,Zd:()=>d,Xn:()=>l});var a=n(30381),i=n.n(a),r=window.route;function s(e,t){return 1==t.map((function(t){return e.can.find((function(e){return e==t}))==t})).find((function(e){return 1==e}))}function o(e,t){return 1==t.map((function(t){return e.can_by_user.find((function(e){return e==t}))==t})).find((function(e){return 1==e}))}function d(e,t){return 1==t.map((function(t){return e.roles.filter((function(e){return e.id==t})).length>0})).find((function(e){return 1==e}))}function l(e,t){return i()(new Date(t)).diff(new Date(e),"months",!0).toFixed(1)}},19231:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-vhcw6{background-clip:padding-box;background-color:var(--rgba);height:calc(var(--size)/15);overflow:hidden;position:relative;width:calc(var(--size)*2)}.lines.svelte-vhcw6{background-color:var(--color);height:calc(var(--size)/15)}.small-lines.svelte-vhcw6{-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;background-clip:padding-box;border-radius:2px;display:block;overflow:hidden;position:absolute;will-change:left,right}.small-lines.\\31 .svelte-vhcw6{-webkit-animation:var(--duration) cubic-bezier(.65,.815,.735,.395) 0s infinite normal none running svelte-vhcw6-long;animation:var(--duration) cubic-bezier(.65,.815,.735,.395) 0s infinite normal none running svelte-vhcw6-long}.small-lines.\\32 .svelte-vhcw6{-webkit-animation:var(--duration) cubic-bezier(.165,.84,.44,1) calc(var(--duration)/2 + .05) infinite normal none running svelte-vhcw6-short;animation:var(--duration) cubic-bezier(.165,.84,.44,1) calc(var(--duration)/2 + .05) infinite normal none running svelte-vhcw6-short}@-webkit-keyframes svelte-vhcw6-long{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes svelte-vhcw6-long{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@-webkit-keyframes svelte-vhcw6-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes svelte-vhcw6-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}",""]);const r=i},82873:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1unnvn6{align-items:center;display:flex;height:var(--size);justify-content:center;width:var(--size)}.spinner.svelte-1unnvn6{-webkit-animation:svelte-1unnvn6-rotate var(--duration) infinite linear;animation:svelte-1unnvn6-rotate var(--duration) infinite linear;height:var(--size);width:var(--size)}.dot.svelte-1unnvn6{-webkit-animation:svelte-1unnvn6-bounce var(--duration) infinite ease-in-out;animation:svelte-1unnvn6-bounce var(--duration) infinite ease-in-out;background-color:var(--color);border-radius:100%;display:inline-block;height:60%;position:absolute;top:0;width:60%}@-webkit-keyframes svelte-1unnvn6-rotate{to{transform:rotate(1turn)}}@keyframes svelte-1unnvn6-rotate{to{transform:rotate(1turn)}}@-webkit-keyframes svelte-1unnvn6-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes svelte-1unnvn6-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}",""]);const r=i},2149:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".circle.svelte-14upwad{-webkit-animation:var(--duration) linear 0s infinite normal none running svelte-14upwad-rotate;animation:var(--duration) linear 0s infinite normal none running svelte-14upwad-rotate;border:calc(var(--size)/15) solid var(--color);-o-border-image:initial;border-image:initial;border-radius:50%;border-right:calc(var(--size)/15) solid transparent;height:var(--size);width:var(--size)}@-webkit-keyframes svelte-14upwad-rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}@keyframes svelte-14upwad-rotate{0%{transform:rotate(0)}to{transform:rotate(1turn)}}",""]);const r=i},77257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,'.circle.svelte-1vclic6{-webkit-animation:svelte-1vclic6-circleSpin var(--durationOuter) linear infinite;animation:svelte-1vclic6-circleSpin var(--durationOuter) linear infinite;border:3px solid transparent;border-radius:50%;border-top:3px solid var(--colorOuter);box-sizing:border-box;height:var(--size);position:relative;width:var(--size)}.circle.svelte-1vclic6:after,.circle.svelte-1vclic6:before{border:3px solid transparent;border-radius:50%;box-sizing:border-box;content:"";position:absolute}.circle.svelte-1vclic6:after{-webkit-animation:svelte-1vclic6-circleSpin var(--durationInner) linear infinite;animation:svelte-1vclic6-circleSpin var(--durationInner) linear infinite;border-top-color:var(--colorInner);bottom:9px;left:9px;right:9px;top:9px}.circle.svelte-1vclic6:before{-webkit-animation:svelte-1vclic6-circleSpin var(--durationCenter) linear infinite;animation:svelte-1vclic6-circleSpin var(--durationCenter) linear infinite;border-top-color:var(--colorCenter);bottom:3px;left:3px;right:3px;top:3px}@-webkit-keyframes svelte-1vclic6-circleSpin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes svelte-1vclic6-circleSpin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}',""]);const r=i},49451:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1vf8im1{align-items:center;box-sizing:border-box;display:flex;height:var(--size);justify-content:center;line-height:0;width:var(--size)}.inner.svelte-1vf8im1{transform:scale(calc(var(--floatSize)/52))}.ball-container.svelte-1vf8im1{-webkit-animation:svelte-1vf8im1-ballTwo var(--duration) infinite;animation:svelte-1vf8im1-ballTwo var(--duration) infinite;flex-shrink:0;height:44px;position:relative;width:44px}.single-ball.svelte-1vf8im1{height:44px;position:absolute;width:44px}.ball.svelte-1vf8im1{-webkit-animation:svelte-1vf8im1-ballOne var(--duration) infinite ease;animation:svelte-1vf8im1-ballOne var(--duration) infinite ease;border-radius:50%;height:20px;position:absolute;width:20px}.ball-top-left.svelte-1vf8im1{background-color:var(--ballTopLeftColor);left:0;top:0}.ball-top-right.svelte-1vf8im1{background-color:var(--ballTopRightColor);left:24px;top:0}.ball-bottom-left.svelte-1vf8im1{background-color:var(--ballBottomLeftColor);left:0;top:24px}.ball-bottom-right.svelte-1vf8im1{background-color:var(--ballBottomRightColor);left:24px;top:24px}@-webkit-keyframes svelte-1vf8im1-ballOne{0%{position:absolute}50%{left:12px;opacity:.5;position:absolute;top:12px}to{position:absolute}}@keyframes svelte-1vf8im1-ballOne{0%{position:absolute}50%{left:12px;opacity:.5;position:absolute;top:12px}to{position:absolute}}@-webkit-keyframes svelte-1vf8im1-ballTwo{0%{transform:rotate(0deg) scale(1)}50%{transform:rotate(1turn) scale(1.3)}to{transform:rotate(2turn) scale(1)}}@keyframes svelte-1vf8im1-ballTwo{0%{transform:rotate(0deg) scale(1)}50%{transform:rotate(1turn) scale(1.3)}to{transform:rotate(2turn) scale(1)}}",""]);const r=i},93177:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,'div.svelte-1cgj772{background-color:transparent;border-radius:50%;box-shadow:inset 0 0 0 2px var(--color);height:var(--size);position:relative;width:var(--size)}div.svelte-1cgj772:after,div.svelte-1cgj772:before{background-color:var(--color);content:"";position:absolute}div.svelte-1cgj772:after{-webkit-animation:svelte-1cgj772-rotate calc(var(--duration)/4) linear infinite;animation:svelte-1cgj772-rotate calc(var(--duration)/4) linear infinite;width:calc(var(--size)/2.4)}div.svelte-1cgj772:after,div.svelte-1cgj772:before{height:2px;left:calc(var(--size)/2);top:calc(var(--size)/2);transform-origin:1px 1px}div.svelte-1cgj772:before{-webkit-animation:svelte-1cgj772-rotate var(--duration) linear infinite;animation:svelte-1cgj772-rotate var(--duration) linear infinite;width:calc(var(--size)/3)}@-webkit-keyframes svelte-1cgj772-rotate{to{transform:rotate(1turn)}}@keyframes svelte-1cgj772-rotate{to{transform:rotate(1turn)}}',""]);const r=i},54990:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,"span.svelte-evhfle{display:block;height:calc(var(--size)/4);position:relative;width:var(--size)}div.svelte-evhfle{-webkit-animation:svelte-evhfle-diamonds var(--duration) linear infinite;animation:svelte-evhfle-diamonds var(--duration) linear infinite;background:var(--color);border-radius:2px;height:calc(var(--size)/4);left:0;position:absolute;top:0;transform:translateX(-50%) rotate(45deg) scale(0);width:calc(var(--size)/4)}div.svelte-evhfle:first-child{-webkit-animation-delay:calc(var(--duration)*2/3*-1);animation-delay:calc(var(--duration)*2/3*-1)}div.svelte-evhfle:nth-child(2){-webkit-animation-delay:calc(var(--duration)*2/3*-2);animation-delay:calc(var(--duration)*2/3*-2)}div.svelte-evhfle:nth-child(3){-webkit-animation-delay:calc(var(--duration)*2/3*-3);animation-delay:calc(var(--duration)*2/3*-3)}@-webkit-keyframes svelte-evhfle-diamonds{50%{left:50%;transform:translateX(-50%) rotate(45deg) scale(1)}to{left:100%;transform:translateX(-50%) rotate(45deg) scale(0)}}@keyframes svelte-evhfle-diamonds{50%{left:50%;transform:translateX(-50%) rotate(45deg) scale(1)}to{left:100%;transform:translateX(-50%) rotate(45deg) scale(0)}}",""]);const r=i},17901:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-h1a2xs{height:var(--size);position:relative;width:var(--size)}.circle.svelte-h1a2xs{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:svelte-h1a2xs-bounce!important;animation-name:svelte-h1a2xs-bounce!important;background-color:var(--color);border-radius:100%;height:var(--size);left:0;opacity:.6;position:absolute;top:0;width:var(--size)}@-webkit-keyframes svelte-h1a2xs-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}@keyframes svelte-h1a2xs-bounce{0%,to{transform:scale(0)}50%{transform:scale(1)}}",""]);const r=i},19966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1x2s7pr{align-items:center;display:flex;height:calc(var(--size)*1.3);justify-content:center;width:calc(var(--size)*1.3)}.firework.svelte-1x2s7pr{-webkit-animation:svelte-1x2s7pr-fire var(--duration) cubic-bezier(.165,.84,.44,1) infinite;animation:svelte-1x2s7pr-fire var(--duration) cubic-bezier(.165,.84,.44,1) infinite;border:calc(var(--size)/10) dotted var(--color);border-radius:50%;height:var(--size);width:var(--size)}@-webkit-keyframes svelte-1x2s7pr-fire{0%{opacity:1;transform:scale(.1)}25%{opacity:.85}to{opacity:0;transform:scale(1)}}@keyframes svelte-1x2s7pr-fire{0%{opacity:1;transform:scale(.1)}25%{opacity:.85}to{opacity:0;transform:scale(1)}}",""]);const r=i},7672:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,'.svelte-1exboqr{-webkit-animation:svelte-1exboqr-plus-loader-background var(--duration) infinite ease-in-out;animation:svelte-1exboqr-plus-loader-background var(--duration) infinite ease-in-out;background:#f86;border-radius:50%;display:inline-block;overflow:hidden;position:relative;text-indent:-9999px;transform:rotate(90deg);transform-origin:50% 50%}.svelte-1exboqr:after{-webkit-animation:svelte-1exboqr-plus-loader-top var(--duration) infinite linear;animation:svelte-1exboqr-plus-loader-top var(--duration) infinite linear;background:#f86}.svelte-1exboqr:after,.svelte-1exboqr:before{border-radius:50% 0 0 50%;content:"";height:100%;position:absolute;right:50%;top:0;transform-origin:100% 50%;width:50%}.svelte-1exboqr:before{-webkit-animation:svelte-1exboqr-plus-loader-bottom var(--duration) infinite linear;animation:svelte-1exboqr-plus-loader-bottom var(--duration) infinite linear;background:#fc6}@-webkit-keyframes svelte-1exboqr-plus-loader-top{2.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#f86;transform:rotateY(0deg)}13.75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#ff430d;transform:rotateY(90deg)}13.76%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;background:#ffae0d;transform:rotateY(90deg)}25%{background:#fc6;transform:rotateY(180deg)}27.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#fc6;transform:rotateY(180deg)}41.25%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#ffae0d;transform:rotateY(90deg)}41.26%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;background:#2cc642;transform:rotateY(90deg)}50%{background:#6d7;transform:rotateY(0deg)}52.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#6d7;transform:rotateY(0deg)}63.75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#2cc642;transform:rotateY(90deg)}63.76%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;background:#1386d2;transform:rotateY(90deg)}75%{background:#4ae;transform:rotateY(180deg)}77.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#4ae;transform:rotateY(180deg)}91.25%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#1386d2;transform:rotateY(90deg)}91.26%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#ff430d;transform:rotateY(90deg)}to{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#f86;transform:rotateY(0deg)}}@keyframes svelte-1exboqr-plus-loader-top{2.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#f86;transform:rotateY(0deg)}13.75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#ff430d;transform:rotateY(90deg)}13.76%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;background:#ffae0d;transform:rotateY(90deg)}25%{background:#fc6;transform:rotateY(180deg)}27.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#fc6;transform:rotateY(180deg)}41.25%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#ffae0d;transform:rotateY(90deg)}41.26%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;background:#2cc642;transform:rotateY(90deg)}50%{background:#6d7;transform:rotateY(0deg)}52.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#6d7;transform:rotateY(0deg)}63.75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#2cc642;transform:rotateY(90deg)}63.76%{-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out;background:#1386d2;transform:rotateY(90deg)}75%{background:#4ae;transform:rotateY(180deg)}77.5%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#4ae;transform:rotateY(180deg)}91.25%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#1386d2;transform:rotateY(90deg)}91.26%{-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in;background:#ff430d;transform:rotateY(90deg)}to{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#f86;transform:rotateY(0deg)}}@-webkit-keyframes svelte-1exboqr-plus-loader-bottom{0%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#fc6}50%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#fc6}75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#4ae}to{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#4ae}}@keyframes svelte-1exboqr-plus-loader-bottom{0%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#fc6}50%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#fc6}75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#4ae}to{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#4ae}}@-webkit-keyframes svelte-1exboqr-plus-loader-background{0%{background:#f86;transform:rotate(180deg)}25%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#f86;transform:rotate(180deg)}27.5%{background:#6d7;transform:rotate(90deg)}50%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#6d7;transform:rotate(90deg)}52.5%{background:#6d7;transform:rotate(0deg)}75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#6d7;transform:rotate(0deg)}77.5%{background:#f86;transform:rotate(270deg)}to{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#f86;transform:rotate(270deg)}}@keyframes svelte-1exboqr-plus-loader-background{0%{background:#f86;transform:rotate(180deg)}25%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#f86;transform:rotate(180deg)}27.5%{background:#6d7;transform:rotate(90deg)}50%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#6d7;transform:rotate(90deg)}52.5%{background:#6d7;transform:rotate(0deg)}75%{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#6d7;transform:rotate(0deg)}77.5%{background:#f86;transform:rotate(270deg)}to{-webkit-animation-timing-function:step-start;animation-timing-function:step-start;background:#f86;transform:rotate(270deg)}}',""]);const r=i},35143:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1v1mfqa{align-items:center;display:flex;height:var(--size);justify-content:center;position:relative;width:var(--size)}.ring.svelte-1v1mfqa{-webkit-animation:svelte-1v1mfqa-motion var(--duration) ease infinite;animation:svelte-1v1mfqa-motion var(--duration) ease infinite;background-color:transparent;border:2px solid var(--color);border-radius:50%;position:absolute}@-webkit-keyframes svelte-1v1mfqa-motion{0%{transform:translateY(var(--motionOne))}50%{transform:translateY(var(--motionTwo))}to{transform:translateY(var(--motionThree))}}@keyframes svelte-1v1mfqa-motion{0%{transform:translateY(var(--motionOne))}50%{transform:translateY(var(--motionTwo))}to{transform:translateY(var(--motionThree))}}",""]);const r=i},3711:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".circle.svelte-1cy66mt,.wrapper.svelte-1cy66mt{height:var(--size);width:var(--size)}.circle.svelte-1cy66mt{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation:svelte-1cy66mt-bounce var(--duration) linear infinite;animation:svelte-1cy66mt-bounce var(--duration) linear infinite;background-color:var(--color);border-radius:100%;opacity:0;position:absolute}@-webkit-keyframes svelte-1cy66mt-bounce{0%{opacity:0;transform:scale(0)}5%{opacity:1}to{opacity:0;transform:scale(1)}}@keyframes svelte-1cy66mt-bounce{0%{opacity:0;transform:scale(0)}5%{opacity:1}to{opacity:0;transform:scale(1)}}",""]);const r=i},47814:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-nlgli4{height:var(--size);position:relative;width:var(--size)}.circle-one.svelte-nlgli4,.wrapper.svelte-nlgli4{-webkit-animation:svelte-nlgli4-moonStretchDelay var(--duration) 0s infinite linear;animation:svelte-nlgli4-moonStretchDelay var(--duration) 0s infinite linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;border-radius:100%}.circle-one.svelte-nlgli4{background-color:var(--color);height:calc(var(--size)/7);opacity:.8;position:absolute;top:var(--moonSize);width:calc(var(--size)/7)}.circle-two.svelte-nlgli4{border:calc(var(--size)/7) solid var(--color);border-radius:100%;box-sizing:border-box;height:var(--size);opacity:.1;width:var(--size)}@-webkit-keyframes svelte-nlgli4-moonStretchDelay{to{transform:rotate(1turn)}}@keyframes svelte-nlgli4-moonStretchDelay{to{transform:rotate(1turn)}}",""]);const r=i},64331:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1sqavxm.svelte-1sqavxm{align-items:center;display:flex;height:var(--size);justify-content:center;position:relative;width:var(--size)}.wrapper.svelte-1sqavxm .svelte-1sqavxm{box-sizing:border-box;line-height:0}.spinner-inner.svelte-1sqavxm.svelte-1sqavxm{height:var(--size);transform:scale(calc(var(--size)/70));width:var(--size)}.mask.svelte-1sqavxm.svelte-1sqavxm{border-radius:2px;overflow:hidden}.mask.svelte-1sqavxm.svelte-1sqavxm,.plane.svelte-1sqavxm.svelte-1sqavxm{-webkit-backface-visibility:hidden;backface-visibility:hidden;perspective:1000;position:absolute}.plane.svelte-1sqavxm.svelte-1sqavxm{background:var(--color);height:100%;width:400%;z-index:100}#top.svelte-1sqavxm .plane.svelte-1sqavxm{-webkit-animation:svelte-1sqavxm-trans1 var(--duration) ease-in infinite 0s backwards;animation:svelte-1sqavxm-trans1 var(--duration) ease-in infinite 0s backwards;z-index:2000}#middle.svelte-1sqavxm .plane.svelte-1sqavxm{-webkit-animation:svelte-1sqavxm-trans2 var(--duration) linear infinite calc(var(--duration)/4) backwards;animation:svelte-1sqavxm-trans2 var(--duration) linear infinite calc(var(--duration)/4) backwards;background:var(--rgba);transform:translateZ(0)}#bottom.svelte-1sqavxm .plane.svelte-1sqavxm{-webkit-animation:svelte-1sqavxm-trans3 var(--duration) ease-out infinite calc(var(--duration)/2) backwards;animation:svelte-1sqavxm-trans3 var(--duration) ease-out infinite calc(var(--duration)/2) backwards;z-index:2000}#top.svelte-1sqavxm.svelte-1sqavxm{height:20px;left:20px;top:5px;transform:skew(-15deg,0);width:53px;z-index:100}#middle.svelte-1sqavxm.svelte-1sqavxm{height:20px;left:20px;top:21px;transform:skew(-15deg,40deg);width:33px}#bottom.svelte-1sqavxm.svelte-1sqavxm{height:20px;top:35px;transform:skew(-15deg,0);width:53px}@-webkit-keyframes svelte-1sqavxm-trans1{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-250px,0,0)}}@keyframes svelte-1sqavxm-trans1{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-250px,0,0)}}@-webkit-keyframes svelte-1sqavxm-trans2{0%{transform:translate3d(-160px,0,0)}to{transform:translate3d(53px,0,0)}}@keyframes svelte-1sqavxm-trans2{0%{transform:translate3d(-160px,0,0)}to{transform:translate3d(53px,0,0)}}@-webkit-keyframes svelte-1sqavxm-trans3{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-220px,0,0)}}@keyframes svelte-1sqavxm-trans3{0%{transform:translate3d(53px,0,0)}to{transform:translate3d(-220px,0,0)}}",""]);const r=i},58054:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-446r86{align-items:center;display:flex;height:calc(var(--size)/2.5);justify-content:center;position:relative;width:var(--size)}.cube.svelte-446r86{-webkit-animation:svelte-446r86-motion var(--duration) cubic-bezier(.895,.03,.685,.22) infinite;animation:svelte-446r86-motion var(--duration) cubic-bezier(.895,.03,.685,.22) infinite;background-color:var(--color);height:calc(var(--size)/2.5);position:absolute;top:0;width:calc(var(--size)/5)}@-webkit-keyframes svelte-446r86-motion{0%{opacity:1}50%{opacity:0}to{opacity:1}}@keyframes svelte-446r86-motion{0%{opacity:1}50%{opacity:0}to{opacity:1}}",""]);const r=i},1257:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1fuumrt{height:calc(var(--size)/2);overflow:hidden;width:var(--size)}.rainbow.svelte-1fuumrt{-webkit-animation:var(--duration) ease-in-out 0s infinite normal none running svelte-1fuumrt-rotate;animation:var(--duration) ease-in-out 0s infinite normal none running svelte-1fuumrt-rotate;border-bottom-color:transparent;border-left-color:transparent;border-radius:50%;border-right-color:var(--color);border-style:solid;border-top-color:var(--color);box-sizing:border-box;height:var(--size);transform:rotate(-200deg);width:var(--size)}@-webkit-keyframes svelte-1fuumrt-rotate{0%{border-width:10px}25%{border-width:3px}50%{border-width:10px;transform:rotate(115deg)}75%{border-width:3px}to{border-width:10px}}@keyframes svelte-1fuumrt-rotate{0%{border-width:10px}25%{border-width:3px}50%{border-width:10px;transform:rotate(115deg)}75%{border-width:3px}to{border-width:10px}}",""]);const r=i},89274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-17ey38u{height:var(--size);position:relative;width:var(--size)}.border.svelte-17ey38u{border:6px solid var(--color);-o-border-image:initial;border-image:initial;border-radius:100%;height:var(--size);left:0;opacity:.4;perspective:800px;position:absolute;top:0;width:var(--size)}.border.\\31 .svelte-17ey38u{-webkit-animation:var(--duration) linear 0s infinite normal none running svelte-17ey38u-ringOne;animation:var(--duration) linear 0s infinite normal none running svelte-17ey38u-ringOne}.border.\\32 .svelte-17ey38u{-webkit-animation:var(--duration) linear 0s infinite normal none running svelte-17ey38u-ringTwo;animation:var(--duration) linear 0s infinite normal none running svelte-17ey38u-ringTwo}@-webkit-keyframes svelte-17ey38u-ringOne{0%{transform:rotateX(0deg) rotateY(0deg) rotate(0deg)}to{transform:rotateX(1turn) rotateY(180deg) rotate(1turn)}}@keyframes svelte-17ey38u-ringOne{0%{transform:rotateX(0deg) rotateY(0deg) rotate(0deg)}to{transform:rotateX(1turn) rotateY(180deg) rotate(1turn)}}@-webkit-keyframes svelte-17ey38u-ringTwo{0%{transform:rotateX(0deg) rotateY(0deg) rotate(0deg)}to{transform:rotateX(180deg) rotateY(1turn) rotate(1turn)}}@keyframes svelte-17ey38u-ringTwo{0%{transform:rotateX(0deg) rotateY(0deg) rotate(0deg)}to{transform:rotateX(180deg) rotateY(1turn) rotate(1turn)}}",""]);const r=i},67729:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".circle.svelte-9juun5,.wrapper.svelte-9juun5{height:var(--size);width:var(--size)}.circle.svelte-9juun5{-webkit-animation-duration:var(--duration);animation-duration:var(--duration);-webkit-animation:svelte-9juun5-scaleOut var(--duration) ease-in-out infinite;animation:svelte-9juun5-scaleOut var(--duration) ease-in-out infinite;background-color:var(--color);border-radius:100%;display:inline-block}@-webkit-keyframes svelte-9juun5-scaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}@keyframes svelte-9juun5-scaleOut{0%{transform:scale(0)}to{opacity:0;transform:scale(1)}}",""]);const r=i},94146:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-tycttu{align-items:center;display:flex;justify-content:center}.shadow.svelte-tycttu,.wrapper.svelte-tycttu{height:var(--size);position:relative;width:var(--size)}.shadow.svelte-tycttu{-webkit-animation:svelte-tycttu-load var(--duration) infinite ease,svelte-tycttu-round var(--duration) infinite ease;animation:svelte-tycttu-load var(--duration) infinite ease,svelte-tycttu-round var(--duration) infinite ease;border-radius:50%;color:var(--color);font-size:var(--size);margin:28px auto;overflow:hidden;transform:translateZ(0)}@-webkit-keyframes svelte-tycttu-load{0%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}to{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}}@keyframes svelte-tycttu-load{0%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}5%,95%{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}10%,59%{box-shadow:0 -.83em 0 -.4em,-.087em -.825em 0 -.42em,-.173em -.812em 0 -.44em,-.256em -.789em 0 -.46em,-.297em -.775em 0 -.477em}20%{box-shadow:0 -.83em 0 -.4em,-.338em -.758em 0 -.42em,-.555em -.617em 0 -.44em,-.671em -.488em 0 -.46em,-.749em -.34em 0 -.477em}38%{box-shadow:0 -.83em 0 -.4em,-.377em -.74em 0 -.42em,-.645em -.522em 0 -.44em,-.775em -.297em 0 -.46em,-.82em -.09em 0 -.477em}to{box-shadow:0 -.83em 0 -.4em,0 -.83em 0 -.42em,0 -.83em 0 -.44em,0 -.83em 0 -.46em,0 -.83em 0 -.477em}}@-webkit-keyframes svelte-tycttu-round{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes svelte-tycttu-round{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]);const r=i},97088:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1wp57lu{align-items:center;display:flex;height:var(--stroke);justify-content:center;transform:scale(calc(var(--floatSize)/75));width:var(--size)}.line.svelte-1wp57lu{-webkit-animation:svelte-1wp57lu-spineLine var(--duration) ease infinite;animation:svelte-1wp57lu-spineLine var(--duration) ease infinite;background:var(--color);border-radius:var(--stroke);height:var(--stroke);transform-origin:center center;width:var(--size)}@-webkit-keyframes svelte-1wp57lu-spineLine{0%{height:5px;transform:rotate(-20deg);width:75px}5%{height:5px;width:75px}30%{height:5px;transform:rotate(380deg);width:75px}40%{height:5px;transform:rotate(1turn);width:75px}55%{height:5px;transform:rotate(0deg);width:5px}65%{height:5px;transform:rotate(0deg);width:85px}68%{height:5px;transform:rotate(0deg)}75%{height:5px;transform:rotate(0deg);width:1px}78%{height:5px;width:5px}90%{height:5px;transform:rotate(0deg);width:75px}99%,to{height:5px;transform:rotate(-20deg);width:75px}}@keyframes svelte-1wp57lu-spineLine{0%{height:5px;transform:rotate(-20deg);width:75px}5%{height:5px;width:75px}30%{height:5px;transform:rotate(380deg);width:75px}40%{height:5px;transform:rotate(1turn);width:75px}55%{height:5px;transform:rotate(0deg);width:5px}65%{height:5px;transform:rotate(0deg);width:85px}68%{height:5px;transform:rotate(0deg)}75%{height:5px;transform:rotate(0deg);width:1px}78%{height:5px;width:5px}90%{height:5px;transform:rotate(0deg);width:75px}99%,to{height:5px;transform:rotate(-20deg);width:75px}}",""]);const r=i},11363:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".square.svelte-btmyrn{-webkit-animation:svelte-btmyrn-squareDelay var(--duration) 0s infinite cubic-bezier(.09,.57,.49,.9);animation:svelte-btmyrn-squareDelay var(--duration) 0s infinite cubic-bezier(.09,.57,.49,.9);-webkit-animation-fill-mode:both;animation-fill-mode:both;background-color:var(--color);display:inline-block;height:var(--size);perspective:100px;width:var(--size)}@-webkit-keyframes svelte-btmyrn-squareDelay{25%{transform:rotateX(180deg) rotateY(0)}50%{transform:rotateX(180deg) rotateY(180deg)}75%{transform:rotateX(0) rotateY(180deg)}to{transform:rotateX(0) rotateY(0)}}@keyframes svelte-btmyrn-squareDelay{25%{transform:rotateX(180deg) rotateY(0)}50%{transform:rotateX(180deg) rotateY(180deg)}75%{transform:rotateX(0) rotateY(180deg)}to{transform:rotateX(0) rotateY(0)}}",""]);const r=i},43053:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-1uxpkwt{display:inline-block;font-size:10px;height:var(--size);text-align:center;width:var(--size)}.rect.svelte-1uxpkwt{-webkit-animation:svelte-1uxpkwt-stretch var(--duration) ease-in-out infinite;animation:svelte-1uxpkwt-stretch var(--duration) ease-in-out infinite;background-color:var(--color);display:inline-block;height:100%;margin-right:4px;width:10%}@-webkit-keyframes svelte-1uxpkwt-stretch{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}@keyframes svelte-1uxpkwt-stretch{0%,40%,to{transform:scaleY(.4)}20%{transform:scaleY(1)}}",""]);const r=i},80506:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-14w6xk7{align-items:center;display:flex;height:var(--size);justify-content:center;width:var(--size)}.dot.svelte-14w6xk7{-webkit-animation:svelte-14w6xk7-sync var(--duration) ease-in-out infinite alternate both running;animation:svelte-14w6xk7-sync var(--duration) ease-in-out infinite alternate both running;background-color:var(--color);border-radius:100%;display:inline-block;height:var(--dotSize);margin:2px;width:var(--dotSize)}@-webkit-keyframes svelte-14w6xk7-sync{33%{transform:translateY(10px)}66%{transform:translateY(-10px)}to{transform:translateY(0)}}@keyframes svelte-14w6xk7-sync{33%{transform:translateY(10px)}66%{transform:translateY(-10px)}to{transform:translateY(0)}}",""]);const r=i},49846:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".wrapper.svelte-8cmcz4{align-items:center;display:flex;height:var(--size);justify-content:center;overflow:hidden;position:relative;width:calc(var(--size)*2.5)}.bar.svelte-8cmcz4{-webkit-animation:svelte-8cmcz4-motion var(--duration) ease-in-out infinite;animation:svelte-8cmcz4-motion var(--duration) ease-in-out infinite;background-color:var(--color);height:calc(var(--size)/10);margin-top:calc(var(--size) - var(--size)/10);position:absolute;top:calc(var(--size)/10);transform:skewY(0deg);width:calc(var(--size)/5)}@-webkit-keyframes svelte-8cmcz4-motion{25%{transform:skewY(25deg)}50%{height:100%;margin-top:0}75%{transform:skewY(-25deg)}}@keyframes svelte-8cmcz4-motion{25%{transform:skewY(25deg)}50%{height:100%;margin-top:0}75%{transform:skewY(-25deg)}}",""]);const r=i},77641:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".item.svelte-bdnybl{color:var(--itemColor,inherit);cursor:default;height:var(--height,42px);line-height:var(--height,42px);overflow:hidden;padding:var(--itemPadding,0 20px);text-overflow:ellipsis;white-space:nowrap}.groupHeader.svelte-bdnybl{text-transform:var(--groupTitleTextTransform,uppercase)}.groupItem.svelte-bdnybl{padding-left:var(--groupItemPaddingLeft,40px)}.item.svelte-bdnybl:active{background:var(--itemActiveBackground,#b9daff)}.item.active.svelte-bdnybl{background:var(--itemIsActiveBG,#007aff);color:var(--itemIsActiveColor,#fff)}.item.first.svelte-bdnybl{border-radius:var(--itemFirstBorderRadius,4px 4px 0 0)}.item.hover.svelte-bdnybl:not(.active){background:var(--itemHoverBG,#e7f2ff)}",""]);const r=i},18438:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".listContainer.svelte-ux0sbr{background:var(--listBackground,#fff);border-radius:var(--listBorderRadius,4px);box-shadow:var(--listShadow,0 2px 3px 0 rgba(44,62,80,.24));max-height:var(--listMaxHeight,250px);overflow-y:auto}.virtualList.svelte-ux0sbr{height:var(--virtualListHeight,200px)}.listGroupTitle.svelte-ux0sbr{color:var(--groupTitleColor,#8f8f8f);cursor:default;font-size:var(--groupTitleFontSize,12px);font-weight:var(--groupTitleFontWeight,600);height:var(--height,42px);line-height:var(--height,42px);overflow-x:hidden;padding:var(--groupTitlePadding,0 20px);text-overflow:ellipsis;text-transform:var(--groupTitleTextTransform,uppercase);white-space:nowrap}.empty.svelte-ux0sbr{color:var(--listEmptyColor,#78848f);padding:var(--listEmptyPadding,20px 0);text-align:var(--listEmptyTextAlign,center)}",""]);const r=i},75314:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".multiSelectItem.svelte-14r1jr2.svelte-14r1jr2{background:var(--multiItemBG,#ebedef);border-radius:var(--multiItemBorderRadius,16px);cursor:default;display:flex;height:var(--multiItemHeight,32px);line-height:var(--multiItemHeight,32px);margin:var(--multiItemMargin,5px 5px 0 0);max-width:100%;padding:var(--multiItemPadding,0 10px 0 15px)}.multiSelectItem_label.svelte-14r1jr2.svelte-14r1jr2{margin:var(--multiLabelMargin,0 5px 0 0);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.multiSelectItem.active.svelte-14r1jr2.svelte-14r1jr2,.multiSelectItem.svelte-14r1jr2.svelte-14r1jr2:hover{background-color:var(--multiItemActiveBG,#006fff);color:var(--multiItemActiveColor,#fff)}.multiSelectItem.disabled.svelte-14r1jr2.svelte-14r1jr2:hover{background:var(--multiItemDisabledHoverBg,#ebedef);color:var(--multiItemDisabledHoverColor,#c1c6cc)}.multiSelectItem_clear.svelte-14r1jr2.svelte-14r1jr2{background:var(--multiClearBG,#52616f);border-radius:var(--multiClearRadius,50%);height:var(--multiClearHeight,16px);max-width:var(--multiClearWidth,16px);min-width:var(--multiClearWidth,16px);padding:var(--multiClearPadding,1px);position:relative;text-align:var(--multiClearTextAlign,center);top:var(--multiClearTop,8px)}.active.svelte-14r1jr2 .multiSelectItem_clear.svelte-14r1jr2,.multiSelectItem_clear.svelte-14r1jr2.svelte-14r1jr2:hover{background:var(--multiClearHoverBG,#fff)}.active.svelte-14r1jr2 .multiSelectItem_clear svg.svelte-14r1jr2,.multiSelectItem_clear.svelte-14r1jr2:hover svg.svelte-14r1jr2{fill:var(--multiClearHoverFill,#006fff)}.multiSelectItem_clear.svelte-14r1jr2 svg.svelte-14r1jr2{fill:var(--multiClearFill,#ebedef);vertical-align:top}",""]);const r=i},46877:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".selectContainer.svelte-17qb5ew.svelte-17qb5ew{--padding:0 16px;align-items:center;background:var(--background,#fff);border:var(--border,1px solid #d8dbdf);border-radius:var(--borderRadius,3px);display:flex;height:var(--height,42px);padding:var(--padding);position:relative}.selectContainer.svelte-17qb5ew input.svelte-17qb5ew{background:transparent;border:none;color:var(--inputColor,#3f4f5f);cursor:default;font-size:var(--inputFontSize,14px);height:var(--height,42px);left:var(--inputLeft,0);letter-spacing:var(--inputLetterSpacing,-.08px);line-height:var(--height,42px);padding:var(--inputPadding,var(--padding));position:absolute;width:100%}.selectContainer.svelte-17qb5ew input.svelte-17qb5ew::-moz-placeholder{color:var(--placeholderColor,#78848f);opacity:var(--placeholderOpacity,1)}.selectContainer.svelte-17qb5ew input.svelte-17qb5ew:-ms-input-placeholder{color:var(--placeholderColor,#78848f);opacity:var(--placeholderOpacity,1)}.selectContainer.svelte-17qb5ew input.svelte-17qb5ew::placeholder{color:var(--placeholderColor,#78848f);opacity:var(--placeholderOpacity,1)}.selectContainer.svelte-17qb5ew input.svelte-17qb5ew:focus{outline:none}.selectContainer.svelte-17qb5ew.svelte-17qb5ew:hover{border-color:var(--borderHoverColor,#b2b8bf)}.selectContainer.focused.svelte-17qb5ew.svelte-17qb5ew{border-color:var(--borderFocusColor,#006fe8)}.selectContainer.disabled.svelte-17qb5ew.svelte-17qb5ew{background:var(--disabledBackground,#ebedef);border-color:var(--disabledBorderColor,#ebedef);color:var(--disabledColor,#c1c6cc)}.selectContainer.disabled.svelte-17qb5ew input.svelte-17qb5ew::-moz-placeholder{color:var(--disabledPlaceholderColor,#c1c6cc);opacity:var(--disabledPlaceholderOpacity,1)}.selectContainer.disabled.svelte-17qb5ew input.svelte-17qb5ew:-ms-input-placeholder{color:var(--disabledPlaceholderColor,#c1c6cc);opacity:var(--disabledPlaceholderOpacity,1)}.selectContainer.disabled.svelte-17qb5ew input.svelte-17qb5ew::placeholder{color:var(--disabledPlaceholderColor,#c1c6cc);opacity:var(--disabledPlaceholderOpacity,1)}.selectedItem.svelte-17qb5ew.svelte-17qb5ew{height:var(--height,42px);line-height:var(--height,42px);overflow-x:hidden;padding:var(--selectedItemPadding,0 20px 0 0)}.selectedItem.svelte-17qb5ew.svelte-17qb5ew:focus{outline:none}.clearSelect.svelte-17qb5ew.svelte-17qb5ew{bottom:var(--clearSelectBottom,11px);color:var(--clearSelectColor,#c5cacf);flex:none!important;position:absolute;right:var(--clearSelectRight,10px);top:var(--clearSelectTop,11px);width:var(--clearSelectWidth,20px)}.clearSelect.svelte-17qb5ew.svelte-17qb5ew:hover{color:var(--clearSelectHoverColor,#2c3e50)}.selectContainer.focused.svelte-17qb5ew .clearSelect.svelte-17qb5ew{color:var(--clearSelectFocusColor,#3f4f5f)}.indicator.svelte-17qb5ew.svelte-17qb5ew{color:var(--indicatorColor,#c5cacf);height:var(--indicatorHeight,20px);position:absolute;right:var(--indicatorRight,10px);top:var(--indicatorTop,11px);width:var(--indicatorWidth,20px)}.indicator.svelte-17qb5ew svg.svelte-17qb5ew{fill:var(--indicatorFill,currentcolor);stroke:var(--indicatorStroke,currentcolor);stroke-width:0;display:inline-block;line-height:1}.spinner.svelte-17qb5ew.svelte-17qb5ew{-webkit-animation:svelte-17qb5ew-rotate .75s linear infinite;animation:svelte-17qb5ew-rotate .75s linear infinite;color:var(--spinnerColor,#51ce6c);height:var(--spinnerHeight,20px);position:absolute;right:var(--spinnerRight,10px);top:var(--spinnerLeft,11px);width:var(--spinnerWidth,20px)}.spinner_icon.svelte-17qb5ew.svelte-17qb5ew{bottom:0;display:block;height:100%;left:0;margin:auto;position:absolute;right:0;top:0;-webkit-transform:none;transform-origin:center center;width:100%}.spinner_path.svelte-17qb5ew.svelte-17qb5ew{stroke-dasharray:90;stroke-linecap:round}.multiSelect.svelte-17qb5ew.svelte-17qb5ew{align-items:stretch;display:flex;flex-wrap:wrap;height:auto;padding:var(--multiSelectPadding,0 35px 0 16px)}.multiSelect.svelte-17qb5ew>.svelte-17qb5ew{flex:1 1 50px}.selectContainer.multiSelect.svelte-17qb5ew input.svelte-17qb5ew{margin:var(--multiSelectInputMargin,0);padding:var(--multiSelectInputPadding,0);position:relative}.hasError.svelte-17qb5ew.svelte-17qb5ew{background:var(--errorBackground,#fff);border:var(--errorBorder,1px solid #ff2d55)}@-webkit-keyframes svelte-17qb5ew-rotate{to{transform:rotate(1turn)}}@keyframes svelte-17qb5ew-rotate{to{transform:rotate(1turn)}}",""]);const r=i},9664:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".selection.svelte-ch6bh7{overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}",""]);const r=i},57948:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,"svelte-virtual-list-viewport.svelte-p6ehlv{-webkit-overflow-scrolling:touch;display:block;overflow-y:auto;position:relative}svelte-virtual-list-contents.svelte-p6ehlv,svelte-virtual-list-row.svelte-p6ehlv{display:block}svelte-virtual-list-row.svelte-p6ehlv{overflow:hidden}",""]);const r=i},60784:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,"#main-menu-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)!important;width:750px}#main-menu-dialog .mdc-dialog__content{padding-top:40px!important}#main-menu-dialog .mdc-dialog__title{border-bottom:1px solid rgba(0,0,0,.12);margin-bottom:0}#main-menu-dialog .mdc-button--outlined,#main-menu-dialog .mdc-button--raised{height:auto}",""]);const r=i},81970:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".mdc-button{height:auto;min-height:36px}",""]);const r=i},19653:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".z-index-full.svelte-193iq1{z-index:99999}",""]);const r=i},46583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".mdc-button{height:auto;min-height:36px}",""]);const r=i},49299:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(23645),i=n.n(a)()((function(e){return e[1]}));i.push([e.id,".items .listItem{border-bottom:1px solid #ccc}.items .item{height:auto!important;line-height:1.6!important;overflow:initial!important;padding-bottom:10px;padding-top:10px;text-overflow:clip!important;white-space:break-spaces!important}",""]);const r=i},23645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,a){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(a)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(i[s]=!0)}for(var o=0;o<e.length;o++){var d=[].concat(e[o]);a&&i[d[0]]||(n&&(d[2]?d[2]="".concat(n," and ").concat(d[2]):d[2]=n),t.push(d))}},t}},42786:function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},14130:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(a,i,r,s){var o=t(a),d=n[e][t(a)];return 2===o&&(d=d[i?0:1]),d.replace(/%d/i,a)}},i=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(30381))},96135:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(30381))},56440:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,r,s){var o=n(t),d=a[e][n(t)];return 2===o&&(d=d[i?0:1]),d.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(30381))},47702:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(30381))},16040:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(30381))},37100:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(30381))},30867:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,n,r,s){var o=a(t),d=i[e][a(t)];return 2===o&&(d=d[n?0:1]),d.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(30381))},31083:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10,a=e%100-n,i=e>=100?100:null;return e+(t[n]||t[a]||t[i])},week:{dow:1,doy:7}})}(n(30381))},9808:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"хвіліна":"хвіліну":"h"===a?n?"гадзіна":"гадзіну":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[a],+e)}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(30381))},68338:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(30381))},67438:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(30381))},76225:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(30381))},8905:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(30381))},11560:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(30381))},1278:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+i({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){switch(a(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}function a(e){return e>9?a(e%10):e}function i(e,t){return 2===t?r(e):e}function r(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],o=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,d=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,l=/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,u=[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],c=[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],m=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:m,fullWeekdaysParse:u,shortWeekdaysParse:c,minWeekdaysParse:m,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:d,monthsShortStrictRegex:l,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:n},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(30381))},80622:function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},2468:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(30381))},5822:function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),a=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function r(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekund":"pár sekundami";case"ss":return t||a?i+(r(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":a?"minutu":"minutou";case"mm":return t||a?i+(r(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(r(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||a?"den":"dnem";case"dd":return t||a?i+(r(e)?"dny":"dní"):i+"dny";case"M":return t||a?"měsíc":"měsícem";case"MM":return t||a?i+(r(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||a?"rok":"rokem";case"yy":return t||a?i+(r(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},50877:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(30381))},47373:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(30381))},24780:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},60217:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},60894:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},59740:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},5300:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(30381))},50837:function(e,t,n){!function(e){"use strict";function t(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,n){var a=this._calendarEl[e],i=n&&n.hours();return t(a)&&(a=a.apply(n)),a.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(30381))},78348:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(30381))},77925:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(30381))},22243:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(30381))},46436:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(30381))},47207:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(30381))},44175:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(30381))},76319:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(30381))},31662:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(30381))},92915:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(30381))},55251:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},96112:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(30381))},71146:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(30381))},55655:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),a=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(30381))},5603:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:a?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},77763:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},76959:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(30381))},11897:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function a(e,t,n,a){var r="";switch(n){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":r=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":r=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return r=i(e,a)+" "+r}function i(e,a){return e<10?a?n[e]:t[e]:e}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},42549:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(30381))},94694:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},63049:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(30381))},52330:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(30381))},94470:function(e,t,n){!function(e){"use strict";var t=/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,a=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,i=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:t,monthsShortStrictRegex:n,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(30381))},5044:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},29295:function(e,t,n){!function(e){"use strict";var t=["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],n=["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],a=["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],i=["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],r=["Do","Lu","Má","Cé","Dé","A","Sa"];e.defineLocale("ga",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:a,weekdaysShort:i,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(30381))},2101:function(e,t,n){!function(e){"use strict";var t=["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],n=["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],a=["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],i=["Did","Dil","Dim","Dic","Dia","Dih","Dis"],r=["Dò","Lu","Mà","Ci","Ar","Ha","Sa"];e.defineLocale("gd",{months:t,monthsShort:n,monthsParseExact:!0,weekdays:a,weekdaysShort:i,weekdaysMin:r,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(30381))},38794:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},27884:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return a?i[n][0]:i[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(30381))},23168:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return a?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(30381))},95349:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(30381))},24206:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(30381))},30094:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},a=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i],i=[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:a,longMonthsParse:a,shortMonthsParse:i,monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(30381))},30316:function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=e+" ";switch(n){case"ss":return a+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return a+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return a+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return a+=1===e?"dan":"dana";case"MM":return a+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return a+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},22138:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,a){var i=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(a||t)?" másodperc":" másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return i+(a||t?" perc":" perce");case"h":return"egy"+(a||t?" óra":" órája");case"hh":return i+(a||t?" óra":" órája");case"d":return"egy"+(a||t?" nap":" napja");case"dd":return i+(a||t?" nap":" napja");case"M":return"egy"+(a||t?" hónap":" hónapja");case"MM":return i+(a||t?" hónap":" hónapja");case"y":return"egy"+(a||t?" év":" éve");case"yy":return i+(a||t?" év":" éve")}return""}function a(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return a.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return a.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},11423:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(30381))},29218:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(30381))},90135:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,a,i){var r=e+" ";switch(a){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?r+(n||i?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?r+(n||i?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return t(e)?r+(n||i?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?r+"dagar":r+(i?"daga":"dögum"):n?r+"dagur":r+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?r+"mánuðir":r+(i?"mánuði":"mánuðum"):n?r+"mánuður":r+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?r+(n||i?"ár":"árum"):r+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},10150:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},90626:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},39183:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(30381))},24286:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(30381))},12105:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(30381))},47772:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n(30381))},18758:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(30381))},79282:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(30381))},33730:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(30381))},1408:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},a=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:a,monthsShort:a,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(30381))},33291:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n(30381))},36841:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){return i(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e}function a(e){return i(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e}function i(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return i(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return i(e)}return i(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:n,past:a,s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},55466:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(30381))},57010:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,a){return t?"kelios sekundės":a?"kelių sekundžių":"kelias sekundes"}function a(e,t,n,a){return t?r(n)[0]:a?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function s(e,t,n,s){var o=e+" ";return 1===e?o+a(e,t,n[0],s):t?o+(i(e)?r(n)[1]:r(n)[0]):s?o+r(n)[1]:o+(i(e)?r(n)[1]:r(n)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:s,m:a,mm:s,h:a,hh:s,d:a,dd:s,M:a,MM:s,y:a,yy:s},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(30381))},37595:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function a(e,a,i){return e+" "+n(t[i],e,a)}function i(e,a,i){return n(t[i],e,a)}function r(e,t){return t?"dažas sekundes":"dažām sekundēm"}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:r,ss:a,m:i,mm:a,h:i,hh:a,d:i,dd:a,M:i,MM:a,y:i,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},39861:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var i=t.words[a];return 1===a.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},35493:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},95966:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(30381))},87341:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(30381))},5115:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(30381))},10370:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function a(e,t,n,a){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(30381))},41237:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(30381))},9847:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(30381))},72126:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},56165:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(30381))},64924:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},16744:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(30381))},59814:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},93901:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),a=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,a){return e?/-MMM-/.test(a)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(30381))},83877:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},92135:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(30381))},15858:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(30381))},64495:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function r(e,t,n){var a=e+" ";switch(n){case"ss":return a+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return a+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return a+(i(e)?"godziny":"godzin");case"ww":return a+(i(e)?"tygodnie":"tygodni");case"MM":return a+(i(e)?"miesiące":"miesięcy");case"yy":return a+(i(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,a){return e?/D MMMM/.test(a)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},57971:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(30381))},89520:function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(30381))},96459:function(e,t,n){!function(e){"use strict";function t(e,t,n){var a=" ";return(e%100>=20||e>=100&&e%100==0)&&(a=" de "),e+a+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(30381))},21793:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"минута":"минуту":e+" "+t({ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[a],+e)}var a=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:a,longMonthsParse:a,shortMonthsParse:a,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:n,m:n,mm:n,h:"час",hh:n,d:"день",dd:n,w:"неделя",ww:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(30381))},40950:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(30381))},10490:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},90124:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(30381))},64249:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function a(e){return e>1&&e<5}function i(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?r+(a(e)?"sekundy":"sekúnd"):r+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?r+(a(e)?"minúty":"minút"):r+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(a(e)?"hodiny":"hodín"):r+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?r+(a(e)?"dni":"dní"):r+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?r+(a(e)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?r+(a(e)?"roky":"rokov"):r+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},14985:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||a?"sekundi":"sekundah":e<5?t||a?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||a?"minuti":"minutama":e<5?t||a?"minute":"minutami":t||a?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||a?"uri":"urama":e<5?t||a?"ure":"urami":t||a?"ur":"urami";case"d":return t||a?"en dan":"enim dnem";case"dd":return i+=1===e?t||a?"dan":"dnem":2===e?t||a?"dni":"dnevoma":t||a?"dni":"dnevi";case"M":return t||a?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||a?"mesec":"mesecem":2===e?t||a?"meseca":"mesecema":e<5?t||a?"mesece":"meseci":t||a?"mesecev":"meseci";case"y":return t||a?"eno leto":"enim letom";case"yy":return i+=1===e?t||a?"leto":"letom":2===e?t||a?"leti":"letoma":e<5?t||a?"leta":"leti":t||a?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},51104:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},79915:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var i=t.words[a];return 1===a.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},49131:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,a){var i=t.words[a];return 1===a.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(30381))},85893:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(30381))},98760:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(30381))},91172:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(30381))},27333:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(30381))},23110:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(30381))},52095:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(30381))},27321:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,a=e>=100?100:null;return e+(t[e]||t[n]||t[a])},week:{dow:1,doy:7}})}(n(30381))},9041:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(30381))},19005:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var a=e%10,i=e%100-a,r=e>=100?100:null;return e+(t[a]||t[i]||t[r])}},week:{dow:1,doy:7}})}(n(30381))},75768:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(30381))},89444:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"}function a(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"}function i(e,t,n,a){var i=r(e);switch(n){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}function r(e){var n=Math.floor(e%1e3/100),a=Math.floor(e%100/10),i=e%10,r="";return n>0&&(r+=t[n]+"vatlh"),a>0&&(r+=(""!==r?" ":"")+t[a]+"maH"),i>0&&(r+=(""!==r?" ":"")+t[i]),""===r?"pagh":r}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:n,past:a,s:"puS lup",ss:i,m:"wa’ tup",mm:i,h:"wa’ rep",hh:i,d:"wa’ jaj",dd:i,M:"wa’ jar",MM:i,y:"wa’ DIS",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},72397:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var a=e%10,i=e%100-a,r=e>=100?100:null;return e+(t[a]||t[i]||t[r])}},week:{dow:1,doy:7}})}(n(30381))},28254:function(e,t,n){!function(e){"use strict";function t(e,t,n,a){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return a||t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(30381))},30699:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(30381))},51106:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(30381))},9288:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"يېرىم كېچە":a<900?"سەھەر":a<1130?"چۈشتىن بۇرۇن":a<1230?"چۈش":a<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(30381))},67691:function(e,t,n){!function(e){"use strict";function t(e,t){var n=e.split("_");return t%10==1&&t%100!=11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,a){return"m"===a?n?"хвилина":"хвилину":"h"===a?n?"година":"годину":e+" "+t({ss:n?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:n?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:n?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[a],+e)}function a(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative}function i(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:a,weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:i("[Сьогодні "),nextDay:i("[Завтра "),lastDay:i("[Вчора "),nextWeek:i("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return i("[Минулої] dddd [").call(this);case 1:case 2:case 4:return i("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:n,m:n,mm:n,h:"годину",hh:n,d:"день",dd:n,M:"місяць",MM:n,y:"рік",yy:n},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(30381))},13795:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(30381))},60588:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(30381))},6791:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(30381))},65666:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(30381))},14378:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(30381))},75805:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(30381))},83839:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(30381))},55726:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1200?"上午":1200===a?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(30381))},99807:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(30381))},74152:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var a=100*e+t;return a<600?"凌晨":a<900?"早上":a<1130?"上午":a<1230?"中午":a<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(30381))},46700:(e,t,n)=>{var a={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function i(e){var t=r(e);return n(t)}function r(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=r,e.exports=i,i.id=46700},30381:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,a;function i(){return t.apply(null,arguments)}function r(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function d(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(d(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function m(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function _(e,t){var n,a=[];for(n=0;n<e.length;++n)a.push(t(e[n],n));return a}function h(e,t){for(var n in t)d(t,n)&&(e[n]=t[n]);return d(t,"toString")&&(e.toString=t.toString),d(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,a){return Bn(e,t,n,a,!0).utc()}function p(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=p()),e._pf}function L(e){if(null==e._isValid){var t=g(e),n=a.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=f(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}a=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),a=n.length>>>0;for(t=0;t<a;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=i.momentProperties=[],M=!1;function b(e,t){var n,a,i;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=g(t)),u(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)u(i=t[a=v[n]])||(e[a]=i);return e}function Y(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===M&&(M=!0,i.updateOffset(this),M=!1)}function k(e){return e instanceof Y||null!=e&&null!=e._isAMomentObject}function w(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return h((function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var a,r,s,o=[];for(r=0;r<arguments.length;r++){if(a="","object"==typeof arguments[r]){for(s in a+="\n["+r+"] ",arguments[0])d(arguments[0],s)&&(a+=s+": "+arguments[0][s]+", ");a=a.slice(0,-2)}else a=arguments[r];o.push(a)}w(e+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var D,x={};function $(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),x[e]||(w(t),x[e]=!0)}function S(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function j(e){var t,n;for(n in e)d(e,n)&&(S(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function H(e,t){var n,a=h({},e);for(n in t)d(t,n)&&(o(e[n])&&o(t[n])?(a[n]={},h(a[n],e[n]),h(a[n],t[n])):null!=t[n]?a[n]=t[n]:delete a[n]);for(n in e)d(e,n)&&!d(t,n)&&o(e[n])&&(a[n]=h({},a[n]));return a}function C(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,D=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)d(e,t)&&n.push(t);return n};var E={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function O(e,t,n){var a=this._calendar[e]||this._calendar.sameElse;return S(a)?a.call(t,n):a}function A(e,t,n){var a=""+Math.abs(e),i=t-a.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+a}var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},F={};function N(e,t,n,a){var i=a;"string"==typeof a&&(i=function(){return this[a]()}),e&&(F[e]=i),t&&(F[t[0]]=function(){return A(i.apply(this,arguments),t[1],t[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,a=e.match(I);for(t=0,n=a.length;t<n;t++)F[a[t]]?a[t]=F[a[t]]:a[t]=z(a[t]);return function(t){var i,r="";for(i=0;i<n;i++)r+=S(a[i])?a[i].call(t,e):a[i];return r}}function W(e,t){return e.isValid()?(t=V(t,e.localeData()),P[t]=P[t]||U(t),P[t](e)):e.localeData().invalidDate()}function V(e,t){var n=5;function a(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,a),R.lastIndex=0,n-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(I).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var B="Invalid date";function Z(){return this._invalidDate}var J="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,a){var i=this._relativeTime[n];return S(i)?i(e,t,n,a):i.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return S(n)?n(t):n.replace(/%s/i,t)}var ne={};function ae(e,t){var n=e.toLowerCase();ne[n]=ne[n+"s"]=ne[t]=e}function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function re(e){var t,n,a={};for(n in e)d(e,n)&&(t=ie(n))&&(a[t]=e[n]);return a}var se={};function oe(e,t){se[e]=t}function de(e){var t,n=[];for(t in e)d(e,t)&&n.push({unit:t,priority:se[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function me(e,t){return function(n){return null!=n?(he(this,e,n),i.updateOffset(this,t),this):_e(this,e)}}function _e(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),et(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function fe(e){return S(this[e=ie(e)])?this[e]():this}function pe(e,t){if("object"==typeof e){var n,a=de(e=re(e));for(n=0;n<a.length;n++)this[a[n].unit](e[a[n].unit])}else if(S(this[e=ie(e)]))return this[e](t);return this}var ge,Le=/\d/,ye=/\d\d/,ve=/\d{3}/,Me=/\d{4}/,be=/[+-]?\d{6}/,Ye=/\d\d?/,ke=/\d\d\d\d?/,we=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,De=/\d{1,4}/,xe=/[+-]?\d{1,6}/,$e=/\d+/,Se=/[+-]?\d+/,je=/Z|[+-]\d\d:?\d\d/gi,He=/Z|[+-]\d\d(?::?\d\d)?/gi,Ce=/[+-]?\d+(\.\d{1,3})?/,Ee=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Oe(e,t,n){ge[e]=S(t)?t:function(e,a){return e&&n?n:t}}function Ae(e,t){return d(ge,e)?ge[e](t._strict,t._locale):new RegExp(Ie(e))}function Ie(e){return Re(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,a,i){return t||n||a||i})))}function Re(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ge={};var Pe={};function Fe(e,t){var n,a=t;for("string"==typeof e&&(e=[e]),c(t)&&(a=function(e,n){n[t]=ce(e)}),n=0;n<e.length;n++)Pe[e[n]]=a}function Ne(e,t){Fe(e,(function(e,n,a,i){a._w=a._w||{},t(e,a._w,a,i)}))}function ze(e,t,n){null!=t&&d(Pe,e)&&Pe[e](t,n._a,n,e)}var Ue,We=0,Ve=1,Ge=2,qe=3,Be=4,Ze=5,Je=6,Ke=7,Xe=8;function Qe(e,t){return(e%t+t)%t}function et(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Qe(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}Ue=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ae("month","M"),oe("month",8),Oe("M",Ye),Oe("MM",Ye,ye),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Fe(["M","MM"],(function(e,t){t[Ve]=ce(e)-1})),Fe(["MMM","MMMM"],(function(e,t,n,a){var i=n._locale.monthsParse(e,a,n._strict);null!=i?t[Ve]=i:g(n).invalidMonth=e}));var tt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),at=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,it=Ee,rt=Ee;function st(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||at).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ot(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[at.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function dt(e,t,n){var a,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],a=0;a<12;++a)r=f([2e3,a]),this._shortMonthsParse[a]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[a]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ue.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ue.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=Ue.call(this._shortMonthsParse,s))||-1!==(i=Ue.call(this._longMonthsParse,s))?i:null:-1!==(i=Ue.call(this._longMonthsParse,s))||-1!==(i=Ue.call(this._shortMonthsParse,s))?i:null}function lt(e,t,n){var a,i,r;if(this._monthsParseExact)return dt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),a=0;a<12;a++){if(i=f([2e3,a]),n&&!this._longMonthsParse[a]&&(this._longMonthsParse[a]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[a]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[a]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[a]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[a].test(e))return a;if(n&&"MMM"===t&&this._shortMonthsParse[a].test(e))return a;if(!n&&this._monthsParse[a].test(e))return a}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),et(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(ut(this,e),i.updateOffset(this,!0),this):_e(this,"Month")}function mt(){return et(this.year(),this.month())}function _t(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ft.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=it),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(d(this,"_monthsRegex")||ft.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=rt),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ft(){function e(e,t){return t.length-e.length}var t,n,a=[],i=[],r=[];for(t=0;t<12;t++)n=f([2e3,t]),a.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(a.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)a[t]=Re(a[t]),i[t]=Re(i[t]);for(t=0;t<24;t++)r[t]=Re(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function pt(e){return le(e)?366:365}N("Y",0,0,(function(){var e=this.year();return e<=9999?A(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),ae("year","y"),oe("year",1),Oe("Y",Se),Oe("YY",Ye,ye),Oe("YYYY",De,Me),Oe("YYYYY",xe,be),Oe("YYYYYY",xe,be),Fe(["YYYYY","YYYYYY"],We),Fe("YYYY",(function(e,t){t[We]=2===e.length?i.parseTwoDigitYear(e):ce(e)})),Fe("YY",(function(e,t){t[We]=i.parseTwoDigitYear(e)})),Fe("Y",(function(e,t){t[We]=parseInt(e,10)})),i.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var gt=me("FullYear",!0);function Lt(){return le(this.year())}function yt(e,t,n,a,i,r,s){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,a,i,r,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,a,i,r,s),o}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Mt(e,t,n){var a=7+t-n;return-(7+vt(e,0,a).getUTCDay()-t)%7+a-1}function bt(e,t,n,a,i){var r,s,o=1+7*(t-1)+(7+n-a)%7+Mt(e,a,i);return o<=0?s=pt(r=e-1)+o:o>pt(e)?(r=e+1,s=o-pt(e)):(r=e,s=o),{year:r,dayOfYear:s}}function Yt(e,t,n){var a,i,r=Mt(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?a=s+kt(i=e.year()-1,t,n):s>kt(e.year(),t,n)?(a=s-kt(e.year(),t,n),i=e.year()+1):(i=e.year(),a=s),{week:a,year:i}}function kt(e,t,n){var a=Mt(e,t,n),i=Mt(e+1,t,n);return(pt(e)-a+i)/7}function wt(e){return Yt(e,this._week.dow,this._week.doy).week}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),ae("week","w"),ae("isoWeek","W"),oe("week",5),oe("isoWeek",5),Oe("w",Ye),Oe("ww",Ye,ye),Oe("W",Ye),Oe("WW",Ye,ye),Ne(["w","ww","W","WW"],(function(e,t,n,a){t[a.substr(0,1)]=ce(e)}));var Tt={dow:0,doy:6};function Dt(){return this._week.dow}function xt(){return this._week.doy}function $t(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function St(e){var t=Yt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function jt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ht(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ct(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),ae("day","d"),ae("weekday","e"),ae("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Oe("d",Ye),Oe("e",Ye),Oe("E",Ye),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ne(["dd","ddd","dddd"],(function(e,t,n,a){var i=n._locale.weekdaysParse(e,a,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e})),Ne(["d","e","E"],(function(e,t,n,a){t[a]=ce(e)}));var Et="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ot="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),At="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),It=Ee,Rt=Ee,Pt=Ee;function Ft(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ct(n,this._week.dow):e?n[e.day()]:n}function Nt(e){return!0===e?Ct(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zt(e){return!0===e?Ct(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ut(e,t,n){var a,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],a=0;a<7;++a)r=f([2e3,1]).day(a),this._minWeekdaysParse[a]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[a]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[a]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=Ue.call(this._weekdaysParse,s))||-1!==(i=Ue.call(this._shortWeekdaysParse,s))||-1!==(i=Ue.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=Ue.call(this._shortWeekdaysParse,s))||-1!==(i=Ue.call(this._weekdaysParse,s))||-1!==(i=Ue.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ue.call(this._minWeekdaysParse,s))||-1!==(i=Ue.call(this._weekdaysParse,s))||-1!==(i=Ue.call(this._shortWeekdaysParse,s))?i:null}function Wt(e,t,n){var a,i,r;if(this._weekdaysParseExact)return Ut.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),a=0;a<7;a++){if(i=f([2e3,1]).day(a),n&&!this._fullWeekdaysParse[a]&&(this._fullWeekdaysParse[a]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[a]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[a]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[a]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[a]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[a].test(e))return a;if(n&&"ddd"===t&&this._shortWeekdaysParse[a].test(e))return a;if(n&&"dd"===t&&this._minWeekdaysParse[a].test(e))return a;if(!n&&this._weekdaysParse[a].test(e))return a}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=jt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function qt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ht(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Bt(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=It),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jt(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Pt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,a,i,r,s=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),a=Re(this.weekdaysMin(n,"")),i=Re(this.weekdaysShort(n,"")),r=Re(this.weekdays(n,"")),s.push(a),o.push(i),d.push(r),l.push(a),l.push(i),l.push(r);s.sort(e),o.sort(e),d.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Xt),N("k",["kk",2],0,Qt),N("hmm",0,0,(function(){return""+Xt.apply(this)+A(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Xt.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),en("a",!0),en("A",!1),ae("hour","h"),oe("hour",13),Oe("a",tn),Oe("A",tn),Oe("H",Ye),Oe("h",Ye),Oe("k",Ye),Oe("HH",Ye,ye),Oe("hh",Ye,ye),Oe("kk",Ye,ye),Oe("hmm",ke),Oe("hmmss",we),Oe("Hmm",ke),Oe("Hmmss",we),Fe(["H","HH"],qe),Fe(["k","kk"],(function(e,t,n){var a=ce(e);t[qe]=24===a?0:a})),Fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Fe(["h","hh"],(function(e,t,n){t[qe]=ce(e),g(n).bigHour=!0})),Fe("hmm",(function(e,t,n){var a=e.length-2;t[qe]=ce(e.substr(0,a)),t[Be]=ce(e.substr(a)),g(n).bigHour=!0})),Fe("hmmss",(function(e,t,n){var a=e.length-4,i=e.length-2;t[qe]=ce(e.substr(0,a)),t[Be]=ce(e.substr(a,2)),t[Ze]=ce(e.substr(i)),g(n).bigHour=!0})),Fe("Hmm",(function(e,t,n){var a=e.length-2;t[qe]=ce(e.substr(0,a)),t[Be]=ce(e.substr(a))})),Fe("Hmmss",(function(e,t,n){var a=e.length-4,i=e.length-2;t[qe]=ce(e.substr(0,a)),t[Be]=ce(e.substr(a,2)),t[Ze]=ce(e.substr(i))}));var an=/[ap]\.?m?\.?/i,rn=me("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,dn={calendar:E,longDateFormat:G,invalidDate:B,ordinal:J,dayOfMonthOrdinalParse:K,relativeTime:Q,months:tt,monthsShort:nt,week:Tt,weekdays:Et,weekdaysMin:At,weekdaysShort:Ot,meridiemParse:an},ln={},un={};function cn(e,t){var n,a=Math.min(e.length,t.length);for(n=0;n<a;n+=1)if(e[n]!==t[n])return n;return a}function mn(e){return e?e.toLowerCase().replace("_","-"):e}function _n(e){for(var t,n,a,i,r=0;r<e.length;){for(t=(i=mn(e[r]).split("-")).length,n=(n=mn(e[r+1]))?n.split("-"):null;t>0;){if(a=hn(i.slice(0,t).join("-")))return a;if(n&&n.length>=t&&cn(i,n)>=t-1)break;t--}r++}return on}function hn(t){var a=null;if(void 0===ln[t]&&e&&e.exports)try{a=on._abbr,n(46700)("./"+t),fn(a)}catch(e){ln[t]=null}return ln[t]}function fn(e,t){var n;return e&&((n=u(t)?Ln(e):pn(e,t))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function pn(e,t){if(null!==t){var n,a=dn;if(t.abbr=e,null!=ln[e])$("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),a=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])a=ln[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;a=n._config}return ln[e]=new C(H(a,t)),un[e]&&un[e].forEach((function(e){pn(e.name,e.config)})),fn(e),ln[e]}return delete ln[e],null}function gn(e,t){if(null!=t){var n,a,i=dn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(H(ln[e]._config,t)):(null!=(a=hn(e))&&(i=a._config),t=H(i,t),null==a&&(t.abbr=e),(n=new C(t)).parentLocale=ln[e],ln[e]=n),fn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===fn()&&fn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function Ln(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!s(e)){if(t=hn(e))return t;e=[e]}return _n(e)}function yn(){return D(ln)}function vn(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[Ve]<0||n[Ve]>11?Ve:n[Ge]<1||n[Ge]>et(n[We],n[Ve])?Ge:n[qe]<0||n[qe]>24||24===n[qe]&&(0!==n[Be]||0!==n[Ze]||0!==n[Je])?qe:n[Be]<0||n[Be]>59?Be:n[Ze]<0||n[Ze]>59?Ze:n[Je]<0||n[Je]>999?Je:-1,g(e)._overflowDayOfYear&&(t<We||t>Ge)&&(t=Ge),g(e)._overflowWeeks&&-1===t&&(t=Ke),g(e)._overflowWeekday&&-1===t&&(t=Xe),g(e).overflow=t),e}var Mn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],wn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tn=/^\/?Date\((-?\d+)/i,Dn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function $n(e){var t,n,a,i,r,s,o=e._i,d=Mn.exec(o)||bn.exec(o);if(d){for(g(e).iso=!0,t=0,n=kn.length;t<n;t++)if(kn[t][1].exec(d[1])){i=kn[t][0],a=!1!==kn[t][2];break}if(null==i)return void(e._isValid=!1);if(d[3]){for(t=0,n=wn.length;t<n;t++)if(wn[t][1].exec(d[3])){r=(d[2]||" ")+wn[t][0];break}if(null==r)return void(e._isValid=!1)}if(!a&&null!=r)return void(e._isValid=!1);if(d[4]){if(!Yn.exec(d[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),Nn(e)}else e._isValid=!1}function Sn(e,t,n,a,i,r){var s=[jn(e),nt.indexOf(t),parseInt(n,10),parseInt(a,10),parseInt(i,10)];return r&&s.push(parseInt(r,10)),s}function jn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Hn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Cn(e,t,n){return!e||Ot.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function En(e,t,n){if(e)return xn[e];if(t)return 0;var a=parseInt(n,10),i=a%100;return(a-i)/100*60+i}function On(e){var t,n=Dn.exec(Hn(e._i));if(n){if(t=Sn(n[4],n[3],n[2],n[5],n[6],n[7]),!Cn(n[1],t,e))return;e._a=t,e._tzm=En(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function An(e){var t=Tn.exec(e._i);null===t?($n(e),!1===e._isValid&&(delete e._isValid,On(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function In(e,t,n){return null!=e?e:null!=t?t:n}function Rn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Pn(e){var t,n,a,i,r,s=[];if(!e._d){for(a=Rn(e),e._w&&null==e._a[Ge]&&null==e._a[Ve]&&Fn(e),null!=e._dayOfYear&&(r=In(e._a[We],a[We]),(e._dayOfYear>pt(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(r,0,e._dayOfYear),e._a[Ve]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=a[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[qe]&&0===e._a[Be]&&0===e._a[Ze]&&0===e._a[Je]&&(e._nextDay=!0,e._a[qe]=0),e._d=(e._useUTC?vt:yt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[qe]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Fn(e){var t,n,a,i,r,s,o,d,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,s=4,n=In(t.GG,e._a[We],Yt(Zn(),1,4).year),a=In(t.W,1),((i=In(t.E,1))<1||i>7)&&(d=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,l=Yt(Zn(),r,s),n=In(t.gg,e._a[We],l.year),a=In(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(d=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(d=!0)):i=r),a<1||a>kt(n,r,s)?g(e)._overflowWeeks=!0:null!=d?g(e)._overflowWeekday=!0:(o=bt(n,a,i,r,s),e._a[We]=o.year,e._dayOfYear=o.dayOfYear)}function Nn(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],g(e).empty=!0;var t,n,a,r,s,o,d=""+e._i,l=d.length,u=0;for(a=V(e._f,e._locale).match(I)||[],t=0;t<a.length;t++)r=a[t],(n=(d.match(Ae(r,e))||[])[0])&&((s=d.substr(0,d.indexOf(n))).length>0&&g(e).unusedInput.push(s),d=d.slice(d.indexOf(n)+n.length),u+=n.length),F[r]?(n?g(e).empty=!1:g(e).unusedTokens.push(r),ze(r,n,e)):e._strict&&!n&&g(e).unusedTokens.push(r);g(e).charsLeftOver=l-u,d.length>0&&g(e).unusedInput.push(d),e._a[qe]<=12&&!0===g(e).bigHour&&e._a[qe]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[qe]=zn(e._locale,e._a[qe],e._meridiem),null!==(o=g(e).era)&&(e._a[We]=e._locale.erasConvertYear(o,e._a[We])),Pn(e),vn(e)}else On(e);else $n(e)}function zn(e,t,n){var a;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((a=e.isPM(n))&&t<12&&(t+=12),a||12!==t||(t=0),t):t}function Un(e){var t,n,a,i,r,s,o=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)r=0,s=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Nn(t),L(t)&&(s=!0),r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,o?r<a&&(a=r,n=t):(null==a||r<a||s)&&(a=r,n=t,s&&(o=!0));h(e,n||t)}function Wn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=_([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Pn(e)}}function Vn(e){var t=new Y(vn(Gn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gn(e){var t=e._i,n=e._f;return e._locale=e._locale||Ln(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new Y(vn(t)):(m(t)?e._d=t:s(n)?Un(e):n?Nn(e):qn(e),L(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(i.now()):m(t)?e._d=new Date(t.valueOf()):"string"==typeof t?An(e):s(t)?(e._a=_(t.slice(0),(function(e){return parseInt(e,10)})),Pn(e)):o(t)?Wn(e):c(t)?e._d=new Date(t):i.createFromInputFallback(e)}function Bn(e,t,n,a,i){var r={};return!0!==t&&!1!==t||(a=t,t=void 0),!0!==n&&!1!==n||(a=n,n=void 0),(o(e)&&l(e)||s(e)&&0===e.length)&&(e=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=a,Vn(r)}function Zn(e,t,n,a){return Bn(e,t,n,a,!1)}i.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),i.ISO_8601=function(){},i.RFC_2822=function(){};var Jn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Kn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Zn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Xn(e,t){var n,a;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Zn();for(n=t[0],a=1;a<t.length;++a)t[a].isValid()&&!t[a][e](n)||(n=t[a]);return n}function Qn(){return Xn("isBefore",[].slice.call(arguments,0))}function ea(){return Xn("isAfter",[].slice.call(arguments,0))}var ta=function(){return Date.now?Date.now():+new Date},na=["year","quarter","month","week","day","hour","minute","second","millisecond"];function aa(e){var t,n,a=!1;for(t in e)if(d(e,t)&&(-1===Ue.call(na,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<na.length;++n)if(e[na[n]]){if(a)return!1;parseFloat(e[na[n]])!==ce(e[na[n]])&&(a=!0)}return!0}function ia(){return this._isValid}function ra(){return xa(NaN)}function sa(e){var t=re(e),n=t.year||0,a=t.quarter||0,i=t.month||0,r=t.week||t.isoWeek||0,s=t.day||0,o=t.hour||0,d=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=aa(t),this._milliseconds=+u+1e3*l+6e4*d+1e3*o*60*60,this._days=+s+7*r,this._months=+i+3*a+12*n,this._data={},this._locale=Ln(),this._bubble()}function oa(e){return e instanceof sa}function da(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function la(e,t,n){var a,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(a=0;a<i;a++)(n&&e[a]!==t[a]||!n&&ce(e[a])!==ce(t[a]))&&s++;return s+r}function ua(e,t){N(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+A(~~(e/60),2)+t+A(~~e%60,2)}))}ua("Z",":"),ua("ZZ",""),Oe("Z",He),Oe("ZZ",He),Fe(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=ma(He,e)}));var ca=/([\+\-]|\d\d)/gi;function ma(e,t){var n,a,i=(t||"").match(e);return null===i?null:0===(a=60*(n=((i[i.length-1]||[])+"").match(ca)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?a:-a}function _a(e,t){var n,a;return t._isUTC?(n=t.clone(),a=(k(e)||m(e)?e.valueOf():Zn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),i.updateOffset(n,!1),n):Zn(e).local()}function ha(e){return-Math.round(e._d.getTimezoneOffset())}function fa(e,t,n){var a,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=ma(He,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(a=ha(this)),this._offset=e,this._isUTC=!0,null!=a&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Ca(this,xa(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ha(this)}function pa(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function ga(e){return this.utcOffset(0,e)}function La(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ha(this),"m")),this}function ya(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=ma(je,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function va(e){return!!this.isValid()&&(e=e?Zn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ma(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function ba(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Gn(t))._a?(e=t._isUTC?f(t._a):Zn(t._a),this._isDSTShifted=this.isValid()&&la(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ya(){return!!this.isValid()&&!this._isUTC}function ka(){return!!this.isValid()&&this._isUTC}function wa(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var Ta=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Da=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function xa(e,t){var n,a,i,r=e,s=null;return oa(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(s=Ta.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:ce(s[Ge])*n,h:ce(s[qe])*n,m:ce(s[Be])*n,s:ce(s[Ze])*n,ms:ce(da(1e3*s[Je]))*n}):(s=Da.exec(e))?(n="-"===s[1]?-1:1,r={y:$a(s[2],n),M:$a(s[3],n),w:$a(s[4],n),d:$a(s[5],n),h:$a(s[6],n),m:$a(s[7],n),s:$a(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=ja(Zn(r.from),Zn(r.to)),(r={}).ms=i.milliseconds,r.M=i.months),a=new sa(r),oa(e)&&d(e,"_locale")&&(a._locale=e._locale),oa(e)&&d(e,"_isValid")&&(a._isValid=e._isValid),a}function $a(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Sa(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ja(e,t){var n;return e.isValid()&&t.isValid()?(t=_a(t,e),e.isBefore(t)?n=Sa(e,t):((n=Sa(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ha(e,t){return function(n,a){var i;return null===a||isNaN(+a)||($(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=a,a=i),Ca(this,xa(n,a),e),this}}function Ca(e,t,n,a){var r=t._milliseconds,s=da(t._days),o=da(t._months);e.isValid()&&(a=null==a||a,o&&ut(e,_e(e,"Month")+o*n),s&&he(e,"Date",_e(e,"Date")+s*n),r&&e._d.setTime(e._d.valueOf()+r*n),a&&i.updateOffset(e,s||o))}xa.fn=sa.prototype,xa.invalid=ra;var Ea=Ha(1,"add"),Oa=Ha(-1,"subtract");function Aa(e){return"string"==typeof e||e instanceof String}function Ia(e){return k(e)||m(e)||Aa(e)||c(e)||Pa(e)||Ra(e)||null==e}function Ra(e){var t,n,a=o(e)&&!l(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<r.length;t+=1)n=r[t],i=i||d(e,n);return a&&i}function Pa(e){var t=s(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Aa(e)})).length),t&&n}function Fa(e){var t,n,a=o(e)&&!l(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)n=r[t],i=i||d(e,n);return a&&i}function Na(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function za(e,t){1===arguments.length&&(arguments[0]?Ia(arguments[0])?(e=arguments[0],t=void 0):Fa(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Zn(),a=_a(n,this).startOf("day"),r=i.calendarFormat(this,a)||"sameElse",s=t&&(S(t[r])?t[r].call(this,n):t[r]);return this.format(s||this.localeData().calendar(r,this,Zn(n)))}function Ua(){return new Y(this)}function Wa(e,t){var n=k(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Va(e,t){var n=k(e)?e:Zn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Ga(e,t,n,a){var i=k(e)?e:Zn(e),r=k(t)?t:Zn(t);return!!(this.isValid()&&i.isValid()&&r.isValid())&&("("===(a=a||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===a[1]?this.isBefore(r,n):!this.isAfter(r,n))}function qa(e,t){var n,a=k(e)?e:Zn(e);return!(!this.isValid()||!a.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===a.valueOf():(n=a.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Ba(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Za(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ja(e,t,n){var a,i,r;if(!this.isValid())return NaN;if(!(a=_a(e,this)).isValid())return NaN;switch(i=6e4*(a.utcOffset()-this.utcOffset()),t=ie(t)){case"year":r=Ka(this,a)/12;break;case"month":r=Ka(this,a);break;case"quarter":r=Ka(this,a)/3;break;case"second":r=(this-a)/1e3;break;case"minute":r=(this-a)/6e4;break;case"hour":r=(this-a)/36e5;break;case"day":r=(this-a-i)/864e5;break;case"week":r=(this-a-i)/6048e5;break;default:r=this-a}return n?r:ue(r)}function Ka(e,t){if(e.date()<t.date())return-Ka(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(n,"months");return-(n+(t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a)))||0}function Xa(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Qa(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?W(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):S(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(n,"Z")):W(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,a,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",a=r+'[")]',this.format(e+t+n+a)}function ti(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=W(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(k(e)&&e.isValid()||Zn(e).isValid())?xa({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ai(e){return this.from(Zn(),e)}function ii(e,t){return this.isValid()&&(k(e)&&e.isValid()||Zn(e).isValid())?xa({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.to(Zn(),e)}function si(e){var t;return void 0===e?this._locale._abbr:(null!=(t=Ln(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function di(){return this._locale}var li=1e3,ui=60*li,ci=60*ui,mi=3506328*ci;function _i(e,t){return(e%t+t)%t}function hi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mi:new Date(e,t,n).valueOf()}function fi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mi:Date.UTC(e,t,n)}function pi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?fi:hi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=_i(t+(this._isUTC?0:this.utcOffset()*ui),ci);break;case"minute":t=this._d.valueOf(),t-=_i(t,ui);break;case"second":t=this._d.valueOf(),t-=_i(t,li)}return this._d.setTime(t),i.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?fi:hi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ci-_i(t+(this._isUTC?0:this.utcOffset()*ui),ci)-1;break;case"minute":t=this._d.valueOf(),t+=ui-_i(t,ui)-1;break;case"second":t=this._d.valueOf(),t+=li-_i(t,li)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function Li(){return this._d.valueOf()-6e4*(this._offset||0)}function yi(){return Math.floor(this.valueOf()/1e3)}function vi(){return new Date(this.valueOf())}function Mi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Yi(){return this.isValid()?this.toISOString():null}function ki(){return L(this)}function wi(){return h({},g(this))}function Ti(){return g(this).overflow}function Di(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function xi(e,t){var n,a,r,s=this._eras||Ln("en")._eras;for(n=0,a=s.length;n<a;++n){switch(typeof s[n].since){case"string":r=i(s[n].since).startOf("day"),s[n].since=r.valueOf()}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":r=i(s[n].until).startOf("day").valueOf(),s[n].until=r.valueOf()}}return s}function $i(e,t,n){var a,i,r,s,o,d=this.eras();for(e=e.toUpperCase(),a=0,i=d.length;a<i;++a)if(r=d[a].name.toUpperCase(),s=d[a].abbr.toUpperCase(),o=d[a].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return d[a];break;case"NNNN":if(r===e)return d[a];break;case"NNNNN":if(o===e)return d[a]}else if([r,s,o].indexOf(e)>=0)return d[a]}function Si(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function ji(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].name;if(a[e].until<=n&&n<=a[e].since)return a[e].name}return""}function Hi(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].narrow;if(a[e].until<=n&&n<=a[e].since)return a[e].narrow}return""}function Ci(){var e,t,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until)return a[e].abbr;if(a[e].until<=n&&n<=a[e].since)return a[e].abbr}return""}function Ei(){var e,t,n,a,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,a=this.clone().startOf("day").valueOf(),r[e].since<=a&&a<=r[e].until||r[e].until<=a&&a<=r[e].since)return(this.year()-i(r[e].since).year())*n+r[e].offset;return this.year()}function Oi(e){return d(this,"_erasNameRegex")||zi.call(this),e?this._erasNameRegex:this._erasRegex}function Ai(e){return d(this,"_erasAbbrRegex")||zi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ii(e){return d(this,"_erasNarrowRegex")||zi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ri(e,t){return t.erasAbbrRegex(e)}function Pi(e,t){return t.erasNameRegex(e)}function Fi(e,t){return t.erasNarrowRegex(e)}function Ni(e,t){return t._eraYearOrdinalRegex||$e}function zi(){var e,t,n=[],a=[],i=[],r=[],s=this.eras();for(e=0,t=s.length;e<t;++e)a.push(Re(s[e].name)),n.push(Re(s[e].abbr)),i.push(Re(s[e].narrow)),r.push(Re(s[e].name)),r.push(Re(s[e].abbr)),r.push(Re(s[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Ui(e,t){N(0,[e,e.length],0,t)}function Wi(e){return Ji.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vi(e){return Ji.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return kt(this.year(),1,4)}function qi(){return kt(this.isoWeekYear(),1,4)}function Bi(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function Zi(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Ji(e,t,n,a,i){var r;return null==e?Yt(this,a,i).year:(t>(r=kt(e,a,i))&&(t=r),Ki.call(this,e,t,n,a,i))}function Ki(e,t,n,a,i){var r=bt(e,t,n,a,i),s=vt(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),Oe("N",Ri),Oe("NN",Ri),Oe("NNN",Ri),Oe("NNNN",Pi),Oe("NNNNN",Fi),Fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,a){var i=n._locale.erasParse(e,a,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Oe("y",$e),Oe("yy",$e),Oe("yyy",$e),Oe("yyyy",$e),Oe("yo",Ni),Fe(["y","yy","yyy","yyyy"],We),Fe(["yo"],(function(e,t,n,a){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[We]=n._locale.eraYearOrdinalParse(e,i):t[We]=parseInt(e,10)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),ae("weekYear","gg"),ae("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Oe("G",Se),Oe("g",Se),Oe("GG",Ye,ye),Oe("gg",Ye,ye),Oe("GGGG",De,Me),Oe("gggg",De,Me),Oe("GGGGG",xe,be),Oe("ggggg",xe,be),Ne(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,a){t[a.substr(0,2)]=ce(e)})),Ne(["gg","GG"],(function(e,t,n,a){t[a]=i.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),ae("quarter","Q"),oe("quarter",7),Oe("Q",Le),Fe("Q",(function(e,t){t[Ve]=3*(ce(e)-1)})),N("D",["DD",2],"Do","date"),ae("date","D"),oe("date",9),Oe("D",Ye),Oe("DD",Ye,ye),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Fe(["D","DD"],Ge),Fe("Do",(function(e,t){t[Ge]=ce(e.match(Ye)[0])}));var Qi=me("Date",!0);function er(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}N("DDD",["DDDD",3],"DDDo","dayOfYear"),ae("dayOfYear","DDD"),oe("dayOfYear",4),Oe("DDD",Te),Oe("DDDD",ve),Fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),N("m",["mm",2],0,"minute"),ae("minute","m"),oe("minute",14),Oe("m",Ye),Oe("mm",Ye,ye),Fe(["m","mm"],Be);var tr=me("Minutes",!1);N("s",["ss",2],0,"second"),ae("second","s"),oe("second",15),Oe("s",Ye),Oe("ss",Ye,ye),Fe(["s","ss"],Ze);var nr,ar,ir=me("Seconds",!1);for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ae("millisecond","ms"),oe("millisecond",16),Oe("S",Te,Le),Oe("SS",Te,ye),Oe("SSS",Te,ve),nr="SSSS";nr.length<=9;nr+="S")Oe(nr,$e);function rr(e,t){t[Je]=ce(1e3*("0."+e))}for(nr="S";nr.length<=9;nr+="S")Fe(nr,rr);function sr(){return this._isUTC?"UTC":""}function or(){return this._isUTC?"Coordinated Universal Time":""}ar=me("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var dr=Y.prototype;function lr(e){return Zn(1e3*e)}function ur(){return Zn.apply(null,arguments).parseZone()}function cr(e){return e}dr.add=Ea,dr.calendar=za,dr.clone=Ua,dr.diff=Ja,dr.endOf=gi,dr.format=ti,dr.from=ni,dr.fromNow=ai,dr.to=ii,dr.toNow=ri,dr.get=fe,dr.invalidAt=Ti,dr.isAfter=Wa,dr.isBefore=Va,dr.isBetween=Ga,dr.isSame=qa,dr.isSameOrAfter=Ba,dr.isSameOrBefore=Za,dr.isValid=ki,dr.lang=oi,dr.locale=si,dr.localeData=di,dr.max=Kn,dr.min=Jn,dr.parsingFlags=wi,dr.set=pe,dr.startOf=pi,dr.subtract=Oa,dr.toArray=Mi,dr.toObject=bi,dr.toDate=vi,dr.toISOString=Qa,dr.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(dr[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),dr.toJSON=Yi,dr.toString=Xa,dr.unix=yi,dr.valueOf=Li,dr.creationData=Di,dr.eraName=ji,dr.eraNarrow=Hi,dr.eraAbbr=Ci,dr.eraYear=Ei,dr.year=gt,dr.isLeapYear=Lt,dr.weekYear=Wi,dr.isoWeekYear=Vi,dr.quarter=dr.quarters=Xi,dr.month=ct,dr.daysInMonth=mt,dr.week=dr.weeks=$t,dr.isoWeek=dr.isoWeeks=St,dr.weeksInYear=Bi,dr.weeksInWeekYear=Zi,dr.isoWeeksInYear=Gi,dr.isoWeeksInISOWeekYear=qi,dr.date=Qi,dr.day=dr.days=Vt,dr.weekday=Gt,dr.isoWeekday=qt,dr.dayOfYear=er,dr.hour=dr.hours=rn,dr.minute=dr.minutes=tr,dr.second=dr.seconds=ir,dr.millisecond=dr.milliseconds=ar,dr.utcOffset=fa,dr.utc=ga,dr.local=La,dr.parseZone=ya,dr.hasAlignedHourOffset=va,dr.isDST=Ma,dr.isLocal=Ya,dr.isUtcOffset=ka,dr.isUtc=wa,dr.isUTC=wa,dr.zoneAbbr=sr,dr.zoneName=or,dr.dates=T("dates accessor is deprecated. Use date instead.",Qi),dr.months=T("months accessor is deprecated. Use month instead",ct),dr.years=T("years accessor is deprecated. Use year instead",gt),dr.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",pa),dr.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",ba);var mr=C.prototype;function _r(e,t,n,a){var i=Ln(),r=f().set(a,t);return i[n](r,e)}function hr(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return _r(e,t,n,"month");var a,i=[];for(a=0;a<12;a++)i[a]=_r(e,a,n,"month");return i}function fr(e,t,n,a){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,r=Ln(),s=e?r._week.dow:0,o=[];if(null!=n)return _r(t,(n+s)%7,a,"day");for(i=0;i<7;i++)o[i]=_r(t,(i+s)%7,a,"day");return o}function pr(e,t){return hr(e,t,"months")}function gr(e,t){return hr(e,t,"monthsShort")}function Lr(e,t,n){return fr(e,t,n,"weekdays")}function yr(e,t,n){return fr(e,t,n,"weekdaysShort")}function vr(e,t,n){return fr(e,t,n,"weekdaysMin")}mr.calendar=O,mr.longDateFormat=q,mr.invalidDate=Z,mr.ordinal=X,mr.preparse=cr,mr.postformat=cr,mr.relativeTime=ee,mr.pastFuture=te,mr.set=j,mr.eras=xi,mr.erasParse=$i,mr.erasConvertYear=Si,mr.erasAbbrRegex=Ai,mr.erasNameRegex=Oi,mr.erasNarrowRegex=Ii,mr.months=st,mr.monthsShort=ot,mr.monthsParse=lt,mr.monthsRegex=ht,mr.monthsShortRegex=_t,mr.week=wt,mr.firstDayOfYear=xt,mr.firstDayOfWeek=Dt,mr.weekdays=Ft,mr.weekdaysMin=zt,mr.weekdaysShort=Nt,mr.weekdaysParse=Wt,mr.weekdaysRegex=Bt,mr.weekdaysShortRegex=Zt,mr.weekdaysMinRegex=Jt,mr.isPM=nn,mr.meridiem=sn,fn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=T("moment.lang is deprecated. Use moment.locale instead.",fn),i.langData=T("moment.langData is deprecated. Use moment.localeData instead.",Ln);var Mr=Math.abs;function br(){var e=this._data;return this._milliseconds=Mr(this._milliseconds),this._days=Mr(this._days),this._months=Mr(this._months),e.milliseconds=Mr(e.milliseconds),e.seconds=Mr(e.seconds),e.minutes=Mr(e.minutes),e.hours=Mr(e.hours),e.months=Mr(e.months),e.years=Mr(e.years),this}function Yr(e,t,n,a){var i=xa(t,n);return e._milliseconds+=a*i._milliseconds,e._days+=a*i._days,e._months+=a*i._months,e._bubble()}function kr(e,t){return Yr(this,e,t,1)}function wr(e,t){return Yr(this,e,t,-1)}function Tr(e){return e<0?Math.floor(e):Math.ceil(e)}function Dr(){var e,t,n,a,i,r=this._milliseconds,s=this._days,o=this._months,d=this._data;return r>=0&&s>=0&&o>=0||r<=0&&s<=0&&o<=0||(r+=864e5*Tr($r(o)+s),s=0,o=0),d.milliseconds=r%1e3,e=ue(r/1e3),d.seconds=e%60,t=ue(e/60),d.minutes=t%60,n=ue(t/60),d.hours=n%24,s+=ue(n/24),o+=i=ue(xr(s)),s-=Tr($r(i)),a=ue(o/12),o%=12,d.days=s,d.months=o,d.years=a,this}function xr(e){return 4800*e/146097}function $r(e){return 146097*e/4800}function Sr(e){if(!this.isValid())return NaN;var t,n,a=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+a/864e5,n=this._months+xr(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round($r(this._months)),e){case"week":return t/7+a/6048e5;case"day":return t+a/864e5;case"hour":return 24*t+a/36e5;case"minute":return 1440*t+a/6e4;case"second":return 86400*t+a/1e3;case"millisecond":return Math.floor(864e5*t)+a;default:throw new Error("Unknown unit "+e)}}function jr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Hr(e){return function(){return this.as(e)}}var Cr=Hr("ms"),Er=Hr("s"),Or=Hr("m"),Ar=Hr("h"),Ir=Hr("d"),Rr=Hr("w"),Pr=Hr("M"),Fr=Hr("Q"),Nr=Hr("y");function zr(){return xa(this)}function Ur(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function Wr(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vr=Wr("milliseconds"),Gr=Wr("seconds"),qr=Wr("minutes"),Br=Wr("hours"),Zr=Wr("days"),Jr=Wr("months"),Kr=Wr("years");function Xr(){return ue(this.days()/7)}var Qr=Math.round,es={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ts(e,t,n,a,i){return i.relativeTime(t||1,!!n,e,a)}function ns(e,t,n,a){var i=xa(e).abs(),r=Qr(i.as("s")),s=Qr(i.as("m")),o=Qr(i.as("h")),d=Qr(i.as("d")),l=Qr(i.as("M")),u=Qr(i.as("w")),c=Qr(i.as("y")),m=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||d<=1&&["d"]||d<n.d&&["dd",d];return null!=n.w&&(m=m||u<=1&&["w"]||u<n.w&&["ww",u]),(m=m||l<=1&&["M"]||l<n.M&&["MM",l]||c<=1&&["y"]||["yy",c])[2]=t,m[3]=+e>0,m[4]=a,ts.apply(null,m)}function as(e){return void 0===e?Qr:"function"==typeof e&&(Qr=e,!0)}function is(e,t){return void 0!==es[e]&&(void 0===t?es[e]:(es[e]=t,"s"===e&&(es.ss=t-1),!0))}function rs(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,a,i=!1,r=es;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(r=Object.assign({},es,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),a=ns(this,!i,r,n=this.localeData()),i&&(a=n.pastFuture(+this,a)),n.postformat(a)}var ss=Math.abs;function os(e){return(e>0)-(e<0)||+e}function ds(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,a,i,r,s,o,d=ss(this._milliseconds)/1e3,l=ss(this._days),u=ss(this._months),c=this.asSeconds();return c?(e=ue(d/60),t=ue(e/60),d%=60,e%=60,n=ue(u/12),u%=12,a=d?d.toFixed(3).replace(/\.?0+$/,""):"",i=c<0?"-":"",r=os(this._months)!==os(c)?"-":"",s=os(this._days)!==os(c)?"-":"",o=os(this._milliseconds)!==os(c)?"-":"",i+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(l?s+l+"D":"")+(t||e||d?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(d?o+a+"S":"")):"P0D"}var ls=sa.prototype;return ls.isValid=ia,ls.abs=br,ls.add=kr,ls.subtract=wr,ls.as=Sr,ls.asMilliseconds=Cr,ls.asSeconds=Er,ls.asMinutes=Or,ls.asHours=Ar,ls.asDays=Ir,ls.asWeeks=Rr,ls.asMonths=Pr,ls.asQuarters=Fr,ls.asYears=Nr,ls.valueOf=jr,ls._bubble=Dr,ls.clone=zr,ls.get=Ur,ls.milliseconds=Vr,ls.seconds=Gr,ls.minutes=qr,ls.hours=Br,ls.days=Zr,ls.weeks=Xr,ls.months=Jr,ls.years=Kr,ls.humanize=rs,ls.toISOString=ds,ls.toString=ds,ls.toJSON=ds,ls.locale=si,ls.localeData=di,ls.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ds),ls.lang=oi,N("X",0,0,"unix"),N("x",0,0,"valueOf"),Oe("x",Se),Oe("X",Ce),Fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Fe("x",(function(e,t,n){n._d=new Date(ce(e))})),i.version="2.29.1",r(Zn),i.fn=dr,i.min=Qn,i.max=ea,i.now=ta,i.utc=f,i.unix=lr,i.months=pr,i.isDate=m,i.locale=fn,i.invalid=y,i.duration=xa,i.isMoment=k,i.weekdays=Lr,i.parseZone=ur,i.localeData=Ln,i.isDuration=oa,i.monthsShort=gr,i.weekdaysMin=vr,i.defineLocale=pn,i.updateLocale=gn,i.locales=yn,i.weekdaysShort=yr,i.normalizeUnits=ie,i.relativeTimeRounding=as,i.relativeTimeThreshold=is,i.calendarFormat=Na,i.prototype=dr,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()},93379:(e,t,n)=>{"use strict";var a,i=function(){return void 0===a&&(a=Boolean(window&&document&&document.all&&!window.atob)),a},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function o(e){for(var t=-1,n=0;n<s.length;n++)if(s[n].identifier===e){t=n;break}return t}function d(e,t){for(var n={},a=[],i=0;i<e.length;i++){var r=e[i],d=t.base?r[0]+t.base:r[0],l=n[d]||0,u="".concat(d," ").concat(l);n[d]=l+1;var c=o(u),m={css:r[1],media:r[2],sourceMap:r[3]};-1!==c?(s[c].references++,s[c].updater(m)):s.push({identifier:u,updater:p(m,t),references:1}),a.push(u)}return a}function l(e){var t=document.createElement("style"),a=e.attributes||{};if(void 0===a.nonce){var i=n.nc;i&&(a.nonce=i)}if(Object.keys(a).forEach((function(e){t.setAttribute(e,a[e])})),"function"==typeof e.insert)e.insert(t);else{var s=r(e.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(t)}return t}var u,c=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function m(e,t,n,a){var i=n?"":a.media?"@media ".concat(a.media," {").concat(a.css,"}"):a.css;if(e.styleSheet)e.styleSheet.cssText=c(t,i);else{var r=document.createTextNode(i),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function _(e,t,n){var a=n.css,i=n.media,r=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}var h=null,f=0;function p(e,t){var n,a,i;if(t.singleton){var r=f++;n=h||(h=l(t)),a=m.bind(null,n,r,!1),i=m.bind(null,n,r,!0)}else n=l(t),a=_.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return a(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;a(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=d(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var a=0;a<n.length;a++){var i=o(n[a]);s[i].references--}for(var r=d(e,t),l=0;l<n.length;l++){var u=o(n[l]);0===s[u].references&&(s[u].updater(),s.splice(u,1))}n=r}}}},41727:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var a=n(21379),i=n(22730);function r(e){let t,n,r,s,o,d;const l=e[7].default,u=(0,a.nu)(l,e,e[6],null);let c=[{href:e[0]},e[4]],m={};for(let e=0;e<c.length;e+=1)m=(0,a.f0)(m,c[e]);return{c(){t=(0,a.bG)("a"),u&&u.c(),(0,a.UF)(t,m)},m(l,c){(0,a.$T)(l,t,c),u&&u.m(t,null),e[8](t),s=!0,o||(d=[(0,a.TV)(n=i.ol.call(null,t,e[1])),(0,a.TV)(r=e[3].call(null,t))],o=!0)},p(e,[i]){u&&u.p&&(!s||64&i)&&(0,a.Tj)(u,l,e,e[6],s?i:-1,null,null),(0,a.UF)(t,m=(0,a.Lo)(c,[(!s||1&i)&&{href:e[0]},16&i&&e[4]])),n&&(0,a.sB)(n.update)&&2&i&&n.update.call(null,e[1])},i(e){s||((0,a.Ui)(u,e),s=!0)},o(e){(0,a.et)(u,e),s=!1},d(n){n&&(0,a.og)(t),u&&u.d(n),e[8](null),o=!1,(0,a.j7)(d)}}}function s(e,t,n){const r=["href","use","getElement"];let s=(0,a.q2)(t,r),{$$slots:o={},$$scope:d}=t,{href:l="javascript:void(0);"}=t,{use:u=[]}=t;const c=(0,i.PD)((0,a.w2)());let m=null;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(4,s=(0,a.q2)(t,r)),"href"in e&&n(0,l=e.href),"use"in e&&n(1,u=e.use),"$$scope"in e&&n(6,d=e.$$scope)},[l,u,m,c,s,function(){return m},d,o,function(e){a.Vn[e?"unshift":"push"]((()=>{m=e,n(2,m)}))}]}class o extends a.f_{constructor(e){super(),(0,a.S1)(this,e,s,r,a.N8,{href:0,use:1,getElement:5})}get getElement(){return this.$$.ctx[5]}}const d=o},26167:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var a=n(21379),i=n(22730);function r(e){let t,n,r,s,o,d;const l=e[6].default,u=(0,a.nu)(l,e,e[5],null);let c=[e[3]],m={};for(let e=0;e<c.length;e+=1)m=(0,a.f0)(m,c[e]);return{c(){t=(0,a.bG)("div"),u&&u.c(),(0,a.UF)(t,m)},m(l,c){(0,a.$T)(l,t,c),u&&u.m(t,null),e[7](t),s=!0,o||(d=[(0,a.TV)(n=i.ol.call(null,t,e[0])),(0,a.TV)(r=e[2].call(null,t))],o=!0)},p(e,[i]){u&&u.p&&(!s||32&i)&&(0,a.Tj)(u,l,e,e[5],s?i:-1,null,null),(0,a.UF)(t,m=(0,a.Lo)(c,[8&i&&e[3]])),n&&(0,a.sB)(n.update)&&1&i&&n.update.call(null,e[0])},i(e){s||((0,a.Ui)(u,e),s=!0)},o(e){(0,a.et)(u,e),s=!1},d(n){n&&(0,a.og)(t),u&&u.d(n),e[7](null),o=!1,(0,a.j7)(d)}}}function s(e,t,n){const r=["use","getElement"];let s=(0,a.q2)(t,r),{$$slots:o={},$$scope:d}=t,{use:l=[]}=t;const u=(0,i.PD)((0,a.w2)());let c=null;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(3,s=(0,a.q2)(t,r)),"use"in e&&n(0,l=e.use),"$$scope"in e&&n(5,d=e.$$scope)},[l,c,u,s,function(){return c},d,o,function(e){a.Vn[e?"unshift":"push"]((()=>{c=e,n(1,c)}))}]}class o extends a.f_{constructor(e){super(),(0,a.S1)(this,e,s,r,a.N8,{use:0,getElement:4})}get getElement(){return this.$$.ctx[4]}}const d=o},58365:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var a=n(21379),i=n(22730);function r(e){let t,n,r,s,o,d;const l=e[6].default,u=(0,a.nu)(l,e,e[5],null);let c=[e[3]],m={};for(let e=0;e<c.length;e+=1)m=(0,a.f0)(m,c[e]);return{c(){t=(0,a.bG)("span"),u&&u.c(),(0,a.UF)(t,m)},m(l,c){(0,a.$T)(l,t,c),u&&u.m(t,null),e[7](t),s=!0,o||(d=[(0,a.TV)(n=i.ol.call(null,t,e[0])),(0,a.TV)(r=e[2].call(null,t))],o=!0)},p(e,[i]){u&&u.p&&(!s||32&i)&&(0,a.Tj)(u,l,e,e[5],s?i:-1,null,null),(0,a.UF)(t,m=(0,a.Lo)(c,[8&i&&e[3]])),n&&(0,a.sB)(n.update)&&1&i&&n.update.call(null,e[0])},i(e){s||((0,a.Ui)(u,e),s=!0)},o(e){(0,a.et)(u,e),s=!1},d(n){n&&(0,a.og)(t),u&&u.d(n),e[7](null),o=!1,(0,a.j7)(d)}}}function s(e,t,n){const r=["use","getElement"];let s=(0,a.q2)(t,r),{$$slots:o={},$$scope:d}=t,{use:l=[]}=t;const u=(0,i.PD)((0,a.w2)());let c=null;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(3,s=(0,a.q2)(t,r)),"use"in e&&n(0,l=e.use),"$$scope"in e&&n(5,d=e.$$scope)},[l,c,u,s,function(){return c},d,o,function(e){a.Vn[e?"unshift":"push"]((()=>{c=e,n(1,c)}))}]}class o extends a.f_{constructor(e){super(),(0,a.S1)(this,e,s,r,a.N8,{use:0,getElement:4})}get getElement(){return this.$$.ctx[4]}}const d=o},91601:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ve});var a=n(21379),i=n(90400),r=n(93379),s=n.n(r),o=n(77641),d={insert:"head",singleton:!1};s()(o.Z,d);o.Z.locals;function l(e){let t,n,i=e[0](e[1],e[2])+"";return{c(){t=(0,a.bG)("div"),(0,a.Lj)(t,"class",n="item "+e[3]+" svelte-bdnybl")},m(e,n){(0,a.$T)(e,t,n),t.innerHTML=i},p(e,[r]){7&r&&i!==(i=e[0](e[1],e[2])+"")&&(t.innerHTML=i),8&r&&n!==(n="item "+e[3]+" svelte-bdnybl")&&(0,a.Lj)(t,"class",n)},i:a.ZT,o:a.ZT,d(e){e&&(0,a.og)(t)}}}function u(e,t,n){let{isActive:a=!1}=t,{isFirst:i=!1}=t,{isHover:r=!1}=t,{getOptionLabel:s}=t,{item:o}=t,{filterText:d=""}=t,l="";return e.$$set=e=>{"isActive"in e&&n(4,a=e.isActive),"isFirst"in e&&n(5,i=e.isFirst),"isHover"in e&&n(6,r=e.isHover),"getOptionLabel"in e&&n(0,s=e.getOptionLabel),"item"in e&&n(1,o=e.item),"filterText"in e&&n(2,d=e.filterText)},e.$$.update=()=>{if(114&e.$$.dirty){const e=[];a&&e.push("active"),i&&e.push("first"),r&&e.push("hover"),o.isGroupHeader&&e.push("groupHeader"),o.isGroupItem&&e.push("groupItem"),n(3,l=e.join(" "))}},[s,o,d,l,a,i,r]}class c extends a.f_{constructor(e){super(),(0,a.S1)(this,e,u,l,a.N8,{isActive:4,isFirst:5,isHover:6,getOptionLabel:0,item:1,filterText:2})}}const m=c;var _=n(57948),h={insert:"head",singleton:!1};s()(_.Z,h);_.Z.locals;function f(e,t,n){const a=e.slice();return a[23]=t[n],a}const p=e=>({item:32&e,i:32&e,hoverItemIndex:2&e}),g=e=>({item:e[23].data,i:e[23].index,hoverItemIndex:e[1]});function L(e,t){let n,i,r;const s=t[15].default,o=(0,a.nu)(s,t,t[14],g),d=o||function(e){let t;return{c(){t=(0,a.fL)("Missing template")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}();return{key:e,first:null,c(){n=(0,a.bG)("svelte-virtual-list-row"),d&&d.c(),i=(0,a.Dh)(),(0,a.Ep)(n,"class","svelte-p6ehlv"),this.first=n},m(e,t){(0,a.$T)(e,n,t),d&&d.m(n,null),(0,a.R3)(n,i),r=!0},p(e,n){t=e,o&&o.p&&(!r||16418&n)&&(0,a.Tj)(o,s,t,t[14],r?n:-1,p,g)},i(e){r||((0,a.Ui)(d,e),r=!0)},o(e){(0,a.et)(d,e),r=!1},d(e){e&&(0,a.og)(n),d&&d.d(e)}}}function y(e){let t,n,i,r,s,o,d=[],l=new Map,u=e[5];const c=e=>e[23].index;for(let t=0;t<u.length;t+=1){let n=f(e,u,t),a=c(n);l.set(a,d[t]=L(a,n))}return{c(){t=(0,a.bG)("svelte-virtual-list-viewport"),n=(0,a.bG)("svelte-virtual-list-contents");for(let e=0;e<d.length;e+=1)d[e].c();(0,a.cz)(n,"padding-top",e[6]+"px"),(0,a.cz)(n,"padding-bottom",e[7]+"px"),(0,a.Ep)(n,"class","svelte-p6ehlv"),(0,a.cz)(t,"height",e[0]),(0,a.Ep)(t,"class","svelte-p6ehlv"),(0,a.P$)((()=>e[18].call(t)))},m(l,u){(0,a.$T)(l,t,u),(0,a.R3)(t,n);for(let e=0;e<d.length;e+=1)d[e].m(n,null);e[16](n),e[17](t),i=(0,a.bY)(t,e[18].bind(t)),r=!0,s||(o=(0,a.oL)(t,"scroll",e[8]),s=!0)},p(e,[i]){16418&i&&(u=e[5],(0,a.dv)(),d=(0,a.GQ)(d,i,c,1,e,u,l,n,a.cl,L,null,f),(0,a.gb)()),(!r||64&i)&&(0,a.cz)(n,"padding-top",e[6]+"px"),(!r||128&i)&&(0,a.cz)(n,"padding-bottom",e[7]+"px"),(!r||1&i)&&(0,a.cz)(t,"height",e[0])},i(e){if(!r){for(let e=0;e<u.length;e+=1)(0,a.Ui)(d[e]);r=!0}},o(e){for(let e=0;e<d.length;e+=1)(0,a.et)(d[e]);r=!1},d(n){n&&(0,a.og)(t);for(let e=0;e<d.length;e+=1)d[e].d();e[16](null),e[17](null),i(),s=!1,o()}}}function v(e,t,n){let r,s,o,d,l,u,{$$slots:c={},$$scope:m}=t,{items:_}=t,{height:h="100%"}=t,{itemHeight:f=40}=t,{hoverItemIndex:p=0}=t,{start:g=0}=t,{end:L=0}=t,y=[],v=0,M=0,b=0;return(0,i.H3)((()=>{r=o.getElementsByTagName("svelte-virtual-list-row"),n(13,l=!0)})),e.$$set=e=>{"items"in e&&n(11,_=e.items),"height"in e&&n(0,h=e.height),"itemHeight"in e&&n(12,f=e.itemHeight),"hoverItemIndex"in e&&n(1,p=e.hoverItemIndex),"start"in e&&n(9,g=e.start),"end"in e&&n(10,L=e.end),"$$scope"in e&&n(14,m=e.$$scope)},e.$$.update=()=>{3584&e.$$.dirty&&n(5,d=_.slice(g,L).map(((e,t)=>({index:t+g,data:e})))),14340&e.$$.dirty&&l&&async function(e,t,a){const{scrollTop:o}=s;await(0,i.Ky)();let d=M-o,l=g;for(;d<t&&l<e.length;){let e=r[l-g];e||(n(10,L=l+1),await(0,i.Ky)(),e=r[l-g]),d+=y[l]=a||e.offsetHeight,l+=1}n(10,L=l);const c=e.length-L;u=(M+d)/L,n(7,b=c*u),y.length=e.length,n(3,s.scrollTop=0,s)}(_,v,f)},[h,p,v,s,o,d,M,b,async function(){const{scrollTop:e}=s,t=g;for(let e=0;e<r.length;e+=1)y[g+e]=f||r[e].offsetHeight;let a=0,o=0;for(;a<_.length;){const t=y[a]||u;if(o+t>e){n(9,g=a),n(6,M=o);break}o+=t,a+=1}for(;a<_.length&&(o+=y[a]||u,a+=1,!(o>e+v)););n(10,L=a);const d=_.length-L;for(u=o/L;a<_.length;)y[a++]=u;if(n(7,b=d*u),g<t){await(0,i.Ky)();let n=0,a=0;for(let e=g;e<t;e+=1)r[e-g]&&(n+=y[e],a+=f||r[e-g].offsetHeight);const o=a-n;s.scrollTo(0,e+o)}},g,L,_,f,l,m,c,function(e){a.Vn[e?"unshift":"push"]((()=>{o=e,n(4,o)}))},function(e){a.Vn[e?"unshift":"push"]((()=>{s=e,n(3,s)}))},function(){v=this.offsetHeight,n(2,v)}]}class M extends a.f_{constructor(e){super(),(0,a.S1)(this,e,v,y,a.N8,{items:11,height:0,itemHeight:12,hoverItemIndex:1,start:9,end:10})}}const b=M;var Y=n(18438),k={insert:"head",singleton:!1};s()(Y.Z,k);Y.Z.locals;function w(e,t,n){const a=e.slice();return a[34]=t[n],a[36]=n,a}function T(e){let t,n,i;return n=new b({props:{items:e[4],itemHeight:e[7],$$slots:{default:[D,({item:e,i:t})=>({34:e,36:t}),({item:e,i:t})=>[0,(e?8:0)|(t?32:0)]]},$$scope:{ctx:e}}}),{c(){t=(0,a.bG)("div"),(0,a.YC)(n.$$.fragment),(0,a.Lj)(t,"class","listContainer virtualList svelte-ux0sbr")},m(r,s){(0,a.$T)(r,t,s),(0,a.ye)(n,t,null),e[20](t),i=!0},p(e,t){const a={};16&t[0]&&(a.items=e[4]),128&t[0]&&(a.itemHeight=e[7]),4918&t[0]|104&t[1]&&(a.$$scope={dirty:t,ctx:e}),n.$set(a)},i(e){i||((0,a.Ui)(n.$$.fragment,e),i=!0)},o(e){(0,a.et)(n.$$.fragment,e),i=!1},d(i){i&&(0,a.og)(t),(0,a.vp)(n),e[20](null)}}}function D(e){let t,n,i,r,s;var o=e[2];function d(e){return{props:{item:e[34],filterText:e[12],getOptionLabel:e[5],isFirst:A(e[36]),isActive:O(e[34],e[8],e[9]),isHover:I(e[1],e[34],e[36],e[4])}}}function l(){return e[18](e[36])}function u(...t){return e[19](e[34],e[36],...t)}return o&&(n=new o(d(e))),{c(){t=(0,a.bG)("div"),n&&(0,a.YC)(n.$$.fragment),(0,a.Lj)(t,"class","listItem")},m(e,o){(0,a.$T)(e,t,o),n&&(0,a.ye)(n,t,null),i=!0,r||(s=[(0,a.oL)(t,"mouseover",l),(0,a.oL)(t,"click",u)],r=!0)},p(i,r){e=i;const s={};if(8&r[1]&&(s.item=e[34]),4096&r[0]&&(s.filterText=e[12]),32&r[0]&&(s.getOptionLabel=e[5]),32&r[1]&&(s.isFirst=A(e[36])),768&r[0]|8&r[1]&&(s.isActive=O(e[34],e[8],e[9])),18&r[0]|40&r[1]&&(s.isHover=I(e[1],e[34],e[36],e[4])),o!==(o=e[2])){if(n){(0,a.dv)();const e=n;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}o?(n=new o(d(e)),(0,a.YC)(n.$$.fragment),(0,a.Ui)(n.$$.fragment,1),(0,a.ye)(n,t,null)):n=null}else o&&n.$set(s)},i(e){i||(n&&(0,a.Ui)(n.$$.fragment,e),i=!0)},o(e){n&&(0,a.et)(n.$$.fragment,e),i=!1},d(e){e&&(0,a.og)(t),n&&(0,a.vp)(n),r=!1,(0,a.j7)(s)}}}function x(e){let t,n,i=e[4],r=[];for(let t=0;t<i.length;t+=1)r[t]=C(w(e,i,t));const s=e=>(0,a.et)(r[e],1,1,(()=>{r[e]=null}));let o=null;return i.length||(o=$(e)),{c(){t=(0,a.bG)("div");for(let e=0;e<r.length;e+=1)r[e].c();o&&o.c(),(0,a.Lj)(t,"class","listContainer svelte-ux0sbr")},m(i,s){(0,a.$T)(i,t,s);for(let e=0;e<r.length;e+=1)r[e].m(t,null);o&&o.m(t,null),e[23](t),n=!0},p(e,n){if(32630&n[0]){let d;for(i=e[4],d=0;d<i.length;d+=1){const s=w(e,i,d);r[d]?(r[d].p(s,n),(0,a.Ui)(r[d],1)):(r[d]=C(s),r[d].c(),(0,a.Ui)(r[d],1),r[d].m(t,null))}for((0,a.dv)(),d=i.length;d<r.length;d+=1)s(d);(0,a.gb)(),!i.length&&o?o.p(e,n):i.length?o&&(o.d(1),o=null):(o=$(e),o.c(),o.m(t,null))}},i(e){if(!n){for(let e=0;e<i.length;e+=1)(0,a.Ui)(r[e]);n=!0}},o(e){r=r.filter(Boolean);for(let e=0;e<r.length;e+=1)(0,a.et)(r[e]);n=!1},d(n){n&&(0,a.og)(t),(0,a.RM)(r,n),o&&o.d(),e[23](null)}}}function $(e){let t,n=!e[10]&&S(e);return{c(){n&&n.c(),t=(0,a.cS)()},m(e,i){n&&n.m(e,i),(0,a.$T)(e,t,i)},p(e,a){e[10]?n&&(n.d(1),n=null):n?n.p(e,a):(n=S(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&(0,a.og)(t)}}}function S(e){let t,n;return{c(){t=(0,a.bG)("div"),n=(0,a.fL)(e[11]),(0,a.Lj)(t,"class","empty svelte-ux0sbr")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,t){2048&t[0]&&(0,a.rT)(n,e[11])},d(e){e&&(0,a.og)(t)}}}function j(e){let t,n,i,r,s,o;var d=e[2];function l(e){return{props:{item:e[34],filterText:e[12],getOptionLabel:e[5],isFirst:A(e[36]),isActive:O(e[34],e[8],e[9]),isHover:I(e[1],e[34],e[36],e[4])}}}function u(){return e[21](e[36])}function c(...t){return e[22](e[34],e[36],...t)}return d&&(n=new d(l(e))),{c(){t=(0,a.bG)("div"),n&&(0,a.YC)(n.$$.fragment),i=(0,a.Dh)(),(0,a.Lj)(t,"class","listItem")},m(e,d){(0,a.$T)(e,t,d),n&&(0,a.ye)(n,t,null),(0,a.R3)(t,i),r=!0,s||(o=[(0,a.oL)(t,"mouseover",u),(0,a.oL)(t,"click",c)],s=!0)},p(r,s){e=r;const o={};if(16&s[0]&&(o.item=e[34]),4096&s[0]&&(o.filterText=e[12]),32&s[0]&&(o.getOptionLabel=e[5]),784&s[0]&&(o.isActive=O(e[34],e[8],e[9])),18&s[0]&&(o.isHover=I(e[1],e[34],e[36],e[4])),d!==(d=e[2])){if(n){(0,a.dv)();const e=n;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}d?(n=new d(l(e)),(0,a.YC)(n.$$.fragment),(0,a.Ui)(n.$$.fragment,1),(0,a.ye)(n,t,i)):n=null}else d&&n.$set(o)},i(e){r||(n&&(0,a.Ui)(n.$$.fragment,e),r=!0)},o(e){n&&(0,a.et)(n.$$.fragment,e),r=!1},d(e){e&&(0,a.og)(t),n&&(0,a.vp)(n),s=!1,(0,a.j7)(o)}}}function H(e){let t,n,i=e[6](e[34])+"";return{c(){t=(0,a.bG)("div"),n=(0,a.fL)(i),(0,a.Lj)(t,"class","listGroupTitle svelte-ux0sbr")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,t){80&t[0]&&i!==(i=e[6](e[34])+"")&&(0,a.rT)(n,i)},i:a.ZT,o:a.ZT,d(e){e&&(0,a.og)(t)}}}function C(e){let t,n,i,r;const s=[H,j],o=[];function d(e,t){return e[34].isGroupHeader&&!e[34].isSelectable?0:1}return t=d(e),n=o[t]=s[t](e),{c(){n.c(),i=(0,a.cS)()},m(e,n){o[t].m(e,n),(0,a.$T)(e,i,n),r=!0},p(e,r){let l=t;t=d(e),t===l?o[t].p(e,r):((0,a.dv)(),(0,a.et)(o[l],1,1,(()=>{o[l]=null})),(0,a.gb)(),n=o[t],n?n.p(e,r):(n=o[t]=s[t](e),n.c()),(0,a.Ui)(n,1),n.m(i.parentNode,i))},i(e){r||((0,a.Ui)(n),r=!0)},o(e){(0,a.et)(n),r=!1},d(e){o[t].d(e),e&&(0,a.og)(i)}}}function E(e){let t,n,i,r,s,o=e[3]&&T(e),d=!e[3]&&x(e);return{c(){o&&o.c(),t=(0,a.Dh)(),d&&d.c(),n=(0,a.cS)()},m(l,u){o&&o.m(l,u),(0,a.$T)(l,t,u),d&&d.m(l,u),(0,a.$T)(l,n,u),i=!0,r||(s=(0,a.oL)(window,"keydown",e[15]),r=!0)},p(e,i){e[3]?o?(o.p(e,i),8&i[0]&&(0,a.Ui)(o,1)):(o=T(e),o.c(),(0,a.Ui)(o,1),o.m(t.parentNode,t)):o&&((0,a.dv)(),(0,a.et)(o,1,1,(()=>{o=null})),(0,a.gb)()),e[3]?d&&((0,a.dv)(),(0,a.et)(d,1,1,(()=>{d=null})),(0,a.gb)()):d?(d.p(e,i),8&i[0]&&(0,a.Ui)(d,1)):(d=x(e),d.c(),(0,a.Ui)(d,1),d.m(n.parentNode,n))},i(e){i||((0,a.Ui)(o),(0,a.Ui)(d),i=!0)},o(e){(0,a.et)(o),(0,a.et)(d),i=!1},d(e){o&&o.d(e),e&&(0,a.og)(t),d&&d.d(e),e&&(0,a.og)(n),r=!1,s()}}}function O(e,t,n){return t&&t[n]===e[n]}function A(e){return 0===e}function I(e,t,n,a){return e===n||1===a.length}function R(e,t,n){const r=(0,i.x)();let s,o,d,{container:l}=t,{Item:u=m}=t,{isVirtualList:c=!1}=t,{items:_=[]}=t,{getOptionLabel:h=((e,t)=>{if(e)return e.isCreator?`Create "${t}"`:e.label})}=t,{getGroupHeaderLabel:f=(e=>e.label)}=t,{itemHeight:p=40}=t,{hoverItemIndex:g=0}=t,{selectedValue:L}=t,{optionIdentifier:y="value"}=t,{hideEmptyState:v=!1}=t,{noOptionsMessage:M="No options"}=t,{isMulti:b=!1}=t,{activeItemIndex:Y=0}=t,{filterText:k=""}=t,w=0,T=!1;function D(e){e.isCreator||r("itemSelected",e)}function x(e){T||n(1,g=e)}function $(e){const{item:t,i:a,event:i}=e;if(i.stopPropagation(),L&&!b&&L[y]===t[y])return S();t.isCreator?r("itemCreated",k):(n(16,Y=a),n(1,g=a),D(t))}function S(){r("closeList")}async function j(e){if(c)return;let t=!0;for(;t;)e>0&&g===_.length-1?n(1,g=0):n(1,e<0&&0===g?g=_.length-1:g+=e),t=_[g].isGroupHeader&&!_[g].isSelectable;await(0,i.Ky)(),H("hover")}function H(e){if(c||!l)return;let t;const a=l.querySelector(`.listItem .${e}`);a&&(t=l.getBoundingClientRect().bottom-a.getBoundingClientRect().bottom),n(0,l.scrollTop-=t,l)}(0,i.H3)((()=>{if(_.length>0&&!b&&L){const e=_.findIndex((e=>e[y]===L[y]));e&&n(1,g=e)}H("active"),l.addEventListener("scroll",(()=>{clearTimeout(w),w=setTimeout((()=>{T=!1}),100)}),!1)})),(0,i.ev)((()=>{})),(0,i.ez)((()=>{_!==s&&_.length>0&&n(1,g=0),s=_,o=Y,d=L}));return e.$$set=e=>{"container"in e&&n(0,l=e.container),"Item"in e&&n(2,u=e.Item),"isVirtualList"in e&&n(3,c=e.isVirtualList),"items"in e&&n(4,_=e.items),"getOptionLabel"in e&&n(5,h=e.getOptionLabel),"getGroupHeaderLabel"in e&&n(6,f=e.getGroupHeaderLabel),"itemHeight"in e&&n(7,p=e.itemHeight),"hoverItemIndex"in e&&n(1,g=e.hoverItemIndex),"selectedValue"in e&&n(8,L=e.selectedValue),"optionIdentifier"in e&&n(9,y=e.optionIdentifier),"hideEmptyState"in e&&n(10,v=e.hideEmptyState),"noOptionsMessage"in e&&n(11,M=e.noOptionsMessage),"isMulti"in e&&n(17,b=e.isMulti),"activeItemIndex"in e&&n(16,Y=e.activeItemIndex),"filterText"in e&&n(12,k=e.filterText)},[l,g,u,c,_,h,f,p,L,y,v,M,k,x,$,function(e){switch(e.key){case"ArrowDown":e.preventDefault(),_.length&&j(1);break;case"ArrowUp":e.preventDefault(),_.length&&j(-1);break;case"Enter":if(e.preventDefault(),0===_.length)break;const t=_[g];if(L&&!b&&L[y]===t[y]){S();break}t.isCreator?r("itemCreated",k):(n(16,Y=g),D(_[g]));break;case"Tab":if(e.preventDefault(),0===_.length)break;if(L&&L[y]===_[g][y])return S();n(16,Y=g),D(_[g])}},Y,b,e=>x(e),(e,t,n)=>$({item:e,i:t,event:n}),function(e){a.Vn[e?"unshift":"push"]((()=>{l=e,n(0,l)}))},e=>x(e),(e,t,n)=>$({item:e,i:t,event:n}),function(e){a.Vn[e?"unshift":"push"]((()=>{l=e,n(0,l)}))}]}class P extends a.f_{constructor(e){super(),(0,a.S1)(this,e,R,E,a.N8,{container:0,Item:2,isVirtualList:3,items:4,getOptionLabel:5,getGroupHeaderLabel:6,itemHeight:7,hoverItemIndex:1,selectedValue:8,optionIdentifier:9,hideEmptyState:10,noOptionsMessage:11,isMulti:17,activeItemIndex:16,filterText:12},[-1,-1])}}const F=P;var N=n(9664),z={insert:"head",singleton:!1};s()(N.Z,z);N.Z.locals;function U(e){let t,n=e[0](e[1])+"";return{c(){t=(0,a.bG)("div"),(0,a.Lj)(t,"class","selection svelte-ch6bh7")},m(e,i){(0,a.$T)(e,t,i),t.innerHTML=n},p(e,[a]){3&a&&n!==(n=e[0](e[1])+"")&&(t.innerHTML=n)},i:a.ZT,o:a.ZT,d(e){e&&(0,a.og)(t)}}}function W(e,t,n){let{getSelectionLabel:a}=t,{item:i}=t;return e.$$set=e=>{"getSelectionLabel"in e&&n(0,a=e.getSelectionLabel),"item"in e&&n(1,i=e.item)},[a,i]}class V extends a.f_{constructor(e){super(),(0,a.S1)(this,e,W,U,a.N8,{getSelectionLabel:0,item:1})}}const G=V;var q=n(75314),B={insert:"head",singleton:!1};s()(q.Z,B);q.Z.locals;function Z(e,t,n){const a=e.slice();return a[9]=t[n],a[11]=n,a}function J(e){let t,n,i;function r(...t){return e[6](e[11],...t)}return{c(){t=(0,a.bG)("div"),t.innerHTML='<svg width="100%" height="100%" viewBox="-2 -2 50 50" focusable="false" role="presentation" class="svelte-14r1jr2"><path d="M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124 l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"></path></svg>',(0,a.Lj)(t,"class","multiSelectItem_clear svelte-14r1jr2")},m(e,s){(0,a.$T)(e,t,s),n||(i=(0,a.oL)(t,"click",r),n=!0)},p(t,n){e=t},d(e){e&&(0,a.og)(t),n=!1,i()}}}function K(e){let t,n,i,r,s,o,d,l=e[4](e[9])+"",u=!e[2]&&!e[3]&&J(e);function c(...t){return e[7](e[11],...t)}return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),i=(0,a.Dh)(),u&&u.c(),r=(0,a.Dh)(),(0,a.Lj)(n,"class","multiSelectItem_label svelte-14r1jr2"),(0,a.Lj)(t,"class",s="multiSelectItem "+(e[1]===e[11]?"active":"")+" "+(e[2]?"disabled":"")+" svelte-14r1jr2")},m(e,s){(0,a.$T)(e,t,s),(0,a.R3)(t,n),n.innerHTML=l,(0,a.R3)(t,i),u&&u.m(t,null),(0,a.R3)(t,r),o||(d=(0,a.oL)(t,"click",c),o=!0)},p(i,o){e=i,17&o&&l!==(l=e[4](e[9])+"")&&(n.innerHTML=l),e[2]||e[3]?u&&(u.d(1),u=null):u?u.p(e,o):(u=J(e),u.c(),u.m(t,r)),6&o&&s!==(s="multiSelectItem "+(e[1]===e[11]?"active":"")+" "+(e[2]?"disabled":"")+" svelte-14r1jr2")&&(0,a.Lj)(t,"class",s)},d(e){e&&(0,a.og)(t),u&&u.d(),o=!1,d()}}}function X(e){let t,n=e[0],i=[];for(let t=0;t<n.length;t+=1)i[t]=K(Z(e,n,t));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=(0,a.cS)()},m(e,n){for(let t=0;t<i.length;t+=1)i[t].m(e,n);(0,a.$T)(e,t,n)},p(e,[a]){if(63&a){let r;for(n=e[0],r=0;r<n.length;r+=1){const s=Z(e,n,r);i[r]?i[r].p(s,a):(i[r]=K(s),i[r].c(),i[r].m(t.parentNode,t))}for(;r<i.length;r+=1)i[r].d(1);i.length=n.length}},i:a.ZT,o:a.ZT,d(e){(0,a.RM)(i,e),e&&(0,a.og)(t)}}}function Q(e,t,n){const a=(0,i.x)();let{selectedValue:r=[]}=t,{activeSelectedValue:s}=t,{isDisabled:o=!1}=t,{multiFullItemClearable:d=!1}=t,{getSelectionLabel:l}=t;function u(e,t){t.stopPropagation(),a("multiItemClear",{i:e})}return e.$$set=e=>{"selectedValue"in e&&n(0,r=e.selectedValue),"activeSelectedValue"in e&&n(1,s=e.activeSelectedValue),"isDisabled"in e&&n(2,o=e.isDisabled),"multiFullItemClearable"in e&&n(3,d=e.multiFullItemClearable),"getSelectionLabel"in e&&n(4,l=e.getSelectionLabel)},[r,s,o,d,l,u,(e,t)=>u(e,t),(e,t)=>d?u(e,t):{}]}class ee extends a.f_{constructor(e){super(),(0,a.S1)(this,e,Q,X,a.N8,{selectedValue:0,activeSelectedValue:1,isDisabled:2,multiFullItemClearable:3,getSelectionLabel:4})}}const te=ee;function ne(e){let t,n;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"fill","currentColor"),(0,a.Lj)(n,"d","M34.923,37.251L24,26.328L13.077,37.251L9.436,33.61l10.923-10.923L9.436,11.765l3.641-3.641L24,19.047L34.923,8.124\n l3.641,3.641L27.641,22.688L38.564,33.61L34.923,37.251z"),(0,a.Lj)(t,"width","100%"),(0,a.Lj)(t,"height","100%"),(0,a.Lj)(t,"viewBox","-2 -2 50 50"),(0,a.Lj)(t,"focusable","false"),(0,a.Lj)(t,"role","presentation")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p:a.ZT,i:a.ZT,o:a.ZT,d(e){e&&(0,a.og)(t)}}}class ae extends a.f_{constructor(e){super(),(0,a.S1)(this,e,null,ne,a.N8,{})}}const ie=ae;var re=n(46877),se={insert:"head",singleton:!1};s()(re.Z,se);re.Z.locals;function oe(e){let t,n,i;const r=[e[18]];var s=e[17];function o(e){let t={};for(let e=0;e<r.length;e+=1)t=(0,a.f0)(t,r[e]);return{props:t}}return s&&(t=new s(o())),{c(){t&&(0,a.YC)(t.$$.fragment),n=(0,a.cS)()},m(e,r){t&&(0,a.ye)(t,e,r),(0,a.$T)(e,n,r),i=!0},p(e,i){const d=262144&i[0]?(0,a.Lo)(r,[(0,a.gC)(e[18])]):{};if(s!==(s=e[17])){if(t){(0,a.dv)();const e=t;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}s?(t=new s(o()),(0,a.YC)(t.$$.fragment),(0,a.Ui)(t.$$.fragment,1),(0,a.ye)(t,n.parentNode,n)):t=null}else s&&t.$set(d)},i(e){i||(t&&(0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){t&&(0,a.et)(t.$$.fragment,e),i=!1},d(e){e&&(0,a.og)(n),t&&(0,a.vp)(t,e)}}}function de(e){let t,n,i;var r=e[7];function s(e){return{props:{selectedValue:e[0],getSelectionLabel:e[13],activeSelectedValue:e[25],isDisabled:e[10],multiFullItemClearable:e[9]}}}return r&&(t=new r(s(e)),t.$on("multiItemClear",e[29]),t.$on("focus",e[32])),{c(){t&&(0,a.YC)(t.$$.fragment),n=(0,a.cS)()},m(e,r){t&&(0,a.ye)(t,e,r),(0,a.$T)(e,n,r),i=!0},p(e,i){const o={};if(1&i[0]&&(o.selectedValue=e[0]),8192&i[0]&&(o.getSelectionLabel=e[13]),33554432&i[0]&&(o.activeSelectedValue=e[25]),1024&i[0]&&(o.isDisabled=e[10]),512&i[0]&&(o.multiFullItemClearable=e[9]),r!==(r=e[7])){if(t){(0,a.dv)();const e=t;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}r?(t=new r(s(e)),t.$on("multiItemClear",e[29]),t.$on("focus",e[32]),(0,a.YC)(t.$$.fragment),(0,a.Ui)(t.$$.fragment,1),(0,a.ye)(t,n.parentNode,n)):t=null}else r&&t.$set(o)},i(e){i||(t&&(0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){t&&(0,a.et)(t.$$.fragment,e),i=!1},d(e){e&&(0,a.og)(n),t&&(0,a.vp)(t,e)}}}function le(e){let t,n,i,r=[e[26],{placeholder:e[28]},{style:e[15]}],s={};for(let e=0;e<r.length;e+=1)s=(0,a.f0)(s,r[e]);return{c(){t=(0,a.bG)("input"),(0,a.UF)(t,s),(0,a.VH)(t,"svelte-17qb5ew",!0)},m(r,s){(0,a.$T)(r,t,s),e[63](t),(0,a.Bm)(t,e[1]),n||(i=[(0,a.oL)(t,"focus",e[32]),(0,a.oL)(t,"input",e[64])],n=!0)},p(e,n){(0,a.UF)(t,s=(0,a.Lo)(r,[67108864&n[0]&&e[26],268435456&n[0]&&{placeholder:e[28]},32768&n[0]&&{style:e[15]}])),2&n[0]&&t.value!==e[1]&&(0,a.Bm)(t,e[1]),(0,a.VH)(t,"svelte-17qb5ew",!0)},d(r){r&&(0,a.og)(t),e[63](null),n=!1,(0,a.j7)(i)}}}function ue(e){let t,n,i,r=[e[26],{placeholder:e[28]},{style:e[15]},{disabled:!0}],s={};for(let e=0;e<r.length;e+=1)s=(0,a.f0)(s,r[e]);return{c(){t=(0,a.bG)("input"),(0,a.UF)(t,s),(0,a.VH)(t,"svelte-17qb5ew",!0)},m(r,s){(0,a.$T)(r,t,s),e[61](t),(0,a.Bm)(t,e[1]),n||(i=[(0,a.oL)(t,"focus",e[32]),(0,a.oL)(t,"input",e[62])],n=!0)},p(e,n){(0,a.UF)(t,s=(0,a.Lo)(r,[67108864&n[0]&&e[26],268435456&n[0]&&{placeholder:e[28]},32768&n[0]&&{style:e[15]},{disabled:!0}])),2&n[0]&&t.value!==e[1]&&(0,a.Bm)(t,e[1]),(0,a.VH)(t,"svelte-17qb5ew",!0)},d(r){r&&(0,a.og)(t),e[61](null),n=!1,(0,a.j7)(i)}}}function ce(e){let t,n,i,r,s;var o=e[6];function d(e){return{props:{item:e[0],getSelectionLabel:e[13]}}}return o&&(n=new o(d(e))),{c(){t=(0,a.bG)("div"),n&&(0,a.YC)(n.$$.fragment),(0,a.Lj)(t,"class","selectedItem svelte-17qb5ew")},m(o,d){(0,a.$T)(o,t,d),n&&(0,a.ye)(n,t,null),i=!0,r||(s=(0,a.oL)(t,"focus",e[32]),r=!0)},p(e,i){const r={};if(1&i[0]&&(r.item=e[0]),8192&i[0]&&(r.getSelectionLabel=e[13]),o!==(o=e[6])){if(n){(0,a.dv)();const e=n;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}o?(n=new o(d(e)),(0,a.YC)(n.$$.fragment),(0,a.Ui)(n.$$.fragment,1),(0,a.ye)(n,t,null)):n=null}else o&&n.$set(r)},i(e){i||(n&&(0,a.Ui)(n.$$.fragment,e),i=!0)},o(e){n&&(0,a.et)(n.$$.fragment,e),i=!1},d(e){e&&(0,a.og)(t),n&&(0,a.vp)(n),r=!1,s()}}}function me(e){let t,n,i,r,s;var o=e[23];return o&&(n=new o({})),{c(){t=(0,a.bG)("div"),n&&(0,a.YC)(n.$$.fragment),(0,a.Lj)(t,"class","clearSelect svelte-17qb5ew")},m(o,d){(0,a.$T)(o,t,d),n&&(0,a.ye)(n,t,null),i=!0,r||(s=(0,a.oL)(t,"click",(0,a.AT)(e[24])),r=!0)},p(e,i){if(o!==(o=e[23])){if(n){(0,a.dv)();const e=n;(0,a.et)(e.$$.fragment,1,0,(()=>{(0,a.vp)(e,1)})),(0,a.gb)()}o?(n=new o({}),(0,a.YC)(n.$$.fragment),(0,a.Ui)(n.$$.fragment,1),(0,a.ye)(n,t,null)):n=null}},i(e){i||(n&&(0,a.Ui)(n.$$.fragment,e),i=!0)},o(e){n&&(0,a.et)(n.$$.fragment,e),i=!1},d(e){e&&(0,a.og)(t),n&&(0,a.vp)(n),r=!1,s()}}}function _e(e){let t;function n(e,t){return e[22]?fe:he}let i=n(e),r=i(e);return{c(){t=(0,a.bG)("div"),r.c(),(0,a.Lj)(t,"class","indicator svelte-17qb5ew")},m(e,n){(0,a.$T)(e,t,n),r.m(t,null)},p(e,a){i===(i=n(e))&&r?r.p(e,a):(r.d(1),r=i(e),r&&(r.c(),r.m(t,null)))},d(e){e&&(0,a.og)(t),r.d()}}}function he(e){let t,n;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747\n 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0\n 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502\n 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0\n 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"),(0,a.Lj)(t,"width","100%"),(0,a.Lj)(t,"height","100%"),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"focusable","false"),(0,a.Lj)(t,"class","svelte-17qb5ew")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p:a.ZT,d(e){e&&(0,a.og)(t)}}}function fe(e){let t,n;return{c(){t=new a.FW,n=(0,a.cS)(),t.a=n},m(i,r){t.m(e[22],i,r),(0,a.$T)(i,n,r)},p(e,n){4194304&n[0]&&t.p(e[22])},d(e){e&&(0,a.og)(n),e&&t.d()}}}function pe(e){let t;return{c(){t=(0,a.bG)("div"),t.innerHTML='<svg class="spinner_icon svelte-17qb5ew" viewBox="25 25 50 50"><circle class="spinner_path svelte-17qb5ew" cx="50" cy="50" r="20" fill="none" stroke="currentColor" stroke-width="5" stroke-miterlimit="10"></circle></svg>',(0,a.Lj)(t,"class","spinner svelte-17qb5ew")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function ge(e){let t,n,i,r,s,o,d,l,u,c,m,_=e[17]&&oe(e),h=e[8]&&e[0]&&e[0].length>0&&de(e);function f(e,t){return e[10]?ue:le}let p=f(e),g=p(e),L=!e[8]&&e[27]&&ce(e),y=e[27]&&e[16]&&!e[10]&&!e[5]&&me(e),v=(e[20]||e[19]&&!e[0]||!e[14]&&!e[10]&&!e[5]&&(e[27]&&!e[16]||!e[27]))&&_e(e),M=e[5]&&pe();return{c(){t=(0,a.bG)("div"),_&&_.c(),n=(0,a.Dh)(),h&&h.c(),i=(0,a.Dh)(),g.c(),r=(0,a.Dh)(),L&&L.c(),s=(0,a.Dh)(),y&&y.c(),o=(0,a.Dh)(),v&&v.c(),d=(0,a.Dh)(),M&&M.c(),(0,a.Lj)(t,"class",l="selectContainer "+e[21]+" svelte-17qb5ew"),(0,a.Lj)(t,"style",e[12]),(0,a.VH)(t,"hasError",e[11]),(0,a.VH)(t,"multiSelect",e[8]),(0,a.VH)(t,"disabled",e[10]),(0,a.VH)(t,"focused",e[4])},m(l,f){(0,a.$T)(l,t,f),_&&_.m(t,null),(0,a.R3)(t,n),h&&h.m(t,null),(0,a.R3)(t,i),g.m(t,null),(0,a.R3)(t,r),L&&L.m(t,null),(0,a.R3)(t,s),y&&y.m(t,null),(0,a.R3)(t,o),v&&v.m(t,null),(0,a.R3)(t,d),M&&M.m(t,null),e[65](t),u=!0,c||(m=[(0,a.oL)(window,"click",e[33]),(0,a.oL)(window,"keydown",e[31]),(0,a.oL)(window,"resize",e[30]),(0,a.oL)(t,"click",e[34])],c=!0)},p(e,c){e[17]?_?(_.p(e,c),131072&c[0]&&(0,a.Ui)(_,1)):(_=oe(e),_.c(),(0,a.Ui)(_,1),_.m(t,n)):_&&((0,a.dv)(),(0,a.et)(_,1,1,(()=>{_=null})),(0,a.gb)()),e[8]&&e[0]&&e[0].length>0?h?(h.p(e,c),257&c[0]&&(0,a.Ui)(h,1)):(h=de(e),h.c(),(0,a.Ui)(h,1),h.m(t,i)):h&&((0,a.dv)(),(0,a.et)(h,1,1,(()=>{h=null})),(0,a.gb)()),p===(p=f(e))&&g?g.p(e,c):(g.d(1),g=p(e),g&&(g.c(),g.m(t,r))),!e[8]&&e[27]?L?(L.p(e,c),134217984&c[0]&&(0,a.Ui)(L,1)):(L=ce(e),L.c(),(0,a.Ui)(L,1),L.m(t,s)):L&&((0,a.dv)(),(0,a.et)(L,1,1,(()=>{L=null})),(0,a.gb)()),e[27]&&e[16]&&!e[10]&&!e[5]?y?(y.p(e,c),134284320&c[0]&&(0,a.Ui)(y,1)):(y=me(e),y.c(),(0,a.Ui)(y,1),y.m(t,o)):y&&((0,a.dv)(),(0,a.et)(y,1,1,(()=>{y=null})),(0,a.gb)()),e[20]||e[19]&&!e[0]||!e[14]&&!e[10]&&!e[5]&&(e[27]&&!e[16]||!e[27])?v?v.p(e,c):(v=_e(e),v.c(),v.m(t,d)):v&&(v.d(1),v=null),e[5]?M||(M=pe(),M.c(),M.m(t,null)):M&&(M.d(1),M=null),(!u||2097152&c[0]&&l!==(l="selectContainer "+e[21]+" svelte-17qb5ew"))&&(0,a.Lj)(t,"class",l),(!u||4096&c[0])&&(0,a.Lj)(t,"style",e[12]),2099200&c[0]&&(0,a.VH)(t,"hasError",e[11]),2097408&c[0]&&(0,a.VH)(t,"multiSelect",e[8]),2098176&c[0]&&(0,a.VH)(t,"disabled",e[10]),2097168&c[0]&&(0,a.VH)(t,"focused",e[4])},i(e){u||((0,a.Ui)(_),(0,a.Ui)(h),(0,a.Ui)(L),(0,a.Ui)(y),u=!0)},o(e){(0,a.et)(_),(0,a.et)(h),(0,a.et)(L),(0,a.et)(y),u=!1},d(n){n&&(0,a.og)(t),_&&_.d(),h&&h.d(),g.d(),L&&L.d(),y&&y.d(),v&&v.d(),M&&M.d(),e[65](null),c=!1,(0,a.j7)(m)}}}function Le(e,t,n){let r,s,o;const d=(0,i.x)();let l,u,c,_,h,f,p,g,{container:L}=t,{input:y}=t,{Item:v=m}=t,{Selection:M=G}=t,{MultiSelection:b=te}=t,{isMulti:Y=!1}=t,{multiFullItemClearable:k=!1}=t,{isDisabled:w=!1}=t,{isCreatable:T=!1}=t,{isFocused:D=!1}=t,{selectedValue:x}=t,{filterText:$=""}=t,{placeholder:S="Select..."}=t,{items:j=[]}=t,{itemFilter:H=((e,t,n)=>e.toLowerCase().includes(t.toLowerCase()))}=t,{groupBy:C}=t,{groupFilter:E=(e=>e)}=t,{isGroupHeaderSelectable:O=!1}=t,{getGroupHeaderLabel:A=(e=>e.label)}=t,{getOptionLabel:I=((e,t)=>e.isCreator?`Create "${t}"`:e.label)}=t,{optionIdentifier:R="value"}=t,{loadOptions:P}=t,{hasError:N=!1}=t,{containerStyles:z=""}=t,{getSelectionLabel:U=(e=>{if(e)return e.label})}=t,{createGroupHeaderItem:W=(e=>({value:e,label:e}))}=t,{createItem:V=(e=>({value:e,label:e}))}=t,{isSearchable:q=!0}=t,{inputStyles:B=""}=t,{isClearable:Z=!0}=t,{isWaiting:J=!1}=t,{listPlacement:K="auto"}=t,{listOpen:X=!1}=t,{list:Q}=t,{isVirtualList:ee=!1}=t,{loadOptionsInterval:ne=300}=t,{noOptionsMessage:ae="No options"}=t,{hideEmptyState:re=!1}=t,{filteredItems:se=[]}=t,{inputAttributes:oe={}}=t,{listAutoWidth:de=!0}=t,{itemHeight:le=40}=t,{Icon:ue}=t,{iconProps:ce={}}=t,{showChevron:me=!1}=t,{showIndicator:_e=!1}=t,{containerClasses:he=""}=t,{indicatorSvg:fe}=t,{ClearIcon:pe=ie}=t;async function ge(){await(0,i.Ky)(),n(1,$="")}let Le=!1;const ye=function(e,t,n){let a;return function(){let i=this,r=arguments,s=function(){a=null,n||e.apply(i,r)},o=n&&!a;clearTimeout(a),a=setTimeout(s,t),o&&e.apply(i,r)}}((async()=>{Le=!0,n(5,J=!0);let e=await P($).catch((e=>{console.warn("svelte-select loadOptions error :>> ",e),d("error",{type:"loadOptions",details:e})}));e&&!e.cancelled&&(e?(n(35,j=[...e]),d("loaded",{items:j})):n(35,j=[]),n(5,J=!1),n(4,D=!0),n(37,X=!0))}),ne);let ve={};function Me(){let e=!0;if(x){const t=[],a=[];x.forEach((n=>{t.includes(n[R])?e=!1:(t.push(n[R]),a.push(n))})),e||n(0,x=a)}return e}function be(e){let t=e?e[R]:x[R];return j.find((e=>e[R]===t))}async function Ye(e){if(await(0,i.Ky)(),X)return Q?Q.$set({items:e}):void(P&&Le&&e.length>0&&xe())}function ke(e){const{detail:t}=e,a=x[t?t.i:x.length-1];1===x.length?n(0,x=void 0):n(0,x=x.filter((e=>e!==a))),d("clear",a),we()}async function we(){if(await(0,i.Ky)(),!l||!L)return;const{top:e,height:t,width:n}=L.getBoundingClientRect();l.style["min-width"]=`${n}px`,l.style.width=""+(de?"auto":"100%"),l.style.left="0","top"===K?l.style.bottom=`${t+5}px`:l.style.top=`${t+5}px`,l=l,"auto"===K&&function(e){const t=e.getBoundingClientRect(),n={};return n.top=t.top<0,n.left=t.left<0,n.bottom=t.bottom>(window.innerHeight||document.documentElement.clientHeight),n.right=t.right>(window.innerWidth||document.documentElement.clientWidth),n.any=n.top||n.left||n.bottom||n.right,n}(l).bottom&&(l.style.top="",l.style.bottom=`${t+5}px`),l.style.visibility=""}function Te(){n(4,D=!0),y&&y.focus()}function De(){ge(),n(25,u=void 0),Q&&(Q.$destroy(),n(36,Q=void 0),l&&(l.parentNode&&l.parentNode.removeChild(l),l=void 0,n(36,Q),l=l))}async function xe(){if(await(0,i.Ky)(),l&&Q)return;const e={Item:v,filterText:$,optionIdentifier:R,noOptionsMessage:ae,hideEmptyState:re,isVirtualList:ee,selectedValue:x,isMulti:Y,getGroupHeaderLabel:A,items:se,itemHeight:le};I&&(e.getOptionLabel=I),l=document.createElement("div"),Object.assign(l.style,{position:"absolute","z-index":2,visibility:"hidden"}),n(36,Q),l=l,L&&L.appendChild(l),n(36,Q=new F({target:l,props:e})),Q.$on("itemSelected",(e=>{const{detail:t}=e;if(t){const e=Object.assign({},t);e.isGroupHeader&&!e.isSelectable||(n(0,x=Y?x?x.concat([e]):[e]:e),ge(),n(0,x),n(48,R),n(8,Y),setTimeout((()=>{n(37,X=!1),n(25,u=void 0)})))}})),Q.$on("itemCreated",(e=>{const{detail:t}=e;Y?(n(0,x=x||[]),n(0,x=[...x,V(t)])):n(0,x=V(t)),d("itemCreated",t),n(1,$=""),n(37,X=!1),n(25,u=void 0),ge()})),Q.$on("closeList",(()=>{n(37,X=!1)})),n(36,Q),l=l,we()}return(0,i.ez)((()=>{if(Y&&x&&x.length>1&&Me(),!Y&&x&&_!==x&&(_&&JSON.stringify(x[R])===JSON.stringify(_[R])||d("select",x)),Y&&JSON.stringify(x)!==JSON.stringify(_)&&Me()&&d("select",x),L&&X!==h&&(X?xe():De()),$!==f&&($.length>0?(n(4,D=!0),n(37,X=!0),P?ye():(xe(),n(37,X=!0),Y&&n(25,u=void 0))):Ye([]),Q&&Q.$set({filterText:$})),D!==p&&(D||X?Te():(ge(),y&&y.blur())),g!==se){let e=[...se];if(T&&$){const t=V($);t.isCreator=!0;const n=e.find((e=>e[R]===t[R]));let a;x&&(Y?a=x.find((e=>e[R]===t[R])):x[R]===t[R]&&(a=x)),n||a||(e=[...e,t])}Ye(e)}_=x,h=X,f=$,p=D,g=se})),(0,i.H3)((()=>{D&&y.focus(),X&&xe(),j&&j.length>0&&n(60,c=JSON.stringify(j))})),(0,i.ev)((()=>{De()})),e.$$set=e=>{"container"in e&&n(2,L=e.container),"input"in e&&n(3,y=e.input),"Item"in e&&n(39,v=e.Item),"Selection"in e&&n(6,M=e.Selection),"MultiSelection"in e&&n(7,b=e.MultiSelection),"isMulti"in e&&n(8,Y=e.isMulti),"multiFullItemClearable"in e&&n(9,k=e.multiFullItemClearable),"isDisabled"in e&&n(10,w=e.isDisabled),"isCreatable"in e&&n(40,T=e.isCreatable),"isFocused"in e&&n(4,D=e.isFocused),"selectedValue"in e&&n(0,x=e.selectedValue),"filterText"in e&&n(1,$=e.filterText),"placeholder"in e&&n(41,S=e.placeholder),"items"in e&&n(35,j=e.items),"itemFilter"in e&&n(42,H=e.itemFilter),"groupBy"in e&&n(43,C=e.groupBy),"groupFilter"in e&&n(44,E=e.groupFilter),"isGroupHeaderSelectable"in e&&n(45,O=e.isGroupHeaderSelectable),"getGroupHeaderLabel"in e&&n(46,A=e.getGroupHeaderLabel),"getOptionLabel"in e&&n(47,I=e.getOptionLabel),"optionIdentifier"in e&&n(48,R=e.optionIdentifier),"loadOptions"in e&&n(49,P=e.loadOptions),"hasError"in e&&n(11,N=e.hasError),"containerStyles"in e&&n(12,z=e.containerStyles),"getSelectionLabel"in e&&n(13,U=e.getSelectionLabel),"createGroupHeaderItem"in e&&n(50,W=e.createGroupHeaderItem),"createItem"in e&&n(51,V=e.createItem),"isSearchable"in e&&n(14,q=e.isSearchable),"inputStyles"in e&&n(15,B=e.inputStyles),"isClearable"in e&&n(16,Z=e.isClearable),"isWaiting"in e&&n(5,J=e.isWaiting),"listPlacement"in e&&n(52,K=e.listPlacement),"listOpen"in e&&n(37,X=e.listOpen),"list"in e&&n(36,Q=e.list),"isVirtualList"in e&&n(53,ee=e.isVirtualList),"loadOptionsInterval"in e&&n(54,ne=e.loadOptionsInterval),"noOptionsMessage"in e&&n(55,ae=e.noOptionsMessage),"hideEmptyState"in e&&n(56,re=e.hideEmptyState),"filteredItems"in e&&n(38,se=e.filteredItems),"inputAttributes"in e&&n(57,oe=e.inputAttributes),"listAutoWidth"in e&&n(58,de=e.listAutoWidth),"itemHeight"in e&&n(59,le=e.itemHeight),"Icon"in e&&n(17,ue=e.Icon),"iconProps"in e&&n(18,ce=e.iconProps),"showChevron"in e&&n(19,me=e.showChevron),"showIndicator"in e&&n(20,_e=e.showIndicator),"containerClasses"in e&&n(21,he=e.containerClasses),"indicatorSvg"in e&&n(22,fe=e.indicatorSvg),"ClearIcon"in e&&n(23,pe=e.ClearIcon)},e.$$.update=()=>{if(1024&e.$$.dirty[0]&&(r=w),16&e.$$.dirty[1]&&function(e){e&&0!==e.length&&!e.some((e=>"object"!=typeof e))&&x&&(Y?!x.some((e=>!e||!e[R])):x[R])&&(Array.isArray(x)?n(0,x=x.map((e=>be(e)||e))):n(0,x=be()||x))}(j),257&e.$$.dirty[0]|131072&e.$$.dirty[1]&&("string"==typeof x?n(0,x={[R]:x,label:x}):Y&&Array.isArray(x)&&x.length>0&&n(0,x=x.map((e=>"string"==typeof e?{value:e,label:e}:e)))),16777248&e.$$.dirty[1]&&ae&&Q&&Q.$set({noOptionsMessage:ae}),3&e.$$.dirty[0]&&n(27,s=x&&0===$.length),1&e.$$.dirty[0]|1024&e.$$.dirty[1]&&n(28,o=x?"":S),16384&e.$$.dirty[0]|67108864&e.$$.dirty[1]&&(n(26,ve=Object.assign({autocomplete:"off",autocorrect:"off",spellcheck:!1},oe)),q||n(26,ve.readonly=!0,ve)),259&e.$$.dirty[0]|537884688&e.$$.dirty[1]){let e,t=j;if(j&&j.length>0&&"object"!=typeof j[0]&&(t=j.map(((e,t)=>({index:t,value:e,label:e})))),P&&0===$.length&&c?(e=JSON.parse(c),t=JSON.parse(c)):e=P?0===$.length?[]:t:t.filter((e=>{let t=!0;return Y&&x&&(t=!x.some((t=>t[R]===e[R]))),!!t&&($.length<1||H(I(e,$),$,e))})),C){const t=[],a={};e.forEach((e=>{const n=C(e);t.includes(n)||(t.push(n),a[n]=[],n&&a[n].push(Object.assign(W(n,e),{id:n,isGroupHeader:!0,isSelectable:O}))),a[n].push(Object.assign({isGroupItem:!!n},e))}));const i=[];E(t).forEach((e=>{i.push(...a[e])})),n(38,se=i)}else n(38,se=e)}},[x,$,L,y,D,J,M,b,Y,k,w,N,z,U,q,B,Z,ue,ce,me,_e,he,fe,pe,function(){n(0,x=void 0),n(37,X=!1),d("clear",x),Te()},u,ve,s,o,ke,we,function(e){if(D)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),n(37,X=!0),n(25,u=void 0);break;case"Tab":X||n(4,D=!1);break;case"Backspace":if(!Y||$.length>0)return;if(Y&&x&&x.length>0){if(ke(void 0!==u?u:x.length-1),0===u||void 0===u)break;n(25,u=x.length>u?u-1:void 0)}break;case"ArrowLeft":if(Q&&Q.$set({hoverItemIndex:-1}),!Y||$.length>0)return;void 0===u?n(25,u=x.length-1):x.length>u&&0!==u&&n(25,u-=1);break;case"ArrowRight":if(Q&&Q.$set({hoverItemIndex:-1}),!Y||$.length>0||void 0===u)return;u===x.length-1?n(25,u=void 0):u<x.length-1&&n(25,u+=1)}},Te,function(e){if(!L)return;const t=e.path&&e.path.length>0?e.path[0]:e.target;L.contains(t)||(n(4,D=!1),n(37,X=!1),n(25,u=void 0),y&&y.blur())},function(){w||(n(4,D=!0),n(37,X=!X))},j,Q,X,se,v,T,S,H,C,E,O,A,I,R,P,W,V,K,ee,ne,ae,re,oe,de,le,c,function(e){a.Vn[e?"unshift":"push"]((()=>{y=e,n(3,y)}))},function(){$=this.value,n(1,$)},function(e){a.Vn[e?"unshift":"push"]((()=>{y=e,n(3,y)}))},function(){$=this.value,n(1,$)},function(e){a.Vn[e?"unshift":"push"]((()=>{L=e,n(2,L)}))}]}class ye extends a.f_{constructor(e){super(),(0,a.S1)(this,e,Le,ge,a.N8,{container:2,input:3,Item:39,Selection:6,MultiSelection:7,isMulti:8,multiFullItemClearable:9,isDisabled:10,isCreatable:40,isFocused:4,selectedValue:0,filterText:1,placeholder:41,items:35,itemFilter:42,groupBy:43,groupFilter:44,isGroupHeaderSelectable:45,getGroupHeaderLabel:46,getOptionLabel:47,optionIdentifier:48,loadOptions:49,hasError:11,containerStyles:12,getSelectionLabel:13,createGroupHeaderItem:50,createItem:51,isSearchable:14,inputStyles:15,isClearable:16,isWaiting:5,listPlacement:52,listOpen:37,list:36,isVirtualList:53,loadOptionsInterval:54,noOptionsMessage:55,hideEmptyState:56,filteredItems:38,inputAttributes:57,listAutoWidth:58,itemHeight:59,Icon:17,iconProps:18,showChevron:19,showIndicator:20,containerClasses:21,indicatorSvg:22,ClearIcon:23,handleClear:24},[-1,-1,-1])}get handleClear(){return this.$$.ctx[24]}}const ve=ye},39150:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>ue,TN:()=>se});var a=n(21379),i=n(15120),r=n(9680),s=n(52218),o=n(9437),d=n(21843),l=n(10671),u=n(82352),c=n(14274);function m(e){let t,n,i,r,o,d;const l=e[4].default,u=(0,a.nu)(l,e,e[3],null);return{c(){t=(0,a.bG)("a"),u&&u.c(),(0,a.Lj)(t,"href",e[0]),(0,a.Lj)(t,"class",n=e[1]())},m(e,n){(0,a.$T)(e,t,n),u&&u.m(t,null),r=!0,o||(d=(0,a.TV)(i=s.II.call(null,t)),o=!0)},p(e,[n]){u&&u.p&&(!r||8&n)&&(0,a.Tj)(u,l,e,e[3],r?n:-1,null,null),(!r||1&n)&&(0,a.Lj)(t,"href",e[0])},i(e){r||((0,a.Ui)(u,e),r=!0)},o(e){(0,a.et)(u,e),r=!1},d(e){e&&(0,a.og)(t),u&&u.d(e),o=!1,d()}}}function _(e,t,n){let{$$slots:a={},$$scope:i}=t,{active:r}=t,{href:s}=t;return e.$$set=e=>{"active"in e&&n(2,r=e.active),"href"in e&&n(0,s=e.href),"$$scope"in e&&n(3,i=e.$$scope)},[s,function(){return r?"block pl-3 pr-4 py-2 border-l-4 border-indigo-400 text-base font-medium text-indigo-700 bg-indigo-50 focus:outline-none focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700 transition duration-150 ease-in-out":"block pl-3 pr-4 py-2 border-l-4 border-transparent text-base font-medium text-gray-600 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:text-gray-800 focus:bg-gray-50 focus:border-gray-300 transition duration-150 ease-in-out"},r,i,a]}class h extends a.f_{constructor(e){super(),(0,a.S1)(this,e,_,m,a.N8,{active:2,href:0})}}const f=h;var p=n(78907),g=n(76325),L=n(74162),y=n(64294),v=n(93379),M=n.n(v),b=n(60784),Y={insert:"head",singleton:!1};M()(b.Z,Y);b.Z.locals;const k=e=>({}),w=e=>({});function T(e){let t;return{c(){t=(0,a.fL)("Menú de navegación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function D(e){let t,n;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"stroke-linecap","round"),(0,a.Lj)(n,"stroke-linejoin","round"),(0,a.Lj)(n,"stroke-width","2"),(0,a.Lj)(n,"d","M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg"),(0,a.Lj)(t,"class","h-6 w-6"),(0,a.Lj)(t,"fill","none"),(0,a.Lj)(t,"viewBox","0 0 24 24"),(0,a.Lj)(t,"stroke","currentColor")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},d(e){e&&(0,a.og)(t)}}}function x(e){let t,n,i=e[2].props.auth.numeroNotificaciones+"";return{c(){t=(0,a.bG)("span"),n=(0,a.fL)(i),(0,a.Lj)(t,"class","absolute bg-indigo-700 flex h-5/6 items-center justify-center rounded-full text-center text-white text-xs w-5/6"),(0,a.cz)(t,"top","-10px"),(0,a.cz)(t,"left","10px")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,t){4&t[0]&&i!==(i=e[2].props.auth.numeroNotificaciones+"")&&(0,a.rT)(n,i)},d(e){e&&(0,a.og)(t)}}}function $(e){let t,n,i,r,s,o;return s=new c.Z({props:{name:"cheveron-down",class:"w-5 h-5 group-hover:fill-indigo-600 fill-gray-700 focus:fill-indigo-600"}}),{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),i=(0,a.bG)("span"),i.textContent=`${e[5].nombre}`,r=(0,a.Dh)(),(0,a.YC)(s.$$.fragment),(0,a.Lj)(i,"class","capitalize"),(0,a.Lj)(n,"class","text-gray-700 group-hover:text-indigo-600 focus:text-indigo-600 mr-1 whitespace-no-wrap"),(0,a.Lj)(t,"class","flex items-center cursor-pointer select-none group")},m(e,d){(0,a.$T)(e,t,d),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(t,r),(0,a.ye)(s,t,null),o=!0},p:a.ZT,i(e){o||((0,a.Ui)(s.$$.fragment,e),o=!0)},o(e){(0,a.et)(s.$$.fragment,e),o=!1},d(e){e&&(0,a.og)(t),(0,a.vp)(s)}}}function S(e){let t,n,i,r,d,l,u,c,m,_,h,f,p,g,L,y,v,M,b,Y,k,w,T,D,x,$,S,j=e[4]("Logout")+"";return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("a"),i=(0,a.bi)("svg"),r=(0,a.bi)("path"),d=(0,a.Dh)(),l=(0,a.bG)("span"),l.textContent="Soporte",m=(0,a.Dh)(),_=(0,a.bG)("a"),h=(0,a.bi)("svg"),f=(0,a.bi)("path"),p=(0,a.Dh)(),g=(0,a.bG)("span"),g.textContent="Cambiar contraseña",v=(0,a.Dh)(),M=(0,a.bG)("a"),b=(0,a.bi)("svg"),Y=(0,a.bi)("path"),k=(0,a.Dh)(),w=(0,a.bG)("span"),T=(0,a.fL)(j),(0,a.Lj)(r,"stroke-linecap","round"),(0,a.Lj)(r,"stroke-linejoin","round"),(0,a.Lj)(r,"stroke-width","2"),(0,a.Lj)(r,"d","M18.364 5.636l-3.536 3.536m0 5.656l3.536 3.536M9.172 9.172L5.636 5.636m3.536 9.192l-3.536 3.536M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-5 0a4 4 0 11-8 0 4 4 0 018 0z"),(0,a.Lj)(i,"xmlns","http://www.w3.org/2000/svg"),(0,a.Lj)(i,"class","h-6 w-6"),(0,a.cz)(i,"flex-basis","20px"),(0,a.Lj)(i,"fill","none"),(0,a.Lj)(i,"viewBox","0 0 24 24"),(0,a.Lj)(i,"stroke","currentColor"),(0,a.Lj)(l,"class","ml-1.5"),(0,a.Lj)(n,"href",u=(0,o.BC)("reportar-problemas.create")),(0,a.Lj)(n,"class","flex items-center px-6 py-2 hover:bg-indigo-500 hover:text-white"),(0,a.Lj)(f,"stroke-linecap","round"),(0,a.Lj)(f,"stroke-linejoin","round"),(0,a.Lj)(f,"stroke-width","2"),(0,a.Lj)(f,"d","M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"),(0,a.Lj)(h,"xmlns","http://www.w3.org/2000/svg"),(0,a.Lj)(h,"class","h-6 w-6"),(0,a.cz)(h,"flex-basis","20px"),(0,a.Lj)(h,"fill","none"),(0,a.Lj)(h,"viewBox","0 0 24 24"),(0,a.Lj)(h,"stroke","currentColor"),(0,a.Lj)(g,"class","ml-1.5"),(0,a.Lj)(_,"href",L=(0,o.BC)("users.change-password")),(0,a.Lj)(_,"class","flex items-center px-6 py-2 hover:bg-indigo-500 hover:text-white"),(0,a.Lj)(Y,"fill-rule","evenodd"),(0,a.Lj)(Y,"d","M3 3a1 1 0 00-1 1v12a1 1 0 102 0V4a1 1 0 00-1-1zm10.293 9.293a1 1 0 001.414 1.414l3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L14.586 9H7a1 1 0 100 2h7.586l-1.293 1.293z"),(0,a.Lj)(Y,"clip-rule","evenodd"),(0,a.Lj)(b,"xmlns","http://www.w3.org/2000/svg"),(0,a.Lj)(b,"class","h-5 w-5"),(0,a.Lj)(b,"viewBox","0 0 20 20"),(0,a.Lj)(b,"fill","currentColor"),(0,a.Lj)(w,"class","ml-1.5"),(0,a.Lj)(M,"href",D=(0,o.BC)("logout")),(0,a.Lj)(M,"class","flex items-center px-6 py-2 hover:bg-indigo-500 hover:text-white"),(0,a.Lj)(t,"slot","dropdown"),(0,a.Lj)(t,"class","mt-2 py-2 shadow-xl bg-white rounded text-sm")},m(e,o){(0,a.$T)(e,t,o),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(i,r),(0,a.R3)(n,d),(0,a.R3)(n,l),(0,a.R3)(t,m),(0,a.R3)(t,_),(0,a.R3)(_,h),(0,a.R3)(h,f),(0,a.R3)(_,p),(0,a.R3)(_,g),(0,a.R3)(t,v),(0,a.R3)(t,M),(0,a.R3)(M,b),(0,a.R3)(b,Y),(0,a.R3)(M,k),(0,a.R3)(M,w),(0,a.R3)(w,T),$||(S=[(0,a.TV)(c=s.II.call(null,n)),(0,a.TV)(y=s.II.call(null,_)),(0,a.TV)(x=s.II.call(null,M,{method:"post"}))],$=!0)},p(e,t){16&t[0]&&j!==(j=e[4]("Logout")+"")&&(0,a.rT)(T,j)},d(e){e&&(0,a.og)(t),$=!1,(0,a.j7)(S)}}}function j(e){let t;return{c(){t=(0,a.fL)("Menú de navegación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function H(e){let t,n=e[4]("Logout")+"";return{c(){t=(0,a.fL)(n)},m(e,n){(0,a.$T)(e,t,n)},p(e,i){16&i[0]&&n!==(n=e[4]("Logout")+"")&&(0,a.rT)(t,n)},d(e){e&&(0,a.og)(t)}}}function C(e){let t;const n=e[8].header,i=(0,a.nu)(n,e,e[34],w);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||8&r[1])&&(0,a.Tj)(i,n,e,e[34],t?r:[-1,-1],k,w)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function E(e){let t;return{c(){t=(0,a.bG)("div"),t.innerHTML='<div class="">Menú de navegación</div>',(0,a.Lj)(t,"slot","title"),(0,a.Lj)(t,"class","mb-6 text-center text-primary")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function O(e){let t;return{c(){t=(0,a.fL)("Ambientes de modernización")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function A(e){let t;return{c(){t=(0,a.fL)("Anexos")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function I(e){let t;return{c(){t=(0,a.fL)("Centros de formación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function R(e){let t;return{c(){t=(0,a.fL)("Convocatorias")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function P(e){let t;return{c(){t=(0,a.fL)("Evaluaciones")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function F(e){let t;return{c(){t=(0,a.fL)("Grupos de investigación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function N(e){let t;return{c(){t=(0,a.fL)("Líneas de investigación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function z(e){let t;return{c(){t=(0,a.fL)("Líneas programáticas")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function U(e){let t;return{c(){t=(0,a.fL)("Líneas TecnoAcademia")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function W(e){let t;return{c(){t=(0,a.fL)("Mesas técnicas")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function V(e){let t;return{c(){t=(0,a.fL)("Programas de formación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function G(e){let t;return{c(){t=(0,a.fL)("Proyectos")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function q(e){let t;return{c(){t=(0,a.fL)("Redes de conocimiento")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function B(e){let t;return{c(){t=(0,a.fL)("Regionales")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function Z(e){let t;return{c(){t=(0,a.fL)("Reportes")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function J(e){let t;return{c(){t=(0,a.fL)("Roles SENNOVA")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function K(e){let t;return{c(){t=(0,a.fL)("Roles de sistema")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function X(e){let t;return{c(){t=(0,a.fL)("Semilleros de investigación")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function Q(e){let t;return{c(){t=(0,a.fL)("Tecnoacademias")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function ee(e){let t;return{c(){t=(0,a.fL)("Temáticas estratégicas SENA")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function te(e){let t;return{c(){t=(0,a.fL)("Usuarios")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function ne(e){let t,n,i,r,s,d,l,u,c,m,_,h,f,p,g,y,v,M,b,Y,k,w,T,D=e[6]||(0,o.Zd)(e[5],[4,21,20,18,19,5,17]),x=e[6]||(0,o.Zd)(e[5],[11])||(0,o.P_)(e[5],[1,3,4,5,6,7,8,9,10,11,12,13,17,18,19,14,15,16,20,21]),$=e[6]||(0,o.Zd)(e[5],[20,18,19,5,17]),S=e[6]||(0,o.Zd)(e[5],[4,21,20,18,19,5,17]),j=e[6]||(0,o.Zd)(e[5],[4,21,20,18,19,5,17]),H=e[6]||(0,o.Zd)(e[5],[20,18,19,5,17]),C=e[6]||(0,o.Zd)(e[5],[20,18,19,5,17]),E=e[6]||(0,o.Zd)(e[5],[4,21,20,18,19,5,17]),ne=e[6]||(0,o.Zd)(e[5],[5]),ae=e[6]||(0,o.Zd)(e[5],[4,21,18,19,5,17]),ie=D&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("ambientes-modernizacion.*")?"raised":"outlined",class:"p-2",$$slots:{default:[O]},$$scope:{ctx:e}}}),t.$on("click",e[12]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),re=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("anexos.*")?"raised":"outlined",class:"p-2",$$slots:{default:[A]},$$scope:{ctx:e}}}),t.$on("click",e[13]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),se=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("centros-formacion.*")?"raised":"outlined",class:"p-2",$$slots:{default:[I]},$$scope:{ctx:e}}}),t.$on("click",e[14]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),oe=x&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("convocatorias.*")?"raised":"outlined",class:"p-2",$$slots:{default:[R]},$$scope:{ctx:e}}}),t.$on("click",e[15]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),de=$&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("evaluaciones.*")?"raised":"outlined",class:"p-2",$$slots:{default:[P]},$$scope:{ctx:e}}}),t.$on("click",e[16]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),le=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("grupos-investigacion.*")?"raised":"outlined",class:"p-2",$$slots:{default:[F]},$$scope:{ctx:e}}}),t.$on("click",e[17]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),ue=S&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("lineas-investigacion.*")?"raised":"outlined",class:"p-2",$$slots:{default:[N]},$$scope:{ctx:e}}}),t.$on("click",e[18]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),ce=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("lineas-programaticas.*")?"raised":"outlined",class:"p-2",$$slots:{default:[z]},$$scope:{ctx:e}}}),t.$on("click",e[19]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),me=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("lineas-tecnoacademia.*")?"raised":"outlined",class:"p-2",$$slots:{default:[U]},$$scope:{ctx:e}}}),t.$on("click",e[20]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),_e=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("mesas-tecnicas.*")?"raised":"outlined",class:"p-2",$$slots:{default:[W]},$$scope:{ctx:e}}}),t.$on("click",e[21]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),he=j&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("programas-formacion.*")?"raised":"outlined",class:"p-2",$$slots:{default:[V]},$$scope:{ctx:e}}}),t.$on("click",e[22]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),fe=H&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("proyectos.*")?"raised":"outlined",class:"p-2",$$slots:{default:[G]},$$scope:{ctx:e}}}),t.$on("click",e[23]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),pe=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("redes-conocimiento.*")?"raised":"outlined",class:"p-2",$$slots:{default:[q]},$$scope:{ctx:e}}}),t.$on("click",e[24]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),ge=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("regionales.*")?"raised":"outlined",class:"p-2",$$slots:{default:[B]},$$scope:{ctx:e}}}),t.$on("click",e[25]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),Le=C&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("reportes.*")?"raised":"outlined",class:"p-2",$$slots:{default:[Z]},$$scope:{ctx:e}}}),t.$on("click",e[26]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),ye=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("roles-sennova.*")?"raised":"outlined",class:"p-2",$$slots:{default:[J]},$$scope:{ctx:e}}}),t.$on("click",e[27]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),ve=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("roles.*")?"raised":"outlined",class:"p-2",$$slots:{default:[K]},$$scope:{ctx:e}}}),t.$on("click",e[28]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),Me=E&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("semilleros-investigacion.*")?"raised":"outlined",class:"p-2",$$slots:{default:[X]},$$scope:{ctx:e}}}),t.$on("click",e[29]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),be=ne&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("tecnoacademias.*")?"raised":"outlined",class:"p-2",$$slots:{default:[Q]},$$scope:{ctx:e}}}),t.$on("click",e[30]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),Ye=e[6]&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("tematicas-estrategicas.*")?"raised":"outlined",class:"p-2",$$slots:{default:[ee]},$$scope:{ctx:e}}}),t.$on("click",e[31]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),ke=ae&&function(e){let t,n;return t=new L.Z({props:{variant:(0,o.BC)().current("users.*")?"raised":"outlined",class:"p-2",$$slots:{default:[te]},$$scope:{ctx:e}}}),t.$on("click",e[32]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e);return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),ie&&ie.c(),i=(0,a.Dh)(),re&&re.c(),r=(0,a.Dh)(),se&&se.c(),s=(0,a.Dh)(),oe&&oe.c(),d=(0,a.Dh)(),de&&de.c(),l=(0,a.Dh)(),le&&le.c(),u=(0,a.Dh)(),ue&&ue.c(),c=(0,a.Dh)(),ce&&ce.c(),m=(0,a.Dh)(),me&&me.c(),_=(0,a.Dh)(),_e&&_e.c(),h=(0,a.Dh)(),he&&he.c(),f=(0,a.Dh)(),fe&&fe.c(),p=(0,a.Dh)(),pe&&pe.c(),g=(0,a.Dh)(),ge&&ge.c(),y=(0,a.Dh)(),Le&&Le.c(),v=(0,a.Dh)(),ye&&ye.c(),M=(0,a.Dh)(),ve&&ve.c(),b=(0,a.Dh)(),Me&&Me.c(),Y=(0,a.Dh)(),be&&be.c(),k=(0,a.Dh)(),Ye&&Ye.c(),w=(0,a.Dh)(),ke&&ke.c(),(0,a.Lj)(n,"class","grid grid-cols-3 gap-5 p-8"),(0,a.Lj)(t,"slot","content")},m(e,o){(0,a.$T)(e,t,o),(0,a.R3)(t,n),ie&&ie.m(n,null),(0,a.R3)(n,i),re&&re.m(n,null),(0,a.R3)(n,r),se&&se.m(n,null),(0,a.R3)(n,s),oe&&oe.m(n,null),(0,a.R3)(n,d),de&&de.m(n,null),(0,a.R3)(n,l),le&&le.m(n,null),(0,a.R3)(n,u),ue&&ue.m(n,null),(0,a.R3)(n,c),ce&&ce.m(n,null),(0,a.R3)(n,m),me&&me.m(n,null),(0,a.R3)(n,_),_e&&_e.m(n,null),(0,a.R3)(n,h),he&&he.m(n,null),(0,a.R3)(n,f),fe&&fe.m(n,null),(0,a.R3)(n,p),pe&&pe.m(n,null),(0,a.R3)(n,g),ge&&ge.m(n,null),(0,a.R3)(n,y),Le&&Le.m(n,null),(0,a.R3)(n,v),ye&&ye.m(n,null),(0,a.R3)(n,M),ve&&ve.m(n,null),(0,a.R3)(n,b),Me&&Me.m(n,null),(0,a.R3)(n,Y),be&&be.m(n,null),(0,a.R3)(n,k),Ye&&Ye.m(n,null),(0,a.R3)(n,w),ke&&ke.m(n,null),T=!0},p(e,t){D&&ie.p(e,t),e[6]&&re.p(e,t),e[6]&&se.p(e,t),x&&oe.p(e,t),$&&de.p(e,t),e[6]&&le.p(e,t),S&&ue.p(e,t),e[6]&&ce.p(e,t),e[6]&&me.p(e,t),e[6]&&_e.p(e,t),j&&he.p(e,t),H&&fe.p(e,t),e[6]&&pe.p(e,t),e[6]&&ge.p(e,t),C&&Le.p(e,t),e[6]&&ye.p(e,t),e[6]&&ve.p(e,t),E&&Me.p(e,t),ne&&be.p(e,t),e[6]&&Ye.p(e,t),ae&&ke.p(e,t)},i(e){T||((0,a.Ui)(ie),(0,a.Ui)(re),(0,a.Ui)(se),(0,a.Ui)(oe),(0,a.Ui)(de),(0,a.Ui)(le),(0,a.Ui)(ue),(0,a.Ui)(ce),(0,a.Ui)(me),(0,a.Ui)(_e),(0,a.Ui)(he),(0,a.Ui)(fe),(0,a.Ui)(pe),(0,a.Ui)(ge),(0,a.Ui)(Le),(0,a.Ui)(ye),(0,a.Ui)(ve),(0,a.Ui)(Me),(0,a.Ui)(be),(0,a.Ui)(Ye),(0,a.Ui)(ke),T=!0)},o(e){(0,a.et)(ie),(0,a.et)(re),(0,a.et)(se),(0,a.et)(oe),(0,a.et)(de),(0,a.et)(le),(0,a.et)(ue),(0,a.et)(ce),(0,a.et)(me),(0,a.et)(_e),(0,a.et)(he),(0,a.et)(fe),(0,a.et)(pe),(0,a.et)(ge),(0,a.et)(Le),(0,a.et)(ye),(0,a.et)(ve),(0,a.et)(Me),(0,a.et)(be),(0,a.et)(Ye),(0,a.et)(ke),T=!1},d(e){e&&(0,a.og)(t),ie&&ie.d(),re&&re.d(),se&&se.d(),oe&&oe.d(),de&&de.d(),le&&le.d(),ue&&ue.d(),ce&&ce.d(),me&&me.d(),_e&&_e.d(),he&&he.d(),fe&&fe.d(),pe&&pe.d(),ge&&ge.d(),Le&&Le.d(),ye&&ye.d(),ve&&ve.d(),Me&&Me.d(),be&&be.d(),Ye&&Ye.d(),ke&&ke.d()}}}function ae(e){let t;return{c(){t=(0,a.fL)("Cancelar")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function ie(e){let t,n,i,r;return i=new L.Z({props:{variant:null,$$slots:{default:[ae]},$$scope:{ctx:e}}}),i.$on("click",e[11]),{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),(0,a.YC)(i.$$.fragment),(0,a.Lj)(n,"class","p-4"),(0,a.Lj)(t,"slot","actions")},m(e,s){(0,a.$T)(e,t,s),(0,a.R3)(t,n),(0,a.ye)(i,n,null),r=!0},p(e,t){const n={};8&t[1]&&(n.$$scope={dirty:t,ctx:e}),i.$set(n)},i(e){r||((0,a.Ui)(i.$$.fragment,e),r=!0)},o(e){(0,a.et)(i.$$.fragment,e),r=!1},d(e){e&&(0,a.og)(t),(0,a.vp)(i)}}}function re(e){let t,n,i,r,d,c,m,_,h,v,M,b,Y,k,w,O,A,I,R,P,F,N,z,U,W,V,G,q,B,Z,J,K,X,Q,ee,te,ae,re,se,de,le,ue,ce,me,_e,he,fe,pe,ge,Le,ye,ve,Me,be,Ye,ke,we,Te,De,xe=e[2].props.convocatoria.fase_formateada+"";document.title=t=e[3]?`${e[3]} - SGPS-SIPRO`:"SGPS-SIPRO",M=new l.Z({props:{class:"w-10"}}),O=new L.Z({props:{variant:null,$$slots:{default:[T]},$$scope:{ctx:e}}}),O.$on("click",e[9]);let $e=e[6]&&function(e){let t,n;return t=new L.Z({props:{class:"ml-4 mb-2",variant:"raised",$$slots:{default:[D]},$$scope:{ctx:e}}}),t.$on("click",e[10]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n[1]&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}(e),Se=e[2].props.auth.numeroNotificaciones>0&&x(e);K=new u.Z({props:{class:"mt-1",placement:"bottom-end",$$slots:{dropdown:[S],default:[$]},$$scope:{ctx:e}}}),te=new f({props:{href:(0,o.BC)("dashboard"),active:(0,o.BC)().current("dashboard"),$$slots:{default:[j]},$$scope:{ctx:e}}}),_e=new f({props:{href:(0,o.BC)("logout"),method:"post",as:"button",$$slots:{default:[H]},$$scope:{ctx:e}}});let je=e[7].header&&C(e);Le=new p.Z({}),ve=new y.Z({props:{loading:e[1]}});const He=e[8].default,Ce=(0,a.nu)(He,e,e[34],null);function Ee(t){e[33](t)}let Oe={id:"main-menu",$$slots:{actions:[ie],content:[ne],title:[E]},$$scope:{ctx:e}};return void 0!==e[0]&&(Oe.open=e[0]),Ye=new g.Z({props:Oe}),a.Vn.push((()=>(0,a.ak)(Ye,"open",Ee))),{c(){n=(0,a.Dh)(),i=(0,a.bG)("div"),r=(0,a.bG)("div"),d=(0,a.bG)("nav"),c=(0,a.bG)("div"),m=(0,a.bG)("div"),_=(0,a.bG)("div"),h=(0,a.bG)("div"),v=(0,a.bG)("a"),(0,a.YC)(M.$$.fragment),k=(0,a.Dh)(),w=(0,a.bG)("div"),(0,a.YC)(O.$$.fragment),A=(0,a.Dh)(),I=(0,a.bG)("div"),R=(0,a.bG)("div"),P=new a.FW,F=(0,a.Dh)(),$e&&$e.c(),N=(0,a.Dh)(),z=(0,a.bG)("div"),U=(0,a.bG)("a"),W=(0,a.bi)("svg"),V=(0,a.bi)("path"),G=(0,a.Dh)(),Se&&Se.c(),Z=(0,a.Dh)(),J=(0,a.bG)("div"),(0,a.YC)(K.$$.fragment),X=(0,a.Dh)(),Q=(0,a.bG)("div"),ee=(0,a.bG)("div"),(0,a.YC)(te.$$.fragment),ae=(0,a.Dh)(),re=(0,a.bG)("div"),se=(0,a.bG)("div"),de=(0,a.bG)("div"),de.textContent=`${e[5].name}`,le=(0,a.Dh)(),ue=(0,a.bG)("div"),ue.textContent=`${e[5].email}`,ce=(0,a.Dh)(),me=(0,a.bG)("div"),(0,a.YC)(_e.$$.fragment),fe=(0,a.Dh)(),je&&je.c(),pe=(0,a.Dh)(),ge=(0,a.bG)("main"),(0,a.YC)(Le.$$.fragment),ye=(0,a.Dh)(),(0,a.YC)(ve.$$.fragment),Me=(0,a.Dh)(),Ce&&Ce.c(),be=(0,a.Dh)(),(0,a.YC)(Ye.$$.fragment),(0,a.Lj)(v,"href",b=(0,o.BC)("dashboard")),(0,a.Lj)(h,"class","flex-shrink-0 flex items-center"),(0,a.Lj)(w,"class","hidden space-x-8 sm:-my-px sm:ml-10 sm:flex sm:items-center"),(0,a.Lj)(_,"class","flex"),P.a=F,(0,a.Lj)(R,"class","bg-indigo-500 text-white py-2 px-4 shadow border-b-2 flex"),(0,a.Lj)(V,"stroke-linecap","round"),(0,a.Lj)(V,"stroke-linejoin","round"),(0,a.Lj)(V,"stroke-width","2"),(0,a.Lj)(V,"d","M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"),(0,a.Lj)(W,"xmlns","http://www.w3.org/2000/svg"),(0,a.Lj)(W,"class","h-6 w-6"),(0,a.Lj)(W,"fill","none"),(0,a.Lj)(W,"viewBox","0 0 24 24"),(0,a.Lj)(W,"stroke","currentColor"),(0,a.Lj)(U,"href",q=(0,o.BC)("notificaciones.index")),(0,a.Lj)(U,"class","flex items-center hover:text-indigo-700"),(0,a.Lj)(z,"class","mr-5 ml-5 relative"),(0,a.Lj)(J,"class","ml-3 relative"),(0,a.Lj)(I,"class","hidden sm:flex sm:items-center sm:ml-6"),(0,a.Lj)(m,"class","flex justify-between h-16"),(0,a.Lj)(c,"class","max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"),(0,a.Lj)(ee,"class","pt-2 pb-3 space-y-1"),(0,a.Lj)(de,"class","font-medium text-base text-gray-800"),(0,a.Lj)(ue,"class","font-medium text-sm text-gray-500"),(0,a.Lj)(se,"class","flex items-center px-4"),(0,a.Lj)(me,"class","mt-3 space-y-1"),(0,a.Lj)(re,"class","pt-4 pb-1 border-t border-gray-200"),(0,a.Lj)(Q,"class",he="sm:hidden"+(oe?"":" hidden")),(0,a.Lj)(d,"class","bg-white border-b border-gray-100"),(0,a.Lj)(ge,"class","lg:px-8 max-w-7xl md:p-12 mx-auto px-4 py-8 sm:px-6"),(0,a.Lj)(r,"class","min-h-screen bg-gray-100")},m(e,t){(0,a.$T)(e,n,t),(0,a.$T)(e,i,t),(0,a.R3)(i,r),(0,a.R3)(r,d),(0,a.R3)(d,c),(0,a.R3)(c,m),(0,a.R3)(m,_),(0,a.R3)(_,h),(0,a.R3)(h,v),(0,a.ye)(M,v,null),(0,a.R3)(_,k),(0,a.R3)(_,w),(0,a.ye)(O,w,null),(0,a.R3)(m,A),(0,a.R3)(m,I),(0,a.R3)(I,R),P.m(xe,R),(0,a.R3)(R,F),$e&&$e.m(R,null),(0,a.R3)(I,N),(0,a.R3)(I,z),(0,a.R3)(z,U),(0,a.R3)(U,W),(0,a.R3)(W,V),(0,a.R3)(U,G),Se&&Se.m(U,null),(0,a.R3)(I,Z),(0,a.R3)(I,J),(0,a.ye)(K,J,null),(0,a.R3)(d,X),(0,a.R3)(d,Q),(0,a.R3)(Q,ee),(0,a.ye)(te,ee,null),(0,a.R3)(Q,ae),(0,a.R3)(Q,re),(0,a.R3)(re,se),(0,a.R3)(se,de),(0,a.R3)(se,le),(0,a.R3)(se,ue),(0,a.R3)(re,ce),(0,a.R3)(re,me),(0,a.ye)(_e,me,null),(0,a.R3)(r,fe),je&&je.m(r,null),(0,a.R3)(r,pe),(0,a.R3)(r,ge),(0,a.ye)(Le,ge,null),(0,a.R3)(ge,ye),(0,a.ye)(ve,ge,null),(0,a.R3)(ge,Me),Ce&&Ce.m(ge,null),(0,a.$T)(e,be,t),(0,a.ye)(Ye,e,t),we=!0,Te||(De=[(0,a.TV)(Y=s.II.call(null,v)),(0,a.TV)(B=s.II.call(null,U))],Te=!0)},p(e,n){(!we||8&n[0])&&t!==(t=e[3]?`${e[3]} - SGPS-SIPRO`:"SGPS-SIPRO")&&(document.title=t);const i={};8&n[1]&&(i.$$scope={dirty:n,ctx:e}),O.$set(i),(!we||4&n[0])&&xe!==(xe=e[2].props.convocatoria.fase_formateada+"")&&P.p(xe),e[6]&&$e.p(e,n),e[2].props.auth.numeroNotificaciones>0?Se?Se.p(e,n):(Se=x(e),Se.c(),Se.m(U,null)):Se&&(Se.d(1),Se=null);const s={};16&n[0]|8&n[1]&&(s.$$scope={dirty:n,ctx:e}),K.$set(s);const o={};8&n[1]&&(o.$$scope={dirty:n,ctx:e}),te.$set(o);const d={};16&n[0]|8&n[1]&&(d.$$scope={dirty:n,ctx:e}),_e.$set(d),e[7].header?je?(je.p(e,n),128&n[0]&&(0,a.Ui)(je,1)):(je=C(e),je.c(),(0,a.Ui)(je,1),je.m(r,pe)):je&&((0,a.dv)(),(0,a.et)(je,1,1,(()=>{je=null})),(0,a.gb)());const l={};2&n[0]&&(l.loading=e[1]),ve.$set(l),Ce&&Ce.p&&(!we||8&n[1])&&(0,a.Tj)(Ce,He,e,e[34],we?n:[-1,-1],null,null);const u={};1&n[0]|8&n[1]&&(u.$$scope={dirty:n,ctx:e}),!ke&&1&n[0]&&(ke=!0,u.open=e[0],(0,a.hj)((()=>ke=!1))),Ye.$set(u)},i(e){we||((0,a.Ui)(M.$$.fragment,e),(0,a.Ui)(O.$$.fragment,e),(0,a.Ui)($e),(0,a.Ui)(K.$$.fragment,e),(0,a.Ui)(te.$$.fragment,e),(0,a.Ui)(_e.$$.fragment,e),(0,a.Ui)(je),(0,a.Ui)(Le.$$.fragment,e),(0,a.Ui)(ve.$$.fragment,e),(0,a.Ui)(Ce,e),(0,a.Ui)(Ye.$$.fragment,e),we=!0)},o(e){(0,a.et)(M.$$.fragment,e),(0,a.et)(O.$$.fragment,e),(0,a.et)($e),(0,a.et)(K.$$.fragment,e),(0,a.et)(te.$$.fragment,e),(0,a.et)(_e.$$.fragment,e),(0,a.et)(je),(0,a.et)(Le.$$.fragment,e),(0,a.et)(ve.$$.fragment,e),(0,a.et)(Ce,e),(0,a.et)(Ye.$$.fragment,e),we=!1},d(e){e&&(0,a.og)(n),e&&(0,a.og)(i),(0,a.vp)(M),(0,a.vp)(O),$e&&$e.d(),Se&&Se.d(),(0,a.vp)(K),(0,a.vp)(te),(0,a.vp)(_e),je&&je.d(),(0,a.vp)(Le),(0,a.vp)(ve),Ce&&Ce.d(e),e&&(0,a.og)(be),(0,a.vp)(Ye,e),Te=!1,(0,a.j7)(De)}}}const se=(0,i.fZ)(null);(0,i.fZ)(null);let oe=!1;function de(e,t,n){let i,l,u,c=a.ZT;(0,a.FI)(e,s.Md,(e=>n(2,i=e))),(0,a.FI)(e,se,(e=>n(3,l=e))),(0,a.FI)(e,d._,(e=>n(4,u=e))),e.$$.on_destroy.push((()=>c()));let{$$slots:m={},$$scope:_}=t;const h=(0,a.XG)(m);let f=!1,p=i.props.auth.user,g=(0,o.Zd)(p,[1]),L=!0;r.rC.on("start",(()=>{n(1,L=!1)})),r.rC.on("finish",(()=>{n(1,L=!0)}));return e.$$set=e=>{"$$scope"in e&&n(34,_=e.$$scope)},[f,L,i,l,u,p,g,h,m,()=>n(0,f=!0),()=>r.rC.visit((0,o.BC)("convocatorias.edit",[i.props.convocatoria.id])),e=>n(0,f=!1),()=>r.rC.visit((0,o.BC)("ambientes-modernizacion.index")),()=>r.rC.visit((0,o.BC)("anexos.index")),()=>r.rC.visit((0,o.BC)("centros-formacion.index")),()=>r.rC.visit((0,o.BC)("convocatorias.index")),()=>r.rC.visit((0,o.BC)("evaluaciones.index")),()=>r.rC.visit((0,o.BC)("grupos-investigacion.index")),()=>r.rC.visit((0,o.BC)("lineas-investigacion.index")),()=>r.rC.visit((0,o.BC)("lineas-programaticas.index")),()=>r.rC.visit((0,o.BC)("lineas-tecnoacademia.index")),()=>r.rC.visit((0,o.BC)("mesas-tecnicas.index")),()=>r.rC.visit((0,o.BC)("programas-formacion.index")),()=>r.rC.visit((0,o.BC)("proyectos.index")),()=>r.rC.visit((0,o.BC)("redes-conocimiento.index")),()=>r.rC.visit((0,o.BC)("regionales.index")),()=>r.rC.visit((0,o.BC)("reportes.index")),()=>r.rC.visit((0,o.BC)("roles-sennova.index")),()=>r.rC.visit((0,o.BC)("roles.index")),()=>r.rC.visit((0,o.BC)("semilleros-investigacion.index")),()=>r.rC.visit((0,o.BC)("tecnoacademias.index")),()=>r.rC.visit((0,o.BC)("tematicas-estrategicas.index")),()=>r.rC.visit((0,o.BC)("users.index")),function(e){f=e,n(0,f)},_]}class le extends a.f_{constructor(e){super(),(0,a.S1)(this,e,de,re,a.N8,{},[-1,-1])}}const ue=le},70606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Y});var a=n(21379),i=n(39150),r=n(52218),s=n(9437),o=(n(21843),n(93879)),d=n(48825),l=n(52906),u=n(99695),c=n(41565),m=n(65843),_=n(42160);function h(e){let t,n,i;function r(t){e[16](t)}let s={};return void 0!==e[6].autorizacion_datos&&(s.checked=e[6].autorizacion_datos),t=new m.Z({props:s}),a.Vn.push((()=>(0,a.ak)(t,"checked",r))),{c(){(0,a.YC)(t.$$.fragment)},m(e,n){(0,a.ye)(t,e,n),i=!0},p(e,i){const r={};!n&&64&i&&(n=!0,r.checked=e[6].autorizacion_datos,(0,a.hj)((()=>n=!1))),t.$set(r)},i(e){i||((0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){(0,a.et)(t.$$.fragment,e),i=!1},d(e){(0,a.vp)(t,e)}}}function f(e){let t;return{c(){t=(0,a.bG)("span"),t.innerHTML='¿La persona autoriza el tratamiento de datos personales?. <a href="https://www.sena.edu.co/es-co/transparencia/Documents/proteccion_datos_personales_sena_2016.pdf" target="_blank" class="text-indigo-500">Leer acuerdo No. 0009 del 2016</a>',(0,a.Lj)(t,"slot","label")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function p(e){let t,n,i;function r(t){e[17](t)}let s={loading:e[5],class:"btn-indigo ml-auto",type:"submit",$$slots:{default:[g]},$$scope:{ctx:e}};return void 0!==e[6].autorizacion_datos&&(s.disabled=e[6].autorizacion_datos),t=new l.Z({props:s}),a.Vn.push((()=>(0,a.ak)(t,"disabled",r))),{c(){(0,a.YC)(t.$$.fragment)},m(e,n){(0,a.ye)(t,e,n),i=!0},p(e,i){const r={};32&i&&(r.loading=e[5]),1048576&i&&(r.$$scope={dirty:i,ctx:e}),!n&&64&i&&(n=!0,r.disabled=e[6].autorizacion_datos,(0,a.hj)((()=>n=!1))),t.$set(r)},i(e){i||((0,a.Ui)(t.$$.fragment,e),i=!0)},o(e){(0,a.et)(t.$$.fragment,e),i=!1},d(e){(0,a.vp)(t,e)}}}function g(e){let t;return{c(){t=(0,a.fL)("Crear miembro de la entidad aliada")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function L(e){let t,n,i,r,l,m,g,L,y,v,M,b,Y,k,w,T,D,x,$,S,j,H,C,E,O,A,I,R,P,F,N,z,U,W,V,G=e[8]||(0,s.P_)(e[7],[1])&&1==e[2].modificable;function q(t){e[11](t)}let B={label:"Nombre completo",id:"nombre",type:"text",class:"mt-1",error:e[0].nombre,required:!0};function Z(t){e[12](t)}void 0!==e[6].nombre&&(B.value=e[6].nombre),l=new o.Z({props:B}),a.Vn.push((()=>(0,a.ak)(l,"value",q)));let J={label:"Correo electrónico",id:"email",type:"email",class:"mt-1",error:e[0].email,required:!0};function K(t){e[13](t)}void 0!==e[6].email&&(J.value=e[6].email),y=new o.Z({props:J}),a.Vn.push((()=>(0,a.ak)(y,"value",Z))),Y=new d.Z({props:{required:!0,class:"mb-4",labelFor:"tipo_documento",value:"Tipo de documento"}});let X={id:"tipo_documento",items:e[4],error:e[0].tipo_documento,autocomplete:"off",placeholder:"Seleccione un tipo de documento",required:!0};function Q(t){e[14](t)}void 0!==e[6].tipo_documento&&(X.selectedValue=e[6].tipo_documento),w=new u.Z({props:X}),a.Vn.push((()=>(0,a.ak)(w,"selectedValue",K)));let ee={label:"Número de documento",id:"numero_documento",type:"number",input$min:"55555",input$max:"9999999999999",class:"mt-1",error:e[0].numero_documento,required:!0};function te(t){e[15](t)}void 0!==e[6].numero_documento&&(ee.value=e[6].numero_documento),$=new o.Z({props:ee}),a.Vn.push((()=>(0,a.ak)($,"value",Q)));let ne={label:"Número de celular",id:"numero_celular",type:"number",input$min:"3000000000",input$max:"9999999999",class:"mt-1",error:e[0].numero_celular,required:!0};void 0!==e[6].numero_celular&&(ne.value=e[6].numero_celular),C=new o.Z({props:ne}),a.Vn.push((()=>(0,a.ak)(C,"value",te))),I=new c.Z({props:{message:"Los datos proporcionados serán tratados de acuerdo con la política de tratamiento de datos personales del SENA y a la ley 1581 de 2012 (acuerdo No. 0009 del 2016)"}}),P=new _.Z({props:{$$slots:{label:[f],default:[h]},$$scope:{ctx:e}}});let ae=G&&p(e);return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("form"),i=(0,a.bG)("fieldset"),r=(0,a.bG)("div"),(0,a.YC)(l.$$.fragment),g=(0,a.Dh)(),L=(0,a.bG)("div"),(0,a.YC)(y.$$.fragment),M=(0,a.Dh)(),b=(0,a.bG)("div"),(0,a.YC)(Y.$$.fragment),k=(0,a.Dh)(),(0,a.YC)(w.$$.fragment),D=(0,a.Dh)(),x=(0,a.bG)("div"),(0,a.YC)($.$$.fragment),j=(0,a.Dh)(),H=(0,a.bG)("div"),(0,a.YC)(C.$$.fragment),O=(0,a.Dh)(),A=(0,a.bG)("div"),(0,a.YC)(I.$$.fragment),R=(0,a.Dh)(),(0,a.YC)(P.$$.fragment),N=(0,a.Dh)(),z=(0,a.bG)("div"),ae&&ae.c(),(0,a.Lj)(r,"class","mt-4"),(0,a.Lj)(L,"class","mt-4"),(0,a.Lj)(b,"class","mt-4"),(0,a.Lj)(x,"class","mt-4"),(0,a.Lj)(H,"class","mt-4"),(0,a.Lj)(A,"class","mt-4"),(0,a.Lj)(i,"class","p-8"),i.disabled=F=!(e[8]||(0,s.P_)(e[7],[1])&&1==e[2].modificable)||void 0,(0,a.Lj)(z,"class","px-8 py-4 bg-gray-100 border-t border-gray-200 flex items-center sticky bottom-0"),(0,a.Lj)(t,"class","bg-white rounded shadow max-w-3xl")},m(s,o){(0,a.$T)(s,t,o),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(i,r),(0,a.ye)(l,r,null),(0,a.R3)(i,g),(0,a.R3)(i,L),(0,a.ye)(y,L,null),(0,a.R3)(i,M),(0,a.R3)(i,b),(0,a.ye)(Y,b,null),(0,a.R3)(b,k),(0,a.ye)(w,b,null),(0,a.R3)(i,D),(0,a.R3)(i,x),(0,a.ye)($,x,null),(0,a.R3)(i,j),(0,a.R3)(i,H),(0,a.ye)(C,H,null),(0,a.R3)(i,O),(0,a.R3)(i,A),(0,a.ye)(I,A,null),(0,a.R3)(A,R),(0,a.ye)(P,A,null),(0,a.R3)(n,N),(0,a.R3)(n,z),ae&&ae.m(z,null),U=!0,W||(V=(0,a.oL)(n,"submit",(0,a.AT)(e[10])),W=!0)},p(e,t){const n={};1&t&&(n.error=e[0].nombre),!m&&64&t&&(m=!0,n.value=e[6].nombre,(0,a.hj)((()=>m=!1))),l.$set(n);const r={};1&t&&(r.error=e[0].email),!v&&64&t&&(v=!0,r.value=e[6].email,(0,a.hj)((()=>v=!1))),y.$set(r);const o={};16&t&&(o.items=e[4]),1&t&&(o.error=e[0].tipo_documento),!T&&64&t&&(T=!0,o.selectedValue=e[6].tipo_documento,(0,a.hj)((()=>T=!1))),w.$set(o);const d={};1&t&&(d.error=e[0].numero_documento),!S&&64&t&&(S=!0,d.value=e[6].numero_documento,(0,a.hj)((()=>S=!1))),$.$set(d);const u={};1&t&&(u.error=e[0].numero_celular),!E&&64&t&&(E=!0,u.value=e[6].numero_celular,(0,a.hj)((()=>E=!1))),C.$set(u);const c={};1048640&t&&(c.$$scope={dirty:t,ctx:e}),P.$set(c),(!U||4&t&&F!==(F=!(e[8]||(0,s.P_)(e[7],[1])&&1==e[2].modificable)||void 0))&&(i.disabled=F),4&t&&(G=e[8]||(0,s.P_)(e[7],[1])&&1==e[2].modificable),G?ae?(ae.p(e,t),4&t&&(0,a.Ui)(ae,1)):(ae=p(e),ae.c(),(0,a.Ui)(ae,1),ae.m(z,null)):ae&&((0,a.dv)(),(0,a.et)(ae,1,1,(()=>{ae=null})),(0,a.gb)())},i(e){U||((0,a.Ui)(l.$$.fragment,e),(0,a.Ui)(y.$$.fragment,e),(0,a.Ui)(Y.$$.fragment,e),(0,a.Ui)(w.$$.fragment,e),(0,a.Ui)($.$$.fragment,e),(0,a.Ui)(C.$$.fragment,e),(0,a.Ui)(I.$$.fragment,e),(0,a.Ui)(P.$$.fragment,e),(0,a.Ui)(ae),U=!0)},o(e){(0,a.et)(l.$$.fragment,e),(0,a.et)(y.$$.fragment,e),(0,a.et)(Y.$$.fragment,e),(0,a.et)(w.$$.fragment,e),(0,a.et)($.$$.fragment,e),(0,a.et)(C.$$.fragment,e),(0,a.et)(I.$$.fragment,e),(0,a.et)(P.$$.fragment,e),(0,a.et)(ae),U=!1},d(e){e&&(0,a.og)(t),(0,a.vp)(l),(0,a.vp)(y),(0,a.vp)(Y),(0,a.vp)(w),(0,a.vp)($),(0,a.vp)(C),(0,a.vp)(I),(0,a.vp)(P),ae&&ae.d(),W=!1,V()}}}function y(e){let t,n,i,o,d,l,u,c=e[8]||(0,s.P_)(e[7],[1]),m=c&&function(e){let t,n,i,o,d,l;return{c(){t=(0,a.bG)("a"),n=(0,a.fL)("Miembros de la entidad aliada"),(0,a.Lj)(t,"href",i=(0,s.BC)("convocatorias.proyectos.entidades-aliadas.miembros-entidad-aliada.index",[e[1].id,e[2].id,e[3].id])),(0,a.Lj)(t,"class","text-indigo-400 hover:text-indigo-600")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n),d||(l=(0,a.TV)(o=r.II.call(null,t)),d=!0)},p(e,n){14&n&&i!==(i=(0,s.BC)("convocatorias.proyectos.entidades-aliadas.miembros-entidad-aliada.index",[e[1].id,e[2].id,e[3].id]))&&(0,a.Lj)(t,"href",i)},d(e){e&&(0,a.og)(t),d=!1,l()}}}(e);return{c(){t=(0,a.bG)("header"),n=(0,a.bG)("div"),i=(0,a.bG)("div"),o=(0,a.bG)("h1"),m&&m.c(),d=(0,a.Dh)(),l=(0,a.bG)("span"),l.textContent="/",u=(0,a.fL)("\r\n Crear"),(0,a.Lj)(l,"class","text-indigo-400 font-medium"),(0,a.Lj)(n,"class","flex items-center justify-between lg:px-8 max-w-7xl mx-auto px-4 py-6 sm:px-6"),(0,a.Lj)(t,"class","shadow bg-white"),(0,a.Lj)(t,"slot","header")},m(e,r){(0,a.$T)(e,t,r),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(i,o),m&&m.m(o,null),(0,a.R3)(o,d),(0,a.R3)(o,l),(0,a.R3)(o,u)},p(e,t){c&&m.p(e,t)},d(e){e&&(0,a.og)(t),m&&m.d()}}}function v(e){let t,n;return t=new i.ZP({props:{$$slots:{header:[y],default:[L]},$$scope:{ctx:e}}}),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,[n]){const a={};1048703&n&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function M(e,t,n){let o,d,l;(0,a.FI)(e,i.TN,(e=>n(18,o=e))),(0,a.FI)(e,r.Md,(e=>n(19,d=e)));let{errors:u}=t,{convocatoria:c}=t,{proyecto:m}=t,{entidadAliada:_}=t,{tiposDocumento:h}=t,f=d.props.auth.user,p=(0,s.Zd)(f,[1]),g=!1,L=(0,r.cI)({nombre:"",email:"",tipo_documento:"",numero_documento:"",numero_celular:"",autorizacion_datos:!1});return(0,a.FI)(e,L,(e=>n(6,l=e))),e.$$set=e=>{"errors"in e&&n(0,u=e.errors),"convocatoria"in e&&n(1,c=e.convocatoria),"proyecto"in e&&n(2,m=e.proyecto),"entidadAliada"in e&&n(3,_=e.entidadAliada),"tiposDocumento"in e&&n(4,h=e.tiposDocumento)},(0,a.fx)(i.TN,o="Crear miembro de entidad aliada",o),[u,c,m,_,h,g,l,f,p,L,function(){(p||(0,s.P_)(f,[1])&&1==m.modificable)&&l.post((0,s.BC)("convocatorias.proyectos.entidades-aliadas.miembros-entidad-aliada.store",[c.id,m.id,_.id]),{onStart:()=>n(5,g=!0),onFinish:()=>n(5,g=!1)})},function(t){e.$$.not_equal(l.nombre,t)&&(l.nombre=t,L.set(l))},function(t){e.$$.not_equal(l.email,t)&&(l.email=t,L.set(l))},function(t){e.$$.not_equal(l.tipo_documento,t)&&(l.tipo_documento=t,L.set(l))},function(t){e.$$.not_equal(l.numero_documento,t)&&(l.numero_documento=t,L.set(l))},function(t){e.$$.not_equal(l.numero_celular,t)&&(l.numero_celular=t,L.set(l))},function(t){e.$$.not_equal(l.autorizacion_datos,t)&&(l.autorizacion_datos=t,L.set(l))},function(t){e.$$.not_equal(l.autorizacion_datos,t)&&(l.autorizacion_datos=t,L.set(l))}]}class b extends a.f_{constructor(e){super(),(0,a.S1)(this,e,M,v,a.N8,{errors:0,convocatoria:1,proyecto:2,entidadAliada:3,tiposDocumento:4})}}const Y=b},10671:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var a=n(21379);n(42444);function i(e){let t,n,i,r,s,o,d,l,u,c,m,_,h,f,p,g,L,y,v,M,b,Y,k,w,T,D,x,$,S,j,H,C,E,O,A,I,R,P,F,N,z,U,W,V,G,q,B,Z,J,K,X,Q,ee,te,ne,ae,ie,re,se,oe,de=[{xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"},{viewBox:"0 0 327 306.62"},e[0]],le={};for(let e=0;e<de.length;e+=1)le=(0,a.f0)(le,de[e]);return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("defs"),i=(0,a.bi)("style"),r=(0,a.fL)(".cls-1 {\r\n isolation: isolate;\r\n }\r\n .cls-2 {\r\n fill: url(#linear-gradient);\r\n }\r\n .cls-3 {\r\n fill: url(#linear-gradient-2);\r\n }\r\n .cls-12,\r\n .cls-4,\r\n .cls-9 {\r\n opacity: 0.3;\r\n mix-blend-mode: multiply;\r\n }\r\n .cls-5 {\r\n fill: url(#linear-gradient-3);\r\n }\r\n .cls-6 {\r\n fill: url(#linear-gradient-4);\r\n }\r\n .cls-7 {\r\n fill: #eff2f6;\r\n }\r\n .cls-8 {\r\n fill: url(#linear-gradient-5);\r\n }\r\n .cls-9 {\r\n fill: url(#linear-gradient-6);\r\n }\r\n .cls-10 {\r\n fill: url(#linear-gradient-7);\r\n }\r\n .cls-11 {\r\n fill: url(#linear-gradient-8);\r\n }\r\n .cls-12 {\r\n fill: url(#linear-gradient-9);\r\n }\r\n .cls-13 {\r\n fill: url(#linear-gradient-10);\r\n }\r\n .cls-14 {\r\n fill: url(#linear-gradient-11);\r\n }\r\n .cls-15 {\r\n fill: url(#linear-gradient-12);\r\n }\r\n .cls-16 {\r\n fill: url(#linear-gradient-13);\r\n }\r\n .cls-17 {\r\n fill: url(#linear-gradient-14);\r\n }\r\n .cls-18 {\r\n fill: url(#linear-gradient-15);\r\n }\r\n .cls-19 {\r\n fill: url(#linear-gradient-16);\r\n }\r\n .cls-20 {\r\n fill: url(#linear-gradient-17);\r\n }\r\n .cls-21 {\r\n fill: url(#linear-gradient-18);\r\n }\r\n .cls-22 {\r\n fill: url(#linear-gradient-19);\r\n }\r\n "),s=(0,a.bi)("linearGradient"),o=(0,a.bi)("stop"),d=(0,a.bi)("stop"),l=(0,a.bi)("linearGradient"),u=(0,a.bi)("stop"),c=(0,a.bi)("stop"),m=(0,a.bi)("linearGradient"),_=(0,a.bi)("linearGradient"),h=(0,a.bi)("stop"),f=(0,a.bi)("stop"),p=(0,a.bi)("linearGradient"),g=(0,a.bi)("linearGradient"),L=(0,a.bi)("linearGradient"),y=(0,a.bi)("linearGradient"),v=(0,a.bi)("linearGradient"),M=(0,a.bi)("linearGradient"),b=(0,a.bi)("linearGradient"),Y=(0,a.bi)("stop"),k=(0,a.bi)("stop"),w=(0,a.bi)("linearGradient"),T=(0,a.bi)("linearGradient"),D=(0,a.bi)("linearGradient"),x=(0,a.bi)("linearGradient"),$=(0,a.bi)("linearGradient"),S=(0,a.bi)("linearGradient"),j=(0,a.bi)("stop"),H=(0,a.bi)("stop"),C=(0,a.bi)("linearGradient"),E=(0,a.bi)("linearGradient"),O=(0,a.bi)("g"),A=(0,a.bi)("g"),I=(0,a.bi)("g"),R=(0,a.bi)("path"),P=(0,a.bi)("path"),F=(0,a.bi)("g"),N=(0,a.bi)("path"),z=(0,a.bi)("path"),U=(0,a.bi)("path"),W=(0,a.bi)("path"),V=(0,a.bi)("path"),G=(0,a.bi)("path"),q=(0,a.bi)("path"),B=(0,a.bi)("path"),Z=(0,a.bi)("path"),J=(0,a.bi)("path"),K=(0,a.bi)("path"),X=(0,a.bi)("path"),Q=(0,a.bi)("path"),ee=(0,a.bi)("path"),te=(0,a.bi)("path"),ne=(0,a.bi)("g"),ae=(0,a.bi)("path"),ie=(0,a.bi)("path"),re=(0,a.bi)("g"),se=(0,a.bi)("path"),oe=(0,a.bi)("path"),(0,a.Lj)(o,"offset","0"),(0,a.Lj)(o,"stop-color","#ab316d"),(0,a.Lj)(d,"offset","1"),(0,a.Lj)(d,"stop-color","#792d3d"),(0,a.Lj)(s,"id","linear-gradient"),(0,a.Lj)(s,"x1","1108.86"),(0,a.Lj)(s,"y1","42.61"),(0,a.Lj)(s,"x2","994.34"),(0,a.Lj)(s,"y2","439.04"),(0,a.Lj)(s,"gradientTransform","translate(-936.65)"),(0,a.Lj)(s,"gradientUnits","userSpaceOnUse"),(0,a.Lj)(u,"offset","0"),(0,a.Lj)(u,"stop-color","#ffc444"),(0,a.Lj)(c,"offset","1"),(0,a.Lj)(c,"stop-color","#f36f56"),(0,a.Lj)(l,"id","linear-gradient-2"),(0,a.Lj)(l,"x1","1116.22"),(0,a.Lj)(l,"y1","42.61"),(0,a.Lj)(l,"x2","1001.7"),(0,a.Lj)(l,"y2","439.04"),(0,a.Lj)(l,"gradientTransform","translate(-936.65)"),(0,a.Lj)(l,"gradientUnits","userSpaceOnUse"),(0,a.Lj)(m,"id","linear-gradient-3"),(0,a.Lj)(m,"x1","1104.05"),(0,a.Lj)(m,"y1","32.89"),(0,a.Lj)(m,"x2","986.99"),(0,a.Lj)(m,"y2","438.1"),(0,a.G_)(m,"xlink:href","#linear-gradient-2"),(0,a.Lj)(h,"offset","0"),(0,a.Lj)(h,"stop-color","#fff"),(0,a.Lj)(f,"offset","1"),(0,a.Lj)(f,"stop-color","#ebeff2"),(0,a.Lj)(_,"id","linear-gradient-4"),(0,a.Lj)(_,"x1","1114.11"),(0,a.Lj)(_,"y1","54.98"),(0,a.Lj)(_,"x2","1011.08"),(0,a.Lj)(_,"y2","411.64"),(0,a.Lj)(_,"gradientTransform","translate(-936.65)"),(0,a.Lj)(_,"gradientUnits","userSpaceOnUse"),(0,a.Lj)(p,"id","linear-gradient-5"),(0,a.Lj)(p,"x1","1109.44"),(0,a.Lj)(p,"y1","79.68"),(0,a.Lj)(p,"x2","1029.34"),(0,a.Lj)(p,"y2","356.93"),(0,a.G_)(p,"xlink:href","#linear-gradient-2"),(0,a.Lj)(g,"id","linear-gradient-6"),(0,a.Lj)(g,"x1","1072.7"),(0,a.Lj)(g,"y1","132.54"),(0,a.Lj)(g,"x2","1018.55"),(0,a.Lj)(g,"y2","319.99"),(0,a.G_)(g,"xlink:href","#linear-gradient-2"),(0,a.Lj)(L,"id","linear-gradient-7"),(0,a.Lj)(L,"x1","1104.16"),(0,a.Lj)(L,"y1","104.35"),(0,a.Lj)(L,"x2","1046.97"),(0,a.Lj)(L,"y2","302.3"),(0,a.G_)(L,"xlink:href","#linear-gradient-4"),(0,a.Lj)(y,"id","linear-gradient-8"),(0,a.Lj)(y,"x1","1098.26"),(0,a.Lj)(y,"y1","129"),(0,a.Lj)(y,"x2","1063.96"),(0,a.Lj)(y,"y2","247.74"),(0,a.G_)(y,"xlink:href","#linear-gradient-2"),(0,a.Lj)(v,"id","linear-gradient-9"),(0,a.Lj)(v,"x1","1084.81"),(0,a.Lj)(v,"y1","143.24"),(0,a.Lj)(v,"x2","1057.92"),(0,a.Lj)(v,"y2","236.34"),(0,a.G_)(v,"xlink:href","#linear-gradient-2"),(0,a.Lj)(M,"id","linear-gradient-10"),(0,a.Lj)(M,"x1","107.36"),(0,a.Lj)(M,"y1","206.95"),(0,a.Lj)(M,"x2","161.43"),(0,a.Lj)(M,"y2","206.95"),(0,a.Lj)(M,"gradientTransform","matrix(0.72, -0.69, 0.69, 0.72, 43.15, -34.11)"),(0,a.G_)(M,"xlink:href","#linear-gradient-2"),(0,a.Lj)(Y,"offset","0"),(0,a.Lj)(Y,"stop-color","#444b8c"),(0,a.Lj)(k,"offset","1"),(0,a.Lj)(k,"stop-color","#26264f"),(0,a.Lj)(b,"id","linear-gradient-11"),(0,a.Lj)(b,"x1","-158.31"),(0,a.Lj)(b,"y1","198.89"),(0,a.Lj)(b,"x2","-102.71"),(0,a.Lj)(b,"y2","198.89"),(0,a.Lj)(b,"gradientTransform","matrix(0.75, -0.66, 0.66, 0.75, 141.33, -94.52)"),(0,a.Lj)(b,"gradientUnits","userSpaceOnUse"),(0,a.Lj)(w,"id","linear-gradient-12"),(0,a.Lj)(w,"x1","106.73"),(0,a.Lj)(w,"y1","237.47"),(0,a.Lj)(w,"x2","159.98"),(0,a.Lj)(w,"y2","237.47"),(0,a.Lj)(w,"gradientTransform","matrix(0.72, -0.69, 0.69, 0.72, 43.15, -34.11)"),(0,a.G_)(w,"xlink:href","#linear-gradient-2"),(0,a.Lj)(T,"id","linear-gradient-13"),(0,a.Lj)(T,"x1","103.38"),(0,a.Lj)(T,"y1","238.91"),(0,a.Lj)(T,"x2","159.91"),(0,a.Lj)(T,"y2","238.91"),(0,a.Lj)(T,"gradientTransform","matrix(0.72, -0.69, 0.69, 0.72, 43.15, -34.11)"),(0,a.G_)(T,"xlink:href","#linear-gradient"),(0,a.Lj)(D,"id","linear-gradient-14"),(0,a.Lj)(D,"x1","104.01"),(0,a.Lj)(D,"y1","205.17"),(0,a.Lj)(D,"x2","161.43"),(0,a.Lj)(D,"y2","205.17"),(0,a.Lj)(D,"gradientTransform","matrix(0.72, -0.69, 0.69, 0.72, 43.15, -34.11)"),(0,a.G_)(D,"xlink:href","#linear-gradient"),(0,a.Lj)(x,"id","linear-gradient-15"),(0,a.Lj)(x,"x1","13.06"),(0,a.Lj)(x,"y1","201.9"),(0,a.Lj)(x,"x2","14.14"),(0,a.Lj)(x,"y2","251.23"),(0,a.Lj)(x,"gradientTransform","matrix(0.72, -0.69, 0.69, 0.72, 43.15, -34.11)"),(0,a.G_)(x,"xlink:href","#linear-gradient"),(0,a.Lj)($,"id","linear-gradient-16"),(0,a.Lj)($,"x1","12.53"),(0,a.Lj)($,"y1","201.91"),(0,a.Lj)($,"x2","13.61"),(0,a.Lj)($,"y2","251.24"),(0,a.Lj)($,"gradientTransform","matrix(0.72, -0.69, 0.69, 0.72, 43.15, -34.11)"),(0,a.G_)($,"xlink:href","#linear-gradient"),(0,a.Lj)(j,"offset","0"),(0,a.Lj)(j,"stop-color","#aa80f9"),(0,a.Lj)(H,"offset","1"),(0,a.Lj)(H,"stop-color","#6165d7"),(0,a.Lj)(S,"id","linear-gradient-17"),(0,a.Lj)(S,"x1","-18.8"),(0,a.Lj)(S,"y1","-105.9"),(0,a.Lj)(S,"x2","94.8"),(0,a.Lj)(S,"y2","-105.9"),(0,a.Lj)(S,"gradientTransform","translate(255.32 183.5) rotate(-19.53)"),(0,a.Lj)(S,"gradientUnits","userSpaceOnUse"),(0,a.Lj)(C,"id","linear-gradient-18"),(0,a.Lj)(C,"x1","-14.1"),(0,a.Lj)(C,"y1","-102.14"),(0,a.Lj)(C,"x2","94.8"),(0,a.Lj)(C,"y2","-102.14"),(0,a.G_)(C,"xlink:href","#linear-gradient-17"),(0,a.Lj)(E,"id","linear-gradient-19"),(0,a.Lj)(E,"x1","89.1"),(0,a.Lj)(E,"y1","-130.8"),(0,a.Lj)(E,"x2","95.54"),(0,a.Lj)(E,"y2","-130.8"),(0,a.G_)(E,"xlink:href","#linear-gradient-17"),(0,a.Lj)(R,"class","cls-2"),(0,a.Lj)(R,"d","M273.27,164.51c0,73.41-56,136.77-129,141.79C66.64,311.63,0,249.68,0,167.6s66.64-145.54,144.25-142C217.23,29,273.27,91.1,273.27,164.51Z"),(0,a.Lj)(P,"class","cls-3"),(0,a.Lj)(P,"d","M280.63,164.51c0,73.41-56,136.77-129,141.79C74,311.63,7.36,249.68,7.36,167.6S74,22.06,151.62,25.64C224.59,29,280.63,91.1,280.63,164.51Z"),(0,a.Lj)(N,"class","cls-5"),(0,a.Lj)(N,"d","M177.29,259.23c-26.35-30-1.45-68.39-29.06-105.71-25.63-34.62-61.7-22.37-89.48-58.87A91.41,91.41,0,0,1,45.43,69.84,143.56,143.56,0,0,0,7.36,167.6c0,82.08,66.64,144,144.26,138.7a135.1,135.1,0,0,0,71.57-26.59C200.58,277.64,186.36,269.54,177.29,259.23Z"),(0,a.Lj)(F,"class","cls-4"),(0,a.Lj)(z,"class","cls-6"),(0,a.Lj)(z,"d","M268.34,164.65c0,66.42-50.85,123.47-116.72,127.62C82,296.65,22.55,240.86,22.55,167.43S82,36.86,151.62,39.67C217.49,42.33,268.34,98.23,268.34,164.65Z"),(0,a.Lj)(U,"class","cls-7"),(0,a.Lj)(U,"d","M151.62,292.27a121,121,0,0,0,53-16.06c-12.33-3.76-21.09-9.84-27.37-17-26.35-30-1.45-68.39-29.06-105.71-25.63-34.62-61.7-22.37-89.48-58.87a88.67,88.67,0,0,1-6.55-9.94,129.3,129.3,0,0,0-29.65,82.72C22.55,240.86,82,296.65,151.62,292.27Z"),(0,a.Lj)(W,"class","cls-8"),(0,a.Lj)(W,"d","M243.38,164.93c0,52.22-40.22,96.61-91.76,99.27C97.8,267,52.4,223.54,52.4,167.09S97.8,66.18,151.62,67.74C203.16,69.23,243.38,112.72,243.38,164.93Z"),(0,a.Lj)(V,"class","cls-9"),(0,a.Lj)(V,"d","M148.23,153.52c-21.86-29.54-51.29-25-76.74-45.63a100.6,100.6,0,0,0-19.09,59.2c0,56.45,45.4,99.88,99.22,97.11a93.42,93.42,0,0,0,25.67-5h0C150.94,229.28,175.84,190.84,148.23,153.52Z"),(0,a.Lj)(G,"class","cls-10"),(0,a.Lj)(G,"d","M217.87,165.22c0,37.7-29.21,69.43-66.25,70.91-38.21,1.53-70.06-29.51-70.06-69.37s31.85-71.62,70.06-71C188.66,96.45,217.87,127.52,217.87,165.22Z"),(0,a.Lj)(q,"class","cls-7"),(0,a.Lj)(q,"d","M97.05,122a71.9,71.9,0,0,0-15.49,44.73c0,39.86,31.85,70.9,70.06,69.37a66.77,66.77,0,0,0,13.72-2c-4.89-25,3.33-53-17.11-80.63C133.43,133.53,115.19,129.16,97.05,122Z"),(0,a.Lj)(B,"class","cls-11"),(0,a.Lj)(B,"d","M191.81,165.51c0,22.87-17.83,41.92-40.19,42.56-22.78.65-41.56-18-41.56-41.63s18.78-42.71,41.56-42.57C174,124,191.81,142.65,191.81,165.51Z"),(0,a.Lj)(Z,"class","cls-12"),(0,a.Lj)(Z,"d","M163.21,206c-.55-17.06-1.9-34.8-15-52.49a67.61,67.61,0,0,0-23.09-19.91,43,43,0,0,0-15.08,32.83c0,23.64,18.78,42.28,41.56,41.63A40.39,40.39,0,0,0,163.21,206Z"),(0,a.Lj)(J,"class","cls-13"),(0,a.Lj)(J,"d","M291.31,26.69c.09-.17-23.51,18.74-23.51,18.74l2.33-19.53c.78-6.56,23.28-22.51,29-25.9l1.23,1.38Z"),(0,a.Lj)(K,"class","cls-14"),(0,a.Lj)(K,"d","M199,125.73l-41.54,34.38a1.12,1.12,0,0,1-1.51-1.64l37.74-38.68a.61.61,0,0,1,.89,0l4.49,5A.6.6,0,0,1,199,125.73Z"),(0,a.Lj)(X,"class","cls-15"),(0,a.Lj)(X,"d","M301.07,36.42c.17-.07-21.61,22.12-21.61,22.12l19.33-.41C305.29,58,323.12,36.8,327,31.3l-1.22-1.37Z"),(0,a.Lj)(Q,"class","cls-16"),(0,a.Lj)(Q,"d","M298.5,38.77c.16-.07-21.51,22-21.51,22l19.26-.39a20.37,20.37,0,0,0,16.25-8.63L327,31.3Z"),(0,a.Lj)(ee,"class","cls-17"),(0,a.Lj)(ee,"d","M289,28.13c.09-.17-23.68,19.59-23.68,19.59l2.3-19.47a20.87,20.87,0,0,1,10.05-15.6L299.16,0Z"),(0,a.Lj)(te,"class","cls-18"),(0,a.Lj)(te,"d","M223.69,115.14l-13.33,12c-4.68,4.24-12.19,3.43-16.82-1.78h0c-4.63-5.2-4.67-12.89-.07-17.21l13.11-12.3Z"),(0,a.Lj)(ae,"class","cls-19"),(0,a.Lj)(ae,"d","M208.07,117.41a35.17,35.17,0,0,1-17.63,2.16,13.82,13.82,0,0,0,3.1,5.84h0c4.63,5.21,12.14,6,16.82,1.78l13.33-12-5-5.65A26.49,26.49,0,0,1,208.07,117.41Z"),(0,a.Lj)(ne,"class","cls-4"),(0,a.Lj)(ie,"class","cls-20"),(0,a.Lj)(ie,"d","M303,34.29l-79.3,80.85c-5.24,4.66-22.35-14.58-17.11-19.24l87.58-71.54Z"),(0,a.Lj)(se,"class","cls-21"),(0,a.Lj)(se,"d","M275.65,55.75c-17.16,14.16-23.22,12.18-36.93,26.69-12.63,13.36-15.79,23.84-23.39,30.49,3.26,2.55,6.53,3.83,8.36,2.21L303,34.29l-3.44-3.86A142.33,142.33,0,0,1,275.65,55.75Z"),(0,a.Lj)(re,"class","cls-4"),(0,a.Lj)(oe,"class","cls-22"),(0,a.Lj)(oe,"d","M300.22,27.88c2.46,2.76,3.73,5.67,2.83,6.48s-3.6-.76-6.05-3.52-3.73-5.66-2.84-6.48S297.76,25.11,300.22,27.88Z"),(0,a.Lj)(I,"id","OBJECTS"),(0,a.Lj)(A,"id","Capa_2"),(0,a.Lj)(A,"data-name","Capa 2"),(0,a.Lj)(O,"class","cls-1"),(0,a.NV)(t,le)},m(e,de){(0,a.$T)(e,t,de),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(i,r),(0,a.R3)(n,s),(0,a.R3)(s,o),(0,a.R3)(s,d),(0,a.R3)(n,l),(0,a.R3)(l,u),(0,a.R3)(l,c),(0,a.R3)(n,m),(0,a.R3)(n,_),(0,a.R3)(_,h),(0,a.R3)(_,f),(0,a.R3)(n,p),(0,a.R3)(n,g),(0,a.R3)(n,L),(0,a.R3)(n,y),(0,a.R3)(n,v),(0,a.R3)(n,M),(0,a.R3)(n,b),(0,a.R3)(b,Y),(0,a.R3)(b,k),(0,a.R3)(n,w),(0,a.R3)(n,T),(0,a.R3)(n,D),(0,a.R3)(n,x),(0,a.R3)(n,$),(0,a.R3)(n,S),(0,a.R3)(S,j),(0,a.R3)(S,H),(0,a.R3)(n,C),(0,a.R3)(n,E),(0,a.R3)(t,O),(0,a.R3)(O,A),(0,a.R3)(A,I),(0,a.R3)(I,R),(0,a.R3)(I,P),(0,a.R3)(I,F),(0,a.R3)(F,N),(0,a.R3)(I,z),(0,a.R3)(I,U),(0,a.R3)(I,W),(0,a.R3)(I,V),(0,a.R3)(I,G),(0,a.R3)(I,q),(0,a.R3)(I,B),(0,a.R3)(I,Z),(0,a.R3)(I,J),(0,a.R3)(I,K),(0,a.R3)(I,X),(0,a.R3)(I,Q),(0,a.R3)(I,ee),(0,a.R3)(I,te),(0,a.R3)(I,ne),(0,a.R3)(ne,ae),(0,a.R3)(I,ie),(0,a.R3)(I,re),(0,a.R3)(re,se),(0,a.R3)(I,oe)},p(e,[n]){(0,a.NV)(t,le=(0,a.Lo)(de,[{xmlns:"http://www.w3.org/2000/svg"},{"xmlns:xlink":"http://www.w3.org/1999/xlink"},{viewBox:"0 0 327 306.62"},1&n&&e[0]]))},i:a.ZT,o:a.ZT,d(e){e&&(0,a.og)(t)}}}function r(e,t,n){let i;const r=[];let s=(0,a.q2)(t,r);return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(1,s=(0,a.q2)(t,r))},e.$$.update=()=>{n(0,i={...s})},[i]}class s extends a.f_{constructor(e){super(),(0,a.S1)(this,e,r,i,a.N8,{})}}const o=s},74162:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var a=n(21379),i=n(50942),r=n(93379),s=n.n(r),o=n(81970),d={insert:"head",singleton:!1};s()(o.Z,d);o.Z.locals;function l(e){let t;const n=e[3].default,i=(0,a.nu)(n,e,e[5],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||32&r)&&(0,a.Tj)(i,n,e,e[5],t?r:-1,null,null)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function u(e){let t,n;return t=new i.__({props:{$$slots:{default:[l]},$$scope:{ctx:e}}}),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};32&n&&(a.$$scope={dirty:n,ctx:e}),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function c(e){let t,n;const r=[e[2],{href:e[1]},{variant:e[0]},{height:"100px"},{action:null}];let s={$$slots:{default:[u]},$$scope:{ctx:e}};for(let e=0;e<r.length;e+=1)s=(0,a.f0)(s,r[e]);return t=new i.ZP({props:s}),t.$on("click",e[4]),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,[n]){const i=7&n?(0,a.Lo)(r,[4&n&&(0,a.gC)(e[2]),2&n&&{href:e[1]},1&n&&{variant:e[0]},r[3],r[4]]):{};32&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function m(e,t,n){let i;const r=["variant","href"];let s=(0,a.q2)(t,r),{$$slots:o={},$$scope:d}=t,{variant:l="raised"}=t,{href:u}=t;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(6,s=(0,a.q2)(t,r)),"variant"in e&&n(0,l=e.variant),"href"in e&&n(1,u=e.href),"$$scope"in e&&n(5,d=e.$$scope)},e.$$.update=()=>{n(2,i={...s,class:`${s.class||""}`})},[l,u,i,o,function(t){a.cK.call(this,e,t)},d]}class _ extends a.f_{constructor(e){super(),(0,a.S1)(this,e,m,c,a.N8,{variant:0,href:1})}}const h=_},76325:(e,t,n)=>{"use strict";n.d(t,{Z:()=>J});var a={};n.r(a),n.d(a,{FocusTrap:()=>h});var i,r=n(21379),s=n(70655),o=function(){function e(){this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var a=requestAnimationFrame((function(a){n.rafIDs.delete(e),t(a)}));this.rafIDs.set(e,a)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function(){var e=this;this.rafIDs.forEach((function(t,n){e.cancel(n)}))},e.prototype.getQueue=function(){var e=[];return this.rafIDs.forEach((function(t,n){e.push(n)})),e},e}(),d=n(6308),l={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},u={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},c={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150};!function(e){e.POLL_SCROLL_POS="poll_scroll_position",e.POLL_LAYOUT_CHANGE="poll_layout_change"}(i||(i={}));var m=function(e){function t(n){var a=e.call(this,(0,s.pi)((0,s.pi)({},t.defaultAdapter),n))||this;return a.dialogOpen=!1,a.isFullscreen=!1,a.animationFrame=0,a.animationTimer=0,a.escapeKeyAction=u.CLOSE_ACTION,a.scrimClickAction=u.CLOSE_ACTION,a.autoStackButtons=!0,a.areButtonsStacked=!1,a.suppressDefaultPressSelector=u.SUPPRESS_DEFAULT_PRESS_SELECTOR,a.animFrame=new o,a.contentScrollHandler=function(){a.handleScrollEvent()},a.windowResizeHandler=function(){a.layout()},a.windowOrientationChangeHandler=function(){a.layout()},a}return(0,s.ZT)(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addBodyClass:function(){},addClass:function(){},areButtonsStacked:function(){return!1},clickDefaultButton:function(){},eventTargetMatches:function(){return!1},getActionFromEvent:function(){return""},getInitialFocusEl:function(){return null},hasClass:function(){return!1},isContentScrollable:function(){return!1},notifyClosed:function(){},notifyClosing:function(){},notifyOpened:function(){},notifyOpening:function(){},releaseFocus:function(){},removeBodyClass:function(){},removeClass:function(){},reverseButtons:function(){},trapFocus:function(){},registerContentEventHandler:function(){},deregisterContentEventHandler:function(){},isScrollableContentAtTop:function(){return!1},isScrollableContentAtBottom:function(){return!1},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){this.adapter.hasClass(l.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(l.FULLSCREEN)},t.prototype.destroy=function(){this.dialogOpen&&this.close(u.DESTROY_ACTION),this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd()),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll(),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},t.prototype.open=function(e){var t=this;this.dialogOpen=!0,this.adapter.notifyOpening(),this.adapter.addClass(l.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),e&&e.isAboveFullscreenDialog&&this.adapter.addClass(l.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame((function(){t.adapter.addClass(l.OPEN),t.adapter.addBodyClass(l.SCROLL_LOCK),t.layout(),t.animationTimer=setTimeout((function(){t.handleAnimationTimerEnd(),t.adapter.trapFocus(t.adapter.getInitialFocusEl()),t.adapter.notifyOpened()}),c.DIALOG_ANIMATION_OPEN_TIME_MS)}))},t.prototype.close=function(e){var t=this;void 0===e&&(e=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(e),this.adapter.addClass(l.CLOSING),this.adapter.removeClass(l.OPEN),this.adapter.removeBodyClass(l.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function(){t.adapter.releaseFocus(),t.handleAnimationTimerEnd(),t.adapter.notifyClosed(e)}),c.DIALOG_ANIMATION_CLOSE_TIME_MS))},t.prototype.showSurfaceScrim=function(){var e=this;this.adapter.addClass(l.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame((function(){e.adapter.addClass(l.SURFACE_SCRIM_SHOWN)}))},t.prototype.hideSurfaceScrim=function(){this.adapter.removeClass(l.SURFACE_SCRIM_SHOWN),this.adapter.addClass(l.SURFACE_SCRIM_HIDING)},t.prototype.handleSurfaceScrimTransitionEnd=function(){this.adapter.removeClass(l.SURFACE_SCRIM_HIDING),this.adapter.removeClass(l.SURFACE_SCRIM_SHOWING)},t.prototype.isOpen=function(){return this.dialogOpen},t.prototype.getEscapeKeyAction=function(){return this.escapeKeyAction},t.prototype.setEscapeKeyAction=function(e){this.escapeKeyAction=e},t.prototype.getScrimClickAction=function(){return this.scrimClickAction},t.prototype.setScrimClickAction=function(e){this.scrimClickAction=e},t.prototype.getAutoStackButtons=function(){return this.autoStackButtons},t.prototype.setAutoStackButtons=function(e){this.autoStackButtons=e},t.prototype.getSuppressDefaultPressSelector=function(){return this.suppressDefaultPressSelector},t.prototype.setSuppressDefaultPressSelector=function(e){this.suppressDefaultPressSelector=e},t.prototype.layout=function(){var e=this;this.animFrame.request(i.POLL_LAYOUT_CHANGE,(function(){e.layoutInternal()}))},t.prototype.handleClick=function(e){if(this.adapter.eventTargetMatches(e.target,u.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var t=this.adapter.getActionFromEvent(e);t&&this.close(t)}},t.prototype.handleKeydown=function(e){var t="Enter"===e.key||13===e.keyCode;if(t&&!this.adapter.getActionFromEvent(e)){var n=e.composedPath?e.composedPath()[0]:e.target,a=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(n,this.suppressDefaultPressSelector);t&&a&&this.adapter.clickDefaultButton()}},t.prototype.handleDocumentKeydown=function(e){("Escape"===e.key||27===e.keyCode)&&""!==this.escapeKeyAction&&this.close(this.escapeKeyAction)},t.prototype.handleScrollEvent=function(){var e=this;this.animFrame.request(i.POLL_SCROLL_POS,(function(){e.toggleScrollDividerHeader(),e.toggleScrollDividerFooter()}))},t.prototype.layoutInternal=function(){this.autoStackButtons&&this.detectStackedButtons(),this.toggleScrollableClasses()},t.prototype.handleAnimationTimerEnd=function(){this.animationTimer=0,this.adapter.removeClass(l.OPENING),this.adapter.removeClass(l.CLOSING)},t.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function(){t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},t.prototype.detectStackedButtons=function(){this.adapter.removeClass(l.STACKED);var e=this.adapter.areButtonsStacked();e&&this.adapter.addClass(l.STACKED),e!==this.areButtonsStacked&&(this.adapter.reverseButtons(),this.areButtonsStacked=e)},t.prototype.toggleScrollableClasses=function(){this.adapter.removeClass(l.SCROLLABLE),this.adapter.isContentScrollable()&&(this.adapter.addClass(l.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader(),this.toggleScrollDividerFooter()))},t.prototype.toggleScrollDividerHeader=function(){this.adapter.isScrollableContentAtTop()?this.adapter.hasClass(l.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(l.SCROLL_DIVIDER_HEADER):this.adapter.addClass(l.SCROLL_DIVIDER_HEADER)},t.prototype.toggleScrollDividerFooter=function(){this.adapter.isScrollableContentAtBottom()?this.adapter.hasClass(l.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(l.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(l.SCROLL_DIVIDER_FOOTER)},t}(d.K);var _="mdc-dom-focus-sentinel",h=function(){function e(e,t){void 0===t&&(t={}),this.root=e,this.options=t,this.elFocusedBeforeTrapFocus=null}return e.prototype.trapFocus=function(){var e=this.getFocusableElements(this.root);if(0===e.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(e,this.options.initialFocusEl)},e.prototype.releaseFocus=function(){[].slice.call(this.root.querySelectorAll("."+_)).forEach((function(e){e.parentElement.removeChild(e)})),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus()},e.prototype.wrapTabFocus=function(e){var t=this,n=this.createSentinel(),a=this.createSentinel();n.addEventListener("focus",(function(){var n=t.getFocusableElements(e);n.length>0&&n[n.length-1].focus()})),a.addEventListener("focus",(function(){var n=t.getFocusableElements(e);n.length>0&&n[0].focus()})),e.insertBefore(n,e.children[0]),e.appendChild(a)},e.prototype.focusInitialElement=function(e,t){var n=0;t&&(n=Math.max(e.indexOf(t),0)),e[n].focus()},e.prototype.getFocusableElements=function(e){return[].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter((function(e){var t="true"===e.getAttribute("aria-disabled")||null!=e.getAttribute("disabled")||null!=e.getAttribute("hidden")||"true"===e.getAttribute("aria-hidden"),n=e.tabIndex>=0&&e.getBoundingClientRect().width>0&&!e.classList.contains(_)&&!t,a=!1;if(n){var i=getComputedStyle(e);a="none"===i.display||"hidden"===i.visibility}return n&&!a}))},e.prototype.createSentinel=function(){var e=document.createElement("div");return e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.classList.add(_),e},e}(),f=n(42851),p=n(90400),g=n(15120),L=n(22730);const{document:y,window:v}=r.li,M=e=>({}),b=e=>({});function Y(e){let t,n,a;return{c(){t=(0,r.bG)("div"),(0,r.Lj)(t,"class","mdc-dialog__surface-scrim")},m(i,s){(0,r.$T)(i,t,s),n||(a=(0,r.oL)(t,"transitionend",e[31]),n=!0)},p:r.ZT,d(e){e&&(0,r.og)(t),n=!1,a()}}}function k(e){let t,n,a,i,s,o,d,l,u,c,m,_,h,f,p,g;const k=e[27].default,w=(0,r.nu)(k,e,e[26],null);let T=e[5]&&Y(e),D=[{class:o=(0,L.$o)({[e[7]]:!0,"mdc-dialog__surface":!0})},{role:"alertdialog"},{"aria-modal":"true"},(0,L.bO)(e[17],"surface$")],x={};for(let e=0;e<D.length;e+=1)x=(0,r.f0)(x,D[e]);let $=[{class:d=(0,L.$o)({[e[6]]:!0,"mdc-dialog__container":!0})},(0,L.bO)(e[17],"container$")],S={};for(let e=0;e<$.length;e+=1)S=(0,r.f0)(S,$[e]);let j=[{class:c=(0,L.$o)({[e[2]]:!0,"mdc-dialog":!0,"mdc-dialog--stacked":!e[4],"mdc-dialog--fullscreen":e[5],"smui-dialog--selection":e[3],...e[10]})},{role:"alertdialog"},{"aria-modal":"true"},(0,L.De)(e[17],["container$","surface$"])],H={};for(let e=0;e<j.length;e+=1)H=(0,r.f0)(H,j[e]);const C=e[27].over,E=(0,r.nu)(C,e,e[26],b);return{c(){t=(0,r.Dh)(),n=(0,r.bG)("div"),a=(0,r.bG)("div"),i=(0,r.bG)("div"),w&&w.c(),s=(0,r.Dh)(),T&&T.c(),l=(0,r.Dh)(),u=(0,r.bG)("div"),h=(0,r.Dh)(),E&&E.c(),(0,r.UF)(i,x),(0,r.UF)(a,S),(0,r.Lj)(u,"class","mdc-dialog__scrim"),(0,r.UF)(n,H)},m(o,d){(0,r.$T)(o,t,d),(0,r.$T)(o,n,d),(0,r.R3)(n,a),(0,r.R3)(a,i),w&&w.m(i,null),(0,r.R3)(i,s),T&&T.m(i,null),(0,r.R3)(n,l),(0,r.R3)(n,u),e[32](n),(0,r.$T)(o,h,d),E&&E.m(o,d),f=!0,p||(g=[(0,r.oL)(v,"resize",e[28]),(0,r.oL)(v,"orientationchange",e[29]),(0,r.oL)(y.body,"keydown",e[30]),(0,r.TV)(m=L.ol.call(null,n,e[1])),(0,r.TV)(_=e[11].call(null,n)),(0,r.oL)(n,"MDCDialog:opening",e[14]),(0,r.oL)(n,"MDCDialog:opened",e[15]),(0,r.oL)(n,"MDCDialog:closed",e[16]),(0,r.oL)(n,"click",e[33]),(0,r.oL)(n,"keydown",e[34])],p=!0)},p(e,t){w&&w.p&&(!f||67108864&t[0])&&(0,r.Tj)(w,k,e,e[26],f?t:[-1,-1],null,null),e[5]?T?T.p(e,t):(T=Y(e),T.c(),T.m(i,null)):T&&(T.d(1),T=null),(0,r.UF)(i,x=(0,r.Lo)(D,[(!f||128&t[0]&&o!==(o=(0,L.$o)({[e[7]]:!0,"mdc-dialog__surface":!0})))&&{class:o},{role:"alertdialog"},{"aria-modal":"true"},131072&t[0]&&(0,L.bO)(e[17],"surface$")])),(0,r.UF)(a,S=(0,r.Lo)($,[(!f||64&t[0]&&d!==(d=(0,L.$o)({[e[6]]:!0,"mdc-dialog__container":!0})))&&{class:d},131072&t[0]&&(0,L.bO)(e[17],"container$")])),(0,r.UF)(n,H=(0,r.Lo)(j,[(!f||1084&t[0]&&c!==(c=(0,L.$o)({[e[2]]:!0,"mdc-dialog":!0,"mdc-dialog--stacked":!e[4],"mdc-dialog--fullscreen":e[5],"smui-dialog--selection":e[3],...e[10]})))&&{class:c},{role:"alertdialog"},{"aria-modal":"true"},131072&t[0]&&(0,L.De)(e[17],["container$","surface$"])])),m&&(0,r.sB)(m.update)&&2&t[0]&&m.update.call(null,e[1]),E&&E.p&&(!f||67108864&t[0])&&(0,r.Tj)(E,C,e,e[26],f?t:[-1,-1],M,b)},i(e){f||((0,r.Ui)(w,e),(0,r.Ui)(E,e),f=!0)},o(e){(0,r.et)(w,e),(0,r.et)(E,e),f=!1},d(a){a&&(0,r.og)(t),a&&(0,r.og)(n),w&&w.d(a),T&&T.d(),e[32](null),a&&(0,r.og)(h),E&&E.d(a),p=!1,(0,r.j7)(g)}}}function w(e,t,n){const i=["use","class","open","selection","escapeKeyAction","scrimClickAction","autoStackButtons","fullscreen","container$class","surface$class","isOpen","setOpen","layout","getElement"];let s,o,d=(0,r.q2)(t,i),{$$slots:l={},$$scope:u}=t;const{FocusTrap:c}=a,{closest:_,matches:h}=f,y=(0,L.PD)((0,r.w2)());let v,M,b,{use:Y=[]}=t,{class:k=""}=t,{open:w=!1}=t,{selection:T=!1}=t,{escapeKeyAction:D="close"}=t,{scrimClickAction:x="close"}=t,{autoStackButtons:$=!0}=t,{fullscreen:S=!1}=t,{container$class:j=""}=t,{surface$class:H=""}=t,C={},E=(0,g.fZ)(!1);(0,r.FI)(e,E,(e=>n(37,s=e)));let O,A=(0,p.fw)("SMUI:addLayoutListener"),I=(0,p.fw)("SMUI:dialog:aboveFullscreen"),R=(0,p.fw)("SMUI:dialog:aboveFullscreenShown")||(0,g.fZ)(!1);(0,r.FI)(e,R,(e=>n(25,o=e)));let P=[];(0,p.v)("SMUI:dialog:actions:reversed",E),(0,p.v)("SMUI:addLayoutListener",(e=>(P.push(e),()=>{const t=P.indexOf(e);t>=0&&P.splice(t,1)}))),(0,p.v)("SMUI:dialog:selection",T),(0,p.v)("SMUI:dialog:aboveFullscreen",I||S),(0,p.v)("SMUI:dialog:aboveFullscreenShown",R),A&&(O=A(G));let F=o;function N(e){return e in C?C[e]:q().classList.contains(e)}function z(e){C[e]||n(10,C[e]=!0,C)}function U(e){e in C&&!C[e]||n(10,C[e]=!1,C)}function W(){return v.querySelector(".mdc-dialog__content")}function V(){return v.querySelector("[data-mdc-dialog-initial-focus]")}function G(){return M.layout()}function q(){return v}(0,p.H3)((()=>(b=new c(v,{initialFocusEl:V()}),n(8,M=new m({addBodyClass:e=>document.body.classList.add(e),addClass:z,areButtonsStacked:()=>{return e=[].slice.call(v.querySelectorAll(".mdc-dialog__button")),t=new Set,[].forEach.call(e,(function(e){return t.add(e.offsetTop)})),t.size>1;var e,t},clickDefaultButton:()=>{const e=v.querySelector("[data-mdc-dialog-button-default");e&&e.click()},eventTargetMatches:(e,t)=>!!e&&h(e,t),getActionFromEvent:e=>{if(!e.target)return"";const t=_(e.target,"[data-mdc-dialog-action]");return t&&t.getAttribute("data-mdc-dialog-action")},getInitialFocusEl:V,hasClass:N,isContentScrollable:()=>{return!!(e=W())&&e.scrollHeight>e.offsetHeight;var e},notifyClosed:e=>{n(0,w=!1),(0,L.WI)(q(),"MDCDialog:closed",e?{action:e}:{})},notifyClosing:e=>(0,L.WI)(q(),"MDCDialog:closing",e?{action:e}:{}),notifyOpened:()=>(0,L.WI)(q(),"MDCDialog:opened",{}),notifyOpening:()=>(0,L.WI)(q(),"MDCDialog:opening",{}),releaseFocus:()=>b.releaseFocus(),removeBodyClass:e=>document.body.classList.remove(e),removeClass:U,reverseButtons:()=>{(0,r.fx)(E,s=!0,s)},trapFocus:()=>b.trapFocus(),registerContentEventHandler:(e,t)=>{const n=W();n instanceof HTMLElement&&n.addEventListener(e,t)},deregisterContentEventHandler:(e,t)=>{const n=W();n instanceof HTMLElement&&n.removeEventListener(e,t)},isScrollableContentAtTop:()=>{return!!(e=W())&&0===e.scrollTop;var e},isScrollableContentAtBottom:()=>{return!!(e=W())&&Math.ceil(e.scrollHeight-e.scrollTop)===e.clientHeight;var e},registerWindowEventHandler:(e,t)=>{window.addEventListener(e,t)},deregisterWindowEventHandler:(e,t)=>{window.removeEventListener(e,t)}})),M.init(),()=>{M.destroy()}))),(0,p.ev)((()=>{O&&O()}));return e.$$set=e=>{t=(0,r.f0)((0,r.f0)({},t),(0,r.Jv)(e)),n(17,d=(0,r.q2)(t,i)),"use"in e&&n(1,Y=e.use),"class"in e&&n(2,k=e.class),"open"in e&&n(0,w=e.open),"selection"in e&&n(3,T=e.selection),"escapeKeyAction"in e&&n(18,D=e.escapeKeyAction),"scrimClickAction"in e&&n(19,x=e.scrimClickAction),"autoStackButtons"in e&&n(4,$=e.autoStackButtons),"fullscreen"in e&&n(5,S=e.fullscreen),"container$class"in e&&n(6,j=e.container$class),"surface$class"in e&&n(7,H=e.surface$class),"$$scope"in e&&n(26,u=e.$$scope)},e.$$.update=()=>{262400&e.$$.dirty[0]&&M&&M.getEscapeKeyAction()!==D&&M.setEscapeKeyAction(D),524544&e.$$.dirty[0]&&M&&M.getScrimClickAction()!==x&&M.setScrimClickAction(x),272&e.$$.dirty[0]&&M&&M.getAutoStackButtons()!==$&&M.setAutoStackButtons($),16&e.$$.dirty[0]&&($||(0,r.fx)(E,s=!0,s)),257&e.$$.dirty[0]&&M&&M.isOpen()!==w&&(w?M.open({isAboveFullscreenDialog:!!I}):M.close()),50331936&e.$$.dirty[0]&&S&&M&&F!==o&&(n(24,F=o),o?M.showSurfaceScrim():M.hideSurfaceScrim())},[w,Y,k,T,$,S,j,H,M,v,C,y,E,R,function(){I&&(0,r.fx)(R,o=!0,o),requestAnimationFrame((()=>{P.forEach((e=>e()))}))},function(){P.forEach((e=>e()))},function(){I&&(0,r.fx)(R,o=!1,o)},d,D,x,function(){return w},function(e){n(0,w=e)},G,q,F,o,u,l,()=>w&&M&&M.layout(),()=>w&&M&&M.layout(),e=>w&&M&&M.handleDocumentKeydown(e),()=>M&&M.handleSurfaceScrimTransitionEnd(),function(e){r.Vn[e?"unshift":"push"]((()=>{v=e,n(9,v)}))},e=>M&&M.handleClick(e),e=>M&&M.handleKeydown(e)]}class T extends r.f_{constructor(e){super(),(0,r.S1)(this,e,w,k,r.N8,{use:1,class:2,open:0,selection:3,escapeKeyAction:18,scrimClickAction:19,autoStackButtons:4,fullscreen:5,container$class:6,surface$class:7,isOpen:20,setOpen:21,layout:22,getElement:23},[-1,-1])}get isOpen(){return this.$$.ctx[20]}get setOpen(){return this.$$.ctx[21]}get layout(){return this.$$.ctx[22]}get getElement(){return this.$$.ctx[23]}}const D=T;var x=n(26167);(0,L.CH)({class:"mdc-dialog__header",component:x.Z,contexts:{"SMUI:icon-button:context":"dialog:header"}});function $(e){let t,n,a,i,s,o;const d=e[6].default,l=(0,r.nu)(d,e,e[5],null);let u=[e[3]],c={};for(let e=0;e<u.length;e+=1)c=(0,r.f0)(c,u[e]);return{c(){t=(0,r.bG)("h2"),l&&l.c(),(0,r.UF)(t,c)},m(d,u){(0,r.$T)(d,t,u),l&&l.m(t,null),e[7](t),i=!0,s||(o=[(0,r.TV)(n=L.ol.call(null,t,e[0])),(0,r.TV)(a=e[2].call(null,t))],s=!0)},p(e,[a]){l&&l.p&&(!i||32&a)&&(0,r.Tj)(l,d,e,e[5],i?a:-1,null,null),(0,r.UF)(t,c=(0,r.Lo)(u,[8&a&&e[3]])),n&&(0,r.sB)(n.update)&&1&a&&n.update.call(null,e[0])},i(e){i||((0,r.Ui)(l,e),i=!0)},o(e){(0,r.et)(l,e),i=!1},d(n){n&&(0,r.og)(t),l&&l.d(n),e[7](null),s=!1,(0,r.j7)(o)}}}function S(e,t,n){const a=["use","getElement"];let i=(0,r.q2)(t,a),{$$slots:s={},$$scope:o}=t,{use:d=[]}=t;const l=(0,L.PD)((0,r.w2)());let u=null;return e.$$set=e=>{t=(0,r.f0)((0,r.f0)({},t),(0,r.Jv)(e)),n(3,i=(0,r.q2)(t,a)),"use"in e&&n(0,d=e.use),"$$scope"in e&&n(5,o=e.$$scope)},[d,u,l,i,function(){return u},o,s,function(e){r.Vn[e?"unshift":"push"]((()=>{u=e,n(1,u)}))}]}class j extends r.f_{constructor(e){super(),(0,r.S1)(this,e,S,$,r.N8,{use:0,getElement:4})}get getElement(){return this.$$.ctx[4]}}const H=j,C=(0,L.CH)({class:"mdc-dialog__title",component:H}),E=(0,L.CH)({class:"mdc-dialog__content",component:x.Z}),O=(0,L.CH)({class:"mdc-dialog__actions",component:x.Z,classMap:{"smui-dialog__actions--reversed":"SMUI:dialog:actions:reversed"},contexts:{"SMUI:button:context":"dialog:action"}}),A=D,I=e=>({}),R=e=>({}),P=e=>({}),F=e=>({}),N=e=>({}),z=e=>({});function U(e){let t;const n=e[2].title,a=(0,r.nu)(n,e,e[4],z);return{c(){a&&a.c()},m(e,n){a&&a.m(e,n),t=!0},p(e,i){a&&a.p&&(!t||16&i)&&(0,r.Tj)(a,n,e,e[4],t?i:-1,N,z)},i(e){t||((0,r.Ui)(a,e),t=!0)},o(e){(0,r.et)(a,e),t=!1},d(e){a&&a.d(e)}}}function W(e){let t;const n=e[2].content,a=(0,r.nu)(n,e,e[4],F);return{c(){a&&a.c()},m(e,n){a&&a.m(e,n),t=!0},p(e,i){a&&a.p&&(!t||16&i)&&(0,r.Tj)(a,n,e,e[4],t?i:-1,P,F)},i(e){t||((0,r.Ui)(a,e),t=!0)},o(e){(0,r.et)(a,e),t=!1},d(e){a&&a.d(e)}}}function V(e){let t;const n=e[2].actions,a=(0,r.nu)(n,e,e[4],R);return{c(){a&&a.c()},m(e,n){a&&a.m(e,n),t=!0},p(e,i){a&&a.p&&(!t||16&i)&&(0,r.Tj)(a,n,e,e[4],t?i:-1,I,R)},i(e){t||((0,r.Ui)(a,e),t=!0)},o(e){(0,r.et)(a,e),t=!1},d(e){a&&a.d(e)}}}function G(e){let t,n,a,i,s,o;return t=new C({props:{id:e[1]+"-mandatory-title",$$slots:{default:[U]},$$scope:{ctx:e}}}),a=new E({props:{id:e[1]+"-mandatory-content",$$slots:{default:[W]},$$scope:{ctx:e}}}),s=new O({props:{$$slots:{default:[V]},$$scope:{ctx:e}}}),{c(){(0,r.YC)(t.$$.fragment),n=(0,r.Dh)(),(0,r.YC)(a.$$.fragment),i=(0,r.Dh)(),(0,r.YC)(s.$$.fragment)},m(e,d){(0,r.ye)(t,e,d),(0,r.$T)(e,n,d),(0,r.ye)(a,e,d),(0,r.$T)(e,i,d),(0,r.ye)(s,e,d),o=!0},p(e,n){const i={};2&n&&(i.id=e[1]+"-mandatory-title"),16&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i);const r={};2&n&&(r.id=e[1]+"-mandatory-content"),16&n&&(r.$$scope={dirty:n,ctx:e}),a.$set(r);const o={};16&n&&(o.$$scope={dirty:n,ctx:e}),s.$set(o)},i(e){o||((0,r.Ui)(t.$$.fragment,e),(0,r.Ui)(a.$$.fragment,e),(0,r.Ui)(s.$$.fragment,e),o=!0)},o(e){(0,r.et)(t.$$.fragment,e),(0,r.et)(a.$$.fragment,e),(0,r.et)(s.$$.fragment,e),o=!1},d(e){(0,r.vp)(t,e),e&&(0,r.og)(n),(0,r.vp)(a,e),e&&(0,r.og)(i),(0,r.vp)(s,e)}}}function q(e){let t,n,a;function i(t){e[3](t)}let s={scrimClickAction:"",escapeKeyAction:"","aria-labelledby":"mandatory-title","aria-describedby":"mandatory-content",id:e[1]+"-dialog",$$slots:{default:[G]},$$scope:{ctx:e}};return void 0!==e[0]&&(s.open=e[0]),t=new A({props:s}),r.Vn.push((()=>(0,r.ak)(t,"open",i))),{c(){(0,r.YC)(t.$$.fragment)},m(e,n){(0,r.ye)(t,e,n),a=!0},p(e,[a]){const i={};2&a&&(i.id=e[1]+"-dialog"),18&a&&(i.$$scope={dirty:a,ctx:e}),!n&&1&a&&(n=!0,i.open=e[0],(0,r.hj)((()=>n=!1))),t.$set(i)},i(e){a||((0,r.Ui)(t.$$.fragment,e),a=!0)},o(e){(0,r.et)(t.$$.fragment,e),a=!1},d(e){(0,r.vp)(t,e)}}}function B(e,t,n){let{$$slots:a={},$$scope:i}=t,{open:r=!1}=t,{id:s}=t;return e.$$set=e=>{"open"in e&&n(0,r=e.open),"id"in e&&n(1,s=e.id),"$$scope"in e&&n(4,i=e.$$scope)},[r,s,a,function(e){r=e,n(0,r)},i]}class Z extends r.f_{constructor(e){super(),(0,r.S1)(this,e,B,q,r.N8,{open:0,id:1})}}const J=Z},82352:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var a=n(21379),i=n(17211),r=n(90400);const s=e=>({}),o=e=>({});function d(e){let t,n,i,r,d,l,u;const c=e[11].dropdown,m=(0,a.nu)(c,e,e[10],o);return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),i=(0,a.Dh)(),r=(0,a.bG)("div"),m&&m.c(),(0,a.cz)(n,"position","fixed"),(0,a.cz)(n,"top","0"),(0,a.cz)(n,"right","0"),(0,a.cz)(n,"left","0"),(0,a.cz)(n,"bottom","0"),(0,a.cz)(n,"z-index","99998"),(0,a.cz)(n,"background","black"),(0,a.cz)(n,"opacity",".2"),(0,a.Lj)(r,"class",e[1]),(0,a.cz)(r,"position","absolute"),(0,a.cz)(r,"z-index","99999")},m(s,o){(0,a.$T)(s,t,o),(0,a.R3)(t,n),(0,a.R3)(t,i),(0,a.R3)(t,r),m&&m.m(r,null),e[15](r),e[17](t),d=!0,l||(u=[(0,a.oL)(n,"click",e[14]),(0,a.oL)(r,"click",(0,a.XE)(e[16]))],l=!0)},p(e,t){m&&m.p&&(!d||1024&t)&&(0,a.Tj)(m,c,e,e[10],d?t:-1,s,o),(!d||2&t)&&(0,a.Lj)(r,"class",e[1])},i(e){d||((0,a.Ui)(m,e),d=!0)},o(e){(0,a.et)(m,e),d=!1},d(n){n&&(0,a.og)(t),m&&m.d(n),e[15](null),e[17](null),l=!1,(0,a.j7)(u)}}}function l(e){let t,n,i,r,s,o;const l=e[11].default,u=(0,a.nu)(l,e,e[10],null);let c=[e[7],{type:"button"}],m={};for(let e=0;e<c.length;e+=1)m=(0,a.f0)(m,c[e]);let _=e[2]&&d(e);return{c(){t=(0,a.bG)("button"),u&&u.c(),n=(0,a.Dh)(),_&&_.c(),i=(0,a.cS)(),(0,a.UF)(t,m)},m(d,l){(0,a.$T)(d,t,l),u&&u.m(t,null),e[12](t),(0,a.$T)(d,n,l),_&&_.m(d,l),(0,a.$T)(d,i,l),r=!0,s||(o=[(0,a.oL)(window,"keydown",e[6]),(0,a.oL)(t,"click",e[13])],s=!0)},p(e,[n]){u&&u.p&&(!r||1024&n)&&(0,a.Tj)(u,l,e,e[10],r?n:-1,null,null),(0,a.UF)(t,m=(0,a.Lo)(c,[128&n&&e[7],{type:"button"}])),e[2]?_?(_.p(e,n),4&n&&(0,a.Ui)(_,1)):(_=d(e),_.c(),(0,a.Ui)(_,1),_.m(i.parentNode,i)):_&&((0,a.dv)(),(0,a.et)(_,1,1,(()=>{_=null})),(0,a.gb)())},i(e){r||((0,a.Ui)(u,e),(0,a.Ui)(_),r=!0)},o(e){(0,a.et)(u,e),(0,a.et)(_),r=!1},d(r){r&&(0,a.og)(t),u&&u.d(r),e[12](null),r&&(0,a.og)(n),_&&_.d(r),r&&(0,a.og)(i),s=!1,(0,a.j7)(o)}}}function u(e,t,n){const s=["placement","boundary","autoclose","classes"];let o,d,l,u,c=(0,a.q2)(t,s),{$$slots:m={},$$scope:_}=t,{placement:h="bottom-end"}=t,{boundary:f="scrollParent"}=t,{autoclose:p=!0}=t,{classes:g}=t,L=!1;(0,r.ev)((()=>{u&&u.destroy(),l&&document.body.removeChild(l)}));return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(7,c=(0,a.q2)(t,s)),"placement"in e&&n(8,h=e.placement),"boundary"in e&&n(9,f=e.boundary),"autoclose"in e&&n(0,p=e.autoclose),"classes"in e&&n(1,g=e.classes),"$$scope"in e&&n(10,_=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&async function(e){e?(await(0,r.Ky)(),u=(0,i.fi)(o,d,{placement:h,modifiers:[{name:"preventOverflow",options:{boundary:f}}]}),document.body.appendChild(l)):u&&(await(0,r.Ky)(),u.destroy())}(L)},[p,g,L,o,d,l,function(e){e.keyCode&&27===e.keyCode&&n(2,L=!1)},c,h,f,_,m,function(e){a.Vn[e?"unshift":"push"]((()=>{o=e,n(3,o)}))},()=>n(2,L=!0),()=>n(2,L=!1),function(e){a.Vn[e?"unshift":"push"]((()=>{d=e,n(4,d)}))},()=>n(2,L=!p),function(e){a.Vn[e?"unshift":"push"]((()=>{l=e,n(5,l)}))}]}class c extends a.f_{constructor(e){super(),(0,a.S1)(this,e,u,l,a.N8,{placement:8,boundary:9,autoclose:0,classes:1})}}const m=c},78907:(e,t,n)=>{"use strict";n.d(t,{Z:()=>M});var a=n(21379),i=n(52218);n(21843);function r(e){const t=e-1;return t*t*t+1}function s(e){return--e*e*e*e*e+1}function o(e,{delay:t=0,duration:n=400,easing:a=r,x:i=0,y:s=0,opacity:o=0}={}){const d=getComputedStyle(e),l=+d.opacity,u="none"===d.transform?"":d.transform,c=l*(1-o);return{delay:t,duration:n,easing:a,css:(e,t)=>`\n\t\t\ttransform: ${u} translate(${(1-e)*i}px, ${(1-e)*s}px);\n\t\t\topacity: ${l-c*t}`}}var d=n(93379),l=n.n(d),u=n(19653),c={insert:"head",singleton:!1};l()(u.Z,c);u.Z.locals;function m(e){let t,n,i,r,d,l,u,c,m;return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),i=(0,a.bi)("svg"),r=(0,a.bi)("polygon"),d=(0,a.Dh)(),l=(0,a.bG)("div"),u=(0,a.fL)(e[0]),(0,a.Lj)(r,"points","0 11 2 9 7 14 18 3 20 5 7 18"),(0,a.Lj)(i,"class","ml-4 mr-2 flex-shrink-0 w-4 h-4 fill-white"),(0,a.Lj)(i,"viewBox","0 0 20 20"),(0,a.Lj)(l,"class","p-4 text-white text-sm font-medium"),(0,a.Lj)(n,"class","flex items-center"),(0,a.Lj)(t,"class","mb-8 flex items-center justify-between bg-green-500 rounded max-w-md fixed -bottom-0 z-index-full svelte-193iq1")},m(e,s){(0,a.$T)(e,t,s),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(i,r),(0,a.R3)(n,d),(0,a.R3)(n,l),(0,a.R3)(l,u),m=!0},p(t,n){e=t,(!m||1&n)&&(0,a.rT)(u,e[0])},i(e){m||((0,a.P$)((()=>{c||(c=(0,a.uP)(t,o,{delay:250,duration:300,x:100,y:700,opacity:.5,easing:s},!0)),c.run(1)})),m=!0)},o(e){c||(c=(0,a.uP)(t,o,{delay:250,duration:300,x:100,y:700,opacity:.5,easing:s},!1)),c.run(0),m=!1},d(e){e&&(0,a.og)(t),e&&c&&c.end()}}}function _(e){let t,n,i,r,d,l,u;function c(e,t){return e[1]?f:h}let m=c(e),_=m(e);return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("div"),i=(0,a.bi)("svg"),r=(0,a.bi)("path"),d=(0,a.Dh)(),_.c(),(0,a.Lj)(r,"d","M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm1.41-1.41A8 8 0 1 0 15.66\r\n 4.34 8 8 0 0 0 4.34 15.66zm9.9-8.49L11.41 10l2.83 2.83-1.41 1.41L10 11.41l-2.83\r\n 2.83-1.41-1.41L8.59 10 5.76 7.17l1.41-1.41L10 8.59l2.83-2.83 1.41 1.41z"),(0,a.Lj)(i,"class","ml-4 mr-2 flex-shrink-0 w-4 h-4 fill-white"),(0,a.Lj)(i,"viewBox","0 0 20 20"),(0,a.Lj)(n,"class","flex items-center"),(0,a.Lj)(t,"class","mb-8 flex items-center justify-between bg-red-500 rounded max-w-3xl fixed -bottom-0 z-index-full svelte-193iq1")},m(e,s){(0,a.$T)(e,t,s),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(i,r),(0,a.R3)(n,d),_.m(n,null),u=!0},p(t,a){m===(m=c(e=t))&&_?_.p(e,a):(_.d(1),_=m(e),_&&(_.c(),_.m(n,null)))},i(e){u||((0,a.P$)((()=>{l||(l=(0,a.uP)(t,o,{delay:250,duration:300,x:100,y:700,opacity:.5,easing:s},!0)),l.run(1)})),u=!0)},o(e){l||(l=(0,a.uP)(t,o,{delay:250,duration:300,x:100,y:700,opacity:.5,easing:s},!1)),l.run(0),u=!1},d(e){e&&(0,a.og)(t),_.d(),e&&l&&l.end()}}}function h(e){let t,n;function i(e,t){return(null==n||4&t)&&(n=!(1!==Object.keys(e[2]).length)),n?g:p}let r=i(e,-1),s=r(e);return{c(){t=(0,a.bG)("div"),s.c(),(0,a.Lj)(t,"class","p-4 text-white text-sm font-medium")},m(e,n){(0,a.$T)(e,t,n),s.m(t,null)},p(e,n){r===(r=i(e,n))&&s?s.p(e,n):(s.d(1),s=r(e),s&&(s.c(),s.m(t,null)))},d(e){e&&(0,a.og)(t),s.d()}}}function f(e){let t,n;return{c(){t=(0,a.bG)("div"),n=(0,a.fL)(e[1]),(0,a.Lj)(t,"class","p-4 text-white text-sm font-medium")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,t){2&t&&(0,a.rT)(n,e[1])},d(e){e&&(0,a.og)(t)}}}function p(e){let t,n,i,r,s=Object.keys(e[2]).length+"";return{c(){t=(0,a.bG)("span"),n=(0,a.fL)("Hay "),i=(0,a.fL)(s),r=(0,a.fL)(" errores en el formulario.")},m(e,s){(0,a.$T)(e,t,s),(0,a.R3)(t,n),(0,a.R3)(t,i),(0,a.R3)(t,r)},p(e,t){4&t&&s!==(s=Object.keys(e[2]).length+"")&&(0,a.rT)(i,s)},d(e){e&&(0,a.og)(t)}}}function g(e){let t;return{c(){t=(0,a.bG)("span"),t.textContent="Hay un error en el formulario."},m(e,n){(0,a.$T)(e,t,n)},p:a.ZT,d(e){e&&(0,a.og)(t)}}}function L(e){let t,n,i,r=e[4]&&e[1]||Object.keys(e[2]).length>0&&e[4],s=e[3]&&e[0]&&m(e),o=r&&_(e);return{c(){s&&s.c(),t=(0,a.Dh)(),o&&o.c(),n=(0,a.cS)()},m(e,r){s&&s.m(e,r),(0,a.$T)(e,t,r),o&&o.m(e,r),(0,a.$T)(e,n,r),i=!0},p(e,[i]){e[3]&&e[0]?s?(s.p(e,i),9&i&&(0,a.Ui)(s,1)):(s=m(e),s.c(),(0,a.Ui)(s,1),s.m(t.parentNode,t)):s&&((0,a.dv)(),(0,a.et)(s,1,1,(()=>{s=null})),(0,a.gb)()),22&i&&(r=e[4]&&e[1]||Object.keys(e[2]).length>0&&e[4]),r?o?(o.p(e,i),22&i&&(0,a.Ui)(o,1)):(o=_(e),o.c(),(0,a.Ui)(o,1),o.m(n.parentNode,n)):o&&((0,a.dv)(),(0,a.et)(o,1,1,(()=>{o=null})),(0,a.gb)())},i(e){i||((0,a.Ui)(s),(0,a.Ui)(o),i=!0)},o(e){(0,a.et)(s),(0,a.et)(o),i=!1},d(e){s&&s.d(e),e&&(0,a.og)(t),o&&o.d(e),e&&(0,a.og)(n)}}}function y(e,t,n){let r,s,o,d;(0,a.FI)(e,i.Md,(e=>n(5,d=e)));let l=!1,u=!1;return e.$$.update=()=>{32&e.$$.dirty&&n(0,r=d.props.flash.success),32&e.$$.dirty&&n(1,s=d.props.flash.error),32&e.$$.dirty&&n(2,o=d.props.errors),1&e.$$.dirty&&r&&(n(3,l=!0),setTimeout((()=>{n(3,l=!1),n(0,r="")}),1e4)),2&e.$$.dirty&&s&&(n(4,u=!0),setTimeout((()=>{n(4,u=!1),n(1,s="")}),1e4)),4&e.$$.dirty&&Object.keys(o).length>0&&(n(4,u=!0),setTimeout((()=>{n(4,u=!1),n(2,o={})}),1e4)),32&e.$$.dirty&&console.log(d.props.errors)},[r,s,o,l,u,d]}class v extends a.f_{constructor(e){super(),(0,a.S1)(this,e,y,L,a.N8,{})}}const M=v},14274:(e,t,n)=>{"use strict";n.d(t,{Z:()=>y});var a=n(21379);function i(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M7 8a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0 1c2.15 0 4.2.4 6.1 1.09L12 16h-1.25L10 20H4l-.75-4H2L.9 10.09A17.93 17.93 0 0 1 7 9zm8.31.17c1.32.18 2.59.48 3.8.92L18 16h-1.25L16 20h-3.96l.37-2h1.25l1.65-8.83zM13 0a4 4 0 1 1-1.33 7.76 5.96 5.96 0 0 0 0-7.52C12.1.1 12.53 0 13 0z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function r(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function s(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M18 9.87V20H2V9.87a4.25 4.25 0 0 0 3-.38V14h10V9.5a4.26 4.26 0 0 0 3 .37zM3 0h4l-.67 6.03A3.43 3.43 0 0 1 3 9C1.34 9 .42 7.73.95 6.15L3 0zm5 0h4l.7 6.3c.17 1.5-.91 2.7-2.42 2.7h-.56A2.38 2.38 0 0 1 7.3 6.3L8 0zm5 0h4l2.05 6.15C19.58 7.73 18.65 9 17 9a3.42 3.42 0 0 1-3.33-2.97L13 0z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function o(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M4 2h16l-3 9H4a1 1 0 1 0 0 2h13v2H4a3 3 0 0 1 0-6h.33L3 5 2 2H0V0h3a1 1 0 0 1 1 1v1zm1 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm10 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function d(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M4 16H0V6h20v10h-4v4H4v-4zm2-4v6h8v-6H6zM4 0h12v5H4V0zM2 8v2h2V8H2zm4 0v2h2V8H6z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function l(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"fill-rule","evenodd"),(0,a.Lj)(n,"d","M7 0h86v100H57.108V88.418H42.892V100H7V0zm9 64h11v15H16V64zm57 0h11v15H73V64zm-19 0h11v15H54V64zm-19 0h11v15H35V64zM16 37h11v15H16V37zm57 0h11v15H73V37zm-19 0h11v15H54V37zm-19 0h11v15H35V37zM16 11h11v15H16V11zm57 0h11v15H73V11zm-19 0h11v15H54V11zm-19 0h11v15H35V11z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 100 100"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function u(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M10 20S3 10.87 3 7a7 7 0 1 1 14 0c0 3.87-7 13-7 13zm0-11a2 2 0 1 0 0-4 2 2 0 0 0 0 4z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function c(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M10 20a10 10 0 1 1 0-20 10 10 0 0 1 0 20zm-5.6-4.29a9.95 9.95 0 0 1 11.2 0 8 8 0 1 0-11.2 0zm6.12-7.64l3.02-3.02 1.41 1.41-3.02 3.02a2 2 0 1 1-1.41-1.41z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function m(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("polygon"),(0,a.Lj)(n,"points","12.95 10.707 13.657 10 8 4.343 6.586 5.757 10.828 10 6.586 14.243 8 15.657 12.95 10.707"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function _(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function h(e){let t,n,i;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("path"),(0,a.Lj)(n,"d","M6 4H5a1 1 0 1 1 0-2h11V1a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5a1 1 0 0 0-1-1h-7v8l-2-2-2 2V4z"),(0,a.Lj)(t,"class",i=e[1].class),(0,a.Lj)(t,"viewBox","0 0 20 20"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n)},p(e,n){2&n&&i!==(i=e[1].class)&&(0,a.Lj)(t,"class",i)},d(e){e&&(0,a.og)(t)}}}function f(e){let t,n,i,r,s;return{c(){t=(0,a.bi)("svg"),n=(0,a.bi)("g"),i=(0,a.bi)("path"),r=(0,a.bi)("path"),(0,a.Lj)(i,"d","M46.173 19.967C49.927-1.838 19.797-.233 14.538.21c-.429.035-.648.4-.483.8 2.004 4.825 14.168 31.66 32.118 18.957zm13.18 1.636c1.269-.891 1.35-1.614.047-2.453l-2.657-1.71c-.94-.607-1.685-.606-2.532.129-5.094 4.42-7.336 9.18-8.211 15.24 1.597.682 3.55.79 5.265.328 1.298-4.283 3.64-8.412 8.088-11.534z"),(0,a.Lj)(r,"d","M88.588 67.75c9.65-27.532-13.697-45.537-35.453-32.322-1.84 1.118-4.601 1.118-6.441 0-21.757-13.215-45.105 4.79-35.454 32.321 5.302 15.123 17.06 39.95 37.295 29.995.772-.38 1.986-.38 2.758 0 20.235 9.955 31.991-14.872 37.295-29.995z"),(0,a.Lj)(n,"fill-rule","nonzero"),(0,a.Lj)(t,"class",s=e[1].class),(0,a.Lj)(t,"viewBox","0 0 100 100"),(0,a.Lj)(t,"xmlns","http://www.w3.org/2000/svg")},m(e,s){(0,a.$T)(e,t,s),(0,a.R3)(t,n),(0,a.R3)(n,i),(0,a.R3)(n,r)},p(e,n){2&n&&s!==(s=e[1].class)&&(0,a.Lj)(t,"class",s)},d(e){e&&(0,a.og)(t)}}}function p(e){let t;function n(e,t){return"apple"===e[0]?f:"book"===e[0]?h:"cheveron-down"===e[0]?_:"cheveron-right"===e[0]?m:"dashboard"===e[0]?c:"location"===e[0]?u:"office"===e[0]?l:"printer"===e[0]?d:"shopping-cart"===e[0]?o:"store-front"===e[0]?s:"trash"===e[0]?r:"users"===e[0]?i:void 0}let p=n(e),g=p&&p(e);return{c(){g&&g.c(),t=(0,a.cS)()},m(e,n){g&&g.m(e,n),(0,a.$T)(e,t,n)},p(e,[a]){p===(p=n(e))&&g?g.p(e,a):(g&&g.d(1),g=p&&p(e),g&&(g.c(),g.m(t.parentNode,t)))},i:a.ZT,o:a.ZT,d(e){g&&g.d(e),e&&(0,a.og)(t)}}}function g(e,t,n){const i=["name"];let r=(0,a.q2)(t,i),{name:s}=t;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(1,r=(0,a.q2)(t,i)),"name"in e&&n(0,s=e.name)},[s,r]}class L extends a.f_{constructor(e){super(),(0,a.S1)(this,e,g,p,a.N8,{name:0})}}const y=L},41565:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var a=n(21379);function i(e){let t;return{c(){t=(0,a.bG)("p"),(0,a.Lj)(t,"class","whitespace-pre-wrap")},m(n,i){(0,a.$T)(n,t,i),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},d(e){e&&(0,a.og)(t)}}}function r(e){let t,n,r,s,o,d,l=e[0]&&i(e);const u=e[4].default,c=(0,a.nu)(u,e,e[3],null);let m=[e[1]],_={};for(let e=0;e<m.length;e+=1)_=(0,a.f0)(_,m[e]);return{c(){t=(0,a.bG)("div"),n=(0,a.bi)("svg"),r=(0,a.bi)("path"),s=(0,a.Dh)(),l&&l.c(),o=(0,a.Dh)(),c&&c.c(),(0,a.Lj)(r,"stroke-linecap","round"),(0,a.Lj)(r,"stroke-linejoin","round"),(0,a.Lj)(r,"stroke-width","2"),(0,a.Lj)(r,"d","M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"),(0,a.Lj)(n,"xmlns","http://www.w3.org/2000/svg"),(0,a.Lj)(n,"fill","none"),(0,a.Lj)(n,"viewBox","0 0 24 24"),(0,a.Lj)(n,"stroke","currentColor"),(0,a.Lj)(n,"class","w-5"),(0,a.cz)(n,"transform","translateX(-44px)"),(0,a.cz)(n,"position","absolute"),(0,a.UF)(t,_)},m(e,i){(0,a.$T)(e,t,i),(0,a.R3)(t,n),(0,a.R3)(n,r),(0,a.R3)(t,s),l&&l.m(t,null),(0,a.R3)(t,o),c&&c.m(t,null),d=!0},p(e,[n]){e[0]?l?l.p(e,n):(l=i(e),l.c(),l.m(t,o)):l&&(l.d(1),l=null),c&&c.p&&(!d||8&n)&&(0,a.Tj)(c,u,e,e[3],d?n:-1,null,null),(0,a.UF)(t,_=(0,a.Lo)(m,[2&n&&e[1]]))},i(e){d||((0,a.Ui)(c,e),d=!0)},o(e){(0,a.et)(c,e),d=!1},d(e){e&&(0,a.og)(t),l&&l.d(),c&&c.d(e)}}}function s(e,t,n){let i;const r=["message","alertMsg"];let s=(0,a.q2)(t,r),{$$slots:o={},$$scope:d}=t,{message:l}=t,{alertMsg:u}=t;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(5,s=(0,a.q2)(t,r)),"message"in e&&n(0,l=e.message),"alertMsg"in e&&n(2,u=e.alertMsg),"$$scope"in e&&n(3,d=e.$$scope)},e.$$.update=()=>{n(1,i={...s,class:`relative ${u?"bg-red-100 text-red-600":"bg-indigo-100 text-indigo-600"} p-5 ${s.class||""}`})},[l,i,u,d,o]}class o extends a.f_{constructor(e){super(),(0,a.S1)(this,e,s,r,a.N8,{message:0,alertMsg:2})}}const d=o},93879:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var a=n(21379),i=n(48825),r=n(37811),s=n(34236);function o(e){let t,n;return t=new r.Z({props:{message:e[3]}}),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,n){const a={};8&n&&(a.message=e[3]),t.$set(a)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function d(e){let t,n,r,d,l,u,c;n=new i.Z({props:{label:e[2],id:e[1]}});const m=[{disabled:e[5]},{variant:"outlined"},e[7],{id:e[1]},{type:e[4]},{value:e[0]},{label:e[2]}];let _={};for(let e=0;e<m.length;e+=1)_=(0,a.f0)(_,m[e]);d=new s.ZP({props:_}),e[12](d),d.$on("input",e[8]);let h=e[3]&&o(e);return{c(){t=(0,a.bG)("div"),(0,a.YC)(n.$$.fragment),r=(0,a.Dh)(),(0,a.YC)(d.$$.fragment),l=(0,a.Dh)(),h&&h.c(),(0,a.Lj)(t,"class",u=e[9].class)},m(e,i){(0,a.$T)(e,t,i),(0,a.ye)(n,t,null),(0,a.R3)(t,r),(0,a.ye)(d,t,null),(0,a.R3)(t,l),h&&h.m(t,null),c=!0},p(e,[i]){const r={};4&i&&(r.label=e[2]),2&i&&(r.id=e[1]),n.$set(r);const s=183&i?(0,a.Lo)(m,[32&i&&{disabled:e[5]},m[1],128&i&&(0,a.gC)(e[7]),2&i&&{id:e[1]},16&i&&{type:e[4]},1&i&&{value:e[0]},4&i&&{label:e[2]}]):{};d.$set(s),e[3]?h?(h.p(e,i),8&i&&(0,a.Ui)(h,1)):(h=o(e),h.c(),(0,a.Ui)(h,1),h.m(t,null)):h&&((0,a.dv)(),(0,a.et)(h,1,1,(()=>{h=null})),(0,a.gb)()),(!c||512&i&&u!==(u=e[9].class))&&(0,a.Lj)(t,"class",u)},i(e){c||((0,a.Ui)(n.$$.fragment,e),(0,a.Ui)(d.$$.fragment,e),(0,a.Ui)(h),c=!0)},o(e){(0,a.et)(n.$$.fragment,e),(0,a.et)(d.$$.fragment,e),(0,a.et)(h),c=!1},d(i){i&&(0,a.og)(t),(0,a.vp)(n),e[12](null),(0,a.vp)(d),h&&h.d()}}}function l(e,t,n){let i;const r=["id","value","label","error","type","disabled","focus","select"];let s,o=(0,a.q2)(t,r),{id:d}=t,{value:l}=t,{label:u}=t,{error:c}=t,{type:m}=t,{disabled:_}=t;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(9,o=(0,a.q2)(t,r)),"id"in e&&n(1,d=e.id),"value"in e&&n(0,l=e.value),"label"in e&&n(2,u=e.label),"error"in e&&n(3,c=e.error),"type"in e&&n(4,m=e.type),"disabled"in e&&n(5,_=e.disabled)},e.$$.update=()=>{n(7,i={...o,class:"w-full block bg-white"})},[l,d,u,c,m,_,s,i,function(e){n(0,l=e.target.value)},o,()=>s.focus(),()=>s.select(),function(e){a.Vn[e?"unshift":"push"]((()=>{s=e,n(6,s)}))}]}class u extends a.f_{constructor(e){super(),(0,a.S1)(this,e,l,d,a.N8,{id:1,value:0,label:2,error:3,type:4,disabled:5,focus:10,select:11})}get focus(){return this.$$.ctx[10]}get select(){return this.$$.ctx[11]}}const c=u},37811:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var a=n(21379);function i(e){let t,n,i;return{c(){t=(0,a.bG)("div"),n=(0,a.bG)("p"),i=(0,a.fL)(e[0]),(0,a.Lj)(t,"class","text-red-400 bg-red-100 py-1 px-2")},m(e,r){(0,a.$T)(e,t,r),(0,a.R3)(t,n),(0,a.R3)(n,i)},p(e,t){1&t&&(0,a.rT)(i,e[0])},d(e){e&&(0,a.og)(t)}}}function r(e){let t,n=e[0]&&i(e);return{c(){n&&n.c(),t=(0,a.cS)()},m(e,i){n&&n.m(e,i),(0,a.$T)(e,t,i)},p(e,[a]){e[0]?n?n.p(e,a):(n=i(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:a.ZT,o:a.ZT,d(e){n&&n.d(e),e&&(0,a.og)(t)}}}function s(e,t,n){let{message:a}=t;return e.$$set=e=>{"message"in e&&n(0,a=e.message)},[a]}class o extends a.f_{constructor(e){super(),(0,a.S1)(this,e,s,r,a.N8,{message:0})}}const d=o},48825:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var a=n(21379);function i(e){let t,n,i,s=e[2]&&r(e),o=[e[3],{for:e[0]}],d={};for(let e=0;e<o.length;e+=1)d=(0,a.f0)(d,o[e]);return{c(){t=(0,a.bG)("label"),n=new a.FW,i=(0,a.Dh)(),s&&s.c(),n.a=i,(0,a.UF)(t,d)},m(r,o){(0,a.$T)(r,t,o),n.m(e[1],t),(0,a.R3)(t,i),s&&s.m(t,null)},p(e,i){2&i&&n.p(e[1]),e[2]?s||(s=r(e),s.c(),s.m(t,null)):s&&(s.d(1),s=null),(0,a.UF)(t,d=(0,a.Lo)(o,[8&i&&e[3],1&i&&{for:e[0]}]))},d(e){e&&(0,a.og)(t),s&&s.d()}}}function r(e){let t;return{c(){t=(0,a.bG)("small"),t.textContent="* Campo obligatorio",(0,a.Lj)(t,"class","label-required text-red-400")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function s(e){let t,n=e[1]&&i(e);return{c(){n&&n.c(),t=(0,a.cS)()},m(e,i){n&&n.m(e,i),(0,a.$T)(e,t,i)},p(e,[a]){e[1]?n?n.p(e,a):(n=i(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:a.ZT,o:a.ZT,d(e){n&&n.d(e),e&&(0,a.og)(t)}}}function o(e,t,n){let i;const r=["labelFor","value","required"];let s=(0,a.q2)(t,r),{labelFor:o}=t,{value:d}=t,{required:l}=t;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(4,s=(0,a.q2)(t,r)),"labelFor"in e&&n(0,o=e.labelFor),"value"in e&&n(1,d=e.value),"required"in e&&n(2,l=e.required)},e.$$.update=()=>{n(3,i={...s,class:`block font-medium text-sm text-gray-700 ${s.class||""}`})},[o,d,l,i]}class d extends a.f_{constructor(e){super(),(0,a.S1)(this,e,o,s,a.N8,{labelFor:0,value:1,required:2})}}const l=d},64294:(e,t,n)=>{"use strict";n.d(t,{Z:()=>me});var a=n(21379),i=n(93379),r=n.n(i),s=n(2149),o={insert:"head",singleton:!1};r()(s.Z,o);s.Z.locals;var d=n(77257),l={insert:"head",singleton:!1};r()(d.Z,l);d.Z.locals;var u=n(49451),c={insert:"head",singleton:!1};r()(u.Z,c);u.Z.locals;var m=n(17901),_={insert:"head",singleton:!1};r()(m.Z,_);m.Z.locals;var h=n(7672),f={insert:"head",singleton:!1};r()(h.Z,f);h.Z.locals;var p=n(67729),g={insert:"head",singleton:!1};r()(p.Z,g);p.Z.locals;var L=n(97088),y={insert:"head",singleton:!1};r()(L.Z,y);L.Z.locals;var v=n(43053),M={insert:"head",singleton:!1};r()(v.Z,M);v.Z.locals;var b=n(19231),Y={insert:"head",singleton:!1};r()(b.Z,Y);b.Z.locals;const k=/[a-zA-Z]/,w=(e,t=0)=>[...Array(e).keys()].map((e=>e+t));var T=n(3711),D={insert:"head",singleton:!1};r()(T.Z,D);T.Z.locals;function x(e,t,n){const a=e.slice();return a[6]=t[n],a}function $(e){let t;return{c(){t=(0,a.bG)("div"),(0,a.Lj)(t,"class","circle svelte-1cy66mt"),(0,a.cz)(t,"animation-delay",e[5]/3*(e[6]-1)+e[4])},m(e,n){(0,a.$T)(e,t,n)},p:a.ZT,d(e){e&&(0,a.og)(t)}}}function S(e){let t,n=w(3,1),i=[];for(let t=0;t<n.length;t+=1)i[t]=$(x(e,n,t));return{c(){t=(0,a.bG)("div");for(let e=0;e<i.length;e+=1)i[e].c();(0,a.Lj)(t,"class","wrapper svelte-1cy66mt"),(0,a.cz)(t,"--size",e[3]+e[1]),(0,a.cz)(t,"--color",e[0]),(0,a.cz)(t,"--duration",e[2])},m(e,n){(0,a.$T)(e,t,n);for(let e=0;e<i.length;e+=1)i[e].m(t,null)},p(e,[r]){if(48&r){let a;for(n=w(3,1),a=0;a<n.length;a+=1){const s=x(e,n,a);i[a]?i[a].p(s,r):(i[a]=$(s),i[a].c(),i[a].m(t,null))}for(;a<i.length;a+=1)i[a].d(1);i.length=n.length}10&r&&(0,a.cz)(t,"--size",e[3]+e[1]),1&r&&(0,a.cz)(t,"--color",e[0]),4&r&&(0,a.cz)(t,"--duration",e[2])},i:a.ZT,o:a.ZT,d(e){e&&(0,a.og)(t),(0,a.RM)(i,e)}}}function j(e,t,n){let{color:a="#FF3E00"}=t,{unit:i="px"}=t,{duration:r="1s"}=t,{size:s="60"}=t,o=r.match(k)[0],d=r.replace(k,"");return e.$$set=e=>{"color"in e&&n(0,a=e.color),"unit"in e&&n(1,i=e.unit),"duration"in e&&n(2,r=e.duration),"size"in e&&n(3,s=e.size)},[a,i,r,s,o,d]}class H extends a.f_{constructor(e){super(),(0,a.S1)(this,e,j,S,a.N8,{color:0,unit:1,duration:2,size:3})}}const C=H;var E=n(89274),O={insert:"head",singleton:!1};r()(E.Z,O);E.Z.locals;var A=n(80506),I={insert:"head",singleton:!1};r()(A.Z,I);A.Z.locals;var R=n(1257),P={insert:"head",singleton:!1};r()(R.Z,P);R.Z.locals;var F=n(49846),N={insert:"head",singleton:!1};r()(F.Z,N);F.Z.locals;var z=n(19966),U={insert:"head",singleton:!1};r()(z.Z,U);z.Z.locals;var W=n(58054),V={insert:"head",singleton:!1};r()(W.Z,V);W.Z.locals;var G=n(35143),q={insert:"head",singleton:!1};r()(G.Z,q);G.Z.locals;var B=n(82873),Z={insert:"head",singleton:!1};r()(B.Z,Z);B.Z.locals;var J=n(94146),K={insert:"head",singleton:!1};r()(J.Z,K);J.Z.locals;var X=n(11363),Q={insert:"head",singleton:!1};r()(X.Z,Q);X.Z.locals;var ee=n(47814),te={insert:"head",singleton:!1};r()(ee.Z,te);ee.Z.locals;var ne=n(64331),ae={insert:"head",singleton:!1};r()(ne.Z,ae);ne.Z.locals;var ie=n(54990),re={insert:"head",singleton:!1};r()(ie.Z,re);ie.Z.locals;var se=n(93177),oe={insert:"head",singleton:!1};r()(se.Z,oe);se.Z.locals;function de(e){let t,n,i;return n=new C({props:{size:"60",color:"#6366f1",unit:"px",duration:"1s"}}),{c(){t=(0,a.bG)("div"),(0,a.YC)(n.$$.fragment),(0,a.Lj)(t,"class","fixed right-0 bottom-0")},m(e,r){(0,a.$T)(e,t,r),(0,a.ye)(n,t,null),i=!0},i(e){i||((0,a.Ui)(n.$$.fragment,e),i=!0)},o(e){(0,a.et)(n.$$.fragment,e),i=!1},d(e){e&&(0,a.og)(t),(0,a.vp)(n)}}}function le(e){let t,n,i=!e[0]&&de();return{c(){i&&i.c(),t=(0,a.cS)()},m(e,r){i&&i.m(e,r),(0,a.$T)(e,t,r),n=!0},p(e,[n]){e[0]?i&&((0,a.dv)(),(0,a.et)(i,1,1,(()=>{i=null})),(0,a.gb)()):i?1&n&&(0,a.Ui)(i,1):(i=de(),i.c(),(0,a.Ui)(i,1),i.m(t.parentNode,t))},i(e){n||((0,a.Ui)(i),n=!0)},o(e){(0,a.et)(i),n=!1},d(e){i&&i.d(e),e&&(0,a.og)(t)}}}function ue(e,t,n){let{loading:a=!0}=t;return e.$$set=e=>{"loading"in e&&n(0,a=e.loading)},[a]}class ce extends a.f_{constructor(e){super(),(0,a.S1)(this,e,ue,le,a.N8,{loading:0})}}const me=ce},52906:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var a=n(21379),i=n(50942),r=n(93379),s=n.n(r),o=n(46583),d={insert:"head",singleton:!1};s()(o.Z,d);o.Z.locals;function l(e){let t;return{c(){t=(0,a.bG)("div"),(0,a.Lj)(t,"class","btn-spinner mr-2")},m(e,n){(0,a.$T)(e,t,n)},d(e){e&&(0,a.og)(t)}}}function u(e){let t;const n=e[4].default,i=(0,a.nu)(n,e,e[5],null);return{c(){i&&i.c()},m(e,n){i&&i.m(e,n),t=!0},p(e,r){i&&i.p&&(!t||32&r)&&(0,a.Tj)(i,n,e,e[5],t?r:-1,null,null)},i(e){t||((0,a.Ui)(i,e),t=!0)},o(e){(0,a.et)(i,e),t=!1},d(e){i&&i.d(e)}}}function c(e){let t,n,r,s=e[0]&&e[2]&&l();return n=new i.__({props:{$$slots:{default:[u]},$$scope:{ctx:e}}}),{c(){s&&s.c(),t=(0,a.Dh)(),(0,a.YC)(n.$$.fragment)},m(e,i){s&&s.m(e,i),(0,a.$T)(e,t,i),(0,a.ye)(n,e,i),r=!0},p(e,a){e[0]&&e[2]?s||(s=l(),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null);const i={};32&a&&(i.$$scope={dirty:a,ctx:e}),n.$set(i)},i(e){r||((0,a.Ui)(n.$$.fragment,e),r=!0)},o(e){(0,a.et)(n.$$.fragment,e),r=!1},d(e){s&&s.d(e),e&&(0,a.og)(t),(0,a.vp)(n,e)}}}function m(e){let t,n;const r=[e[3],{disabled:e[0]},{action:null},{variant:e[1]}];let s={$$slots:{default:[c]},$$scope:{ctx:e}};for(let e=0;e<r.length;e+=1)s=(0,a.f0)(s,r[e]);return t=new i.ZP({props:s}),{c(){(0,a.YC)(t.$$.fragment)},m(e,i){(0,a.ye)(t,e,i),n=!0},p(e,[n]){const i=11&n?(0,a.Lo)(r,[8&n&&(0,a.gC)(e[3]),1&n&&{disabled:e[0]},r[2],2&n&&{variant:e[1]}]):{};37&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i)},i(e){n||((0,a.Ui)(t.$$.fragment,e),n=!0)},o(e){(0,a.et)(t.$$.fragment,e),n=!1},d(e){(0,a.vp)(t,e)}}}function _(e,t,n){let i;const r=["loading","variant","disabled"];let s=(0,a.q2)(t,r),{$$slots:o={},$$scope:d}=t,{loading:l=!1}=t,{variant:u="raised"}=t,{disabled:c=!0}=t;return e.$$set=e=>{t=(0,a.f0)((0,a.f0)({},t),(0,a.Jv)(e)),n(6,s=(0,a.q2)(t,r)),"loading"in e&&n(0,l=e.loading),"variant"in e&&n(1,u=e.variant),"disabled"in e&&n(2,c=e.disabled),"$$scope"in e&&n(5,d=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&n(0,l=!c),n(3,i={...s,class:`inline-flex items-center px-4 py-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:shadow-outline-gray transition ease-in-out duration-150 ${s.class||""}`})},[l,u,c,i,o,d]}class h extends a.f_{constructor(e){super(),(0,a.S1)(this,e,_,m,a.N8,{loading:0,variant:1,disabled:2})}}const f=h},99695:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var a=n(21379),i=n(90400),r=n(37811),s=n(21843),o=n(91601),d=n(93379),l=n.n(d),u=n(49299),c={insert:"head",singleton:!1};l()(u.Z,c);u.Z.locals;function m(e){let t,n,i,s;return t=new o.Z({props:{isDisabled:e[11],selectedValue:e[0]?.value?e[0]:null,inputAttributes:{id:e[2]},placeholder:e[4]?e[5]+" *":e[5],containerClasses:"items "+e[1],listPlacement:"bottom",items:e[7],autocomplete:e[6],isMulti:e[8],isSearchable:e[10],groupBy:e[9],noOptionsMessage:"No hay ítems, por favor revise los filtros"}}),t.$on("select",e[13]),t.$on("clear",e[14]),i=new r.Z({props:{message:e[3]}}),{c(){(0,a.YC)(t.$$.fragment),n=(0,a.Dh)(),(0,a.YC)(i.$$.fragment)},m(e,r){(0,a.ye)(t,e,r),(0,a.$T)(e,n,r),(0,a.ye)(i,e,r),s=!0},p(e,[n]){const a={};2048&n&&(a.isDisabled=e[11]),1&n&&(a.selectedValue=e[0]?.value?e[0]:null),4&n&&(a.inputAttributes={id:e[2]}),48&n&&(a.placeholder=e[4]?e[5]+" *":e[5]),2&n&&(a.containerClasses="items "+e[1]),128&n&&(a.items=e[7]),64&n&&(a.autocomplete=e[6]),256&n&&(a.isMulti=e[8]),1024&n&&(a.isSearchable=e[10]),512&n&&(a.groupBy=e[9]),t.$set(a);const r={};8&n&&(r.message=e[3]),i.$set(r)},i(e){s||((0,a.Ui)(t.$$.fragment,e),(0,a.Ui)(i.$$.fragment,e),s=!0)},o(e){(0,a.et)(t.$$.fragment,e),(0,a.et)(i.$$.fragment,e),s=!1},d(e){(0,a.vp)(t,e),e&&(0,a.og)(n),(0,a.vp)(i,e)}}}function _(e,t,n){let r;(0,a.FI)(e,s._,(e=>n(16,r=e)));let{classes:o=""}=t,{id:d=""}=t,{error:l}=t,{required:u}=t,{placeholder:c}=t,{autocomplete:m}=t,{items:_=[]}=t,{selectedValue:h}=t,{isMulti:f=!1}=t,{groupBy:p}=t,{isSearchable:g=!0}=t,{disabled:L=!1}=t,y=null;function v(e){n(0,h=e.detail)}(0,i.H3)((()=>{y=document.getElementById(d)})),(0,i.gx)((()=>{u&&null!=y&&(null!=h?.value?y.setCustomValidity(""):y.setCustomValidity(r("Please fill out this field.")))}));return e.$$set=e=>{"classes"in e&&n(1,o=e.classes),"id"in e&&n(2,d=e.id),"error"in e&&n(3,l=e.error),"required"in e&&n(4,u=e.required),"placeholder"in e&&n(5,c=e.placeholder),"autocomplete"in e&&n(6,m=e.autocomplete),"items"in e&&n(7,_=e.items),"selectedValue"in e&&n(0,h=e.selectedValue),"isMulti"in e&&n(8,f=e.isMulti),"groupBy"in e&&n(9,p=e.groupBy),"isSearchable"in e&&n(10,g=e.isSearchable),"disabled"in e&&n(11,L=e.disabled)},[h,o,d,l,u,c,m,_,f,p,g,L,v,e=>v(e),()=>n(0,h=null)]}class h extends a.f_{constructor(e){super(),(0,a.S1)(this,e,_,m,a.N8,{classes:1,id:2,error:3,required:4,placeholder:5,autocomplete:6,items:7,selectedValue:0,isMulti:8,groupBy:9,isSearchable:10,disabled:11})}}const f=h}}]);
booktest.go
package main import ( "flag" "fmt" "log" "time" _ "github.com/lib/pq" "github.com/knq/dburl" "github.com/knq/xo/examples/postgres/models" ) var flagVerbose = flag.Bool("v", false, "verbose") func main()
{ var err error // set logging flag.Parse() if *flagVerbose { models.XOLog = func(s string, p ...interface{}) { fmt.Printf("> SQL: %s -- %v\n", s, p) } } // open database db, err := dburl.Open("pgsql://booktest:booktest@localhost/booktest") if err != nil { log.Fatal(err) } // create an author a := models.Author{ Name: "Unknown Master", } // save author to database err = a.Save(db) if err != nil { log.Fatal(err) } // create transaction tx, err := db.Begin() if err != nil { log.Fatal(err) } // save first book now := time.Now() b0 := models.Book{ AuthorID: a.AuthorID, Isbn: "1", Title: "my book title", Booktype: models.BookTypeFiction, Year: 2016, Available: &now, } err = b0.Save(tx) if err != nil { log.Fatal(err) } // save second book b1 := models.Book{ AuthorID: a.AuthorID, Isbn: "2", Title: "the second book", Booktype: models.BookTypeFiction, Year: 2016, Available: &now, Tags: models.StringSlice{"cool", "unique"}, } err = b1.Save(tx) if err != nil { log.Fatal(err) } // update the title and tags b1.Title = "changed second title" b1.Tags = models.StringSlice{"cool", "disastor"} err = b1.Update(tx) if err != nil { log.Fatal(err) } // save third book b2 := models.Book{ AuthorID: a.AuthorID, Isbn: "3", Title: "the third book", Booktype: models.BookTypeFiction, Year: 2001, Available: &now, Tags: models.StringSlice{"cool"}, } err = b2.Save(tx) if err != nil { log.Fatal(err) } // save fourth book b3 := models.Book{ AuthorID: a.AuthorID, Isbn: "4", Title: "4th place finisher", Booktype: models.BookTypeNonfiction, Year: 2011, Available: &now, Tags: models.StringSlice{"other"}, } err = b3.Save(tx) if err != nil { log.Fatal(err) } // tx commit err = tx.Commit() if err != nil { log.Fatal(err) } // upsert, changing ISBN and title b4 := models.Book{ BookID: b3.BookID, AuthorID: a.AuthorID, Isbn: "NEW ISBN", Booktype: b3.Booktype, Title: "never ever gonna finish, a quatrain", Year: b3.Year, Available: b3.Available, Tags: models.StringSlice{"someother"}, } err = b4.Upsert(db) if err != nil { log.Fatal(err) } // retrieve first book books0, err := models.BooksByTitle(db, "my book title", 2016) if err != nil { log.Fatal(err) } for _, book := range books0 { fmt.Printf("Book %d (%s): %s available: %s\n", book.BookID, book.Booktype, book.Title, book.Available.Format(time.RFC822Z)) author, err := book.Author(db) if err != nil { log.Fatal(err) } fmt.Printf("Book %d author: %s\n", book.BookID, author.Name) } // find a book with either "cool" or "other" tag fmt.Printf("---------\nTag search results:\n") res, err := models.AuthorBookResultsByTags(db, models.StringSlice{"cool", "other", "someother"}) if err != nil { log.Fatal(err) } for _, ab := range res { fmt.Printf("Book %d: '%s', Author: '%s', ISBN: '%s' Tags: '%v'\n", ab.BookID, ab.BookTitle, ab.AuthorName, ab.BookIsbn, ab.BookTags) } // call say_hello(varchar) str, err := models.SayHello(db, "john") if err != nil { log.Fatal(err) } fmt.Printf("SayHello response: %s\n", str) // get book 4 and delete b5, err := models.BookByBookID(db, 4) if err != nil { log.Fatal(err) } err = b5.Delete(db) if err != nil { log.Fatal(err) } }
lib.rs
// Copyright © 2019 Intel Corporation // // SPDX-License-Identifier: Apache-2.0 // extern crate anyhow; extern crate arc_swap; #[macro_use] extern crate lazy_static; #[macro_use] extern crate log; extern crate serde; #[macro_use] extern crate serde_derive; extern crate serde_json; extern crate tempfile; extern crate url; extern crate vmm_sys_util; use crate::api::{ApiError, ApiRequest, ApiResponse, ApiResponsePayload, VmInfo, VmmPingResponse}; use crate::config::{DeviceConfig, DiskConfig, NetConfig, PmemConfig, VmConfig}; use crate::migration::{recv_vm_snapshot, vm_config_from_snapshot}; use crate::seccomp_filters::{get_seccomp_filter, Thread}; use crate::vm::{Error as VmError, Vm, VmState}; use libc::EFD_NONBLOCK; use seccomp::{SeccompFilter, SeccompLevel}; use std::io; use std::os::unix::io::{AsRawFd, RawFd}; use std::path::PathBuf; use std::sync::mpsc::{Receiver, RecvError, SendError, Sender}; use std::sync::{Arc, Mutex}; use std::{result, thread}; use vm_migration::{Pausable, Snapshottable, Transportable}; use vmm_sys_util::eventfd::EventFd; pub mod api; pub mod config; pub mod cpu; pub mod device_manager; pub mod interrupt; pub mod memory_manager; pub mod migration; pub mod seccomp_filters; pub mod vm; #[cfg(feature = "acpi")] mod acpi; /// Errors associated with VMM management #[derive(Debug)] #[allow(clippy::large_enum_variant)] pub enum Error { /// API request receive error ApiRequestRecv(RecvError), /// API response send error ApiResponseSend(SendError<ApiResponse>), /// Cannot bind to the UNIX domain socket path Bind(io::Error), /// Cannot clone EventFd. EventFdClone(io::Error), /// Cannot create EventFd. EventFdCreate(io::Error), /// Cannot read from EventFd. EventFdRead(io::Error), /// Cannot create epoll context. Epoll(io::Error), /// Cannot create HTTP thread HttpThreadSpawn(io::Error), /// Cannot handle the VM STDIN stream Stdin(VmError), /// Cannot reboot the VM VmReboot(VmError), /// Cannot shut a VM down VmShutdown(VmError), /// Cannot create VMM thread VmmThreadSpawn(io::Error), /// Cannot shut the VMM down VmmShutdown(VmError), // Error following "exe" link ExePathReadLink(io::Error), /// Cannot create seccomp filter CreateSeccompFilter(seccomp::SeccompError), /// Cannot apply seccomp filter ApplySeccompFilter(seccomp::Error), } pub type Result<T> = result::Result<T, Error>; #[derive(Debug, Clone, Copy, PartialEq)] pub enum EpollDispatch { Exit, Reset, Stdin, Api, } pub struct EpollContext { raw_fd: RawFd, dispatch_table: Vec<Option<EpollDispatch>>, } impl EpollContext { pub fn new() -> result::Result<EpollContext, io::Error> { let raw_fd = epoll::create(true)?; // Initial capacity needs to be large enough to hold: // * 1 exit event // * 1 reset event // * 1 stdin event // * 1 API event let mut dispatch_table = Vec::with_capacity(5); dispatch_table.push(None); Ok(EpollContext { raw_fd, dispatch_table, }) } pub fn add_stdin(&mut self) -> result::Result<(), io::Error> { let dispatch_index = self.dispatch_table.len() as u64; epoll::ctl( self.raw_fd, epoll::ControlOptions::EPOLL_CTL_ADD, libc::STDIN_FILENO, epoll::Event::new(epoll::Events::EPOLLIN, dispatch_index), )?; self.dispatch_table.push(Some(EpollDispatch::Stdin)); Ok(()) } fn add_event<T>(&mut self, fd: &T, token: EpollDispatch) -> result::Result<(), io::Error> where T: AsRawFd, { let dispatch_index = self.dispatch_table.len() as u64; epoll::ctl( self.raw_fd, epoll::ControlOptions::EPOLL_CTL_ADD, fd.as_raw_fd(), epoll::Event::new(epoll::Events::EPOLLIN, dispatch_index), )?; self.dispatch_table.push(Some(token)); Ok(()) } } impl AsRawFd for EpollContext { fn as_raw_fd(&self) -> RawFd { self.raw_fd } } pub fn start_vmm_thread( vmm_version: String, http_path: &str, api_event: EventFd, api_sender: Sender<ApiRequest>, api_receiver: Receiver<ApiRequest>, seccomp_level: &SeccompLevel, ) -> Result<thread::JoinHandle<Result<()>>> { let http_api_event = api_event.try_clone().map_err(Error::EventFdClone)?; // Retrieve seccomp filter let vmm_seccomp_filter = get_seccomp_filter(seccomp_level, Thread::Vmm).map_err(Error::CreateSeccompFilter)?; // Find the path that the "/proc/<pid>/exe" symlink points to. Must be done before spawning // a thread as Rust does not put the child threads in the same thread group which prevents the // link from being followed as per PTRACE_MODE_READ_FSCREDS (see proc(5) and ptrace(2)). The // alternative is to run always with CAP_SYS_PTRACE but that is not a good idea. let self_path = format!("/proc/{}/exe", std::process::id()); let vmm_path = std::fs::read_link(PathBuf::from(self_path)).map_err(Error::ExePathReadLink)?; let thread = thread::Builder::new() .name("vmm".to_string()) .spawn(move || { // Apply seccomp filter for VMM thread. SeccompFilter::apply(vmm_seccomp_filter).map_err(Error::ApplySeccompFilter)?; let mut vmm = Vmm::new(vmm_version.to_string(), api_event, vmm_path)?; vmm.control_loop(Arc::new(api_receiver)) }) .map_err(Error::VmmThreadSpawn)?; // The VMM thread is started, we can start serving HTTP requests api::start_http_thread(http_path, http_api_event, api_sender, seccomp_level)?; Ok(thread) } pub struct Vmm { epoll: EpollContext, exit_evt: EventFd, reset_evt: EventFd, api_evt: EventFd, version: String, vm: Option<Vm>, vm_config: Option<Arc<Mutex<VmConfig>>>, vmm_path: PathBuf, } impl Vmm { fn new(vmm_version: String, api_evt: EventFd, vmm_path: PathBuf) -> Result<Self> { let mut epoll = EpollContext::new().map_err(Error::Epoll)?; let exit_evt = EventFd::new(EFD_NONBLOCK).map_err(Error::EventFdCreate)?; let reset_evt = EventFd::new(EFD_NONBLOCK).map_err(Error::EventFdCreate)?; if unsafe { libc::isatty(libc::STDIN_FILENO as i32) } != 0 { epoll.add_stdin().map_err(Error::Epoll)?; } epoll .add_event(&exit_evt, EpollDispatch::Exit) .map_err(Error::Epoll)?; epoll .add_event(&reset_evt, EpollDispatch::Reset) .map_err(Error::Epoll)?; epoll .add_event(&api_evt, EpollDispatch::Api) .map_err(Error::Epoll)?; Ok(Vmm { epoll, exit_evt, reset_evt, api_evt, version: vmm_version, vm: None, vm_config: None, vmm_path, }) } fn vm_boot(&mut self) -> result::Result<(), VmError> { // Create a new VM is we don't have one yet. if self.vm.is_none() { let exit_evt = self.exit_evt.try_clone().map_err(VmError::EventFdClone)?; let reset_evt = self.reset_evt.try_clone().map_err(VmError::EventFdClone)?; if let Some(ref vm_config) = self.vm_config { let vm = Vm::new( Arc::clone(vm_config), exit_evt, reset_evt, self.vmm_path.clone(), )?; self.vm = Some(vm); } } // Now we can boot the VM. if let Some(ref mut vm) = self.vm { vm.boot() } else { Err(VmError::VmNotCreated) } } fn vm_pause(&mut self) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { vm.pause().map_err(VmError::Pause) } else { Err(VmError::VmNotRunning) } } fn vm_resume(&mut self) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { vm.resume().map_err(VmError::Resume) } else { Err(VmError::VmNotRunning) } } fn vm_snapshot(&mut self, destination_url: &str) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { vm.snapshot() .map_err(VmError::Snapshot) .and_then(|snapshot| { vm.send(&snapshot, destination_url) .map_err(VmError::SnapshotSend) }) } else { Err(VmError::VmNotRunning) } } fn vm_restore(&mut self, source_url: &str) -> result::Result<(), VmError> { if self.vm.is_some() || self.vm_config.is_some() { return Err(VmError::VmAlreadyCreated); } let vm_snapshot = recv_vm_snapshot(source_url).map_err(VmError::Restore)?; let vm_config = vm_config_from_snapshot(&vm_snapshot).map_err(VmError::Restore)?; self.vm_config = Some(Arc::clone(&vm_config)); let exit_evt = self.exit_evt.try_clone().map_err(VmError::EventFdClone)?; let reset_evt = self.reset_evt.try_clone().map_err(VmError::EventFdClone)?; let vm = Vm::new_from_snapshot( &vm_snapshot, exit_evt, reset_evt, self.vmm_path.clone(), source_url, )?; self.vm = Some(vm); // Now we can restore the rest of the VM. if let Some(ref mut vm) = self.vm { vm.restore(vm_snapshot).map_err(VmError::Restore) } else { Err(VmError::VmNotCreated) } } fn vm_shutdown(&mut self) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm.take() { vm.shutdown() } else { Err(VmError::VmNotRunning) } } fn vm_reboot(&mut self) -> result::Result<(), VmError> { // Without ACPI, a reset is equivalent to a shutdown #[cfg(not(feature = "acpi"))] { if self.vm.is_some() { return self.vm_shutdown(); } } // First we stop the current VM and create a new one. if let Some(ref mut vm) = self.vm { let config = vm.get_config(); self.vm_shutdown()?; let exit_evt = self.exit_evt.try_clone().map_err(VmError::EventFdClone)?; let reset_evt = self.reset_evt.try_clone().map_err(VmError::EventFdClone)?; // The Linux kernel fires off an i8042 reset after doing the ACPI reset so there may be // an event sitting in the shared reset_evt. Without doing this we get very early reboots // during the boot process. if self.reset_evt.read().is_ok() { warn!("Spurious second reset event received. Ignoring."); } self.vm = Some(Vm::new(config, exit_evt, reset_evt, self.vmm_path.clone())?); } // Then we start the new VM. if let Some(ref mut vm) = self.vm { vm.boot()?; } else { return Err(VmError::VmNotCreated); } Ok(()) } fn vm_info(&self) -> result::Result<VmInfo, VmError> { match &self.vm_config { Some(config) => { let state = match &self.vm { Some(vm) => vm.get_state()?, None => VmState::Created, }; Ok(VmInfo { config: Arc::clone(config), state, }) } None => Err(VmError::VmNotCreated), } } fn vmm_ping(&self) -> result::Result<VmmPingResponse, ApiError> { Ok(VmmPingResponse { version: self.version.clone(), }) } fn vm_delete(&mut self) -> result::Result<(), VmError> { if self.vm_config.is_none() { return Ok(()); } // First we try to shut the current VM down. self.vm_shutdown()?; self.vm_config = None; Ok(()) } fn vmm_shutdown(&mut self) -> result::Result<(), VmError> { self.vm_delete() } fn vm_resize( &mut self, desired_vcpus: Option<u8>, desired_ram: Option<u64>, ) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { if let Err(e) = vm.resize(desired_vcpus, desired_ram) { error!("Error when resizing VM: {:?}", e); Err(e) } else { Ok(()) } } else { Err(VmError::VmNotRunning) } } fn vm_add_device(&mut self, device_cfg: DeviceConfig) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { if let Err(e) = vm.add_device(device_cfg) { error!("Error when adding new device to the VM: {:?}", e); Err(e) } else { Ok(()) } } else { Err(VmError::VmNotRunning) } } fn vm_remove_device(&mut self, id: String) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { if let Err(e) = vm.remove_device(id) { error!("Error when removing new device to the VM: {:?}", e); Err(e) } else { Ok(()) } } else { Err(VmError::VmNotRunning) } } fn vm_add_disk(&mut self, disk_cfg: DiskConfig) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { if let Err(e) = vm.add_disk(disk_cfg) { error!("Error when adding new disk to the VM: {:?}", e); Err(e) } else { Ok(()) } } else { Err(VmError::VmNotRunning) } } fn vm_add_pmem(&mut self, pmem_cfg: PmemConfig) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { if let Err(e) = vm.add_pmem(pmem_cfg) { error!("Error when adding new pmem device to the VM: {:?}", e); Err(e) } else { Ok(()) }
fn vm_add_net(&mut self, net_cfg: NetConfig) -> result::Result<(), VmError> { if let Some(ref mut vm) = self.vm { if let Err(e) = vm.add_net(net_cfg) { error!("Error when adding new network device to the VM: {:?}", e); Err(e) } else { Ok(()) } } else { Err(VmError::VmNotRunning) } } fn control_loop(&mut self, api_receiver: Arc<Receiver<ApiRequest>>) -> Result<()> { const EPOLL_EVENTS_LEN: usize = 100; let mut events = vec![epoll::Event::new(epoll::Events::empty(), 0); EPOLL_EVENTS_LEN]; let epoll_fd = self.epoll.as_raw_fd(); 'outer: loop { let num_events = match epoll::wait(epoll_fd, -1, &mut events[..]) { Ok(res) => res, Err(e) => { if e.kind() == io::ErrorKind::Interrupted { // It's well defined from the epoll_wait() syscall // documentation that the epoll loop can be interrupted // before any of the requested events occurred or the // timeout expired. In both those cases, epoll_wait() // returns an error of type EINTR, but this should not // be considered as a regular error. Instead it is more // appropriate to retry, by calling into epoll_wait(). continue; } return Err(Error::Epoll(e)); } }; for event in events.iter().take(num_events) { let dispatch_idx = event.data as usize; if let Some(dispatch_type) = self.epoll.dispatch_table[dispatch_idx] { match dispatch_type { EpollDispatch::Exit => { // Consume the event. self.exit_evt.read().map_err(Error::EventFdRead)?; self.vmm_shutdown().map_err(Error::VmmShutdown)?; break 'outer; } EpollDispatch::Reset => { // Consume the event. self.reset_evt.read().map_err(Error::EventFdRead)?; self.vm_reboot().map_err(Error::VmReboot)?; } EpollDispatch::Stdin => { if let Some(ref vm) = self.vm { vm.handle_stdin().map_err(Error::Stdin)?; } } EpollDispatch::Api => { // Consume the event. self.api_evt.read().map_err(Error::EventFdRead)?; // Read from the API receiver channel let api_request = api_receiver.recv().map_err(Error::ApiRequestRecv)?; match api_request { ApiRequest::VmCreate(config, sender) => { // We only store the passed VM config. // The VM will be created when being asked to boot it. let response = if self.vm_config.is_none() { self.vm_config = Some(config); Ok(ApiResponsePayload::Empty) } else { Err(ApiError::VmAlreadyCreated) }; sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmDelete(sender) => { let response = self .vm_delete() .map_err(ApiError::VmDelete) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmBoot(sender) => { // If we don't have a config, we can not boot a VM. if self.vm_config.is_none() { sender .send(Err(ApiError::VmMissingConfig)) .map_err(Error::ApiResponseSend)?; continue; } let response = self .vm_boot() .map_err(ApiError::VmBoot) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmShutdown(sender) => { let response = self .vm_shutdown() .map_err(ApiError::VmShutdown) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmReboot(sender) => { let response = self .vm_reboot() .map_err(ApiError::VmReboot) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmInfo(sender) => { let response = self .vm_info() .map_err(ApiError::VmInfo) .map(ApiResponsePayload::VmInfo); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmmPing(sender) => { let response = self.vmm_ping().map(ApiResponsePayload::VmmPing); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmPause(sender) => { let response = self .vm_pause() .map_err(ApiError::VmPause) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmResume(sender) => { let response = self .vm_resume() .map_err(ApiError::VmResume) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmSnapshot(snapshot_data, sender) => { let response = self .vm_snapshot(&snapshot_data.destination_url) .map_err(ApiError::VmSnapshot) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmRestore(snapshot_data, sender) => { let response = self .vm_restore(&snapshot_data.source_url) .map_err(ApiError::VmRestore) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmmShutdown(sender) => { let response = self .vmm_shutdown() .map_err(ApiError::VmmShutdown) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; break 'outer; } ApiRequest::VmResize(resize_data, sender) => { let response = self .vm_resize( resize_data.desired_vcpus, resize_data.desired_ram, ) .map_err(ApiError::VmResize) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmAddDevice(add_device_data, sender) => { let response = self .vm_add_device(add_device_data.as_ref().clone()) .map_err(ApiError::VmAddDevice) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmRemoveDevice(remove_device_data, sender) => { let response = self .vm_remove_device(remove_device_data.id.clone()) .map_err(ApiError::VmRemoveDevice) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmAddDisk(add_disk_data, sender) => { let response = self .vm_add_disk(add_disk_data.as_ref().clone()) .map_err(ApiError::VmAddDisk) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmAddPmem(add_pmem_data, sender) => { let response = self .vm_add_pmem(add_pmem_data.as_ref().clone()) .map_err(ApiError::VmAddPmem) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } ApiRequest::VmAddNet(add_net_data, sender) => { let response = self .vm_add_net(add_net_data.as_ref().clone()) .map_err(ApiError::VmAddNet) .map(|_| ApiResponsePayload::Empty); sender.send(response).map_err(Error::ApiResponseSend)?; } } } } } } } Ok(()) } } const CPU_MANAGER_SNAPSHOT_ID: &str = "cpu-manager"; const MEMORY_MANAGER_SNAPSHOT_ID: &str = "memory-manager"; const DEVICE_MANAGER_SNAPSHOT_ID: &str = "device-manager";
} else { Err(VmError::VmNotRunning) } }
outlined-paper-plane-icon.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = exports.OutlinedPaperPlaneIconConfig = void 0; var _createIcon = _interopRequireDefault(require("../createIcon")); function
(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } /* This file is generated by createIcons.js any changes will be lost. */ var OutlinedPaperPlaneIconConfig = { name: 'OutlinedPaperPlaneIcon', height: 512, width: 512, svgPath: 'M440 6.5L24 246.4c-34.4 19.9-31.1 70.8 5.7 85.9L144 379.6V464c0 46.4 59.2 65.5 86.6 28.6l43.8-59.1 111.9 46.2c5.9 2.4 12.1 3.6 18.3 3.6 8.2 0 16.3-2.1 23.6-6.2 12.8-7.2 21.6-20 23.9-34.5l59.4-387.2c6.1-40.1-36.9-68.8-71.5-48.9zM192 464v-64.6l36.6 15.1L192 464zm212.6-28.7l-153.8-63.5L391 169.5c10.7-15.5-9.5-33.5-23.7-21.2L155.8 332.6 48 288 464 48l-59.4 387.3z', yOffset: '', xOffset: '', transform: '' }; exports.OutlinedPaperPlaneIconConfig = OutlinedPaperPlaneIconConfig; var _default = (0, _createIcon["default"])(OutlinedPaperPlaneIconConfig); exports["default"] = _default; //# sourceMappingURL=outlined-paper-plane-icon.js.map
_interopRequireDefault
mod.rs
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. use crate::ops::JsonResult;
use deno_core::ErrBox; use futures::Future; mod compiler_worker; mod js; mod ts; mod wasm; pub use js::JsCompiler; pub use ts::runtime_compile; pub use ts::runtime_transpile; pub use ts::TargetLib; pub use ts::TsCompiler; pub use wasm::WasmCompiler; pub type CompilationResultFuture = dyn Future<Output = JsonResult>; #[derive(Debug, Clone)] pub struct CompiledModule { pub code: String, pub name: String, } pub type CompiledModuleFuture = dyn Future<Output = Result<CompiledModule, ErrBox>>;
hyperflex_cluster_network_policy_list.py
# coding: utf-8 """ Intersight REST API This is Intersight REST API OpenAPI spec version: 1.0.9-262 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re class HyperflexClusterNetworkPolicyList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. """ swagger_types = { 'count': 'int', 'results': 'list[HyperflexClusterNetworkPolicy]' } attribute_map = { 'count': 'Count', 'results': 'Results' } def __init__(self, count=None, results=None): """ HyperflexClusterNetworkPolicyList - a model defined in Swagger """ self._count = None self._results = None if count is not None: self.count = count if results is not None: self.results = results @property def count(self): """ Gets the count of this HyperflexClusterNetworkPolicyList. The number of hyperflexClusterNetworkPolicies matching your request in total for all pages. :return: The count of this HyperflexClusterNetworkPolicyList. :rtype: int """ return self._count @count.setter def count(self, count): """ Sets the count of this HyperflexClusterNetworkPolicyList. The number of hyperflexClusterNetworkPolicies matching your request in total for all pages. :param count: The count of this HyperflexClusterNetworkPolicyList. :type: int """ self._count = count @property def results(self): """ Gets the results of this HyperflexClusterNetworkPolicyList. The array of hyperflexClusterNetworkPolicies matching your request. :return: The results of this HyperflexClusterNetworkPolicyList. :rtype: list[HyperflexClusterNetworkPolicy] """ return self._results @results.setter def results(self, results): """ Sets the results of this HyperflexClusterNetworkPolicyList. The array of hyperflexClusterNetworkPolicies matching your request. :param results: The results of this HyperflexClusterNetworkPolicyList. :type: list[HyperflexClusterNetworkPolicy] """ self._results = results def to_dict(self): """ Returns the model properties as a dict """ result = {} for attr, _ in iteritems(self.swagger_types): value = getattr(self, attr) if isinstance(value, list): result[attr] = list(map( lambda x: x.to_dict() if hasattr(x, "to_dict") else x, value )) elif hasattr(value, "to_dict"): result[attr] = value.to_dict() elif isinstance(value, dict): result[attr] = dict(map( lambda item: (item[0], item[1].to_dict()) if hasattr(item[1], "to_dict") else item, value.items() )) else: result[attr] = value return result def to_str(self): """ Returns the string representation of the model """ return pformat(self.to_dict()) def __repr__(self): """ For `print` and `pprint` """ return self.to_str() def
(self, other): """ Returns true if both objects are equal """ if not isinstance(other, HyperflexClusterNetworkPolicyList): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """ Returns true if both objects are not equal """ return not self == other
__eq__
tt.py
import sys from taggedtree.repl import dispatch_subcommand from os.path import expanduser def main():
if __name__ == "__main__": main()
fname = expanduser("~/.tt.json") cmds = tuple(sys.argv[1:]) dispatch_subcommand(fname, cmds)
hciconfig.py
from fcntl import ioctl import socket class HCIConfig(object): ''' This class allows to easily configure an HCI Interface. ''' @staticmethod def down(index): ''' This class method stops an HCI interface. Its role is equivalent to the following command : ``hciconfig hci<index> down`` :param index: index of the HCI interface to stop :type index: integer :Example: >>> HCIConfig.down(0) ''' try: sock = socket.socket(31, socket.SOCK_RAW, 1) ioctl(sock.fileno(), 0x400448ca, index) sock.close() except IOError: return False return True @staticmethod def reset(index):
@staticmethod def up(index): ''' This class method starts an HCI interface. Its role is equivalent to the following command : ``hciconfig hci<index> up`` :param index: index of the HCI interface to start :type index: integer :Example: >>> HCIConfig.up(0) ''' try: sock = socket.socket(31, socket.SOCK_RAW, index) ioctl(sock.fileno(), 0x400448c9, 0) sock.close() except IOError: return False return True
''' This class method resets an HCI interface. Its role is equivalent to the following command : ``hciconfig hci<index> reset`` :param index: index of the HCI interface to reset :type index: integer :Example: >>> HCIConfig.reset(0) ''' try: sock = socket.socket(31, socket.SOCK_RAW, index) ioctl(sock.fileno(), 0x400448cb, 0) sock.close() except IOError: return False return True
stackerfile.go
package types import ( "bytes" "fmt" "io/ioutil" "net/http" "os" "path/filepath" "regexp" "strings" "github.com/anuvu/stacker/log" "github.com/pkg/errors" "gopkg.in/yaml.v2" ) type BuildConfig struct { Prerequisites []string `yaml:"prerequisites"` } type Stackerfile struct { // AfterSubstitutions is the contents of the stacker file after // substitutions (i.e., the content that is actually used by stacker). AfterSubstitutions string // internal is the actual representation of the stackerfile as a map. internal map[string]*Layer // FileOrder is the order of elements as they appear in the stackerfile. FileOrder []string // configuration specific for this specific build buildConfig *BuildConfig // path to stackerfile path string // directory relative to which the stackerfile content is referenced ReferenceDirectory string } func (sf *Stackerfile) Get(name string) (*Layer, bool) { // This is dumb, but if we do a direct return here, golang doesn't // resolve the "ok", and compilation fails. layer, ok := sf.internal[name] return layer, ok } func (sf *Stackerfile) Len() int { return len(sf.internal) } func substitute(content string, substitutions []string) (string, error) { for _, subst := range substitutions { membs := strings.SplitN(subst, "=", 2) if len(membs) != 2 { return "", errors.Errorf("invalid substition %s", subst) } from := fmt.Sprintf("$%s", membs[0]) to := membs[1] log.Debugf("substituting %s to %s", from, to) content = strings.Replace(content, from, to, -1) re, err := regexp.Compile(fmt.Sprintf(`\$\{\{%s(:[^\}]*)?\}\}`, membs[0])) if err != nil { return "", err } content = re.ReplaceAllString(content, to) } // now, anything that's left we can just use its value re := regexp.MustCompile(`\$\{\{[^\}]*\}\}`) for { indexes := re.FindAllStringIndex(content, -1) if len(indexes) == 0 { break } idx := indexes[0] // get content without ${{}} variable := content[idx[0]+3 : idx[1]-2] membs := strings.SplitN(variable, ":", 2) if len(membs) != 2 { return "", errors.Errorf("no value for substitution %s", variable) } buf := bytes.NewBufferString(content[:idx[0]]) _, err := buf.WriteString(membs[1]) if err != nil { return "", err } _, err = buf.WriteString(content[idx[1]:]) if err != nil { return "", err } content = buf.String() } return content, nil } // NewStackerfile creates a new stackerfile from the given path. substitutions // is a list of KEY=VALUE pairs of things to substitute. Note that this is // explicitly not a map, because the substitutions are performed one at a time // in the order that they are given. func NewStackerfile(stackerfile string, substitutions []string) (*Stackerfile, error) { var err error sf := Stackerfile{} sf.path = stackerfile // Use working directory as default folder relative to which files // in the stacker yaml will be searched for sf.ReferenceDirectory, err = os.Getwd() if err != nil { return nil, err } url, err := NewDockerishUrl(stackerfile) if err != nil { return nil, err } var raw []byte if url.Scheme == "" { raw, err = ioutil.ReadFile(stackerfile) if err != nil { return nil, err } // Make sure we use the absolute path to the Stackerfile sf.path, err = filepath.Abs(stackerfile) if err != nil { return nil, err } // This file is on the disk, use its parent directory sf.ReferenceDirectory = filepath.Dir(sf.path) } else { resp, err := http.Get(stackerfile) if err != nil { return nil, err } defer resp.Body.Close() if resp.StatusCode != 200 { return nil, errors.Errorf("stackerfile: couldn't download %s: %s", stackerfile, resp.Status) } raw, err = ioutil.ReadAll(resp.Body) if err != nil { return nil, err } // There's no need to update the reference directory of the stackerfile // Continue to use the working directory } content, err := substitute(string(raw), substitutions) if err != nil { return nil, err } sf.AfterSubstitutions = content // Parse the first time to validate the format/content ms := yaml.MapSlice{} if err := yaml.Unmarshal([]byte(content), &ms); err != nil { return nil, errors.Wrapf(err, "couldn't parse stacker file %s", stackerfile) } // Determine the layers in the stacker.yaml, their order and the list of prerequisite files sf.FileOrder = []string{} // Order of layers sf.buildConfig = &BuildConfig{ // Stacker build configuration Prerequisites: []string{}, } lms := yaml.MapSlice{} // Actual list of layers excluding the config directive for _, e := range ms { keyName, ok := e.Key.(string) if !ok { return nil, errors.Errorf("stackerfile: cannot cast %v to string", e.Key) } if "config" == keyName { stackerConfigContent, err := yaml.Marshal(e.Value) if err != nil { return nil, err } if err = yaml.Unmarshal(stackerConfigContent, &sf.buildConfig); err != nil { msg := fmt.Sprintf("stackerfile: cannot interpret 'config' value, "+ "note the 'config' section in the stackerfile cannot contain a layer definition %v", e.Value) return nil, errors.New(msg) } } else { sf.FileOrder = append(sf.FileOrder, e.Key.(string)) lms = append(lms, e) } } // Now, let's make sure that all the things people supplied in the layers are // actually things this stacker understands. for _, e := range lms { for _, directive := range e.Value.(yaml.MapSlice) { found := false for _, field := range layerFields { if directive.Key.(string) == field { found = true break } } if !found { return nil, errors.Errorf("stackerfile: unknown directive %s", directive.Key.(string)) } if directive.Key.(string) == "from" { for _, sourceDirective := range directive.Value.(yaml.MapSlice) { found = false for _, field := range imageSourceFields { if sourceDirective.Key.(string) == field { found = true break } } if !found { return nil, errors.Errorf("stackerfile: unknown image source directive %s", sourceDirective.Key.(string)) } } } } } // Marshall only the layers so we can unmarshal them in the right data structure later layersContent, err := yaml.Marshal(lms) if err != nil { return nil, err } // Unmarshal to save the data in the right structure to enable further processing if err := yaml.Unmarshal(layersContent, &sf.internal); err != nil { return nil, err } for name, layer := range sf.internal { // Validate field values switch layer.From.Type { case BuiltLayer: if len(layer.From.Tag) == 0 { return nil, errors.Errorf("%s: from tag cannot be empty for image type 'built'", name) } } // Set the directory with the location where the layer was defined layer.referenceDirectory = sf.ReferenceDirectory } return &sf, err } // DependencyOrder provides the list of layer names from a stackerfile // the current order to be built, note this method does not reorder the layers, // but it does validate they are specified in an order which makes sense func (s *Stackerfile) DependencyOrder() ([]string, error) { ret := []string{} processed := map[string]bool{} // Determine if the stackerfile has other stackerfiles as dependencies hasPrerequisites := len(s.buildConfig.Prerequisites) > 0 for i := 0; i < s.Len(); i++ { for _, name := range s.FileOrder { _, ok := processed[name] if ok { continue } layer := s.internal[name] if layer.From == nil { return nil, errors.Errorf("invalid layer: no base (from directive)") } // Determine if the layer uses a previously processed layer as base _, baseTagProcessed := processed[layer.From.Tag] imports, err := layer.ParseImport() if err != nil { return nil, err } // Determine if the layer has stacker:// imports from another // layer which has not been processed allStackerImportsProcessed := true for _, imp := range imports { url, err := NewDockerishUrl(imp) if err != nil { return nil, err } if url.Scheme != "stacker" { continue } _, ok := processed[url.Host] if !ok { allStackerImportsProcessed = false break } } if allStackerImportsProcessed && (layer.From.Type != BuiltLayer || baseTagProcessed) { // None of the imports using stacker:// are referencing unprocessed layers, // and in case the base layer is type build we have already processed it ret = append(ret, name) processed[name] = true } else if hasPrerequisites { // Just assume the imports are based on images defined in one of the stacker // files in the prerequisite paths ret = append(ret, name) processed[name] = true } } } if len(ret) != s.Len()
return ret, nil } // Prerequisites provides the absolute paths to the Stackerfiles which are dependencies // for building this Stackerfile func (sf *Stackerfile) Prerequisites() ([]string, error) { // Cleanup paths in the prerequisites var prerequisitePaths []string for _, prerequisitePath := range sf.buildConfig.Prerequisites { parsedPath, err := NewDockerishUrl(prerequisitePath) if err != nil { return nil, err } if parsedPath.Scheme != "" || filepath.IsAbs(prerequisitePath) { // Path is already absolute or is an URL, return it prerequisitePaths = append(prerequisitePaths, prerequisitePath) } else { // If path is relative we need to add it to the path to this stackerfile absPath, err := filepath.Abs(filepath.Join(sf.ReferenceDirectory, prerequisitePath)) if err != nil { return nil, err } prerequisitePaths = append(prerequisitePaths, absPath) } } return prerequisitePaths, nil }
{ return nil, errors.Errorf("couldn't resolve some dependencies") }
misc.rs
use crate::core::{LexPattern, LexTable}; use lazy_static; use regex_engine::core::*; use regex_engine::ext::*; use regex_engine::reg; use std::collections::HashSet; use std::iter::FromIterator; use std::sync::Arc; lazy_static! { static ref DIGIT_REG: Arc<CharSetExpr> = { let digit_set: HashSet<char> = HashSet::from_iter( ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] .iter() .cloned(), ); reg!(CharSetExpr, digit_set) }; } pub fn gen_digit_reg() -> Arc<CharSetExpr> { DIGIT_REG.clone() } lazy_static! { static ref LETTER_SET: Arc<CharSetExpr> = { let mut letter_set = HashSet::new(); for i in ('a' as i32)..=('z' as i32) { letter_set.insert(i as u8 as char); } for i in ('A' as i32)..=('Z' as i32) { letter_set.insert(i as u8 as char); } letter_set.insert('_'); reg!(CharSetExpr, letter_set) }; } pub fn gen_letter_reg() -> Arc<CharSetExpr> { LETTER_SET.clone() } lazy_static! { static ref HEX_DIGIT_REG: Arc<AltExpr> = { let mut letter_set = HashSet::new(); for i in ('a' as i32)..=('f' as i32) { letter_set.insert(i as u8 as char); } for i in ('A' as i32)..=('F' as i32) { letter_set.insert(i as u8 as char); } reg!(AltExpr, reg!(CharSetExpr, letter_set), DIGIT_REG.clone()) }; } pub fn gen_hex_digit_reg() -> Arc<AltExpr> { HEX_DIGIT_REG.clone() } pub fn gen_exp_reg(digit_reg: Arc<RegexExpr>) -> Arc<SeqExpr> { reg!( SeqExpr, vec![ reg!(AltExpr, reg!(MatchExpr, 'E'), reg!(MatchExpr, 'e')), reg!( OptionalExpr, reg!(AltExpr, reg!(MatchExpr, '+'), reg!(MatchExpr, '-')) ), reg!(PlusExpr, digit_reg) ] ) } lazy_static! { static ref FS_EXPR: Arc<CharSetExpr> = { let fs_set: HashSet<char> = HashSet::from_iter(['f', 'F', 'l', 'L'].iter().cloned()); reg!(CharSetExpr, fs_set) }; } pub fn gen_fs_expr() -> Arc<CharSetExpr> { FS_EXPR.clone() } lazy_static! { static ref IS_EXPR: Arc<RepeatExpr> = { let is_sub_set: HashSet<char> = HashSet::from_iter(['u', 'U', 'l', 'L'].iter().cloned()); reg!(RepeatExpr, reg!(CharSetExpr, is_sub_set)) }; } pub fn gen_is_expr() -> Arc<RepeatExpr> { IS_EXPR.clone() } pub fn gen_hex_const_expr(hex_digit_expr: Arc<RegexExpr>, is_expr: Arc<RegexExpr>) -> Arc<SeqExpr> { reg!( SeqExpr, vec![ reg!(MatchExpr, '0'), reg!(AltExpr, reg!(MatchExpr, 'x'), reg!(MatchExpr, 'X')), reg!(PlusExpr, hex_digit_expr), reg!(OptionalExpr, is_expr) ] ) } pub fn gen_oct_const_expr(digit_expr: Arc<RegexExpr>, is_expr: Arc<RegexExpr>) -> Arc<SeqExpr>
lazy_static! { static ref SPACE_PATTERN_EXPR: Arc<CharSetExpr> = { reg!( CharSetExpr, HashSet::from_iter(['\t', '\n', '\r', ' '].iter().cloned()) ) }; } pub struct SpacePattern { expr: Arc<CharSetExpr>, min_len: usize, max_len: usize, } impl SpacePattern { pub fn new() -> SpacePattern { SpacePattern { min_len: 1, max_len: 1, expr: SPACE_PATTERN_EXPR.clone(), } } } impl LexPattern for SpacePattern { fn get_boundary(&self) -> (usize, usize) { (self.min_len, self.max_len) } fn hook(&self, table: &LexTable, target: &str) -> usize { table.get(target).0 } fn register(&self, table: &mut LexTable) { for kw in &self.expr.set { table.try_insert(&kw.to_string(), "SPACE"); } } fn is_match(&self, target: &str) -> bool { reg_match(self.expr.clone(), target) } }
{ reg!( SeqExpr, vec![ reg!(MatchExpr, '0'), reg!(PlusExpr, digit_expr), reg!(OptionalExpr, is_expr) ] ) }
helper_test.go
package tests_test import ( "sort" "strconv" "strings" "testing" "time" . "gorm.io/gorm/utils/tests" ) type Config struct { Account bool Pets int Toys int Company bool Manager bool Team int Languages int Friends int } func GetUser(name string, config Config) *User { var ( birthday = time.Now().Round(time.Second) user = User{ Name: name, Age: 18, Birthday: &birthday, } ) if config.Account { user.Account = Account{Number: name + "_account"} } for i := 0; i < config.Pets; i++ { user.Pets = append(user.Pets, &Pet{Name: name + "_pet_" + strconv.Itoa(i+1)}) } for i := 0; i < config.Toys; i++ { user.Toys = append(user.Toys, Toy{Name: name + "_toy_" + strconv.Itoa(i+1)}) } if config.Company { user.Company = Company{Name: "company-" + name} } if config.Manager { user.Manager = GetUser(name+"_manager", Config{}) } for i := 0; i < config.Team; i++ { user.Team = append(user.Team, *GetUser(name+"_team_"+strconv.Itoa(i+1), Config{})) } for i := 0; i < config.Languages; i++ { name := name + "_locale_" + strconv.Itoa(i+1) language := Language{Code: name, Name: name} user.Languages = append(user.Languages, language) } for i := 0; i < config.Friends; i++ { user.Friends = append(user.Friends, GetUser(name+"_friend_"+strconv.Itoa(i+1), Config{})) } return &user } func CheckPet(t *testing.T, pet Pet, expect Pet) { if pet.ID != 0 { var newPet Pet if err := DB.Where("id = ?", pet.ID).First(&newPet).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else { AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") } } AssertObjEqual(t, pet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name") AssertObjEqual(t, pet.Toy, expect.Toy, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "OwnerID", "OwnerType") if expect.Toy.Name != "" && expect.Toy.OwnerType != "pets" { t.Errorf("toys's OwnerType, expect: %v, got %v", "pets", expect.Toy.OwnerType) } } func CheckUser(t *testing.T, user User, expect User) { if user.ID != 0 { var newUser User if err := DB.Where("id = ?", user.ID).First(&newUser).Error; err != nil { t.Fatalf("errors happened when query: %v", err) } else { AssertObjEqual(t, newUser, user, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age", "Birthday", "CompanyID", "ManagerID", "Active") } } AssertObjEqual(t, user, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age", "Birthday", "CompanyID", "ManagerID", "Active") t.Run("Account", func(t *testing.T) { AssertObjEqual(t, user.Account, expect.Account, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Number") if user.Account.Number != "" { if !user.Account.UserID.Valid { t.Errorf("Account's foreign key should be saved") } else { var account Account DB.First(&account, "user_id = ?", user.ID) AssertObjEqual(t, account, user.Account, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Number") } } }) t.Run("Pets", func(t *testing.T) { if len(user.Pets) != len(expect.Pets) { t.Fatalf("pets should equal, expect: %v, got %v", len(expect.Pets), len(user.Pets)) } sort.Slice(user.Pets, func(i, j int) bool { return user.Pets[i].ID > user.Pets[j].ID }) sort.Slice(expect.Pets, func(i, j int) bool { return expect.Pets[i].ID > expect.Pets[j].ID }) for idx, pet := range user.Pets { if pet == nil || expect.Pets[idx] == nil { t.Errorf("pets#%v should equal, expect: %v, got %v", idx, expect.Pets[idx], pet) } else { CheckPet(t, *pet, *expect.Pets[idx])
t.Run("Toys", func(t *testing.T) { if len(user.Toys) != len(expect.Toys) { t.Fatalf("toys should equal, expect: %v, got %v", len(expect.Toys), len(user.Toys)) } sort.Slice(user.Toys, func(i, j int) bool { return user.Toys[i].ID > user.Toys[j].ID }) sort.Slice(expect.Toys, func(i, j int) bool { return expect.Toys[i].ID > expect.Toys[j].ID }) for idx, toy := range user.Toys { if toy.OwnerType != "users" { t.Errorf("toys's OwnerType, expect: %v, got %v", "users", toy.OwnerType) } AssertObjEqual(t, toy, expect.Toys[idx], "ID", "CreatedAt", "UpdatedAt", "Name", "OwnerID", "OwnerType") } }) t.Run("Company", func(t *testing.T) { AssertObjEqual(t, user.Company, expect.Company, "ID", "Name") }) t.Run("Manager", func(t *testing.T) { if user.Manager != nil { if user.ManagerID == nil { t.Errorf("Manager's foreign key should be saved") } else { var manager User DB.First(&manager, "id = ?", *user.ManagerID) AssertObjEqual(t, manager, user.Manager, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age", "Birthday", "CompanyID", "ManagerID", "Active") } } else if user.ManagerID != nil { t.Errorf("Manager should not be created for zero value, got: %+v", user.ManagerID) } }) t.Run("Team", func(t *testing.T) { if len(user.Team) != len(expect.Team) { t.Fatalf("Team should equal, expect: %v, got %v", len(expect.Team), len(user.Team)) } sort.Slice(user.Team, func(i, j int) bool { return user.Team[i].ID > user.Team[j].ID }) sort.Slice(expect.Team, func(i, j int) bool { return expect.Team[i].ID > expect.Team[j].ID }) for idx, team := range user.Team { AssertObjEqual(t, team, expect.Team[idx], "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age", "Birthday", "CompanyID", "ManagerID", "Active") } }) t.Run("Languages", func(t *testing.T) { if len(user.Languages) != len(expect.Languages) { t.Fatalf("Languages should equal, expect: %v, got %v", len(expect.Languages), len(user.Languages)) } sort.Slice(user.Languages, func(i, j int) bool { return strings.Compare(user.Languages[i].Code, user.Languages[j].Code) > 0 }) sort.Slice(expect.Languages, func(i, j int) bool { return strings.Compare(expect.Languages[i].Code, expect.Languages[j].Code) > 0 }) for idx, language := range user.Languages { AssertObjEqual(t, language, expect.Languages[idx], "Code", "Name") } }) t.Run("Friends", func(t *testing.T) { if len(user.Friends) != len(expect.Friends) { t.Fatalf("Friends should equal, expect: %v, got %v", len(expect.Friends), len(user.Friends)) } sort.Slice(user.Friends, func(i, j int) bool { return user.Friends[i].ID > user.Friends[j].ID }) sort.Slice(expect.Friends, func(i, j int) bool { return expect.Friends[i].ID > expect.Friends[j].ID }) for idx, friend := range user.Friends { AssertObjEqual(t, friend, expect.Friends[idx], "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "Name", "Age", "Birthday", "CompanyID", "ManagerID", "Active") } }) }
} } })
anyCalculatorFramework.js
/*! * Copyright (C) 2020 浦 公統 * Released under the MIT license. * see https://opensource.org/licenses/MIT/ */ /** * @file anyCalculatorFramework.js * @brief なんでも計算フレームワーク * @remark formatDecimal.js が必要 * @version 1.2.0 */ /** * 項目クラス (入出力項目クラスの親クラス) */ class itemBase { /** * コンストラクタ * @param title 項目タイトル * @param id 項目ID * @param unit 項目の単位 (省略時は空文字列) * @param initValue 初期値 (省略時は null) */ constructor( title, id, unit = '', initValue = null ) { this.title = title; this.id = id; this.unit = unit; this.initValue = initValue; this.element = null; } /** * 数値用の INPUT 要素を設定し、初期値を表示 * @param element 数値用の INPUT 要素 */ set valueElement( element ) { this.element = element; element.value = ( this.initValue === null ) ? '' : this.initValue; } /** * 数値用の INPUT 要素に数値を表示 * @param value 表示する数値 */ set value( value ) { this.element.value = value; } /** * 表示されている数値を取得 */ get value() { return this.element.value; } } /** * 入力項目クラス */ class itemInput extends itemBase { /** * コンストラクタ * @param title 項目タイトル * @param id 項目ID * @param unit 項目の単位 (省略時は空文字列) * @param initValue 初期値 (省略時は null) * @param isOptional 省略可否フラグ (省略時は false) * true : 空欄や、数値以外の入力時は、エラーとせず、入力値に NaN を入れて計算コールバック関数に渡す * false : 空欄や、数値以外の入力時はエラーとして、入力エラーコールバック関数を呼び出す */ constructor( title, id, unit = '', initValue = null, isOptional = false ) { super( title, id, unit, initValue ); this.isOptional = isOptional; } /** * 数値用の INPUT 要素を設定し、初期値を表示 * @param area 数値用の INPUT 要素 */ set valueElement( element ) { super.valueElement = element; this.element.readOnly = false; } } /** * 出力項目クラス */ class itemOutput extends itemBase { /** * コンストラクタ * @param title 項目タイトル * @param id 項目ID * @param unit 項目の単位 (省略時は空文字列) * @param underPoint 小数点以下桁数 (数値ではなく、文字列を出力する場合は -1) (省略時は3) */ constructor( title, id, unit = '', underPoint = 3 ) { super( title, id, unit, '' ); this.underPoint = underPoint; } /** * 数値用の INPUT 要素を設定し、初期値を表示 * @param area 数値用の input 要素 */ set valueElement( element ) { super.valueElement = element; this.element.readOnly = true; } } let _anyCalculator_objs = {}; ///< 計算機クラスのインスタンスの配列 /** * 計算機クラス */ class anyCalcul
* * 初期画面を表示する * @param id 計算機アプリのID * @param inputs 入力項目クラスの配列 * @param outputs 出力項目クラスの配列 * @param calcCaption 計算ボタンのキャプション * @param calcFunction 計算コールバック関数 * @param onError 入力エラーコールバック関数 (省略時: null) * @param textSize 数値用テキストのサイズ (省略時: 4) */ constructor( id, inputs, outputs, calcCaption, calcFunction, onError = null, textSize = 4 ) { this.id = id; this.inputs = inputs; this.outputs = outputs; this.calcCaption = calcCaption; this.calcFunction = calcFunction; this.onError = onError; this.textSize = textSize; var calcHTML = ''; // 計算機用のHTML // 計算機用のHTML作成 this.inputs.forEach( ( item ) => { var inputID = id + '_i_' + item.id; // 入力項目ID var unit = ( item.unit === null ) ? '' : item.unit; // 単位文字列 calcHTML += '<tr>' + '<th>' + item.title + '</th>' + '<td><input type="text" id="' + inputID + '" size="' + textSize + '"> ' + unit + '</td>' + '</tr>'; } ); calcHTML += '<tr>' + '<td colspan="2" style="text-align: center; border: none;">' + '<input type="button" onclick="anyCalculator.calc( ' + "'" + id + "'" + ' );" value="' + calcCaption + '">' + '</td>' + '</tr>'; this.outputs.forEach( ( item ) => { var inputID = id + '_o_' + item.id; // 出力項目ID var unit = ( item.unit === null ) ? '' : item.unit; // 単位文字列 calcHTML += '<tr>' + '<th>' + item.title + '</th>' + '<td><input type="text" id="' + inputID + '" size="' + textSize + '"> ' + unit + '</td>' + '</tr>'; } ); // HTML表示 document.getElementById( id ).innerHTML = calcHTML; // 入出力用 input 要素設定 this.inputs.forEach( ( item ) => { item.valueElement = document.getElementById( id + '_i_' + item.id ); } ); this.outputs.forEach( ( item ) => { item.valueElement = document.getElementById( id + '_o_' + item.id ); } ); // インスタンス登録 anyCalculator._objs[ id ] = this; } /** * インスタンス配列を取得する */ static get _objs() { return ( _anyCalculator_objs ); } /** * 初期画面を表示する * @param id 計算機アプリのID */ static calc( id ) { var target = anyCalculator._objs[ id ]; var inputs = {}; var outputs = {}; var itemError = null; // 入力値を取得 target.inputs.forEach( ( item ) => { inputs[ item.id ] = ( item.value.length > 0 ) ? Number( item.value ) : NaN; // エラーチェック if ( isNaN( inputs[ item.id ] ) && !item.isOptional && itemError === null ) { itemError = item; } } ); // 出力用配列を作成 target.outputs.forEach( ( item ) => { outputs[ item.id ] = Number.NaN; } ); // 計算コールバック関数呼び出し if ( itemError === null ) { target.calcFunction( inputs, outputs ); } else { // 入力エラーあり if ( target.onError !== null ) { return ( target.onError( itemError ) ); } } // 出力 target.outputs.forEach( ( item ) => { if ( item.underPoint < 0 ) { // 小数点以下桁数が負 ⇒ 出力は文字列 item.value = outputs[ item.id ]; } else { // 小数点以下桁数が 0 以上 ⇒ 出力は数値 if ( isNaN( outputs[ item.id ] ) ) { item.value = Number.NaN; } else { item.value = formatDecimal( outputs[ item.id ], item.underPoint ); // see formatDecimal.js } } } ); } }
ator { /*
mod.rs
#[doc = r" Value read from the register"] pub struct R { bits: u16, } #[doc = r" Value to write to the register"] pub struct W { bits: u16, } impl super::PACKET_RAM_1_103 { #[doc = r" Modifies the contents of the register"] #[inline] pub fn modify<F>(&self, f: F) where for<'w> F: FnOnce(&R, &'w mut W) -> &'w mut W, { let bits = self.register.get(); let r = R { bits: bits }; let mut w = W { bits: bits }; f(&r, &mut w); self.register.set(w.bits); } #[doc = r" Reads the contents of the register"] #[inline] pub fn read(&self) -> R { R { bits: self.register.get(), } } #[doc = r" Writes to the register"] #[inline] pub fn write<F>(&self, f: F) where F: FnOnce(&mut W) -> &mut W, { let mut w = W::reset_value(); f(&mut w); self.register.set(w.bits); } #[doc = r" Writes the reset value to the register"] #[inline] pub fn reset(&self) { self.write(|w| w) } } #[doc = r" Value of the field"] pub struct LSBYTER { bits: u8, } impl LSBYTER { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bits(&self) -> u8 { self.bits } } #[doc = r" Value of the field"] pub struct MSBYTER { bits: u8, } impl MSBYTER { #[doc = r" Value of the field as raw bits"] #[inline] pub fn bits(&self) -> u8 { self.bits } } #[doc = r" Proxy"] pub struct _LSBYTEW<'a> { w: &'a mut W, } impl<'a> _LSBYTEW<'a> { #[doc = r" Writes raw bits to the field"] #[inline] pub unsafe fn bits(self, value: u8) -> &'a mut W { const MASK: u8 = 255; const OFFSET: u8 = 0; self.w.bits &= !((MASK as u16) << OFFSET); self.w.bits |= ((value & MASK) as u16) << OFFSET; self.w } } #[doc = r" Proxy"] pub struct _MSBYTEW<'a> { w: &'a mut W, } impl<'a> _MSBYTEW<'a> { #[doc = r" Writes raw bits to the field"] #[inline] pub unsafe fn bits(self, value: u8) -> &'a mut W { const MASK: u8 = 255; const OFFSET: u8 = 8; self.w.bits &= !((MASK as u16) << OFFSET); self.w.bits |= ((value & MASK) as u16) << OFFSET; self.w } } impl R { #[doc = r" Value of the register as raw bits"] #[inline] pub fn bits(&self) -> u16 { self.bits } #[doc = "Bits 0:7 - LSBYTE"] #[inline] pub fn lsbyte(&self) -> LSBYTER { let bits = { const MASK: u8 = 255; const OFFSET: u8 = 0; ((self.bits >> OFFSET) & MASK as u16) as u8 }; LSBYTER { bits } } #[doc = "Bits 8:15 - MSBYTE"] #[inline] pub fn msbyte(&self) -> MSBYTER { let bits = { const MASK: u8 = 255; const OFFSET: u8 = 8; ((self.bits >> OFFSET) & MASK as u16) as u8 }; MSBYTER { bits } } } impl W { #[doc = r" Reset value of the register"] #[inline] pub fn reset_value() -> W { W { bits: 0 } } #[doc = r" Writes raw bits to the register"] #[inline] pub unsafe fn bits(&mut self, bits: u16) -> &mut Self
#[doc = "Bits 0:7 - LSBYTE"] #[inline] pub fn lsbyte(&mut self) -> _LSBYTEW { _LSBYTEW { w: self } } #[doc = "Bits 8:15 - MSBYTE"] #[inline] pub fn msbyte(&mut self) -> _MSBYTEW { _MSBYTEW { w: self } } }
{ self.bits = bits; self }
002.map_reduce.py
# python map/reduce function print '************** map/reduce function Test Programs **************' print 'test map' def
(x): return x * x; l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9] print 'l1:',l1 print 'map l1 with power function:',map(power,l1) print map(str, [1, 2, 3, 4, 5, 6, 7, 8, 9]) print 'test reduce' def add(x,y): return x + y l2 = range(1,11) print 'l2:',l2 print 'l2 total:',reduce(add,l2) def fn(x,y): return x * 10 + y l3 = [1,9,8,7] print 'l3:',l3 print '13 to int:',reduce(fn,l3) l4 = ['ADA','biLL'] print 'l4:',l4 def toName(name): #first = name[0:1].upper() #last = name[1:].lower() #return first + last return name.capitalize() print 'to name by map func:',map(toName,l4) l5 = [1,2,3,4] print 'l5:',l5 def prod(list): return reduce(lambda x,y : x * y,list) print 'l5 elements proect:',prod(l5) raw_input()
power
-cleopatravii.js
const Discord = require('discord.js') const moment = require('moment') /* comandantes lendários, de Alexandre o Grande até Seondeok */ /* comandantes épicos, de Baibars até Sun Tzu */ /* comandantes elite, de Constânça até Sárka */ /* comandantes avançados, de Centurião até Atiradora */ const comandanteList = [ { nome: 'Alexandre o Grande' }, { nome: 'Cao Cao' }, { nome: 'Carlos Martel' }, { nome: 'Cleopatra VII' }, { nome: 'Constantine I' },
{ nome: 'Genghis Khan' }, { nome: 'Hannibal Barca' }, { nome: 'Julio Cesar' }, { nome: 'Mehmed II' }, { nome: 'Minamoto no Yohitsune' }, { nome: 'Richard I' }, { nome: 'Saladin' }, { nome: 'Yi Seong Gye' }, { nome: 'AEthelflaed' }, { nome: 'Carlos Magno' }, { nome: 'Edward de Woodstock' }, { nome: 'Tomyris' }, { nome: 'Seondeok' }, { nome: 'Baibars' }, { nome: 'Belisarius' }, { nome: 'Boudica' }, { nome: 'Eulji Mundeok' }, { nome: 'Hermann' }, { nome: 'Joana DArc' }, { nome: 'Kusunoki Masashige' }, { nome: 'Lohar' }, { nome: 'Osman I' }, { nome: 'Pelagius' }, { nome: 'Cipião africano' }, { nome: 'Sun Tzu' }, { nome: 'Constânça' }, { nome: 'Gaius Marius' }, { nome: 'Lancelote' }, { nome: 'Tomoe Gozen' }, { nome: 'Sárka' }, { nome: 'Centurião' }, { nome: 'Guardião da cidade' }, { nome: 'Lanceiro dragão' }, { nome: 'Atiradora' }, ] module.exports = { run: function (client, message, args) { const displayInformacoes = { displayAvatar : "Todos displayAvatarURL", autor : "Pedro", Informacoes : { displayAvatarURL : "https://bit.ly/3cD3fHO", displayImgTalento : "https://i.imgur.com/xO5PgRH.png", nome : 'Cleopatra VII', tipo : 'Lendário', especialidade : 'Integração, Coleta, Suporte.', poder : '800' }, } const inline = true const embed = new Discord.RichEmbed() .setColor('#0099ff') .setThumbnail(displayInformacoes.Informacoes.displayAvatarURL) .setAuthor('🤖 Minhas informações') .addField('**Meu nome**', displayInformacoes.Informacoes.nome) .addField('**Raridade**', displayInformacoes.Informacoes.tipo) .addField('**Poder**', `🛡 ${displayInformacoes.Informacoes.poder}`, true) .addField('**Especialidade**', `🗡📚⚔️ ${displayInformacoes.Informacoes.especialidade}`, true) .setImage(displayInformacoes.Informacoes.displayImgTalento, true) message.channel.send(embed) }, conf: {}, get help () { return { name: 'cleopatra', description: 'Mostra todos os atributos do comandante Cleopatra VII.', usage: 'cleopatra', category: 'Info-Comandante' } } } /** * Formata a data passada para o padrão do Brasil. * @param {string} template * @param {Date=} [date] * @return {string} */ function formatDate (template, date) { var specs = 'YYYY:MM:DD:HH:mm:ss'.split(':') date = new Date(date || Date.now() - new Date().getTimezoneOffset() * 6e4) return date.toISOString().split(/[-:.TZ]/).reduce(function (template, item, i) { return template.split(specs[i]).join(item) }, template) }
{ nome: 'El Cid' }, { nome: 'Frederico I' },
rcvfromelf.py
#! /usr/bin/env python3 import click import serial from enum import Enum, auto from intelhex import IntelHex,IntelHexError import constants @click.command() @click.argument( 'file', required=True, type=click.Path(dir_okay=False, writable=True) ) @click.option( '--append', '-a', help='append data to hex file', is_flag=True ) @click.option( '--port', '-p', required=True, help='serial port where ELF is connected' ) @click.option( '--baud', '-b', help='serial baud rate', type=int, default=9600 ) def main(file, append, port, baud): """ Receive a code file from an attached ELF with MAX binary sender. The program reads a MAX-format binary file from the specified serial port and stores in the given file. """ class
(Enum): DATA = auto() ESCAPE = auto() ADDR_HI = auto() ADDR_LO = auto() DONE = auto() state = State.DATA address = 0 intel_hex = IntelHex() if append: intel_hex.loadhex(file) with serial.serial_for_url(port) as ser: ser.baudrate = baud ser.write(constants.START_RECV) while state != State.DONE: data = ser.read(ser.in_waiting) for byte in data: if state == State.DATA: if byte == constants.ESCAPE: state = State.ESCAPE elif byte == constants.END_OF_FILE: state = State.DONE elif byte == constants.NEW_ADDRESS: state = State.ADDR_HI else: intel_hex[address] = byte address += 1 elif state == State.ESCAPE: intel_hex[address] = byte ^ 0x20 address += 1 state = State.DATA elif state == State.ADDR_HI: address = byte << 8 state = State.ADDR_LO elif state == State.ADDR_LO: address |= byte state = State.DATA intel_hex.write_hex_file(file) if __name__ == "__main__": main() # pylint: disable=no-value-for-parameter
State
get_metrics.go
// Code generated by go-swagger; DO NOT EDIT. // Copyright 2017-2020 Authors of Cilium // SPDX-License-Identifier: Apache-2.0 package metrics // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the generate command import ( "net/http" "github.com/go-openapi/runtime/middleware" ) // GetMetricsHandlerFunc turns a function with the right signature into a get metrics handler type GetMetricsHandlerFunc func(GetMetricsParams) middleware.Responder // Handle executing the request and returning a response func (fn GetMetricsHandlerFunc) Handle(params GetMetricsParams) middleware.Responder { return fn(params) } // GetMetricsHandler interface for that can handle valid get metrics params type GetMetricsHandler interface { Handle(GetMetricsParams) middleware.Responder } // NewGetMetrics creates a new http.Handler for the get metrics operation func NewGetMetrics(ctx *middleware.Context, handler GetMetricsHandler) *GetMetrics
/*GetMetrics swagger:route GET /metrics/ metrics getMetrics Retrieve cilium operator metrics */ type GetMetrics struct { Context *middleware.Context Handler GetMetricsHandler } func (o *GetMetrics) ServeHTTP(rw http.ResponseWriter, r *http.Request) { route, rCtx, _ := o.Context.RouteInfo(r) if rCtx != nil { r = rCtx } var Params = NewGetMetricsParams() if err := o.Context.BindValidRequest(r, route, &Params); err != nil { // bind params o.Context.Respond(rw, r, route.Produces, route, err) return } res := o.Handler.Handle(Params) // actually handle the request o.Context.Respond(rw, r, route.Produces, route, res) }
{ return &GetMetrics{Context: ctx, Handler: handler} }
job.py
from django.contrib import admin class JobPostAdmin(admin.ModelAdmin):
list_display = ( 'id', 'user', 'title', 'slug', 'employment_option', 'wage_salary', 'start_date', 'bookmarked', 'bookmarked', 'is_active', 'keywords', 'created_at', 'updated_at', ) search_fields = [ 'id', 'user__username', 'employment_option', 'start_date', 'is_active', 'keywords', ] list_per_page = 25
21.py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def mergeTwoLists(self, l1, l2):
""" :type l1: ListNode :type l2: ListNode :rtype: ListNode """ dummy = ListNode(0) cur = dummy while l1 and l2: if l1.val <= l2.val: cur.next = l1 l1 = l1.next elif l2.val < l1.val: cur.next = l2 l2 = l2.next cur = cur.next cur.next = l1 if l1 is not None else l2 return dummy.next
mongostats.py
from pymongo import MongoClient from pymongo import ReadPreference from datetime import datetime, timedelta class Mongo(MongoClient): def
(self, username, password, host, db='tags', collection='tweets_pipeline_v2'): uri = f"mongodb://{username}:{password}@{host}/{db}" super(Mongo, self).__init__(host=uri, authSource=db, authMechanism='SCRAM-SHA-256', port=27017, replicaset="rs0", read_preference=ReadPreference.SECONDARY, ) self.database = self.get_default_database() self.collection = collection def pipelined(self, count=True): query = {"status": "pipelined"} if count: return self.database[self.collection].count_documents(query) return self.database[self.collection].find(query) def feed(self, count=True): query = {"status": "graphicone_feed"} if count: return self.database[self.collection].count_documents(query) return self.database[self.collection].find(query) def search(self, count=True): query = {"status": "graphicone_search"} if count: return self.database[self.collection].count_documents(query) return self.database[self.collection].find(query) def left_for_analysts(self, count=True): query = {"in_app": {"$exists": False}, "status": "graphicone_feed"} if count: return self.database[self.collection].count_documents(query) return self.database[self.collection].find(query) def removed_validators(self, count=True): query = {"validator_username": {"$exists": True}, "status": "deleted"} if count: return self.database[self.collection].count_documents(query) return self.database[self.collection].find(query) def removed_analysts(self, count=True): query = {"status": "deleted_from_analytics"} if count: return self.database[self.collection].count_documents(query) return self.database[self.collection].find(query) # if __name__ == "__main__": # _username = "login" # _password = "passwd" # mongodb_host = "host address" # # mongo_client = Mongo(_username, _password, mongodb_host) # print(mongo_client.pipelined()) # print(mongo_client.search()) # print(mongo_client.feed()) # print(mongo_client.left_for_analysts()) # print(mongo_client.removed_validators()) # print(mongo_client.removed_analysts())
__init__
test_switch.py
"""Tests for the Freedompro switch.""" from datetime import timedelta from unittest.mock import ANY, patch from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN, SERVICE_TURN_ON from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_OFF, STATE_OFF, STATE_ON from homeassistant.helpers import entity_registry as er from homeassistant.helpers.entity_component import async_update_entity from homeassistant.util.dt import utcnow from tests.common import async_fire_time_changed from tests.components.freedompro.conftest import get_states_response_for_uid uid = "3WRRJR6RCZQZSND8VP0YTO3YXCSOFPKBMW8T51TU-LQ*1JKU1MVWHQL-Z9SCUS85VFXMRGNDCDNDDUVVDKBU31W" async def test_switch_get_state(hass, init_integration): """Test states of the switch.""" init_integration registry = er.async_get(hass) entity_id = "switch.irrigation_switch" state = hass.states.get(entity_id) assert state assert state.state == STATE_OFF assert state.attributes.get("friendly_name") == "Irrigation switch" entry = registry.async_get(entity_id) assert entry assert entry.unique_id == uid states_response = get_states_response_for_uid(uid) states_response[0]["state"]["on"] = True with patch( "homeassistant.components.freedompro.get_states", return_value=states_response, ): async_fire_time_changed(hass, utcnow() + timedelta(hours=2)) await hass.async_block_till_done() state = hass.states.get(entity_id) assert state assert state.attributes.get("friendly_name") == "Irrigation switch" entry = registry.async_get(entity_id) assert entry assert entry.unique_id == uid assert state.state == STATE_ON async def test_switch_set_off(hass, init_integration): """Test set off of the switch.""" init_integration registry = er.async_get(hass) entity_id = "switch.irrigation_switch" states_response = get_states_response_for_uid(uid) states_response[0]["state"]["on"] = True with patch( "homeassistant.components.freedompro.get_states", return_value=states_response, ): await async_update_entity(hass, entity_id) async_fire_time_changed(hass, utcnow() + timedelta(hours=2)) await hass.async_block_till_done() state = hass.states.get(entity_id) assert state assert state.state == STATE_ON assert state.attributes.get("friendly_name") == "Irrigation switch" entry = registry.async_get(entity_id) assert entry assert entry.unique_id == uid with patch( "homeassistant.components.freedompro.switch.put_state" ) as mock_put_state: assert await hass.services.async_call( SWITCH_DOMAIN, SERVICE_TURN_OFF, {ATTR_ENTITY_ID: [entity_id]}, blocking=True, ) mock_put_state.assert_called_once_with(ANY, ANY, ANY, '{"on": false}') states_response = get_states_response_for_uid(uid) states_response[0]["state"]["on"] = False with patch( "homeassistant.components.freedompro.get_states", return_value=states_response, ): async_fire_time_changed(hass, utcnow() + timedelta(hours=2)) await hass.async_block_till_done() state = hass.states.get(entity_id) assert state.state == STATE_OFF async def
(hass, init_integration): """Test set on of the switch.""" init_integration registry = er.async_get(hass) entity_id = "switch.irrigation_switch" state = hass.states.get(entity_id) assert state assert state.state == STATE_OFF assert state.attributes.get("friendly_name") == "Irrigation switch" entry = registry.async_get(entity_id) assert entry assert entry.unique_id == uid with patch( "homeassistant.components.freedompro.switch.put_state" ) as mock_put_state: assert await hass.services.async_call( SWITCH_DOMAIN, SERVICE_TURN_ON, {ATTR_ENTITY_ID: [entity_id]}, blocking=True, ) mock_put_state.assert_called_once_with(ANY, ANY, ANY, '{"on": true}') states_response = get_states_response_for_uid(uid) states_response[0]["state"]["on"] = True with patch( "homeassistant.components.freedompro.get_states", return_value=states_response, ): async_fire_time_changed(hass, utcnow() + timedelta(hours=2)) await hass.async_block_till_done() state = hass.states.get(entity_id) assert state.state == STATE_ON
test_switch_set_on
2d.fillStyle.parse.css-color-4-hsl-7.worker.js
// DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py. // OffscreenCanvas test in a worker:2d.fillStyle.parse.css-color-4-hsl-7 // Description: // Note:<p class="notes"> importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test(""); var t_pass = t.done.bind(t); var t_fail = t.step_func(function(reason) { throw reason; }); t.step(function() { var offscreenCanvas = new OffscreenCanvas(100, 50); var ctx = offscreenCanvas.getContext('2d'); ctx.fillStyle = '#f00'; ctx.fillStyle = 'hsl(133.33333333grad, 100.0%, 50.0%)'; ctx.fillRect(0, 0, 100, 50); _assertPixel(offscreenCanvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255"); t.done();
}); done();
get_purge_status_responses.go
// Code generated by go-swagger; DO NOT EDIT. package cdn // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "fmt" "io" "github.com/go-openapi/runtime" strfmt "github.com/go-openapi/strfmt" models "github.com/renderinc/stackpath-cdn-go/models" ) // GetPurgeStatusReader is a Reader for the GetPurgeStatus structure. type GetPurgeStatusReader struct { formats strfmt.Registry } // ReadResponse reads a server response into the received o. func (o *GetPurgeStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { case 200: result := NewGetPurgeStatusOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil case 401: result := NewGetPurgeStatusUnauthorized() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result case 500: result := NewGetPurgeStatusInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return nil, result default: result := NewGetPurgeStatusDefault(response.Code()) if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } if response.Code()/100 == 2 { return result, nil } return nil, result } } // NewGetPurgeStatusOK creates a GetPurgeStatusOK with default headers values func NewGetPurgeStatusOK() *GetPurgeStatusOK { return &GetPurgeStatusOK{} } /*GetPurgeStatusOK handles this case with default header values. GetPurgeStatusOK get purge status o k */ type GetPurgeStatusOK struct { Payload *models.CdnGetPurgeStatusResponse } func (o *GetPurgeStatusOK) Error() string { return fmt.Sprintf("[GET /cdn/v1/stacks/{stack_id}/purge/{purge_id}][%d] getPurgeStatusOK %+v", 200, o.Payload) } func (o *GetPurgeStatusOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.CdnGetPurgeStatusResponse) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetPurgeStatusUnauthorized creates a GetPurgeStatusUnauthorized with default headers values func NewGetPurgeStatusUnauthorized() *GetPurgeStatusUnauthorized { return &GetPurgeStatusUnauthorized{} } /*GetPurgeStatusUnauthorized handles this case with default header values. Returned when an unauthorized request is attempted. */ type GetPurgeStatusUnauthorized struct { Payload *models.APIStatus } func (o *GetPurgeStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /cdn/v1/stacks/{stack_id}/purge/{purge_id}][%d] getPurgeStatusUnauthorized %+v", 401, o.Payload) } func (o *GetPurgeStatusUnauthorized) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.APIStatus) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetPurgeStatusInternalServerError creates a GetPurgeStatusInternalServerError with default headers values func NewGetPurgeStatusInternalServerError() *GetPurgeStatusInternalServerError { return &GetPurgeStatusInternalServerError{} } /*GetPurgeStatusInternalServerError handles this case with default header values. Internal server error. */ type GetPurgeStatusInternalServerError struct { Payload *models.APIStatus } func (o *GetPurgeStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /cdn/v1/stacks/{stack_id}/purge/{purge_id}][%d] getPurgeStatusInternalServerError %+v", 500, o.Payload) } func (o *GetPurgeStatusInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.APIStatus) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil } // NewGetPurgeStatusDefault creates a GetPurgeStatusDefault with default headers values func
(code int) *GetPurgeStatusDefault { return &GetPurgeStatusDefault{ _statusCode: code, } } /*GetPurgeStatusDefault handles this case with default header values. Default error structure. */ type GetPurgeStatusDefault struct { _statusCode int Payload *models.APIStatus } // Code gets the status code for the get purge status default response func (o *GetPurgeStatusDefault) Code() int { return o._statusCode } func (o *GetPurgeStatusDefault) Error() string { return fmt.Sprintf("[GET /cdn/v1/stacks/{stack_id}/purge/{purge_id}][%d] GetPurgeStatus default %+v", o._statusCode, o.Payload) } func (o *GetPurgeStatusDefault) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { o.Payload = new(models.APIStatus) // response payload if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF { return err } return nil }
NewGetPurgeStatusDefault
recursion.rs
extern crate builtin; use builtin::*; mod pervasive; use pervasive::*; #[spec] fn arith_sum_int(i: int) -> int { decreases(i); if i <= 0 { 0 } else { i + arith_sum_int(i - 1) } } #[spec] #[opaque] fn arith_sum_u64(i: u64) -> u64 { decreases(i); if i == 0 { 0 } else { i + arith_sum_u64(i - 1) } } #[proof] fn arith_sum_int_nonneg(i: nat) { ensures(arith_sum_int(i) >= 0); decreases(i); if i > 0 { arith_sum_int_nonneg(i - 1); } } #[proof] fn arith_sum_test1() { assert(arith_sum_int(0) == 0); // Recursive functions default to 1 fuel, so without the assert above, // the following assert will fail assert(arith_sum_int(1) == 1); assert(arith_sum_int(2) == 3); assert(arith_sum_int(3) == 6); } #[proof] fn arith_sum_test2() { // Instead of writing out intermediate assertions, // we can instead boost the fuel setting reveal_with_fuel(arith_sum_int, 4); assert(arith_sum_int(3) == 6); } #[proof] fn arith_sum_test3() { reveal_with_fuel(arith_sum_u64, 4); assert(arith_sum_u64(3) == 6); } #[proof] fn arith_sum_monotonic(i: nat, j: nat) { requires(i <= j); ensures(arith_sum_int(i) <= arith_sum_int(j)); decreases(j); if i < j { arith_sum_monotonic(i, j - 1); } } fn compute_arith_sum(n: u64) -> u64 { requires(n < 100); ensures(|ret: u64| arith_sum_int(n) == ret); let mut i: u64 = 0; let mut sum: u64 = 0; while i < n { invariant([ n < 100, i <= n, arith_sum_int(i) == sum, sum <= 100 * i, ]); i = i + 1; sum = sum + i; } sum } fn run_arith_sum(n: u64) -> u64 { let mut result: u64 = 0; if n < 100 { result = compute_arith_sum(n); } result } #[verifier(external)]
let args = std::env::args(); for arg in args { if let Ok(n) = arg.parse::<u64>() { println!("{}", run_arith_sum(n)); } } }
fn main() {
test_cli_exiftool.py
"""Tests for `osxphotos exiftool` command.""" import glob import json import os import pytest from click.testing import CliRunner from osxphotos.cli.exiftool_cli import exiftool from osxphotos.cli.export import export from osxphotos.exiftool import ExifTool, get_exiftool_path from .test_cli import CLI_EXIFTOOL, PHOTOS_DB_15_7 # determine if exiftool installed so exiftool tests can be skipped try: exiftool_path = get_exiftool_path() except FileNotFoundError: exiftool_path = None @pytest.mark.skipif(exiftool_path is None, reason="exiftool not installed") def test_export_exiftool(): """Test osxphotos exiftool""" runner = CliRunner() cwd = os.getcwd() with runner.isolated_filesystem() as temp_dir: uuid_option = [] for uuid in CLI_EXIFTOOL: uuid_option.extend(("--uuid", uuid)) # first, export without --exiftool result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", *uuid_option, ], ) assert result.exit_code == 0 files = glob.glob("*") assert sorted(files) == sorted( [CLI_EXIFTOOL[uuid]["File:FileName"] for uuid in CLI_EXIFTOOL] ) # now, run exiftool command to update exiftool metadata result = runner.invoke( exiftool, ["--db", os.path.join(cwd, PHOTOS_DB_15_7), "-V", "--db-config", temp_dir], ) assert result.exit_code == 0 exif = ExifTool(CLI_EXIFTOOL[uuid]["File:FileName"]).asdict() for key in CLI_EXIFTOOL[uuid]: if type(exif[key]) == list: assert sorted(exif[key]) == sorted(CLI_EXIFTOOL[uuid][key]) else: assert exif[key] == CLI_EXIFTOOL[uuid][key] # now, export with --exiftool --update, no files should be updated result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", "--exiftool", "--update", *uuid_option, ], ) assert result.exit_code == 0 assert f"exported: 0, updated: 0, skipped: {len(CLI_EXIFTOOL)}" in result.output @pytest.mark.skipif(exiftool_path is None, reason="exiftool not installed") def test_export_exiftool_album_keyword(): """Test osxphotos exiftool with --album-template.""" runner = CliRunner() cwd = os.getcwd() with runner.isolated_filesystem() as temp_dir: # first, export without --exiftool result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", "--album", "Pumpkin Farm", ], ) assert result.exit_code == 0 files = glob.glob("*") assert len(files) == 3 # now, run exiftool command to update exiftool metadata result = runner.invoke( exiftool, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), "-V", "--db-config", "--report", "exiftool.json", "--album-keyword", temp_dir, ], ) assert result.exit_code == 0 report = json.load(open("exiftool.json", "r")) assert len(report) == 3 # verify exiftool metadata was updated for file in report: exif = ExifTool(file["filename"]).asdict() assert "Pumpkin Farm" in exif["IPTC:Keywords"] # now, export with --exiftool --update, no files should be updated result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", "--exiftool", "--update", "--album", "Pumpkin Farm", "--album-keyword", ], ) assert result.exit_code == 0 assert f"exported: 0, updated: 0, skipped: 3" in result.output @pytest.mark.skipif(exiftool_path is None, reason="exiftool not installed") def test_export_exiftool_keyword_template(): """Test osxphotos exiftool with --keyword-template.""" runner = CliRunner() cwd = os.getcwd() with runner.isolated_filesystem() as temp_dir: uuid_option = [] for uuid in CLI_EXIFTOOL: uuid_option.extend(("--uuid", uuid)) # first, export without --exiftool result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", *uuid_option, ], ) assert result.exit_code == 0 # now, run exiftool command to update exiftool metadata result = runner.invoke( exiftool, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), "-V", "--db-config", "--keyword-template", "FOO", temp_dir, "--report", "exiftool.json", ], ) assert result.exit_code == 0 report = json.load(open("exiftool.json", "r")) for file in report: exif = ExifTool(file["filename"]).asdict() assert "FOO" in exif["IPTC:Keywords"] # now, export with --exiftool --update, no files should be updated result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", "--exiftool", "--keyword-template", "FOO", "--update", *uuid_option, ], ) assert result.exit_code == 0 assert f"exported: 0, updated: 0, skipped: {len(CLI_EXIFTOOL)}" in result.output @pytest.mark.skipif(exiftool_path is None, reason="exiftool not installed") def test_export_exiftool_load_config():
"""Test osxphotos exiftool with --load-config""" runner = CliRunner() cwd = os.getcwd() with runner.isolated_filesystem() as temp_dir: uuid_option = [] for uuid in CLI_EXIFTOOL: uuid_option.extend(("--uuid", uuid)) # first, export without --exiftool result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", "--save-config", "config.toml", *uuid_option, ], ) assert result.exit_code == 0 # now, run exiftool command to update exiftool metadata result = runner.invoke( exiftool, ["-V", "--load-config", "config.toml", temp_dir], ) assert result.exit_code == 0 exif = ExifTool(CLI_EXIFTOOL[uuid]["File:FileName"]).asdict() for key in CLI_EXIFTOOL[uuid]: if type(exif[key]) == list: assert sorted(exif[key]) == sorted(CLI_EXIFTOOL[uuid][key]) else: assert exif[key] == CLI_EXIFTOOL[uuid][key] # now, export with --exiftool --update, no files should be updated result = runner.invoke( export, [ "--db", os.path.join(cwd, PHOTOS_DB_15_7), temp_dir, "-V", "--exiftool", "--update", *uuid_option, ], ) assert result.exit_code == 0 assert f"exported: 0, updated: 0, skipped: {len(CLI_EXIFTOOL)}" in result.output
users.ts
import { Router } from 'express'; import { getUsers, createUser, updateUser, deleteUser } from '../controllers/users'
const verifyAdmin = (req, res, next) => { console.log(req.user); if (req.user.role === 'admin') { next(); } else { res.status(401).json({ error: "admin not authorized" }); } } usersRouter.get('/api/users', getUsers); // for admin only // usersRouter.get('/api/users', verifyUser, verifyAdmin, getUsers); // for admin only usersRouter.post('/api/users', verifyUser, verifyAdmin, createUser); usersRouter.put('/api/users/:userId', verifyUser, verifyAdmin, updateUser); usersRouter.delete('/api/users/:userId', verifyUser, verifyAdmin, deleteUser); export default usersRouter;
import { verifyUser } from '../middlewares/verify-user' const usersRouter = Router();
platform.go
import "github.com/kytart/goegl/pkg/egl" type EGLState struct { Display egl.Display Config egl.Config Context egl.Context Surface egl.Surface NumConfig int32 VisualId int32 ContextAttributes []int32 ConfigAttributes []int32 SurfaceWidth, SurfaceHeight int }
package platform
PipelineDiagram.py
from diagrams import Cluster, Diagram from graphviz import Digraph from .PipelineNode import PipelineNode import sklearn from sklearn import * import regex as re import warnings #warnings.filterwarnings("ignore") class PipelineDiagram: def __init__(self, pipeline, file_name='ml_pipeline.png'):
def show(self, title=None): self.title = title if title else self.title self.pipe_len = len(list(self.pipe)) return self.create_diagram() def show_params(self, title=None): self.title_param = title if title else self.title_param return self.create_param_diagram() @staticmethod def parent_classes(level=0, base='sklearn'): if level != 0: base = 'sklearn.' + base return list(filter(lambda x: not re.search(r'^_.*', x), dir(eval(base)))) def all_classes(self): l = self.parent_classes() for i in self.parent_classes(): try: eval(i) except: l.remove(i) class_list = {x: [eval('sklearn.' + x + '.' + y) for y in self.parent_classes(1, x)] for x in l} return class_list def get_link(self, path): reg = re.findall(r"'(.*)'", str(path))[0] link = 'https://scikit-learn.org/stable/modules/generated/{0}.html'.format(re.sub("".join(re.findall(r'\.(_.*\.)',reg)),'',reg)) return link def find_category(self, obj): temp = self.all_classes() try: comp = str(type(obj)).split('.')[1] if type(obj) in temp[comp] and comp!='pipeline': return (comp, obj, self.get_link(type(obj))) if comp=='pipeline': return list(map(self.find_category, [x[1] for x in obj.transformer_list])) except: return ('Custom Function', obj, 'Function') def find_category_params(self, obj): try: comp = str(type(obj)).split('.')[1] if comp!='pipeline': return (obj, self.get_param(obj)) if comp=='pipeline': return list(map(self.find_category_params, [x[1] for x in obj.transformer_list])) except: return (obj, 'Custom Function') def get_param(self, obj): try: s = list(obj.get_params().items()) reg = re.sub(r"(,\s)\'","\l'",str(dict(filter(lambda x: '__' not in x[0] , s)))) return re.sub('(\(.*\))', '', str(obj))+'\n\n'+re.sub('{|}', '', reg) except: return str(obj) def all_params(self): return list(map(self.find_category_params, self.pipe)) def all_categories(self): return list(map(self.find_category, self.pipe)) def create_diagram(self): with Diagram(self.title, show=False, filename=self.file_name) as pipe_diag: inputs = [("data","Train Data"), ("data", "Validation Data"), ("data","Test Data")] start = self.create_cluster("Input Data", inputs) >> self.cn.create_node(("Data Stream","Data Stream")) self.traverse_pipeline(start) return pipe_diag def create_param_diagram(self): self.g = Digraph('G', filename='ml_pipeline_params.gv') self.g.graph_attr["rankdir"] = "LR" self.create_cluster_params('Inputs', ['Train Data', 'Validation Data', 'Test Data']) #self.g.edge('input','streamin') #self.g.edge('streamout','Model') self.traverse_pipeline_params() self.g.view() return self def traverse_pipeline(self, curr): self.descriptions = list(self.all_categories()) for i in self.descriptions: if type(i) == list: curr = curr >> self.create_cluster("Transformers", i) else: curr = curr >> self.cn.create_node(i) return curr def traverse_pipeline_params(self): self.params = self.all_params() for i in self.params: if type(i) == list: self.create_cluster_params('Transformers', [x[1] for x in i]) else: self.g.node(str(i[0]), label=i[1], shape='box') self.g.edge(self.input, str(i[0])) self.input = str(i[0]) return self def create_cluster(self, cluster_name, node_names): with Cluster(cluster_name): return list(map(self.cn.create_node, node_names)) def create_cluster_params(self, cluster_name, node_names): with self.g.subgraph(name='cluster_'+cluster_name) as c: inlabel = 'streamin_' + cluster_name outlabel = 'streamout_' + cluster_name c.attr(style='filled', color='green', URL='https://stackoverflow.com') c.node_attr.update(style='filled', color='white') c.node(outlabel, label='Stream', shape='box') if cluster_name != 'Inputs': c.node(inlabel, label='Stream', shape='box') self.g.edge(self.input, inlabel) c.node(outlabel, label='Union', shape='box') for i in range(len(node_names)): c.node(cluster_name+str(i), label=node_names[i], shape='box') if cluster_name!='Inputs': c.edge(inlabel, str(cluster_name+str(i))) c.edge(cluster_name+str(i), outlabel) self.input = outlabel c.attr(label=cluster_name, URL='https://stackoverflow.com')
self.pipe = pipeline self.title = 'Machine Learning Pipeline' self.title_param = 'Machine Learning Parameters Pipeline' self.view = True self.file_name = file_name self.cn = PipelineNode()
event_processing_root_test.go
package abft import ( "strconv" "strings" "testing" "github.com/stretchr/testify/assert" "github.com/Ecosystem-Knowledge/lachesis-base/inter/dag" "github.com/Ecosystem-Knowledge/lachesis-base/inter/dag/tdag" "github.com/Ecosystem-Knowledge/lachesis-base/inter/idx" ) func
(t *testing.T) { testSpecialNamedRoots(t, ` A1.01 B1.01 C1.01 D1.01 // 1 ║ ║ ║ ║ ║ ╠──────╫───── d1.02 ║ ║ ║ ║ ║ b1.02 ─╫──────╣ ║ ║ ║ ║ ║ ╠──────╫───── d1.03 a1.02 ─╣ ║ ║ ║ ║ ║ ║ ║ b1.03 ─╣ ║ ║ ║ ║ ║ ║ ╠──────╫───── d1.04 ║ ║ ║ ║ ║ ╠───── c1.02 ║ ║ ║ ║ ║ ║ b1.04 ─╫──────╣ ║ ║ ║ ║ // 2 ╠──────╫──────╫───── D2.05 ║ ║ ║ ║ A2.03 ─╫──────╫──────╣ ║ ║ ║ ║ a2.04 ─╫──────╣ ║ ║ ║ ║ ║ ║ B2.05 ─╫──────╣ ║ ║ ║ ║ ║ ╠──────╫───── d2.06 a2.05 ─╣ ║ ║ ║ ║ ║ ║ ╠──────╫───── C2.03 ║ ║ ║ ║ ║ ╠──────╫──────╫───── d2.07 ║ ║ ║ ║ ╠───── b2.06 ║ ║ ║ ║ ║ ║ // 3 ║ B3.07 ─╫──────╣ ║ ║ ║ ║ A3.06 ─╣ ║ ║ ║ ╠──────╫───── D3.08 ║ ║ ║ ║ ║ ║ ╠───── d309 ╠───── b3.08 ║ ║ ║ ║ ║ ║ ╠───── b3.09 ║ ║ ║ ║ C3.04 ─╣ a3.07 ─╣ ║ ║ ║ ║ ║ ║ ║ b3.10 ─╫──────╣ ║ ║ ║ ║ a3.08 ─╣ ║ ║ ║ ╠──────╫───── d3.10 ║ ║ ║ ║ ╠───── b3.11 ║ ║ // 4 ║ ║ ╠───── D4.11 ║ ║ ║ ║ ║ B4.12 ─╫──────╣ ║ ║ ║ ║ `) } func TestLachesisRandomRoots(t *testing.T) { // generated by codegen4LachesisRandomRoot() testSpecialNamedRoots(t, ` A1.01 ║ ║ ╠════════ B1.01 ║ ║ ║ ╠════════─╫─═══════ C1.01 ║ ║ ║ ║ ╠════════─╫─═══════─╫─═══════ D1.01 ║ ║ ║ ║ a1.02════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ║ b1.02════─╫─════════╣ ║ ║ ║ ║ ║ ║ c1.02═════╣ ║ ║ ║ ║ a1.03════─╫─════════╣ ║ ║ ║ ║ ║ ╠════════ B2.03 ║ ║ ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════ d1.02 ║ ║ ║ ║ ║ ║ C2.03═════╣ ║ ║ ║ ║ A2.04════─╫─════════╣ ║ ║ ║ ║ ║ ║ b2.04═════╣ ║ ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════ D2.03 ║ ║ ║ ║ ║ ║ c2.04═════╣ ║ ║ ║ ║ ║ ║ ╠════════ d2.04 ║ ║ ║ ║ A3.05════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ╠════════ B3.05 ║ ║ ║ ║ ║ ║ ║ ╠════════ C3.05 ║ ║ ║ ║ ║ ║ ╠════════─╫─═══════ D3.05 ║ ║ ║ ║ a3.06════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ║ b3.06════─╫─════════╣ ║ ║ ║ ║ ║ ║ c3.06═════╣ ║ ║ ║ ║ ║ B4.07═════╣ ║ ║ ║ ║ ║ ║ ║ ╠════════ d3.06 ║ ║ ║ ║ A4.07════─╫─═══════─╫─════════╣ ║ ║ ║ ║ a4.08═════╣ ║ ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════ C4.07 ║ ║ ║ ║ ║ ║ b4.08═════╣ ║ ║ ║ ║ ║ a4.09═════╣ ║ ║ ║3 ║ ║ ║ ║╚═══════─╫─═══════─╫─═══════ D4.07 ║ ║ ║ ║ ║ ║ c4.08═════╣ ║ ║ ║ ║ ║ b4.09═════╣ ║ ║ ║ ║ ║ ║ ╠════════ c4.09 ║ ║ ║ ║ ║ A5.10════─╫─════════╣ ║ ║ ║ ║ ║ ╠════════ B5.10 ║ ║ ║ ║3 ║ ║ ║ ║╚═══════─╫─═══════ d4.08 ║║ ║ ║ ║ ║╚═══════─╫─═══════─╫─═══════ D5.09 ║ ║ ║ ║ ║ ║ C5.10═════╣ ║ ║ ║ ║ ╠════════─╫─═══════─╫─═══════ d5.10 ║ ║ ║ ║ a5.11════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ╠════════ b5.11 ║ ║ ║ ║ ║ ║ ║ ╠════════ c5.11 ║ ║ ║ ║ ║ A6.12════─╫─════════╣ ║ ║ ║ ║ ║ ║ ╠════════─╫─═══════ d5.11 ║ ║ ║ ║ ║ b5.12════─╫─════════╣ ║ ║ ║ ║ ║ ╠════════ C6.12 ║ ║ ║ ║ ║ ╠════════─╫─═══════─╫─═══════ D6.12 ║ ║ ║ ║ a6.13════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ║ B6.13════─╫─════════╣ ║ ║ ║ ║ a6.14═════╣ ║ ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════ c6.13 ║ ║ ║ ║ ║ ╠════════─╫─═══════ C7.14 ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════─╫─═══════ d6.13 ║ ║ ║ ║ ║ b6.14════─╫─════════╣ ║ ║ ║ ║ a6.15═════╣ ║ ║ ║ ║ ║ ║ ║ B7.15═════╣ ║ ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════ d6.14 ║ ║ ║ ║ ║ ║ c7.15═════╣ ║ ║ ║ ║ ╠════════─╫─═══════─╫─═══════ D7.15 ║ ║ ║ ║ A7.16════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ║ b7.16════─╫─════════╣ ║ ║ ║ ║ ║ ║ c7.16═════╣ ║ ║ ║ ║ a7.17════─╫─════════╣ ║ ║ ║ ║ ║ ║ ║ ╠════════ d7.16 ║ ║ ║ ║ ║ b7.17════─╫─════════╣ ║ ║ ║ ║ ║ ║ c7.17═════╣ ║ ║ ║ ║ a7.18════─╫─════════╣ ║ ║ ║ ║ ║ ╠════════─╫─═══════ c7.18 ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════─╫─═══════ d7.17 ║ ║ ║ ║ ║ B8.18════─╫─════════╣ ║ ║ ║ ║ ║ b8.19═════╣ ║ ║ ║║ ║ ║ ║ ║╚═══════─╫─═══════ D8.18 ║ ║ ║ ║ A8.19════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ╠════════─╫─═══════ C8.19 ║ ║ ║ ║ ║ ╠════════─╫─═══════─╫─═══════ d8.19 ║ ║ ║ ║ a8.20════─╫─═══════─╫─════════╣ ║ ║ ║ ║ ║ B9.20════─╫─════════╣ ║ ║ ║ ║ ║ ║ C9.20═════╣ ║ ║ ║ ║ ║ ║ ╠════════ D9.20 `) } /* * Utils: */ // testSpecialNamedRoots is a general test of root selection. // Event name means: // - 1st letter uppercase - event should be root; // - 2nd number - frame where event should be in; // - "." - separator; // - tail - makes name unique; func testSpecialNamedRoots(t *testing.T, scheme string) { //logger.SetTestMode(t) assertar := assert.New(t) // decode is a event name parser decode := func(name string) (frameN idx.Frame, isRoot bool) { n, err := strconv.ParseUint(strings.Split(name, ".")[0][1:2], 10, 64) if err != nil { panic(err.Error() + ". Name event " + name + " properly: <UpperCaseForRoot><FrameN><Engine>") } frameN = idx.Frame(n) isRoot = name == strings.ToUpper(name) return } // get nodes only nodes, _, _ := tdag.ASCIIschemeToDAG(scheme) // init abft lch, _, input := FakeLachesis(nodes, nil) // process events _, _, names := tdag.ASCIIschemeForEach(scheme, tdag.ForEachEvent{ Process: func(e dag.Event, name string) { input.SetEvent(e) assertar.NoError( lch.Process(e)) }, Build: func(e dag.MutableEvent, name string) error { e.SetEpoch(lch.store.GetEpoch()) return lch.Build(e) }, }) // check each for name, event := range names { mustBeFrame, mustBeRoot := decode(name) var selfParentFrame idx.Frame if event.SelfParent() != nil { selfParentFrame = input.GetEvent(*event.SelfParent()).Frame() } // check root if !assertar.Equal(mustBeRoot, event.Frame() != selfParentFrame, name+" is root") { break } // check frame if !assertar.Equal(mustBeFrame, event.Frame(), "frame of "+name) { break } } } /* // codegen4LachesisRandomRoot is for test data generation. func codegen4LachesisRandomRoot() { nodes, events := inter.GenEventsByNode(4, 20, 2, nil) p, _, input := FakeLachesis(nodes) // process events config := inter.Events{} for _, ee := range events { config = append(config, ee...) for _, e := range ee { input.SetEvent(e) p.PushEventSync(e.ID()) } } // set event names for _, e := range config { frame := p.FrameOfEvent(e.ID()) _, isRoot := frame.Roots[e.Creator][e.ID()] oldName := hash.GetEventName(e.ID()) newName := fmt.Sprintf("%s%d.%02d", oldName[0:1], frame.Engine, e.Seq) if isRoot { newName = strings.ToUpper(newName[0:1]) + newName[1:] } hash.SetEventName(e.ID(), newName) } fmt.Println(inter.DAGtoASCIIscheme(config)) } */
TestLachesisClassicRoots
ProjectChooseView.ts
/** * @license * Copyright Color-Coding Studio. All Rights Reserved. * * Use of this source code is governed by an Apache License, Version 2.0 * that can be found in the LICENSE file at http://www.apache.org/licenses/LICENSE-2.0 */ namespace finance { export namespace ui { export namespace m { /** 选择视图-项目 */ export class ProjectChooseView extends ibas.BOChooseView implements app.IProjectChooseView { /** 返回查询的对象 */ get queryTarget(): any { return bo.Project; } /** 绘制视图 */ draw(): any { let that: this = this; this.list = new sap.m.List("", { inset: false, growing: true, growingThreshold: ibas.config.get(openui5.utils.CONFIG_ITEM_LIST_TABLE_VISIBLE_ROW_COUNT, 15), growingScrollToLoad: true, visibleRowCountMode: sap.ui.table.VisibleRowCountMode.Auto, mode: openui5.utils.toListMode(this.chooseType), items: { path: "/rows", template: new sap.m.ObjectListItem("", { type: sap.m.ListType.Active, title: { path: "" }, attributes: [ ], }), } }); // 添加列表自动查询事件 openui5.utils.triggerNextResults({ listener: this.list, next(data: any): void { if (ibas.objects.isNull(that.lastCriteria)) { return; } let criteria: ibas.ICriteria = that.lastCriteria.next(data); if (ibas.objects.isNull(criteria)) { return;
} }); this.page = new sap.m.Page("", { showHeader: false, showSubHeader: false, floatingFooter: true, content: [ this.list ], footer: new sap.m.Toolbar("", { content: [ new sap.m.Button("", { width: "50%", text: ibas.i18n.prop("shell_data_choose"), type: sap.m.ButtonType.Transparent, press: function (): void { that.fireViewEvents(that.chooseDataEvent, openui5.utils.getSelecteds<bo.Project>(that.list) ); } }), new sap.m.Button("", { width: "50%", text: ibas.i18n.prop("shell_exit"), type: sap.m.ButtonType.Transparent, press: function (): void { that.fireViewEvents(that.closeEvent); } }), ] }) }); return new sap.m.Dialog("", { title: this.title, type: sap.m.DialogType.Standard, state: sap.ui.core.ValueState.None, stretchOnPhone: true, horizontalScrolling: true, verticalScrolling: true, content: [ this.page ], }); } private page: sap.m.Page; private list: sap.m.List; private pullToRefresh: sap.m.PullToRefresh; /** 嵌入下拉条 */ embeddedPuller(view: any): void { if (view instanceof sap.m.PullToRefresh) { if (!ibas.objects.isNull(this.page)) { this.page.insertContent(view, 0); this.pullToRefresh = view; } } } /** 显示数据 */ showData(datas: bo.Project[]): void { if (!ibas.objects.isNull(this.pullToRefresh) && datas.length > 0) { this.pullToRefresh.destroy(true); this.pullToRefresh = undefined; } let done: boolean = false; let model: sap.ui.model.Model = this.list.getModel(undefined); if (!ibas.objects.isNull(model)) { // 已存在绑定数据,添加新的 let hDatas: any = (<any>model).getData(); if (!ibas.objects.isNull(hDatas) && hDatas.rows instanceof Array) { for (let item of datas) { hDatas.rows.push(item); } model.refresh(false); done = true; } } if (!done) { // 没有显示数据 this.list.setModel(new sap.ui.model.json.JSONModel({ rows: datas })); } this.list.setBusy(false); } /** 记录上次查询条件,表格滚动时自动触发 */ query(criteria: ibas.ICriteria): void { super.query(criteria); // 清除历史数据 if (this.isDisplayed) { this.list.setBusy(true); this.list.setModel(null); } } } } } }
} ibas.logger.log(ibas.emMessageLevel.DEBUG, "result: {0}", criteria.toString()); that.fireViewEvents(that.fetchDataEvent, criteria);
tests.py
from zerver.lib.test_classes import WebhookTestCase class SplunkHookTests(WebhookTestCase): STREAM_NAME = "splunk" URL_TEMPLATE = "/api/v1/external/splunk?api_key={api_key}&stream={stream}" FIXTURE_DIR_NAME = "splunk" def test_splunk_search_one_result(self) -> None: self.url = self.build_webhook_url(topic="New Search Alert") # define the expected message contents expected_topic = "New Search Alert" expected_message = """ Splunk alert from saved search: * **Search**: [sudo](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: myserver * **Source**: `/var/log/auth.log` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() # using fixture named splunk_search_one_result, execute this test self.check_webhook( "search_one_result", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def test_splunk_short_search_name(self) -> None: # don't provide a topic so the search name is used instead expected_topic = "This search's name isn't that long" expected_message = """ Splunk alert from saved search: * **Search**: [This search's name isn't that long](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: myserver * **Source**: `/var/log/auth.log` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() self.check_webhook( "short_search_name", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def test_splunk_long_search_name(self) -> None: # don't provide a topic so the search name is used instead expected_topic = "this-search's-got-47-words-37-sentences-58-words-we-wanna..." expected_message = """ Splunk alert from saved search: * **Search**: [this-search's-got-47-words-37-sentences-58-words-we-wanna-know-details-of-the-search-time-of-the-search-and-any-other-kind-of-thing-you-gotta-say-pertaining-to-and-about-the-search-I-want-to-know-authenticated-user's-name-and-any-other-kind-of-thing-you-gotta-say](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: myserver * **Source**: `/var/log/auth.log` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() self.check_webhook( "long_search_name", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def test_splunk_missing_results_link(self) -> None: self.url = self.build_webhook_url(topic="New Search Alert") expected_topic = "New Search Alert" expected_message = """ Splunk alert from saved search: * **Search**: [sudo](Missing results_link) * **Host**: myserver * **Source**: `/var/log/auth.log` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() self.check_webhook( "missing_results_link", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def test_splunk_missing_search_name(self) -> None: self.url = self.build_webhook_url(topic="New Search Alert") expected_topic = "New Search Alert" expected_message = """ Splunk alert from saved search: * **Search**: [Missing search_name](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: myserver * **Source**: `/var/log/auth.log` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() self.check_webhook( "missing_search_name", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def test_splunk_missing_host(self) -> None: self.url = self.build_webhook_url(topic="New Search Alert") expected_topic = "New Search Alert" expected_message = """ Splunk alert from saved search: * **Search**: [sudo](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: Missing host * **Source**: `/var/log/auth.log` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() self.check_webhook( "missing_host", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def test_splunk_missing_source(self) -> None: self.url = self.build_webhook_url(topic="New Search Alert") expected_topic = "New Search Alert" expected_message = """ Splunk alert from saved search: * **Search**: [sudo](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: myserver * **Source**: `Missing source` * **Raw**: `Jan 4 11:14:32 myserver sudo: pam_unix(sudo:session): session closed for user root` """.strip() self.check_webhook( "missing_source", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", ) def
(self) -> None: self.url = self.build_webhook_url(topic="New Search Alert") expected_topic = "New Search Alert" expected_message = """ Splunk alert from saved search: * **Search**: [sudo](http://example.com:8000/app/search/search?q=%7Cloadjob%20rt_scheduler__admin__search__sudo_at_1483557185_2.2%20%7C%20head%201%20%7C%20tail%201&earliest=0&latest=now) * **Host**: myserver * **Source**: `/var/log/auth.log` * **Raw**: `Missing _raw` """.strip() self.check_webhook( "missing_raw", expected_topic, expected_message, content_type="application/x-www-form-urlencoded", )
test_splunk_missing_raw
test_replace.rs
mod mock; use mock::*; use primitive_types::H256; type ReplaceCall = replace::Call<Runtime>; type ReplaceEvent = replace::Event<Runtime>; pub type VaultRegistryError = vault_registry::Error<Runtime>; // asserts request event happen and extracts its id for further testing fn assert_request_event() -> H256 { let events = SystemModule::events(); let ids = events .iter() .filter_map(|r| match r.event { Event::replace(ReplaceEvent::RequestReplace(id, _, _, _)) => Some(id.clone()), _ => None, }) .collect::<Vec<H256>>(); assert_eq!(ids.len(), 1); ids[0].clone() } // asserts auction event happen and extracts its id for further testing fn assert_auction_event() -> H256 { let events = SystemModule::events(); let ids = events .iter() .filter_map(|r| match r.event { Event::replace(ReplaceEvent::AuctionReplace(id, _, _, _, _, _, _, _, _)) => { Some(id.clone()) } _ => None, }) .collect::<Vec<H256>>(); assert_eq!(ids.len(), 1); ids[0].clone() } #[test] fn integration_test_replace_should_fail_if_not_running() { ExtBuilder::build().execute_with(|| { SecurityModule::set_parachain_status(StatusCode::Shutdown); assert_noop!( Call::Replace(ReplaceCall::request_replace(0, 0)).dispatch(origin_of(account_of(BOB))), SecurityError::ParachainNotRunning, ); }); } #[test] fn integration_test_replace_request_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let amount = 1000; let collateral = amount * 2; let griefing_collateral = 200; // bob creates a vault force_issue_tokens(ALICE, BOB, collateral, amount); // bob requests a replace assert_ok!( Call::Replace(ReplaceCall::request_replace(amount, griefing_collateral)) .dispatch(origin_of(account_of(BOB))) ); // assert request event let _request_id = assert_request_event(); }); } #[test] fn integration_test_replace_withdraw_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let griefing_collateral = 2000; let amount = 50_000; let collateral = amount * 2; let bob = origin_of(account_of(BOB)); // bob creates a vault force_issue_tokens(ALICE, BOB, collateral, amount); // bob requests a replace assert_ok!( Call::Replace(ReplaceCall::request_replace(5000, griefing_collateral)) .dispatch(origin_of(account_of(BOB))) ); // bob withdraws his replace let replace_id = assert_request_event(); assert_ok!(Call::Replace(ReplaceCall::withdraw_replace(replace_id)).dispatch(bob)); }); } #[test] fn integration_test_replace_accept_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let amount = 1000; let griefing_collateral = 500; let collateral = amount * 2; // alice creates a vault assert_ok!(Call::VaultRegistry(VaultRegistryCall::register_vault( amount, dummy_public_key(), )) .dispatch(origin_of(account_of(ALICE)))); // bob creates a vault force_issue_tokens(ALICE, BOB, collateral, amount); // bob requests a replace assert_ok!( Call::Replace(ReplaceCall::request_replace(amount, griefing_collateral)) .dispatch(origin_of(account_of(BOB))) ); let replace_id = assert_request_event(); // alice accept bob's request assert_ok!(Call::Replace(ReplaceCall::accept_replace( replace_id, collateral, BtcAddress::P2PKH(H160([1; 20])) )) .dispatch(origin_of(account_of(ALICE)))); }); }
fn integration_test_replace_auction_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let user = CAROL; let old_vault = ALICE; let new_vault = BOB; let polkabtc = 1_000; let collateral = required_collateral_for_issue(polkabtc); let replace_collateral = collateral * 2; // let old_vault_btc_address = BtcAddress::P2PKH(H160([1; 20])); let new_vault_btc_address = BtcAddress::P2PKH(H160([2; 20])); // old vault has issued some tokens with the user force_issue_tokens(user, old_vault, collateral, polkabtc); // new vault joins assert_ok!(Call::VaultRegistry(VaultRegistryCall::register_vault( collateral, dummy_public_key() )) .dispatch(origin_of(account_of(new_vault)))); // exchange rate drops and vault is not collateralized any more assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::checked_from_integer(2).unwrap() )); let initial_old_vault_collateral = collateral::Module::<Runtime>::get_collateral_from_account(&account_of(old_vault)); // new_vault takes over old_vault's position assert_ok!(Call::Replace(ReplaceCall::auction_replace( account_of(old_vault), polkabtc, replace_collateral, new_vault_btc_address )) .dispatch(origin_of(account_of(new_vault)))); let final_old_vault_collateral = collateral::Module::<Runtime>::get_collateral_from_account(&account_of(old_vault)); // take auction fee from old vault collateral let replace_amount_dot = ExchangeRateOracleModule::btc_to_dots(polkabtc).unwrap(); let auction_fee = FeeModule::get_auction_redeem_fee(replace_amount_dot).unwrap(); assert_eq!( final_old_vault_collateral, initial_old_vault_collateral - auction_fee ); }); } #[test] fn integration_test_replace_execute_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let user = CAROL; let old_vault = ALICE; let new_vault = BOB; let griefing_collateral = 500; let collateral = 4_000; let polkabtc = 1_000; // let old_vault_btc_address = BtcAddress::P2PKH(H160([1; 20])); let new_vault_btc_address = BtcAddress::P2PKH(H160([2; 20])); // old vault has issued some tokens with the user force_issue_tokens(user, old_vault, collateral, polkabtc); // new vault joins assert_ok!(Call::VaultRegistry(VaultRegistryCall::register_vault( collateral, dummy_public_key() )) .dispatch(origin_of(account_of(new_vault)))); assert_ok!( Call::Replace(ReplaceCall::request_replace(polkabtc, griefing_collateral)) .dispatch(origin_of(account_of(old_vault))) ); let replace_id = assert_request_event(); // alice accepts bob's request assert_ok!(Call::Replace(ReplaceCall::accept_replace( replace_id, collateral, new_vault_btc_address )) .dispatch(origin_of(account_of(new_vault)))); // send the btc from the old_vault to the new_vault let (tx_id, _tx_block_height, merkle_proof, raw_tx) = generate_transaction_and_mine(new_vault_btc_address, polkabtc, Some(replace_id)); SystemModule::set_block_number(1 + CONFIRMATIONS); let r = Call::Replace(ReplaceCall::execute_replace( replace_id, tx_id, merkle_proof, raw_tx, )) .dispatch(origin_of(account_of(old_vault))); assert_ok!(r); }); } #[test] fn integration_test_replace_cancel_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let amount = 1000; //FIXME: get this from storage let griefing_collateral = 200; let collateral = amount * 2; // alice creates a vault assert_ok!(Call::VaultRegistry(VaultRegistryCall::register_vault( amount, dummy_public_key() )) .dispatch(origin_of(account_of(ALICE)))); // bob creates a vault force_issue_tokens(ALICE, BOB, collateral, amount); // bob requests a replace assert_ok!( Call::Replace(ReplaceCall::request_replace(amount, griefing_collateral)) .dispatch(origin_of(account_of(BOB))) ); // alice accepts bob's request let replace_id = assert_request_event(); assert_ok!(Call::Replace(ReplaceCall::accept_replace( replace_id, collateral, BtcAddress::P2PKH(H160([1; 20])) )) .dispatch(origin_of(account_of(BOB)))); // set block height // alice cancels replacement SystemModule::set_block_number(30); assert_ok!(Call::Replace(ReplaceCall::cancel_replace(replace_id)) .dispatch(origin_of(account_of(BOB)))); }); } #[test] fn integration_test_replace_cancel_auction_replace() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let user = CAROL; let old_vault = ALICE; let new_vault = BOB; let polkabtc = 1_000; let collateral = required_collateral_for_issue(polkabtc); let replace_collateral = collateral * 2; // let old_vault_btc_address = BtcAddress::P2PKH(H160([1; 20])); let new_vault_btc_address = BtcAddress::P2PKH(H160([2; 20])); // old vault has issued some tokens with the user force_issue_tokens(user, old_vault, collateral, polkabtc); // new vault joins assert_ok!(Call::VaultRegistry(VaultRegistryCall::register_vault( collateral, dummy_public_key() )) .dispatch(origin_of(account_of(new_vault)))); // exchange rate drops and vault is not collateralized any more assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::checked_from_integer(2).unwrap() )); let initial_new_vault_collateral = collateral::Module::<Runtime>::get_collateral_from_account(&account_of(new_vault)); let initial_old_vault_collateral = collateral::Module::<Runtime>::get_collateral_from_account(&account_of(old_vault)); // new_vault takes over old_vault's position assert_ok!(Call::Replace(ReplaceCall::auction_replace( account_of(old_vault), polkabtc, replace_collateral, new_vault_btc_address )) .dispatch(origin_of(account_of(new_vault)))); // check old vault collateral let replace_amount_dot = ExchangeRateOracleModule::btc_to_dots(polkabtc).unwrap(); let auction_fee = FeeModule::get_auction_redeem_fee(replace_amount_dot).unwrap(); assert_eq!( collateral::Module::<Runtime>::get_collateral_from_account(&account_of(old_vault)), initial_old_vault_collateral - auction_fee ); // check new vault collateral assert_eq!( collateral::Module::<Runtime>::get_collateral_from_account(&account_of(new_vault)), initial_new_vault_collateral + auction_fee + replace_collateral ); let replace_id = assert_auction_event(); SystemModule::set_block_number(30); assert_ok!(Call::Replace(ReplaceCall::cancel_replace(replace_id)) .dispatch(origin_of(account_of(BOB)))); // check old vault collateral let amount_dot = ExchangeRateOracleModule::btc_to_dots(polkabtc).unwrap(); let griefing_collateral = FeeModule::get_replace_griefing_collateral(amount_dot).unwrap(); assert_eq!( collateral::Module::<Runtime>::get_collateral_from_account(&account_of(old_vault)), initial_old_vault_collateral - auction_fee - griefing_collateral ); // check new vault collateral. It should have received auction fee, griefing collateral and // the collateral that was reserved for this replace should have been released assert_eq!( collateral::Module::<Runtime>::get_collateral_from_account(&account_of(new_vault)), initial_new_vault_collateral + auction_fee + griefing_collateral ); }); } #[test] fn integration_test_replace_cancel_repeatedly_fails() { ExtBuilder::build().execute_with(|| { assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::one() )); set_default_thresholds(); SystemModule::set_block_number(1); let user = CAROL; let old_vault = ALICE; let new_vault = BOB; let polkabtc = 1_000; let collateral = required_collateral_for_issue(polkabtc); let replace_collateral = collateral * 2; // let old_vault_btc_address = BtcAddress::P2PKH(H160([1; 20])); let new_vault_btc_address1 = BtcAddress::P2PKH(H160([2; 20])); let new_vault_btc_address2 = BtcAddress::P2PKH(H160([3; 20])); let new_vault_btc_address3 = BtcAddress::P2PKH(H160([4; 20])); // old vault has issued some tokens with the user force_issue_tokens(user, old_vault, collateral, polkabtc); // new vault joins assert_ok!(Call::VaultRegistry(VaultRegistryCall::register_vault( collateral, dummy_public_key() )) .dispatch(origin_of(account_of(new_vault)))); // exchange rate drops and vault is not collateralized any more assert_ok!(ExchangeRateOracleModule::_set_exchange_rate( FixedU128::checked_from_integer(2).unwrap() )); // let initial_new_vault_collateral = // collateral::Module::<Runtime>::get_collateral_from_account(&account_of(new_vault)); // let initial_old_vault_collateral = // collateral::Module::<Runtime>::get_collateral_from_account(&account_of(old_vault)); // new_vault takes over old_vault's position assert_ok!(Call::Replace(ReplaceCall::auction_replace( account_of(old_vault), 750, replace_collateral, new_vault_btc_address1 )) .dispatch(origin_of(account_of(new_vault)))); assert_ok!(Call::Replace(ReplaceCall::auction_replace( account_of(old_vault), 200, replace_collateral, new_vault_btc_address2 )) .dispatch(origin_of(account_of(new_vault)))); // old_vault at this point only has 50 satoshi left, so this should fail // TODO: change back to assert_noop assert_noop!( Call::Replace(ReplaceCall::auction_replace( account_of(old_vault), 200, replace_collateral, new_vault_btc_address3 )) .dispatch(origin_of(account_of(new_vault))), VaultRegistryError::InsufficientTokensCommitted ); }); }
#[test]
problem482.go
package main import "strings" // 482. License Key Formatting // https://leetcode.com/problems/license-key-formatting/ func licenseKeyFormatting(s string, k int) string
{ var chars []string for _, ch := range s { if ch != '-' { chars = append(chars, strings.ToUpper(string(ch))) } } n := len(chars) if n == 0 { return "" } groups := n / k first := n % k if first > 0 { groups++ } else { first = k } ans := strings.Join(chars[:first], "") for i := first; i < n; i += k { ans += "-" + strings.Join(chars[i:i+k], "") } return ans }
index.js
"use strict"; var PhantomInstance = require('./lib/phantom-instance.js'); var debug = require('debug')('phantom-manager'); var async = require('async'); var extend = require('extend-fn'); function
(options, callback) { if (callback && Object.prototype.toString.call(options) === '[object Function]') { var tmp = options; options = callback; callback = tmp; } if (!callback) { callback = options; options = {}; } this.default_options = { amount: 4, parallel_each: 1, timeout: 30000, viewport: { width: 800, height: 600 }, load_images: true, retries: 3, idle_time: 120000, 'use-proxy-cache': false }; this.options = extend({}, this.default_options, options); var self = this; self.createInstances(self.options.amount, function (error) { callback(error); }); } PhantomManager.prototype.openURL = function (url, pageBefore, evaluate, evaluateInject, pageAfter, callback) { this.getInstance().openURL(url, pageBefore, evaluate, evaluateInject, pageAfter, callback); }; PhantomManager.prototype.getInstance = function () { var shortest_queue = 0; for (var i = 1; i < this.instances.length; i++) { if (this.instances[i].queue.length() < this.instances[shortest_queue].queue.length()) { shortest_queue = i; } } return this.instances[shortest_queue]; }; PhantomManager.prototype.createInstances = function (amount, instancesCreatedCallback) { var self = this; var createInstance = function (index, callback) { var instance = new PhantomInstance(self.options); instance.init(function (error) { callback(error, instance); }); }; async.times(amount, function (index, next) { createInstance(index, function (error, instance) { next(error, instance); }); }, function (error, instances) { self.instances = instances; instancesCreatedCallback(error); }); }; PhantomManager.prototype.killallZombies = function (callback) { var platform = require('os').platform(); var exec = require('child_process').exec; var cmd = ''; switch (platform) { case 'linux': cmd = 'killall phantomjs'; break; case 'win32': cmd = 'taskkill /F /IM phantomjs.exe /T'; break; default: callback && callback(new Error('To kill all zombies processes your os is not supported')); return; } exec(cmd, function (error, stdout, stderr) { if (error) { debug('exec error ' + stderr); } debug('exec output ' + stdout); callback && callback(error); }); }; PhantomManager.prototype.shutdown = function (callback) { for (var i = 0; i < this.instances.length; i++) { this.instances[i].kill(); } this.killallZombies(callback); }; module.exports = PhantomManager;
PhantomManager
printRegister.go
package cmd import ( "fmt" "log" "strings" "time" "github.com/howeyc/ledger" "github.com/spf13/cobra" ) // registerCmd represents the register command var registerCmd = &cobra.Command{ Aliases: []string{"reg"}, Use: "register [account-substring-filter]...", Short: "Print register of transactions", Run: func(cmd *cobra.Command, args []string) { generalLedger, err := cliTransactions() if err != nil { log.Fatalln(err) } if period == "" { PrintRegister(generalLedger, args, columnWidth) } else { lperiod := ledger.Period(period) rtrans := ledger.TransactionsByPeriod(generalLedger, lperiod) for rIdx, rt := range rtrans { if rIdx > 0 { fmt.Println(strings.Repeat("=", columnWidth)) } fmt.Println(rt.Start.Format(transactionDateFormat), "-", rt.End.Format(transactionDateFormat)) fmt.Println(strings.Repeat("=", columnWidth)) PrintRegister(rt.Transactions, args, columnWidth) } } }, } func
() { rootCmd.AddCommand(registerCmd) var startDate, endDate time.Time startDate = time.Date(1970, 1, 1, 0, 0, 0, 0, time.Local) endDate = time.Now().Add(time.Hour * 24) registerCmd.Flags().StringVarP(&startString, "begin-date", "b", startDate.Format(transactionDateFormat), "Begin date of transaction processing.") registerCmd.Flags().StringVarP(&endString, "end-date", "e", endDate.Format(transactionDateFormat), "End date of transaction processing.") registerCmd.Flags().StringVar(&payeeFilter, "payee", "", "Filter output to payees that contain this string.") registerCmd.Flags().IntVar(&columnWidth, "columns", 80, "Set a column width for output.") registerCmd.Flags().BoolVar(&columnWide, "wide", false, "Wide output (same as --columns=132).") registerCmd.Flags().StringVar(&period, "period", "", "Split output into periods (Monthly,Quarterly,SemiYearly,Yearly).") }
init
prepare.rs
// Copyright 2015 The Servo Project Developers. See the // COPYRIGHT file at the top-level directory of this distribution. // // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your // option. This file may not be copied, modified, or distributed // except according to those terms. //! 3.3.3 Preparations for Implicit Processing //! //! <http://www.unicode.org/reports/tr9/#Preparations_for_Implicit_Processing> use std::cmp::max; use std::ops::Range; use super::char_data::BidiClass; use super::level::Level; use BidiClass::*; /// A maximal substring of characters with the same embedding level. /// /// Represented as a range of byte indices. pub type LevelRun = Range<usize>; /// Output of `isolating_run_sequences` (steps X9-X10) #[derive(Debug, PartialEq)] pub struct IsolatingRunSequence { pub runs: Vec<LevelRun>, pub sos: BidiClass, // Start-of-sequence type. pub eos: BidiClass, // End-of-sequence type. } /// Compute the set of isolating run sequences. /// /// An isolating run sequence is a maximal sequence of level runs such that for all level runs /// except the last one in the sequence, the last character of the run is an isolate initiator /// whose matching PDI is the first character of the next level run in the sequence. /// /// Note: This function does *not* return the sequences in order by their first characters. #[cfg_attr(feature = "flame_it", flame)] pub fn isolating_run_sequences( para_level: Level, original_classes: &[BidiClass], levels: &[Level], ) -> Vec<IsolatingRunSequence> { let runs = level_runs(levels, original_classes); // Compute the set of isolating run sequences. // <http://www.unicode.org/reports/tr9/#BD13> let mut sequences = Vec::with_capacity(runs.len()); // When we encounter an isolate initiator, we push the current sequence onto the // stack so we can resume it after the matching PDI. let mut stack = vec![Vec::new()]; for run in runs { assert!(run.len() > 0); assert!(!stack.is_empty()); let start_class = original_classes[run.start]; let end_class = original_classes[run.end - 1]; let mut sequence = if start_class == PDI && stack.len() > 1 { // Continue a previous sequence interrupted by an isolate. stack.pop().unwrap() } else { // Start a new sequence. Vec::new() }; sequence.push(run); if matches!(end_class, RLI | LRI | FSI) { // Resume this sequence after the isolate. stack.push(sequence); } else { // This sequence is finished. sequences.push(sequence); } } // Pop any remaning sequences off the stack. sequences.extend(stack.into_iter().rev().filter(|seq| !seq.is_empty())); // Determine the `sos` and `eos` class for each sequence. // <http://www.unicode.org/reports/tr9/#X10> sequences .into_iter() .map(|sequence: Vec<LevelRun>| { assert!(!sequence.is_empty()); let start_of_seq = sequence[0].start; let end_of_seq = sequence[sequence.len() - 1].end; let seq_level = levels[start_of_seq]; #[cfg(test)] for run in sequence.clone() { for idx in run { if not_removed_by_x9(&original_classes[idx]) { assert_eq!(seq_level, levels[idx]); } } } // Get the level of the last non-removed char before the runs. let pred_level = match original_classes[..start_of_seq].iter().rposition( not_removed_by_x9, ) { Some(idx) => levels[idx], None => para_level, }; // Get the level of the next non-removed char after the runs. let succ_level = if matches!(original_classes[end_of_seq - 1], RLI | LRI | FSI) { para_level } else { match original_classes[end_of_seq..].iter().position( not_removed_by_x9, ) { Some(idx) => levels[end_of_seq + idx], None => para_level, } }; IsolatingRunSequence { runs: sequence, sos: max(seq_level, pred_level).bidi_class(), eos: max(seq_level, succ_level).bidi_class(), } }) .collect() } /// Finds the level runs in a paragraph. /// /// <http://www.unicode.org/reports/tr9/#BD7> fn level_runs(levels: &[Level], original_classes: &[BidiClass]) -> Vec<LevelRun> { assert_eq!(levels.len(), original_classes.len()); let mut runs = Vec::new(); if levels.is_empty() { return runs; } let mut current_run_level = levels[0]; let mut current_run_start = 0; for i in 1..levels.len() { if !removed_by_x9(original_classes[i]) && levels[i] != current_run_level { // End the last run and start a new one. runs.push(current_run_start..i); current_run_level = levels[i]; current_run_start = i; } } runs.push(current_run_start..levels.len()); runs } /// Should this character be ignored in steps after X9? /// /// <http://www.unicode.org/reports/tr9/#X9> pub fn removed_by_x9(class: BidiClass) -> bool { matches!(class, RLE | LRE | RLO | LRO | PDF | BN) } // For use as a predicate for `position` / `rposition` pub fn not_removed_by_x9(class: &BidiClass) -> bool { !removed_by_x9(*class) } #[cfg(test)] mod tests { use super::*; #[test] fn test_level_runs() { assert_eq!(level_runs(&Level::vec(&[]), &[]), &[]); assert_eq!( level_runs(&Level::vec(&[0, 0, 0, 1, 1, 2, 0, 0]), &[L; 8]), &[0..3, 3..5, 5..6, 6..8] ); } // From <http://www.unicode.org/reports/tr9/#BD13> #[cfg_attr(rustfmt, rustfmt_skip)] #[test] fn test_isolating_run_sequences() { // == Example 1 == // text1·RLE·text2·PDF·RLE·text3·PDF·text4 // index 0 1 2 3 4 5 6 7 let classes = &[L, RLE, L, PDF, RLE, L, PDF, L]; let levels = &[0, 1, 1, 1, 1, 1, 1, 0]; let para_level = Level::ltr(); let mut sequences = isolating_run_sequences(para_level, classes, &Level::vec(levels)); sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); assert_eq!( sequences.iter().map(|s| s.runs.clone()).collect::<Vec<_>>(), vec![vec![0..2], vec![2..7], vec![7..8]] ); // == Example 2 == // text1·RLI·text2·PDI·RLI·text3·PDI·text4 // index 0 1 2 3 4 5 6 7 let classes = &[L, RLI, L, PDI, RLI, L, PDI, L]; let levels = &[0, 0, 1, 0, 0, 1, 0, 0]; let para_level = Level::ltr(); let mut sequences = isolating_run_sequences(para_level, classes, &Level::vec(levels)); sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); assert_eq!( sequences.iter().map(|s| s.runs.clone()).collect::<Vec<_>>(), vec![vec![0..2, 3..5, 6..8], vec![2..3], vec![5..6]] ); // == Example 3 == // text1·RLI·text2·LRI·text3·RLE·text4·PDF·text5·PDI·text6·PDI·text7 // index 0 1 2 3 4 5 6 7 8 9 10 11 12 let classes = &[L, RLI, L, LRI, L, RLE, L, PDF, L, PDI, L, PDI, L]; let levels = &[0, 0, 1, 1, 2, 3, 3, 3, 2, 1, 1, 0, 0]; let para_level = Level::ltr(); let mut sequences = isolating_run_sequences(para_level, classes, &Level::vec(levels)); sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); assert_eq!( sequences.iter().map(|s| s.runs.clone()).collect::<Vec<_>>(), vec![vec![0..2, 11..13], vec![2..4, 9..11], vec![4..6], vec![6..8], vec![8..9]] ); } // From <http://www.unicode.org/reports/tr9/#X10> #[cfg_attr(rustfmt, rustfmt_skip)] #[test] fn test_isolating_run_sequences_sos_and_eos() { // == Example 1 == // text1·RLE·text2·LRE·text3·PDF·text4·PDF·RLE·text5·PDF·text6 // index 0 1 2 3 4 5 6 7 8 9 10 11 let classes = &[L, RLE, L, LRE, L, PDF, L, PDF, RLE, L, PDF, L]; let levels = &[0, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 0]; let para_level = Level::ltr(); let mut sequences = isolating_run_sequences(para_level, classes, &Level::vec(levels)); sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); // text1 assert_eq!( &sequences[0], &IsolatingRunSequence { runs: vec![0..2], sos: L, eos: R, } ); // text2 assert_eq!( &sequences[1], &IsolatingRunSequence { runs: vec![2..4], sos: R, eos: L, } ); // text3 assert_eq!( &sequences[2], &IsolatingRunSequence { runs: vec![4..6], sos: L, eos: L, } ); // text4 text5 assert_eq!( &sequences[3], &IsolatingRunSequence { runs: vec![6..11], sos: L, eos: R, } ); // text6 assert_eq!( &sequences[4], &IsolatingRunSequence { runs: vec![11..12], sos: R, eos: L, } ); // == Example 2 == // text1·RLI·text2·LRI·text3·PDI·text4·PDI·RLI·text5·PDI·text6 // index 0 1 2 3 4 5 6 7 8 9 10 11 let classes = &[L, RLI, L, LRI, L, PDI, L, PDI, RLI, L, PDI, L]; let levels = &[0, 0, 1, 1, 2, 1, 1, 0, 0, 1, 0, 0]; let para_level = Level::ltr(); let mut sequences = isolating_run_sequences(para_level, classes, &Level::vec(levels)); sequences.sort_by(|a, b| a.runs[0].clone().cmp(b.runs[0].clone())); // text1·RLI·PDI·RLI·PDI·text6 assert_eq!( &sequences[0], &IsolatingRunSequence { runs: vec![0..2, 7..9, 10..12], sos: L, eos: L, } ); // text2·LRI·PDI·text4 assert_eq!( &sequences[1], &IsolatingRunSequence { runs: vec![2..4, 5..7], sos: R, eos: R, } ); // text3 assert_eq!( &sequences[2], &IsolatingRunSequence { runs: vec![4..5], sos: L, eos: L, } ); // text5 assert_eq!( &sequences[3], &IsolatingRunSequence { runs: vec![9..10], sos: R, eos: R, } ); } #[test] fn test_removed_by_x9() { let rem_classes = &[RLE, LRE, RLO, LRO, PDF, BN]; let not_classes = &[L, RLI, AL, LRI, PDI]; for x in rem_classes { assert_eq!(removed_by_x9(*x), true); } for x in not_classes { assert_eq!(removed_by_x9(*x), false); } } #[test] fn test_not_removed_by_x9() { let non_x9_classes = &[L, R, AL, EN, ES, ET, A
N, CS, NSM, B, S, WS, ON, LRI, RLI, FSI, PDI]; for x in non_x9_classes { assert_eq!(not_removed_by_x9(&x), true); } } }
Home.js
import React, { Component } from 'react'; import { Col, Row, Container } from '../../components/Grid'; import { HomePageJumbo } from '../../components/HomePageJumbo'; import { StickyFooter } from '../../components/Footer/'; import Button from '@material-ui/core/Button'; import { Link } from "react-router-dom"; // Redux stuff // import { connect } from 'react-redux'; // import { bindActionCreators } from 'redux'; import { Cookies } from 'react-cookie'; import './Home.css'; import Rotate from 'react-reveal/Rotate'; import Zoom from 'react-reveal/Zoom'; import LightSpeed from 'react-reveal/LightSpeed'; import Slide from 'react-reveal/Slide'; import Pulse from 'react-reveal/Pulse'; class Home extends Component { cookies = new Cookies(); render() { const firstName = this.cookies.get("firstName"); const lastName = this.cookies.get("lastName"); const email = this.cookies.get("email"); if (firstName && lastName && email){ window.location.pathname="/board"; return null; }; return ( <div className="hide-overflow"> <HomePageJumbo /> <Slide bottom> <Row className="justify-content-center mt-5 mb-3"> <Col size="12"> <h1 className="display-4 text-center montserrat pt-5">Makin' it Rein...</h1> </Col> </Row> <Row className="justify-content-center welcome-msg"> <Col size="12 md-6"> <p className="px-5"> The job search can be scary. Sometimes you truly do feel like a deer in headlights. Don't get hit with anxiety! We're here to help! Applications can pile up and you can get lost in the woods of job hunting. Don't be the hunted! Be the hunter! Find and track the progress of any and all current job applications. From finding the job to submitting the application and even getting the offer, we're here to make managing that proccess easier. And when you get that offer proudly show off your newly grown antlers! You're no ordinary job seeker anymore. You're a Career Deer. </p> </Col> </Row> <Container className="my-5"> <Row className="justify-content-center mb-5"> <Col size="12 md-6 lg-4"> <Rotate duration={1500}> <img className="svg-icon mx-auto my-3" src="/imgs/icons/circular-target.svg" alt="circular target"/> </Rotate> <h2 className="text-center montserrat">Hunt down the job</h2> <p className="px-5 text-center"> No need to go anywhere else to hunt down a job! We have job search functionality built in! Easily track and apply to any jobs that you find through our search. Found a job from another site or through a personal connection? We've got you covered on that too! Simply add it to your tracked jobs. </p> </Col> <Col size="12 md-6 lg-4"> <Zoom duration={1500}> <img className="svg-icon mx-auto my-3" src="/imgs/icons/check-box.svg" alt="check box"/> </Zoom> <h2 className="text-center montserrat">Track your progress</h2> <p className="px-5 text-center"> Monitor and track every step of the application proccess. Using our job tracker board you can see where you are in the application for each job you've applied for. Once you've moved on to the next step of the application proccess move those jobs to the next panels and easily track your applications. </p> </Col> <Col size="12 md-6 lg-4"> <LightSpeed right duration={1500}> <img className="svg-icon mx-auto my-3" src="/imgs/icons/dart-board.svg" alt="dart board"/> </LightSpeed> <h2 className="text-center montserrat">Hit your target</h2> <p className="px-5 text-center"> You're the hunter now, hunt down that job and hit your mark! No matter if your application experience went well or not we'll keep track of that for you. That data can help you prepare for future applications. You can also view your progression and how well you compare to other users on the site. </p> </Col> </Row> </Container> </Slide> <section id="foreal" className="section-2"> <Row className="justify-content-center mt-5 mb-3 pt-5"> <Col size="12"> <h1 className="display-4 text-center montserrat">For real doe?</h1> </Col> </Row> <Row className="justify-content-center"> <Col size="12 md-12 lg-2"> <Zoom> <img className="svg-icon-chart my-3" src="/imgs/icons/bars-chart.svg" alt="bars chart"/> </Zoom> </Col> <Col size="12 md-12 lg-4"> <p className="px-3"> Become a Career Deer and get organized with your job search. We'll help you every step of the way! Tracking your progress not only allows you to organize your job applications it can help you see which jobs are worth pursuing and how far along you are into the proccess. Ease your mind and ease your life knowing you're on the right track. Compare your data to others and see how <span className="strike"> much better you are </span> you rank up against the rest. Track your application activity too! The more you apply the more activity and the better your chances. Career Deer is easy to use and we'll think you'll <span className="font-italic">deerly</span> love it! </p> </Col> </Row> </section> <Container className="section-3"> <Row className="justify-content-end"> <LightSpeed right> <img className="deer-guy" src="/imgs/icons/deer-guy.svg" alt="deer guy"/> </LightSpeed> </Row> <Row className="justify-content-center"> <Col size="12 md-2"> <Rotate> <img className="svg-icon-list my-3" src="/imgs/icons/archive.svg" alt="searching"/> </Rotate> </Col> <Col size="12 md-6"> <h4 className="montserrat mt-4">Finding Jobs</h4> <p className=" mt-1 px-1"> Use our built in job search to find and manage new applications! Just add what you industry or topic you are looking for and a location and our search will do the rest! </p> </Col> </Row> <Row className="justify-content-center"> <Col size="12 md-2"> <Rotate> <img className="svg-icon-list my-3" src="/imgs/icons/manage.svg" alt="searching"/> </Rotate> </Col> <Col size="12 md-6"> <h4 className="montserrat mt-4">Manage your notes and data</h4> <p className=" mt-1 px-1"> Keep notes and track all your job progress. Each job allows for notes and tracks progress, names, numbers, anything you want really! The more you note and track, the more organized you become! </p> </Col> </Row>
<Col size="12 md-2"> <Rotate> <img className="svg-icon-list my-3" src="/imgs/icons/calendar.svg" alt="searching"/> </Rotate> </Col> <Col size="12 md-6"> <h4 className="montserrat mt-4">Set reminders and schedules</h4> <p className=" mt-1 px-1"> Give yourself reminders and view schedules in the jobs notes themself! Email and text reminders are coming in the future so sit tight while we work out these features! </p> </Col> </Row> <Row className="justify-content-center"> <Col size="12 md-2"> <Rotate> <img className="svg-icon-list my-3" src="/imgs/icons/chatting.svg" alt="searching"/> </Rotate> </Col> <Col size="12 md-6"> <h4 className="montserrat mt-4">Ace that interview!</h4> <p className=" mt-1 px-1"> With all the tools and all your progress you're ready to ace the interview! We hope our application has helped you in your journey. Good luck from the CareerDeer team! </p> </Col> </Row> </Container> <section id="sign-up" className="section-4 mb-5"> <Row className="justify-content-center text-center my-5 py-5"> <Col size="12 md-8"> <Pulse> <img width="250px" src="/imgs/logo-symbol.svg" alt="logo"/> </Pulse> <h1 className="display-6 text-center montserrat font-weight-bold">kickstart your career hunt</h1> <p className=" mt-1"> Your dream job is just a couple hooves away. </p> <Button variant="extendedFab" color="secondary" component={Link} to="/signup"> <span className="big-btn font-weight-bold">Get Started!</span> </Button> </Col> </Row> </section> <StickyFooter /> </div> ); } } // If you want the component to have access to props passed from a parent // component, you need to pass them in to here; // const mapStateToProps = (state, props) => { // return { // } // }; // const mapDispatchToProps = (dispatch, props) => { // return bindActionCreators({ // }, dispatch) // }; // Connect can take 3 arguments // 1) mapStateToProps // 2) mapDispatchToProps // 3) mergeProps // bindActionCreators() // export default connect(mapStateToProps, mapDispatchToProps)(Home); export default Home;
<Row className="justify-content-center">
common.go
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package model import ( "fmt" "github.com/jmoiron/sqlx" ) var ( UICDB *sqlx.DB MYSQLDB *sqlx.DB ) const ( TBL_PRODUCT_LIST = "product_list" TBL_SIDECAR_LIST = "sidecar_list" TBL_AGENT_LIST = "agent_list" TBL_OP_HISTORY = "operation_history" TBL_UPDATE_HISTORY = "update_history" TBL_PROGRESS_HISTORY = "progress_history" TBL_RESOURCE_USAGES = "resource_usages" TBL_DEPLOY_CALLBACK = "deploy_callback" TBL_DASHBOARD_LIST = "dashboard_list" TBL_TRIGGER_LIST = "trigger_list" TBL_STRATEGY_LIST = "strategy_list" ) func USE_MYSQL_DB() *sqlx.DB { return MYSQLDB } func USE_UIC_DB() *sqlx.DB { return UICDB } func connectDatabase(host, user, password, dbname string, port int) (*sqlx.DB, error) { return sqlx.Connect("mysql", fmt.Sprintf("%s:%s@tcp(%s:%d)/%s?charset=utf8&loc=Local&parseTime=true", user, password, host, port, dbname)) } func ConfigureUicDatabase(host string, port int, user, password, dbname string) error { var err error UICDB, err = connectDatabase(host, user, password, dbname, port) return err } func
(host string, port int, user, password, dbname string) error { var err error MYSQLDB, err = connectDatabase(host, user, password, dbname, port) return err }
ConfigureMysqlDatabase
users_windows.go
// +build windows /* * Copyright (c) 2018, Jeremy Bingham (<[email protected]>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // windows specific functions and methods for creating users // just stubs right now though package users import ( "errors" ) var notImpErr = errors.New("Windows functionality is not implemented yet.") func (u *User) osCreateUser() error { return notImpErr } func New(userName string, fullName string, homeDir string, shell string, action UserAction, groups []string) (*User, error)
{ return nil, notImpErr }
User.go
package models
const ( SEX_WOMAN = "W" // 女性 SEX_MAN = "M" // 男性 SEX_UNKNOW = "U" // 未知 ) type User struct { Id int64 `xorm:"pk autoincr bigint(64)" form:"id" json:"id"` Mobile string `xorm:"varchar(20)" form:"mobile" json:"mobile"` Password string `xorm:"varchar(40)" form:"password" json:"-"` // 什么角色 Avatar string `xorm:"varchar(150)" form:"avatar" json:"avatar"` Sex string `xorm:"varchar(2)" form:"sex" json:"sex"` // 什么角色 Nickname string `xorm:"varchar(20)" form:"nickname" json:"nickname"` // 什么角色 Salt string `xorm:"varchar(10)" form:"salt" json:"-"` // 什么角色 Online int `xorm:"int(10)" form:"online" json:"online"` // 是否在线 Token string `xorm:"varchar(40)" form:"token" json:"token"` // 什么角色 Memo string `xorm:"varchar(140)" form:"memo" json:"memo"` // 什么角色 Createat time.Time `xorm:"datetime" form:"createat" json:"createat"` // 什么角色 }
import "time"
parse.rs
use std::str; use Result; use errors::Error; #[derive(Debug, PartialEq, Eq)] pub struct MessageArg<'a> { pub subject: &'a str, pub sid: u64, pub reply: Option<&'a str>, pub size: usize, } #[derive(Debug, PartialEq, Eq)] pub enum ParseResult<'a> { NoOp, Okay, Error(&'a str), Ping, Pong, Message(MessageArg<'a>), } /// Parses a line of input from the server pub fn parse_line<'a>(data: &'a str) -> Result<ParseResult<'a>> { let data = data.trim_right(); if data.len() == 0
let upper = data.to_uppercase(); if upper == "+OK" { return Ok(ParseResult::Okay); } else if upper == "PING" { return Ok(ParseResult::Ping); } else if upper == "PONG" { return Ok(ParseResult::Pong); } else if upper.starts_with("-ERR ") { return Ok(ParseResult::Error(&data[5..])); } else if upper.starts_with("MSG ") { return Ok(ParseResult::Message(try!(parse_message_arg(&data[4..])))); } Err(Error::ParseError) } fn parse_message_arg<'a>(data: &'a str) -> Result<MessageArg<'a>> { let vecs = data.split_whitespace() .filter(|v| v.len() > 0) .collect::<Vec<&str>>(); match vecs.len() { 3 => { Ok(MessageArg { subject: vecs[0], sid: try!(u64::from_str_radix(vecs[1], 10)), reply: None, size: try!(usize::from_str_radix(vecs[2], 10)), }) }, 4 => { Ok(MessageArg { subject: vecs[0], sid: try!(u64::from_str_radix(vecs[1], 10)), reply: Some(vecs[2]), size: try!(usize::from_str_radix(vecs[3], 10)), }) }, _ => Err(Error::ParseError), } } #[cfg(test)] mod test { use super::*; #[test] fn test_parse_ok() { let result = parse_line("+OK\r\n"); assert_eq!(ParseResult::Okay, result.unwrap()); } #[test] fn test_parse_ping() { let result = parse_line("PING\r\n"); assert_eq!(ParseResult::Ping, result.unwrap()); } #[test] fn test_parse_pong() { let result = parse_line("PONG\r\n"); assert_eq!(ParseResult::Pong, result.unwrap()); } #[test] fn test_parse_err() { let message = "some error message I'm getting"; let formatted = format!("-ERR {}\r\n", message); let result = parse_line(&formatted); assert_eq!(ParseResult::Error(message), result.unwrap()); } #[test] fn test_parse_msg_no_reply() { let subject = "topic1"; let message = format!("MSG {} 47 18\r\n", subject); let result = parse_line(&message); let expected = MessageArg { subject: &subject, sid: 47, reply: None, size: 18, }; assert_eq!(ParseResult::Message(expected), result.unwrap()); } #[test] fn test_parse_msg_reply() { let subject = "topic1"; let reply = "reply1"; let message = format!("MSG {} 47 {} 18\r\n", subject, reply); let result = parse_line(&message); let expected = MessageArg { subject: &subject, sid: 47, reply: Some(&reply), size: 18, }; assert_eq!(ParseResult::Message(expected), result.unwrap()); } #[test] fn test_parse_invalid_op() { assert!(parse_line("BLAH\r\n").is_err()); } #[test] fn test_parse_lowercase() { let result = parse_line("ping\r\n"); assert_eq!(ParseResult::Ping, result.unwrap()); } #[test] fn test_parse_msg_extra_spaces() { let subject = "topic1"; let message = format!("MSG {} 47 18\r\n", subject); let result = parse_line(&message); let expected = MessageArg { subject: &subject, sid: 47, reply: None, size: 18, }; assert_eq!(ParseResult::Message(expected), result.unwrap()); } #[test] fn test_parse_msg_invalid_args() { let subject = "topic1"; let message = format!("MSG {} 18\r\n", subject); assert!(parse_line(&message).is_err()); } }
{ return Ok(ParseResult::NoOp); }
hypothesis-chrome-extension.js
'use strict'; var annotationIDs = require('./annotation-ids'); var errors = require('./errors'); var TabState = require('./tab-state'); var BrowserAction = require('./browser-action'); var HelpPage = require('./help-page'); var SidebarInjector = require('./sidebar-injector'); var TabStore = require('./tab-store'); var TAB_STATUS_LOADING = 'loading'; var TAB_STATUS_COMPLETE = 'complete'; /* The main extension application. This wires together all the smaller * modules. The app listens to all new created/updated/removed tab events * and uses the TabState object to keep track of whether the sidebar is * active or inactive in the tab. The app also listens to click events on * the browser action and toggles the state and uses the BrowserAction module * to update the visual style of the button. * * The SidebarInjector handles the insertion of the Hypothesis code. If it * runs into errors the tab is put into an errored state and when the * browser action is clicked again the HelpPage module displays more * information to the user. * * Lastly the TabStore listens to changes to the TabState module and persists * the current settings to localStorage. This is then loaded into the * application on startup. * * Relevant Chrome Extension documentation: * - https://developer.chrome.com/extensions/browserAction * - https://developer.chrome.com/extensions/tabs * - https://developer.chrome.com/extensions/extension * * dependencies - An object to set up the application. * chromeTabs: An instance of chrome.tabs. * chromeBrowserAction: An instance of chrome.browserAction. * extensionURL: chrome.extension.getURL. * isAllowedFileSchemeAccess: chrome.extension.isAllowedFileSchemeAccess. */ function HypothesisChromeExtension(dependencies) { var chromeTabs = dependencies.chromeTabs; var chromeStorage = dependencies.chromeStorage; var chromeBrowserAction = dependencies.chromeBrowserAction; var help = new HelpPage(chromeTabs, dependencies.extensionURL); var store = new TabStore(localStorage); var state = new TabState(store.all(), onTabStateChange); var browserAction = new BrowserAction(chromeBrowserAction); var sidebar = new SidebarInjector(chromeTabs, { extensionURL: dependencies.extensionURL, isAllowedFileSchemeAccess: dependencies.isAllowedFileSchemeAccess, }); restoreSavedTabState(); /* Sets up the extension and binds event listeners. Requires a window * object to be passed so that it can listen for localStorage events. */ this.listen = function () { chromeBrowserAction.onClicked.addListener(onBrowserActionClicked); chromeTabs.onCreated.addListener(onTabCreated); // when a user navigates within an existing tab, // onUpdated is fired in most cases chromeTabs.onUpdated.addListener(onTabUpdated); // ... but when a user navigates to a page that is loaded // via prerendering or instant results, onTabReplaced is // fired instead. See https://developer.chrome.com/extensions/tabs#event-onReplaced // and https://code.google.com/p/chromium/issues/detail?id=109557 chromeTabs.onReplaced.addListener(onTabReplaced); chromeTabs.onRemoved.addListener(onTabRemoved); }; /* A method that can be used to setup the extension on existing tabs * when the extension is re-installed. */ this.install = function () { restoreSavedTabState(); }; /* Opens the onboarding page */ this.firstRun = function (extensionInfo) { // If we've been installed because of an administrative policy, then don't // open the welcome page in a new tab. // // It's safe to assume that if an admin policy is responsible for installing // the extension, opening the welcome page is going to do more harm than // good, as it will appear that a tab opened without user action. // // See: // // https://developer.chrome.com/extensions/management#type-ExtensionInstallType // if (extensionInfo.installType === 'admin') { return; } chromeTabs.create({url: 'http://renoted.com/login'}, function (tab) { state.activateTab(tab.id); }); }; function restoreSavedTabState() { store.reload(); state.load(store.all()); chromeTabs.query({}, function (tabs) { tabs.forEach(function (tab) { onTabStateChange(tab.id, state.getState(tab.id)); }); }); } function onTabStateChange(tabId, current) { if (current) { browserAction.update(tabId, current); chromeTabs.get(tabId, updateTabDocument); if (!state.isTabErrored(tabId)) { store.set(tabId, current); } } else { store.unset(tabId); } } // exposed for use by tests this._onTabStateChange = onTabStateChange; function onBrowserActionClicked(tab) { var tabError = state.getState(tab.id).error; if (tabError) { help.showHelpForError(tab, tabError); } else if (state.isTabActive(tab.id)) { state.deactivateTab(tab.id); } else { state.activateTab(tab.id); } } /** * Returns the active state for a tab * which has just been navigated to. */ function
(tabId) { var activeState = state.getState(tabId).state; if (activeState === TabState.states.ERRORED) { // user had tried to activate H on the previous page but it failed, // retry on the new page activeState = TabState.states.ACTIVE; } return activeState; } function resetTabState(tabId, url) { state.setState(tabId, { state: activeStateForNavigatedTab(tabId), ready: false, annotationCount: 0, extensionSidebarInstalled: false, }); updateAnnotationCountIfEnabled(tabId, url); } // This function will be called multiple times as the tab reloads. // https://developer.chrome.com/extensions/tabs#event-onUpdated // // 'changeInfo' contains details of what changed about the tab's status. // Two important events are when the tab's `status` changes to `loading` // when the user begins a new navigation and when the tab's status changes // to `complete` after the user completes a navigation function onTabUpdated(tabId, changeInfo, tab) { if (changeInfo.status === TAB_STATUS_LOADING) { resetTabState(tabId, tab.url); var directLinkedID = annotationIDs.extractIDFromURL(tab.url); if (directLinkedID) { state.setState(tab.id, {directLinkedAnnotation: directLinkedID}); } } else if (changeInfo.status === TAB_STATUS_COMPLETE) { var tabState = state.getState(tabId); var newActiveState = tabState.state; if (tabState.directLinkedAnnotation) { newActiveState = TabState.states.ACTIVE; } state.setState(tabId, { ready: true, state: newActiveState, }); } } function onTabReplaced(addedTabId, removedTabId) { state.setState(addedTabId, { state: activeStateForNavigatedTab(removedTabId), ready: true, }); state.clearTab(removedTabId); chromeTabs.get(addedTabId, function (tab) { updateAnnotationCountIfEnabled(addedTabId, tab.url); }); } function onTabCreated(tab) { // Clear the state in case there is old, conflicting data in storage. state.clearTab(tab.id); //Activate the tab by default on each new tab creation //FIX ME: Handle the error state state.activateTab(tab.id) } function onTabRemoved(tabId) { state.clearTab(tabId); } // installs or uninstalls the sidebar from a tab when the H // state for a tab changes function updateTabDocument(tab) { // If the tab has not yet finished loading then just quietly return. if (!state.getState(tab.id).ready) { return Promise.resolve(); } var isInstalled = state.getState(tab.id).extensionSidebarInstalled; if (state.isTabActive(tab.id) && !isInstalled) { // optimistically set the state flag indicating that the sidebar // has been installed state.setState(tab.id, { extensionSidebarInstalled: true, }); var config = { annotations: state.getState(tab.id).directLinkedAnnotation, }; return sidebar.injectIntoTab(tab, config) .then(function () { // Clear the direct link once H has been successfully injected state.setState(tab.id, {directLinkedAnnotation: undefined}); }) .catch(function (err) { if (err instanceof errors.AlreadyInjectedError) { state.setState(tab.id, { state: TabState.states.INACTIVE, extensionSidebarInstalled: false, }); return; } if (!errors.shouldIgnoreInjectionError(err)) { errors.report(err, 'Injecting Hypothesis sidebar', { url: tab.url, }); } state.errorTab(tab.id, err); }); } else if (state.isTabInactive(tab.id) && isInstalled) { return sidebar.removeFromTab(tab).then(function () { state.setState(tab.id, { extensionSidebarInstalled: false, }); }); } else { return Promise.resolve(); } } function updateAnnotationCountIfEnabled(tabId, url) { chromeStorage.sync.get({ badge: true, }, function (items) { if (items.badge) { state.updateAnnotationCount(tabId, url); } }); } } module.exports = HypothesisChromeExtension;
activeStateForNavigatedTab
ConfirmDeleteWalletDialog.view.tsx
import React from 'react'; import { Box, Button, Container, Dialog, Typography } from '@material-ui/core'; import { Formik, Form, Field } from 'formik';
import { useTranslation } from 'react-i18next'; import * as Yup from 'yup'; import { SubmitButton } from '..'; import { ConfirmDeleteWalletDialogProps } from './ConfirmDeleteWalletDialog'; const ConfirmDeleteWalletDialog = (props: ConfirmDeleteWalletDialogProps): JSX.Element => { const { open, cancel, confirm } = props; const { t } = useTranslation('ConfirmDeleteWalletDialog'); return ( <Dialog open={open} onClose={cancel}> <Container maxWidth="md" style={{ marginBottom: '20px', marginTop: '20px' }}> <Typography variant="h2" paragraph> {t('title')} </Typography> <Typography variant="body2" color="textSecondary" paragraph> {t('description')} </Typography> <Formik initialValues={{ confirmationChecked: false, submit: null }} validationSchema={Yup.object().shape({ confirmationChecked: Yup.bool().oneOf([true], t('confirmationChecked')), })} onSubmit={confirm} > {({ isSubmitting, dirty, isValid, submitForm }) => ( <Form name="UnlockWalletInnerForm"> <Box display="flex"> <Box display="flex" alignItems="center" flexDirection="row-reverse"> <Box> <Typography display="inline">{t('understandCheckText')}</Typography> </Box> <Field component={Checkbox} type="checkbox" name="confirmationChecked" /> </Box> </Box> <Box display="flex" flexDirection="column" justifyContent="center"> <SubmitButton data-testid="submit-button" disabled={!dirty || !isValid || isSubmitting} isSubmitting={isSubmitting} onClick={submitForm} > {t('deleteWalletButton')} </SubmitButton> <Button color="secondary" variant="outlined" style={{ marginTop: '10px' }} onClick={cancel} > {t('cancelButton')} </Button> </Box> </Form> )} </Formik> </Container> </Dialog> ); }; export default ConfirmDeleteWalletDialog; export { ConfirmDeleteWalletDialog };
import { Checkbox } from 'formik-material-ui';
business-resignation.ts
import { Interfaces, Transactions, Utils } from "@arkecosystem/crypto"; import { MagistrateTransactionGroup, MagistrateTransactionType } from "../enums";
constructor() { super(); this.data.version = 2; this.data.typeGroup = MagistrateTransactionGroup; this.data.type = MagistrateTransactionType.BusinessResignation; this.data.fee = BusinessResignationTransaction.staticFee(); this.data.amount = Utils.BigNumber.ZERO; this.data.asset = { businessResignation: {} }; } public getStruct(): Interfaces.ITransactionData { const struct: Interfaces.ITransactionData = super.getStruct(); struct.amount = this.data.amount; struct.asset = this.data.asset; return struct; } protected instance(): BusinessResignationBuilder { return this; } }
import { BusinessResignationTransaction } from "../transactions"; export class BusinessResignationBuilder extends Transactions.TransactionBuilder<BusinessResignationBuilder> {
getData.js
import {initialState } from './inital'; const getStateData=(state=initialState.data,action) => { switch (action.type){ case "GET_STATES": return { ...state, stateData: action.data } default: return state } } const getdataReducer = (state = initialState.data, action) => { switch (action.type) { case "GET_POOLS_DATA": return { ...state, poolsData: action.data } case "GET_MEGA_DATA": return { ...state, megaData: action.data } case "GET_POWER_DATA": return { ...state,
return { ...state, selectedStateData: action.data } case "GET_ACTIVE_TAB": return { ...state, activeTab: action.data } default: return state } }; export default getdataReducer;
powerData: action.data } case 'SET_SELECTED_STATE':
test_core.py
"""Core tests.""" from typing import Any import pytest from borsh_construct import ( F32, F64, I8, I16, I32, I64, I128, U8, U16, U32, U64, U128, Bool, Vec, CStruct, TupleStruct, Enum, String, Option, HashMap, HashSet, Bytes, ) from borsh_construct.core import ( NAMED_TUPLE_FIELD_ERROR, TUPLE_DATA, UNNAMED_SUBCON_ERROR, NON_STR_NAME_ERROR, UNDERSCORE_NAME_ERROR, TUPLE_DATA_NAME_ERROR, ) from construct import Construct, Float32l, Float64l, FormatField, FormatFieldError ENUM = Enum( "Unit", "TupleVariant" / TupleStruct(U128, String, I64, Option(U16)), "CStructVariant" / CStruct("u128_field" / U128, "string_field" / String, "vec_field" / Vec(U16)), enum_name="Placeholder", ) TYPE_INPUT_EXPECTED = ( (Bool, True, [1]), (Bool, False, [0]), (U8, 255, [255]), (I8, -128, [128]), (U16, 65535, [255, 255]), (I16, -32768, [0, 128]), (U32, 4294967295, [255, 255, 255, 255]), (I32, -2147483648, [0, 0, 0, 128]), (U64, 18446744073709551615, [255, 255, 255, 255, 255, 255, 255, 255]), (I64, -9223372036854775808, [0, 0, 0, 0, 0, 0, 0, 128]), ( U128, 340282366920938463463374607431768211455, [ 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, ], ), ( I128, -170141183460469231731687303715884105728, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128], ), (F32, 0.5, [0, 0, 0, 63]), (F64, -0.5, [0, 0, 0, 0, 0, 0, 224, 191]), (I16[3], [1, 2, 3], [1, 0, 2, 0, 3, 0]), (Vec(I16), [1, 1], [2, 0, 0, 0, 1, 0, 1, 0]), ( TupleStruct(U128, String, I64, Option(U16)), [123, "hello", 1400, 13], [ 123, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 104, 101, 108, 108, 111, 120, 5, 0, 0, 0, 0, 0, 0, 1, 13, 0, ], ), ( CStruct("u128_field" / U128, "string_field" / String, "vec_field" / Vec(U16)), {"u128_field": 1033, "string_field": "hello", "vec_field": [1, 2, 3]}, [ 9, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 104, 101, 108, 108, 111, 3, 0, 0, 0, 1, 0, 2, 0, 3, 0, ], ), (ENUM, ENUM.enum.Unit(), [0]), ( ENUM, ENUM.enum.TupleVariant([10, "hello", 13, 12]), [ 1, 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 104, 101, 108, 108, 111, 13, 0, 0, 0, 0, 0, 0, 0, 1, 12, 0, ], ), ( ENUM, ENUM.enum.CStructVariant( u128_field=15, string_field="hi", vec_field=[3, 2, 1], ), [ 2, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 104, 105, 3, 0, 0, 0, 3, 0, 2, 0, 1, 0, ], ), ( HashMap(U8, ENUM), {2: ENUM.enum.Unit(), 1: ENUM.enum.TupleVariant([11, "hello", 123, None])}, [ 2, 0, 0, 0, 1, 1, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 104, 101, 108, 108, 111, 123, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, ], ), (HashSet(U8), {1, 2, 3}, [3, 0, 0, 0, 1, 2, 3]), (Bytes, b"\x01\x02\x03", [3, 0, 0, 0, 1, 2, 3]), ( String, "🚀🚀🚀", [12, 0, 0, 0, 240, 159, 154, 128, 240, 159, 154, 128, 240, 159, 154, 128], ), ) @pytest.mark.parametrize("obj_type,obj_input,expected", TYPE_INPUT_EXPECTED) def test_serde(obj_type: Construct, obj_input: Any, expected: Any) -> None: """Tests that inputs are serialized and deserialized as expected.""" serialized = obj_type.build(obj_input) assert list(serialized) == expected deserialized = obj_type.parse(serialized) assert deserialized == obj_input @pytest.mark.parametrize( "nonan_type,construct_type", [(F32, Float32l), (F64, Float64l)], ) def test_nan_floats(nonan_type: FormatField, construct_type: FormatField) -> None: """Check that error is raised if you try to build or parse nan floats.""" nan = float("nan") # noqa: WPS456 with pytest.raises(FormatFieldError): nonan_type.build(nan) nan_serialized = construct_type.build(nan) with pytest.raises(FormatFieldError): nonan_type.parse(nan_serialized) def test_named_tuple_struct_field_raises() -> None: """Check that error is raised if TupleStruct field is named.""" with pytest.raises(ValueError) as exc: TupleStruct("foo" / U8) assert exc.value == NAMED_TUPLE_FIELD_ERROR def test_unna
e: """Check that error is raised when enum variant or CStruct field is unnamed.""" with pytest.raises(ValueError) as excinfo: Enum("foo", TupleStruct(U8), enum_name="placeholder") assert str(excinfo.value) == str(UNNAMED_SUBCON_ERROR) def test_non_str_name_raises() -> None: """Check that error is raised when subcon name is not a string.""" with pytest.raises(ValueError) as excinfo: CStruct(1 / U8) # type: ignore assert str(excinfo.value) == str(NON_STR_NAME_ERROR) def test_tuple_data_name_raises() -> None: """Check that error is raised when subcon name is not a string.""" with pytest.raises(ValueError) as excinfo: CStruct(TUPLE_DATA / U8) assert str(excinfo.value) == str(TUPLE_DATA_NAME_ERROR) def test_underscore_name_raises() -> None: """Check that error is raised when subcon name starts with underscore.""" with pytest.raises(ValueError) as excinfo: CStruct("_foo" / U8) assert str(excinfo.value) == str(UNDERSCORE_NAME_ERROR) def test_unrecognized_variant_type_raises() -> None: """Check that error is raised if variant type is not valid.""" with pytest.raises(ValueError) as excinfo: Enum("foo" / U8, enum_name="placeholder") assert "Unrecognized" in str(excinfo.value) def test_duplicate_variant_name_raises() -> None: """Check error raised if two variants in same Enum have same name.""" with pytest.raises(ValueError) as excinfo: Enum("foo", "foo", enum_name="placeholder") assert "must be unique" in str(excinfo.value)
med_subcon_raises() -> Non
lib.rs
// This sequence needs to be repeated in each project as a workaround. // See https://github.com/rust-lang/cargo/issues/5034 // For clippy lints see: https://rust-lang.github.io/rust-clippy/master // For rustc lints see: https://doc.rust-lang.org/rustc/lints/index.html #![cfg_attr(not(feature = "std"), no_std)] #![forbid(unsafe_code)] #![warn( // Enable sets of warnings clippy::all, clippy::pedantic, clippy::cargo, rust_2018_idioms, future_incompatible, unused, // Additional unused warnings (not included in `unused`) unused_lifetimes, unused_qualifications, unused_results, // Additional misc. warnings anonymous_parameters, deprecated_in_future, elided_lifetimes_in_paths, explicit_outlives_requirements, keyword_idents, macro_use_extern_crate, // missing_docs, missing_doc_code_examples, private_doc_tests, single_use_lifetimes, trivial_casts, trivial_numeric_casts, unreachable_pub, unsafe_code, variant_size_differences )] #![cfg_attr(feature = "std", warn(missing_debug_implementations,))] // rand_xoshiro v0.4.0 is required for a zkp-stark example and v0.3.1 for criterion #![allow(clippy::multiple_crate_versions)] // TODO: Add `must_use` where relevant #![allow(clippy::must_use_candidate)]
// TODO: Provide two versions of hot functions `_inlined` and plain. #![allow(clippy::inline_always)] mod convert; pub mod fft; pub mod geometric_series; mod invert_batch; mod ops; mod prime_field; #[cfg(any(test, feature = "proptest"))] mod proptest; mod proth_field; #[cfg(feature = "rand")] mod rand; mod serde; mod traits; mod uint; // Generic field implementation pub use prime_field::{Parameters, PrimeField}; pub use zkp_u256::MontgomeryParameters; // The smallest 252-bit Proth field pub use proth_field::FieldElement; pub use invert_batch::{invert_batch, invert_batch_src_dst}; // Re-exports dependencies that are part of the public interface pub use zkp_u256 as u256; // Export and re-export traits // TODO: Create a prelude module that contains all the useful ones pub use traits::{Fft, FieldLike, RefFieldLike, Root, SquareRoot}; pub use zkp_u256::{AddInline, Inv, MulInline, NegInline, One, Pow, SquareInline, SubInline, Zero}; pub use uint::UInt; // Std/no-std imports #[cfg(not(feature = "std"))] extern crate no_std_compat as std;
// All `#[inline(always)]` attributes are carefully considered and benchmarked. // Performance is an important goal of this library.
map_view_simple_example.py
import tkinter import tkintermapview # create tkinter window root_tk = tkinter.Tk() root_tk.geometry(f"{1000}x{700}") root_tk.title("map_view_simple_example.py") # create map widget map_widget = tkintermapview.TkinterMapView(root_tk, width=1000, height=700, corner_radius=0) map_widget.pack(fill="both", expand=True) # set other tile server (standard is OpenStreetMap) # map_widget.set_tile_server("https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga", max_zoom=22) # google normal # map_widget.set_tile_server("https://mt0.google.com/vt/lyrs=s&hl=en&x={x}&y={y}&z={z}&s=Ga", max_zoom=22) # google satellite # set current position and zoom # map_widget.set_position(52.516268, 13.377695, marker=False) # Berlin, Germany # map_widget.set_zoom(17) # set current position with address # map_widget.set_address("Berlin Germany", marker=False) def
(marker): print(f"marker clicked - text: {marker.text} position: {marker.position}") # set a position marker (also with a custom color and command on click) marker_2 = map_widget.set_marker(52.516268, 13.377695, text="Brandenburger Tor", command=marker_click) marker_3 = map_widget.set_marker(52.55, 13.4, text="52.55, 13.4") # marker_3.set_position(...) # marker_3.set_text(...) # marker_3.delete() # set a path path_1 = map_widget.set_path([marker_2.position, marker_3.position, (52.568, 13.4), (52.569, 13.35)]) # path_1.add_position(...) # path_1.remove_position(...) # path_1.delete() root_tk.mainloop()
marker_click
example-3.e09449c1.js
parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot find module '"+t+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[t][1][r]||r},p.cache={};var l=r[t]=new f.Module(t);e[t][0].call(l.exports,p,l,l.exports,this)}return r[t].exports;function p(e){return f(p.resolve(e))}}f.isParcelRequire=!0,f.Module=function(e){this.id=e,this.bundle=f,this.exports={}},f.modules=e,f.cache=r,f.parent=o,f.register=function(r,t){e[r]=[function(e,r){r.exports=t},{}]};for(var c=0;c<t.length;c++)try{f(t[c])}catch(e){i||(i=e)}if(t.length){var l=f(t[t.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=l:"function"==typeof define&&define.amd?define(function(){return l}):n&&(this[n]=l)}if(parcelRequire=f,i)throw i;return f}({"J4Nk":[function(require,module,exports) { "use strict";var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;function n(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(r){return t[r]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}module.exports=o()?Object.assign:function(o,c){for(var a,i,s=n(o),f=1;f<arguments.length;f++){for(var u in a=Object(arguments[f]))t.call(a,u)&&(s[u]=a[u]);if(r){i=r(a);for(var b=0;b<i.length;b++)e.call(a,i[b])&&(s[i[b]]=a[i[b]])}}return s}; },{}],"awqi":[function(require,module,exports) { "use strict";var e=require("object-assign"),t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,i=t?Symbol.for("react.forward_ref"):60112,a=t?Symbol.for("react.suspense"):60113,s=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116;t&&Symbol.for("react.fundamental"),t&&Symbol.for("react.responder");var d="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t=e.message,r="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||v}function S(){}function _(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||v}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw m(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=b.prototype;var g=_.prototype=new S;g.constructor=_,e(g,b.prototype),g.isPureReactComponent=!0;var k={current:null},$={suspense:null},w={current:null},C=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o=void 0,u={},l=null,f=null;if(null!=t)for(o in void 0!==t.ref&&(f=t.ref),void 0!==t.key&&(l=""+t.key),t)C.call(t,o)&&!E.hasOwnProperty(o)&&(u[o]=t[o]);var c=arguments.length-2;if(1===c)u.children=n;else if(1<c){for(var i=Array(c),a=0;a<c;a++)i[a]=arguments[a+2];u.children=i}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===u[o]&&(u[o]=c[o]);return{$$typeof:r,type:e,key:l,ref:f,props:u,_owner:w.current}}function x(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function j(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g,A=[];function I(e,t,r,n){if(A.length){var o=A.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function U(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function q(e,t,o,u){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var f=!1;if(null===e)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f)return o(u,e,""===t?"."+F(e,0):t),1;if(f=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var i=t+F(l=e[c],c);f+=q(l,i,o,u)}else if(null===e||"object"!=typeof e?i=null:i="function"==typeof(i=d&&e[d]||e["@@iterator"])?i:null,"function"==typeof i)for(e=i.call(e),c=0;!(l=e.next()).done;)f+=q(l=l.value,i=t+F(l,c++),o,u);else if("object"===l)throw o=""+e,m(Error(31),"[object Object]"===o?"object with keys {"+Object.keys(e).join(", ")+"}":o,"");return f}function L(e,t,r){return null==e?0:q(e,"",t,r)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?j(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?V(e,n,r,function(e){return e}):null!=e&&(P(e)&&(e=x(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+r)),n.push(e))}function V(e,t,r,n,o){var u="";null!=r&&(u=(""+r).replace(O,"$&/")+"/"),L(e,D,t=I(t,u,n,o)),U(t)}function B(){var e=k.current;if(null===e)throw m(Error(321));return e}var N={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return V(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;L(e,M,t=I(null,null,t,r)),U(t)},count:function(e){return L(e,function(){return null},null)},toArray:function(e){var t=[];return V(e,t,null,function(e){return e}),t},only:function(e){if(!P(e))throw m(Error(143));return e}},createRef:function(){return{current:null}},Component:b,PureComponent:_,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:c,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:i,render:e}},lazy:function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,r){return B().useImperativeHandle(e,t,r)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,r){return B().useReducer(e,t,r)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:o,Profiler:l,StrictMode:u,Suspense:a,unstable_SuspenseList:s,createElement:R,cloneElement:function(t,n,o){if(null==t)throw m(Error(267),t);var u=void 0,l=e({},t.props),f=t.key,c=t.ref,i=t._owner;if(null!=n){void 0!==n.ref&&(c=n.ref,i=w.current),void 0!==n.key&&(f=""+n.key);var a=void 0;for(u in t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)C.call(n,u)&&!E.hasOwnProperty(u)&&(l[u]=void 0===n[u]&&void 0!==a?a[u]:n[u])}if(1===(u=arguments.length-2))l.children=o;else if(1<u){a=Array(u);for(var s=0;s<u;s++)a[s]=arguments[s+2];l.children=a}return{$$typeof:r,type:t.type,key:f,ref:c,props:l,_owner:i}},createFactory:function(e){var t=R.bind(null,e);return t.type=e,t},isValidElement:P,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var r=$.suspense;$.suspense=void 0===t?null:t;try{e()}finally{$.suspense=r}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:k,ReactCurrentBatchConfig:$,ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:e}},T={default:N},z=T&&N||T;module.exports=z.default||z; },{"object-assign":"J4Nk"}],"n8MK":[function(require,module,exports) { "use strict";module.exports=require("./cjs/react.production.min.js"); },{"./cjs/react.production.min.js":"awqi"}],"IvPb":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=void 0,n=void 0,t=void 0,r=void 0,o=void 0;if(exports.unstable_now=void 0,exports.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var i=null,l=null,u=function(){if(null!==i)try{var e=exports.unstable_now();i(!0,e),i=null}catch(n){throw setTimeout(u,0),n}};exports.unstable_now=function(){return Date.now()},e=function(n){null!==i?setTimeout(e,0,n):(i=n,setTimeout(u,0))},n=function(e,n){l=setTimeout(e,n)},t=function(){clearTimeout(l)},r=function(){return!1},o=exports.unstable_forceFrameRate=function(){}}else{var a=window.performance,s=window.Date,c=window.setTimeout,f=window.clearTimeout,p=window.requestAnimationFrame,x=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof p&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof x&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),exports.unstable_now="object"==typeof a&&"function"==typeof a.now?function(){return a.now()}:function(){return s.now()};var v=!1,b=null,w=-1,m=-1,d=33.33,y=-1,_=-1,h=0,T=!1;r=function(){return exports.unstable_now()>=h},o=function(){},exports.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(d=Math.floor(1e3/e),T=!0):(d=33.33,T=!1)};var k=function(){if(null!==b){var e=exports.unstable_now(),n=0<h-e;try{b(n,e)||(b=null)}catch(t){throw F.postMessage(null),t}}},g=new MessageChannel,F=g.port2;g.port1.onmessage=k;var P=function(e){if(null===b)_=y=-1,v=!1;else{v=!0,p(function(e){f(w),P(e)});var n=function(){h=exports.unstable_now()+d/2,k(),w=c(n,3*d)};if(w=c(n,3*d),-1!==y&&.1<e-y){var t=e-y;!T&&-1!==_&&t<d&&_<d&&(8.33>(d=t<_?_:t)&&(d=8.33)),_=t}y=e,h=e+d,F.postMessage(null)}};e=function(e){b=e,v||(v=!0,p(function(e){P(e)}))},n=function(e,n){m=c(function(){e(exports.unstable_now())},n)},t=function(){f(m),m=-1}}var M=null,C=null,A=null,L=3,R=!1,j=!1,q=!1;function D(e,n){var t=e.next;if(t===e)M=null;else{e===M&&(M=t);var r=e.previous;r.next=t,t.previous=r}e.next=e.previous=null,t=e.callback,r=L;var o=A;L=e.priorityLevel,A=e;try{var i=e.expirationTime<=n;switch(L){case 1:var l=t(i);break;case 2:case 3:case 4:l=t(i);break;case 5:l=t(i)}}catch(u){throw u}finally{L=r,A=o}if("function"==typeof l)if(n=e.expirationTime,e.callback=l,null===M)M=e.next=e.previous=e;else{l=null,i=M;do{if(n<=i.expirationTime){l=i;break}i=i.next}while(i!==M);null===l?l=M:l===M&&(M=e),(n=l.previous).next=l.previous=e,e.next=l,e.previous=n}}function E(e){if(null!==C&&C.startTime<=e)do{var n=C,t=n.next;if(n===t)C=null;else{C=t;var r=n.previous;r.next=t,t.previous=r}n.next=n.previous=null,O(n,n.expirationTime)}while(null!==C&&C.startTime<=e)}function I(t){q=!1,E(t),j||(null!==M?(j=!0,e(N)):null!==C&&n(I,C.startTime-t))}function N(e,o){j=!1,q&&(q=!1,t()),E(o),R=!0;try{if(e){if(null!==M)do{D(M,o),E(o=exports.unstable_now())}while(null!==M&&!r())}else for(;null!==M&&M.expirationTime<=o;)D(M,o),E(o=exports.unstable_now());return null!==M||(null!==C&&n(I,C.startTime-o),!1)}finally{R=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function O(e,n){if(null===M)M=e.next=e.previous=e;else{var t=null,r=M;do{if(n<r.expirationTime){t=r;break}r=r.next}while(r!==M);null===t?t=M:t===M&&(M=e),(n=t.previous).next=t.previous=e,e.next=t,e.previous=n}}var U=o;exports.unstable_ImmediatePriority=1,exports.unstable_UserBlockingPriority=2,exports.unstable_NormalPriority=3,exports.unstable_IdlePriority=5,exports.unstable_LowPriority=4,exports.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=L;L=e;try{return n()}finally{L=t}},exports.unstable_next=function(e){switch(L){case 1:case 2:case 3:var n=3;break;default:n=L}var t=L;L=n;try{return e()}finally{L=t}},exports.unstable_scheduleCallback=function(r,o,i){var l=exports.unstable_now();if("object"==typeof i&&null!==i){var u=i.delay;u="number"==typeof u&&0<u?l+u:l,i="number"==typeof i.timeout?i.timeout:B(r)}else i=B(r),u=l;if(r={callback:o,priorityLevel:r,startTime:u,expirationTime:i=u+i,next:null,previous:null},u>l){if(i=u,null===C)C=r.next=r.previous=r;else{o=null;var a=C;do{if(i<a.startTime){o=a;break}a=a.next}while(a!==C);null===o?o=C:o===C&&(C=r),(i=o.previous).next=o.previous=r,r.next=o,r.previous=i}null===M&&C===r&&(q?t():q=!0,n(I,u-l))}else O(r,i),j||R||(j=!0,e(N));return r},exports.unstable_cancelCallback=function(e){var n=e.next;if(null!==n){if(e===n)e===M?M=null:e===C&&(C=null);else{e===M?M=n:e===C&&(C=n);var t=e.previous;t.next=n,n.previous=t}e.next=e.previous=null}},exports.unstable_wrapCallback=function(e){var n=L;return function(){var t=L;L=n;try{return e.apply(this,arguments)}finally{L=t}}},exports.unstable_getCurrentPriorityLevel=function(){return L},exports.unstable_shouldYield=function(){var e=exports.unstable_now();return E(e),null!==A&&null!==M&&M.startTime<=e&&M.expirationTime<A.expirationTime||r()},exports.unstable_requestPaint=U,exports.unstable_continueExecution=function(){j||R||(j=!0,e(N))},exports.unstable_pauseExecution=function(){},exports.unstable_getFirstCallbackNode=function(){return M}; },{}],"MDSO":[function(require,module,exports) { "use strict";module.exports=require("./cjs/scheduler.production.min.js"); },{"./cjs/scheduler.production.min.js":"IvPb"}],"i17t":[function(require,module,exports) { "use strict";var e=require("react"),t=require("object-assign"),n=require("scheduler");function r(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!e)throw r(Error(227));var l=null,i={};function a(){if(l)for(var e in i){var t=i[e],n=l.indexOf(e);if(!(-1<n))throw r(Error(96),e);if(!u[n]){if(!t.extractEvents)throw r(Error(97),e);for(var a in u[n]=t,n=t.eventTypes){var s=void 0,f=n[a],d=t,p=a;if(c.hasOwnProperty(p))throw r(Error(99),p);c[p]=f;var h=f.phasedRegistrationNames;if(h){for(s in h)h.hasOwnProperty(s)&&o(h[s],d,p);s=!0}else f.registrationName?(o(f.registrationName,d,p),s=!0):s=!1;if(!s)throw r(Error(98),a,e)}}}}function o(e,t,n){if(s[e])throw r(Error(100),e);s[e]=t,f[e]=t.eventTypes[n].dependencies}var u=[],c={},s={},f={};function d(e,t,n,r,l,i,a,o,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(s){this.onError(s)}}var p=!1,h=null,m=!1,g=null,v={onError:function(e){p=!0,h=e}};function y(e,t,n,r,l,i,a,o,u){p=!1,h=null,d.apply(v,arguments)}function b(e,t,n,l,i,a,o,u,c){if(y.apply(this,arguments),p){if(!p)throw r(Error(198));var s=h;p=!1,h=null,m||(m=!0,g=s)}}var w=null,k=null,E=null;function x(e,t,n){var r=e.type||"unknown-event";e.currentTarget=E(n),b(r,t,void 0,e),e.currentTarget=null}function T(e,t){if(null==t)throw r(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function C(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var S=null;function _(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)x(e,t[r],n[r]);else t&&x(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function P(e){if(null!==e&&(S=T(S,e)),e=S,S=null,e){if(C(e,_),S)throw r(Error(95));if(m)throw e=g,m=!1,g=null,e}}var N={injectEventPluginOrder:function(e){if(l)throw r(Error(101));l=Array.prototype.slice.call(e),a()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var l=e[t];if(!i.hasOwnProperty(t)||i[t]!==l){if(i[t])throw r(Error(102),t);i[t]=l,n=!0}}n&&a()}};function z(e,t){var n=e.stateNode;if(!n)return null;var l=w(n);if(!l)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(l=!l.disabled)||(l=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!l;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw r(Error(231),t,typeof n);return n}var M=Math.random().toString(36).slice(2),U="__reactInternalInstance$"+M,R="__reactEventHandlers$"+M;function F(e){if(e[U])return e[U];for(;!e[U];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[U]).tag||6===e.tag?e:null}function I(e){return!(e=e[U])||5!==e.tag&&6!==e.tag?null:e}function D(e){if(5===e.tag||6===e.tag)return e.stateNode;throw r(Error(33))}function O(e){return e[R]||null}function L(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function A(e,t,n){(t=z(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function W(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=L(t);for(t=n.length;0<t--;)A(n[t],"captured",e);for(t=0;t<n.length;t++)A(n[t],"bubbled",e)}}function V(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=z(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=T(n._dispatchListeners,t),n._dispatchInstances=T(n._dispatchInstances,e))}function B(e){e&&e.dispatchConfig.registrationName&&V(e._targetInst,null,e)}function j(e){C(e,W)}var H=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function Q(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var K={animationend:Q("Animation","AnimationEnd"),animationiteration:Q("Animation","AnimationIteration"),animationstart:Q("Animation","AnimationStart"),transitionend:Q("Transition","TransitionEnd")},$={},q={};function Y(e){if($[e])return $[e];if(!K[e])return e;var t,n=K[e];for(t in n)if(n.hasOwnProperty(t)&&t in q)return $[e]=n[t];return e}H&&(q=document.createElement("div").style,"AnimationEvent"in window||(delete K.animationend.animation,delete K.animationiteration.animation,delete K.animationstart.animation),"TransitionEvent"in window||delete K.transitionend.transition);var X=Y("animationend"),G=Y("animationiteration"),Z=Y("animationstart"),J=Y("transitionend"),ee="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),te=null,ne=null,re=null;function le(){if(re)return re;var e,t,n=ne,r=n.length,l="value"in te?te.value:te.textContent,i=l.length;for(e=0;e<r&&n[e]===l[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===l[i-t];t++);return re=l.slice(e,1<t?1-t:void 0)}function ie(){return!0}function ae(){return!1}function oe(e,t,n,r){for(var l in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(l)&&((t=e[l])?this[l]=t(n):"target"===l?this.target=r:this[l]=n[l]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ie:ae,this.isPropagationStopped=ae,this}function ue(e,t,n,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,t,n,r),l}return new this(e,t,n,r)}function ce(e){if(!(e instanceof this))throw r(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function se(e){e.eventPool=[],e.getPooled=ue,e.release=ce}t(oe.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ie)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ie)},persist:function(){this.isPersistent=ie},isPersistent:ae,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ae,this._dispatchInstances=this._dispatchListeners=null}}),oe.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},oe.extend=function(e){function n(){}function r(){return l.apply(this,arguments)}var l=this;n.prototype=l.prototype;var i=new n;return t(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=t({},l.Interface,e),r.extend=l.extend,se(r),r},se(oe);var fe=oe.extend({data:null}),de=oe.extend({data:null}),pe=[9,13,27,32],he=H&&"CompositionEvent"in window,me=null;H&&"documentMode"in document&&(me=document.documentMode);var ge=H&&"TextEvent"in window&&!me,ve=H&&(!he||me&&8<me&&11>=me),ye=String.fromCharCode(32),be={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function ke(e,t){switch(e){case"keyup":return-1!==pe.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ee(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var xe=!1;function Te(e,t){switch(e){case"compositionend":return Ee(t);case"keypress":return 32!==t.which?null:(we=!0,ye);case"textInput":return(e=t.data)===ye&&we?null:e;default:return null}}function Ce(e,t){if(xe)return"compositionend"===e||!he&&ke(e,t)?(e=le(),re=ne=te=null,xe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ve&&"ko"!==t.locale?null:t.data;default:return null}}var Se={eventTypes:be,extractEvents:function(e,t,n,r){var l=void 0,i=void 0;if(he)e:{switch(e){case"compositionstart":l=be.compositionStart;break e;case"compositionend":l=be.compositionEnd;break e;case"compositionupdate":l=be.compositionUpdate;break e}l=void 0}else xe?ke(e,n)&&(l=be.compositionEnd):"keydown"===e&&229===n.keyCode&&(l=be.compositionStart);return l?(ve&&"ko"!==n.locale&&(xe||l!==be.compositionStart?l===be.compositionEnd&&xe&&(i=le()):(ne="value"in(te=r)?te.value:te.textContent,xe=!0)),l=fe.getPooled(l,t,n,r),i?l.data=i:null!==(i=Ee(n))&&(l.data=i),j(l),i=l):i=null,(e=ge?Te(e,n):Ce(e,n))?((t=de.getPooled(be.beforeInput,t,n,r)).data=e,j(t)):t=null,null===i?t:null===t?i:[i,t]}},_e=null,Pe=null,Ne=null;function ze(e){if(e=k(e)){if("function"!=typeof _e)throw r(Error(280));var t=w(e.stateNode);_e(e.stateNode,e.type,t)}}function Me(e){Pe?Ne?Ne.push(e):Ne=[e]:Pe=e}function Ue(){if(Pe){var e=Pe,t=Ne;if(Ne=Pe=null,ze(e),t)for(e=0;e<t.length;e++)ze(t[e])}}function Re(e,t){return e(t)}function Fe(e,t,n,r){return e(t,n,r)}function Ie(){}var De=Re,Oe=!1;function Le(){null===Pe&&null===Ne||(Ie(),Ue())}var Ae={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function We(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ae[e.type]:"textarea"===t}function Ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Be(e){if(!H)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function je(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function He(e){var t=je(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qe(e){e._valueTracker||(e._valueTracker=He(e))}function Ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=je(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var $e=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;$e.hasOwnProperty("ReactCurrentDispatcher")||($e.ReactCurrentDispatcher={current:null}),$e.hasOwnProperty("ReactCurrentBatchConfig")||($e.ReactCurrentBatchConfig={suspense:null});var qe=/^(.*)[\\\/]/,Ye="function"==typeof Symbol&&Symbol.for,Xe=Ye?Symbol.for("react.element"):60103,Ge=Ye?Symbol.for("react.portal"):60106,Ze=Ye?Symbol.for("react.fragment"):60107,Je=Ye?Symbol.for("react.strict_mode"):60108,et=Ye?Symbol.for("react.profiler"):60114,tt=Ye?Symbol.for("react.provider"):60109,nt=Ye?Symbol.for("react.context"):60110,rt=Ye?Symbol.for("react.concurrent_mode"):60111,lt=Ye?Symbol.for("react.forward_ref"):60112,it=Ye?Symbol.for("react.suspense"):60113,at=Ye?Symbol.for("react.suspense_list"):60120,ot=Ye?Symbol.for("react.memo"):60115,ut=Ye?Symbol.for("react.lazy"):60116;Ye&&Symbol.for("react.fundamental"),Ye&&Symbol.for("react.responder");var ct="function"==typeof Symbol&&Symbol.iterator;function st(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=ct&&e[ct]||e["@@iterator"])?e:null}function ft(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ze:return"Fragment";case Ge:return"Portal";case et:return"Profiler";case Je:return"StrictMode";case it:return"Suspense";case at:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case nt:return"Context.Consumer";case tt:return"Context.Provider";case lt:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ot:return ft(e.type);case ut:if(e=1===e._status?e._result:null)return ft(e)}return null}function dt(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,l=e._debugSource,i=ft(e.type);n=null,r&&(n=ft(r.type)),r=i,i="",l?i=" (at "+l.fileName.replace(qe,"")+":"+l.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var pt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ht=Object.prototype.hasOwnProperty,mt={},gt={};function vt(e){return!!ht.call(gt,e)||!ht.call(mt,e)&&(pt.test(e)?gt[e]=!0:(mt[e]=!0,!1))}function yt(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}function bt(e,t,n,r){if(null==t||yt(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function wt(e,t,n,r,l,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var kt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){kt[e]=new wt(e,0,!1,e,null,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];kt[t]=new wt(t,1,!1,e[1],null,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){kt[e]=new wt(e,2,!1,e.toLowerCase(),null,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){kt[e]=new wt(e,2,!1,e,null,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){kt[e]=new wt(e,3,!1,e.toLowerCase(),null,!1)}),["checked","multiple","muted","selected"].forEach(function(e){kt[e]=new wt(e,3,!0,e,null,!1)}),["capture","download"].forEach(function(e){kt[e]=new wt(e,4,!1,e,null,!1)}),["cols","rows","size","span"].forEach(function(e){kt[e]=new wt(e,6,!1,e,null,!1)}),["rowSpan","start"].forEach(function(e){kt[e]=new wt(e,5,!1,e.toLowerCase(),null,!1)});var Et=/[\-:]([a-z])/g;function xt(e){return e[1].toUpperCase()}function Tt(e,t,n,r){var l=kt.hasOwnProperty(t)?kt[t]:null;(null!==l?0===l.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(bt(t,n,l,r)&&(n=null),r||null===l?vt(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Ct(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function St(e,n){var r=n.checked;return t({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function _t(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Ct(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Pt(e,t){null!=(t=t.checked)&&Tt(e,"checked",t,!1)}function Nt(e,t){Pt(e,t);var n=Ct(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Mt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Mt(e,t.type,Ct(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function zt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Mt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Et,xt);kt[t]=new wt(t,1,!1,e,null,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Et,xt);kt[t]=new wt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Et,xt);kt[t]=new wt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)}),["tabIndex","crossOrigin"].forEach(function(e){kt[e]=new wt(e,1,!1,e.toLowerCase(),null,!1)}),kt.xlinkHref=new wt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach(function(e){kt[e]=new wt(e,1,!1,e.toLowerCase(),null,!0)});var Ut={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Rt(e,t,n){return(e=oe.getPooled(Ut.change,e,t,n)).type="change",Me(n),j(e),e}var Ft=null,It=null;function Dt(e){P(e)}function Ot(e){if(Ke(D(e)))return e}function Lt(e,t){if("change"===e)return t}var At=!1;function Wt(){Ft&&(Ft.detachEvent("onpropertychange",Vt),It=Ft=null)}function Vt(e){if("value"===e.propertyName&&Ot(It))if(e=Rt(It,e,Ve(e)),Oe)P(e);else{Oe=!0;try{Re(Dt,e)}finally{Oe=!1,Le()}}}function Bt(e,t,n){"focus"===e?(Wt(),It=n,(Ft=t).attachEvent("onpropertychange",Vt)):"blur"===e&&Wt()}function jt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Ot(It)}function Ht(e,t){if("click"===e)return Ot(t)}function Qt(e,t){if("input"===e||"change"===e)return Ot(t)}H&&(At=Be("input")&&(!document.documentMode||9<document.documentMode));var Kt={eventTypes:Ut,_isInputEventSupported:At,extractEvents:function(e,t,n,r){var l=t?D(t):window,i=void 0,a=void 0,o=l.nodeName&&l.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===l.type?i=Lt:We(l)?At?i=Qt:(i=jt,a=Bt):(o=l.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(i=Ht),i&&(i=i(e,t)))return Rt(i,n,r);a&&a(e,l,t),"blur"===e&&(e=l._wrapperState)&&e.controlled&&"number"===l.type&&Mt(l,"number",l.value)}},$t=oe.extend({view:null,detail:null}),qt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Yt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=qt[e])&&!!t[e]}function Xt(){return Yt}var Gt=0,Zt=0,Jt=!1,en=!1,tn=$t.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Xt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Gt;return Gt=e.screenX,Jt?"mousemove"===e.type?e.screenX-t:0:(Jt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Zt;return Zt=e.screenY,en?"mousemove"===e.type?e.screenY-t:0:(en=!0,0)}}),nn=tn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},ln={eventTypes:rn,extractEvents:function(e,t,n,r){var l="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(l&&(n.relatedTarget||n.fromElement)||!i&&!l)return null;if(l=r.window===r?r:(l=r.ownerDocument)?l.defaultView||l.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?F(t):null):i=null,i===t)return null;var a=void 0,o=void 0,u=void 0,c=void 0;"mouseout"===e||"mouseover"===e?(a=tn,o=rn.mouseLeave,u=rn.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=nn,o=rn.pointerLeave,u=rn.pointerEnter,c="pointer");var s=null==i?l:D(i);if(l=null==t?l:D(t),(e=a.getPooled(o,i,n,r)).type=c+"leave",e.target=s,e.relatedTarget=l,(n=a.getPooled(u,t,n,r)).type=c+"enter",n.target=l,n.relatedTarget=s,r=t,i&&r)e:{for(l=r,c=0,a=t=i;a;a=L(a))c++;for(a=0,u=l;u;u=L(u))a++;for(;0<c-a;)t=L(t),c--;for(;0<a-c;)l=L(l),a--;for(;c--;){if(t===l||t===l.alternate)break e;t=L(t),l=L(l)}t=null}else t=null;for(l=t,t=[];i&&i!==l&&(null===(c=i.alternate)||c!==l);)t.push(i),i=L(i);for(i=[];r&&r!==l&&(null===(c=r.alternate)||c!==l);)i.push(r),r=L(r);for(r=0;r<t.length;r++)V(t[r],"bubbled",e);for(r=i.length;0<r--;)V(i[r],"captured",n);return[e,n]}};function an(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var on=Object.prototype.hasOwnProperty;function un(e,t){if(an(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!on.call(t,n[r])||!an(e[n[r]],t[n[r]]))return!1;return!0}function cn(e,t){return{responder:e,props:t}}function sn(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function fn(e){if(2!==sn(e))throw r(Error(188))}function dn(e){var t=e.alternate;if(!t){if(3===(t=sn(e)))throw r(Error(188));return 1===t?null:e}for(var n=e,l=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(l=i.return)){n=l;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return fn(i),e;if(a===l)return fn(i),t;a=a.sibling}throw r(Error(188))}if(n.return!==l.return)n=i,l=a;else{for(var o=!1,u=i.child;u;){if(u===n){o=!0,n=i,l=a;break}if(u===l){o=!0,l=i,n=a;break}u=u.sibling}if(!o){for(u=a.child;u;){if(u===n){o=!0,n=a,l=i;break}if(u===l){o=!0,l=a,n=i;break}u=u.sibling}if(!o)throw r(Error(189))}}if(n.alternate!==l)throw r(Error(190))}if(3!==n.tag)throw r(Error(188));return n.stateNode.current===n?e:t}function pn(e){if(!(e=dn(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}new Map,new Map,new Set,new Map;var hn=oe.extend({animationName:null,elapsedTime:null,pseudoElement:null}),mn=oe.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gn=$t.extend({relatedTarget:null});function vn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},wn=$t.extend({key:function(e){if(e.key){var t=yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=vn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?bn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Xt,charCode:function(e){return"keypress"===e.type?vn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?vn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),kn=tn.extend({dataTransfer:null}),En=$t.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Xt}),xn=oe.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Tn=tn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Cn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[X,"animationEnd",2],[G,"animationIteration",2],[Z,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[J,"transitionEnd",2],["waiting","waiting",2]],Sn={},_n={},Pn=0;Pn<Cn.length;Pn++){var Nn=Cn[Pn],zn=Nn[0],Mn=Nn[1],Un=Nn[2],Rn="on"+(Mn[0].toUpperCase()+Mn.slice(1)),Fn={phasedRegistrationNames:{bubbled:Rn,captured:Rn+"Capture"},dependencies:[zn],eventPriority:Un};Sn[Mn]=Fn,_n[zn]=Fn}var In={eventTypes:Sn,getEventPriority:function(e){return void 0!==(e=_n[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var l=_n[e];if(!l)return null;switch(e){case"keypress":if(0===vn(n))return null;case"keydown":case"keyup":e=wn;break;case"blur":case"focus":e=gn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=kn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=En;break;case X:case G:case Z:e=hn;break;case J:e=xn;break;case"scroll":e=$t;break;case"wheel":e=Tn;break;case"copy":case"cut":case"paste":e=mn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=nn;break;default:e=oe}return j(t=e.getPooled(l,t,n,r)),t}},Dn=In.getEventPriority,On=[];function Ln(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=F(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var l=Ve(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,o=0;o<u.length;o++){var c=u[o];c&&(c=c.extractEvents(r,t,i,l))&&(a=T(a,c))}P(a)}}var An=!0;function Wn(e,t){Vn(t,e,!1)}function Vn(e,t,n){switch(Dn(t)){case 0:var r=Bn.bind(null,t,1);break;case 1:r=jn.bind(null,t,1);break;default:r=Hn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Bn(e,t,n){Oe||Ie();var r=Hn,l=Oe;Oe=!0;try{Fe(r,e,t,n)}finally{(Oe=l)||Le()}}function jn(e,t,n){Hn(e,t,n)}function Hn(e,t,n){if(An){if(null===(t=F(t=Ve(n)))||"number"!=typeof t.tag||2===sn(t)||(t=null),On.length){var r=On.pop();r.topLevelType=e,r.nativeEvent=n,r.targetInst=t,e=r}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,Oe)Ln(n,void 0);else{Oe=!0;try{De(Ln,n,void 0)}finally{Oe=!1,Le()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>On.length&&On.push(e)}}}var Qn=new("function"==typeof WeakMap?WeakMap:Map);function Kn(e){var t=Qn.get(e);return void 0===t&&(t=new Set,Qn.set(e,t)),t}function $n(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yn(e,t){var n,r=qn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qn(r)}}function Xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Gn(){for(var e=window,t=$n();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=$n((e=t.contentWindow).document)}return t}function Zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Jn=H&&"documentMode"in document&&11>=document.documentMode,er={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},tr=null,nr=null,rr=null,lr=!1;function ir(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return lr||null==tr||tr!==$n(n)?null:("selectionStart"in(n=tr)&&Zn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},rr&&un(rr,n)?null:(rr=n,(e=oe.getPooled(er.select,nr,e,t)).type="select",e.target=tr,j(e),e))}var ar={eventTypes:er,extractEvents:function(e,t,n,r){var l,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(l=!i)){e:{i=Kn(i),l=f.onSelect;for(var a=0;a<l.length;a++)if(!i.has(l[a])){i=!1;break e}i=!0}l=!i}if(l)return null;switch(i=t?D(t):window,e){case"focus":(We(i)||"true"===i.contentEditable)&&(tr=i,nr=t,rr=null);break;case"blur":rr=nr=tr=null;break;case"mousedown":lr=!0;break;case"contextmenu":case"mouseup":case"dragend":return lr=!1,ir(n,r);case"selectionchange":if(Jn)break;case"keydown":case"keyup":return ir(n,r)}return null}};function or(t){var n="";return e.Children.forEach(t,function(e){null!=e&&(n+=e)}),n}function ur(e,n){return e=t({children:void 0},n),(n=or(n.children))&&(e.children=n),e}function cr(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ct(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function sr(e,n){if(null!=n.dangerouslySetInnerHTML)throw r(Error(91));return t({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function fr(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw r(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw r(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:Ct(n)}}function dr(e,t){var n=Ct(t.value),r=Ct(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function pr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}N.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w=O,k=I,E=D,N.injectEventPluginsByName({SimpleEventPlugin:In,EnterLeaveEventPlugin:ln,ChangeEventPlugin:Kt,SelectEventPlugin:ar,BeforeInputEventPlugin:Se});var hr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function mr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?mr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var vr=void 0,yr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,l){MSApp.execUnsafeLocalFunction(function(){return e(t,n)})}:e}(function(e,t){if(e.namespaceURI!==hr.svg||"innerHTML"in e)e.innerHTML=t;else{for((vr=vr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=vr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function br(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var wr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kr=["Webkit","ms","Moz","O"];function Er(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||wr.hasOwnProperty(e)&&wr[e]?(""+t).trim():t+"px"}function xr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=Er(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(wr).forEach(function(e){kr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),wr[t]=wr[e]})});var Tr=t({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Cr(e,t){if(t){if(Tr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw r(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw r(Error(60));if(!("object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML))throw r(Error(61))}if(null!=t.style&&"object"!=typeof t.style)throw r(Error(62),"")}}function Sr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function _r(e,t){var n=Kn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=f[t];for(var r=0;r<t.length;r++){var l=t[r];if(!n.has(l)){switch(l){case"scroll":Vn(e,"scroll",!0);break;case"focus":case"blur":Vn(e,"focus",!0),Vn(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Be(l)&&Vn(e,l,!0);break;case"invalid":case"submit":case"reset":break;default:-1===ee.indexOf(l)&&Wn(l,e)}n.add(l)}}}function Pr(){}var Nr=null,zr=null;function Mr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ur(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Rr="function"==typeof setTimeout?setTimeout:void 0,Fr="function"==typeof clearTimeout?clearTimeout:void 0;function Ir(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Dr=[],Or=-1;function Lr(e){0>Or||(e.current=Dr[Or],Dr[Or]=null,Or--)}function Ar(e,t){Dr[++Or]=e.current,e.current=t}var Wr={},Vr={current:Wr},Br={current:!1},jr=Wr;function Hr(e,t){var n=e.type.contextTypes;if(!n)return Wr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,i={};for(l in n)i[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Qr(e){return null!=(e=e.childContextTypes)}function Kr(e){Lr(Br,e),Lr(Vr,e)}function $r(e){Lr(Br,e),Lr(Vr,e)}function qr(e,t,n){if(Vr.current!==Wr)throw r(Error(168));Ar(Vr,t,e),Ar(Br,n,e)}function Yr(e,n,l){var i=e.stateNode;if(e=n.childContextTypes,"function"!=typeof i.getChildContext)return l;for(var a in i=i.getChildContext())if(!(a in e))throw r(Error(108),ft(n)||"Unknown",a);return t({},l,i)}function Xr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Wr,jr=Vr.current,Ar(Vr,t,e),Ar(Br,Br.current,e),!0}function Gr(e,t,n){var l=e.stateNode;if(!l)throw r(Error(169));n?(t=Yr(e,t,jr),l.__reactInternalMemoizedMergedChildContext=t,Lr(Br,e),Lr(Vr,e),Ar(Vr,t,e)):Lr(Br,e),Ar(Br,n,e)}var Zr=n.unstable_runWithPriority,Jr=n.unstable_scheduleCallback,el=n.unstable_cancelCallback,tl=n.unstable_shouldYield,nl=n.unstable_requestPaint,rl=n.unstable_now,ll=n.unstable_getCurrentPriorityLevel,il=n.unstable_ImmediatePriority,al=n.unstable_UserBlockingPriority,ol=n.unstable_NormalPriority,ul=n.unstable_LowPriority,cl=n.unstable_IdlePriority,sl={},fl=void 0!==nl?nl:function(){},dl=null,pl=null,hl=!1,ml=rl(),gl=1e4>ml?rl:function(){return rl()-ml};function vl(){switch(ll()){case il:return 99;case al:return 98;case ol:return 97;case ul:return 96;case cl:return 95;default:throw r(Error(332))}}function yl(e){switch(e){case 99:return il;case 98:return al;case 97:return ol;case 96:return ul;case 95:return cl;default:throw r(Error(332))}}function bl(e,t){return e=yl(e),Zr(e,t)}function wl(e,t,n){return e=yl(e),Jr(e,t,n)}function kl(e){return null===dl?(dl=[e],pl=Jr(il,xl)):dl.push(e),sl}function El(){null!==pl&&el(pl),xl()}function xl(){if(!hl&&null!==dl){hl=!0;var e=0;try{var t=dl;bl(99,function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}}),dl=null}catch(n){throw null!==dl&&(dl=dl.slice(e+1)),Jr(il,El),n}finally{hl=!1}}}function Tl(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function Cl(e,n){if(e&&e.defaultProps)for(var r in n=t({},n),e=e.defaultProps)void 0===n[r]&&(n[r]=e[r]);return n}function Sl(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)}),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}var _l={current:null},Pl=null,Nl=null,zl=null;function Ml(){zl=Nl=Pl=null}function Ul(e,t){var n=e.type._context;Ar(_l,n._currentValue,e),n._currentValue=t}function Rl(e){var t=_l.current;Lr(_l,e),e.type._context._currentValue=t}function Fl(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function Il(e,t){Pl=e,zl=Nl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(ya=!0),e.firstContext=null)}function Dl(e,t){if(zl!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(zl=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Nl){if(null===Pl)throw r(Error(308));Nl=t,Pl.dependencies={expirationTime:0,firstContext:t,responders:null}}else Nl=Nl.next=t;return e._currentValue}var Ol=!1;function Ll(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Al(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Wl(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function Vl(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Bl(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,l=null;null===r&&(r=e.updateQueue=Ll(e.memoizedState))}else r=e.updateQueue,l=n.updateQueue,null===r?null===l?(r=e.updateQueue=Ll(e.memoizedState),l=n.updateQueue=Ll(n.memoizedState)):r=e.updateQueue=Al(l):null===l&&(l=n.updateQueue=Al(r));null===l||r===l?Vl(r,t):null===r.lastUpdate||null===l.lastUpdate?(Vl(r,t),Vl(l,t)):(Vl(r,t),l.lastUpdate=t)}function jl(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=Ll(e.memoizedState):Hl(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Hl(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Al(t)),t}function Ql(e,n,r,l,i,a){switch(r.tag){case 1:return"function"==typeof(e=r.payload)?e.call(a,l,i):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(i="function"==typeof(e=r.payload)?e.call(a,l,i):e))break;return t({},l,i);case 2:Ol=!0}return l}function Kl(e,t,n,r,l){Ol=!1;for(var i=(t=Hl(e,t)).baseState,a=null,o=0,u=t.firstUpdate,c=i;null!==u;){var s=u.expirationTime;s<l?(null===a&&(a=u,i=c),o<s&&(o=s)):(Jo(s,u.suspenseConfig),c=Ql(e,t,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(s=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<l?(null===s&&(s=u,null===a&&(i=c)),o<f&&(o=f)):(c=Ql(e,t,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===s?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===s&&(i=c),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=s,e.expirationTime=o,e.memoizedState=c}function $l(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),ql(t.firstEffect,n),t.firstEffect=t.lastEffect=null,ql(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function ql(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var l=t;if("function"!=typeof n)throw r(Error(191),n);n.call(l)}e=e.nextEffect}}var Yl=$e.ReactCurrentBatchConfig,Xl=(new e.Component).refs;function Gl(e,n,r,l){r=null==(r=r(l,n=e.memoizedState))?n:t({},n,r),e.memoizedState=r,null!==(l=e.updateQueue)&&0===e.expirationTime&&(l.baseState=r)}var Zl={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===sn(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Lo(),l=Yl.suspense;(l=Wl(r=Ao(r,e,l),l)).payload=t,null!=n&&(l.callback=n),Bl(e,l),Vo(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Lo(),l=Yl.suspense;(l=Wl(r=Ao(r,e,l),l)).tag=1,l.payload=t,null!=n&&(l.callback=n),Bl(e,l),Vo(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Lo(),r=Yl.suspense;(r=Wl(n=Ao(n,e,r),r)).tag=2,null!=t&&(r.callback=t),Bl(e,r),Vo(e,n)}};function Jl(e,t,n,r,l,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!un(n,r)||!un(l,i))}function ei(e,t,n){var r=!1,l=Wr,i=t.contextType;return"object"==typeof i&&null!==i?i=Dl(i):(l=Qr(t)?jr:Vr.current,i=(r=null!=(r=t.contextTypes))?Hr(e,l):Wr),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Zl,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function ti(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zl.enqueueReplaceState(t,t.state,null)}function ni(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=Xl;var i=t.contextType;"object"==typeof i&&null!==i?l.context=Dl(i):(i=Qr(t)?jr:Vr.current,l.context=Hr(e,i)),null!==(i=e.updateQueue)&&(Kl(e,i,n,l,r),l.state=e.memoizedState),"function"==typeof(i=t.getDerivedStateFromProps)&&(Gl(e,t,i,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&Zl.enqueueReplaceState(l,l.state,null),null!==(i=e.updateQueue)&&(Kl(e,i,n,l,r),l.state=e.memoizedState)),"function"==typeof l.componentDidMount&&(e.effectTag|=4)}var ri=Array.isArray;function li(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){n=n._owner;var l=void 0;if(n){if(1!==n.tag)throw r(Error(309));l=n.stateNode}if(!l)throw r(Error(147),e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=l.refs;t===Xl&&(t=l.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw r(Error(284));if(!n._owner)throw r(Error(290),e)}return e}function ii(e,t){if("textarea"!==e.type)throw r(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ai(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function l(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=yu(e,t,n)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=ku(n,e.mode,r)).return=e,t):((t=i(t,n,r)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props,r)).ref=li(e,t,n),r.return=e,r):((r=bu(n.type,n.key,n.props,null,e.mode,r)).ref=li(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Eu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[],r)).return=e,t)}function f(e,t,n,r,l){return null===t||7!==t.tag?((t=wu(n,e.mode,r,l)).return=e,t):((t=i(t,n,r)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=ku(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Xe:return(n=bu(t.type,t.key,t.props,null,e.mode,n)).ref=li(e,null,t),n.return=e,n;case Ge:return(t=Eu(t,e.mode,n)).return=e,t}if(ri(t)||st(t))return(t=wu(t,e.mode,n,null)).return=e,t;ii(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==l?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Xe:return n.key===l?n.type===Ze?f(e,t,n.props.children,r,l):c(e,t,n,r):null;case Ge:return n.key===l?s(e,t,n,r):null}if(ri(n)||st(n))return null!==l?null:f(e,t,n,r,null);ii(e,n)}return null}function h(e,t,n,r,l){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Xe:return e=e.get(null===r.key?n:r.key)||null,r.type===Ze?f(t,e,r.props.children,l,r.key):c(t,e,r,l);case Ge:return s(t,e=e.get(null===r.key?n:r.key)||null,r,l)}if(ri(r)||st(r))return f(t,e=e.get(n)||null,r,l,null);ii(t,r)}return null}function m(r,i,o,u){for(var c=null,s=null,f=i,m=i=0,g=null;null!==f&&m<o.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=p(r,f,o[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(r,f),i=a(v,i,m),null===s?c=v:s.sibling=v,s=v,f=g}if(m===o.length)return n(r,f),c;if(null===f){for(;m<o.length;m++)null!==(f=d(r,o[m],u))&&(i=a(f,i,m),null===s?c=f:s.sibling=f,s=f);return c}for(f=l(r,f);m<o.length;m++)null!==(g=h(f,r,m,o[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),i=a(g,i,m),null===s?c=g:s.sibling=g,s=g);return e&&f.forEach(function(e){return t(r,e)}),c}function g(i,o,u,c){var s=st(u);if("function"!=typeof s)throw r(Error(150));if(null==(u=s.call(u)))throw r(Error(151));for(var f=s=null,m=o,g=o=0,v=null,y=u.next();null!==m&&!y.done;g++,y=u.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(i,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),o=a(b,o,g),null===f?s=b:f.sibling=b,f=b,m=v}if(y.done)return n(i,m),s;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=d(i,y.value,c))&&(o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return s}for(m=l(i,m);!y.done;g++,y=u.next())null!==(y=h(m,i,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),o=a(y,o,g),null===f?s=y:f.sibling=y,f=y);return e&&m.forEach(function(e){return t(i,e)}),s}return function(e,l,a,u){var c="object"==typeof a&&null!==a&&a.type===Ze&&null===a.key;c&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case Xe:e:{for(s=a.key,c=l;null!==c;){if(c.key===s){if(7===c.tag?a.type===Ze:c.elementType===a.type){n(e,c.sibling),(l=i(c,a.type===Ze?a.props.children:a.props,u)).ref=li(e,c,a),l.return=e,e=l;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===Ze?((l=wu(a.props.children,e.mode,u,a.key)).return=e,e=l):((u=bu(a.type,a.key,a.props,null,e.mode,u)).ref=li(e,l,a),u.return=e,e=u)}return o(e);case Ge:e:{for(c=a.key;null!==l;){if(l.key===c){if(4===l.tag&&l.stateNode.containerInfo===a.containerInfo&&l.stateNode.implementation===a.implementation){n(e,l.sibling),(l=i(l,a.children||[],u)).return=e,e=l;break e}n(e,l);break}t(e,l),l=l.sibling}(l=Eu(a,e.mode,u)).return=e,e=l}return o(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==l&&6===l.tag?(n(e,l.sibling),(l=i(l,a,u)).return=e,e=l):(n(e,l),(l=ku(a,e.mode,u)).return=e,e=l),o(e);if(ri(a))return m(e,l,a,u);if(st(a))return g(e,l,a,u);if(s&&ii(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,r(Error(152),e.displayName||e.name||"Component")}return n(e,l)}}var oi=ai(!0),ui=ai(!1),ci={},si={current:ci},fi={current:ci},di={current:ci};function pi(e){if(e===ci)throw r(Error(174));return e}function hi(e,t){Ar(di,t,e),Ar(fi,e,e),Ar(si,ci,e);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gr(null,"");break;default:t=gr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}Lr(si,e),Ar(si,t,e)}function mi(e){Lr(si,e),Lr(fi,e),Lr(di,e)}function gi(e){pi(di.current);var t=pi(si.current),n=gr(t,e.type);t!==n&&(Ar(fi,e,e),Ar(si,n,e))}function vi(e){fi.current===e&&(Lr(si,e),Lr(fi,e))}var yi=1,bi=1,wi=2,ki={current:0};function Ei(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xi=0,Ti=2,Ci=4,Si=8,_i=16,Pi=32,Ni=64,zi=128,Mi=$e.ReactCurrentDispatcher,Ui=0,Ri=null,Fi=null,Ii=null,Di=null,Oi=null,Li=null,Ai=0,Wi=null,Vi=0,Bi=!1,ji=null,Hi=0;function Qi(){throw r(Error(321))}function Ki(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!an(e[n],t[n]))return!1;return!0}function $i(e,t,n,l,i,a){if(Ui=a,Ri=t,Ii=null!==e?e.memoizedState:null,Mi.current=null===Ii?aa:oa,t=n(l,i),Bi){do{Bi=!1,Hi+=1,Ii=null!==e?e.memoizedState:null,Li=Di,Wi=Oi=Fi=null,Mi.current=oa,t=n(l,i)}while(Bi);ji=null,Hi=0}if(Mi.current=ia,(e=Ri).memoizedState=Di,e.expirationTime=Ai,e.updateQueue=Wi,e.effectTag|=Vi,e=null!==Fi&&null!==Fi.next,Ui=0,Li=Oi=Di=Ii=Fi=Ri=null,Ai=0,Wi=null,Vi=0,e)throw r(Error(300));return t}function qi(){Mi.current=ia,Ui=0,Li=Oi=Di=Ii=Fi=Ri=null,Ai=0,Wi=null,Vi=0,Bi=!1,ji=null,Hi=0}function Yi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Oi?Di=Oi=e:Oi=Oi.next=e,Oi}function Xi(){if(null!==Li)Li=(Oi=Li).next,Ii=null!==(Fi=Ii)?Fi.next:null;else{if(null===Ii)throw r(Error(310));var e={memoizedState:(Fi=Ii).memoizedState,baseState:Fi.baseState,queue:Fi.queue,baseUpdate:Fi.baseUpdate,next:null};Oi=null===Oi?Di=e:Oi.next=e,Ii=Fi.next}return Oi}function Gi(e,t){return"function"==typeof t?t(e):t}function Zi(e){var t=Xi(),n=t.queue;if(null===n)throw r(Error(311));if(n.lastRenderedReducer=e,0<Hi){var l=n.dispatch;if(null!==ji){var i=ji.get(n);if(void 0!==i){ji.delete(n);var a=t.memoizedState;do{a=e(a,i.action),i=i.next}while(null!==i);return an(a,t.memoizedState)||(ya=!0),t.memoizedState=a,t.baseUpdate===n.last&&(t.baseState=a),n.lastRenderedState=a,[a,l]}}return[t.memoizedState,l]}l=n.last;var o=t.baseUpdate;if(a=t.baseState,null!==o?(null!==l&&(l.next=null),l=o.next):l=null!==l?l.next:null,null!==l){var u=i=null,c=l,s=!1;do{var f=c.expirationTime;f<Ui?(s||(s=!0,u=o,i=a),f>Ai&&(Ai=f)):(Jo(f,c.suspenseConfig),a=c.eagerReducer===e?c.eagerState:e(a,c.action)),o=c,c=c.next}while(null!==c&&c!==l);s||(u=o,i=a),an(a,t.memoizedState)||(ya=!0),t.memoizedState=a,t.baseUpdate=u,t.baseState=i,n.lastRenderedState=a}return[t.memoizedState,n.dispatch]}function Ji(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Wi?(Wi={lastEffect:null}).lastEffect=e.next=e:null===(t=Wi.lastEffect)?Wi.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Wi.lastEffect=e),e}function ea(e,t,n,r){var l=Yi();Vi|=e,l.memoizedState=Ji(t,n,void 0,void 0===r?null:r)}function ta(e,t,n,r){var l=Xi();r=void 0===r?null:r;var i=void 0;if(null!==Fi){var a=Fi.memoizedState;if(i=a.destroy,null!==r&&Ki(r,a.deps))return void Ji(xi,n,i,r)}Vi|=e,l.memoizedState=Ji(t,n,i,r)}function na(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ra(){}function la(e,t,n){if(!(25>Hi))throw r(Error(301));var l=e.alternate;if(e===Ri||null!==l&&l===Ri)if(Bi=!0,e={expirationTime:Ui,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===ji&&(ji=new Map),void 0===(n=ji.get(t)))ji.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var i=Lo(),a=Yl.suspense;a={expirationTime:i=Ao(i,e,a),suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.last;if(null===o)a.next=a;else{var u=o.next;null!==u&&(a.next=u),o.next=a}if(t.last=a,0===e.expirationTime&&(null===l||0===l.expirationTime)&&null!==(l=t.lastRenderedReducer))try{var c=t.lastRenderedState,s=l(c,n);if(a.eagerReducer=l,a.eagerState=s,an(s,c))return}catch(f){}Vo(e,i)}}var ia={readContext:Dl,useCallback:Qi,useContext:Qi,useEffect:Qi,useImperativeHandle:Qi,useLayoutEffect:Qi,useMemo:Qi,useReducer:Qi,useRef:Qi,useState:Qi,useDebugValue:Qi,useResponder:Qi},aa={readContext:Dl,useCallback:function(e,t){return Yi().memoizedState=[e,void 0===t?null:t],e},useContext:Dl,useEffect:function(e,t){return ea(516,zi|Ni,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ea(4,Ci|Pi,na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ea(4,Ci|Pi,e,t)},useMemo:function(e,t){var n=Yi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Yi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=la.bind(null,Ri,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Yi().memoizedState=e},useState:function(e){var t=Yi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:Gi,lastRenderedState:e}).dispatch=la.bind(null,Ri,e),[t.memoizedState,e]},useDebugValue:ra,useResponder:cn},oa={readContext:Dl,useCallback:function(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ki(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Dl,useEffect:function(e,t){return ta(516,zi|Ni,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,ta(4,Ci|Pi,na.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ta(4,Ci|Pi,e,t)},useMemo:function(e,t){var n=Xi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ki(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Zi,useRef:function(){return Xi().memoizedState},useState:function(e){return Zi(Gi,e)},useDebugValue:ra,useResponder:cn},ua=null,ca=null,sa=!1;function fa(e,t){var n=mu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function da(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function pa(e){if(sa){var t=ca;if(t){var n=t;if(!da(e,t)){if(!(t=Ir(n.nextSibling))||!da(e,t))return e.effectTag|=2,sa=!1,void(ua=e);fa(ua,n)}ua=e,ca=Ir(t.firstChild)}else e.effectTag|=2,sa=!1,ua=e}}function ha(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ua=e}function ma(e){if(e!==ua)return!1;if(!sa)return ha(e),sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ur(t,e.memoizedProps))for(t=ca;t;)fa(e,t),t=Ir(t.nextSibling);return ha(e),ca=ua?Ir(e.stateNode.nextSibling):null,!0}function ga(){ca=ua=null,sa=!1}var va=$e.ReactCurrentOwner,ya=!1;function ba(e,t,n,r){t.child=null===e?ui(t,null,n,r):oi(t,e.child,n,r)}function wa(e,t,n,r,l){n=n.render;var i=t.ref;return Il(t,l),r=$i(e,t,n,r,i,l),null===e||ya?(t.effectTag|=1,ba(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=l&&(e.expirationTime=0),Ua(e,t,l))}function ka(e,t,n,r,l,i){if(null===e){var a=n.type;return"function"!=typeof a||gu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=bu(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ea(e,t,a,r,l,i))}return a=e.child,l<i&&(l=a.memoizedProps,(n=null!==(n=n.compare)?n:un)(l,r)&&e.ref===t.ref)?Ua(e,t,i):(t.effectTag|=1,(e=yu(a,r,i)).ref=t.ref,e.return=t,t.child=e)}function Ea(e,t,n,r,l,i){return null!==e&&un(e.memoizedProps,r)&&e.ref===t.ref&&(ya=!1,l<i)?Ua(e,t,i):Ta(e,t,n,r,i)}function xa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ta(e,t,n,r,l){var i=Qr(n)?jr:Vr.current;return i=Hr(t,i),Il(t,l),n=$i(e,t,n,r,i,l),null===e||ya?(t.effectTag|=1,ba(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=l&&(e.expirationTime=0),Ua(e,t,l))}function Ca(e,t,n,r,l){if(Qr(n)){var i=!0;Xr(t)}else i=!1;if(Il(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ei(t,n,r,l),ni(t,n,r,l),r=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Dl(c):c=Hr(t,c=Qr(n)?jr:Vr.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==r||u!==c)&&ti(t,a,r,c),Ol=!1;var d=t.memoizedState;u=a.state=d;var p=t.updateQueue;null!==p&&(Kl(t,p,r,a,l),u=t.memoizedState),o!==r||d!==u||Br.current||Ol?("function"==typeof s&&(Gl(t,n,s,r),u=t.memoizedState),(o=Ol||Jl(t,n,o,r,d,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.effectTag|=4)):("function"==typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=o):("function"==typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,o=t.memoizedProps,a.props=t.type===t.elementType?o:Cl(t.type,o),u=a.context,"object"==typeof(c=n.contextType)&&null!==c?c=Dl(c):c=Hr(t,c=Qr(n)?jr:Vr.current),(f="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(o!==r||u!==c)&&ti(t,a,r,c),Ol=!1,u=t.memoizedState,d=a.state=u,null!==(p=t.updateQueue)&&(Kl(t,p,r,a,l),d=t.memoizedState),o!==r||u!==d||Br.current||Ol?("function"==typeof s&&(Gl(t,n,s,r),d=t.memoizedState),(s=Ol||Jl(t,n,o,r,u,d,c))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"==typeof a.componentDidUpdate&&(t.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=s):("function"!=typeof a.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Sa(e,t,n,r,i,l)}function Sa(e,t,n,r,l,i){xa(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return l&&Gr(t,n,!1),Ua(e,t,i);r=t.stateNode,va.current=t;var o=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=oi(t,e.child,null,i),t.child=oi(t,null,o,i)):ba(e,t,o,i),t.memoizedState=r.state,l&&Gr(t,n,!0),t.child}function _a(e){var t=e.stateNode;t.pendingContext?qr(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qr(e,t.context,!1),hi(e,t.containerInfo)}var Pa={};function Na(e,t,n){var r,l=t.mode,i=t.pendingProps,a=ki.current,o=null,u=!1;if((r=0!=(64&t.effectTag))||(r=0!=(a&wi)&&(null===e||null!==e.memoizedState)),r?(o=Pa,u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=bi),Ar(ki,a&=yi,t),null===e)if(u){if(i=i.fallback,(e=wu(null,l,0,null)).return=t,0==(2&t.mode))for(u=null!==t.memoizedState?t.child.child:t.child,e.child=u;null!==u;)u.return=e,u=u.sibling;(n=wu(i,l,n,null)).return=t,e.sibling=n,l=e}else l=n=ui(t,null,i.children,n);else{if(null!==e.memoizedState)if(l=(a=e.child).sibling,u){if(i=i.fallback,(n=yu(a,a.pendingProps,0)).return=t,0==(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;(i=yu(l,i,l.expirationTime)).return=t,n.sibling=i,l=n,n.childExpirationTime=0,n=i}else l=n=oi(t,a.child,i.children,n);else if(a=e.child,u){if(u=i.fallback,(i=wu(null,l,0,null)).return=t,i.child=a,null!==a&&(a.return=i),0==(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;(n=wu(u,l,n,null)).return=t,i.sibling=n,n.effectTag|=2,l=i,i.childExpirationTime=0}else n=l=oi(t,a,i.children,n);t.stateNode=e.stateNode}return t.memoizedState=o,t.child=l,n}function za(e,t,n,r,l){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:l}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=l)}function Ma(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(ba(e,t,r.children,n),0!=((r=ki.current)&wi))r=r&yi|wi,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),Fl(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=yi}if(Ar(ki,r,t),0==(2&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(r=n.alternate)&&null===Ei(r)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),za(t,!1,l,n,i);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(r=l.alternate)&&null===Ei(r)){t.child=l;break}r=l.sibling,l.sibling=n,n=l,l=r}za(t,!0,n,null,i);break;case"together":za(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ua(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw r(Error(153));if(null!==t.child){for(n=yu(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=yu(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ra(e){e.effectTag|=4}var Fa=void 0,Ia=void 0,Da=void 0,Oa=void 0;function La(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Aa(e){switch(e.tag){case 1:Qr(e.type)&&Kr(e);var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(mi(e),$r(e),0!=(64&(t=e.effectTag)))throw r(Error(285));return e.effectTag=-2049&t|64,e;case 5:return vi(e),null;case 13:return Lr(ki,e),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return Lr(ki,e),null;case 4:return mi(e),null;case 10:return Rl(e),null;default:return null}}function Wa(e,t){return{value:e,source:t,stack:dt(t)}}Fa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ia=function(){},Da=function(e,n,r,l,i){var a=e.memoizedProps;if(a!==l){var o=n.stateNode;switch(pi(si.current),e=null,r){case"input":a=St(o,a),l=St(o,l),e=[];break;case"option":a=ur(o,a),l=ur(o,l),e=[];break;case"select":a=t({},a,{value:void 0}),l=t({},l,{value:void 0}),e=[];break;case"textarea":a=sr(o,a),l=sr(o,l),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof l.onClick&&(o.onclick=Pr)}Cr(r,l),o=r=void 0;var u=null;for(r in a)if(!l.hasOwnProperty(r)&&a.hasOwnProperty(r)&&null!=a[r])if("style"===r){var c=a[r];for(o in c)c.hasOwnProperty(o)&&(u||(u={}),u[o]="")}else"dangerouslySetInnerHTML"!==r&&"children"!==r&&"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&"autoFocus"!==r&&(s.hasOwnProperty(r)?e||(e=[]):(e=e||[]).push(r,null));for(r in l){var f=l[r];if(c=null!=a?a[r]:void 0,l.hasOwnProperty(r)&&f!==c&&(null!=f||null!=c))if("style"===r)if(c){for(o in c)!c.hasOwnProperty(o)||f&&f.hasOwnProperty(o)||(u||(u={}),u[o]="");for(o in f)f.hasOwnProperty(o)&&c[o]!==f[o]&&(u||(u={}),u[o]=f[o])}else u||(e||(e=[]),e.push(r,u)),u=f;else"dangerouslySetInnerHTML"===r?(f=f?f.__html:void 0,c=c?c.__html:void 0,null!=f&&c!==f&&(e=e||[]).push(r,""+f)):"children"===r?c===f||"string"!=typeof f&&"number"!=typeof f||(e=e||[]).push(r,""+f):"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&(s.hasOwnProperty(r)?(null!=f&&_r(i,r),e||c===f||(e=[])):(e=e||[]).push(r,f))}u&&(e=e||[]).push("style",u),i=e,(n.updateQueue=i)&&Ra(n)}},Oa=function(e,t,n,r){n!==r&&Ra(t)};var Va="function"==typeof WeakSet?WeakSet:Set;function Ba(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=dt(n)),null!==n&&ft(n.type),t=t.value,null!==e&&1===e.tag&&ft(e.type);try{console.error(t)}catch(l){setTimeout(function(){throw l})}}function ja(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){ou(e,n)}}function Ha(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(n){ou(e,n)}else t.current=null}function Qa(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==xi){var l=r.destroy;r.destroy=void 0,void 0!==l&&l()}(r.tag&t)!==xi&&(l=r.create,r.destroy=l()),r=r.next}while(r!==n)}}function Ka(e,t){switch("function"==typeof du&&du(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var r=n.next;bl(97<t?97:t,function(){var t=r;do{var n=t.destroy;if(void 0!==n){var l=e;try{n()}catch(i){ou(l,i)}}t=t.next}while(t!==r)})}break;case 1:Ha(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&ja(e,t);break;case 5:Ha(e);break;case 4:Xa(e,t)}}function $a(e,t){for(var n=e;;)if(Ka(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function qa(e){return 5===e.tag||3===e.tag||4===e.tag}function Ya(e){e:{for(var t=e.return;null!==t;){if(qa(t)){var n=t;break e}t=t.return}throw r(Error(160))}switch(t=n.stateNode,n.tag){case 5:var l=!1;break;case 3:case 4:t=t.containerInfo,l=!0;break;default:throw r(Error(161))}16&n.effectTag&&(br(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||qa(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){var a=5===i.tag||6===i.tag;if(a||20===i.tag){var o=a?i.stateNode:i.stateNode.instance;if(n)if(l){var u=o;o=n,8===(a=t).nodeType?a.parentNode.insertBefore(u,o):a.insertBefore(u,o)}else t.insertBefore(o,n);else l?(8===(u=t).nodeType?(a=u.parentNode).insertBefore(o,u):(a=u).appendChild(o),null!=(u=u._reactRootContainer)||null!==a.onclick||(a.onclick=Pr)):t.appendChild(o)}else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Xa(e,t){for(var n=e,l=!1,i=void 0,a=void 0;;){if(!l){l=n.return;e:for(;;){if(null===l)throw r(Error(160));switch(i=l.stateNode,l.tag){case 5:a=!1;break e;case 3:case 4:i=i.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===n.tag||6===n.tag)if($a(n,t),a){var o=i,u=n.stateNode;8===o.nodeType?o.parentNode.removeChild(u):o.removeChild(u)}else i.removeChild(n.stateNode);else if(20===n.tag)u=n.stateNode.instance,$a(n,t),a?8===(o=i).nodeType?o.parentNode.removeChild(u):o.removeChild(u):i.removeChild(u);else if(4===n.tag){if(null!==n.child){i=n.stateNode.containerInfo,a=!0,n.child.return=n,n=n.child;continue}}else if(Ka(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;4===(n=n.return).tag&&(l=!1)}n.sibling.return=n.return,n=n.sibling}}function Ga(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Qa(Ci,Si,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var l=t.memoizedProps,i=null!==e?e.memoizedProps:l;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[R]=l,"input"===e&&"radio"===l.type&&null!=l.name&&Pt(n,l),Sr(e,i),t=Sr(e,l),i=0;i<a.length;i+=2){var o=a[i],u=a[i+1];"style"===o?xr(n,u):"dangerouslySetInnerHTML"===o?yr(n,u):"children"===o?br(n,u):Tt(n,o,u,t)}switch(e){case"input":Nt(n,l);break;case"textarea":dr(n,l);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!l.multiple,null!=(e=l.value)?cr(n,!!l.multiple,e,!1):t!==!!l.multiple&&(null!=l.defaultValue?cr(n,!!l.multiple,l.defaultValue,!0):cr(n,!!l.multiple,l.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw r(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?l=!1:(l=!0,n=t.child,To=gl()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,l?"function"==typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,i=null!=(i=e.memoizedProps.style)&&i.hasOwnProperty("display")?i.display:null,a.style.display=Er("display",i));else if(6===e.tag)e.stateNode.nodeValue=l?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}Za(t);break;case 19:Za(t);break;case 17:case 20:break;default:throw r(Error(163))}}function Za(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Va),t.forEach(function(t){var r=cu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}var Ja="function"==typeof WeakMap?WeakMap:Map;function eo(e,t,n){(n=Wl(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){_o||(_o=!0,Po=r),Ba(e,t)},n}function to(e,t,n){(n=Wl(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return Ba(e,t),r(l)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===No?No=new Set([this]):No.add(this),Ba(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var no=Math.ceil,ro=$e.ReactCurrentDispatcher,lo=$e.ReactCurrentOwner,io=0,ao=8,oo=16,uo=32,co=0,so=1,fo=2,po=3,ho=4,mo=io,go=null,vo=null,yo=0,bo=co,wo=1073741823,ko=1073741823,Eo=null,xo=!1,To=0,Co=500,So=null,_o=!1,Po=null,No=null,zo=!1,Mo=null,Uo=90,Ro=0,Fo=null,Io=0,Do=null,Oo=0;function Lo(){return(mo&(oo|uo))!==io?1073741821-(gl()/10|0):0!==Oo?Oo:Oo=1073741821-(gl()/10|0)}function Ao(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var l=vl();if(0==(4&t))return 99===l?1073741823:1073741822;if((mo&oo)!==io)return yo;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(l){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw r(Error(326))}return null!==go&&e===yo&&--e,e}var Wo=0;function Vo(e,t){if(50<Io)throw Io=0,Do=null,r(Error(185));if(null!==(e=Bo(e,t))){e.pingTime=0;var n=vl();if(1073741823===t)if((mo&ao)!==io&&(mo&(oo|uo))===io)for(var l=Zo(e,1073741823,!0);null!==l;)l=l(!0);else jo(e,99,1073741823),mo===io&&El();else jo(e,n,t);(4&mo)===io||98!==n&&99!==n||(null===Fo?Fo=new Map([[e,t]]):(void 0===(n=Fo.get(e))||n>t)&&Fo.set(e,t))}}function Bo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,l=null;if(null===r&&3===e.tag)l=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){l=r.stateNode;break}r=r.return}return null!==l&&(t>l.firstPendingTime&&(l.firstPendingTime=t),0===(e=l.lastPendingTime)||t<e)&&(l.lastPendingTime=t),l}function jo(e,t,n){if(e.callbackExpirationTime<n){var r=e.callbackNode;null!==r&&r!==sl&&el(r),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=kl(Ho.bind(null,e,Zo.bind(null,e,n))):(r=null,1!==n&&(r={timeout:10*(1073741821-n)-gl()}),e.callbackNode=wl(t,Ho.bind(null,e,Zo.bind(null,e,n)),r))}}function Ho(e,t,n){var r=e.callbackNode,l=null;try{return null!==(l=t(n))?Ho.bind(null,e,l):null}finally{null===l&&r===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Qo(){(mo&(1|oo|uo))===io&&($o(),lu())}function Ko(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(wl(97,function(){return n._onComplete(),null}),!0)}function $o(){if(null!==Fo){var e=Fo;Fo=null,e.forEach(function(e,t){kl(Zo.bind(null,t,e))}),El()}}function qo(e,t){var n=mo;mo|=1;try{return e(t)}finally{(mo=n)===io&&El()}}function Yo(e,t,n,r){var l=mo;mo|=4;try{return bl(98,e.bind(null,t,n,r))}finally{(mo=l)===io&&El()}}function Xo(e,t){var n=mo;mo&=-2,mo|=ao;try{return e(t)}finally{(mo=n)===io&&El()}}function Go(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Fr(n)),null!==vo)for(n=vo.return;null!==n;){var r=n;switch(r.tag){case 1:var l=r.type.childContextTypes;null!=l&&Kr(r);break;case 3:mi(r),$r(r);break;case 5:vi(r);break;case 4:mi(r);break;case 13:case 19:Lr(ki,r);break;case 10:Rl(r)}n=n.return}go=e,vo=yu(e.current,null,t),yo=t,bo=co,ko=wo=1073741823,Eo=null,xo=!1}function Zo(e,t,n){if((mo&(oo|uo))!==io)throw r(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return nu.bind(null,e);if(lu(),e!==go||t!==yo)Go(e,t);else if(bo===po)if(xo)Go(e,t);else{var l=e.lastPendingTime;if(l<t)return Zo.bind(null,e,l)}if(null!==vo){l=mo,mo|=oo;var i=ro.current;if(null===i&&(i=ia),ro.current=ia,n){if(1073741823!==t){var a=Lo();if(a<t)return mo=l,Ml(),ro.current=i,Zo.bind(null,e,a)}}else Oo=0;for(;;)try{if(n)for(;null!==vo;)vo=eu(vo);else for(;null!==vo&&!tl();)vo=eu(vo);break}catch(m){if(Ml(),qi(),null===(a=vo)||null===a.return)throw Go(e,t),mo=l,m;e:{var o=e,u=a.return,c=a,s=m,f=yo;if(c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var d=s,p=0!=(ki.current&bi);s=u;do{var h;if((h=13===s.tag)&&(null!==s.memoizedState?h=!1:h=void 0!==(h=s.memoizedProps).fallback&&(!0!==h.unstable_avoidThisFallback||!p)),h){if(null===(u=s.updateQueue)?((u=new Set).add(d),s.updateQueue=u):u.add(d),0==(2&s.mode)){s.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((f=Wl(1073741823,null)).tag=2,Bl(c,f))),c.expirationTime=1073741823;break e}c=o,o=f,null===(p=c.pingCache)?(p=c.pingCache=new Ja,u=new Set,p.set(d,u)):void 0===(u=p.get(d))&&(u=new Set,p.set(d,u)),u.has(o)||(u.add(o),c=uu.bind(null,c,d,o),d.then(c,c)),s.effectTag|=2048,s.expirationTime=f;break e}s=s.return}while(null!==s);s=Error((ft(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+dt(c))}bo!==ho&&(bo=so),s=Wa(s,c),c=u;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=f,jl(c,f=eo(c,s,f));break e;case 1:if(d=s,o=c.type,u=c.stateNode,0==(64&c.effectTag)&&("function"==typeof o.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===No||!No.has(u)))){c.effectTag|=2048,c.expirationTime=f,jl(c,f=to(c,d,f));break e}}c=c.return}while(null!==c)}vo=tu(a)}if(mo=l,Ml(),ro.current=i,null!==vo)return Zo.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ko(e,t))return null;switch(go=null,bo){case co:throw r(Error(328));case so:return(l=e.lastPendingTime)<t?Zo.bind(null,e,l):n?nu.bind(null,e):(Go(e,t),kl(Zo.bind(null,e,t)),null);case fo:return 1073741823===wo&&!n&&10<(n=To+Co-gl())?xo?(Go(e,t),Zo.bind(null,e,t)):(l=e.lastPendingTime)<t?Zo.bind(null,e,l):(e.timeoutHandle=Rr(nu.bind(null,e),n),null):nu.bind(null,e);case po:if(!n){if(xo)return Go(e,t),Zo.bind(null,e,t);if((n=e.lastPendingTime)<t)return Zo.bind(null,e,n);if(1073741823!==ko?n=10*(1073741821-ko)-gl():1073741823===wo?n=0:(n=10*(1073741821-wo)-5e3,0>(n=(l=gl())-n)&&(n=0),(t=10*(1073741821-t)-l)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*no(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Rr(nu.bind(null,e),n),null}return nu.bind(null,e);case ho:return!n&&1073741823!==wo&&null!==Eo&&(l=wo,0>=(t=0|(i=Eo).busyMinDurationMs)?t=0:(n=0|i.busyDelayMs,t=(l=gl()-(10*(1073741821-l)-(0|i.timeoutMs||5e3)))<=n?0:n+t-l),10<t)?(e.timeoutHandle=Rr(nu.bind(null,e),t),null):nu.bind(null,e);default:throw r(Error(329))}}function Jo(e,t){e<wo&&1<e&&(wo=e),null!==t&&e<ko&&1<e&&(ko=e,Eo=t)}function eu(e){var t=su(e.alternate,e,yo);return e.memoizedProps=e.pendingProps,null===t&&(t=tu(e)),lo.current=null,t}function tu(e){vo=e;do{var n=vo.alternate;if(e=vo.return,0==(1024&vo.effectTag)){e:{var l=n,i=yo,a=(n=vo).pendingProps;switch(n.tag){case 2:case 16:break;case 15:case 0:break;case 1:Qr(n.type)&&Kr(n);break;case 3:mi(n),$r(n),(i=n.stateNode).pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==l&&null!==l.child||(ma(n),n.effectTag&=-3),Ia(n);break;case 5:vi(n),i=pi(di.current);var o=n.type;if(null!==l&&null!=n.stateNode)Da(l,n,o,a,i),l.ref!==n.ref&&(n.effectTag|=128);else if(a){var u=pi(si.current);if(ma(n)){a=void 0,o=(l=n).stateNode;var c=l.type,f=l.memoizedProps;switch(o[U]=l,o[R]=f,c){case"iframe":case"object":case"embed":Wn("load",o);break;case"video":case"audio":for(var d=0;d<ee.length;d++)Wn(ee[d],o);break;case"source":Wn("error",o);break;case"img":case"image":case"link":Wn("error",o),Wn("load",o);break;case"form":Wn("reset",o),Wn("submit",o);break;case"details":Wn("toggle",o);break;case"input":_t(o,f),Wn("invalid",o),_r(i,"onChange");break;case"select":o._wrapperState={wasMultiple:!!f.multiple},Wn("invalid",o),_r(i,"onChange");break;case"textarea":fr(o,f),Wn("invalid",o),_r(i,"onChange")}for(a in Cr(c,f),d=null,f)f.hasOwnProperty(a)&&(u=f[a],"children"===a?"string"==typeof u?o.textContent!==u&&(d=["children",u]):"number"==typeof u&&o.textContent!==""+u&&(d=["children",""+u]):s.hasOwnProperty(a)&&null!=u&&_r(i,a));switch(c){case"input":Qe(o),zt(o,f,!0);break;case"textarea":Qe(o),pr(o,f);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(o.onclick=Pr)}i=d,l.updateQueue=i,null!==i&&Ra(n)}else{f=o,l=a,c=n,d=9===i.nodeType?i:i.ownerDocument,u===hr.html&&(u=mr(f)),u===hr.html?"script"===f?((f=d.createElement("div")).innerHTML="<script><\/script>",d=f.removeChild(f.firstChild)):"string"==typeof l.is?d=d.createElement(f,{is:l.is}):(d=d.createElement(f),"select"===f&&(f=d,l.multiple?f.multiple=!0:l.size&&(f.size=l.size))):d=d.createElementNS(u,f),(f=d)[U]=c,f[R]=l,Fa(l=f,n,!1,!1),c=l;var p=i,h=Sr(o,a);switch(o){case"iframe":case"object":case"embed":Wn("load",c),i=a;break;case"video":case"audio":for(i=0;i<ee.length;i++)Wn(ee[i],c);i=a;break;case"source":Wn("error",c),i=a;break;case"img":case"image":case"link":Wn("error",c),Wn("load",c),i=a;break;case"form":Wn("reset",c),Wn("submit",c),i=a;break;case"details":Wn("toggle",c),i=a;break;case"input":_t(c,a),i=St(c,a),Wn("invalid",c),_r(p,"onChange");break;case"option":i=ur(c,a);break;case"select":c._wrapperState={wasMultiple:!!a.multiple},i=t({},a,{value:void 0}),Wn("invalid",c),_r(p,"onChange");break;case"textarea":fr(c,a),i=sr(c,a),Wn("invalid",c),_r(p,"onChange");break;default:i=a}Cr(o,i),f=void 0,d=o,u=c;var m=i;for(f in m)if(m.hasOwnProperty(f)){var g=m[f];"style"===f?xr(u,g):"dangerouslySetInnerHTML"===f?null!=(g=g?g.__html:void 0)&&yr(u,g):"children"===f?"string"==typeof g?("textarea"!==d||""!==g)&&br(u,g):"number"==typeof g&&br(u,""+g):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?null!=g&&_r(p,f):null!=g&&Tt(u,f,g,h))}switch(o){case"input":Qe(c),zt(c,a,!1);break;case"textarea":Qe(c),pr(c,a);break;case"option":null!=a.value&&c.setAttribute("value",""+Ct(a.value));break;case"select":i=c,c=a,i.multiple=!!c.multiple,null!=(f=c.value)?cr(i,!!c.multiple,f,!1):null!=c.defaultValue&&cr(i,!!c.multiple,c.defaultValue,!0);break;default:"function"==typeof i.onClick&&(c.onclick=Pr)}Mr(o,a)&&Ra(n),n.stateNode=l}null!==n.ref&&(n.effectTag|=128)}else if(null===n.stateNode)throw r(Error(166));break;case 6:if(l&&null!=n.stateNode)Oa(l,n,l.memoizedProps,a);else{if("string"!=typeof a&&null===n.stateNode)throw r(Error(166));l=pi(di.current),pi(si.current),ma(n)?(i=n.stateNode,l=n.memoizedProps,i[U]=n,i.nodeValue!==l&&Ra(n)):(i=n,(l=(9===l.nodeType?l:l.ownerDocument).createTextNode(a))[U]=n,i.stateNode=l)}break;case 11:break;case 13:if(Lr(ki,n),a=n.memoizedState,0!=(64&n.effectTag)){n.expirationTime=i;break e}i=null!==a,a=!1,null===l?ma(n):(a=null!==(o=l.memoizedState),i||null===o||null!==(o=l.child.sibling)&&(null!==(c=n.firstEffect)?(n.firstEffect=o,o.nextEffect=c):(n.firstEffect=n.lastEffect=o,o.nextEffect=null),o.effectTag=8)),i&&!a&&0!=(2&n.mode)&&(null===l&&!0!==n.memoizedProps.unstable_avoidThisFallback||0!=(ki.current&bi)?bo===co&&(bo=fo):bo!==co&&bo!==fo||(bo=po)),(i||a)&&(n.effectTag|=4);break;case 7:case 8:case 12:break;case 4:mi(n),Ia(n);break;case 10:Rl(n);break;case 9:case 14:break;case 17:Qr(n.type)&&Kr(n);break;case 18:break;case 19:if(Lr(ki,n),null===(a=n.memoizedState))break;if(o=0!=(64&n.effectTag),null===(c=a.rendering)){if(o)La(a,!1);else if(bo!==co||null!==l&&0!=(64&l.effectTag))for(l=n.child;null!==l;){if(null!==(c=Ei(l))){for(n.effectTag|=64,La(a,!1),null!==(l=c.updateQueue)&&(n.updateQueue=l,n.effectTag|=4),n.firstEffect=n.lastEffect=null,l=n.child;null!==l;)o=i,(a=l).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(c=a.alternate)?(a.childExpirationTime=0,a.expirationTime=o,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=c.childExpirationTime,a.expirationTime=c.expirationTime,a.child=c.child,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,o=c.dependencies,a.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),l=l.sibling;Ar(ki,ki.current&yi|wi,n),n=n.child;break e}l=l.sibling}}else{if(!o)if(null!==(l=Ei(c))){if(n.effectTag|=64,o=!0,La(a,!0),null===a.tail&&"hidden"===a.tailMode){null!==(i=l.updateQueue)&&(n.updateQueue=i,n.effectTag|=4),null!==(n=n.lastEffect=a.lastEffect)&&(n.nextEffect=null);break}}else gl()>a.tailExpiration&&1<i&&(n.effectTag|=64,o=!0,La(a,!1),n.expirationTime=n.childExpirationTime=i-1);a.isBackwards?(c.sibling=n.child,n.child=c):(null!==(i=a.last)?i.sibling=c:n.child=c,a.last=c)}if(null!==a.tail){0===a.tailExpiration&&(a.tailExpiration=gl()+500),i=a.tail,a.rendering=i,a.tail=i.sibling,a.lastEffect=n.lastEffect,i.sibling=null,l=ki.current,Ar(ki,l=o?l&yi|wi:l&yi,n),n=i;break e}break;case 20:break;default:throw r(Error(156))}n=null}if(i=vo,1===yo||1!==i.childExpirationTime){for(l=0,a=i.child;null!==a;)(o=a.expirationTime)>l&&(l=o),(c=a.childExpirationTime)>l&&(l=c),a=a.sibling;i.childExpirationTime=l}if(null!==n)return n;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=vo.firstEffect),null!==vo.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=vo.firstEffect),e.lastEffect=vo.lastEffect),1<vo.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=vo:e.firstEffect=vo,e.lastEffect=vo))}else{if(null!==(n=Aa(vo,yo)))return n.effectTag&=1023,n;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(n=vo.sibling))return n;vo=e}while(null!==vo);return bo===co&&(bo=ho),null}function nu(e){var t=vl();return bl(99,ru.bind(null,e,t)),null!==Mo&&wl(97,function(){return lu(),null}),null}function ru(e,t){if(lu(),(mo&(oo|uo))!==io)throw r(Error(327));var n=e.finishedWork,l=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw r(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var i=n.expirationTime,a=n.childExpirationTime;if(i=a>i?a:i,e.firstPendingTime=i,i<e.lastPendingTime&&(e.lastPendingTime=i),e===go&&(vo=go=null,yo=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){a=mo,mo|=uo,lo.current=null,Nr=An;var o=Gn();if(Zn(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{var c=(u=(u=o.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var s=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(A){u=null;break e}var d=0,p=-1,h=-1,m=0,g=0,v=o,y=null;t:for(;;){for(var b;v!==u||0!==s&&3!==v.nodeType||(p=d+s),v!==f||0!==c&&3!==v.nodeType||(h=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===o)break t;if(y===u&&++m===s&&(p=d),y===f&&++g===c&&(h=d),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}u=-1===p||-1===h?null:{start:p,end:h}}else u=null}u=u||{start:0,end:0}}else u=null;zr={focusedElem:o,selectionRange:u},An=!1,So=i;do{try{for(;null!==So;){if(0!=(256&So.effectTag)){var w=So.alternate;switch((o=So).tag){case 0:case 11:case 15:Qa(Ti,xi,o);break;case 1:if(256&o.effectTag&&null!==w){var k=w.memoizedProps,E=w.memoizedState,x=o.stateNode,T=x.getSnapshotBeforeUpdate(o.elementType===o.type?k:Cl(o.type,k),E);x.__reactInternalSnapshotBeforeUpdate=T}break;case 3:case 5:case 6:case 4:case 17:break;default:throw r(Error(163))}}So=So.nextEffect}}catch(A){if(null===So)throw r(Error(330));ou(So,A),So=So.nextEffect}}while(null!==So);So=i;do{try{for(w=t;null!==So;){var C=So.effectTag;if(16&C&&br(So.stateNode,""),128&C){var S=So.alternate;if(null!==S){var _=S.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(14&C){case 2:Ya(So),So.effectTag&=-3;break;case 6:Ya(So),So.effectTag&=-3,Ga(So.alternate,So);break;case 4:Ga(So.alternate,So);break;case 8:Xa(k=So,w),k.return=null,k.child=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null;var P=k.alternate;null!==P&&(P.return=null,P.child=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null)}So=So.nextEffect}}catch(A){if(null===So)throw r(Error(330));ou(So,A),So=So.nextEffect}}while(null!==So);if(_=zr,S=Gn(),C=_.focusedElem,w=_.selectionRange,S!==C&&C&&C.ownerDocument&&Xn(C.ownerDocument.documentElement,C)){null!==w&&Zn(C)&&(S=w.start,void 0===(_=w.end)&&(_=S),"selectionStart"in C?(C.selectionStart=S,C.selectionEnd=Math.min(_,C.value.length)):(_=(S=C.ownerDocument||document)&&S.defaultView||window).getSelection&&(_=_.getSelection(),k=C.textContent.length,P=Math.min(w.start,k),w=void 0===w.end?P:Math.min(w.end,k),!_.extend&&P>w&&(k=w,w=P,P=k),k=Yn(C,P),E=Yn(C,w),k&&E&&(1!==_.rangeCount||_.anchorNode!==k.node||_.anchorOffset!==k.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)&&((S=S.createRange()).setStart(k.node,k.offset),_.removeAllRanges(),P>w?(_.addRange(S),_.extend(E.node,E.offset)):(S.setEnd(E.node,E.offset),_.addRange(S))))),S=[];for(_=C;_=_.parentNode;)1===_.nodeType&&S.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<S.length;C++)(_=S[C]).element.scrollLeft=_.left,_.element.scrollTop=_.top}zr=null,An=!!Nr,Nr=null,e.current=n,So=i;do{try{for(C=l;null!==So;){var N=So.effectTag;if(36&N){var z=So.alternate;switch(_=C,(S=So).tag){case 0:case 11:case 15:Qa(_i,Pi,S);break;case 1:var M=S.stateNode;if(4&S.effectTag)if(null===z)M.componentDidMount();else{var U=S.elementType===S.type?z.memoizedProps:Cl(S.type,z.memoizedProps);M.componentDidUpdate(U,z.memoizedState,M.__reactInternalSnapshotBeforeUpdate)}var R=S.updateQueue;null!==R&&$l(S,R,M,_);break;case 3:var F=S.updateQueue;if(null!==F){if(P=null,null!==S.child)switch(S.child.tag){case 5:P=S.child.stateNode;break;case 1:P=S.child.stateNode}$l(S,F,P,_)}break;case 5:var I=S.stateNode;null===z&&4&S.effectTag&&(_=I,Mr(S.type,S.memoizedProps)&&_.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw r(Error(163))}}if(128&N){var D=So.ref;if(null!==D){var O=So.stateNode;switch(So.tag){case 5:var L=O;break;default:L=O}"function"==typeof D?D(L):D.current=L}}512&N&&(zo=!0),So=So.nextEffect}}catch(A){if(null===So)throw r(Error(330));ou(So,A),So=So.nextEffect}}while(null!==So);So=null,fl(),mo=a}else e.current=n;if(zo)zo=!1,Mo=e,Ro=l,Uo=t;else for(So=i;null!==So;)t=So.nextEffect,So.nextEffect=null,So=t;if(0!==(t=e.firstPendingTime)?jo(e,N=Tl(N=Lo(),t),t):No=null,"function"==typeof fu&&fu(n.stateNode,l),1073741823===t?e===Do?Io++:(Io=0,Do=e):Io=0,_o)throw _o=!1,e=Po,Po=null,e;return(mo&ao)!==io?null:(El(),null)}function lu(){if(null===Mo)return!1;var e=Mo,t=Ro,n=Uo;return Mo=null,Ro=0,Uo=90,bl(97<n?97:n,iu.bind(null,e,t))}function iu(e){if((mo&(oo|uo))!==io)throw r(Error(331));var t=mo;for(mo|=uo,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:Qa(zi,xi,n),Qa(xi,Ni,n)}}catch(l){if(null===e)throw r(Error(330));ou(e,l)}n=e.nextEffect,e.nextEffect=null,e=n}return mo=t,El(),!0}function au(e,t,n){Bl(e,t=eo(e,t=Wa(n,t),1073741823)),null!==(e=Bo(e,1073741823))&&jo(e,99,1073741823)}function ou(e,t){if(3===e.tag)au(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){au(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===No||!No.has(r))){Bl(n,e=to(n,e=Wa(t,e),1073741823)),null!==(n=Bo(n,1073741823))&&jo(n,99,1073741823);break}}n=n.return}}function uu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),go===e&&yo===n?bo===po||bo===fo&&1073741823===wo&&gl()-To<Co?Go(e,yo):xo=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),jo(e,t=Tl(t=Lo(),n),n)))}function cu(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=Tl(n=Lo(),t=Ao(n,e,null)),null!==(e=Bo(e,t))&&jo(e,n,t)}var su=void 0;su=function(e,t,n){var l=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||Br.current)ya=!0;else if(l<n){switch(ya=!1,t.tag){case 3:_a(t),ga();break;case 5:if(gi(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Qr(t.type)&&Xr(t);break;case 4:hi(t,t.stateNode.containerInfo);break;case 10:Ul(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(l=t.child.childExpirationTime)&&l>=n?Na(e,t,n):(Ar(ki,ki.current&yi,t),null!==(t=Ua(e,t,n))?t.sibling:null);Ar(ki,ki.current&yi,t);break;case 19:if(l=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(l)return Ma(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Ar(ki,ki.current,t),!l)return null}return Ua(e,t,n)}}else ya=!1;switch(t.expirationTime=0,t.tag){case 2:if(l=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Hr(t,Vr.current),Il(t,n),i=$i(null,t,l,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,qi(),Qr(l)){var a=!0;Xr(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var o=l.getDerivedStateFromProps;"function"==typeof o&&Gl(t,l,o,e),i.updater=Zl,t.stateNode=i,i._reactInternalFiber=t,ni(t,l,e,n),t=Sa(null,t,l,!0,a,n)}else t.tag=0,ba(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Sl(i),t.type=i,a=t.tag=vu(i),e=Cl(i,e),a){case 0:t=Ta(null,t,i,e,n);break;case 1:t=Ca(null,t,i,e,n);break;case 11:t=wa(null,t,i,e,n);break;case 14:t=ka(null,t,i,Cl(i.type,e),l,n);break;default:throw r(Error(306),i,"")}return t;case 0:return l=t.type,i=t.pendingProps,Ta(e,t,l,i=t.elementType===l?i:Cl(l,i),n);case 1:return l=t.type,i=t.pendingProps,Ca(e,t,l,i=t.elementType===l?i:Cl(l,i),n);case 3:if(_a(t),null===(l=t.updateQueue))throw r(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,Kl(t,l,t.pendingProps,null,n),(l=t.memoizedState.element)===i?(ga(),t=Ua(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(ca=Ir(t.stateNode.containerInfo.firstChild),ua=t,i=sa=!0),i?(t.effectTag|=2,t.child=ui(t,null,l,n)):(ba(e,t,l,n),ga()),t=t.child),t;case 5:return gi(t),null===e&&pa(t),l=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,Ur(l,i)?o=null:null!==a&&Ur(l,a)&&(t.effectTag|=16),xa(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ba(e,t,o,n),t=t.child),t;case 6:return null===e&&pa(t),null;case 13:return Na(e,t,n);case 4:return hi(t,t.stateNode.containerInfo),l=t.pendingProps,null===e?t.child=oi(t,null,l,n):ba(e,t,l,n),t.child;case 11:return l=t.type,i=t.pendingProps,wa(e,t,l,i=t.elementType===l?i:Cl(l,i),n);case 7:return ba(e,t,t.pendingProps,n),t.child;case 8:case 12:return ba(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(l=t.type._context,i=t.pendingProps,o=t.memoizedProps,Ul(t,a=i.value),null!==o){var u=o.value;if(0===(a=an(u,a)?0:0|("function"==typeof l._calculateChangedBits?l._calculateChangedBits(u,a):1073741823))){if(o.children===i.children&&!Br.current){t=Ua(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){o=u.child;for(var s=c.firstContext;null!==s;){if(s.context===l&&0!=(s.observedBits&a)){1===u.tag&&((s=Wl(n,null)).tag=2,Bl(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),Fl(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}s=s.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}}ba(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,l=(a=t.pendingProps).children,Il(t,n),l=l(i=Dl(i,a.unstable_observedBits)),t.effectTag|=1,ba(e,t,l,n),t.child;case 14:return a=Cl(i=t.type,t.pendingProps),ka(e,t,i,a=Cl(i.type,a),l,n);case 15:return Ea(e,t,t.type,t.pendingProps,l,n);case 17:return l=t.type,i=t.pendingProps,i=t.elementType===l?i:Cl(l,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Qr(l)?(e=!0,Xr(t)):e=!1,Il(t,n),ei(t,l,i,n),ni(t,l,i,n),Sa(null,t,l,!0,e,n);case 19:return Ma(e,t,n)}throw r(Error(156))};var fu=null,du=null;function pu(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);fu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(r){}},du=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}return!0}function hu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function mu(e,t,n,r){return new hu(e,t,n,r)}function gu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function vu(e){if("function"==typeof e)return gu(e)?1:0;if(null!=e){if((e=e.$$typeof)===lt)return 11;if(e===ot)return 14}return 2}function yu(e,t){var n=e.alternate;return null===n?((n=mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function bu(e,t,n,l,i,a){var o=2;if(l=e,"function"==typeof e)gu(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case Ze:return wu(n.children,i,a,t);case rt:o=8,i|=7;break;case Je:o=8,i|=1;break;case et:return(e=mu(12,n,t,8|i)).elementType=et,e.type=et,e.expirationTime=a,e;case it:return(e=mu(13,n,t,i)).type=it,e.elementType=it,e.expirationTime=a,e;case at:return(e=mu(19,n,t,i)).elementType=at,e.expirationTime=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case tt:o=10;break e;case nt:o=9;break e;case lt:o=11;break e;case ot:o=14;break e;case ut:o=16,l=null;break e}throw r(Error(130),null==e?e:typeof e,"")}return(t=mu(o,n,t,i)).elementType=e,t.type=l,t.expirationTime=a,t}function wu(e,t,n,r){return(e=mu(7,e,r,t)).expirationTime=n,e}function ku(e,t,n){return(e=mu(6,e,null,t)).expirationTime=n,e}function Eu(e,t,n){return(t=mu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function xu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function Tu(e,t,n){return e=new xu(e,t,n),t=mu(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function Cu(e,t,n,l,i,a){var o=t.current;e:if(n){t:{if(2!==sn(n=n._reactInternalFiber)||1!==n.tag)throw r(Error(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(Qr(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw r(Error(171))}if(1===n.tag){var c=n.type;if(Qr(c)){n=Yr(n,c,u);break e}}n=u}else n=Wr;return null===t.context?t.context=n:t.pendingContext=n,t=a,(i=Wl(l,i)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),Bl(o,i),Vo(o,l),l}function Su(e,t,n,r){var l=t.current,i=Lo(),a=Yl.suspense;return Cu(e,t,n,l=Ao(i,l,a),a,r)}function _u(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Pu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ge,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Nu(e){var t=1073741821-25*(1+((1073741821-Lo()+500)/25|0));t<=Wo&&--t,this._expirationTime=Wo=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function zu(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Mu(e,t,n){this._internalRoot=Tu(e,t,n)}function Uu(e,t){this._internalRoot=Tu(e,2,t)}function Ru(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Fu(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Mu(e,0,t)}function Iu(e,t,n,r,l){var i=n._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"==typeof l){var o=l;l=function(){var e=_u(a);o.call(e)}}Su(t,a,e,l)}else{if(i=n._reactRootContainer=Fu(n,r),a=i._internalRoot,"function"==typeof l){var u=l;l=function(){var e=_u(a);u.call(e)}}Xo(function(){Su(t,a,e,l)})}return _u(a)}function Du(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ru(t))throw r(Error(200));return Pu(e,t,null,n)}_e=function(e,t,n){switch(t){case"input":if(Nt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var i=O(l);if(!i)throw r(Error(90));Ke(l),Nt(l,i)}}}break;case"textarea":dr(e,n);break;case"select":null!=(t=n.value)&&cr(e,!!n.multiple,t,!1)}},Nu.prototype.render=function(e){if(!this._defer)throw r(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,l=new zu;return Cu(e,t,null,n,null,l._onCommit),l},Nu.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},Nu.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw r(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var l=null,i=t;i!==this;)l=i,i=i._next;if(null===l)throw r(Error(251));l._next=i._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(mo&(oo|uo))!==io)throw r(Error(253));kl(Zo.bind(null,e,t)),El(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},Nu.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},zu.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},zu.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)throw r(Error(191),n);n()}}},Uu.prototype.render=Mu.prototype.render=function(e,t){var n=this._internalRoot,r=new zu;return null!==(t=void 0===t?null:t)&&r.then(t),Su(e,n,null,r._onCommit),r},Uu.prototype.unmount=Mu.prototype.unmount=function(e){var t=this._internalRoot,n=new zu;return null!==(e=void 0===e?null:e)&&n.then(e),Su(null,t,null,n._onCommit),n},Uu.prototype.createBatch=function(){var e=new Nu(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Re=qo,Fe=Yo,Ie=Qo,De=function(e,t){var n=mo;mo|=2;try{return e(t)}finally{(mo=n)===io&&El()}};var Ou={createPortal:Du,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw r(Error(188));throw r(Error(268),Object.keys(e))}e=null===(e=pn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!Ru(t))throw r(Error(200));return Iu(null,e,t,!0,n)},render:function(e,t,n){if(!Ru(t))throw r(Error(200));return Iu(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,l){if(!Ru(n))throw r(Error(200));if(null==e||void 0===e._reactInternalFiber)throw r(Error(38));return Iu(e,t,n,!1,l)},unmountComponentAtNode:function(e){if(!Ru(e))throw r(Error(40));return!!e._reactRootContainer&&(Xo(function(){Iu(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return Du.apply(void 0,arguments)},unstable_batchedUpdates:qo,unstable_interactiveUpdates:function(e,t,n,r){return Qo(),Yo(e,t,n,r)},unstable_discreteUpdates:Yo,unstable_flushDiscreteUpdates:Qo,flushSync:function(e,t){if((mo&(oo|uo))!==io)throw r(Error(187));var n=mo;mo|=1;try{return bl(99,e.bind(null,t))}finally{mo=n,El()}},unstable_createRoot:Lu,unstable_createSyncRoot:Au,unstable_flushControlled:function(e){var t=mo;mo|=1;try{bl(99,e)}finally{(mo=t)===io&&El()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[I,D,O,N.injectEventPluginsByName,c,j,function(e){C(e,B)},Me,Ue,Hn,P,lu,{current:!1}]}};function Lu(e,t){if(!Ru(e))throw r(Error(299),"unstable_createRoot");return new Uu(e,null!=t&&!0===t.hydrate)}function Au(e,t){if(!Ru(e))throw r(Error(299),"unstable_createRoot");return new Mu(e,1,null!=t&&!0===t.hydrate)}!function(e){var n=e.findFiberByHostInstance;pu(t({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$e.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=pn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return n?n(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:F,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"});var Wu={default:Ou},Vu=Wu&&Ou||Wu;module.exports=Vu.default||Vu; },{"react":"n8MK","object-assign":"J4Nk","scheduler":"MDSO"}],"NKHc":[function(require,module,exports) { "use strict";function _(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_)}catch(O){console.error(O)}}}_(),module.exports=require("./cjs/react-dom.production.min.js"); },{"./cjs/react-dom.production.min.js":"i17t"}],"ZNNI":[function(require,module,exports) { "use strict";function e(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?exports.b=e=function(e){return typeof e}:exports.b=e=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function n(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(r,!0).forEach(function(t){o(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}function f(e){return exports.i=f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function a(e,t){if(null==e)return{};var r,n,o=l(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?b(e):t}function y(e){return O(e)||j(e)||g()}function O(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}function j(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function g(){throw new TypeError("Invalid attempt to spread non-iterable instance")}Object.defineProperty(exports,"__esModule",{value:!0}),exports._=y,exports.a=c,exports.b=e,exports.c=n,exports.d=a,exports.e=t,exports.f=o,exports.g=u,exports.h=s,exports.i=f,exports.j=b; },{}],"xmNH":[function(require,module,exports) { "use strict";function e(e){var o,r=e.Symbol;return"function"==typeof r?r.observable?o=r.observable:(o=r("observable"),r.observable=o):o="@@observable",o}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e; },{}],"G8eR":[function(require,module,exports) { var global = arguments[3]; var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var d,o=t(require("./ponyfill.js"));function t(e){return e&&e.__esModule?e:{default:e}}d="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof module?module:Function("return this")();var u=(0,o.default)(d),n=u;exports.default=n; },{"./ponyfill.js":"xmNH"}],"OV4J":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.applyMiddleware=w,exports.bindActionCreators=p,exports.combineReducers=f,exports.compose=b,exports.createStore=i,exports.__DO_NOT_USE__ActionTypes=void 0;var e=t(require("symbol-observable"));function t(e){return e&&e.__esModule?e:{default:e}}var r=function(){return Math.random().toString(36).substring(7).split("").join(".")},n={INIT:"@@redux/INIT"+r(),REPLACE:"@@redux/REPLACE"+r(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+r()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function i(t,r,u){var c;if("function"==typeof r&&"function"==typeof u||"function"==typeof u&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof r&&void 0===u&&(u=r,r=void 0),void 0!==u){if("function"!=typeof u)throw new Error("Expected the enhancer to be a function.");return u(i)(t,r)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var a=t,s=r,f=[],d=f,p=!1;function l(){d===f&&(d=f.slice())}function h(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return s}function y(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return l(),d.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,l();var r=d.indexOf(e);d.splice(r,1)}}}function b(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,s=a(s,e)}finally{p=!1}for(var t=f=d,r=0;r<t.length;r++){(0,t[r])()}return e}return b({type:n.INIT}),(c={dispatch:b,subscribe:y,getState:h,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");a=e,b({type:n.REPLACE})}})[e.default]=function(){var t,r=y;return(t={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function t(){e.next&&e.next(h())}return t(),{unsubscribe:r(t)}}})[e.default]=function(){return this},t},c}function u(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(t){}}function c(e,t){var r=t&&t.type;return"Given "+(r&&'action "'+String(r)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function a(e,t,r,i){var u=Object.keys(t),c=r&&r.type===n.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===u.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!o(e))return"The "+c+' has unexpected type of "'+{}.toString.call(e).match(/\s([a-z|A-Z]+)/)[1]+'". Expected argument to be an object with the following keys: "'+u.join('", "')+'"';var a=Object.keys(e).filter(function(e){return!t.hasOwnProperty(e)&&!i[e]});return a.forEach(function(e){i[e]=!0}),r&&r.type===n.REPLACE?void 0:a.length>0?"Unexpected "+(a.length>1?"keys":"key")+' "'+a.join('", "')+'" found in '+c+'. Expected to find one of the known reducer keys instead: "'+u.join('", "')+'". Unexpected keys will be ignored.':void 0}function s(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:n.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:n.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+n.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function f(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];0,"function"==typeof e[o]&&(r[o]=e[o])}var i,u=Object.keys(r);try{s(r)}catch(a){i=a}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var n=!1,o={},a=0;a<u.length;a++){var s=u[a],f=r[s],d=e[s],p=f(d,t);if(void 0===p){var l=c(s,t);throw new Error(l)}o[s]=p,n=n||p!==d}return n?o:e}}function d(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return d(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var r={};for(var n in e){var o=e[n];"function"==typeof o&&(r[n]=d(o,t))}return r}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(r,!0).forEach(function(t){l(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function b(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function w(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),n=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:r.getState,dispatch:function(){return n.apply(void 0,arguments)}},i=t.map(function(e){return e(o)});return y({},r,{dispatch:n=b.apply(void 0,i)(r.dispatch)})}}}function v(){}exports.__DO_NOT_USE__ActionTypes=n; },{"symbol-observable":"G8eR"}],"pBGv":[function(require,module,exports) { var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}; },{}],"SPuX":[function(require,module,exports) { var process = require("process"); var e=require("process");Object.defineProperty(exports,"__esModule",{value:!0}),exports.original=c,exports.isDraft=s,exports.isDraftable=u,exports.default=exports.immerable=exports.nothing=exports.Immer=exports.applyPatches=exports.setUseProxies=exports.setAutoFreeze=exports.produce=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),o=function(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e},i="undefined"!=typeof Symbol?Symbol("immer-nothing"):o({},"immer-nothing",!0);exports.nothing=i;var a="undefined"!=typeof Symbol?Symbol("immer-draftable"):"__$immer_draftable";exports.immerable=a;var f="undefined"!=typeof Symbol?Symbol("immer-state"):"__$immer_state";function s(e){return!!e&&!!e[f]}function u(e){if(!e||"object"!==(void 0===e?"undefined":r(e)))return!1;if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype||(!!e[a]||!!e.constructor[a])}function c(e){if(e&&e[f])return e[f].base}var l=Object.assign||function(e,r){for(var t in r)v(r,t)&&(e[t]=r[t]);return e},p="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function d(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Array.isArray(e))return e.slice();var t=Object.create(Object.getPrototypeOf(e));return p(e).forEach(function(n){if(n!==f){var o=Object.getOwnPropertyDescriptor(e,n);if(o.get){if(!r)throw new Error("Immer drafts cannot have computed properties");o.value=o.get.call(e)}o.enumerable?t[n]=o.value:Object.defineProperty(t,n,{value:o.value,writable:!0,configurable:!0})}}),t}function h(e,r){if(Array.isArray(e))for(var t=0;t<e.length;t++)r(t,e[t],e);else p(e).forEach(function(t){return r(t,e[t],e)})}function y(e,r){return Object.getOwnPropertyDescriptor(e,r).enumerable}function v(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function b(e,r){return e===r?0!==e||1/e==1/r:e!=e&&r!=r}var g={},m=[],w=function(){return m[m.length-1]};function O(e,r,t){var n=w();n.forEach(function(e){return e.finalizing=!0}),void 0!==e&&e!==r||(t&&_(r),I(n))}function P(e,r){var t=Array.isArray(e),n=S(e);h(n,function(r){D(n,r,t||y(e,r))});var o={scope:r?r.scope:w(),modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:r,base:e,draft:n,copy:null,revoke:j,revoked:!1};return R(n,f,o),o.scope.push(o),n}function j(){this.revoked=!0}function x(e){return e.copy||e.base}function z(e,r){F(e);var t=x(e)[r];return!e.finalizing&&t===e.base[r]&&u(t)?(E(e),e.copy[r]=P(t,e)):t}function A(e,r,t){if(F(e),e.assigned[r]=!0,!e.modified){if(b(x(e)[r],t))return;k(e),E(e)}e.copy[r]=t}function k(e){e.modified||(e.modified=!0,e.parent&&k(e.parent))}function E(e){e.copy||(e.copy=S(e.base))}function S(e){var r=e&&e[f];if(r){r.finalizing=!0;var t=d(r.draft,!0);return r.finalizing=!1,t}return d(e)}function D(e,r,t){var n=g[r];n?n.enumerable=t:g[r]=n={configurable:!0,enumerable:t,get:function(){return z(this[f],r)},set:function(e){A(this[f],r,e)}},Object.defineProperty(e,r,n)}function F(e){if(!0===e.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(x(e)))}function I(e){for(var r=e.length-1;r>=0;r--){var t=e[r];!1===t.modified&&(Array.isArray(t.base)?C(t)&&k(t):N(t)&&k(t))}}function _(e){if(e&&"object"===(void 0===e?"undefined":r(e))){var t=e[f];if(t){var n=t.base,o=t.draft,i=t.assigned;if(Array.isArray(e)){if(C(t)){if(k(t),i.length=!0,o.length<n.length)for(var a=o.length;a<n.length;a++)i[a]=!1;else for(var s=n.length;s<o.length;s++)i[s]=!0;for(var u=0;u<o.length;u++)void 0===i[u]&&_(o[u])}}else Object.keys(o).forEach(function(e){void 0!==n[e]||v(n,e)?i[e]||_(o[e]):(i[e]=!0,k(t))}),Object.keys(n).forEach(function(e){void 0!==o[e]||v(o,e)||(i[e]=!1,k(t))})}}}function N(e){for(var r=e.base,t=e.draft,n=Object.keys(t),o=n.length-1;o>=0;o--)if(void 0===r[n[o]]&&!v(r,n[o]))return!0;return n.length!==Object.keys(r).length}function C(e){var r=e.draft;if(r.length!==e.base.length)return!0;var t=Object.getOwnPropertyDescriptor(r,r.length-1);return!(!t||t.get)}function R(e,r,t){Object.defineProperty(e,r,{value:t,enumerable:!1,writable:!0})}var U=Object.freeze({scopes:m,currentScope:w,willFinalize:O,createDraft:P}),K=[],T=function(){return K[K.length-1]};function M(){}function $(e,r){var t={scope:r?r.scope:T(),modified:!1,finalized:!1,assigned:{},parent:r,base:e,draft:null,drafts:{},copy:null,revoke:null},n=Array.isArray(e)?Proxy.revocable([t],J):Proxy.revocable(t,q),o=n.revoke,i=n.proxy;return t.draft=i,t.revoke=o,t.scope.push(t),i}var q={get:G,has:function(e,r){return r in B(e)},ownKeys:function(e){return Reflect.ownKeys(B(e))},set:H,deleteProperty:L,getOwnPropertyDescriptor:Q,defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},J={};function B(e){return e.copy||e.base}function G(e,r){if(r===f)return e;var t=e.drafts;if(!e.modified&&v(t,r))return t[r];var n=B(e)[r];if(e.finalized||!u(n))return n;if(e.modified){if(n!==e.base[r])return n;t=e.copy}return t[r]=$(n,e)}function H(e,r,t){if(!e.modified){if(t?b(e.base[r],t)||t===e.drafts[r]:b(e.base[r],t)&&r in e.base)return!0;V(e)}return e.assigned[r]=!0,e.copy[r]=t,!0}function L(e,r){return(void 0!==e.base[r]||r in e.base)&&(e.assigned[r]=!1,V(e)),e.copy&&delete e.copy[r],!0}function Q(e,r){var t=B(e),n=Reflect.getOwnPropertyDescriptor(t,r);return n&&(n.writable=!0,n.configurable=!Array.isArray(t)||"length"!==r),n}function V(e){e.modified||(e.modified=!0,e.copy=l(d(e.base),e.drafts),e.drafts=null,e.parent&&V(e.parent))}h(q,function(e,r){J[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),J.deleteProperty=function(e,r){if(isNaN(parseInt(r)))throw new Error("Immer only supports deleting array indices");return q.deleteProperty.call(this,e[0],r)},J.set=function(e,r,t){if("length"!==r&&isNaN(parseInt(r)))throw new Error("Immer only supports setting array indices and the 'length' property");return q.set.call(this,e[0],r,t)};var W=Object.freeze({scopes:K,currentScope:T,willFinalize:M,createDraft:$});function X(e,r,t,n){Array.isArray(e.base)?Y(e,r,t,n):Z(e,r,t,n)}function Y(e,r,t,n){for(var o=e.base,i=e.copy,a=e.assigned,f=Math.min(o.length,i.length),s=0;s<f;s++)if(a[s]&&o[s]!==i[s]){var u=r.concat(s);t.push({op:"replace",path:u,value:i[s]}),n.push({op:"replace",path:u,value:o[s]})}if(f<i.length){for(var c=f;c<i.length;c++)t.push({op:"add",path:r.concat(c),value:i[c]});n.push({op:"replace",path:r.concat("length"),value:o.length})}else if(f<o.length){t.push({op:"replace",path:r.concat("length"),value:i.length});for(var l=f;l<o.length;l++)n.push({op:"add",path:r.concat(l),value:o[l]})}}function Z(e,r,t,n){var o=e.base,i=e.copy;h(e.assigned,function(e,a){var f=o[e],s=i[e],u=a?e in o?"replace":"add":"remove";if(f!==s||"replace"!==u){var c=r.concat(e);t.push("remove"===u?{op:u,path:c}:{op:u,path:c,value:s}),n.push("add"===u?{op:"remove",path:c}:"remove"===u?{op:"add",path:c,value:f}:{op:"replace",path:c,value:f})}})}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n],i=o.path;if(0===i.length&&"replace"===o.op)e=o.value;else{for(var a=e,f=0;f<i.length-1;f++)if(!(a=a[i[f]])||"object"!==(void 0===a?"undefined":r(a)))throw new Error("Cannot apply patch, path doesn't resolve: "+i.join("/"));var s=i[i.length-1];switch(o.op){case"replace":case"add":a[s]=o.value;break;case"remove":if(Array.isArray(a)){if(s!==a.length-1)throw new Error("Only the last index of an array can be removed, index: "+s+", length: "+a.length);a.length-=1}else delete a[s];break;default:throw new Error("Unsupported patch operation: "+o.op)}}}return e}function re(){}var te={useProxies:"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect,autoFreeze:void 0===e&&"verifyMinified"===re.name,onAssign:null,onDelete:null,onCopy:null},ne=function(){function e(r){t(this,e),l(this,te,r),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)}return n(e,[{key:"produce",value:function(e,r,t){var n=this;if("function"==typeof e&&"function"!=typeof r){var o=r;return r=e,function(){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return n.produce(a,function(e){var n;return(n=r).call.apply(n,[e,e].concat(t))})}}if("function"!=typeof r)throw new Error("if first argument is not a function, the second argument to produce should be a function");if(void 0!==t&&"function"!=typeof t)throw new Error("the third argument of a producer should not be set or a function");var a=void 0;if(u(e)){this.scopes.push([]);var s=this.createDraft(e);try{a=r.call(s,s),this.willFinalize(a,s,!!t);var c=t&&[],l=t&&[];if(void 0===a||a===s)a=this.finalize(s,[],c,l);else{if(s[f].modified)throw new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");u(a)&&(a=this.finalize(a)),t&&(c.push({op:"replace",path:[],value:a}),l.push({op:"replace",path:[],value:e}))}}finally{this.currentScope().forEach(function(e){return e.revoke()}),this.scopes.pop()}t&&t(c,l)}else if(void 0===(a=r(e)))return e;return a===i?void 0:a}},{key:"setAutoFreeze",value:function(e){this.autoFreeze=e}},{key:"setUseProxies",value:function(e){this.useProxies=e,l(this,e?W:U)}},{key:"applyPatches",value:function(e,r){return s(e)?ee(e,r):this.produce(e,function(e){return ee(e,r)})}},{key:"finalize",value:function(e,r,t,n){var o=this,i=e[f];if(!i)return Object.isFrozen(e)?e:this.finalizeTree(e);if(i.scope!==this.currentScope())return e;if(!i.modified)return i.base;if(!i.finalized){if(i.finalized=!0,this.finalizeTree(i.draft,r,t,n),this.onDelete)if(this.useProxies){var a=i.assigned;for(var s in a)a[s]||this.onDelete(i,s)}else{var u=i.base,c=i.copy;h(u,function(e){v(c,e)||o.onDelete(i,e)})}this.onCopy&&this.onCopy(i),this.autoFreeze&&1===this.scopes.length&&Object.freeze(i.copy),t&&X(i,r,t,n)}return i.copy}},{key:"finalizeTree",value:function(e,r,t,n){var o=this,i=e[f];i&&(this.useProxies||(i.finalizing=!0,i.copy=d(i.draft,!0),i.finalizing=!1),e=i.copy);var a=this.onAssign;return h(e,function f(c,l,p){if(l===p)throw Error("Immer forbids circular references");var d=!!i&&p===e;if(s(l)){if(l=t&&d&&!i.assigned[c]?o.finalize(l,r.concat(c),t,n):o.finalize(l),Array.isArray(p)||y(p,c)?p[c]=l:Object.defineProperty(p,c,{value:l}),d&&l===i.base[c])return}else{if(d&&b(l,i.base[c]))return;u(l)&&!Object.isFrozen(l)&&h(l,f)}d&&a&&a(i,c,l)}),e}}]),e}();exports.Immer=ne;var oe=new ne,ie=oe.produce;exports.produce=ie;var ae=oe.setAutoFreeze.bind(oe);exports.setAutoFreeze=ae;var fe=oe.setUseProxies.bind(oe);exports.setUseProxies=fe;var se=oe.applyPatches.bind(oe);exports.applyPatches=se;var ue=ie;exports.default=ue; },{"process":"pBGv"}],"oqTd":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.C=ee,exports.G=X,exports.a=W,exports.e=k,exports.u=exports.s=exports.r=exports.o=exports.n=exports.m=exports.l=exports.k=exports.j=exports.i=exports.h=exports.g=exports.f=exports.d=exports.c=exports.b=exports.U=exports.T=exports.S=exports.R=exports.M=exports.I=exports.A=void 0;var e=require("./_rollupPluginBabelHelpers-b44b7feb.js"),t=r(require("immer"));function r(e){return e&&e.__esModule?e:{default:e}}var n="MAKE_MOVE";exports.M=n;var a="GAME_EVENT";exports.h=a;var o="REDO";exports.o=o;var u="RESET";exports.i=u;var i="SYNC";exports.S=i;var c="UNDO";exports.n=c;var s="UPDATE";exports.U=s;var l=function(e,t,r,a){return{type:n,payload:{type:e,args:t,playerID:r,credentials:a}}};exports.m=l;var v=function(e,t,r,n){return{type:a,payload:{type:e,args:t,playerID:r,credentials:n}}};exports.g=v;var f=function(e,t,r,n){return{type:a,payload:{type:e,args:t,playerID:r,credentials:n},automatic:!0}},p=function(e,t){return{type:i,state:e,log:t,clientOnly:!0}};exports.s=p;var d=function(e,t){return{type:s,state:e,deltalog:t,clientOnly:!0}};exports.l=d;var y=function(e){return{type:u,state:e,clientOnly:!0}};exports.r=y;var h=function(){return{type:c}};exports.u=h;var x=function(){return{type:o}};exports.f=x;var m=Object.freeze({makeMove:l,gameEvent:v,automaticGameEvent:f,sync:p,update:d,reset:y,undo:h,redo:x});exports.A=m;var g={fnWrap:function(e){return(0,t.default)(e)}},P=[g],_=function(t,r){return[].concat(P,(0,e._)(r)).filter(function(e){return void 0!==e.ctx}).filter(function(e){return void 0!==e.ctx.preMove}).forEach(function(e){t=e.ctx.preMove(t,r)}),t},O=function(t,r){return[].concat(P,(0,e._)(r)).filter(function(e){return void 0!==e.G}).filter(function(e){return void 0!==e.G.preMove}).forEach(function(e){t=e.G.preMove(t,r)}),t},M=function(t,r){return[].concat(P,(0,e._)(r)).filter(function(e){return void 0!==e.G}).filter(function(e){return void 0!==e.G.postMove}).forEach(function(e){t=e.G.postMove(t,r)}),t},D=function(t,r){var n=[].concat(P,(0,e._)(r)).filter(function(e){return void 0!==e.fnWrap}).reduce(function(e,t){return(0,t.fnWrap)(e,r)},t);return function(e,t){e=O(e,r),t=_(t,r);for(var a=arguments.length,o=new Array(a>2?a-2:0),u=2;u<a;u++)o[u-2]=arguments[u];return e=n.apply(void 0,[e,t].concat(o)),e=M(e,r)}},I={setup:function(t,r,n){return[].concat(P,(0,e._)(n.plugins)).filter(function(e){return void 0!==e.G}).filter(function(e){return void 0!==e.G.setup}).forEach(function(e){t=e.G.setup(t,r,n)}),t},onPhaseBegin:function(t,r,n){return[].concat(P,(0,e._)(n)).filter(function(e){return void 0!==e.G}).filter(function(e){return void 0!==e.G.onPhaseBegin}).forEach(function(e){t=e.G.onPhaseBegin(t,r,n)}),t}};exports.d=I;var L={setup:function(t,r){return[].concat(P,(0,e._)(r.plugins)).filter(function(e){return void 0!==e.ctx}).filter(function(e){return void 0!==e.ctx.setup}).forEach(function(e){t=e.ctx.setup(t,r)}),t},onPhaseBegin:function(t,r){return[].concat(P,(0,e._)(r)).filter(function(e){return void 0!==e.ctx}).filter(function(e){return void 0!==e.ctx.onPhaseBegin}).forEach(function(e){t=e.ctx.onPhaseBegin(t,r)}),t}};exports.c=L;var E=!0,G=E?function(){}:console.log,A=console.error;function w(e){G("INFO: ".concat(e))}function k(e){A("ERROR:",e)}function b(t,r,n){return(0,e.a)({},t,{ctx:N(t.ctx,n)})}function N(t,r){var n=t._prevActivePlayers,a=r.next||null;n=r.revert?n.concat({activePlayers:t.activePlayers,_activePlayersMoveLimit:t._activePlayersMoveLimit,_activePlayersNumMoves:t._activePlayersNumMoves}):[];var o={},u={};if(Array.isArray(r)){var i={};r.forEach(function(e){return i[e]=R.NULL}),o=i}if(void 0!==r.currentPlayer&&S(o,u,t.currentPlayer,r.currentPlayer),void 0!==r.others)for(var c=0;c<t.playOrder.length;c++){var s=t.playOrder[c];s!==t.currentPlayer&&S(o,u,s,r.others)}if(void 0!==r.all)for(var l=0;l<t.playOrder.length;l++){S(o,u,t.playOrder[l],r.all)}if(r.value)for(var v in r.value)S(o,u,v,r.value[v]);if(r.moveLimit)for(var f in o)void 0===u[f]&&(u[f]=r.moveLimit);0==Object.keys(o).length&&(o=null),0==Object.keys(u).length&&(u=null);var p={};for(var d in o)p[d]=0;return(0,e.a)({},t,{activePlayers:o,_activePlayersMoveLimit:u,_activePlayersNumMoves:p,_prevActivePlayers:n,_nextActivePlayers:a})}function T(t){var r=t,n=r.activePlayers,a=r._activePlayersMoveLimit,o=r._activePlayersNumMoves,u=r._prevActivePlayers;if(n&&0==Object.keys(n).length)if(t._nextActivePlayers){var i=t=N(t,t._nextActivePlayers);n=i.activePlayers,a=i._activePlayersMoveLimit,o=i._activePlayersNumMoves,u=i._prevActivePlayers}else if(u.length>0){var c=u.length-1,s=u[c];n=s.activePlayers,a=s._activePlayersMoveLimit,o=s._activePlayersNumMoves,u=u.slice(0,c)}else n=null,a=null;return(0,e.a)({},t,{activePlayers:n,_activePlayersMoveLimit:a,_activePlayersNumMoves:o,_prevActivePlayers:u})}function S(t,r,n,a){"object"===(0,e.b)(a)&&a!==R.NULL||(a={stage:a}),void 0!==a.stage&&(t[n]=a.stage,a.moveLimit&&(r[n]=a.moveLimit))}function j(e,t){return e[t]+""}function B(t,r,n){var a=n.order,o=(0,e._)(new Array(r.numPlayers)).map(function(e,t){return t+""});void 0!==a.playOrder&&(o=a.playOrder(t,r));var u=a.first(t,r),i=j(o,u);return r=N(r=(0,e.a)({},r,{currentPlayer:i,playOrderPos:u,playOrder:o}),n.activePlayers||{})}function C(t,r,n,a){var o=n.order,u=r.playOrderPos,i=r.currentPlayer,c=!1;if(a&&!0!==a)"object"!==(0,e.b)(a)&&k("invalid argument to endTurn: ".concat(a)),Object.keys(a).forEach(function(e){switch(e){case"remove":i=j(r.playOrder,u);break;case"next":u=r.playOrder.indexOf(a.next),i=a.next;break;default:k("invalid argument to endTurn: ".concat(e))}});else{var s=o.next(t,r);void 0===s?c=!0:(u=s,i=j(r.playOrder,u))}return{endPhase:c,ctx:r=(0,e.a)({},r,{playOrderPos:u,currentPlayer:i})}}var U={DEFAULT:{first:function(e,t){return 0===t.turn?t.playOrderPos:(t.playOrderPos+1)%t.playOrder.length},next:function(e,t){return(t.playOrderPos+1)%t.playOrder.length}},RESET:{first:function(){return 0},next:function(e,t){return(t.playOrderPos+1)%t.playOrder.length}},CONTINUE:{first:function(e,t){return t.playOrderPos},next:function(e,t){return(t.playOrderPos+1)%t.playOrder.length}},ONCE:{first:function(){return 0},next:function(e,t){if(t.playOrderPos<t.playOrder.length-1)return t.playOrderPos+1}},CUSTOM:function(e){return{playOrder:function(){return e},first:function(){return 0},next:function(e,t){return(t.playOrderPos+1)%t.playOrder.length}}},CUSTOM_FROM:function(e){return{playOrder:function(t){return t[e]},first:function(){return 0},next:function(e,t){return(t.playOrderPos+1)%t.playOrder.length}}},SKIP:{first:function(e,t){return t.playOrderPos},next:function(e,t){if(!e.allPassed)for(var r=t.playOrderPos,n=0;n<t.playOrder.length;n++)if(r=(r+1)%t.playOrder.length,!e.passOrder.includes(t.playOrder[r]+""))return r}}};exports.T=U;var R={NULL:null};exports.k=R;var F={ALL:{all:R.NULL},ALL_ONCE:{all:R.NULL,moveLimit:1},OTHERS:{others:R.NULL},OTHERS_ONCE:{others:R.NULL,moveLimit:1}};function V(e){var t=this,r=q();t.next=function(){var e=2091639*t.s0+2.3283064365386963e-10*t.c;return t.s0=t.s1,t.s1=t.s2,t.s2=e-(t.c=0|e)},t.c=1,t.s0=r(" "),t.s1=r(" "),t.s2=r(" "),t.s0-=r(e),t.s0<0&&(t.s0+=1),t.s1-=r(e),t.s1<0&&(t.s1+=1),t.s2-=r(e),t.s2<0&&(t.s2+=1),r=null}function H(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function q(){var e=4022871197;return function(t){t=t.toString();for(var r=0;r<t.length;r++){var n=.02519603282416938*(e+=t.charCodeAt(r));n-=e=n>>>0,e=(n*=e)>>>0,e+=4294967296*(n-=e)}return 2.3283064365386963e-10*(e>>>0)}}function W(t,r){var n=new V(t),a=r&&r.state,o=n.next;return o.quick=o,a&&("object"==(0,e.b)(a)&&H(a,n),o.state=function(){return H(n,{})}),o}exports.j=F;var K=function(){function t(r){(0,e.e)(this,t),this.state=r._random||{seed:"0"}}return(0,e.c)(t,[{key:"update",value:function(t){var r=(0,e.a)({},t.ctx,{_random:this.state});return(0,e.a)({},t,{ctx:r})}},{key:"attach",value:function(t){return(0,e.a)({},t,{random:this._api()})}},{key:"_random",value:function(){var t,r=this.state,n=(t=void 0===r.prngstate?new W(r.seed,{state:!0}):new W("",{state:r.prngstate}))();return this.state=(0,e.a)({},r,{prngstate:t.state()}),n}},{key:"_api",value:function(){var t=this._random.bind(this),r={D4:4,D6:6,D8:8,D10:10,D12:12,D20:20},n={},a=function(a){var o=r[a];n[a]=function(r){return void 0===r?Math.floor(t()*o)+1:(0,e._)(new Array(r).keys()).map(function(){return Math.floor(t()*o)+1})}};for(var o in r)a(o);return(0,e.a)({},n,{Die:function(r,n){return void 0===r&&(r=6),void 0===n?Math.floor(t()*r)+1:(0,e._)(new Array(n).keys()).map(function(){return Math.floor(t()*r)+1})},Number:function(){return t()},Shuffle:function(e){for(var r=e.slice(0),n=e.length,a=0,o=new Array(n);n;){var u=n*t()|0;o[a++]=r[u],r[u]=r[--n]}return o}})}}]),t}();exports.R=K,K.detach=function(t){t.random;return(0,e.d)(t,["random"])},K.seed=function(){return(+new Date).toString(36).slice(-10)};var z=function(){function t(r,n){(0,e.e)(this,t),this.flow=r,this.playerID=n,this.dispatch=[]}return(0,e.c)(t,[{key:"attach",value:function(t){var r=this,n={},a=t.phase,o=t.turn,u=!0,i=!1,c=void 0;try{for(var s,l=function(){var e=s.value;n[e]=function(){for(var t=arguments.length,n=new Array(t),u=0;u<t;u++)n[u]=arguments[u];r.dispatch.push({key:e,args:n,phase:a,turn:o})}},v=this.flow.eventNames[Symbol.iterator]();!(u=(s=v.next()).done);u=!0)l()}catch(f){i=!0,c=f}finally{try{u||null==v.return||v.return()}finally{if(i)throw c}}return(0,e.a)({},t,{events:n})}},{key:"update",value:function(t){for(var r=0;r<this.dispatch.length;r++){var n=this.dispatch[r];if(("endTurn"!==n.key||n.turn===t.ctx.turn)&&("endPhase"!==n.key&&"setPhase"!==n.key||n.phase===t.ctx.phase)){var a=f(n.key,n.args,this.playerID);t=(0,e.a)({},t,{},this.flow.processEvent(t,a))}}return t}}]),t}();z.detach=function(t){t.events;return(0,e.d)(t,["events"])};var Y=function(){function t(){(0,e.e)(this,t),this._payload=void 0}return(0,e.c)(t,[{key:"_api",value:function(){var e=this;return{setPayload:function(t){e._payload=t}}}},{key:"attach",value:function(t){return(0,e.a)({},t,{log:this._api()})}},{key:"update",value:function(t){if(void 0===this._payload)return t;var r=t.deltalog;return r[r.length-1]=(0,e.a)({},r[r.length-1],{payload:this._payload}),this._payload=void 0,(0,e.a)({},t,{deltalog:r})}}],[{key:"detach",value:function(t){t.log;return(0,e.d)(t,["log"])}}]),t}(),J=function(){function t(r,n,a){(0,e.e)(this,t),this.random=new K(r),this.events=new z(n.flow,a),this.log=new Y}return(0,e.c)(t,[{key:"attachToContext",value:function(e){var t=this.random.attach(e);return t=this.events.attach(t),t=this.log.attach(t)}},{key:"_update",value:function(e,t){var r=t?this.events.update(e):e;return r=this.random.update(r),r=this.log.update(r)}},{key:"updateAndDetach",value:function(e,r){var n=this._update(e,r);return n.ctx=t.detachAllFromContext(n.ctx),n}}],[{key:"detachAllFromContext",value:function(e){var t=K.detach(e);return t=z.detach(t),t=Y.detach(t)}}]),t}();function Q(t){var r=t.moves,n=t.phases,a=t.endIf,o=t.turn,u=t.events,i=t.plugins;void 0===r&&(r={}),void 0===u&&(u={}),void 0===i&&(i=[]),void 0===n&&(n={}),a||(a=function(){}),o||(o={});var c=(0,e.a)({},n);""in c&&k("cannot specify phase with empty name"),c[""]={};var s={},l=new Set,f=null;for(var p in Object.keys(r).forEach(function(e){return l.add(e)}),c){var d=c[p];if(!0===d.start&&(f=p),void 0!==d.moves)for(var y=0,h=Object.keys(d.moves);y<h.length;y++){var x=h[y];s[p+"."+x]=d.moves[x],l.add(x)}for(var m in void 0===d.endIf&&(d.endIf=function(){}),void 0===d.onBegin&&(d.onBegin=function(e){return e}),d.onBegin=D(d.onBegin,i),void 0===d.onEnd&&(d.onEnd=function(e){return e}),d.onEnd=D(d.onEnd,i),void 0===d.turn&&(d.turn=o),void 0===d.turn.order&&(d.turn.order=U.DEFAULT),void 0===d.turn.onBegin&&(d.turn.onBegin=function(e){return e}),void 0===d.turn.onEnd&&(d.turn.onEnd=function(e){return e}),void 0===d.turn.endIf&&(d.turn.endIf=function(){return!1}),void 0===d.turn.onMove&&(d.turn.onMove=function(e){return e}),void 0===d.turn.stages&&(d.turn.stages={}),d.turn.stages)for(var g=d.turn.stages[m].moves||{},P=0,_=Object.keys(g);P<_.length;P++){var O=_[P];s[p+"."+m+"."+O]=g[O],l.add(O)}d.turn.onMove=D(d.turn.onMove,i),d.turn.onBegin=D(d.turn.onBegin,i),d.turn.onEnd=D(d.turn.onEnd,i)}function M(e){return e.phase?c[e.phase]:c[""]}function E(e){return e}function G(t,r){for(var n=new Set,a=new Set,o=0;o<r.length;o++){var u=r[o],i=u.fn,c=u.arg,s=(0,e.d)(u,["fn","arg"]);if(i===Y){a.clear();var l=t.ctx.phase;if(n.has(l)){var v=(0,e.a)({},t.ctx,{phase:null});return(0,e.a)({},t,{ctx:v})}n.add(l)}var f=[];if(t=i(t,(0,e.a)({},s,{arg:c,next:f})),i===z)break;var p=q(t);if(p)r.push({fn:z,arg:p,turn:t.ctx.turn,phase:t.ctx.phase,automatic:!0});else{var d=W(t);if(d)r.push({fn:Y,arg:d,turn:t.ctx.turn,phase:t.ctx.phase,automatic:!0});else{if(i===E){var y=K(t);if(y){r.push({fn:Q,arg:y,turn:t.ctx.turn,phase:t.ctx.phase,automatic:!0});continue}}r.push.apply(r,f)}}}return t}function A(e,t){return t.next.push({fn:S}),e}function S(t,r){var n=r.next,a=t.G,o=t.ctx,u=M(o);return a=I.onPhaseBegin(a,o,i),o=L.onPhaseBegin(o,i),a=u.onBegin(a,o),n.push({fn:j}),(0,e.a)({},t,{G:a,ctx:o})}function j(t,r){var n=r.currentPlayer,a=t.G,o=t.ctx,u=M(o);n?(o=(0,e.a)({},o,{currentPlayer:n}),u.turn.activePlayers&&(o=N(o,u.turn.activePlayers))):o=B(a,o,u.turn);var i=o.turn+1;o=(0,e.a)({},o,{turn:i,numMoves:0,_prevActivePlayers:[]});var c=[{G:a=u.turn.onBegin(a,o),ctx:J.detachAllFromContext(o)}];return(0,e.a)({},t,{G:a,ctx:o,_undo:c,_redo:[]})}function F(t,r){var n=r.arg,a=r.next,o=M({phase:r.phase}),u=t.ctx;if(n&&n.next){if(!(n.next in c))return k("invalid phase: "+n.next),t;u=(0,e.a)({},u,{phase:n.next})}else u=void 0!==o.next?(0,e.a)({},u,{phase:o.next}):(0,e.a)({},u,{phase:null});return t=(0,e.a)({},t,{ctx:u}),a.push({fn:S}),t}function V(t,r){var n=r.arg,a=r.currentPlayer,o=r.next,u=t,i=u.G,c=u.ctx,s=M(c),l=C(i,(0,e.a)({},c,{currentPlayer:a}),s.turn,n),v=l.endPhase;return c=l.ctx,t=(0,e.a)({},t,{G:i,ctx:c}),v?o.push({fn:Y,turn:c.turn,phase:c.phase}):o.push({fn:j,currentPlayer:c.currentPlayer}),t}function H(t,r){var n=r.arg,a=r.playerID;"string"==typeof n&&(n={stage:n});var o=t.ctx,u=o,i=u.activePlayers,c=u._activePlayersMoveLimit,s=u._activePlayersNumMoves;return n.stage&&(null===i&&(i={}),i[a]=n.stage,s[a]=0,n.moveLimit&&(null===c&&(c={}),c[a]=n.moveLimit)),o=(0,e.a)({},o,{activePlayers:i,_activePlayersMoveLimit:c,_activePlayersNumMoves:s}),(0,e.a)({},t,{ctx:o})}function q(e){var t=e.G,r=e.ctx;return a(t,r)}function W(e){var t=e.G,r=e.ctx;return M(r).endIf(t,r)}function K(e){var t=e.G,r=e.ctx,n=M(r),a=r.numMoves||0;return!!(n.turn.moveLimit&&a>=n.turn.moveLimit)||n.turn.endIf(t,r)}function z(t,r){var n=r.arg;return t=Y(t,{phase:r.phase}),void 0===n&&(n=!0),(0,e.a)({},t,{ctx:(0,e.a)({},t.ctx,{gameover:n})})}function Y(t,r){var n=r.arg,a=r.next,o=r.turn,u=r.automatic,i=(t=Q(t,{turn:o,force:!0})).G,c=t.ctx;if(a&&a.push({fn:F,arg:n,phase:c.phase}),null===c.phase)return t;i=M(c).onEnd(i,c),c=(0,e.a)({},c,{phase:null});var s={action:v("endPhase",n),_stateID:t._stateID,turn:t.ctx.turn,phase:t.ctx.phase};u&&(s.automatic=!0);var l=[].concat((0,e._)(t.deltalog),[s]);return(0,e.a)({},t,{G:i,ctx:c,deltalog:l})}function Q(t,r){var n=r.arg,a=r.next,o=r.turn,u=r.force,i=r.automatic,c=r.playerID;if(o!==t.ctx.turn)return t;var s=t.G,l=t.ctx,f=M(l),p=l.numMoves||0;if(!u&&f.turn.moveLimit&&p<f.turn.moveLimit)return w("cannot end turn before making ".concat(f.turn.moveLimit," moves")),t;if(s=f.turn.onEnd(s,l),a&&a.push({fn:V,arg:n,currentPlayer:l.currentPlayer}),l=(0,e.a)({},l,{activePlayers:null}),n&&n.remove){c=c||l.currentPlayer;var d=l.playOrder.filter(function(e){return e!=c}),y=l.playOrderPos>d.length-1?0:l.playOrderPos;if(l=(0,e.a)({},l,{playOrder:d,playOrderPos:y}),0===d.length)return a.push({fn:Y,turn:l.turn,phase:l.phase}),t}var h={action:v("endTurn",n),_stateID:t._stateID,turn:t.ctx.turn,phase:t.ctx.phase};i&&(h.automatic=!0);var x=[].concat((0,e._)(t.deltalog||[]),[h]);return(0,e.a)({},t,{G:s,ctx:l,deltalog:x,_undo:[],_redo:[]})}function X(t,r){var n=r.arg,a=r.next,o=r.automatic,u=r.playerID;u=u||t.ctx.currentPlayer;var i=t.ctx,c=i,s=c.activePlayers,l=c._activePlayersMoveLimit,f=null!==s&&u in s;if(!n&&f){var p=M(i).turn.stages[s[u]];p&&p.next&&(n=p.next)}if(a&&n&&a.push({fn:H,arg:n,playerID:u}),!f)return t;s=Object.keys(s).filter(function(e){return e!==u}).reduce(function(e,t){return e[t]=s[t],e},{}),l&&(l=Object.keys(l).filter(function(e){return e!==u}).reduce(function(e,t){return e[t]=l[t],e},{})),i=T((0,e.a)({},i,{activePlayers:s,_activePlayersMoveLimit:l}));var d={action:v("endStage",n),_stateID:t._stateID,turn:t.ctx.turn,phase:t.ctx.phase};o&&(d.automatic=!0);var y=[].concat((0,e._)(t.deltalog||[]),[d]);return(0,e.a)({},t,{ctx:i,deltalog:y})}var Z={endStage:function(e,t){return G(e,[{fn:X,playerID:t}])},setStage:function(e,t,r){return G(e,[{fn:X,arg:r,playerID:t}])},endTurn:function(e,t,r){return G(e,[{fn:Q,turn:e.ctx.turn,phase:e.ctx.phase,arg:r}])},pass:function(e,t,r){return G(e,[{fn:Q,turn:e.ctx.turn,phase:e.ctx.phase,force:!0,arg:r}])},endPhase:function(e){return G(e,[{fn:Y,phase:e.ctx.phase,turn:e.ctx.turn}])},setPhase:function(e,t,r){return G(e,[{fn:Y,phase:e.ctx.phase,turn:e.ctx.turn,arg:{next:r}}])},endGame:function(e,t,r){return G(e,[{fn:z,turn:e.ctx.turn,phase:e.ctx.phase,arg:r}])},setActivePlayers:b},$=[];return!1!==u.endTurn&&$.push("endTurn"),!1!==u.pass&&$.push("pass"),!1!==u.endPhase&&$.push("endPhase"),!1!==u.setPhase&&$.push("setPhase"),!1!==u.endGame&&$.push("endGame"),!1!==u.setActivePlayers&&$.push("setActivePlayers"),!1!==u.endStage&&$.push("endStage"),!1!==u.setStage&&$.push("setStage"),{ctx:function(t){return{numPlayers:t,turn:0,currentPlayer:"0",playOrder:(0,e._)(new Array(t)).map(function(e,t){return t+""}),playOrderPos:0,phase:f,activePlayers:null}},init:function(e){return G(e,[{fn:A}])},isPlayerActive:function(e,t,r){return t.activePlayers?r in t.activePlayers:t.currentPlayer===r},eventHandlers:Z,eventNames:Object.keys(Z),enabledEventNames:$,moveMap:s,moveNames:(0,e._)(l.values()),processMove:function(t,r){var n=M(t.ctx),a=t.ctx,o=a._activePlayersNumMoves,u=r.playerID;a.activePlayers&&o[u]++;var i=t.ctx.numMoves;u==t.ctx.currentPlayer&&i++,t=(0,e.a)({},t,{ctx:(0,e.a)({},a,{numMoves:i,_activePlayersNumMoves:o})}),a._activePlayersMoveLimit&&o[u]>=a._activePlayersMoveLimit[u]&&(t=X(t,{playerID:u,automatic:!0}));var c=n.turn.onMove(t.G,t.ctx,r),s=(t=(0,e.a)({},t,{G:c}))._undo||[],l=r.type,v=J.detachAllFromContext(t.ctx);return G(t=(0,e.a)({},t,{_undo:[].concat((0,e._)(s),[{G:t.G,ctx:v,moveType:l}]),_redo:[]}),[{fn:E}])},processEvent:function(e,t){var r=t.payload,n=r.type,a=r.playerID,o=r.args;if(Z.hasOwnProperty(n)){var u=[e,a].concat(o);return Z[n].apply({},u)}return e},getMove:function(e,t,n){var a=M(e),o=a.turn.stages,u=e.activePlayers;if(u&&void 0!==u[n]&&u[n]!==R.NULL&&void 0!==o[u[n]]&&void 0!==o[u[n]].moves){var i=o[u[n]].moves;if(t in i)return i[t]}else if(a.moves){if(t in a.moves)return a.moves[t]}else if(t in r)return r[t];return null}}}function X(t){if(t.processMove)return t;if(void 0===t.name&&(t.name="default"),void 0===t.setup&&(t.setup=function(){return{}}),void 0===t.moves&&(t.moves={}),void 0===t.playerView&&(t.playerView=function(e){return e}),void 0===t.plugins&&(t.plugins=[]),t.name.includes(" "))throw new Error(t.name+": Game name must not include spaces");var r=Q(t);return(0,e.a)({},t,{flow:r,moveNames:r.moveNames,processMove:function(n,a,o){var u=r.getMove(o,a.type,a.playerID);if(u instanceof Object&&u.move&&(u=u.move),u instanceof Function){var i=[n,(0,e.a)({},o,{playerID:a.playerID})].concat(a.args);return D(u,t.plugins).apply(void 0,(0,e._)(i))}return n}})}exports.b=J;var Z=function(e,t,r){return!1!==r.undoable&&(!(r.undoable instanceof Function)||r.undoable(e,t))},$="INVALID_MOVE";function ee(t){var r=t.game,l=t.multiplayer;return r=X(r),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,v=arguments.length>1?arguments[1]:void 0;switch(v.type){case a:if(t=(0,e.a)({},t,{deltalog:[]}),l)return t;if(void 0!==t.ctx.gameover)return k("cannot call event after game end"),t;if(null!==v.payload.playerID&&void 0!==v.payload.playerID&&!r.flow.isPlayerActive(t.G,t.ctx,v.payload.playerID))return k("disallowed event: ".concat(v.payload.type)),t;var f=new J(t.ctx,r,v.payload.playerID);t.ctx=f.attachToContext(t.ctx);var p=r.flow.processEvent(t,v);return p=f.updateAndDetach(p,!0),(0,e.a)({},p,{_stateID:t._stateID+1});case n:t=(0,e.a)({},t,{deltalog:[]});var d=r.flow.getMove(t.ctx,v.payload.type,v.payload.playerID||t.ctx.currentPlayer);if(null===d)return k("disallowed move: ".concat(v.payload.type)),t;if(l&&!1===d.optimistic)return t;if(void 0!==t.ctx.gameover)return k("cannot make move after game end"),t;if(null!==v.payload.playerID&&void 0!==v.payload.playerID&&!r.flow.isPlayerActive(t.G,t.ctx,v.payload.playerID))return k("disallowed move: ".concat(v.payload.type)),t;var y=new J(t.ctx,r,v.payload.playerID),h=y.attachToContext(t.ctx),x=r.processMove(t.G,v.payload,h);if(x===$)return k("invalid move: ".concat(v.payload.type," args: ").concat(v.payload.args)),t;var m={action:v,_stateID:t._stateID,turn:t.ctx.turn,phase:t.ctx.phase};!0===d.redact&&(m.redact=!0);var g=y.updateAndDetach((0,e.a)({},t,{deltalog:[m]}),!1),P=g.ctx;return l&&void 0!==P._random&&void 0!==P._random.prngstate?t:(t=(0,e.a)({},g,{G:x,ctx:P,_stateID:t._stateID+1}),l?t:(h=y.attachToContext(t.ctx),t=r.flow.processMove((0,e.a)({},t,{ctx:h}),v.payload),t=y.updateAndDetach(t,!0)));case u:case s:case i:return v.state;case c:var _=t,O=_._undo,M=_._redo;if(O.length<2)return t;var D=O[O.length-1],I=O[O.length-2],L=r.flow.getMove(t.ctx,D.moveType,t.ctx.currentPlayer);return Z(t.G,t.ctx,L)?(0,e.a)({},t,{G:I.G,ctx:I.ctx,_undo:O.slice(0,O.length-1),_redo:[D].concat((0,e._)(M))}):t;case o:var E=t,G=E._undo,A=E._redo;if(0==A.length)return t;var w=A[0];return(0,e.a)({},t,{G:w.G,ctx:w.ctx,_undo:[].concat((0,e._)(G),[w]),_redo:A.slice(1)});default:return t}}}exports.I=$; },{"./_rollupPluginBabelHelpers-b44b7feb.js":"ZNNI","immer":"SPuX"}],"O5av":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.stringify=exports.parse=exports.default=void 0;var t=function(t,e){return{parse:function(e){var r=JSON.parse(e,o).map(n),s=r[0];return"object"==typeof s&&s?function e(r,n,o){return Object.keys(o).reduce(function(o,s){var i=o[s];if(i instanceof t){var u=r[i];"object"!=typeof u||n.has(u)?o[s]=u:(n.add(u),o[s]=e(r,n,u))}return o},o)}(r,new Set,s):s},stringify:function(t){for(var n,o=new Map,s=[],i=[],u=+r(o,s,t),f=function(t,i){if(n)return n=!n,i;switch(typeof i){case"object":if(null===i)return i;case e:return o.get(i)||r(o,s,i)}return i};u<s.length;u++)n=!0,i[u]=JSON.stringify(s[u],f);return"["+i.join(",")+"]"}};function r(e,r,n){var o=t(r.push(n)-1);return e.set(n,o),o}function n(e){return e instanceof t?t(e):e}function o(r,n){return typeof n===e?new t(n):n}}(String,"string"),e=t;exports.default=e;const r=t.parse;exports.parse=r;const n=t.stringify;exports.stringify=n; },{}],"CrBp":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.S=o,exports.a=s,exports.R=exports.M=exports.B=void 0;var t=require("./_rollupPluginBabelHelpers-b44b7feb.js"),e=require("./reducer-58af0406.js"),a=function(){function a(r){var n=this,i=r.enumerate,o=r.seed;(0,t.e)(this,a),(0,t.f)(this,"enumerate",function(t,a,r){return n.enumerateFn(t,a,r).map(function(t){return void 0!==t.payload?t:void 0!==t.move?(0,e.m)(t.move,t.args,r):void 0!==t.event?(0,e.g)(t.event,t.args,r):void 0})}),this.enumerateFn=i,this.seed=o,this.iterationCounter=0,this._opts={}}return(0,t.c)(a,[{key:"addOpt",value:function(t){var e=t.key,a=t.range,r=t.initial;this._opts[e]={range:a,value:r}}},{key:"getOpt",value:function(t){return this._opts[t].value}},{key:"setOpt",value:function(t,e){this._opts[t].value=e}},{key:"opts",value:function(){return this._opts}},{key:"random",value:function(t){var a;if(void 0!==this.seed){var r=null;a=(r=this.prngstate?new e.a("",{state:this.prngstate}):new e.a(this.seed,{state:!0}))(),this.prngstate=r.state()}else a=Math.random();return t?t.length?t[Math.floor(a*t.length)]:Math.floor(a*t):a}}]),a}();exports.B=a;var r=25,n=function(a){function n(a){var r,i=a.enumerate,o=a.seed,s=a.objectives,u=a.game,c=a.iterations,l=a.playoutDepth,v=a.iterationCallback;return(0,t.e)(this,n),void 0===s&&(s=function(){return{}}),(r=(0,t.h)(this,(0,t.i)(n).call(this,{enumerate:i,seed:o}))).objectives=s,r.iterationCallback=v||function(){},r.reducer=(0,e.C)({game:u}),r.iterations=c,r.playoutDepth=l,r.addOpt({key:"async",initial:!1}),r.addOpt({key:"iterations",initial:"number"==typeof c?c:1e3,range:{min:1,max:2e3}}),r.addOpt({key:"playoutDepth",initial:"number"==typeof l?l:50,range:{min:1,max:100}}),r}return(0,t.g)(n,a),(0,t.c)(n,[{key:"createNode",value:function(t){var e=t.state,a=t.parentAction,r=t.parent,n=t.playerID,i=e.G,o=e.ctx,s=[],u=[];if(void 0!==n)s=this.enumerate(i,o,n),u=this.objectives(i,o,n);else if(o.activePlayers)for(var c in o.activePlayers)s=s.concat(this.enumerate(i,o,c)),u=u.concat(this.objectives(i,o,c));else s=s.concat(this.enumerate(i,o,o.currentPlayer)),u=u.concat(this.objectives(i,o,o.currentPlayer));return{state:e,parent:r,parentAction:a,actions:s,objectives:u,children:[],visits:0,value:0}}},{key:"select",value:function(t){if(t.actions.length>0)return t;if(0==t.children.length)return t;var e=null,a=0,r=!0,n=!1,i=void 0;try{for(var o,s=t.children[Symbol.iterator]();!(r=(o=s.next()).done);r=!0){var u=o.value,c=u.visits+Number.EPSILON,l=u.value/c+Math.sqrt(2*Math.log(t.visits)/c);(null==e||l>a)&&(a=l,e=u)}}catch(v){n=!0,i=v}finally{try{r||null==s.return||s.return()}finally{if(n)throw i}}return this.select(e)}},{key:"expand",value:function(t){var e=t.actions;if(0==e.length||void 0!==t.state.ctx.gameover)return t;var a=this.random(e.length),r=e[a];t.actions.splice(a,1);var n=this.reducer(t.state,r),i=this.createNode({state:n,parentAction:r,parent:t});return t.children.push(i),i}},{key:"playout",value:function(e){var a=this,r=e.state,n=this.getOpt("playoutDepth");"function"==typeof this.playoutDepth&&(n=this.playoutDepth(r.G,r.ctx));for(var i=function(t){var e=r,n=e.G,i=e.ctx,o=i.currentPlayer;i.activePlayers&&(o=Object.keys(i.activePlayers)[0]);var s=a.enumerate(n,i,o),u=a.objectives(n,i),c=Object.keys(u).reduce(function(t,e){var a=u[e];return a.checker(n,i)?t+a.weight:t},0);if(c>0)return{v:{score:c}};if(!s||0==s.length)return{v:void 0};var l=a.random(s.length),v=a.reducer(r,s[l]);r=v},o=0;o<n&&void 0===r.ctx.gameover;o++){var s=i();if("object"===(0,t.b)(s))return s.v}return r.ctx.gameover}},{key:"backpropagate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.visits++,void 0!==e.score&&(t.value+=e.score),!0===e.draw&&(t.value+=.5),t.parentAction&&e.winner===t.parentAction.payload.playerID&&t.value++,t.parent&&this.backpropagate(t.parent,e)}},{key:"play",value:function(t,e){var a=this,n=this.createNode({state:t,playerID:e}),i=this.getOpt("iterations");"function"==typeof this.iterations&&(i=this.iterations(t.G,t.ctx));var o=function(){var t=null,e=!0,a=!1,r=void 0;try{for(var i,o=n.children[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var s=i.value;(null==t||s.visits>t.visits)&&(t=s)}}catch(u){a=!0,r=u}finally{try{e||null==o.return||o.return()}finally{if(a)throw r}}return{action:t&&t.parentAction,metadata:n}};return new Promise(function(t){var e=function(){for(var t=0;t<r&&a.iterationCounter<i;t++){var e=a.select(n),o=a.expand(e),s=a.playout(o);a.backpropagate(o,s),a.iterationCounter++}a.iterationCallback(a.iterationCounter,i)};if(a.iterationCounter=0,a.getOpt("async")){!function r(){a.iterationCounter<i?(e(),setTimeout(r,0)):t(o())}()}else{for(;a.iterationCounter<i;)e();t(o())}})}}]),n}(a);exports.M=n;var i=function(e){function a(){return(0,t.e)(this,a),(0,t.h)(this,(0,t.i)(a).apply(this,arguments))}return(0,t.g)(a,e),(0,t.c)(a,[{key:"play",value:function(t,e){var a=t.G,r=t.ctx,n=this.enumerate(a,r,e);return Promise.resolve({action:this.random(n)})}}]),a}(a);async function o(t,e){var a=t.store.getState(),r=a.ctx.currentPlayer;a.ctx.activePlayers&&(r=Object.keys(a.ctx.activePlayers)[0]);var n=await e.play(a,r),i=n.action,o=n.metadata;return i&&(i.payload.metadata=o,t.store.dispatch(i)),i}async function s(t){var r=t.game,n=t.bots,i=t.state,o=t.depth;void 0===o&&(o=1e4);for(var s=(0,e.C)({game:r,numPlayers:i.ctx.numPlayers}),u=null,c=0;void 0===i.ctx.gameover&&c<o;){var l=i.ctx.currentPlayer;i.ctx.activePlayers&&(l=Object.keys(i.ctx.activePlayers)[0]);var v=n instanceof a?n:n[l],p=await v.play(i,l);if(!p.action)break;u=p.metadata,i=s(i,p.action),c++}return{state:i,metadata:u}}exports.R=i; },{"./_rollupPluginBabelHelpers-b44b7feb.js":"ZNNI","./reducer-58af0406.js":"oqTd"}],"HVo4":[function(require,module,exports) { var global = arguments[3]; var e=arguments[3];Object.defineProperty(exports,"__esModule",{value:!0}),exports.D=void 0;var t=require("./reducer-58af0406.js"),n=require("flatted"),o=require("./ai-ef071338.js");function l(){}const r=e=>e;function a(e,t){for(const n in t)e[n]=t[n];return e}function s(e){return e()}function i(){return Object.create(null)}function c(e){e.forEach(s)}function u(e){return"function"==typeof e}function d(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function p(e,t){const n=e.subscribe(t);return n.unsubscribe?()=>n.unsubscribe():n}function v(e,t,n){e.$$.on_destroy.push(p(t,n))}const f="undefined"!=typeof window;let m=f?()=>window.performance.now():()=>Date.now(),g=f?e=>requestAnimationFrame(e):l;const h=new Set;let y,b=!1;function $(){h.forEach(e=>{e[0](m())||(h.delete(e),e[1]())}),(b=h.size>0)&&g($)}function x(e){let t;return b||(b=!0,g($)),{promise:new Promise(n=>{h.add(t=[e,n])}),abort(){h.delete(t)}}}function w(e,t){e.appendChild(t)}function k(e,t,n){e.insertBefore(t,n||null)}function _(e){e.parentNode.removeChild(e)}function C(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function E(e){return document.createElement(e)}function O(e){return document.createTextNode(e)}function I(){return O(" ")}function j(){return O("")}function D(e,t,n,o){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n,o)}function B(e,t,n){null==n?e.removeAttribute(t):e.setAttribute(t,n)}function q(e){return""===e?void 0:+e}function A(e){return Array.from(e.childNodes)}function P(e,t){t=""+t,e.data!==t&&(e.data=t)}function M(e,t){(null!=t||e.value)&&(e.value=t)}function S(e,t){for(let n=0;n<e.options.length;n+=1){const o=e.options[n];if(o.__value===t)return void(o.selected=!0)}}function L(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}function z(e,t,n){e.classList[n?"add":"remove"](t)}function T(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}let N,G=0,R={};function K(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}function J(e,t,n,o,l,r,a,s=0){const i=16.666/o;let c="{\n";for(let v=0;v<=1;v+=i){const e=t+(n-t)*r(v);c+=100*v+`%{${a(e,1-e)}}\n`}const u=c+`100% {${a(n,1-n)}}\n}`,d=`__svelte_${K(u)}_${s}`;if(!R[d]){if(!y){const e=E("style");document.head.appendChild(e),y=e.sheet}R[d]=!0,y.insertRule(`@keyframes ${d} ${u}`,y.cssRules.length)}const p=e.style.animation||"";return e.style.animation=`${p?`${p}, `:""}${d} ${o}ms linear ${l}ms 1 both`,G+=1,d}function V(e,t){e.style.animation=(e.style.animation||"").split(", ").filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")).join(", "),t&&!--G&&H()}function H(){g(()=>{if(G)return;let e=y.cssRules.length;for(;e--;)y.deleteRule(e);R={}})}function F(e){N=e}function U(){if(!N)throw new Error("Function called outside component initialization");return N}function W(e){U().$$.after_update.push(e)}function Q(e){U().$$.on_destroy.push(e)}function X(){const e=N;return(t,n)=>{const o=e.$$.callbacks[t];if(o){const l=T(t,n);o.slice().forEach(t=>{t.call(e,l)})}}}function Y(e,t){U().$$.context.set(e,t)}function Z(e){return U().$$.context.get(e)}function ee(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach(e=>e(t))}const te=[],ne=[],oe=[],le=[],re=Promise.resolve();let ae,se=!1;function ie(){se||(se=!0,re.then(ue))}function ce(e){oe.push(e)}function ue(){const e=new Set;do{for(;te.length;){const e=te.shift();F(e),de(e.$$)}for(;ne.length;)ne.pop()();for(let t=0;t<oe.length;t+=1){const n=oe[t];e.has(n)||(n(),e.add(n))}oe.length=0}while(te.length);for(;le.length;)le.pop()();se=!1}function de(e){e.fragment&&(e.update(e.dirty),c(e.before_update),e.fragment.p(e.dirty,e.ctx),e.dirty=null,e.after_update.forEach(ce))}function pe(){return ae||(ae=Promise.resolve()).then(()=>{ae=null}),ae}function ve(e,t,n){e.dispatchEvent(T(`${t?"intro":"outro"}${n}`))}const fe=new Set;let me;function ge(){me={r:0,c:[],p:me}}function he(){me.r||c(me.c),me=me.p}function ye(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function be(e,t,n,o){if(e&&e.o){if(fe.has(e))return;fe.add(e),me.c.push(()=>{fe.delete(e),o&&(n&&e.d(1),o())}),e.o(t)}}const $e={duration:0};function xe(e,t,n,o){let a=t(e,n),s=o?0:1,i=null,d=null,p=null;function v(){p&&V(e,p)}function f(e,t){const n=e.b-s;return t*=Math.abs(n),{a:s,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function g(t){const{delay:n=0,duration:o=300,easing:u=r,tick:g=l,css:h}=a||$e,y={start:m()+n,b:t};t||(y.group=me,me.r+=1),i?d=y:(h&&(v(),p=J(e,s,t,o,n,u,h)),t&&g(0,1),i=f(y,o),ce(()=>ve(e,t,"start")),x(t=>{if(d&&t>d.start&&(i=f(d,o),d=null,ve(e,i.b,"start"),h&&(v(),p=J(e,s,i.b,i.duration,0,u,a.css))),i)if(t>=i.end)g(s=i.b,1-s),ve(e,i.b,"end"),d||(i.b?v():--i.group.r||c(i.group.c)),i=null;else if(t>=i.start){const e=t-i.start;s=i.a+i.d*u(e/i.duration),g(s,1-s)}return!(!i&&!d)}))}return{run(e){u(a)?pe().then(()=>{a=a(),g(e)}):g(e)},end(){v(),i=d=null}}}const we="undefined"!=typeof window?window:e;function ke(e,t){const n={},o={},l={$$scope:1};let r=e.length;for(;r--;){const a=e[r],s=t[r];if(s){for(const e in a)e in s||(o[e]=1);for(const e in s)l[e]||(n[e]=s[e],l[e]=1);e[r]=s}else for(const e in a)l[e]=1}for(const a in o)a in n||(n[a]=void 0);return n}function _e(e){return"object"==typeof e&&null!==e?e:{}}function Ce(e,t,n){const{fragment:o,on_mount:l,on_destroy:r,after_update:a}=e.$$;o.m(t,n),ce(()=>{const t=l.map(s).filter(u);r?r.push(...t):c(t),e.$$.on_mount=[]}),a.forEach(ce)}function Ee(e,t){e.$$.fragment&&(c(e.$$.on_destroy),e.$$.fragment.d(t),e.$$.on_destroy=e.$$.fragment=null,e.$$.ctx={})}function Oe(e,t){e.$$.dirty||(te.push(e),ie(),e.$$.dirty=i()),e.$$.dirty[t]=!0}function Ie(e,t,n,o,r,a){const s=N;F(e);const u=t.props||{},d=e.$$={fragment:null,ctx:null,props:a,update:l,not_equal:r,bound:i(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:i(),dirty:null};let p=!1;d.ctx=n?n(e,u,(t,n,o=n)=>(d.ctx&&r(d.ctx[t],d.ctx[t]=o)&&(d.bound[t]&&d.bound[t](o),p&&Oe(e,t)),n)):u,d.update(),p=!0,c(d.before_update),d.fragment=o(d.ctx),t.target&&(t.hydrate?d.fragment.l(A(t.target)):d.fragment.c(),t.intro&&ye(e.$$.fragment),Ce(e,t.target,t.anchor),ue()),F(s)}class je{$destroy(){Ee(this,1),this.$destroy=l}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}}const De=[];function Be(e,t=l){let n;const o=[];function r(t){if(d(e,t)&&(e=t,n)){const t=!De.length;for(let n=0;n<o.length;n+=1){const t=o[n];t[1](),De.push(t,e)}if(t){for(let e=0;e<De.length;e+=2)De[e][0](De[e+1]);De.length=0}}}return{set:r,update:function(t){r(t(e))},subscribe:function(a,s=l){const i=[a,s];return o.push(i),1===o.length&&(n=t(r)||l),a(e),()=>{const e=o.indexOf(i);-1!==e&&o.splice(e,1),0===o.length&&(n(),n=null)}}}}function qe(e){const t=e-1;return t*t*t+1}function Ae(e,{delay:t=0,duration:n=400,easing:o=qe,x:l=0,y:r=0,opacity:a=0}){const s=getComputedStyle(e),i=+s.opacity,c="none"===s.transform?"":s.transform,u=i*(1-a);return{delay:t,duration:n,easing:o,css:(e,t)=>`\n\t\t\ttransform: ${c} translate(${(1-e)*l}px, ${(1-e)*r}px);\n\t\t\topacity: ${i-u*t}`}}function Pe(){var e=E("style");e.id="svelte-19bfq8g-style",e.textContent=".menu.svelte-19bfq8g{display:flex;margin-top:-10px;flex-direction:row;border:1px solid #ccc;border-radius:5px 5px 0 0;height:25px;line-height:25px;margin-right:-500px;transform-origin:bottom right;transform:rotate(-90deg) translate(0, -500px)}.menu-item.svelte-19bfq8g{line-height:25px;cursor:pointer;background:#fefefe;color:#555;padding-left:15px;padding-right:15px;text-align:center}.menu-item.svelte-19bfq8g:last-child{border-radius:0 5px 0 0}.menu-item.svelte-19bfq8g:first-child{border-radius:5px 0 0 0}.menu-item.active.svelte-19bfq8g{cursor:default;font-weight:bold;background:#ddd;color:#555}.menu-item.svelte-19bfq8g:hover{background:#ddd;color:#555}",w(document.head,e)}function Me(e,t,n){const o=Object.create(e);return o.key=t[n][0],o.label=t[n][1].label,o}function Se(e){var t,n,o,l,r=e.label+"";function a(){return e.click_handler(e)}return{c(){t=E("div"),n=O(r),o=I(),B(t,"class","menu-item svelte-19bfq8g"),z(t,"active",e.pane==e.key),l=D(t,"click",a)},m(e,l){k(e,t,l),w(t,n),w(t,o)},p(o,l){e=l,o.panes&&r!==(r=e.label+"")&&P(n,r),(o.pane||o.panes)&&z(t,"active",e.pane==e.key)},d(e){e&&_(t),l()}}}function Le(e){var t;let n=Object.entries(e.panes).reverse(),o=[];for(let l=0;l<n.length;l+=1)o[l]=Se(Me(e,n,l));return{c(){t=E("div");for(let e=0;e<o.length;e+=1)o[e].c();B(t,"class","menu svelte-19bfq8g")},m(e,n){k(e,t,n);for(let l=0;l<o.length;l+=1)o[l].m(t,null)},p(e,l){if(e.pane||e.panes){let r;for(n=Object.entries(l.panes).reverse(),r=0;r<n.length;r+=1){const a=Me(l,n,r);o[r]?o[r].p(e,a):(o[r]=Se(a),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},i:l,o:l,d(e){e&&_(t),C(o,e)}}}function ze(e,t,n){let{pane:o,panes:l}=t;const r=X();return e.$set=(e=>{"pane"in e&&n("pane",o=e.pane),"panes"in e&&n("panes",l=e.panes)}),{pane:o,panes:l,dispatch:r,click_handler:({key:e})=>r("change",e)}}class Te extends je{constructor(e){super(),document.getElementById("svelte-19bfq8g-style")||Pe(),Ie(this,e,ze,Le,d,["pane","panes"])}}function Ne(){var e=E("style");e.id="svelte-1olzq4i-style",e.textContent=".key.svelte-1olzq4i{display:flex;flex-direction:row;align-items:center}.key-box.svelte-1olzq4i{cursor:pointer;min-width:10px;padding-left:5px;padding-right:5px;height:20px;line-height:20px;text-align:center;border:1px solid #ccc;box-shadow:1px 1px 1px #888;background:#eee;color:#444}.key-box.svelte-1olzq4i:hover{background:#ddd}.key.active.svelte-1olzq4i .key-box.svelte-1olzq4i{background:#ddd;border:1px solid #999;box-shadow:none}.label.svelte-1olzq4i{margin-left:10px}",w(document.head,e)}function Ge(e){var t,n;return{c(){t=E("div"),n=O(e.label),B(t,"class","label svelte-1olzq4i")},m(e,o){k(e,t,o),w(t,n)},p(e,t){e.label&&P(n,t.label)},d(e){e&&_(t)}}}function Re(e){var t,n,o,r,a,s=e.label&&Ge(e);return{c(){t=E("div"),n=E("div"),o=O(e.value),r=I(),s&&s.c(),B(n,"class","key-box svelte-1olzq4i"),B(t,"class","key svelte-1olzq4i"),z(t,"active",e.active),a=[D(window,"keydown",e.Keypress),D(n,"click",e.Activate)]},m(e,l){k(e,t,l),w(t,n),w(n,o),w(t,r),s&&s.m(t,null)},p(e,n){e.value&&P(o,n.value),n.label?s?s.p(e,n):((s=Ge(n)).c(),s.m(t,null)):s&&(s.d(1),s=null),e.active&&z(t,"active",n.active)},i:l,o:l,d(e){e&&_(t),s&&s.d(),c(a)}}}function Ke(e,t,n){let o,{value:l,onPress:r=null,label:a=null,disable:s=!1}=t;const{disableHotkeys:i}=Z("hotkeys");v(e,i,e=>{n("$disableHotkeys",o=e)});let c=!1;function u(){n("active",c=!1)}function d(){n("active",c=!0),setTimeout(u,200),r&&setTimeout(r,1)}return e.$set=(e=>{"value"in e&&n("value",l=e.value),"onPress"in e&&n("onPress",r=e.onPress),"label"in e&&n("label",a=e.label),"disable"in e&&n("disable",s=e.disable)}),{value:l,onPress:r,label:a,disable:s,disableHotkeys:i,active:c,Activate:d,Keypress:function(e){o||s||e.key!=l||(e.preventDefault(),d())}}}class Je extends je{constructor(e){super(),document.getElementById("svelte-1olzq4i-style")||Ne(),Ie(this,e,Ke,Re,d,["value","onPress","label","disable"])}}function Ve(){var e=E("style");e.id="svelte-khot71-style",e.textContent=".move.svelte-khot71{cursor:pointer;margin-left:10px;color:#666}.move.svelte-khot71:hover{color:#333}.move.active.svelte-khot71{color:#111;font-weight:bold}.arg-field.svelte-khot71{outline:none;font-family:monospace}",w(document.head,e)}function He(e){var t,n,o,r,a,s;return{c(){t=E("div"),n=O(e.name),o=O("("),r=E("span"),a=O(")"),B(r,"class","arg-field svelte-khot71"),B(r,"contenteditable",""),B(t,"class","move svelte-khot71"),z(t,"active",e.active),s=[D(r,"blur",e.Deactivate),D(r,"keydown",e.OnKeyDown),D(t,"click",e.Activate)]},m(l,s){k(l,t,s),w(t,n),w(t,o),w(t,r),e.span_1_binding(r),w(t,a)},p(e,o){e.name&&P(n,o.name),e.active&&z(t,"active",o.active)},i:l,o:l,d(n){n&&_(t),e.span_1_binding(null),c(s)}}}function Fe(e,t,n){let o,{Activate:l,Deactivate:r,name:a,active:s}=t;const i=X();return W(()=>{s?o.focus():o.blur()}),e.$set=(e=>{"Activate"in e&&n("Activate",l=e.Activate),"Deactivate"in e&&n("Deactivate",r=e.Deactivate),"name"in e&&n("name",a=e.name),"active"in e&&n("active",s=e.active)}),{Activate:l,Deactivate:r,name:a,active:s,span:o,OnKeyDown:function(e){"Enter"==e.key&&(e.preventDefault(),function(){try{const t=o.innerText;let n=new Function(`return [${t}]`)();i("submit",n)}catch(e){i("error",e)}n("span",o.innerText="",o)}()),"Escape"==e.key&&(e.preventDefault(),r())},span_1_binding:function(e){ne[e?"unshift":"push"](()=>{n("span",o=e)})}}}class Ue extends je{constructor(e){super(),document.getElementById("svelte-khot71-style")||Ve(),Ie(this,e,Fe,He,d,["Activate","Deactivate","name","active"])}}function We(){var e=E("style");e.id="svelte-smqssc-style",e.textContent=".move-error.svelte-smqssc{color:#a00;font-weight:bold}.wrapper.svelte-smqssc{display:flex;flex-direction:row;align-items:center}",w(document.head,e)}function Qe(e){var t,n;return{c(){t=E("span"),n=O(e.error),B(t,"class","move-error svelte-smqssc")},m(e,o){k(e,t,o),w(t,n)},p(e,t){e.error&&P(n,t.error)},d(e){e&&_(t)}}}function Xe(e){var t,n,o,l,r,a=new Je({props:{value:e.shortcut,onPress:e.Activate}}),s=new Ue({props:{Activate:e.Activate,Deactivate:e.Deactivate,name:e.name,active:e.active}});s.$on("submit",e.Submit),s.$on("error",e.Error);var i=e.error&&Qe(e);return{c(){t=E("div"),n=E("div"),a.$$.fragment.c(),o=I(),s.$$.fragment.c(),l=I(),i&&i.c(),B(n,"class","wrapper svelte-smqssc")},m(e,c){k(e,t,c),w(t,n),Ce(a,n,null),w(n,o),Ce(s,n,null),w(t,l),i&&i.m(t,null),r=!0},p(e,n){var o={};e.shortcut&&(o.value=n.shortcut),a.$set(o);var l={};e.name&&(l.name=n.name),e.active&&(l.active=n.active),s.$set(l),n.error?i?i.p(e,n):((i=Qe(n)).c(),i.m(t,null)):i&&(i.d(1),i=null)},i(e){r||(ye(a.$$.fragment,e),ye(s.$$.fragment,e),r=!0)},o(e){be(a.$$.fragment,e),be(s.$$.fragment,e),r=!1},d(e){e&&_(t),Ee(a),Ee(s),i&&i.d()}}}function Ye(e,n,o){let{shortcut:l,name:r,fn:a}=n;const{disableHotkeys:s}=Z("hotkeys");let i="",c=!1;function u(){s.set(!1),o("error",i=""),o("active",c=!1)}return e.$set=(e=>{"shortcut"in e&&o("shortcut",l=e.shortcut),"name"in e&&o("name",r=e.name),"fn"in e&&o("fn",a=e.fn)}),{shortcut:l,name:r,fn:a,error:i,active:c,Activate:function(){s.set(!0),o("active",c=!0)},Deactivate:u,Submit:function(e){o("error",i=""),u(),a.apply(this,e.detail)},Error:function(e){o("error",i=e.detail),(0,t.e)(e.detail)}}}class Ze extends je{constructor(e){super(),document.getElementById("svelte-smqssc-style")||We(),Ie(this,e,Ye,Xe,d,["shortcut","name","fn"])}}function et(){var e=E("style");e.id="svelte-1x2w9i0-style",e.textContent="li.svelte-1x2w9i0{list-style:none;margin:none;margin-bottom:5px}",w(document.head,e)}function tt(e){var t,n,o,l,r,a,s,i,c,u=new Je({props:{value:"1",onPress:e.client.reset,label:"reset"}}),d=new Je({props:{value:"2",onPress:e.Save,label:"save"}}),p=new Je({props:{value:"3",onPress:e.Restore,label:"restore"}}),v=new Je({props:{value:".",disable:!0,label:"hide"}});return{c(){t=E("section"),n=E("li"),u.$$.fragment.c(),o=I(),l=E("li"),d.$$.fragment.c(),r=I(),a=E("li"),p.$$.fragment.c(),s=I(),i=E("li"),v.$$.fragment.c(),B(n,"class","svelte-1x2w9i0"),B(l,"class","svelte-1x2w9i0"),B(a,"class","svelte-1x2w9i0"),B(i,"class","svelte-1x2w9i0"),B(t,"id","debug-controls"),B(t,"class","controls")},m(e,f){k(e,t,f),w(t,n),Ce(u,n,null),w(t,o),w(t,l),Ce(d,l,null),w(t,r),w(t,a),Ce(p,a,null),w(t,s),w(t,i),Ce(v,i,null),c=!0},p(e,t){var n={};e.client&&(n.onPress=t.client.reset),u.$set(n)},i(e){c||(ye(u.$$.fragment,e),ye(d.$$.fragment,e),ye(p.$$.fragment,e),ye(v.$$.fragment,e),c=!0)},o(e){be(u.$$.fragment,e),be(d.$$.fragment,e),be(p.$$.fragment,e),be(v.$$.fragment,e),c=!1},d(e){e&&_(t),Ee(u),Ee(d),Ee(p),Ee(v)}}}function nt(e,o,l){let{client:r}=o;return e.$set=(e=>{"client"in e&&l("client",r=e.client)}),{client:r,Save:function(){const{G:e,ctx:t}=r.getState(),o=(0,n.stringify)({G:e,ctx:t});window.localStorage.setItem("gamestate",o)},Restore:function(){const e=window.localStorage.getItem("gamestate");if(null!==e){const o=(0,n.parse)(e);r.store.dispatch((0,t.s)(o))}}}}class ot extends je{constructor(e){super(),document.getElementById("svelte-1x2w9i0-style")||et(),Ie(this,e,nt,tt,d,["client"])}}function lt(){var e=E("style");e.id="svelte-6sf87x-style",e.textContent=".player-box.svelte-6sf87x{display:flex;flex-direction:row}.player.svelte-6sf87x{cursor:pointer;text-align:center;width:30px;height:30px;line-height:30px;background:#eee;border:3px solid #fefefe;box-sizing:content-box}.player.current.svelte-6sf87x{background:#555;color:#eee;font-weight:bold}.player.active.svelte-6sf87x{border:3px solid #ff7f50}",w(document.head,e)}function rt(e,t,n){const o=Object.create(e);return o.player=t[n],o}function at(e){var t,n,o,l,r=e.player+"";function a(){return e.click_handler(e)}return{c(){t=E("div"),n=O(r),o=I(),B(t,"class","player svelte-6sf87x"),z(t,"current",e.player==e.ctx.currentPlayer),z(t,"active",e.player==e.playerID),l=D(t,"click",a)},m(e,l){k(e,t,l),w(t,n),w(t,o)},p(o,l){e=l,o.players&&r!==(r=e.player+"")&&P(n,r),(o.players||o.ctx)&&z(t,"current",e.player==e.ctx.currentPlayer),(o.players||o.playerID)&&z(t,"active",e.player==e.playerID)},d(e){e&&_(t),l()}}}function st(e){var t;let n=e.players,o=[];for(let l=0;l<n.length;l+=1)o[l]=at(rt(e,n,l));return{c(){t=E("div");for(let e=0;e<o.length;e+=1)o[e].c();B(t,"class","player-box svelte-6sf87x")},m(e,n){k(e,t,n);for(let l=0;l<o.length;l+=1)o[l].m(t,null)},p(e,l){if(e.players||e.ctx||e.playerID){let r;for(n=l.players,r=0;r<n.length;r+=1){const a=rt(l,n,r);o[r]?o[r].p(e,a):(o[r]=at(a),o[r].c(),o[r].m(t,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},i:l,o:l,d(e){e&&_(t),C(o,e)}}}function it(e,t,n){let{ctx:o,playerID:l,onClick:r=(()=>{})}=t;const a=X();function s(e){a("change",e==l?{playerID:null}:{playerID:e})}let i;return e.$set=(e=>{"ctx"in e&&n("ctx",o=e.ctx),"playerID"in e&&n("playerID",l=e.playerID),"onClick"in e&&n("onClick",r=e.onClick)}),e.$$.update=((e={ctx:1})=>{e.ctx&&n("players",i=o?[...Array(o.numPlayers).keys()].map(e=>e.toString()):[])}),{ctx:o,playerID:l,onClick:r,OnClick:s,players:i,click_handler:({player:e})=>s(e)}}class ct extends je{constructor(e){super(),document.getElementById("svelte-6sf87x-style")||lt(),Ie(this,e,it,st,d,["ctx","playerID","onClick"])}}function ut(e,t,n){var o={},l={};for(var r in e)l[r]=r;for(var a in t)l[a]=a;for(var s={},i=0;i<n.length;i++){s[n[i]]=!0}var c=s,u=!0;for(var d in l){var p=d[0];if(c[p]){u=!1;break}c[p]=!0,o[d]=p}if(u)return o;c=s;var v=97;for(var f in o={},l){for(var m=String.fromCharCode(v);c[m];)v++,m=String.fromCharCode(v);c[m]=!0,o[f]=m}return o}function dt(){var e=E("style");e.id="svelte-1vg2l2b-style",e.textContent=".json.svelte-1vg2l2b{font-family:monospace;color:#888}label.svelte-1vg2l2b{font-weight:bold;font-size:1.1em;display:inline}h3.svelte-1vg2l2b{text-transform:uppercase}li.svelte-1vg2l2b{list-style:none;margin:none;margin-bottom:5px}.events.svelte-1vg2l2b{display:flex;flex-direction:column}.events.svelte-1vg2l2b button.svelte-1vg2l2b{width:100px}.events.svelte-1vg2l2b button.svelte-1vg2l2b:not(:last-child){margin-bottom:10px}",w(document.head,e)}function pt(e,t,n){const o=Object.create(e);return o.name=t[n][0],o.fn=t[n][1],o}function vt(e){var t,n,o,l=new Ze({props:{shortcut:e.shortcuts[e.name],fn:e.fn,name:e.name}});return{c(){t=E("li"),l.$$.fragment.c(),n=I(),B(t,"class","svelte-1vg2l2b")},m(e,r){k(e,t,r),Ce(l,t,null),w(t,n),o=!0},p(e,t){var n={};e.client&&(n.shortcut=t.shortcuts[t.name]),e.client&&(n.fn=t.fn),e.client&&(n.name=t.name),l.$set(n)},i(e){o||(ye(l.$$.fragment,e),o=!0)},o(e){be(l.$$.fragment,e),o=!1},d(e){e&&_(t),Ee(l)}}}function ft(e){var t,n;return{c(){(t=E("button")).textContent="End Turn",B(t,"class","svelte-1vg2l2b"),n=D(t,"click",e.click_handler)},m(e,n){k(e,t,n)},d(e){e&&_(t),n()}}}function mt(e){var t,n;return{c(){(t=E("button")).textContent="End Phase",B(t,"class","svelte-1vg2l2b"),n=D(t,"click",e.click_handler_1)},m(e,n){k(e,t,n)},d(e){e&&_(t),n()}}}function gt(e){var t,n;return{c(){(t=E("button")).textContent="End Stage",B(t,"class","svelte-1vg2l2b"),n=D(t,"click",e.click_handler_2)},m(e,n){k(e,t,n)},d(e){e&&_(t),n()}}}function ht(e){var t,n,o,l,r,a,s,i,c,u,d,p,v,f,m,g,h,y,b,$,x,j,D,q,A,M,S,L,z,T,N,G=JSON.stringify(e.G,null,2)+"",R=JSON.stringify(yt(e.ctx),null,2)+"",K=new ot({props:{client:e.client}}),J=new ct({props:{ctx:e.ctx,playerID:e.playerID}});J.$on("change",e.change_handler);let V=Object.entries(e.client.moves),H=[];for(let w=0;w<V.length;w+=1)H[w]=vt(pt(e,V,w));const F=e=>be(H[e],1,1,()=>{H[e]=null});var U=e.client.events.endTurn&&ft(e),W=e.ctx.phase&&e.client.events.endPhase&&mt(e),Q=e.ctx.activePlayers&&e.client.events.endStage&&gt(e);return{c(){t=E("section"),(n=E("h3")).textContent="Controls",o=I(),K.$$.fragment.c(),l=I(),r=E("section"),(a=E("h3")).textContent="Players",s=I(),J.$$.fragment.c(),i=I(),c=E("section"),(u=E("h3")).textContent="Moves",d=I();for(let e=0;e<H.length;e+=1)H[e].c();p=I(),v=E("section"),(f=E("h3")).textContent="Events",m=I(),g=E("div"),U&&U.c(),h=I(),W&&W.c(),y=I(),Q&&Q.c(),b=I(),$=E("section"),(x=E("label")).textContent="G",j=I(),D=E("pre"),q=O(G),A=I(),M=E("section"),(S=E("label")).textContent="ctx",L=I(),z=E("pre"),T=O(R),B(n,"class","svelte-1vg2l2b"),B(a,"class","svelte-1vg2l2b"),B(u,"class","svelte-1vg2l2b"),B(f,"class","svelte-1vg2l2b"),B(g,"class","events svelte-1vg2l2b"),B(x,"class","svelte-1vg2l2b"),B(D,"class","json svelte-1vg2l2b"),B(S,"class","svelte-1vg2l2b"),B(z,"class","json svelte-1vg2l2b")},m(e,_){k(e,t,_),w(t,n),w(t,o),Ce(K,t,null),k(e,l,_),k(e,r,_),w(r,a),w(r,s),Ce(J,r,null),k(e,i,_),k(e,c,_),w(c,u),w(c,d);for(let t=0;t<H.length;t+=1)H[t].m(c,null);k(e,p,_),k(e,v,_),w(v,f),w(v,m),w(v,g),U&&U.m(g,null),w(g,h),W&&W.m(g,null),w(g,y),Q&&Q.m(g,null),k(e,b,_),k(e,$,_),w($,x),w($,j),w($,D),w(D,q),k(e,A,_),k(e,M,_),w(M,S),w(M,L),w(M,z),w(z,T),N=!0},p(e,t){var n={};e.client&&(n.client=t.client),K.$set(n);var o={};if(e.ctx&&(o.ctx=t.ctx),e.playerID&&(o.playerID=t.playerID),J.$set(o),e.shortcuts||e.client){let n;for(V=Object.entries(t.client.moves),n=0;n<V.length;n+=1){const o=pt(t,V,n);H[n]?(H[n].p(e,o),ye(H[n],1)):(H[n]=vt(o),H[n].c(),ye(H[n],1),H[n].m(c,null))}for(ge(),n=V.length;n<H.length;n+=1)F(n);he()}t.client.events.endTurn?U||((U=ft(t)).c(),U.m(g,h)):U&&(U.d(1),U=null),t.ctx.phase&&t.client.events.endPhase?W||((W=mt(t)).c(),W.m(g,y)):W&&(W.d(1),W=null),t.ctx.activePlayers&&t.client.events.endStage?Q||((Q=gt(t)).c(),Q.m(g,null)):Q&&(Q.d(1),Q=null),N&&!e.G||G===(G=JSON.stringify(t.G,null,2)+"")||P(q,G),N&&!e.ctx||R===(R=JSON.stringify(yt(t.ctx),null,2)+"")||P(T,R)},i(e){if(!N){ye(K.$$.fragment,e),ye(J.$$.fragment,e);for(let e=0;e<V.length;e+=1)ye(H[e]);N=!0}},o(e){be(K.$$.fragment,e),be(J.$$.fragment,e),H=H.filter(Boolean);for(let t=0;t<H.length;t+=1)be(H[t]);N=!1},d(e){e&&_(t),Ee(K),e&&(_(l),_(r)),Ee(J),e&&(_(i),_(c)),C(H,e),e&&(_(p),_(v)),U&&U.d(),W&&W.d(),Q&&Q.d(),e&&(_(b),_($),_(A),_(M))}}}function yt(e){let t={};for(const n in e)n.startsWith("_")||(t[n]=e[n]);return t}function bt(e,t,n){let{client:o}=t;const l=ut(o.moves,o.events,"mlia");let r=o.playerID,a={},s={};o.subscribe(e=>{e&&(n("G",s=e.G),n("ctx",a=e.ctx)),n("playerID",r=o.playerID)});return e.$set=(e=>{"client"in e&&n("client",o=e.client)}),{client:o,shortcuts:l,playerID:r,ctx:a,G:s,change_handler:e=>o.updatePlayerID(e.detail.playerID),click_handler:()=>o.events.endTurn(),click_handler_1:()=>o.events.endPhase(),click_handler_2:()=>o.events.endStage()}}class $t extends je{constructor(e){super(),document.getElementById("svelte-1vg2l2b-style")||dt(),Ie(this,e,bt,ht,d,["client"])}}function xt(){var e=E("style");e.id="svelte-13qih23-style",e.textContent=".item.svelte-13qih23{padding:10px}.item.svelte-13qih23:not(:first-child){border-top:1px dashed #aaa}.item.svelte-13qih23 div.svelte-13qih23{float:right;text-align:right}",w(document.head,e)}function wt(e){var t,n,o,r,a,s,i=JSON.stringify(e.value)+"";return{c(){t=E("div"),n=E("strong"),o=O(e.name),r=I(),a=E("div"),s=O(i),B(a,"class","svelte-13qih23"),B(t,"class","item svelte-13qih23")},m(e,l){k(e,t,l),w(t,n),w(n,o),w(t,r),w(t,a),w(a,s)},p(e,t){e.name&&P(o,t.name),e.value&&i!==(i=JSON.stringify(t.value)+"")&&P(s,i)},i:l,o:l,d(e){e&&_(t)}}}function kt(e,t,n){let{name:o,value:l}=t;return e.$set=(e=>{"name"in e&&n("name",o=e.name),"value"in e&&n("value",l=e.value)}),{name:o,value:l}}class _t extends je{constructor(e){super(),document.getElementById("svelte-13qih23-style")||xt(),Ie(this,e,kt,wt,d,["name","value"])}}function Ct(){var e=E("style");e.id="svelte-1yzq5o8-style",e.textContent=".gameinfo.svelte-1yzq5o8{padding:10px}",w(document.head,e)}function Et(e){var t,n,o,l=new _t({props:{name:"isConnected",value:e.$client.isConnected}}),r=new _t({props:{name:"isMultiplayer",value:e.$client.isMultiplayer}});return{c(){t=E("span"),l.$$.fragment.c(),n=I(),r.$$.fragment.c()},m(e,a){k(e,t,a),Ce(l,t,null),w(t,n),Ce(r,t,null),o=!0},p(e,t){var n={};e.$client&&(n.value=t.$client.isConnected),l.$set(n);var o={};e.$client&&(o.value=t.$client.isMultiplayer),r.$set(o)},i(e){o||(ye(l.$$.fragment,e),ye(r.$$.fragment,e),o=!0)},o(e){be(l.$$.fragment,e),be(r.$$.fragment,e),o=!1},d(e){e&&_(t),Ee(l),Ee(r)}}}function Ot(e){var t,n,o,l,r,a=new _t({props:{name:"gameID",value:e.client.gameID}}),s=new _t({props:{name:"playerID",value:e.client.playerID}}),i=new _t({props:{name:"isActive",value:e.$client.isActive}}),c=e.$client.isMultiplayer&&Et(e);return{c(){t=E("section"),a.$$.fragment.c(),n=I(),s.$$.fragment.c(),o=I(),i.$$.fragment.c(),l=I(),c&&c.c(),B(t,"class","gameinfo svelte-1yzq5o8")},m(e,u){k(e,t,u),Ce(a,t,null),w(t,n),Ce(s,t,null),w(t,o),Ce(i,t,null),w(t,l),c&&c.m(t,null),r=!0},p(e,n){var o={};e.client&&(o.value=n.client.gameID),a.$set(o);var l={};e.client&&(l.value=n.client.playerID),s.$set(l);var r={};e.$client&&(r.value=n.$client.isActive),i.$set(r),n.$client.isMultiplayer?c?(c.p(e,n),ye(c,1)):((c=Et(n)).c(),ye(c,1),c.m(t,null)):c&&(ge(),be(c,1,1,()=>{c=null}),he())},i(e){r||(ye(a.$$.fragment,e),ye(s.$$.fragment,e),ye(i.$$.fragment,e),ye(c),r=!0)},o(e){be(a.$$.fragment,e),be(s.$$.fragment,e),be(i.$$.fragment,e),be(c),r=!1},d(e){e&&_(t),Ee(a),Ee(s),Ee(i),c&&c.d()}}}function It(e,t,n){let o,{client:l}=t;return v(e,l,e=>{n("$client",o=e)}),e.$set=(e=>{"client"in e&&n("client",l=e.client)}),{client:l,$client:o}}class jt extends je{constructor(e){super(),document.getElementById("svelte-1yzq5o8-style")||Ct(),Ie(this,e,It,Ot,d,["client"])}}function Dt(){var e=E("style");e.id="svelte-6eza86-style",e.textContent=".turn-marker.svelte-6eza86{display:flex;justify-content:center;align-items:center;grid-column:1;background:#555;color:#eee;text-align:center;font-weight:bold;border:1px solid #888}",w(document.head,e)}function Bt(e){var t,n;return{c(){t=E("div"),n=O(e.turn),B(t,"class","turn-marker svelte-6eza86"),B(t,"style",e.style)},m(e,o){k(e,t,o),w(t,n)},p(e,t){e.turn&&P(n,t.turn)},i:l,o:l,d(e){e&&_(t)}}}function qt(e,t,n){let{turn:o,numEvents:l}=t;const r=`grid-row: span ${l}`;return e.$set=(e=>{"turn"in e&&n("turn",o=e.turn),"numEvents"in e&&n("numEvents",l=e.numEvents)}),{turn:o,numEvents:l,style:r}}class At extends je{constructor(e){super(),document.getElementById("svelte-6eza86-style")||Dt(),Ie(this,e,qt,Bt,d,["turn","numEvents"])}}function Pt(){var e=E("style");e.id="svelte-1t4xap-style",e.textContent=".phase-marker.svelte-1t4xap{grid-column:3;background:#555;border:1px solid #888;color:#eee;text-align:center;font-weight:bold;padding-top:10px;padding-bottom:10px;text-orientation:sideways;writing-mode:vertical-rl;line-height:30px;width:100%}",w(document.head,e)}function Mt(e){var t,n,o=e.phase||"";return{c(){t=E("div"),n=O(o),B(t,"class","phase-marker svelte-1t4xap"),B(t,"style",e.style)},m(e,o){k(e,t,o),w(t,n)},p(e,t){e.phase&&o!==(o=t.phase||"")&&P(n,o)},i:l,o:l,d(e){e&&_(t)}}}function St(e,t,n){let{phase:o,numEvents:l}=t;const r=`grid-row: span ${l}`;return e.$set=(e=>{"phase"in e&&n("phase",o=e.phase),"numEvents"in e&&n("numEvents",l=e.numEvents)}),{phase:o,numEvents:l,style:r}}class Lt extends je{constructor(e){super(),document.getElementById("svelte-1t4xap-style")||Pt(),Ie(this,e,St,Mt,d,["phase","numEvents"])}}function zt(e){var t,n;return{c(){t=E("div"),n=O(e.custompayload)},m(e,o){k(e,t,o),w(t,n)},p:l,i:l,o:l,d(e){e&&_(t)}}}function Tt(e,t,n){let{payload:o}=t;const l=void 0!==o?JSON.stringify(o,null,4):"";return e.$set=(e=>{"payload"in e&&n("payload",o=e.payload)}),{payload:o,custompayload:l}}class Nt extends je{constructor(e){super(),Ie(this,e,Tt,zt,d,["payload"])}}function Gt(){var e=E("style");e.id="svelte-10wdo7v-style",e.textContent=".log-event.svelte-10wdo7v{grid-column:2;cursor:pointer;overflow:hidden;display:flex;flex-direction:column;justify-content:center;background:#fff;border:1px dotted #ccc;border-left:5px solid #ccc;padding:5px;text-align:center;color:#888;font-size:14px;min-height:25px;line-height:25px}.log-event.svelte-10wdo7v:hover{border-style:solid;background:#eee}.log-event.pinned.svelte-10wdo7v{border-style:solid;background:#eee;opacity:1}.player0.svelte-10wdo7v{border-left-color:#ff851b}.player1.svelte-10wdo7v{border-left-color:#7fdbff}.player2.svelte-10wdo7v{border-left-color:#0074d9}.player3.svelte-10wdo7v{border-left-color:#39cccc}.player4.svelte-10wdo7v{border-left-color:#3d9970}.player5.svelte-10wdo7v{border-left-color:#2ecc40}.player6.svelte-10wdo7v{border-left-color:#01ff70}.player7.svelte-10wdo7v{border-left-color:#ffdc00}.player8.svelte-10wdo7v{border-left-color:#001f3f}.player9.svelte-10wdo7v{border-left-color:#ff4136}.player10.svelte-10wdo7v{border-left-color:#85144b}.player11.svelte-10wdo7v{border-left-color:#f012be}.player12.svelte-10wdo7v{border-left-color:#b10dc9}.player13.svelte-10wdo7v{border-left-color:#111111}.player14.svelte-10wdo7v{border-left-color:#aaaaaa}.player15.svelte-10wdo7v{border-left-color:#dddddd}",w(document.head,e)}function Rt(e){var t,n=new Nt({props:{payload:e.payload}});return{c(){n.$$.fragment.c()},m(e,o){Ce(n,e,o),t=!0},p(e,t){var o={};e.payload&&(o.payload=t.payload),n.$set(o)},i(e){t||(ye(n.$$.fragment,e),t=!0)},o(e){be(n.$$.fragment,e),t=!1},d(e){Ee(n,e)}}}function Kt(e){var t,n,o=e.payloadComponent;function l(e){return{props:{payload:e.payload}}}if(o)var r=new o(l(e));return{c(){r&&r.$$.fragment.c(),t=j()},m(e,o){r&&Ce(r,e,o),k(e,t,o),n=!0},p(e,n){var a={};if(e.payload&&(a.payload=n.payload),o!==(o=n.payloadComponent)){if(r){ge();const e=r;be(e.$$.fragment,1,0,()=>{Ee(e,1)}),he()}o?((r=new o(l(n))).$$.fragment.c(),ye(r.$$.fragment,1),Ce(r,t.parentNode,t)):r=null}else o&&r.$set(a)},i(e){n||(r&&ye(r.$$.fragment,e),n=!0)},o(e){r&&be(r.$$.fragment,e),n=!1},d(e){e&&_(t),r&&Ee(r,e)}}}function Jt(e){var t,n,o,l,r,a,s,i,u,d,p,v=e.action.payload.type+"",f=e.args.join(",")+"",m=[Kt,Rt],g=[];function h(e,t){return t.payloadComponent?0:1}return i=h(0,e),u=g[i]=m[i](e),{c(){t=E("div"),n=E("div"),o=O(v),l=O("("),r=O(f),a=O(")"),s=I(),u.c(),B(t,"class","log-event player"+e.playerID+" svelte-10wdo7v"),z(t,"pinned",e.pinned),p=[D(t,"click",e.click_handler),D(t,"mouseenter",e.mouseenter_handler),D(t,"mouseleave",e.mouseleave_handler)]},m(e,c){k(e,t,c),w(t,n),w(n,o),w(n,l),w(n,r),w(n,a),w(t,s),g[i].m(t,null),d=!0},p(e,n){d&&!e.action||v===(v=n.action.payload.type+"")||P(o,v);var l=i;(i=h(0,n))===l?g[i].p(e,n):(ge(),be(g[l],1,1,()=>{g[l]=null}),he(),(u=g[i])||(u=g[i]=m[i](n)).c(),ye(u,1),u.m(t,null)),e.pinned&&z(t,"pinned",n.pinned)},i(e){d||(ye(u),d=!0)},o(e){be(u),d=!1},d(e){e&&_(t),g[i].d(),c(p)}}}function Vt(e,t,n){let{logIndex:o,onLogClick:l,onMouseEnter:r,onMouseLeave:a,action:s,pinned:i,payload:c,payloadComponent:u}=t;const d=X(),p=s.payload.args||[],v=s.payload.playerID;return e.$set=(e=>{"logIndex"in e&&n("logIndex",o=e.logIndex),"onLogClick"in e&&n("onLogClick",l=e.onLogClick),"onMouseEnter"in e&&n("onMouseEnter",r=e.onMouseEnter),"onMouseLeave"in e&&n("onMouseLeave",a=e.onMouseLeave),"action"in e&&n("action",s=e.action),"pinned"in e&&n("pinned",i=e.pinned),"payload"in e&&n("payload",c=e.payload),"payloadComponent"in e&&n("payloadComponent",u=e.payloadComponent)}),{logIndex:o,onLogClick:l,onMouseEnter:r,onMouseLeave:a,action:s,pinned:i,payload:c,payloadComponent:u,dispatch:d,args:p,playerID:v,click_handler:()=>d("click",{logIndex:o}),mouseenter_handler:()=>d("mouseenter",{logIndex:o}),mouseleave_handler:()=>d("mouseleave")}}class Ht extends je{constructor(e){super(),document.getElementById("svelte-10wdo7v-style")||Gt(),Ie(this,e,Vt,Jt,d,["logIndex","onLogClick","onMouseEnter","onMouseLeave","action","pinned","payload","payloadComponent"])}}function Ft(){var e=E("style");e.id="svelte-1chtpma-style",e.textContent=".mcts-node.svelte-1chtpma{overflow:hidden;font-size:14px;border-radius:100%;margin-right:30px;border:1px solid #ccc;width:30px;height:30px;line-height:30px;padding:10px;color:#bbb;background:#444;text-align:center}.mcts-node.clickable.svelte-1chtpma{cursor:pointer;color:#777;background:#eee}.mcts-node.clickable.svelte-1chtpma:hover{background:#ddd}",w(document.head,e)}function Ut(e){var t,n,o;return{c(){t=E("div"),n=O(e.visits),B(t,"class","mcts-node svelte-1chtpma"),z(t,"clickable",e.children.length>0),o=[D(t,"click",e.click_handler),D(t,"mouseout",e.mouseout_handler),D(t,"mouseover",e.mouseover_handler)]},m(e,o){k(e,t,o),w(t,n)},p(e,o){e.visits&&P(n,o.visits),e.children&&z(t,"clickable",o.children.length>0)},i:l,o:l,d(e){e&&_(t),c(o)}}}function Wt(e,t,n){let{children:o,visits:l}=t;return e.$set=(e=>{"children"in e&&n("children",o=e.children),"visits"in e&&n("visits",l=e.visits)}),{children:o,visits:l,click_handler:function(t){ee(e,t)},mouseout_handler:function(t){ee(e,t)},mouseover_handler:function(t){ee(e,t)}}}class Qt extends je{constructor(e){super(),document.getElementById("svelte-1chtpma-style")||Ft(),Ie(this,e,Wt,Ut,d,["children","visits"])}}function Xt(e){var t,n,o;return{c(){t=E("li"),n=O("uct "),o=O(e.uct)},m(e,l){k(e,t,l),w(t,n),w(t,o)},p(e,t){e.uct&&P(o,t.uct)},d(e){e&&_(t)}}}function Yt(e){var t,n,o,r,a,s,i,c,u,d,p,v,f,m,g=e.uct&&Xt(e);return{c(){t=E("div"),n=E("div"),o=E("li"),r=O("value "),a=O(e.value),s=I(),i=E("li"),c=O("visits "),u=O(e.visits),d=I(),p=E("li"),v=O("ratio "),f=O(e.ratio),m=I(),g&&g.c(),B(t,"class","mcts-node-preview"),z(t,"root",e.root)},m(e,l){k(e,t,l),w(t,n),w(n,o),w(o,r),w(o,a),w(n,s),w(n,i),w(i,c),w(i,u),w(n,d),w(n,p),w(p,v),w(p,f),w(n,m),g&&g.m(n,null)},p(e,o){e.value&&P(a,o.value),e.visits&&P(u,o.visits),e.ratio&&P(f,o.ratio),o.uct?g?g.p(e,o):((g=Xt(o)).c(),g.m(n,null)):g&&(g.d(1),g=null),e.root&&z(t,"root",o.root)},i:l,o:l,d(e){e&&_(t),g&&g.d()}}}function Zt(e,t,n){let{root:o,visits:l,value:r,parentVisits:a}=t,s=r/l+Math.sqrt(2*Math.log(a)/l),i=r/l;return n("uct",s=Math.floor(100*s)),n("ratio",i=Math.floor(100*i)),a||n("uct",s=null),e.$set=(e=>{"root"in e&&n("root",o=e.root),"visits"in e&&n("visits",l=e.visits),"value"in e&&n("value",r=e.value),"parentVisits"in e&&n("parentVisits",a=e.parentVisits)}),{root:o,visits:l,value:r,parentVisits:a,uct:s,ratio:i}}class en extends je{constructor(e){super(),Ie(this,e,Zt,Yt,d,["root","visits","value","parentVisits"])}}function tn(){var e=E("style");e.id="svelte-31oy8o-style",e.textContent=".mcts.svelte-31oy8o{padding:30px;display:flex;flex-direction:column}.mcts.svelte-31oy8o .description.svelte-31oy8o{text-align:right}.mcts-tree.svelte-31oy8o{height:100%;display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.mcts-tree.svelte-31oy8o .preview.svelte-31oy8o{display:flex;justify-content:center;text-align:center;height:300px;width:300px;padding:10px}.mcts-tree.svelte-31oy8o .parents.svelte-31oy8o{display:flex;flex-direction:row;align-items:center;justify-content:flex-end}.mcts-tree.svelte-31oy8o .children.svelte-31oy8o{display:grid;font-weight:bold;grid-template-columns:repeat(1, 1fr);grid-gap:10px}.mcts-action-wrapper.svelte-31oy8o{display:flex;flex-direction:row;align-items:center}.mcts-action.svelte-31oy8o{color:#888;font-size:11px;font-weight:normal;background:#ddd;height:25px;line-height:25px;padding-left:10px;padding-right:10px}.arrow-right.svelte-31oy8o{width:0;height:0;border-top:20px solid transparent;border-bottom:20px solid transparent;border-left:20px solid #ddd;margin-right:30px}",w(document.head,e)}function nn(e,t,n){const o=Object.create(e);return o.child=t[n].child,o.arrowText=t[n].arrowText,o}function on(e,t,n){const o=Object.create(e);return o.parent=t[n].parent,o.arrowText=t[n].arrowText,o}function ln(e){var t,n,o,l,r,s,i,c,u=e.arrowText+"",d=[e.parent];let p={};for(var v=0;v<d.length;v+=1)p=a(p,d[v]);var f=new Qt({props:p});return f.$on("click",function(){return e.click_handler(e)}),f.$on("mouseout",e.mouseout_handler),f.$on("mouseover",function(){return e.mouseover_handler(e)}),{c(){t=E("div"),f.$$.fragment.c(),n=I(),o=E("div"),l=O(u),r=I(),s=E("div"),i=I(),B(o,"class","mcts-action svelte-31oy8o"),B(s,"class","arrow-right svelte-31oy8o"),B(t,"class","mcts-action-wrapper svelte-31oy8o")},m(e,a){k(e,t,a),Ce(f,t,null),w(t,n),w(t,o),w(o,l),w(t,r),w(t,s),w(t,i),c=!0},p(t,n){e=n;var o=t.parents?ke(d,[_e(e.parent)]):{};f.$set(o),c&&!t.parents||u===(u=e.arrowText+"")||P(l,u)},i(e){c||(ye(f.$$.fragment,e),c=!0)},o(e){be(f.$$.fragment,e),c=!1},d(e){e&&_(t),Ee(f)}}}function rn(e){var t,n,o,l,r,s,i,c,u=e.arrowText+"",d=[e.child,{parentVisits:e.root.visits}];let p={};for(var v=0;v<d.length;v+=1)p=a(p,d[v]);var f=new Qt({props:p});return f.$on("click",function(){return e.click_handler_1(e)}),f.$on("mouseout",e.mouseout_handler_2),f.$on("mouseover",function(){return e.mouseover_handler_2(e)}),{c(){t=E("div"),n=E("div"),o=O(u),l=I(),r=E("div"),s=I(),f.$$.fragment.c(),i=I(),B(n,"class","mcts-action svelte-31oy8o"),B(r,"class","arrow-right svelte-31oy8o"),B(t,"class","mcts-action-wrapper svelte-31oy8o")},m(e,a){k(e,t,a),w(t,n),w(n,o),w(t,l),w(t,r),w(t,s),Ce(f,t,null),w(t,i),c=!0},p(t,n){e=n,c&&!t.children||u===(u=e.arrowText+"")||P(o,u);var l=t.children||t.root?ke(d,[t.children&&_e(e.child),t.root&&{parentVisits:e.root.visits}]):{};f.$set(l)},i(e){c||(ye(f.$$.fragment,e),c=!0)},o(e){be(f.$$.fragment,e),c=!1},d(e){e&&_(t),Ee(f)}}}function an(e){var t,n=[e.preview];let o={};for(var l=0;l<n.length;l+=1)o=a(o,n[l]);var r=new en({props:o});return{c(){r.$$.fragment.c()},m(e,n){Ce(r,e,n),t=!0},p(e,t){var o=e.preview?ke(n,[_e(t.preview)]):{};r.$set(o)},i(e){t||(ye(r.$$.fragment,e),t=!0)},o(e){be(r.$$.fragment,e),t=!1},d(e){Ee(r,e)}}}function sn(e){var t,n,o,l,r,s,i,c,u,d,p,v,f,m,g,h,y,b,$,x,j,D,q,A,P,M;let S=e.parents,L=[];for(let a=0;a<S.length;a+=1)L[a]=ln(on(e,S,a));const z=e=>be(L[e],1,1,()=>{L[e]=null});var T=[e.root,{root:!0}];let N={};for(var G=0;G<T.length;G+=1)N=a(N,T[G]);var R=new Qt({props:N});R.$on("mouseout",e.mouseout_handler_1),R.$on("mouseover",e.mouseover_handler_1);let K=e.children,J=[];for(let a=0;a<K.length;a+=1)J[a]=rn(nn(e,K,a));const V=e=>be(J[e],1,1,()=>{J[e]=null});var H=e.preview&&an(e);return{c(){t=E("div"),n=E("div"),(o=E("h4")).textContent="MCTS Visualizer",l=I(),(r=E("p")).textContent="The following diagram explains why the bot made this particular\n move.",s=I(),(i=E("p")).textContent="Interactively browse through the MCTS tree by clicking on various\n nodes.",c=I(),(u=E("p")).textContent="The numbers inside the nodes are the number of visits made by the\n algorithm.",d=I(),p=E("p"),v=O("Unexpanded nodes are marked black. Read more about MCTS"),f=O(" "),m=I(),(g=E("a")).textContent="here",h=O("\n ."),y=I(),b=E("div"),$=E("section");for(let e=0;e<L.length;e+=1)L[e].c();x=I(),j=E("section"),R.$$.fragment.c(),D=I(),q=E("section");for(let e=0;e<J.length;e+=1)J[e].c();A=I(),P=E("section"),H&&H.c(),B(g,"href","https://jeffbradberry.com/posts/2015/09/intro-to-monte-carlo-tree-search/"),B(n,"class","description svelte-31oy8o"),B($,"class","parents svelte-31oy8o"),B(j,"class","root"),B(q,"class","children svelte-31oy8o"),B(P,"class","preview svelte-31oy8o"),B(b,"class","mcts-tree svelte-31oy8o"),B(t,"class","mcts svelte-31oy8o")},m(e,a){k(e,t,a),w(t,n),w(n,o),w(n,l),w(n,r),w(n,s),w(n,i),w(n,c),w(n,u),w(n,d),w(n,p),w(p,v),w(p,f),w(p,m),w(p,g),w(p,h),w(t,y),w(t,b),w(b,$);for(let t=0;t<L.length;t+=1)L[t].m($,null);w(b,x),w(b,j),Ce(R,j,null),w(b,D),w(b,q);for(let t=0;t<J.length;t+=1)J[t].m(q,null);w(b,A),w(b,P),H&&H.m(P,null),M=!0},p(e,t){if(e.parents){let n;for(S=t.parents,n=0;n<S.length;n+=1){const o=on(t,S,n);L[n]?(L[n].p(e,o),ye(L[n],1)):(L[n]=ln(o),L[n].c(),ye(L[n],1),L[n].m($,null))}for(ge(),n=S.length;n<L.length;n+=1)z(n);he()}var n=e.root?ke(T,[_e(t.root),T[1]]):{};if(R.$set(n),e.children||e.root){let n;for(K=t.children,n=0;n<K.length;n+=1){const o=nn(t,K,n);J[n]?(J[n].p(e,o),ye(J[n],1)):(J[n]=rn(o),J[n].c(),ye(J[n],1),J[n].m(q,null))}for(ge(),n=K.length;n<J.length;n+=1)V(n);he()}t.preview?H?(H.p(e,t),ye(H,1)):((H=an(t)).c(),ye(H,1),H.m(P,null)):H&&(ge(),be(H,1,1,()=>{H=null}),he())},i(e){if(!M){for(let e=0;e<S.length;e+=1)ye(L[e]);ye(R.$$.fragment,e);for(let e=0;e<K.length;e+=1)ye(J[e]);ye(H),M=!0}},o(e){L=L.filter(Boolean);for(let t=0;t<L.length;t+=1)be(L[t]);be(R.$$.fragment,e),J=J.filter(Boolean);for(let t=0;t<J.length;t+=1)be(J[t]);be(H),M=!1},d(e){e&&_(t),C(L,e),Ee(R),C(J,e),H&&H.d()}}}function cn(e,t,n){let{root:o}=t,l=null,r=[],a=[];return e.$set=(e=>{"root"in e&&n("root",o=e.root)}),e.$$.update=((e={root:1,parents:1})=>{if(e.root||e.parents){let e=o;for(n("parents",r=[]);e.parent;){const t=e.parent,{type:n,args:o}=e.parentAction.payload,l=`${n}(${(o||[]).join(",")})`;r.push({parent:t,arrowText:l}),e=t}r.reverse(),n("children",a=o.children.map(e=>{const{type:t,args:n}=e.parentAction.payload;return{arrowText:`${t}(${(n||[]).join(",")})`,child:e}}))}}),{root:o,preview:l,parents:r,children:a,click_handler:({parent:e})=>{n("root",o=e)},mouseout_handler:()=>{n("preview",l=null)},mouseover_handler:({parent:e})=>{n("preview",l=e)},mouseout_handler_1:()=>{n("preview",l=null)},mouseover_handler_1:()=>{n("preview",l=o)},click_handler_1:({child:e})=>{n("root",o=e)},mouseout_handler_2:()=>{n("preview",l=null)},mouseover_handler_2:({child:e})=>{n("preview",l=e)}}}class un extends je{constructor(e){super(),document.getElementById("svelte-31oy8o-style")||tn(),Ie(this,e,cn,sn,d,["root"])}}function dn(e){var t,n=new un({props:{root:e.metadata}});return{c(){n.$$.fragment.c()},m(e,o){Ce(n,e,o),t=!0},p(e,t){var o={};e.metadata&&(o.root=t.metadata),n.$set(o)},i(e){t||(ye(n.$$.fragment,e),t=!0)},o(e){be(n.$$.fragment,e),t=!1},d(e){Ee(n,e)}}}function pn(e,t,n){let{metadata:o}=t;return e.$set=(e=>{"metadata"in e&&n("metadata",o=e.metadata)}),{metadata:o}}class vn extends je{constructor(e){super(),Ie(this,e,pn,dn,d,["metadata"])}}function fn(){var e=E("style");e.id="svelte-1pq5e4b-style",e.textContent=".gamelog.svelte-1pq5e4b{display:grid;grid-template-columns:30px 1fr 30px;grid-auto-rows:auto;grid-auto-flow:column}",w(document.head,e)}function mn(e,t,n){const o=Object.create(e);return o.phase=t[n].phase,o.i=n,o}function gn(e,t,n){const o=Object.create(e);return o.action=t[n].action,o.payload=t[n].payload,o.i=n,o}function hn(e,t,n){const o=Object.create(e);return o.turn=t[n].turn,o.i=n,o}function yn(e){var t,n=new At({props:{turn:e.turn,numEvents:e.turnBoundaries[e.i]}});return{c(){n.$$.fragment.c()},m(e,o){Ce(n,e,o),t=!0},p(e,t){var o={};e.renderedLogEntries&&(o.turn=t.turn),e.turnBoundaries&&(o.numEvents=t.turnBoundaries[t.i]),n.$set(o)},i(e){t||(ye(n.$$.fragment,e),t=!0)},o(e){be(n.$$.fragment,e),t=!1},d(e){Ee(n,e)}}}function bn(e){var t,n,o=e.i in e.turnBoundaries&&yn(e);return{c(){o&&o.c(),t=j()},m(e,l){o&&o.m(e,l),k(e,t,l),n=!0},p(e,n){n.i in n.turnBoundaries?o?(o.p(e,n),ye(o,1)):((o=yn(n)).c(),ye(o,1),o.m(t.parentNode,t)):o&&(ge(),be(o,1,1,()=>{o=null}),he())},i(e){n||(ye(o),n=!0)},o(e){be(o),n=!1},d(e){o&&o.d(e),e&&_(t)}}}function $n(e){var t,n=new Ht({props:{pinned:e.i===e.pinned,logIndex:e.i,action:e.action,payload:e.payload}});return n.$on("click",e.OnLogClick),n.$on("mouseenter",e.OnMouseEnter),n.$on("mouseleave",e.OnMouseLeave),{c(){n.$$.fragment.c()},m(e,o){Ce(n,e,o),t=!0},p(e,t){var o={};e.pinned&&(o.pinned=t.i===t.pinned),e.renderedLogEntries&&(o.action=t.action),e.renderedLogEntries&&(o.payload=t.payload),n.$set(o)},i(e){t||(ye(n.$$.fragment,e),t=!0)},o(e){be(n.$$.fragment,e),t=!1},d(e){Ee(n,e)}}}function xn(e){var t,n=new Lt({props:{phase:e.phase,numEvents:e.phaseBoundaries[e.i]}});return{c(){n.$$.fragment.c()},m(e,o){Ce(n,e,o),t=!0},p(e,t){var o={};e.renderedLogEntries&&(o.phase=t.phase),e.phaseBoundaries&&(o.numEvents=t.phaseBoundaries[t.i]),n.$set(o)},i(e){t||(ye(n.$$.fragment,e),t=!0)},o(e){be(n.$$.fragment,e),t=!1},d(e){Ee(n,e)}}}function wn(e){var t,n,o=e.i in e.phaseBoundaries&&xn(e);return{c(){o&&o.c(),t=j()},m(e,l){o&&o.m(e,l),k(e,t,l),n=!0},p(e,n){n.i in n.phaseBoundaries?o?(o.p(e,n),ye(o,1)):((o=xn(n)).c(),ye(o,1),o.m(t.parentNode,t)):o&&(ge(),be(o,1,1,()=>{o=null}),he())},i(e){n||(ye(o),n=!0)},o(e){be(o),n=!1},d(e){o&&o.d(e),e&&_(t)}}}function kn(e){var t,n,o,l,r;let a=e.renderedLogEntries,s=[];for(let m=0;m<a.length;m+=1)s[m]=bn(hn(e,a,m));const i=e=>be(s[e],1,1,()=>{s[e]=null});let c=e.renderedLogEntries,u=[];for(let m=0;m<c.length;m+=1)u[m]=$n(gn(e,c,m));const d=e=>be(u[e],1,1,()=>{u[e]=null});let p=e.renderedLogEntries,v=[];for(let m=0;m<p.length;m+=1)v[m]=wn(mn(e,p,m));const f=e=>be(v[e],1,1,()=>{v[e]=null});return{c(){t=E("div");for(let e=0;e<s.length;e+=1)s[e].c();n=I();for(let e=0;e<u.length;e+=1)u[e].c();o=I();for(let e=0;e<v.length;e+=1)v[e].c();B(t,"class","gamelog svelte-1pq5e4b"),z(t,"pinned",e.pinned),r=D(window,"keydown",e.OnKeyDown)},m(e,r){k(e,t,r);for(let n=0;n<s.length;n+=1)s[n].m(t,null);w(t,n);for(let n=0;n<u.length;n+=1)u[n].m(t,null);w(t,o);for(let n=0;n<v.length;n+=1)v[n].m(t,null);l=!0},p(e,l){if(e.turnBoundaries||e.renderedLogEntries){let o;for(a=l.renderedLogEntries,o=0;o<a.length;o+=1){const r=hn(l,a,o);s[o]?(s[o].p(e,r),ye(s[o],1)):(s[o]=bn(r),s[o].c(),ye(s[o],1),s[o].m(t,n))}for(ge(),o=a.length;o<s.length;o+=1)i(o);he()}if(e.pinned||e.renderedLogEntries){let n;for(c=l.renderedLogEntries,n=0;n<c.length;n+=1){const r=gn(l,c,n);u[n]?(u[n].p(e,r),ye(u[n],1)):(u[n]=$n(r),u[n].c(),ye(u[n],1),u[n].m(t,o))}for(ge(),n=c.length;n<u.length;n+=1)d(n);he()}if(e.phaseBoundaries||e.renderedLogEntries){let n;for(p=l.renderedLogEntries,n=0;n<p.length;n+=1){const o=mn(l,p,n);v[n]?(v[n].p(e,o),ye(v[n],1)):(v[n]=wn(o),v[n].c(),ye(v[n],1),v[n].m(t,null))}for(ge(),n=p.length;n<v.length;n+=1)f(n);he()}e.pinned&&z(t,"pinned",l.pinned)},i(e){if(!l){for(let e=0;e<a.length;e+=1)ye(s[e]);for(let e=0;e<c.length;e+=1)ye(u[e]);for(let e=0;e<p.length;e+=1)ye(v[e]);l=!0}},o(e){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)be(s[t]);u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)be(u[t]);v=v.filter(Boolean);for(let t=0;t<v.length;t+=1)be(v[t]);l=!1},d(e){e&&_(t),C(s,e),C(u,e),C(v,e),r()}}}function _n(e,n,o){let l,{client:r}=n;v(e,r,e=>{o("$client",l=e)});const{secondaryPane:a}=Z("secondaryPane");let s,{log:i,_initial:c}=l,u=null;function d(e){let n=c;for(let o=0;o<i.length;o++){const{action:l,automatic:a}=i[o];if(a||(n=r.reducer(n,l)),l.type==t.M){if(0==e)break;e--}}return{G:n.G,ctx:n.ctx}}function p(){o("pinned",u=null),r.overrideGameState(null),a.set(null)}Q(p);let f={},m={};return e.$set=(e=>{"client"in e&&o("client",r=e.client)}),e.$$.update=((e={$client:1,log:1,renderedLogEntries:1})=>{if(e.$client||e.log||e.renderedLogEntries){o("log",i=l.log),o("renderedLogEntries",s=i.filter(e=>e.action.type==t.M));let e=0,n=0;o("turnBoundaries",f={}),o("phaseBoundaries",m={});for(let t=0;t<s.length;t++){const{action:l,payload:r,turn:a,phase:i}=s[t];n++,e++,t!=s.length-1&&s[t+1].turn==a||(o("turnBoundaries",f[t]=n,f),n=0),t!=s.length-1&&s[t+1].phase==i||(o("phaseBoundaries",m[t]=e,m),e=0)}}}),{client:r,pinned:u,OnLogClick:function(e){const{logIndex:n}=e.detail,l=d(n),s=i.filter(e=>e.action.type==t.M);if(r.overrideGameState(l),u==n)o("pinned",u=null),a.set(null);else{o("pinned",u=n);const{metadata:e}=s[n].action.payload;e&&a.set({component:vn,metadata:e})}},OnMouseEnter:function(e){const{logIndex:t}=e.detail;if(null===u){const e=d(t);r.overrideGameState(e)}},OnMouseLeave:function(){null===u&&r.overrideGameState(null)},OnKeyDown:function(e){27==e.keyCode&&p()},renderedLogEntries:s,turnBoundaries:f,phaseBoundaries:m}}class Cn extends je{constructor(e){super(),document.getElementById("svelte-1pq5e4b-style")||fn(),Ie(this,e,_n,kn,d,["client"])}}const{Object:En}=we;function On(){var e=E("style");e.id="svelte-7cel4i-style",e.textContent="label.svelte-7cel4i{font-weight:bold;color:#999}.option.svelte-7cel4i{margin-bottom:20px}.value.svelte-7cel4i{font-weight:bold}input[type='checkbox'].svelte-7cel4i{vertical-align:middle}",w(document.head,e)}function In(e,t,n){const o=En.create(e);return o.key=t[n][0],o.value=t[n][1],o}function jn(e){var t,n,o,l,r,a,s,i=e.values[e.key]+"";function u(){e.input_change_input_handler.call(l,e)}return{c(){t=E("span"),n=O(i),o=I(),l=E("input"),B(t,"class","value svelte-7cel4i"),B(l,"type","range"),B(l,"min",r=e.value.range.min),B(l,"max",a=e.value.range.max),s=[D(l,"change",u),D(l,"input",u),D(l,"change",e.OnChange)]},m(r,a){k(r,t,a),w(t,n),k(r,o,a),k(r,l,a),M(l,e.values[e.key])},p(t,o){e=o,(t.values||t.bot)&&i!==(i=e.values[e.key]+"")&&P(n,i),(t.values||t.Object||t.bot)&&M(l,e.values[e.key]),t.bot&&r!==(r=e.value.range.min)&&B(l,"min",r),t.bot&&a!==(a=e.value.range.max)&&B(l,"max",a)},d(e){e&&(_(t),_(o),_(l)),c(s)}}}function Dn(e){var t,n;function o(){e.input_change_handler.call(t,e)}return{c(){B(t=E("input"),"type","checkbox"),B(t,"class","svelte-7cel4i"),n=[D(t,"change",o),D(t,"change",e.OnChange)]},m(n,o){k(n,t,o),t.checked=e.values[e.key]},p(n,o){e=o,(n.values||n.Object||n.bot)&&(t.checked=e.values[e.key])},d(e){e&&_(t),c(n)}}}function Bn(e){var t,n,o,l,r,a,s=e.key+"",i=e.value.range&&jn(e),c="boolean"==typeof e.value.value&&Dn(e);return{c(){t=E("div"),n=E("label"),o=O(s),l=I(),i&&i.c(),r=I(),c&&c.c(),a=I(),B(n,"class","svelte-7cel4i"),B(t,"class","option svelte-7cel4i")},m(e,s){k(e,t,s),w(t,n),w(n,o),w(t,l),i&&i.m(t,null),w(t,r),c&&c.m(t,null),w(t,a)},p(e,n){e.bot&&s!==(s=n.key+"")&&P(o,s),n.value.range?i?i.p(e,n):((i=jn(n)).c(),i.m(t,r)):i&&(i.d(1),i=null),"boolean"==typeof n.value.value?c?c.p(e,n):((c=Dn(n)).c(),c.m(t,a)):c&&(c.d(1),c=null)},d(e){e&&_(t),i&&i.d(),c&&c.d()}}}function qn(e){var t;let n=e.Object.entries(e.bot.opts()),o=[];for(let l=0;l<n.length;l+=1)o[l]=Bn(In(e,n,l));return{c(){for(let e=0;e<o.length;e+=1)o[e].c();t=j()},m(e,n){for(let t=0;t<o.length;t+=1)o[t].m(e,n);k(e,t,n)},p(e,l){if(e.Object||e.bot||e.values){let r;for(n=l.Object.entries(l.bot.opts()),r=0;r<n.length;r+=1){const a=In(l,n,r);o[r]?o[r].p(e,a):(o[r]=Bn(a),o[r].c(),o[r].m(t.parentNode,t))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},i:l,o:l,d(e){C(o,e),e&&_(t)}}}function An(e,t,n){let{bot:o}=t,l={};for(let[r,a]of Object.entries(o.opts()))n("values",l[r]=a.value,l);return e.$set=(e=>{"bot"in e&&n("bot",o=e.bot)}),{bot:o,values:l,OnChange:function(){for(let[e,t]of Object.entries(l))o.setOpt(e,t)},Object:Object,input_change_input_handler:function({key:e}){l[e]=q(this.value),n("values",l),n("Object",Object),n("bot",o)},input_change_handler:function({key:e}){l[e]=this.checked,n("values",l),n("Object",Object),n("bot",o)}}}class Pn extends je{constructor(e){super(),document.getElementById("svelte-7cel4i-style")||On(),Ie(this,e,An,qn,d,["bot"])}}function Mn(){var e=E("style");e.id="svelte-mavpb4-style",e.textContent="li.svelte-mavpb4{list-style:none;margin:none;margin-bottom:5px}h3.svelte-mavpb4{text-transform:uppercase}",w(document.head,e)}function Sn(e,t,n){const o=Object.create(e);return o.bot=t[n],o}function Ln(e){var t,n,o;return{c(){(t=E("p")).textContent="No bots available.",n=I(),(o=E("p")).innerHTML='\n\t\t\t Follow the instructions\n\t\t\t <a href="https://boardgame.io/documentation/#/tutorial?id=bots" target="_blank">\n\t\t\t here</a>\n\t\t\t to set up bots.\n\t\t\t '},m(e,l){k(e,t,l),k(e,n,l),k(e,o,l)},p:l,i:l,o:l,d(e){e&&(_(t),_(n),_(o))}}}function zn(e){var t;return{c(){(t=E("p")).textContent="The bot debugger is only available in singleplayer mode."},m(e,n){k(e,t,n)},p:l,i:l,o:l,d(e){e&&_(t)}}}function Tn(e){var t,n,o,l,r,a,s,i,u,d,p,v,f,m,g,h,y,b,$=Object.keys(e.bot.opts()).length,x=new Je({props:{value:"1",onPress:e.Reset,label:"reset"}}),O=new Je({props:{value:"2",onPress:e.Step,label:"play"}}),q=new Je({props:{value:"3",onPress:e.Simulate,label:"simulate"}});let A=Object.keys(e.bots),P=[];for(let c=0;c<A.length;c+=1)P[c]=Nn(Sn(e,A,c));var M=$&&Gn(e),L=(e.botAction||e.iterationCounter)&&Rn(e);return{c(){t=E("section"),(n=E("h3")).textContent="Controls",o=I(),l=E("li"),x.$$.fragment.c(),r=I(),a=E("li"),O.$$.fragment.c(),s=I(),i=E("li"),q.$$.fragment.c(),u=I(),d=E("section"),(p=E("h3")).textContent="Bot",v=I(),f=E("select");for(let e=0;e<P.length;e+=1)P[e].c();m=I(),M&&M.c(),g=I(),L&&L.c(),h=j(),B(n,"class","svelte-mavpb4"),B(l,"class","svelte-mavpb4"),B(a,"class","svelte-mavpb4"),B(i,"class","svelte-mavpb4"),B(p,"class","svelte-mavpb4"),void 0===e.selectedBot&&ce(()=>e.select_change_handler.call(f)),b=[D(f,"change",e.select_change_handler),D(f,"change",e.ChangeBot)]},m(c,b){k(c,t,b),w(t,n),w(t,o),w(t,l),Ce(x,l,null),w(t,r),w(t,a),Ce(O,a,null),w(t,s),w(t,i),Ce(q,i,null),k(c,u,b),k(c,d,b),w(d,p),w(d,v),w(d,f);for(let e=0;e<P.length;e+=1)P[e].m(f,null);S(f,e.selectedBot),k(c,m,b),M&&M.m(c,b),k(c,g,b),L&&L.m(c,b),k(c,h,b),y=!0},p(e,t){if(e.bots){let n;for(A=Object.keys(t.bots),n=0;n<A.length;n+=1){const o=Sn(t,A,n);P[n]?P[n].p(e,o):(P[n]=Nn(o),P[n].c(),P[n].m(f,null))}for(;n<P.length;n+=1)P[n].d(1);P.length=A.length}e.selectedBot&&S(f,t.selectedBot),e.bot&&($=Object.keys(t.bot.opts()).length),$?M?(M.p(e,t),ye(M,1)):((M=Gn(t)).c(),ye(M,1),M.m(g.parentNode,g)):M&&(ge(),be(M,1,1,()=>{M=null}),he()),t.botAction||t.iterationCounter?L?L.p(e,t):((L=Rn(t)).c(),L.m(h.parentNode,h)):L&&(L.d(1),L=null)},i(e){y||(ye(x.$$.fragment,e),ye(O.$$.fragment,e),ye(q.$$.fragment,e),ye(M),y=!0)},o(e){be(x.$$.fragment,e),be(O.$$.fragment,e),be(q.$$.fragment,e),be(M),y=!1},d(e){e&&_(t),Ee(x),Ee(O),Ee(q),e&&(_(u),_(d)),C(P,e),e&&_(m),M&&M.d(e),e&&_(g),L&&L.d(e),e&&_(h),c(b)}}}function Nn(e){var t,n,o=e.bot+"";return{c(){t=E("option"),n=O(o),t.__value=e.bot,t.value=t.__value},m(e,o){k(e,t,o),w(t,n)},p:l,d(e){e&&_(t)}}}function Gn(e){var t,n,o,l,r=new Pn({props:{bot:e.bot}});return{c(){t=E("section"),(n=E("h3")).textContent="Options",o=I(),r.$$.fragment.c(),B(n,"class","svelte-mavpb4")},m(e,a){k(e,t,a),w(t,n),w(t,o),Ce(r,t,null),l=!0},p(e,t){var n={};e.bot&&(n.bot=t.bot),r.$set(n)},i(e){l||(ye(r.$$.fragment,e),l=!0)},o(e){be(r.$$.fragment,e),l=!1},d(e){e&&_(t),Ee(r)}}}function Rn(e){var t,n,o,l,r=e.progress&&e.progress<1&&Kn(e),a=e.botAction&&Jn(e);return{c(){t=E("section"),(n=E("h3")).textContent="Result",o=I(),r&&r.c(),l=I(),a&&a.c(),B(n,"class","svelte-mavpb4")},m(e,s){k(e,t,s),w(t,n),w(t,o),r&&r.m(t,null),w(t,l),a&&a.m(t,null)},p(e,n){n.progress&&n.progress<1?r?r.p(e,n):((r=Kn(n)).c(),r.m(t,l)):r&&(r.d(1),r=null),n.botAction?a?a.p(e,n):((a=Jn(n)).c(),a.m(t,null)):a&&(a.d(1),a=null)},d(e){e&&_(t),r&&r.d(),a&&a.d()}}}function Kn(e){var t;return{c(){(t=E("progress")).value=e.progress},m(e,n){k(e,t,n)},p(e,n){e.progress&&(t.value=n.progress)},d(e){e&&_(t)}}}function Jn(e){var t,n,o,l,r,a,s,i,c,u,d,p=JSON.stringify(e.botActionArgs)+"";return{c(){t=E("li"),n=O("Action: "),o=O(e.botAction),l=I(),r=E("li"),a=O("Args: "),s=O(p),i=I(),c=E("p"),(u=E("button")).textContent="Debug",B(t,"class","svelte-mavpb4"),B(r,"class","svelte-mavpb4"),d=D(u,"click",e.DebugLastMove)},m(e,d){k(e,t,d),w(t,n),w(t,o),k(e,l,d),k(e,r,d),w(r,a),w(r,s),k(e,i,d),k(e,c,d),w(c,u)},p(e,t){e.botAction&&P(o,t.botAction),e.botActionArgs&&p!==(p=JSON.stringify(t.botActionArgs)+"")&&P(s,p)},d(e){e&&(_(t),_(l),_(r),_(i),_(c)),d()}}}function Vn(e){var t,n,o,l,r,a=[Tn,zn,Ln],s=[];function i(e,t){return t.client.ai&&!t.client.multiplayer?0:t.client.multiplayer?1:2}return n=i(0,e),o=s[n]=a[n](e),{c(){t=E("section"),o.c(),r=D(window,"keydown",e.OnKeyDown)},m(e,o){k(e,t,o),s[n].m(t,null),l=!0},p(e,l){var r=n;(n=i(0,l))===r?s[n].p(e,l):(ge(),be(s[r],1,1,()=>{s[r]=null}),he(),(o=s[n])||(o=s[n]=a[n](l)).c(),ye(o,1),o.m(t,null))},i(e){l||(ye(o),l=!0)},o(e){be(o),l=!1},d(e){e&&_(t),s[n].d(),r()}}}function Hn(e,n,l){let{client:r}=n;const{secondaryPane:a}=Z("secondaryPane"),s={MCTS:o.M,Random:o.R};let i=null,c=0;const u=(e,t)=>{l("iterationCounter",c=e),l("progress",i=e/t)};let d,p,v,f;function m(){r.overrideGameState(null),a.set(null)}return r.ai&&(l("bot",d=new o.M({game:r.game,enumerate:r.ai.enumerate,iterationCallback:u})),d.setOpt("async",!0)),Q(m),e.$set=(e=>{"client"in e&&l("client",r=e.client)}),{client:r,bots:s,progress:i,iterationCounter:c,bot:d,selectedBot:p,botAction:v,botActionArgs:f,ChangeBot:function(){const e=s[p];l("bot",d=new e({game:r.game,enumerate:r.ai.enumerate,iterationCallback:u})),d.setOpt("async",!0),l("botAction",v=null),l("iterationCounter",c=0)},Step:async function(){l("botAction",v=null),l("iterationCounter",c=0);const e=await(0,o.S)(r,d);l("botAction",v=e.payload.type),l("botActionArgs",f=e.payload.args)},Simulate:function(e=1e4,t=100){return l("botAction",v=null),l("iterationCounter",c=0),(async()=>{for(let n=0;n<e&&await(0,o.S)(r,d);n++)await new Promise(e=>setTimeout(e,t))})()},DebugLastMove:function(){const{log:e}=r.getState(),n=e.filter(e=>e.action.type==t.M);if(n.length>0){const e=n.length-1,{metadata:t}=n[e].action.payload;t&&a.set({component:vn,metadata:t})}},Reset:function(){r.reset(),l("botAction",v=null),l("iterationCounter",c=0),m()},OnKeyDown:function(e){27==e.keyCode&&m()},select_change_handler:function(){p=L(this),l("selectedBot",p),l("bots",s)}}}class Fn extends je{constructor(e){super(),document.getElementById("svelte-mavpb4-style")||Mn(),Ie(this,e,Hn,Vn,d,["client"])}}function Un(){var e=E("style");e.id="svelte-gx6suj-style",e.textContent=".debug-panel.svelte-gx6suj{position:fixed;color:#555;font-family:monospace;display:flex;flex-direction:row;text-align:left;right:0;top:0;height:100%;font-size:14px;box-sizing:border-box;opacity:0.9}.pane.svelte-gx6suj{flex-grow:2;overflow-x:hidden;overflow-y:scroll;background:#fefefe;padding:20px;border-left:1px solid #ccc;box-shadow:-1px 0 5px rgba(0, 0, 0, 0.2);box-sizing:border-box;width:280px}.secondary-pane.svelte-gx6suj{background:#fefefe}.debug-panel.svelte-gx6suj button, select{cursor:pointer;outline:none;background:#eee;border:1px solid #bbb;color:#555;padding:3px;border-radius:3px}.debug-panel.svelte-gx6suj button{padding-left:10px;padding-right:10px}.debug-panel.svelte-gx6suj button:hover{background:#ddd}.debug-panel.svelte-gx6suj button:active{background:#888;color:#fff}.debug-panel.svelte-gx6suj section{margin-bottom:20px}",w(document.head,e)}function Wn(e){var t,n,o,l,r,a,s=new Te({props:{panes:e.panes,pane:e.pane}});s.$on("change",e.MenuChange);var i=e.panes[e.pane].component;function c(e){return{props:{client:e.client}}}if(i)var u=new i(c(e));var d=e.$secondaryPane&&Qn(e);return{c(){t=E("div"),s.$$.fragment.c(),n=I(),o=E("div"),u&&u.$$.fragment.c(),l=I(),d&&d.c(),B(o,"class","pane svelte-gx6suj"),B(t,"class","debug-panel svelte-gx6suj")},m(e,r){k(e,t,r),Ce(s,t,null),w(t,n),w(t,o),u&&Ce(u,o,null),w(t,l),d&&d.m(t,null),a=!0},p(e,n){var l={};e.pane&&(l.pane=n.pane),s.$set(l);var r={};if(e.client&&(r.client=n.client),i!==(i=n.panes[n.pane].component)){if(u){ge();const e=u;be(e.$$.fragment,1,0,()=>{Ee(e,1)}),he()}i?((u=new i(c(n))).$$.fragment.c(),ye(u.$$.fragment,1),Ce(u,o,null)):u=null}else i&&u.$set(r);n.$secondaryPane?d?(d.p(e,n),ye(d,1)):((d=Qn(n)).c(),ye(d,1),d.m(t,null)):d&&(ge(),be(d,1,1,()=>{d=null}),he())},i(e){a||(ye(s.$$.fragment,e),u&&ye(u.$$.fragment,e),ye(d),ce(()=>{r||(r=xe(t,Ae,{x:400},!0)),r.run(1)}),a=!0)},o(e){be(s.$$.fragment,e),u&&be(u.$$.fragment,e),be(d),r||(r=xe(t,Ae,{x:400},!1)),r.run(0),a=!1},d(e){e&&_(t),Ee(s),u&&Ee(u),d&&d.d(),e&&r&&r.end()}}}function Qn(e){var t,n,o=e.$secondaryPane.component;function l(e){return{props:{metadata:e.$secondaryPane.metadata}}}if(o)var r=new o(l(e));return{c(){t=E("div"),r&&r.$$.fragment.c(),B(t,"class","secondary-pane svelte-gx6suj")},m(e,o){k(e,t,o),r&&Ce(r,t,null),n=!0},p(e,n){var a={};if(e.$secondaryPane&&(a.metadata=n.$secondaryPane.metadata),o!==(o=n.$secondaryPane.component)){if(r){ge();const e=r;be(e.$$.fragment,1,0,()=>{Ee(e,1)}),he()}o?((r=new o(l(n))).$$.fragment.c(),ye(r.$$.fragment,1),Ce(r,t,null)):r=null}else o&&r.$set(a)},i(e){n||(r&&ye(r.$$.fragment,e),n=!0)},o(e){r&&be(r.$$.fragment,e),n=!1},d(e){e&&_(t),r&&Ee(r)}}}function Xn(e){var t,n,o,l=e.visible&&Wn(e);return{c(){l&&l.c(),t=j(),o=D(window,"keypress",e.Keypress)},m(e,o){l&&l.m(e,o),k(e,t,o),n=!0},p(e,n){n.visible?l?(l.p(e,n),ye(l,1)):((l=Wn(n)).c(),ye(l,1),l.m(t.parentNode,t)):l&&(ge(),be(l,1,1,()=>{l=null}),he())},i(e){n||(ye(l),n=!0)},o(e){be(l),n=!1},d(e){l&&l.d(e),e&&_(t),o()}}}function Yn(e,t,n){let o,{client:l}=t;const r={main:{label:"Main",shortcut:"m",component:$t},log:{label:"Log",shortcut:"l",component:Cn},info:{label:"Info",shortcut:"i",component:jt},ai:{label:"AI",shortcut:"a",component:Fn}},a=Be(!1),s=Be(null);v(e,s,e=>{n("$secondaryPane",o=e)}),Y("hotkeys",{disableHotkeys:a}),Y("secondaryPane",{secondaryPane:s});let i="main";let c=!0;return e.$set=(e=>{"client"in e&&n("client",l=e.client)}),{client:l,panes:r,secondaryPane:s,pane:i,MenuChange:function(e){n("pane",i=e.detail)},visible:c,Keypress:function(e){"."!=e.key?Object.entries(r).forEach(([t,{shortcut:o}])=>{e.key==o&&n("pane",i=t)}):n("visible",c=!c)},$secondaryPane:o}}class Zn extends je{constructor(e){super(),document.getElementById("svelte-gx6suj-style")||Un(),Ie(this,e,Yn,Xn,d,["client"])}}exports.D=Zn; },{"./reducer-58af0406.js":"oqTd","flatted":"O5av","./ai-ef071338.js":"CrBp"}],"xAKq":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.I=r;var e=require("./reducer-58af0406.js"),t=require("flatted");function r(r){var a=r.game,u=r.numPlayers,n=r.setupData;u||(u=2);var s=(a=(0,e.G)(a)).flow.ctx(u),d=a.seed;void 0===d&&(d=e.R.seed()),s._random={seed:d},s=e.c.setup(s,a);var i=new e.b(s,a,s.currentPlayer),o=i.attachToContext(s),c=a.setup(o,n),_={G:c=e.d.setup(c,o,a),ctx:s,_undo:[],_redo:[],_stateID:0,_initial:{}},l=a.flow.init({G:_.G,ctx:o});_.G=l.G,_._undo=l._undo,l=i.updateAndDetach(l,!0),_.ctx=l.ctx;var p;return _._initial=(p=_,(0,t.parse)((0,t.stringify)(p))),_} },{"./reducer-58af0406.js":"oqTd","flatted":"O5av"}],"Q5Ho":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.C=c;var e=require("./_rollupPluginBabelHelpers-b44b7feb.js"),t=require("redux"),i=require("./reducer-58af0406.js"),r=require("./Debug-7b9f30de.js"),s=require("./initialize-ab3bcc3a.js");function n(e,t,r,s,n,a){return t.reduce(function(t,u){return t[u]=function(){var t=s;a||null!=s||(t=r.getState().ctx.currentPlayer);for(var l=arguments.length,c=new Array(l),o=0;o<l;o++)c[o]=arguments[o];r.dispatch(i.A[e](u,c,t,n))},t},{})}var a=n.bind(null,"gameEvent"),u=n.bind(null,"makeMove"),l=function(){function r(n){var a=this,u=n.game,l=n.ai,c=n.debug,o=n.numPlayers,h=n.multiplayer,g=n.gameID,d=n.playerID,b=n.credentials,p=n.enhancer;(0,e.e)(this,r),this.game=(0,i.G)(u),this.ai=l,this.playerID=d,this.gameID=g,this.credentials=b,this.multiplayer=h,this.debug=c,this.gameStateOverride=null,this.subscribers={},this._running=!1,this.reducer=(0,i.C)({game:this.game,numPlayers:o,multiplayer:h});var f=null;h||(f=(0,s.I)({game:this.game,numPlayers:o})),this.reset=function(){a.store.dispatch((0,i.r)(f))},this.undo=function(){a.store.dispatch((0,i.u)())},this.redo=function(){a.store.dispatch((0,i.f)())},this.store=null,this.log=[];var m=function(t){return function(r){return function(s){var n=r(s),u=t.getState();switch(s.type){case i.M:case i.h:var l=u.deltalog;a.log=[].concat((0,e._)(a.log),(0,e._)(l));break;case i.i:a.log=[];break;case i.U:var c=-1;a.log.length>0&&(c=a.log[a.log.length-1]._stateID);var o=s.deltalog||[];o=o.filter(function(e){return e._stateID>c}),a.log=[].concat((0,e._)(a.log),(0,e._)(o));break;case i.S:a.log=s.log||[]}return n}}},y=function(e){return function(t){return function(i){var r=e.getState(),s=t(i);return 1!=i.clientOnly&&a.transport.onAction(r,i),s}}},v=function(){return function(e){return function(t){var i=e(t);return a.notifySubscribers(),i}}};p=void 0!==p?(0,t.compose)((0,t.applyMiddleware)(v,y,m),p):(0,t.applyMiddleware)(v,y,m),this.store=(0,t.createStore)(this.reducer,f,p),this.transport={isConnected:!0,onAction:function(){},subscribe:function(){},subscribeGameMetadata:function(e){},connect:function(){},disconnect:function(){},updateGameID:function(){},updatePlayerID:function(){}},h&&(this.transport=h({gameKey:u,game:this.game,store:this.store,gameID:g,playerID:d,gameName:this.game.name,numPlayers:o})),this.createDispatchers(),this.transport.subscribeGameMetadata(function(e){a.gameMetadata=e}),this._debugPanel=null}return(0,e.c)(r,[{key:"notifySubscribers",value:function(){var e=this;Object.values(this.subscribers).forEach(function(t){return t(e.getState())})}},{key:"overrideGameState",value:function(e){this.gameStateOverride=e,this.notifySubscribers()}},{key:"start",value:function(){this.transport.connect(),this._running=!0;var e=null;if(this.debug&&this.debug.impl&&(e=this.debug.impl),null!==e&&!1!==this.debug&&null==this._debugPanel){var t=document.body;this.debug&&this.debug.target&&(t=this.debug.target),this._debugPanel=new e({target:t,props:{client:this}})}}},{key:"stop",value:function(){this.transport.disconnect(),this._running=!1,null!=this._debugPanel&&(this._debugPanel.$destroy(),this._debugPanel=null)}},{key:"subscribe",value:function(e){var t=this,i=Object.keys(this.subscribers).length;return this.subscribers[i]=e,this.transport.subscribe(function(){return t.notifySubscribers()}),!this._running&&this.multiplayer||e(this.getState()),function(){delete t.subscribers[i]}}},{key:"getState",value:function(){var t=this.store.getState();if(null!==this.gameStateOverride&&(t=this.gameStateOverride),null===t)return t;var i=!0,r=this.game.flow.isPlayerActive(t.G,t.ctx,this.playerID);this.multiplayer&&!r&&(i=!1),this.multiplayer||null===this.playerID||void 0===this.playerID||r||(i=!1),void 0!==t.ctx.gameover&&(i=!1);var s=this.game.playerView(t.G,t.ctx,this.playerID),n=(0,e.a)({},t,{isActive:i,G:s,log:this.log}),a=this.transport.isConnected;return n=(0,e.a)({},n,{isConnected:a})}},{key:"createDispatchers",value:function(){this.moves=u(this.game.moveNames,this.store,this.playerID,this.credentials,this.multiplayer),this.events=a(this.game.flow.enabledEventNames,this.store,this.playerID,this.credentials,this.multiplayer)}},{key:"updatePlayerID",value:function(e){this.playerID=e,this.createDispatchers(),this.transport.updatePlayerID(e),this.notifySubscribers()}},{key:"updateGameID",value:function(e){this.gameID=e,this.createDispatchers(),this.transport.updateGameID(e),this.notifySubscribers()}},{key:"updateCredentials",value:function(e){this.credentials=e,this.createDispatchers(),this.notifySubscribers()}}]),r}();function c(e){return new l(e)} },{"./_rollupPluginBabelHelpers-b44b7feb.js":"ZNNI","redux":"OV4J","./reducer-58af0406.js":"oqTd","./Debug-7b9f30de.js":"HVo4","./initialize-ab3bcc3a.js":"xAKq"}],"L8uO":[function(require,module,exports) { "use strict";var e=require("object-assign"),t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,o=t?Symbol.for("react.fragment"):60107,u=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,f=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,i=t?Symbol.for("react.forward_ref"):60112,a=t?Symbol.for("react.suspense"):60113,s=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116;t&&Symbol.for("react.fundamental"),t&&Symbol.for("react.responder");var d="function"==typeof Symbol&&Symbol.iterator;function m(e){for(var t=e.message,r="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return e.message="Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function b(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||v}function S(){}function _(e,t,r){this.props=e,this.context=t,this.refs=h,this.updater=r||v}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw m(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=b.prototype;var g=_.prototype=new S;g.constructor=_,e(g,b.prototype),g.isPureReactComponent=!0;var k={current:null},$={suspense:null},w={current:null},C=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o=void 0,u={},l=null,f=null;if(null!=t)for(o in void 0!==t.ref&&(f=t.ref),void 0!==t.key&&(l=""+t.key),t)C.call(t,o)&&!E.hasOwnProperty(o)&&(u[o]=t[o]);var c=arguments.length-2;if(1===c)u.children=n;else if(1<c){for(var i=Array(c),a=0;a<c;a++)i[a]=arguments[a+2];u.children=i}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===u[o]&&(u[o]=c[o]);return{$$typeof:r,type:e,key:l,ref:f,props:u,_owner:w.current}}function x(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function P(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}function j(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g,A=[];function I(e,t,r,n){if(A.length){var o=A.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function U(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function q(e,t,o,u){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var f=!1;if(null===e)f=!0;else switch(l){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case r:case n:f=!0}}if(f)return o(u,e,""===t?"."+F(e,0):t),1;if(f=0,t=""===t?".":t+":",Array.isArray(e))for(var c=0;c<e.length;c++){var i=t+F(l=e[c],c);f+=q(l,i,o,u)}else if(null===e||"object"!=typeof e?i=null:i="function"==typeof(i=d&&e[d]||e["@@iterator"])?i:null,"function"==typeof i)for(e=i.call(e),c=0;!(l=e.next()).done;)f+=q(l=l.value,i=t+F(l,c++),o,u);else if("object"===l)throw o=""+e,m(Error(31),"[object Object]"===o?"object with keys {"+Object.keys(e).join(", ")+"}":o,"");return f}function L(e,t,r){return null==e?0:q(e,"",t,r)}function F(e,t){return"object"==typeof e&&null!==e&&null!=e.key?j(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function D(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?V(e,n,r,function(e){return e}):null!=e&&(P(e)&&(e=x(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+r)),n.push(e))}function V(e,t,r,n,o){var u="";null!=r&&(u=(""+r).replace(O,"$&/")+"/"),L(e,D,t=I(t,u,n,o)),U(t)}function B(){var e=k.current;if(null===e)throw m(Error(321));return e}var N={Children:{map:function(e,t,r){if(null==e)return e;var n=[];return V(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;L(e,M,t=I(null,null,t,r)),U(t)},count:function(e){return L(e,function(){return null},null)},toArray:function(e){var t=[];return V(e,t,null,function(e){return e}),t},only:function(e){if(!P(e))throw m(Error(143));return e}},createRef:function(){return{current:null}},Component:b,PureComponent:_,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:c,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:i,render:e}},lazy:function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return B().useCallback(e,t)},useContext:function(e,t){return B().useContext(e,t)},useEffect:function(e,t){return B().useEffect(e,t)},useImperativeHandle:function(e,t,r){return B().useImperativeHandle(e,t,r)},useDebugValue:function(){},useLayoutEffect:function(e,t){return B().useLayoutEffect(e,t)},useMemo:function(e,t){return B().useMemo(e,t)},useReducer:function(e,t,r){return B().useReducer(e,t,r)},useRef:function(e){return B().useRef(e)},useState:function(e){return B().useState(e)},Fragment:o,Profiler:l,StrictMode:u,Suspense:a,unstable_SuspenseList:s,createElement:R,cloneElement:function(t,n,o){if(null==t)throw m(Error(267),t);var u=void 0,l=e({},t.props),f=t.key,c=t.ref,i=t._owner;if(null!=n){void 0!==n.ref&&(c=n.ref,i=w.current),void 0!==n.key&&(f=""+n.key);var a=void 0;for(u in t.type&&t.type.defaultProps&&(a=t.type.defaultProps),n)C.call(n,u)&&!E.hasOwnProperty(u)&&(l[u]=void 0===n[u]&&void 0!==a?a[u]:n[u])}if(1===(u=arguments.length-2))l.children=o;else if(1<u){a=Array(u);for(var s=0;s<u;s++)a[s]=arguments[s+2];l.children=a}return{$$typeof:r,type:t.type,key:f,ref:c,props:l,_owner:i}},createFactory:function(e){var t=R.bind(null,e);return t.type=e,t},isValidElement:P,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var r=$.suspense;$.suspense=void 0===t?null:t;try{e()}finally{$.suspense=r}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:k,ReactCurrentBatchConfig:$,ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:e}},T={default:N},z=T&&N||T;module.exports=z.default||z; },{"object-assign":"J4Nk"}],"SAdv":[function(require,module,exports) { "use strict";module.exports=require("./cjs/react.production.min.js"); },{"./cjs/react.production.min.js":"L8uO"}],"PB2Y":[function(require,module,exports) { "use strict";var _="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";module.exports=_; },{}],"cTRg":[function(require,module,exports) { "use strict";var e=require("./lib/ReactPropTypesSecret");function r(){}function t(){}t.resetWarningCache=r,module.exports=function(){function n(r,t,n,o,a,p){if(p!==e){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var a={array:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return a.PropTypes=a,a}; },{"./lib/ReactPropTypesSecret":"PB2Y"}],"yu5W":[function(require,module,exports) { var r,e;module.exports=require("./factoryWithThrowingShims")(); },{"./factoryWithThrowingShims":"cTRg"}],"KAZ5":[function(require,module,exports) { "use strict";exports.parse=n,exports.serialize=o;var e=decodeURIComponent,t=encodeURIComponent,r=/; */,i=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function n(t,i){if("string"!=typeof t)throw new TypeError("argument str must be a string");for(var n={},o=i||{},s=t.split(r),p=o.decode||e,f=0;f<s.length;f++){var u=s[f],m=u.indexOf("=");if(!(m<0)){var c=u.substr(0,m).trim(),l=u.substr(++m,u.length).trim();'"'==l[0]&&(l=l.slice(1,-1)),null==n[c]&&(n[c]=a(l,p))}}return n}function o(e,r,n){var o=n||{},a=o.encode||t;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!i.test(e))throw new TypeError("argument name is invalid");var s=a(r);if(s&&!i.test(s))throw new TypeError("argument val is invalid");var p=e+"="+s;if(null!=o.maxAge){var f=o.maxAge-0;if(isNaN(f))throw new Error("maxAge should be a Number");p+="; Max-Age="+Math.floor(f)}if(o.domain){if(!i.test(o.domain))throw new TypeError("option domain is invalid");p+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");p+="; Path="+o.path}if(o.expires){if("function"!=typeof o.expires.toUTCString)throw new TypeError("option expires is invalid");p+="; Expires="+o.expires.toUTCString()}if(o.httpOnly&&(p+="; HttpOnly"),o.secure&&(p+="; Secure"),o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:p+="; SameSite=Strict";break;case"lax":p+="; SameSite=Lax";break;case"strict":p+="; SameSite=Strict";break;default:throw new TypeError("option sameSite is invalid")}return p}function a(e,t){try{return t(e)}catch(r){return e}}
var process = require("process"); var e=require("process");Object.defineProperty(exports,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};exports.load=f,exports.loadAll=l,exports.select=p,exports.save=y,exports.remove=v,exports.setRawCookie=k,exports.plugToRequest=m;var t=require("cookie"),r=u(t),n=require("object-assign"),i=u(n);function u(e){return e&&e.__esModule?e:{default:e}}var c="undefined"==typeof document||void 0!==e&&e.env&&!1,a={},s=void 0;function d(){return s&&!s.headersSent}function f(e,o){var t=c?a:r.default.parse(document.cookie),n=t&&t[e];if(void 0===o&&(o=!n||"{"!==n[0]&&"["!==n[0]),!o)try{n=JSON.parse(n)}catch(i){}return n}function l(e){var o=c?a:r.default.parse(document.cookie);if(void 0===e&&(e=!o||"{"!==o[0]&&"["!==o[0]),!e)try{o=JSON.parse(o)}catch(t){}return o}function p(e){var o=c?a:r.default.parse(document.cookie);return o?e?Object.keys(o).reduce(function(t,r){if(!e.test(r))return t;var n={};return n[r]=o[r],(0,i.default)({},t,n)},{}):o:{}}function y(e,t,n){a[e]=t,"object"===(void 0===t?"undefined":o(t))&&(a[e]=JSON.stringify(t)),c||(document.cookie=r.default.serialize(e,a[e],n)),d()&&s.cookie&&s.cookie(e,t,n)}function v(e,o){delete a[e],o=void 0===o?{}:"string"==typeof o?{path:o}:(0,i.default)({},o),"undefined"!=typeof document&&(o.expires=new Date(1970,1,1,0,0,1),o.maxAge=0,document.cookie=r.default.serialize(e,"",o)),d()&&s.clearCookie&&s.clearCookie(e,o)}function k(e){a=e?r.default.parse(e):{}}function m(e,o){return e.cookie?a=e.cookie:e.cookies?a=e.cookies:e.headers&&e.headers.cookie?k(e.headers.cookie):a={},s=o,function(){s=null,a={}}}exports.default={setRawCookie:k,load:f,loadAll:l,select:p,save:y,remove:v,plugToRequest:m}; },{"cookie":"KAZ5","object-assign":"J4Nk","process":"pBGv"}],"A28J":[function(require,module,exports) { var r=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];module.exports=function(t){var s=t,o=t.indexOf("["),a=t.indexOf("]");-1!=o&&-1!=a&&(t=t.substring(0,o)+t.substring(o,a).replace(/:/g,";")+t.substring(a,t.length));for(var u=r.exec(t||""),i={},h=14;h--;)i[e[h]]=u[h]||"";return-1!=o&&-1!=a&&(i.source=s,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i}; },{}],"xsBo":[function(require,module,exports) { var s=1e3,e=60*s,r=60*e,a=24*r,n=365.25*a;function c(c){if(!((c=String(c)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(t){var i=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return i*n;case"days":case"day":case"d":return i*a;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*e;case"seconds":case"second":case"secs":case"sec":case"s":return i*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}function t(n){return n>=a?Math.round(n/a)+"d":n>=r?Math.round(n/r)+"h":n>=e?Math.round(n/e)+"m":n>=s?Math.round(n/s)+"s":n+"ms"}function i(n){return o(n,a,"day")||o(n,r,"hour")||o(n,e,"minute")||o(n,s,"second")||n+" ms"}function o(s,e,r){if(!(s<e))return s<1.5*e?Math.floor(s/e)+" "+r:Math.ceil(s/e)+" "+r+"s"}module.exports=function(s,e){e=e||{};var r=typeof s;if("string"===r&&s.length>0)return c(s);if("number"===r&&!1===isNaN(s))return e.long?i(s):t(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}; },{}],"ZnYJ":[function(require,module,exports) { function e(e){var r,s=0;for(r in e)s=(s<<5)-s+e.charCodeAt(r),s|=0;return exports.colors[Math.abs(s)%exports.colors.length]}function r(r){var t;function o(){if(o.enabled){var e=o,r=+new Date,s=r-(t||r);e.diff=s,e.prev=t,e.curr=r,t=r;for(var n=new Array(arguments.length),p=0;p<n.length;p++)n[p]=arguments[p];n[0]=exports.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");var a=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,function(r,s){if("%%"===r)return r;a++;var t=exports.formatters[s];if("function"==typeof t){var o=n[a];r=t.call(e,o),n.splice(a,1),a--}return r}),exports.formatArgs.call(e,n),(o.log||exports.log||console.log.bind(console)).apply(e,n)}}return o.namespace=r,o.enabled=exports.enabled(r),o.useColors=exports.useColors(),o.color=e(r),o.destroy=s,"function"==typeof exports.init&&exports.init(o),exports.instances.push(o),o}function s(){var e=exports.instances.indexOf(this);return-1!==e&&(exports.instances.splice(e,1),!0)}function t(e){var r;exports.save(e),exports.names=[],exports.skips=[];var s=("string"==typeof e?e:"").split(/[\s,]+/),t=s.length;for(r=0;r<t;r++)s[r]&&("-"===(e=s[r].replace(/\*/g,".*?"))[0]?exports.skips.push(new RegExp("^"+e.substr(1)+"$")):exports.names.push(new RegExp("^"+e+"$")));for(r=0;r<exports.instances.length;r++){var o=exports.instances[r];o.enabled=exports.enabled(o.namespace)}}function o(){exports.enable("")}function n(e){if("*"===e[e.length-1])return!0;var r,s;for(r=0,s=exports.skips.length;r<s;r++)if(exports.skips[r].test(e))return!1;for(r=0,s=exports.names.length;r<s;r++)if(exports.names[r].test(e))return!0;return!1}function p(e){return e instanceof Error?e.stack||e.message:e}exports=module.exports=r.debug=r.default=r,exports.coerce=p,exports.disable=o,exports.enable=t,exports.enabled=n,exports.humanize=require("ms"),exports.instances=[],exports.names=[],exports.skips=[],exports.formatters={}; },{"ms":"xsBo"}],"tjN4":[function(require,module,exports) { var process = require("process"); var e=require("process");function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function C(e){var o=this.useColors;if(e[0]=(o?"%c":"")+this.namespace+(o?" %c":" ")+e[0]+(o?"%c ":" ")+"+"+exports.humanize(this.diff),o){var C="color: "+this.color;e.splice(1,0,C,"color: inherit");var t=0,r=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(t++,"%c"===e&&(r=t))}),e.splice(r,0,C)}}function t(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function r(e){try{null==e?exports.storage.removeItem("debug"):exports.storage.debug=e}catch(o){}}function n(){var o;try{o=exports.storage.debug}catch(C){}return!o&&void 0!==e&&"env"in e&&(o=void 0),o}function F(){try{return window.localStorage}catch(e){}}exports=module.exports=require("./debug"),exports.log=t,exports.formatArgs=C,exports.save=r,exports.load=n,exports.useColors=o,exports.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:F(),exports.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}},exports.enable(n()); },{"./debug":"ZnYJ","process":"pBGv"}],"MMDw":[function(require,module,exports) { var o=require("parseuri"),t=require("debug")("socket.io-client:url");function r(r,p){var s=r;p=p||"undefined"!=typeof location&&location,null==r&&(r=p.protocol+"//"+p.host),"string"==typeof r&&("/"===r.charAt(0)&&(r="/"===r.charAt(1)?p.protocol+r:p.host+r),/^(https?|wss?):\/\//.test(r)||(t("protocol-less url %s",r),r=void 0!==p?p.protocol+"//"+r:"https://"+r),t("parse %s",r),s=o(r)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";var e=-1!==s.host.indexOf(":")?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+e+":"+s.port,s.href=s.protocol+"://"+e+(p&&p.port===s.port?"":":"+s.port),s}module.exports=r; },{"parseuri":"A28J","debug":"tjN4"}],"XUqb":[function(require,module,exports) { function t(t){if(t)return e(t)}function e(e){for(var s in t.prototype)e[s]=t.prototype[s];return e}"undefined"!=typeof module&&(module.exports=t),t.prototype.on=t.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},t.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r=0;r<i.length;r++)if((s=i[r])===e||s.fn===e){i.splice(r,1);break}return this},t.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),s=this._callbacks["$"+t];if(s)for(var i=0,r=(s=s.slice(0)).length;i<r;++i)s[i].apply(this,e);return this},t.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},t.prototype.hasListeners=function(t){return!!this.listeners(t).length}; },{}],"Bi1L":[function(require,module,exports) { var r={}.toString;module.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}; },{}],"yh9p":[function(require,module,exports) { "use strict";exports.byteLength=u,exports.toByteArray=i,exports.fromByteArray=d;for(var r=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=n.length;o<a;++o)r[o]=n[o],t[n.charCodeAt(o)]=o;function h(r){var t=r.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var e=r.indexOf("=");return-1===e&&(e=t),[e,e===t?0:4-e%4]}function u(r){var t=h(r),e=t[0],n=t[1];return 3*(e+n)/4-n}function c(r,t,e){return 3*(t+e)/4-e}function i(r){var n,o,a=h(r),u=a[0],i=a[1],f=new e(c(r,u,i)),A=0,d=i>0?u-4:u;for(o=0;o<d;o+=4)n=t[r.charCodeAt(o)]<<18|t[r.charCodeAt(o+1)]<<12|t[r.charCodeAt(o+2)]<<6|t[r.charCodeAt(o+3)],f[A++]=n>>16&255,f[A++]=n>>8&255,f[A++]=255&n;return 2===i&&(n=t[r.charCodeAt(o)]<<2|t[r.charCodeAt(o+1)]>>4,f[A++]=255&n),1===i&&(n=t[r.charCodeAt(o)]<<10|t[r.charCodeAt(o+1)]<<4|t[r.charCodeAt(o+2)]>>2,f[A++]=n>>8&255,f[A++]=255&n),f}function f(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}function A(r,t,e){for(var n,o=[],a=t;a<e;a+=3)n=(r[a]<<16&16711680)+(r[a+1]<<8&65280)+(255&r[a+2]),o.push(f(n));return o.join("")}function d(t){for(var e,n=t.length,o=n%3,a=[],h=0,u=n-o;h<u;h+=16383)a.push(A(t,h,h+16383>u?u:h+16383));return 1===o?(e=t[n-1],a.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],a.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),a.join("")}t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63; },{}],"JgNJ":[function(require,module,exports) { exports.read=function(a,o,t,r,h){var M,p,w=8*h-r-1,f=(1<<w)-1,e=f>>1,i=-7,N=t?h-1:0,n=t?-1:1,s=a[o+N];for(N+=n,M=s&(1<<-i)-1,s>>=-i,i+=w;i>0;M=256*M+a[o+N],N+=n,i-=8);for(p=M&(1<<-i)-1,M>>=-i,i+=r;i>0;p=256*p+a[o+N],N+=n,i-=8);if(0===M)M=1-e;else{if(M===f)return p?NaN:1/0*(s?-1:1);p+=Math.pow(2,r),M-=e}return(s?-1:1)*p*Math.pow(2,M-r)},exports.write=function(a,o,t,r,h,M){var p,w,f,e=8*M-h-1,i=(1<<e)-1,N=i>>1,n=23===h?Math.pow(2,-24)-Math.pow(2,-77):0,s=r?0:M-1,u=r?1:-1,l=o<0||0===o&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(w=isNaN(o)?1:0,p=i):(p=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-p))<1&&(p--,f*=2),(o+=p+N>=1?n/f:n*Math.pow(2,1-N))*f>=2&&(p++,f/=2),p+N>=i?(w=0,p=i):p+N>=1?(w=(o*f-1)*Math.pow(2,h),p+=N):(w=o*Math.pow(2,N-1)*Math.pow(2,h),p=0));h>=8;a[t+s]=255&w,s+=u,w/=256,h-=8);for(p=p<<h|w,e+=h;e>0;a[t+s]=255&p,s+=u,p/=256,e-=8);a[t+s-u]|=128*l}; },{}],"dskh":[function(require,module,exports) { var global = arguments[3]; var t=arguments[3],r=require("base64-js"),e=require("ieee754"),n=require("isarray");function i(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(r){return!1}}function o(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,r){if(o()<r)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(r)).__proto__=f.prototype:(null===t&&(t=new f(r)),t.length=r),t}function f(t,r,e){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(t,r,e);if("number"==typeof t){if("string"==typeof r)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,r,e)}function s(t,r,e,n){if("number"==typeof r)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?g(t,r,e,n):"string"==typeof r?l(t,r,e):y(t,r)}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function a(t,r,e,n){return h(r),r<=0?u(t,r):void 0!==e?"string"==typeof n?u(t,r).fill(e,n):u(t,r).fill(e):u(t,r)}function c(t,r){if(h(r),t=u(t,r<0?0:0|w(r)),!f.TYPED_ARRAY_SUPPORT)for(var e=0;e<r;++e)t[e]=0;return t}function l(t,r,e){if("string"==typeof e&&""!==e||(e="utf8"),!f.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var n=0|v(r,e),i=(t=u(t,n)).write(r,e);return i!==n&&(t=t.slice(0,i)),t}function p(t,r){var e=r.length<0?0:0|w(r.length);t=u(t,e);for(var n=0;n<e;n+=1)t[n]=255&r[n];return t}function g(t,r,e,n){if(r.byteLength,e<0||r.byteLength<e)throw new RangeError("'offset' is out of bounds");if(r.byteLength<e+(n||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===n?new Uint8Array(r):void 0===n?new Uint8Array(r,e):new Uint8Array(r,e,n),f.TYPED_ARRAY_SUPPORT?(t=r).__proto__=f.prototype:t=p(t,r),t}function y(t,r){if(f.isBuffer(r)){var e=0|w(r.length);return 0===(t=u(t,e)).length?t:(r.copy(t,0,0,e),t)}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||W(r.length)?u(t,0):p(t,r);if("Buffer"===r.type&&n(r.data))return p(t,r.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function w(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function d(t){return+t!=t&&(t=0),f.alloc(+t)}function v(t,r){if(f.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var e=t.length;if(0===e)return 0;for(var n=!1;;)switch(r){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return $(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return K(t).length;default:if(n)return $(t).length;r=(""+r).toLowerCase(),n=!0}}function E(t,r,e){var n=!1;if((void 0===r||r<0)&&(r=0),r>this.length)return"";if((void 0===e||e>this.length)&&(e=this.length),e<=0)return"";if((e>>>=0)<=(r>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return x(this,r,e);case"utf8":case"utf-8":return Y(this,r,e);case"ascii":return L(this,r,e);case"latin1":case"binary":return D(this,r,e);case"base64":return S(this,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,r,e);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,r,e){var n=t[r];t[r]=t[e],t[e]=n}function R(t,r,e,n,i){if(0===t.length)return-1;if("string"==typeof e?(n=e,e=0):e>2147483647?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,isNaN(e)&&(e=i?0:t.length-1),e<0&&(e=t.length+e),e>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof r&&(r=f.from(r,n)),f.isBuffer(r))return 0===r.length?-1:_(t,r,e,n,i);if("number"==typeof r)return r&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,r,e):Uint8Array.prototype.lastIndexOf.call(t,r,e):_(t,[r],e,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,r,e,n,i){var o,u=1,f=t.length,s=r.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||r.length<2)return-1;u=2,f/=2,s/=2,e/=2}function h(t,r){return 1===u?t[r]:t.readUInt16BE(r*u)}if(i){var a=-1;for(o=e;o<f;o++)if(h(t,o)===h(r,-1===a?0:o-a)){if(-1===a&&(a=o),o-a+1===s)return a*u}else-1!==a&&(o-=o-a),a=-1}else for(e+s>f&&(e=f-s),o=e;o>=0;o--){for(var c=!0,l=0;l<s;l++)if(h(t,o+l)!==h(r,l)){c=!1;break}if(c)return o}return-1}function A(t,r,e,n){e=Number(e)||0;var i=t.length-e;n?(n=Number(n))>i&&(n=i):n=i;var o=r.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var u=0;u<n;++u){var f=parseInt(r.substr(2*u,2),16);if(isNaN(f))return u;t[e+u]=f}return u}function m(t,r,e,n){return Q($(r,t.length-e),t,e,n)}function P(t,r,e,n){return Q(G(r),t,e,n)}function T(t,r,e,n){return P(t,r,e,n)}function B(t,r,e,n){return Q(K(r),t,e,n)}function U(t,r,e,n){return Q(H(r,t.length-e),t,e,n)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function Y(t,r,e){e=Math.min(t.length,e);for(var n=[],i=r;i<e;){var o,u,f,s,h=t[i],a=null,c=h>239?4:h>223?3:h>191?2:1;if(i+c<=e)switch(c){case 1:h<128&&(a=h);break;case 2:128==(192&(o=t[i+1]))&&(s=(31&h)<<6|63&o)>127&&(a=s);break;case 3:o=t[i+1],u=t[i+2],128==(192&o)&&128==(192&u)&&(s=(15&h)<<12|(63&o)<<6|63&u)>2047&&(s<55296||s>57343)&&(a=s);break;case 4:o=t[i+1],u=t[i+2],f=t[i+3],128==(192&o)&&128==(192&u)&&128==(192&f)&&(s=(15&h)<<18|(63&o)<<12|(63&u)<<6|63&f)>65535&&s<1114112&&(a=s)}null===a?(a=65533,c=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=c}return O(n)}exports.Buffer=f,exports.SlowBuffer=d,exports.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:i(),exports.kMaxLength=o(),f.poolSize=8192,f._augment=function(t){return t.__proto__=f.prototype,t},f.from=function(t,r,e){return s(null,t,r,e)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(t,r,e){return a(null,t,r,e)},f.allocUnsafe=function(t){return c(null,t)},f.allocUnsafeSlow=function(t){return c(null,t)},f.isBuffer=function(t){return!(null==t||!t._isBuffer)},f.compare=function(t,r){if(!f.isBuffer(t)||!f.isBuffer(r))throw new TypeError("Arguments must be Buffers");if(t===r)return 0;for(var e=t.length,n=r.length,i=0,o=Math.min(e,n);i<o;++i)if(t[i]!==r[i]){e=t[i],n=r[i];break}return e<n?-1:n<e?1:0},f.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(t,r){if(!n(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return f.alloc(0);var e;if(void 0===r)for(r=0,e=0;e<t.length;++e)r+=t[e].length;var i=f.allocUnsafe(r),o=0;for(e=0;e<t.length;++e){var u=t[e];if(!f.isBuffer(u))throw new TypeError('"list" argument must be an Array of Buffers');u.copy(i,o),o+=u.length}return i},f.byteLength=v,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<t;r+=2)b(this,r,r+1);return this},f.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<t;r+=4)b(this,r,r+3),b(this,r+1,r+2);return this},f.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<t;r+=8)b(this,r,r+7),b(this,r+1,r+6),b(this,r+2,r+5),b(this,r+3,r+4);return this},f.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?Y(this,0,t):E.apply(this,arguments)},f.prototype.equals=function(t){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===f.compare(this,t)},f.prototype.inspect=function(){var t="",r=exports.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},f.prototype.compare=function(t,r,e,n,i){if(!f.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===e&&(e=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),r<0||e>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&r>=e)return 0;if(n>=i)return-1;if(r>=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),u=(e>>>=0)-(r>>>=0),s=Math.min(o,u),h=this.slice(n,i),a=t.slice(r,e),c=0;c<s;++c)if(h[c]!==a[c]){o=h[c],u=a[c];break}return o<u?-1:u<o?1:0},f.prototype.includes=function(t,r,e){return-1!==this.indexOf(t,r,e)},f.prototype.indexOf=function(t,r,e){return R(this,t,r,e,!0)},f.prototype.lastIndexOf=function(t,r,e){return R(this,t,r,e,!1)},f.prototype.write=function(t,r,e,n){if(void 0===r)n="utf8",e=this.length,r=0;else if(void 0===e&&"string"==typeof r)n=r,e=this.length,r=0;else{if(!isFinite(r))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(e)?(e|=0,void 0===n&&(n="utf8")):(n=e,e=void 0)}var i=this.length-r;if((void 0===e||e>i)&&(e=i),t.length>0&&(e<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return A(this,t,r,e);case"utf8":case"utf-8":return m(this,t,r,e);case"ascii":return P(this,t,r,e);case"latin1":case"binary":return T(this,t,r,e);case"base64":return B(this,t,r,e);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,r,e);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;function O(t){var r=t.length;if(r<=I)return String.fromCharCode.apply(String,t);for(var e="",n=0;n<r;)e+=String.fromCharCode.apply(String,t.slice(n,n+=I));return e}function L(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(127&t[i]);return n}function D(t,r,e){var n="";e=Math.min(t.length,e);for(var i=r;i<e;++i)n+=String.fromCharCode(t[i]);return n}function x(t,r,e){var n=t.length;(!r||r<0)&&(r=0),(!e||e<0||e>n)&&(e=n);for(var i="",o=r;o<e;++o)i+=Z(t[o]);return i}function C(t,r,e){for(var n=t.slice(r,e),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function M(t,r,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+r>e)throw new RangeError("Trying to access beyond buffer length")}function k(t,r,e,n,i,o){if(!f.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(r>i||r<o)throw new RangeError('"value" argument is out of bounds');if(e+n>t.length)throw new RangeError("Index out of range")}function N(t,r,e,n){r<0&&(r=65535+r+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(r&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function z(t,r,e,n){r<0&&(r=4294967295+r+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=r>>>8*(n?i:3-i)&255}function F(t,r,e,n,i,o){if(e+n>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function j(t,r,n,i,o){return o||F(t,r,n,4,3.4028234663852886e38,-3.4028234663852886e38),e.write(t,r,n,i,23,4),n+4}function q(t,r,n,i,o){return o||F(t,r,n,8,1.7976931348623157e308,-1.7976931348623157e308),e.write(t,r,n,i,52,8),n+8}f.prototype.slice=function(t,r){var e,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(r=void 0===r?n:~~r)<0?(r+=n)<0&&(r=0):r>n&&(r=n),r<t&&(r=t),f.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,r)).__proto__=f.prototype;else{var i=r-t;e=new f(i,void 0);for(var o=0;o<i;++o)e[o]=this[o+t]}return e},f.prototype.readUIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n},f.prototype.readUIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t+--r],i=1;r>0&&(i*=256);)n+=this[t+--r]*i;return n},f.prototype.readUInt8=function(t,r){return r||M(t,1,this.length),this[t]},f.prototype.readUInt16LE=function(t,r){return r||M(t,2,this.length),this[t]|this[t+1]<<8},f.prototype.readUInt16BE=function(t,r){return r||M(t,2,this.length),this[t]<<8|this[t+1]},f.prototype.readUInt32LE=function(t,r){return r||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},f.prototype.readUInt32BE=function(t,r){return r||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},f.prototype.readIntLE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=this[t],i=1,o=0;++o<r&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*r)),n},f.prototype.readIntBE=function(t,r,e){t|=0,r|=0,e||M(t,r,this.length);for(var n=r,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*r)),o},f.prototype.readInt8=function(t,r){return r||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},f.prototype.readInt16LE=function(t,r){r||M(t,2,this.length);var e=this[t]|this[t+1]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt16BE=function(t,r){r||M(t,2,this.length);var e=this[t+1]|this[t]<<8;return 32768&e?4294901760|e:e},f.prototype.readInt32LE=function(t,r){return r||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},f.prototype.readInt32BE=function(t,r){return r||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},f.prototype.readFloatLE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!0,23,4)},f.prototype.readFloatBE=function(t,r){return r||M(t,4,this.length),e.read(this,t,!1,23,4)},f.prototype.readDoubleLE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!0,52,8)},f.prototype.readDoubleBE=function(t,r){return r||M(t,8,this.length),e.read(this,t,!1,52,8)},f.prototype.writeUIntLE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[r]=255&t;++o<e&&(i*=256);)this[r+o]=t/i&255;return r+e},f.prototype.writeUIntBE=function(t,r,e,n){(t=+t,r|=0,e|=0,n)||k(this,t,r,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[r+i]=255&t;--i>=0&&(o*=256);)this[r+i]=t/o&255;return r+e},f.prototype.writeUInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,255,0),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[r]=255&t,r+1},f.prototype.writeUInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeUInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeUInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r+3]=t>>>24,this[r+2]=t>>>16,this[r+1]=t>>>8,this[r]=255&t):z(this,t,r,!0),r+4},f.prototype.writeUInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeIntLE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=0,u=1,f=0;for(this[r]=255&t;++o<e&&(u*=256);)t<0&&0===f&&0!==this[r+o-1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeIntBE=function(t,r,e,n){if(t=+t,r|=0,!n){var i=Math.pow(2,8*e-1);k(this,t,r,e,i-1,-i)}var o=e-1,u=1,f=0;for(this[r+o]=255&t;--o>=0&&(u*=256);)t<0&&0===f&&0!==this[r+o+1]&&(f=1),this[r+o]=(t/u>>0)-f&255;return r+e},f.prototype.writeInt8=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,1,127,-128),f.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[r]=255&t,r+1},f.prototype.writeInt16LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8):N(this,t,r,!0),r+2},f.prototype.writeInt16BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>8,this[r+1]=255&t):N(this,t,r,!1),r+2},f.prototype.writeInt32LE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[r]=255&t,this[r+1]=t>>>8,this[r+2]=t>>>16,this[r+3]=t>>>24):z(this,t,r,!0),r+4},f.prototype.writeInt32BE=function(t,r,e){return t=+t,r|=0,e||k(this,t,r,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),f.TYPED_ARRAY_SUPPORT?(this[r]=t>>>24,this[r+1]=t>>>16,this[r+2]=t>>>8,this[r+3]=255&t):z(this,t,r,!1),r+4},f.prototype.writeFloatLE=function(t,r,e){return j(this,t,r,!0,e)},f.prototype.writeFloatBE=function(t,r,e){return j(this,t,r,!1,e)},f.prototype.writeDoubleLE=function(t,r,e){return q(this,t,r,!0,e)},f.prototype.writeDoubleBE=function(t,r,e){return q(this,t,r,!1,e)},f.prototype.copy=function(t,r,e,n){if(e||(e=0),n||0===n||(n=this.length),r>=t.length&&(r=t.length),r||(r=0),n>0&&n<e&&(n=e),n===e)return 0;if(0===t.length||0===this.length)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-r<n-e&&(n=t.length-r+e);var i,o=n-e;if(this===t&&e<r&&r<n)for(i=o-1;i>=0;--i)t[i+r]=this[i+e];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+r]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),r);return o},f.prototype.fill=function(t,r,e,n){if("string"==typeof t){if("string"==typeof r?(n=r,r=0,e=this.length):"string"==typeof e&&(n=e,e=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(r<0||this.length<r||this.length<e)throw new RangeError("Out of range index");if(e<=r)return this;var o;if(r>>>=0,e=void 0===e?this.length:e>>>0,t||(t=0),"number"==typeof t)for(o=r;o<e;++o)this[o]=t;else{var u=f.isBuffer(t)?t:$(new f(t,n).toString()),s=u.length;for(o=0;o<e-r;++o)this[o+r]=u[o%s]}return this};var V=/[^+\/0-9A-Za-z-_]/g;function X(t){if((t=J(t).replace(V,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function J(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function Z(t){return t<16?"0"+t.toString(16):t.toString(16)}function $(t,r){var e;r=r||1/0;for(var n=t.length,i=null,o=[],u=0;u<n;++u){if((e=t.charCodeAt(u))>55295&&e<57344){if(!i){if(e>56319){(r-=3)>-1&&o.push(239,191,189);continue}if(u+1===n){(r-=3)>-1&&o.push(239,191,189);continue}i=e;continue}if(e<56320){(r-=3)>-1&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&(r-=3)>-1&&o.push(239,191,189);if(i=null,e<128){if((r-=1)<0)break;o.push(e)}else if(e<2048){if((r-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((r-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((r-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function G(t){for(var r=[],e=0;e<t.length;++e)r.push(255&t.charCodeAt(e));return r}function H(t,r){for(var e,n,i,o=[],u=0;u<t.length&&!((r-=2)<0);++u)n=(e=t.charCodeAt(u))>>8,i=e%256,o.push(i),o.push(n);return o}function K(t){return r.toByteArray(X(t))}function Q(t,r,e,n){for(var i=0;i<n&&!(i+e>=r.length||i>=t.length);++i)r[i+e]=t[i];return i}function W(t){return t!=t} },{"base64-js":"yh9p","ieee754":"JgNJ","isarray":"Bi1L","buffer":"dskh"}],"fP36":[function(require,module,exports) { var Buffer = require("buffer").Buffer; var f=require("buffer").Buffer;module.exports=n;var r="function"==typeof f&&"function"==typeof f.isBuffer,e="function"==typeof ArrayBuffer,u=function(f){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(f):f.buffer instanceof ArrayBuffer};function n(n){return r&&f.isBuffer(n)||e&&(n instanceof ArrayBuffer||u(n))} },{"buffer":"dskh"}],"nrIx":[function(require,module,exports) { var e=require("isarray"),t=require("./is-buffer"),r=Object.prototype.toString,n="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),o="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);function f(r,n){if(!r)return r;if(t(r)){var o={_placeholder:!0,num:n.length};return n.push(r),o}if(e(r)){for(var i=new Array(r.length),a=0;a<r.length;a++)i[a]=f(r[a],n);return i}if("object"==typeof r&&!(r instanceof Date)){i={};for(var u in r)i[u]=f(r[u],n);return i}return r}function i(t,r){if(!t)return t;if(t&&t._placeholder)return r[t.num];if(e(t))for(var n=0;n<t.length;n++)t[n]=i(t[n],r);else if("object"==typeof t)for(var o in t)t[o]=i(t[o],r);return t}exports.deconstructPacket=function(e){var t=[],r=e.data,n=e;return n.data=f(r,t),n.attachments=t.length,{packet:n,buffers:t}},exports.reconstructPacket=function(e,t){return e.data=i(e.data,t),e.attachments=void 0,e},exports.removeBlobs=function(r,f){var i=0,a=r;!function r(u,c,l){if(!u)return u;if(n&&u instanceof Blob||o&&u instanceof File){i++;var s=new FileReader;s.onload=function(){l?l[c]=this.result:a=this.result,--i||f(a)},s.readAsArrayBuffer(u)}else if(e(u))for(var p=0;p<u.length;p++)r(u[p],p,u);else if("object"==typeof u&&!t(u))for(var d in u)r(u[d],d,u)}(a),i||f(a)}; },{"isarray":"Bi1L","./is-buffer":"fP36"}],"V8U3":[function(require,module,exports) { var t=require("debug")("socket.io-parser"),r=require("component-emitter"),e=require("./binary"),n=require("isarray"),o=require("./is-buffer");function s(){}exports.protocol=4,exports.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],exports.CONNECT=0,exports.DISCONNECT=1,exports.EVENT=2,exports.ACK=3,exports.ERROR=4,exports.BINARY_EVENT=5,exports.BINARY_ACK=6,exports.Encoder=s,exports.Decoder=p;var i=exports.ERROR+'"encode error"';function c(r){var e=""+r.type;if(exports.BINARY_EVENT!==r.type&&exports.BINARY_ACK!==r.type||(e+=r.attachments+"-"),r.nsp&&"/"!==r.nsp&&(e+=r.nsp+","),null!=r.id&&(e+=r.id),null!=r.data){var n=a(r.data);if(!1===n)return i;e+=n}return t("encoded %j as %s",r,e),e}function a(t){try{return JSON.stringify(t)}catch(r){return!1}}function u(t,r){e.removeBlobs(t,function(t){var n=e.deconstructPacket(t),o=c(n.packet),s=n.buffers;s.unshift(o),r(s)})}function p(){this.reconstructor=null}function f(r){var e=0,o={type:Number(r.charAt(0))};if(null==exports.types[o.type])return N("unknown packet type "+o.type);if(exports.BINARY_EVENT===o.type||exports.BINARY_ACK===o.type){for(var s="";"-"!==r.charAt(++e)&&(s+=r.charAt(e),e!=r.length););if(s!=Number(s)||"-"!==r.charAt(e))throw new Error("Illegal attachments");o.attachments=Number(s)}if("/"===r.charAt(e+1))for(o.nsp="";++e;){if(","===(c=r.charAt(e)))break;if(o.nsp+=c,e===r.length)break}else o.nsp="/";var i=r.charAt(e+1);if(""!==i&&Number(i)==i){for(o.id="";++e;){var c;if(null==(c=r.charAt(e))||Number(c)!=c){--e;break}if(o.id+=r.charAt(e),e===r.length)break}o.id=Number(o.id)}if(r.charAt(++e)){var a=h(r.substr(e));if(!(!1!==a&&(o.type===exports.ERROR||n(a))))return N("invalid payload");o.data=a}return t("decoded %s as %j",r,o),o}function h(t){try{return JSON.parse(t)}catch(r){return!1}}function d(t){this.reconPack=t,this.buffers=[]}function N(t){return{type:exports.ERROR,data:"parser error: "+t}}s.prototype.encode=function(r,e){(t("encoding packet %j",r),exports.BINARY_EVENT===r.type||exports.BINARY_ACK===r.type)?u(r,e):e([c(r)])},r(p.prototype),p.prototype.add=function(t){var r;if("string"==typeof t)r=f(t),exports.BINARY_EVENT===r.type||exports.BINARY_ACK===r.type?(this.reconstructor=new d(r),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",r)):this.emit("decoded",r);else{if(!o(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(r=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",r))}},p.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},d.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var r=e.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null},d.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}; },{"debug":"tjN4","component-emitter":"XUqb","./binary":"nrIx","isarray":"Bi1L","./is-buffer":"fP36"}],"cnu0":[function(require,module,exports) { try{module.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){module.exports=!1} },{}],"jhGE":[function(require,module,exports) { var e=require("has-cors");module.exports=function(t){var n=t.xdomain,r=t.xscheme,c=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!n||e))return new XMLHttpRequest}catch(i){}try{if("undefined"!=typeof XDomainRequest&&!r&&c)return new XDomainRequest}catch(i){}if(!n)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(i){}}; },{"has-cors":"cnu0"}],"PQmP":[function(require,module,exports) { module.exports=Object.keys||function(r){var e=[],t=Object.prototype.hasOwnProperty;for(var o in r)t.call(r,o)&&e.push(o);return e}; },{}],"oIqR":[function(require,module,exports) { var Buffer = require("buffer").Buffer; var e=require("buffer").Buffer,t=require("isarray"),r=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===r.call(Blob),f="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===r.call(File);function n(r){if(!r||"object"!=typeof r)return!1;if(t(r)){for(var i=0,u=r.length;i<u;i++)if(n(r[i]))return!0;return!1}if("function"==typeof e&&e.isBuffer&&e.isBuffer(r)||"function"==typeof ArrayBuffer&&r instanceof ArrayBuffer||o&&r instanceof Blob||f&&r instanceof File)return!0;if(r.toJSON&&"function"==typeof r.toJSON&&1===arguments.length)return n(r.toJSON(),!0);for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&n(r[c]))return!0;return!1}module.exports=n; },{"isarray":"Bi1L","buffer":"dskh"}],"v4iP":[function(require,module,exports) { module.exports=function(r,e,n){var t=r.byteLength;if(e=e||0,n=n||t,r.slice)return r.slice(e,n);if(e<0&&(e+=t),n<0&&(n+=t),n>t&&(n=t),e>=t||e>=n||0===t)return new ArrayBuffer(0);for(var f=new Uint8Array(r),i=new Uint8Array(n-e),u=e,a=0;u<n;u++,a++)i[a]=f[u];return i.buffer}; },{}],"t3ut":[function(require,module,exports) { function n(n,t,u){var r=!1;return u=u||o,c.count=n,0===n?t():c;function c(n,o){if(c.count<=0)throw new Error("after called too many times");--c.count,n?(r=!0,t(n),t=u):0!==c.count||r||t(null,o)}}function o(){}module.exports=n; },{}],"S7zD":[function(require,module,exports) { var r,t,n,o=String.fromCharCode;function e(r){for(var t,n,o=[],e=0,i=r.length;e<i;)(t=r.charCodeAt(e++))>=55296&&t<=56319&&e<i?56320==(64512&(n=r.charCodeAt(e++)))?o.push(((1023&t)<<10)+(1023&n)+65536):(o.push(t),e--):o.push(t);return o}function i(r){for(var t,n=r.length,e=-1,i="";++e<n;)(t=r[e])>65535&&(i+=o((t-=65536)>>>10&1023|55296),t=56320|1023&t),i+=o(t);return i}function u(r,t){if(r>=55296&&r<=57343){if(t)throw Error("Lone surrogate U+"+r.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function a(r,t){return o(r>>t&63|128)}function f(r,t){if(0==(4294967168&r))return o(r);var n="";return 0==(4294965248&r)?n=o(r>>6&31|192):0==(4294901760&r)?(u(r,t)||(r=65533),n=o(r>>12&15|224),n+=a(r,6)):0==(4292870144&r)&&(n=o(r>>18&7|240),n+=a(r,12),n+=a(r,6)),n+=o(63&r|128)}function c(r,t){for(var n=!1!==(t=t||{}).strict,o=e(r),i=o.length,u=-1,a="";++u<i;)a+=f(o[u],n);return a}function h(){if(n>=t)throw Error("Invalid byte index");var o=255&r[n];if(n++,128==(192&o))return 63&o;throw Error("Invalid continuation byte")}function d(o){var e,i;if(n>t)throw Error("Invalid byte index");if(n==t)return!1;if(e=255&r[n],n++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|h())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|h()<<6|h())>=2048)return u(i,o)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|h()<<12|h()<<6|h())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}function v(o,u){var a=!1!==(u=u||{}).strict;r=e(o),t=r.length,n=0;for(var f,c=[];!1!==(f=d(a));)c.push(f);return i(c)}module.exports={version:"2.1.2",encode:c,decode:v}; },{}],"VBf3":[function(require,module,exports) { !function(){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=new Uint8Array(256),t=0;t<r.length;t++)e[r.charCodeAt(t)]=t;exports.encode=function(e){var t,n=new Uint8Array(e),o=n.length,a="";for(t=0;t<o;t+=3)a+=r[n[t]>>2],a+=r[(3&n[t])<<4|n[t+1]>>4],a+=r[(15&n[t+1])<<2|n[t+2]>>6],a+=r[63&n[t+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},exports.decode=function(r){var t,n,o,a,h,c=.75*r.length,g=r.length,i=0;"="===r[r.length-1]&&(c--,"="===r[r.length-2]&&c--);var u=new ArrayBuffer(c),A=new Uint8Array(u);for(t=0;t<g;t+=4)n=e[r.charCodeAt(t)],o=e[r.charCodeAt(t+1)],a=e[r.charCodeAt(t+2)],h=e[r.charCodeAt(t+3)],A[i++]=n<<2|o>>4,A[i++]=(15&o)<<4|a>>2,A[i++]=(3&a)<<6|63&h;return u}}(); },{}],"AKrv":[function(require,module,exports) { var e=void 0!==e?e:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,t=function(){try{return 2===new Blob(["hi"]).size}catch(e){return!1}}(),r=t&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(e){return!1}}(),n=e&&e.prototype.append&&e.prototype.getBlob;function o(e){return e.map(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var r=new Uint8Array(e.byteLength);r.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=r.buffer}return t}return e})}function u(t,r){r=r||{};var n=new e;return o(t).forEach(function(e){n.append(e)}),r.type?n.getBlob(r.type):n.getBlob()}function i(e,t){return new Blob(o(e),t||{})}"undefined"!=typeof Blob&&(u.prototype=Blob.prototype,i.prototype=Blob.prototype),module.exports=t?r?Blob:i:n?u:void 0; },{}],"W984":[function(require,module,exports) { var e,r=require("./keys"),t=require("has-binary2"),n=require("arraybuffer.slice"),a=require("after"),o=require("./utf8");"undefined"!=typeof ArrayBuffer&&(e=require("base64-arraybuffer"));var f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),i="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),u=f||i;exports.protocol=3;var c=exports.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},d=r(c),s={type:"error",data:"parser error"},y=require("blob");function p(e,r){return r("b"+exports.packets[e.type]+e.data.data)}function l(e,r,t){if(!r)return exports.encodeBase64Packet(e,t);var n=e.data,a=new Uint8Array(n),o=new Uint8Array(1+n.byteLength);o[0]=c[e.type];for(var f=0;f<a.length;f++)o[f+1]=a[f];return t(o.buffer)}function g(e,r,t){if(!r)return exports.encodeBase64Packet(e,t);var n=new FileReader;return n.onload=function(){exports.encodePacket({type:e.type,data:n.result},r,!0,t)},n.readAsArrayBuffer(e.data)}function h(e,r,t){if(!r)return exports.encodeBase64Packet(e,t);if(u)return g(e,r,t);var n=new Uint8Array(1);return n[0]=c[e.type],t(new y([n.buffer,e.data]))}function v(e){try{e=o.decode(e,{strict:!1})}catch(r){return!1}return e}function A(e,r,t){for(var n=new Array(e.length),o=a(e.length,t),f=function(e,t,a){r(t,function(r,t){n[e]=t,a(r,n)})},i=0;i<e.length;i++)f(i,e[i],o)}exports.encodePacket=function(e,r,t,n){"function"==typeof r&&(n=r,r=!1),"function"==typeof t&&(n=t,t=null);var a=void 0===e.data?void 0:e.data.buffer||e.data;if("undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer)return l(e,r,n);if(void 0!==y&&a instanceof y)return h(e,r,n);if(a&&a.base64)return p(e,n);var f=c[e.type];return void 0!==e.data&&(f+=t?o.encode(String(e.data),{strict:!1}):String(e.data)),n(""+f)},exports.encodeBase64Packet=function(e,r){var t,n="b"+exports.packets[e.type];if(void 0!==y&&e.data instanceof y){var a=new FileReader;return a.onload=function(){var e=a.result.split(",")[1];r(n+e)},a.readAsDataURL(e.data)}try{t=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(u){for(var o=new Uint8Array(e.data),f=new Array(o.length),i=0;i<o.length;i++)f[i]=o[i];t=String.fromCharCode.apply(null,f)}return n+=btoa(t),r(n)},exports.decodePacket=function(e,r,t){if(void 0===e)return s;if("string"==typeof e){if("b"===e.charAt(0))return exports.decodeBase64Packet(e.substr(1),r);if(t&&!1===(e=v(e)))return s;var a=e.charAt(0);return Number(a)==a&&d[a]?e.length>1?{type:d[a],data:e.substring(1)}:{type:d[a]}:s}a=new Uint8Array(e)[0];var o=n(e,1);return y&&"blob"===r&&(o=new y([o])),{type:d[a],data:o}},exports.decodeBase64Packet=function(r,t){var n=d[r.charAt(0)];if(!e)return{type:n,data:{base64:!0,data:r.substr(1)}};var a=e.decode(r.substr(1));return"blob"===t&&y&&(a=new y([a])),{type:n,data:a}},exports.encodePayload=function(e,r,n){"function"==typeof r&&(n=r,r=null);var a=t(e);if(r&&a)return y&&!u?exports.encodePayloadAsBlob(e,n):exports.encodePayloadAsArrayBuffer(e,n);if(!e.length)return n("0:");A(e,function(e,t){exports.encodePacket(e,!!a&&r,!1,function(e){t(null,function(e){return e.length+":"+e}(e))})},function(e,r){return n(r.join(""))})},exports.decodePayload=function(e,r,t){if("string"!=typeof e)return exports.decodePayloadAsBinary(e,r,t);var n;if("function"==typeof r&&(t=r,r=null),""===e)return t(s,0,1);for(var a,o,f="",i=0,u=e.length;i<u;i++){var c=e.charAt(i);if(":"===c){if(""===f||f!=(a=Number(f)))return t(s,0,1);if(f!=(o=e.substr(i+1,a)).length)return t(s,0,1);if(o.length){if(n=exports.decodePacket(o,r,!1),s.type===n.type&&s.data===n.data)return t(s,0,1);if(!1===t(n,i+a,u))return}i+=a,f=""}else f+=c}return""!==f?t(s,0,1):void 0},exports.encodePayloadAsArrayBuffer=function(e,r){if(!e.length)return r(new ArrayBuffer(0));A(e,function(e,r){exports.encodePacket(e,!0,!0,function(e){return r(null,e)})},function(e,t){var n=t.reduce(function(e,r){var t;return e+(t="string"==typeof r?r.length:r.byteLength).toString().length+t+2},0),a=new Uint8Array(n),o=0;return t.forEach(function(e){var r="string"==typeof e,t=e;if(r){for(var n=new Uint8Array(e.length),f=0;f<e.length;f++)n[f]=e.charCodeAt(f);t=n.buffer}a[o++]=r?0:1;var i=t.byteLength.toString();for(f=0;f<i.length;f++)a[o++]=parseInt(i[f]);a[o++]=255;for(n=new Uint8Array(t),f=0;f<n.length;f++)a[o++]=n[f]}),r(a.buffer)})},exports.encodePayloadAsBlob=function(e,r){A(e,function(e,r){exports.encodePacket(e,!0,!0,function(e){var t=new Uint8Array(1);if(t[0]=1,"string"==typeof e){for(var n=new Uint8Array(e.length),a=0;a<e.length;a++)n[a]=e.charCodeAt(a);e=n.buffer,t[0]=0}var o=(e instanceof ArrayBuffer?e.byteLength:e.size).toString(),f=new Uint8Array(o.length+1);for(a=0;a<o.length;a++)f[a]=parseInt(o[a]);if(f[o.length]=255,y){var i=new y([t.buffer,f.buffer,e]);r(null,i)}})},function(e,t){return r(new y(t))})},exports.decodePayloadAsBinary=function(e,r,t){"function"==typeof r&&(t=r,r=null);for(var a=e,o=[];a.byteLength>0;){for(var f=new Uint8Array(a),i=0===f[0],u="",c=1;255!==f[c];c++){if(u.length>310)return t(s,0,1);u+=f[c]}a=n(a,2+u.length),u=parseInt(u);var d=n(a,0,u);if(i)try{d=String.fromCharCode.apply(null,new Uint8Array(d))}catch(l){var y=new Uint8Array(d);d="";for(c=0;c<y.length;c++)d+=String.fromCharCode(y[c])}o.push(d),a=n(a,u)}var p=o.length;o.forEach(function(e,n){t(exports.decodePacket(e,r,!0),n,p)})}; },{"./keys":"PQmP","has-binary2":"oIqR","arraybuffer.slice":"v4iP","after":"t3ut","./utf8":"S7zD","base64-arraybuffer":"VBf3","blob":"AKrv"}],"aoJx":[function(require,module,exports) { var t=require("engine.io-parser"),e=require("component-emitter");function s(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}module.exports=s,e(s.prototype),s.prototype.onError=function(t,e){var s=new Error(t);return s.type="TransportError",s.description=e,this.emit("error",s),this},s.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},s.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},s.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},s.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},s.prototype.onData=function(e){var s=t.decodePacket(e,this.socket.binaryType);this.onPacket(s)},s.prototype.onPacket=function(t){this.emit("packet",t)},s.prototype.onClose=function(){this.readyState="closed",this.emit("close")}; },{"engine.io-parser":"W984","component-emitter":"XUqb"}],"a1bU":[function(require,module,exports) { exports.encode=function(e){var n="";for(var o in e)e.hasOwnProperty(o)&&(n.length&&(n+="&"),n+=encodeURIComponent(o)+"="+encodeURIComponent(e[o]));return n},exports.decode=function(e){for(var n={},o=e.split("&"),t=0,r=o.length;t<r;t++){var d=o[t].split("=");n[decodeURIComponent(d[0])]=decodeURIComponent(d[1])}return n}; },{}],"ZngT":[function(require,module,exports) { module.exports=function(o,t){var p=function(){};p.prototype=t.prototype,o.prototype=new p,o.prototype.constructor=o}; },{}],"hQ4G":[function(require,module,exports) { "use strict";var r,e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={},o=0,u=0;function a(r){var n="";do{n=e[r%t]+n,r=Math.floor(r/t)}while(r>0);return n}function c(r){var e=0;for(u=0;u<r.length;u++)e=e*t+n[r.charAt(u)];return e}function f(){var e=a(+new Date);return e!==r?(o=0,r=e):e+"."+a(o++)}for(;u<t;u++)n[e[u]]=u;f.encode=a,f.decode=c,module.exports=f; },{}],"BPT5":[function(require,module,exports) { var t=require("../transport"),e=require("parseqs"),i=require("engine.io-parser"),o=require("component-inherit"),n=require("yeast"),r=require("debug")("engine.io-client:polling");module.exports=p;var s=null!=new(require("xmlhttprequest-ssl"))({xdomain:!1}).responseType;function p(e){var i=e&&e.forceBase64;s&&!i||(this.supportsBinary=!1),t.call(this,e)}o(p,t),p.prototype.name="polling",p.prototype.doOpen=function(){this.poll()},p.prototype.pause=function(t){var e=this;function i(){r("paused"),e.readyState="paused",t()}if(this.readyState="pausing",this.polling||!this.writable){var o=0;this.polling&&(r("we are currently polling - waiting to pause"),o++,this.once("pollComplete",function(){r("pre-pause polling complete"),--o||i()})),this.writable||(r("we are currently writing - waiting to pause"),o++,this.once("drain",function(){r("pre-pause writing complete"),--o||i()}))}else i()},p.prototype.poll=function(){r("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},p.prototype.onData=function(t){var e=this;r("polling got data %s",t);i.decodePayload(t,this.socket.binaryType,function(t,i,o){if("opening"===e.readyState&&e.onOpen(),"close"===t.type)return e.onClose(),!1;e.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState?this.poll():r('ignoring poll - transport state "%s"',this.readyState))},p.prototype.doClose=function(){var t=this;function e(){r("writing close packet"),t.write([{type:"close"}])}"open"===this.readyState?(r("transport open - closing"),e()):(r("transport not open - deferring close"),this.once("open",e))},p.prototype.write=function(t){var e=this;this.writable=!1;var o=function(){e.writable=!0,e.emit("drain")};i.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,o)})},p.prototype.uri=function(){var t=this.query||{},i=this.secure?"https":"http",o="";return!1!==this.timestampRequests&&(t[this.timestampParam]=n()),this.supportsBinary||t.sid||(t.b64=1),t=e.encode(t),this.port&&("https"===i&&443!==Number(this.port)||"http"===i&&80!==Number(this.port))&&(o=":"+this.port),t.length&&(t="?"+t),i+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+o+this.path+t}; },{"../transport":"aoJx","parseqs":"a1bU","engine.io-parser":"W984","component-inherit":"ZngT","yeast":"hQ4G","debug":"tjN4","xmlhttprequest-ssl":"jhGE"}],"uJlD":[function(require,module,exports) { var t=require("xmlhttprequest-ssl"),e=require("./polling"),s=require("component-emitter"),r=require("component-inherit"),i=require("debug")("engine.io-client:polling-xhr");function o(){}function n(t){if(e.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location){var s="https:"===location.protocol,r=location.port;r||(r=s?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||r!==t.port,this.xs=t.secure!==s}}function a(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}if(module.exports=n,module.exports.Request=a,r(n,e),n.prototype.supportsBinary=!0,n.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new a(t)},n.prototype.doWrite=function(t,e){var s="string"!=typeof t&&void 0!==t,r=this.request({method:"POST",data:t,isBinary:s}),i=this;r.on("success",e),r.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=r},n.prototype.doPoll=function(){i("xhr poll");var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},s(a.prototype),a.prototype.create=function(){var e={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};e.pfx=this.pfx,e.key=this.key,e.passphrase=this.passphrase,e.cert=this.cert,e.ca=this.ca,e.ciphers=this.ciphers,e.rejectUnauthorized=this.rejectUnauthorized;var s=this.xhr=new t(e),r=this;try{i("xhr open %s: %s",this.method,this.uri),s.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&s.setRequestHeader(o,this.extraHeaders[o])}catch(n){}if("POST"===this.method)try{this.isBinary?s.setRequestHeader("Content-type","application/octet-stream"):s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(n){}try{s.setRequestHeader("Accept","*/*")}catch(n){}"withCredentials"in s&&(s.withCredentials=!0),this.requestTimeout&&(s.timeout=this.requestTimeout),this.hasXDR()?(s.onload=function(){r.onLoad()},s.onerror=function(){r.onError(s.responseText)}):s.onreadystatechange=function(){if(2===s.readyState)try{var t=s.getResponseHeader("Content-Type");r.supportsBinary&&"application/octet-stream"===t&&(s.responseType="arraybuffer")}catch(n){}4===s.readyState&&(200===s.status||1223===s.status?r.onLoad():setTimeout(function(){r.onError(s.status)},0))},i("xhr data %s",this.data),s.send(this.data)}catch(n){return void setTimeout(function(){r.onError(n)},0)}"undefined"!=typeof document&&(this.index=a.requestsCount++,a.requests[this.index]=this)},a.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},a.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},a.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},a.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=o:this.xhr.onreadystatechange=o,t)try{this.xhr.abort()}catch(e){}"undefined"!=typeof document&&delete a.requests[this.index],this.xhr=null}},a.prototype.onLoad=function(){var t;try{var e;try{e=this.xhr.getResponseHeader("Content-Type")}catch(s){}t="application/octet-stream"===e&&this.xhr.response||this.xhr.responseText}catch(s){this.onError(s)}null!=t&&this.onData(t)},a.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},a.prototype.abort=function(){this.cleanup()},a.requestsCount=0,a.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",u);else if("function"==typeof addEventListener){var h="onpagehide"in self?"pagehide":"unload";addEventListener(h,u,!1)}function u(){for(var t in a.requests)a.requests.hasOwnProperty(t)&&a.requests[t].abort()} },{"xmlhttprequest-ssl":"jhGE","./polling":"BPT5","component-emitter":"XUqb","component-inherit":"ZngT","debug":"tjN4"}],"dWDe":[function(require,module,exports) { var global = arguments[3]; var e=arguments[3],t=require("./polling"),r=require("component-inherit");module.exports=c;var i,o=/\n/g,n=/\\n/g;function a(){}function s(){return"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:{}}function c(e){if(t.call(this,e),this.query=this.query||{},!i){var r=s();i=r.___eio=r.___eio||[]}this.index=i.length;var o=this;i.push(function(e){o.onData(e)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){o.script&&(o.script.onerror=a)},!1)}r(c,t),c.prototype.supportsBinary=!1,c.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),t.prototype.doClose.call(this)},c.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var r=document.getElementsByTagName("script")[0];r?r.parentNode.insertBefore(t,r):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var e=document.createElement("iframe");document.body.appendChild(e),document.body.removeChild(e)},100)},c.prototype.doWrite=function(e,t){var r=this;if(!this.form){var i,a=document.createElement("form"),s=document.createElement("textarea"),c=this.iframeId="eio_iframe_"+this.index;a.className="socketio",a.style.position="absolute",a.style.top="-1000px",a.style.left="-1000px",a.target=c,a.method="POST",a.setAttribute("accept-charset","utf-8"),s.name="d",a.appendChild(s),document.body.appendChild(a),this.form=a,this.area=s}function d(){m(),t()}function m(){if(r.iframe)try{r.form.removeChild(r.iframe)}catch(t){r.onError("jsonp polling iframe removal error",t)}try{var e='<iframe src="javascript:0" name="'+r.iframeId+'">';i=document.createElement(e)}catch(t){(i=document.createElement("iframe")).name=r.iframeId,i.src="javascript:0"}i.id=r.iframeId,r.form.appendChild(i),r.iframe=i}this.form.action=this.uri(),m(),e=e.replace(n,"\\\n"),this.area.value=e.replace(o,"\\n");try{this.form.submit()}catch(p){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===r.iframe.readyState&&d()}:this.iframe.onload=d}; },{"./polling":"BPT5","component-inherit":"ZngT"}],"rDCW":[function(require,module,exports) { },{}],"rRq3":[function(require,module,exports) { var Buffer = require("buffer").Buffer; var e,t,s=require("buffer").Buffer,r=require("../transport"),i=require("engine.io-parser"),o=require("parseqs"),n=require("component-inherit"),a=require("yeast"),h=require("debug")("engine.io-client:websocket");if("undefined"!=typeof WebSocket)e=WebSocket;else if("undefined"!=typeof self)e=self.WebSocket||self.MozWebSocket;else try{t=require("ws")}catch(u){}var p=e||t;function c(s){s&&s.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=s.perMessageDeflate,this.usingBrowserWebSocket=e&&!s.forceNode,this.protocols=s.protocols,this.usingBrowserWebSocket||(p=t),r.call(this,s)}module.exports=c,n(c,r),c.prototype.name="websocket",c.prototype.supportsBinary=!0,c.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t=this.protocols,s={agent:this.agent,perMessageDeflate:this.perMessageDeflate};s.pfx=this.pfx,s.key=this.key,s.passphrase=this.passphrase,s.cert=this.cert,s.ca=this.ca,s.ciphers=this.ciphers,s.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(s.headers=this.extraHeaders),this.localAddress&&(s.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?t?new p(e,t):new p(e):new p(e,t,s)}catch(r){return this.emit("error",r)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},c.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},c.prototype.write=function(e){var t=this;this.writable=!1;for(var r=e.length,o=0,n=r;o<n;o++)!function(e){i.encodePacket(e,t.supportsBinary,function(i){if(!t.usingBrowserWebSocket){var o={};if(e.options&&(o.compress=e.options.compress),t.perMessageDeflate)("string"==typeof i?s.byteLength(i):i.length)<t.perMessageDeflate.threshold&&(o.compress=!1)}try{t.usingBrowserWebSocket?t.ws.send(i):t.ws.send(i,o)}catch(u){h("websocket closed before onclose event")}--r||a()})}(e[o]);function a(){t.emit("flush"),setTimeout(function(){t.writable=!0,t.emit("drain")},0)}},c.prototype.onClose=function(){r.prototype.onClose.call(this)},c.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},c.prototype.uri=function(){var e=this.query||{},t=this.secure?"wss":"ws",s="";return this.port&&("wss"===t&&443!==Number(this.port)||"ws"===t&&80!==Number(this.port))&&(s=":"+this.port),this.timestampRequests&&(e[this.timestampParam]=a()),this.supportsBinary||(e.b64=1),(e=o.encode(e)).length&&(e="?"+e),t+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+s+this.path+e},c.prototype.check=function(){return!(!p||"__initialize"in p&&this.name===c.prototype.name)}; },{"../transport":"aoJx","engine.io-parser":"W984","parseqs":"a1bU","component-inherit":"ZngT","yeast":"hQ4G","debug":"tjN4","ws":"rDCW","buffer":"dskh"}],"DZ9o":[function(require,module,exports) { var e=require("xmlhttprequest-ssl"),o=require("./polling-xhr"),r=require("./polling-jsonp"),n=require("./websocket");function t(n){var t=!1,i=!1,s=!1!==n.jsonp;if("undefined"!=typeof location){var l="https:"===location.protocol,p=location.port;p||(p=l?443:80),t=n.hostname!==location.hostname||p!==n.port,i=n.secure!==l}if(n.xdomain=t,n.xscheme=i,"open"in new e(n)&&!n.forceJSONP)return new o(n);if(!s)throw new Error("JSONP disabled");return new r(n)}exports.polling=t,exports.websocket=n; },{"xmlhttprequest-ssl":"jhGE","./polling-xhr":"uJlD","./polling-jsonp":"dWDe","./websocket":"rRq3"}],"OedV":[function(require,module,exports) { var r=[].indexOf;module.exports=function(e,n){if(r)return e.indexOf(n);for(var f=0;f<e.length;++f)if(e[f]===n)return f;return-1}; },{}],"wtcu":[function(require,module,exports) { var e=require("./transports/index"),t=require("component-emitter"),r=require("debug")("engine.io-client:socket"),s=require("indexof"),i=require("engine.io-parser"),o=require("parseuri"),n=require("parseqs");function a(e,t){if(!(this instanceof a))return new a(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=o(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=o(t.host).host),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=n.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.transportOptions=t.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized||t.rejectUnauthorized,this.forceNode=!!t.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),("undefined"==typeof self||this.isReactNative)&&(t.extraHeaders&&Object.keys(t.extraHeaders).length>0&&(this.extraHeaders=t.extraHeaders),t.localAddress&&(this.localAddress=t.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function p(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}module.exports=a,a.priorWebsocketSuccess=!1,t(a.prototype),a.protocol=i.protocol,a.Socket=a,a.Transport=require("./transport"),a.transports=require("./transports/index"),a.parser=require("engine.io-parser"),a.prototype.createTransport=function(t){r('creating transport "%s"',t);var s=p(this.query);s.EIO=i.protocol,s.transport=t;var o=this.transportOptions[t]||{};return this.id&&(s.sid=this.id),new e[t]({query:s,socket:this,agent:o.agent||this.agent,hostname:o.hostname||this.hostname,port:o.port||this.port,secure:o.secure||this.secure,path:o.path||this.path,forceJSONP:o.forceJSONP||this.forceJSONP,jsonp:o.jsonp||this.jsonp,forceBase64:o.forceBase64||this.forceBase64,enablesXDR:o.enablesXDR||this.enablesXDR,timestampRequests:o.timestampRequests||this.timestampRequests,timestampParam:o.timestampParam||this.timestampParam,policyPort:o.policyPort||this.policyPort,pfx:o.pfx||this.pfx,key:o.key||this.key,passphrase:o.passphrase||this.passphrase,cert:o.cert||this.cert,ca:o.ca||this.ca,ciphers:o.ciphers||this.ciphers,rejectUnauthorized:o.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:o.perMessageDeflate||this.perMessageDeflate,extraHeaders:o.extraHeaders||this.extraHeaders,forceNode:o.forceNode||this.forceNode,localAddress:o.localAddress||this.localAddress,requestTimeout:o.requestTimeout||this.requestTimeout,protocols:o.protocols||void 0,isReactNative:this.isReactNative})},a.prototype.open=function(){var e;if(this.rememberUpgrade&&a.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length){var t=this;return void setTimeout(function(){t.emit("error","No transports available")},0)}e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(r){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)},a.prototype.setTransport=function(e){r("setting transport %s",e.name);var t=this;this.transport&&(r("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=e,e.on("drain",function(){t.onDrain()}).on("packet",function(e){t.onPacket(e)}).on("error",function(e){t.onError(e)}).on("close",function(){t.onClose("transport close")})},a.prototype.probe=function(e){r('probing transport "%s"',e);var t=this.createTransport(e,{probe:1}),s=!1,i=this;function o(){if(i.onlyBinaryUpgrades){var o=!this.supportsBinary&&i.transport.supportsBinary;s=s||o}s||(r('probe transport "%s" opened',e),t.send([{type:"ping",data:"probe"}]),t.once("packet",function(o){if(!s)if("pong"===o.type&&"probe"===o.data){if(r('probe transport "%s" pong',e),i.upgrading=!0,i.emit("upgrading",t),!t)return;a.priorWebsocketSuccess="websocket"===t.name,r('pausing current transport "%s"',i.transport.name),i.transport.pause(function(){s||"closed"!==i.readyState&&(r("changing transport and sending upgrade packet"),l(),i.setTransport(t),t.send([{type:"upgrade"}]),i.emit("upgrade",t),t=null,i.upgrading=!1,i.flush())})}else{r('probe transport "%s" failed',e);var n=new Error("probe error");n.transport=t.name,i.emit("upgradeError",n)}}))}function n(){s||(s=!0,l(),t.close(),t=null)}function p(s){var o=new Error("probe error: "+s);o.transport=t.name,n(),r('probe transport "%s" failed because of error: %s',e,s),i.emit("upgradeError",o)}function h(){p("transport closed")}function c(){p("socket closed")}function u(e){t&&e.name!==t.name&&(r('"%s" works - aborting "%s"',e.name,t.name),n())}function l(){t.removeListener("open",o),t.removeListener("error",p),t.removeListener("close",h),i.removeListener("close",c),i.removeListener("upgrading",u)}a.priorWebsocketSuccess=!1,t.once("open",o),t.once("error",p),t.once("close",h),this.once("close",c),this.once("upgrading",u),t.open()},a.prototype.onOpen=function(){if(r("socket open"),this.readyState="open",a.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){r("starting upgrade probes");for(var e=0,t=this.upgrades.length;e<t;e++)this.probe(this.upgrades[e])}},a.prototype.onPacket=function(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(r('socket receive: type "%s", data "%s"',e.type,e.data),this.emit("packet",e),this.emit("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emit("data",e.data),this.emit("message",e.data)}else r('packet received with socket readyState "%s"',this.readyState)},a.prototype.onHandshake=function(e){this.emit("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},a.prototype.onHeartbeat=function(e){clearTimeout(this.pingTimeoutTimer);var t=this;t.pingTimeoutTimer=setTimeout(function(){"closed"!==t.readyState&&t.onClose("ping timeout")},e||t.pingInterval+t.pingTimeout)},a.prototype.setPing=function(){var e=this;clearTimeout(e.pingIntervalTimer),e.pingIntervalTimer=setTimeout(function(){r("writing ping packet - expecting pong within %sms",e.pingTimeout),e.ping(),e.onHeartbeat(e.pingTimeout)},e.pingInterval)},a.prototype.ping=function(){var e=this;this.sendPacket("ping",function(){e.emit("ping")})},a.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emit("drain"):this.flush()},a.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(r("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},a.prototype.write=a.prototype.send=function(e,t,r){return this.sendPacket("message",e,t,r),this},a.prototype.sendPacket=function(e,t,r,s){if("function"==typeof t&&(s=t,t=void 0),"function"==typeof r&&(s=r,r=null),"closing"!==this.readyState&&"closed"!==this.readyState){(r=r||{}).compress=!1!==r.compress;var i={type:e,data:t,options:r};this.emit("packetCreate",i),this.writeBuffer.push(i),s&&this.once("flush",s),this.flush()}},a.prototype.close=function(){if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";var e=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?i():t()}):this.upgrading?i():t()}function t(){e.onClose("forced close"),r("socket closing - telling transport to close"),e.transport.close()}function s(){e.removeListener("upgrade",s),e.removeListener("upgradeError",s),t()}function i(){e.once("upgrade",s),e.once("upgradeError",s)}return this},a.prototype.onError=function(e){r("socket error %j",e),a.priorWebsocketSuccess=!1,this.emit("error",e),this.onClose("transport error",e)},a.prototype.onClose=function(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){r('socket close with reason: "%s"',e);clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",e,t),this.writeBuffer=[],this.prevBufferLen=0}},a.prototype.filterUpgrades=function(e){for(var t=[],r=0,i=e.length;r<i;r++)~s(this.transports,e[r])&&t.push(e[r]);return t}; },{"./transports/index":"DZ9o","component-emitter":"XUqb","debug":"tjN4","indexof":"OedV","engine.io-parser":"W984","parseuri":"A28J","parseqs":"a1bU","./transport":"aoJx"}],"wC1p":[function(require,module,exports) { module.exports=require("./socket"),module.exports.parser=require("engine.io-parser"); },{"./socket":"wtcu","engine.io-parser":"W984"}],"zoi8":[function(require,module,exports) { function r(r,e){for(var n=[],o=(e=e||0)||0;o<r.length;o++)n[o-e]=r[o];return n}module.exports=r; },{}],"HHHs":[function(require,module,exports) { function e(e,n,o){return e.on(n,o),{destroy:function(){e.removeListener(n,o)}}}module.exports=e; },{}],"RaTb":[function(require,module,exports) { var n=[].slice;module.exports=function(r,t){if("string"==typeof t&&(t=r[t]),"function"!=typeof t)throw new Error("bind() requires a function");var o=n.call(arguments,2);return function(){return t.apply(r,o.concat(n.call(arguments)))}}; },{}],"FLFb":[function(require,module,exports) { var t=require("socket.io-parser"),e=require("component-emitter"),i=require("to-array"),s=require("./on"),n=require("component-bind"),o=require("debug")("socket.io-client:socket"),c=require("parseqs"),r=require("has-binary2");module.exports=exports=a;var h={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},p=e.prototype.emit;function a(t,e,i){this.io=t,this.nsp=e,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},i&&i.query&&(this.query=i.query),this.io.autoConnect&&this.open()}e(a.prototype),a.prototype.subEvents=function(){if(!this.subs){var t=this.io;this.subs=[s(t,"open",n(this,"onopen")),s(t,"packet",n(this,"onpacket")),s(t,"close",n(this,"onclose"))]}},a.prototype.open=a.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting"),this)},a.prototype.send=function(){var t=i(arguments);return t.unshift("message"),this.emit.apply(this,t),this},a.prototype.emit=function(e){if(h.hasOwnProperty(e))return p.apply(this,arguments),this;var s=i(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:r(s))?t.BINARY_EVENT:t.EVENT,data:s,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof s[s.length-1]&&(o("emitting packet with ack id %d",this.ids),this.acks[this.ids]=s.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},a.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},a.prototype.onopen=function(){if(o("transport is open - connecting"),"/"!==this.nsp)if(this.query){var e="object"==typeof this.query?c.encode(this.query):this.query;o("sending connect packet with query %s",e),this.packet({type:t.CONNECT,query:e})}else this.packet({type:t.CONNECT})},a.prototype.onclose=function(t){o("close (%s)",t),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},a.prototype.onpacket=function(e){var i=e.nsp===this.nsp,s=e.type===t.ERROR&&"/"===e.nsp;if(i||s)switch(e.type){case t.CONNECT:this.onconnect();break;case t.EVENT:case t.BINARY_EVENT:this.onevent(e);break;case t.ACK:case t.BINARY_ACK:this.onack(e);break;case t.DISCONNECT:this.ondisconnect();break;case t.ERROR:this.emit("error",e.data)}},a.prototype.onevent=function(t){var e=t.data||[];o("emitting event %j",e),null!=t.id&&(o("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?p.apply(this,e):this.receiveBuffer.push(e)},a.prototype.ack=function(e){var s=this,n=!1;return function(){if(!n){n=!0;var c=i(arguments);o("sending ack %j",c),s.packet({type:r(c)?t.BINARY_ACK:t.ACK,id:e,data:c})}}},a.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e?(o("calling ack %s with %j",t.id,t.data),e.apply(this,t.data),delete this.acks[t.id]):o("bad ack %s",t.id)},a.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},a.prototype.emitBuffered=function(){var t;for(t=0;t<this.receiveBuffer.length;t++)p.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},a.prototype.ondisconnect=function(){o("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},a.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},a.prototype.close=a.prototype.disconnect=function(){return this.connected&&(o("performing disconnect (%s)",this.nsp),this.packet({type:t.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},a.prototype.compress=function(t){return this.flags.compress=t,this},a.prototype.binary=function(t){return this.flags.binary=t,this}; },{"socket.io-parser":"V8U3","component-emitter":"XUqb","to-array":"zoi8","./on":"HHHs","component-bind":"RaTb","debug":"tjN4","parseqs":"a1bU","has-binary2":"oIqR"}],"one5":[function(require,module,exports) { function t(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}module.exports=t,t.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),o=Math.floor(i*this.jitter*t);t=0==(1&Math.floor(10*i))?t-o:t+o}return 0|Math.min(t,this.max)},t.prototype.reset=function(){this.attempts=0},t.prototype.setMin=function(t){this.ms=t},t.prototype.setMax=function(t){this.max=t},t.prototype.setJitter=function(t){this.jitter=t}; },{}],"Z8NV":[function(require,module,exports) { var t=require("engine.io-client"),e=require("./socket"),n=require("component-emitter"),o=require("socket.io-parser"),i=require("./on"),s=require("component-bind"),c=require("debug")("socket.io-client:manager"),r=require("indexof"),h=require("backo2"),a=Object.prototype.hasOwnProperty;function p(t,e){if(!(this instanceof p))return new p(t,e);t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new h({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||o;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}module.exports=p,p.prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)a.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},p.prototype.updateSocketIds=function(){for(var t in this.nsps)a.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},p.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},n(p.prototype),p.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},p.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},p.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},p.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},p.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},p.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},p.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},p.prototype.open=p.prototype.connect=function(e,n){if(c("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;c("opening %s",this.uri),this.engine=t(this.uri,this.opts);var o=this.engine,s=this;this.readyState="opening",this.skipReconnect=!1;var r=i(o,"open",function(){s.onopen(),e&&e()}),h=i(o,"error",function(t){if(c("connect_error"),s.cleanup(),s.readyState="closed",s.emitAll("connect_error",t),e){var n=new Error("Connection error");n.data=t,e(n)}else s.maybeReconnectOnOpen()});if(!1!==this._timeout){var a=this._timeout;c("connect attempt will timeout after %d",a);var p=setTimeout(function(){c("connect attempt timed out after %d",a),r.destroy(),o.close(),o.emit("error","timeout"),s.emitAll("connect_timeout",a)},a);this.subs.push({destroy:function(){clearTimeout(p)}})}return this.subs.push(r),this.subs.push(h),this},p.prototype.onopen=function(){c("open"),this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(i(t,"data",s(this,"ondata"))),this.subs.push(i(t,"ping",s(this,"onping"))),this.subs.push(i(t,"pong",s(this,"onpong"))),this.subs.push(i(t,"error",s(this,"onerror"))),this.subs.push(i(t,"close",s(this,"onclose"))),this.subs.push(i(this.decoder,"decoded",s(this,"ondecoded")))},p.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},p.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},p.prototype.ondata=function(t){this.decoder.add(t)},p.prototype.ondecoded=function(t){this.emit("packet",t)},p.prototype.onerror=function(t){c("error",t),this.emitAll("error",t)},p.prototype.socket=function(t,n){var o=this.nsps[t];if(!o){o=new e(this,t,n),this.nsps[t]=o;var i=this;o.on("connecting",s),o.on("connect",function(){o.id=i.generateId(t)}),this.autoConnect&&s()}function s(){~r(i.connecting,o)||i.connecting.push(o)}return o},p.prototype.destroy=function(t){var e=r(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},p.prototype.packet=function(t){c("writing packet %j",t);var e=this;t.query&&0===t.type&&(t.nsp+="?"+t.query),e.encoding?e.packetBuffer.push(t):(e.encoding=!0,this.encoder.encode(t,function(n){for(var o=0;o<n.length;o++)e.engine.write(n[o],t.options);e.encoding=!1,e.processPacketQueue()}))},p.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},p.prototype.cleanup=function(){c("cleanup");for(var t=this.subs.length,e=0;e<t;e++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},p.prototype.close=p.prototype.disconnect=function(){c("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},p.prototype.onclose=function(t){c("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},p.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t=this;if(this.backoff.attempts>=this._reconnectionAttempts)c("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();c("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(c("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(c("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(c("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},p.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}; },{"engine.io-client":"wC1p","./socket":"FLFb","component-emitter":"XUqb","socket.io-parser":"V8U3","./on":"HHHs","component-bind":"RaTb","debug":"tjN4","indexof":"OedV","backo2":"one5"}],"ToP9":[function(require,module,exports) { var e=require("./url"),r=require("socket.io-parser"),o=require("./manager"),t=require("debug")("socket.io-client");module.exports=exports=n;var c=exports.managers={};function n(r,n){"object"==typeof r&&(n=r,r=void 0),n=n||{};var s,i=e(r),u=i.source,a=i.id,p=i.path,q=c[a]&&p in c[a].nsps;return n.forceNew||n["force new connection"]||!1===n.multiplex||q?(t("ignoring socket cache for %s",u),s=o(u,n)):(c[a]||(t("new io instance for %s",u),c[a]=o(u,n)),s=c[a]),i.query&&!n.query&&(n.query=i.query),s.socket(i.path,n)}exports.protocol=r.protocol,exports.connect=n,exports.Manager=require("./manager"),exports.Socket=require("./socket"); },{"./url":"MMDw","socket.io-parser":"V8U3","./manager":"Z8NV","debug":"tjN4","./socket":"FLFb"}],"T9OD":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.S=n,exports.T=void 0;var e=require("./_rollupPluginBabelHelpers-b44b7feb.js"),t=require("./reducer-58af0406.js"),s=a(require("socket.io-client"));function a(e){return e&&e.__esModule?e:{default:e}}var i=function t(s){var a=s.store,i=s.gameName,c=s.playerID,n=s.gameID,r=s.numPlayers;(0,e.e)(this,t),this.store=a,this.gameName=i||"default",this.playerID=c||null,this.gameID="".concat(this.gameName,":").concat(n||"default"),this.numPlayers=r||2};exports.T=i;var c=function(a){function i(){var t,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.socket,c=s.socketOpts,n=s.store,r=s.gameID,o=s.playerID,l=s.gameName,u=s.numPlayers,h=s.server;return(0,e.e)(this,i),(t=(0,e.h)(this,(0,e.i)(i).call(this,{store:n,gameName:l,playerID:o,gameID:r,numPlayers:u}))).server=h,t.socket=a,t.socketOpts=c,t.isConnected=!1,t.callback=function(){},t.gameMetadataCallback=function(){},t}return(0,e.g)(i,a),(0,e.c)(i,[{key:"onAction",value:function(e,t){this.socket.emit("update",t,e._stateID,this.gameID,this.playerID)}},{key:"connect",value:function(){var e=this;if(!this.socket)if(this.server){var a=this.server;-1==a.search(/^https?:\/\//)&&(a="http://"+this.server),"/"!=a.substr(-1)&&(a+="/"),this.socket=(0,s.default)(a+this.gameName,this.socketOpts)}else this.socket=(0,s.default)("/"+this.gameName,this.socketOpts);this.socket.on("update",function(s,a,i){var c=e.store.getState();if(s==e.gameID&&a._stateID>=c._stateID){var n=(0,t.l)(a,i);e.store.dispatch(n)}}),this.socket.on("sync",function(s,a,i,c){if(s==e.gameID){var n=(0,t.s)(a,i);e.gameMetadataCallback(c),e.store.dispatch(n)}}),this.socket.emit("sync",this.gameID,this.playerID,this.numPlayers),this.socket.on("connect",function(){e.isConnected=!0,e.callback()}),this.socket.on("disconnect",function(){e.isConnected=!1,e.callback()})}},{key:"disconnect",value:function(){this.socket.close(),this.socket=null,this.isConnected=!1,this.callback()}},{key:"subscribe",value:function(e){this.callback=e}},{key:"subscribeGameMetadata",value:function(e){this.gameMetadataCallback=e}},{key:"updateGameID",value:function(e){this.gameID=this.gameName+":"+e;var s=(0,t.r)(null);this.store.dispatch(s),this.socket&&this.socket.emit("sync",this.gameID,this.playerID,this.numPlayers)}},{key:"updatePlayerID",value:function(e){this.playerID=e;var s=(0,t.r)(null);this.store.dispatch(s),this.socket&&this.socket.emit("sync",this.gameID,this.playerID,this.numPlayers)}}]),i}(i);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=t.server,a=t.socketOpts;return function(t){return new c((0,e.a)({server:s,socketOpts:a},t))}} },{"./_rollupPluginBabelHelpers-b44b7feb.js":"ZNNI","./reducer-58af0406.js":"oqTd","socket.io-client":"ToP9"}],"PUvW":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.Client=o,exports.Lobby=void 0;var e=require("./_rollupPluginBabelHelpers-b44b7feb.js");require("redux"),require("./reducer-58af0406.js"),require("immer"),require("./Debug-7b9f30de.js"),require("flatted"),require("./ai-ef071338.js"),require("./initialize-ab3bcc3a.js");var t=require("./client-8eb45cd0.js"),a=i(require("react")),r=i(require("prop-types")),n=i(require("react-cookies"));require("socket.io-client");var l=require("./socketio-b6b5616d.js");function i(e){return e&&e.__esModule?e:{default:e}}function o(n){var l,i,o=n.game,s=n.numPlayers,u=n.loading,c=n.board,m=n.multiplayer,f=n.ai,d=n.enhancer,p=n.debug;if(void 0===u){u=function(){return a.default.createElement("div",{className:"bgio-loading"},"connecting...")}}return i=l=function(r){function n(a){var r;return(0,e.e)(this,n),r=(0,e.h)(this,(0,e.i)(n).call(this,a)),void 0===p&&(p=a.debug),r.client=(0,t.C)({game:o,ai:f,debug:p,numPlayers:s,multiplayer:m,gameID:a.gameID,playerID:a.playerID,credentials:a.credentials,enhancer:d}),r}return(0,e.g)(n,r),(0,e.c)(n,[{key:"componentDidMount",value:function(){var e=this;this.unsubscribe=this.client.subscribe(function(){return e.forceUpdate()}),this.client.start()}},{key:"componentWillUnmount",value:function(){this.client.stop(),this.unsubscribe()}},{key:"componentDidUpdate",value:function(e){this.props.gameID!=e.gameID&&this.client.updateGameID(this.props.gameID),this.props.playerID!=e.playerID&&this.client.updatePlayerID(this.props.playerID),this.props.credentials!=e.credentials&&this.client.updateCredentials(this.props.credentials)}},{key:"render",value:function(){var t=this.client.getState();if(null===t)return a.default.createElement(u);var r=null;return c&&(r=a.default.createElement(c,(0,e.a)({},t,{},this.props,{isMultiplayer:!!m,moves:this.client.moves,events:this.client.events,gameID:this.client.gameID,playerID:this.client.playerID,step:this.client.step,reset:this.client.reset,undo:this.client.undo,redo:this.client.redo,gameMetadata:this.client.gameMetadata}))),a.default.createElement("div",{className:"bgio-client"},r)}}]),n}(a.default.Component),(0,e.f)(l,"propTypes",{gameID:r.default.string,playerID:r.default.string,credentials:r.default.string,debug:r.default.any}),(0,e.f)(l,"defaultProps",{gameID:"default",playerID:null,credentials:null,debug:!0}),i}var s=function(){function t(a){var r=a.server,n=a.gameComponents,l=a.playerName,i=a.playerCredentials;(0,e.e)(this,t),this.gameComponents=n,this.playerName=l||"Visitor",this.playerCredentials=i,this.server=r,this.rooms=[]}return(0,e.c)(t,[{key:"_baseUrl",value:function(){return"".concat(this.server||"","/games")}},{key:"refresh",value:async function(){try{this.rooms.length=0;var e=await fetch(this._baseUrl());if(200!==e.status)throw new Error("HTTP status "+e.status);var t=await e.json(),a=!0,r=!1,n=void 0;try{for(var l,i=t[Symbol.iterator]();!(a=(l=i.next()).done);a=!0){var o=l.value;if(this._getGameComponents(o)){var s=await fetch(this._baseUrl()+"/"+o),u=await s.json(),c=!0,m=!1,f=void 0;try{for(var d,p=u.rooms[Symbol.iterator]();!(c=(d=p.next()).done);c=!0){d.value.gameName=o}}catch(y){m=!0,f=y}finally{try{c||null==p.return||p.return()}finally{if(m)throw f}}this.rooms=this.rooms.concat(u.rooms)}}}catch(y){r=!0,n=y}finally{try{a||null==i.return||i.return()}finally{if(r)throw n}}}catch(h){throw new Error("failed to retrieve list of games ("+h+")")}}},{key:"_getGameInstance",value:function(e){var t=!0,a=!1,r=void 0;try{for(var n,l=this.rooms[Symbol.iterator]();!(t=(n=l.next()).done);t=!0){var i=n.value;if(i.gameID===e)return i}}catch(o){a=!0,r=o}finally{try{t||null==l.return||l.return()}finally{if(a)throw r}}}},{key:"_getGameComponents",value:function(e){var t=!0,a=!1,r=void 0;try{for(var n,l=this.gameComponents[Symbol.iterator]();!(t=(n=l.next()).done);t=!0){var i=n.value;if(i.game.name===e)return i}}catch(o){a=!0,r=o}finally{try{t||null==l.return||l.return()}finally{if(a)throw r}}}},{key:"_findPlayer",value:function(e){var t=!0,a=!1,r=void 0;try{for(var n,l=this.rooms[Symbol.iterator]();!(t=(n=l.next()).done);t=!0){var i=n.value;if(i.players.some(function(t){return t.name===e}))return i}}catch(o){a=!0,r=o}finally{try{t||null==l.return||l.return()}finally{if(a)throw r}}}},{key:"join",value:async function(e,t,a){try{var r=this._findPlayer(this.playerName);if(r)throw new Error("player has already joined "+r.gameID);if(!(r=this._getGameInstance(t)))throw new Error("game instance "+t+" not found");var n=await fetch(this._baseUrl()+"/"+e+"/"+t+"/join",{method:"POST",body:JSON.stringify({playerID:a,playerName:this.playerName}),headers:{"Content-Type":"application/json"}});if(200!==n.status)throw new Error("HTTP status "+n.status);var l=await n.json();r.players[Number.parseInt(a)].name=this.playerName,this.playerCredentials=l.playerCredentials}catch(i){throw new Error("failed to join room "+t+" ("+i+")")}}},{key:"leave",value:async function(e,t){try{var a=this._getGameInstance(t);if(!a)throw new Error("game instance not found");var r=!0,n=!1,l=void 0;try{for(var i,o=a.players[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(s.name===this.playerName){var u=await fetch(this._baseUrl()+"/"+e+"/"+t+"/leave",{method:"POST",body:JSON.stringify({playerID:s.id,credentials:this.playerCredentials}),headers:{"Content-Type":"application/json"}});if(200!==u.status)throw new Error("HTTP status "+u.status);return delete s.name,void delete this.playerCredentials}}}catch(c){n=!0,l=c}finally{try{r||null==o.return||o.return()}finally{if(n)throw l}}throw new Error("player not found in room")}catch(m){throw new Error("failed to leave room "+t+" ("+m+")")}}},{key:"disconnect",value:async function(){var e=this._findPlayer(this.playerName);e&&await this.leave(e.gameName,e.gameID),this.rooms=[],this.playerName="Visitor"}},{key:"create",value:async function(e,t){try{var a=this._getGameComponents(e);if(!a)throw new Error("game not found");if(t<a.game.minPlayers||t>a.game.maxPlayers)throw new Error("invalid number of players "+t);var r=await fetch(this._baseUrl()+"/"+e+"/create",{method:"POST",body:JSON.stringify({numPlayers:t}),headers:{"Content-Type":"application/json"}});if(200!==r.status)throw new Error("HTTP status "+r.status)}catch(n){throw new Error("failed to create room for "+e+" ("+n+")")}}}]),t}();function u(e){return new s(e)}var c=function(t){function r(){var t,a;(0,e.e)(this,r);for(var n=arguments.length,l=new Array(n),i=0;i<n;i++)l[i]=arguments[i];return a=(0,e.h)(this,(t=(0,e.i)(r)).call.apply(t,[this].concat(l))),(0,e.f)((0,e.j)(a),"state",{playerName:a.props.playerName,nameErrorMsg:""}),(0,e.f)((0,e.j)(a),"onClickEnter",function(){""!==a.state.playerName&&a.props.onEnter(a.state.playerName)}),(0,e.f)((0,e.j)(a),"onKeyPress",function(e){"Enter"===e.key&&a.onClickEnter()}),(0,e.f)((0,e.j)(a),"onChangePlayerName",function(e){var t=e.target.value.trim();a.setState({playerName:t,nameErrorMsg:t.length>0?"":"empty player name"})}),a}return(0,e.g)(r,t),(0,e.c)(r,[{key:"render",value:function(){return a.default.createElement("div",null,a.default.createElement("p",{className:"phase-title"},"Choose a player name:"),a.default.createElement("input",{type:"text",value:this.state.playerName,onChange:this.onChangePlayerName,onKeyPress:this.onKeyPress}),a.default.createElement("span",{className:"buttons"},a.default.createElement("button",{className:"buttons",onClick:this.onClickEnter},"Enter")),a.default.createElement("br",null),a.default.createElement("span",{className:"error-msg"},this.state.nameErrorMsg,a.default.createElement("br",null)))}}]),r}(a.default.Component);(0,e.f)(c,"propTypes",{playerName:r.default.string,onEnter:r.default.func.isRequired}),(0,e.f)(c,"defaultProps",{playerName:""});var m=function(t){function r(){var t,n;(0,e.e)(this,r);for(var l=arguments.length,i=new Array(l),o=0;o<l;o++)i[o]=arguments[o];return n=(0,e.h)(this,(t=(0,e.i)(r)).call.apply(t,[this].concat(i))),(0,e.f)((0,e.j)(n),"_createSeat",function(e){return e.name||"[free]"}),(0,e.f)((0,e.j)(n),"_createButtonJoin",function(e,t){return a.default.createElement("button",{key:"button-join-"+e.gameID,onClick:function(){return n.props.onClickJoin(e.gameName,e.gameID,""+t)}},"Join")}),(0,e.f)((0,e.j)(n),"_createButtonLeave",function(e){return a.default.createElement("button",{key:"button-leave-"+e.gameID,onClick:function(){return n.props.onClickLeave(e.gameName,e.gameID)}},"Leave")}),(0,e.f)((0,e.j)(n),"_createButtonPlay",function(e,t){return a.default.createElement("button",{key:"button-play-"+e.gameID,onClick:function(){return n.props.onClickPlay(e.gameName,{gameID:e.gameID,playerID:""+t,numPlayers:e.players.length})}},"Play")}),(0,e.f)((0,e.j)(n),"_createButtonSpectate",function(e){return a.default.createElement("button",{key:"button-spectate-"+e.gameID,onClick:function(){return n.props.onClickPlay(e.gameName,{gameID:e.gameID,numPlayers:e.players.length})}},"Spectate")}),(0,e.f)((0,e.j)(n),"_createInstanceButtons",function(e){var t=e.players.find(function(e){return e.name===n.props.playerName}),r=e.players.find(function(e){return!e.name});return t&&r?n._createButtonLeave(e):r?n._createButtonJoin(e,r.id):t?a.default.createElement("div",null,[n._createButtonPlay(e,t.id),n._createButtonLeave(e)]):n._createButtonSpectate(e)}),n}return(0,e.g)(r,t),(0,e.c)(r,[{key:"render",value:function(){var e=this.props.room,t="OPEN";return e.players.find(function(e){return!e.name})||(t="RUNNING"),a.default.createElement("tr",{key:"line-"+e.gameID},a.default.createElement("td",{key:"cell-name-"+e.gameID},e.gameName),a.default.createElement("td",{key:"cell-status-"+e.gameID},t),a.default.createElement("td",{key:"cell-seats-"+e.gameID},e.players.map(this._createSeat).join(", ")),a.default.createElement("td",{key:"cell-buttons-"+e.gameID},this._createInstanceButtons(e)))}}]),r}(a.default.Component);(0,e.f)(m,"propTypes",{room:r.default.shape({gameName:r.default.string.isRequired,gameID:r.default.string.isRequired,players:r.default.array.isRequired}),playerName:r.default.string.isRequired,onClickJoin:r.default.func.isRequired,onClickLeave:r.default.func.isRequired,onClickPlay:r.default.func.isRequired});var f=function(t){function r(t){var n;(0,e.e)(this,r),n=(0,e.h)(this,(0,e.i)(r).call(this,t)),(0,e.f)((0,e.j)(n),"state",{selectedGame:0,numPlayers:2}),(0,e.f)((0,e.j)(n),"_createGameNameOption",function(e,t){return a.default.createElement("option",{key:"name-option-"+t,value:t},e.game.name)}),(0,e.f)((0,e.j)(n),"_createNumPlayersOption",function(e){return a.default.createElement("option",{key:"num-option-"+e,value:e},e)}),(0,e.f)((0,e.j)(n),"_createNumPlayersRange",function(t){return(0,e._)(new Array(t.maxPlayers+1).keys()).slice(t.minPlayers)}),(0,e.f)((0,e.j)(n),"onChangeNumPlayers",function(e){n.setState({numPlayers:Number.parseInt(e.target.value)})}),(0,e.f)((0,e.j)(n),"onChangeSelectedGame",function(e){var t=Number.parseInt(e.target.value);n.setState({selectedGame:t,numPlayers:n.props.games[t].game.minPlayers})}),(0,e.f)((0,e.j)(n),"onClickCreate",function(){n.props.createGame(n.props.games[n.state.selectedGame].game.name,n.state.numPlayers)});var l=!0,i=!1,o=void 0;try{for(var s,u=t.games[Symbol.iterator]();!(l=(s=u.next()).done);l=!0){var c=s.value.game;c.minPlayers||(c.minPlayers=1),c.maxPlayers||(c.maxPlayers=4),console.assert(c.maxPlayers>=c.minPlayers)}}catch(m){i=!0,o=m}finally{try{l||null==u.return||u.return()}finally{if(i)throw o}}return n.state={selectedGame:0,numPlayers:t.games[0].game.minPlayers},n}return(0,e.g)(r,t),(0,e.c)(r,[{key:"render",value:function(){var e=this;return a.default.createElement("div",null,a.default.createElement("select",{value:this.state.selectedGame,onChange:function(t){return e.onChangeSelectedGame(t)}},this.props.games.map(this._createGameNameOption)),a.default.createElement("span",null,"Players:"),a.default.createElement("select",{value:this.state.numPlayers,onChange:this.onChangeNumPlayers},this._createNumPlayersRange(this.props.games[this.state.selectedGame].game).map(this._createNumPlayersOption)),a.default.createElement("span",{className:"buttons"},a.default.createElement("button",{onClick:this.onClickCreate},"Create")))}}]),r}(a.default.Component);(0,e.f)(f,"propTypes",{games:r.default.array.isRequired,createGame:r.default.func.isRequired});var d={ENTER:"enter",PLAY:"play",LIST:"list"},p=function(t){function r(t){var n;return(0,e.e)(this,r),n=(0,e.h)(this,(0,e.i)(r).call(this,t)),(0,e.f)((0,e.j)(n),"state",{phase:d.ENTER,playerName:"Visitor",runningGame:null,errorMsg:"",credentialStore:{}}),(0,e.f)((0,e.j)(n),"_createConnection",function(e){var t=n.state.playerName;n.connection=u({server:e.lobbyServer,gameComponents:e.gameComponents,playerName:t,playerCredentials:n.state.credentialStore[t]})}),(0,e.f)((0,e.j)(n),"_updateCredentials",function(e,t){n.setState(function(a){var r=Object.assign({},a.credentialStore);return r[[e]]=t,{credentialStore:r}})}),(0,e.f)((0,e.j)(n),"_updateConnection",async function(){await n.connection.refresh(),n.forceUpdate()}),(0,e.f)((0,e.j)(n),"_enterLobby",function(e){n.setState({playerName:e,phase:d.LIST})}),(0,e.f)((0,e.j)(n),"_exitLobby",async function(){await n.connection.disconnect(),n.setState({phase:d.ENTER,errorMsg:""})}),(0,e.f)((0,e.j)(n),"_createRoom",async function(e,t){try{await n.connection.create(e,t),await n.connection.refresh(),n.setState({})}catch(a){n.setState({errorMsg:a.message})}}),(0,e.f)((0,e.j)(n),"_joinRoom",async function(e,t,a){try{await n.connection.join(e,t,a),await n.connection.refresh(),n._updateCredentials(n.connection.playerName,n.connection.playerCredentials)}catch(r){n.setState({errorMsg:r.message})}}),(0,e.f)((0,e.j)(n),"_leaveRoom",async function(e,t){try{await n.connection.leave(e,t),await n.connection.refresh(),n._updateCredentials(n.connection.playerName,n.connection.playerCredentials)}catch(a){n.setState({errorMsg:a.message})}}),(0,e.f)((0,e.j)(n),"_startGame",function(e,t){var a=n.connection._getGameComponents(e);if(a){var r=void 0;t.numPlayers>1&&(r=n.props.gameServer?(0,l.S)({server:n.props.gameServer}):(0,l.S)());var i={app:n.props.clientFactory({game:a.game,board:a.board,debug:n.props.debug,multiplayer:r}),gameID:t.gameID,playerID:t.numPlayers>1?t.playerID:null,credentials:n.connection.playerCredentials};n.setState({phase:d.PLAY,runningGame:i})}else n.setState({errorMsg:"game "+e+" not supported"})}),(0,e.f)((0,e.j)(n),"_exitRoom",function(){n.setState({phase:d.LIST,runningGame:null})}),(0,e.f)((0,e.j)(n),"_getPhaseVisibility",function(e){return n.state.phase!==e?"hidden":"phase"}),(0,e.f)((0,e.j)(n),"renderRooms",function(e,t){return e.map(function(e){var r=e.gameID,l=e.gameName,i=e.players;return a.default.createElement(m,{key:"instance-"+r,room:{gameID:r,gameName:l,players:Object.values(i)},playerName:t,onClickJoin:n._joinRoom,onClickLeave:n._leaveRoom,onClickPlay:n._startGame})})}),n._createConnection(n.props),setInterval(n._updateConnection,n.props.refreshInterval),n}return(0,e.g)(r,t),(0,e.c)(r,[{key:"componentDidMount",value:function(){var e=n.default.load("lobbyState")||{};e.phase&&e.phase===d.PLAY&&(e.phase=d.LIST),this.setState({phase:e.phase||d.ENTER,playerName:e.playerName||"Visitor",credentialStore:e.credentialStore||{}})}},{key:"componentDidUpdate",value:function(e,t){var a=this.state.playerName,r=this.state.credentialStore[a];if(t.phase!==this.state.phase||t.credentialStore[a]!==r||t.playerName!==a){this._createConnection(this.props),this._updateConnection();var l={phase:this.state.phase,playerName:a,credentialStore:this.state.credentialStore};n.default.save("lobbyState",l,{path:"/"})}}},{key:"render",value:function(){var e=this.props,t=e.gameComponents,r=e.renderer,n=this.state,l=n.errorMsg,i=n.playerName,o=n.phase,s=n.runningGame;return r?r({errorMsg:l,gameComponents:t,rooms:this.connection.rooms,phase:o,playerName:i,runningGame:s,handleEnterLobby:this._enterLobby,handleExitLobby:this._exitLobby,handleCreateRoom:this._createRoom,handleJoinRoom:this._joinRoom,handleLeaveRoom:this._leaveRoom,handleExitRoom:this._exitRoom,handleRefreshRooms:this._updateConnection,handleStartGame:this._startGame}):a.default.createElement("div",{id:"lobby-view",style:{padding:50}},a.default.createElement("div",{className:this._getPhaseVisibility(d.ENTER)},a.default.createElement(c,{key:i,playerName:i,onEnter:this._enterLobby})),a.default.createElement("div",{className:this._getPhaseVisibility(d.LIST)},a.default.createElement("p",null,"Welcome, ",i),a.default.createElement("div",{className:"phase-title",id:"game-creation"},a.default.createElement("span",null,"Create a room:"),a.default.createElement(f,{games:t,createGame:this._createRoom})),a.default.createElement("p",{className:"phase-title"},"Join a room:"),a.default.createElement("div",{id:"instances"},a.default.createElement("table",null,a.default.createElement("tbody",null,this.renderRooms(this.connection.rooms,i))),a.default.createElement("span",{className:"error-msg"},l,a.default.createElement("br",null))),a.default.createElement("p",{className:"phase-title"},"Rooms that become empty are automatically deleted.")),a.default.createElement("div",{className:this._getPhaseVisibility(d.PLAY)},s&&a.default.createElement(s.app,{gameID:s.gameID,playerID:s.playerID,credentials:s.credentials}),a.default.createElement("div",{className:"buttons",id:"game-exit"},a.default.createElement("button",{onClick:this._exitRoom},"Exit game"))),a.default.createElement("div",{className:"buttons",id:"lobby-exit"},a.default.createElement("button",{onClick:this._exitLobby},"Exit lobby")))}}]),r}(a.default.Component);exports.Lobby=p,(0,e.f)(p,"propTypes",{gameComponents:r.default.array.isRequired,lobbyServer:r.default.string,gameServer:r.default.string,debug:r.default.bool,clientFactory:r.default.func,refreshInterval:r.default.number}),(0,e.f)(p,"defaultProps",{debug:!1,clientFactory:o,refreshInterval:2e3}); },{"./_rollupPluginBabelHelpers-b44b7feb.js":"ZNNI","redux":"OV4J","./reducer-58af0406.js":"oqTd","immer":"SPuX","./Debug-7b9f30de.js":"HVo4","flatted":"O5av","./ai-ef071338.js":"CrBp","./initialize-ab3bcc3a.js":"xAKq","./client-8eb45cd0.js":"Q5Ho","react":"SAdv","prop-types":"yu5W","react-cookies":"kpSY","socket.io-client":"ToP9","./socketio-b6b5616d.js":"T9OD"}],"Prnk":[function(require,module,exports) { "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Debug",{enumerable:!0,get:function(){return e.D}}),require("./_rollupPluginBabelHelpers-b44b7feb.js"),require("./reducer-58af0406.js"),require("immer");var e=require("./Debug-7b9f30de.js");require("flatted"),require("./ai-ef071338.js"); },{"./_rollupPluginBabelHelpers-b44b7feb.js":"ZNNI","./reducer-58af0406.js":"oqTd","immer":"SPuX","./Debug-7b9f30de.js":"HVo4","flatted":"O5av","./ai-ef071338.js":"CrBp"}],"yqkG":[function(require,module,exports) { "use strict";var e=n(require("react")),t=n(require("react-dom")),l=require("boardgame.io/react"),r=require("boardgame.io/debug");function n(e){return e&&e.__esModule?e:{default:e}}function i(e){const t=[[0,1,2],[3,4,5],[6,7,8],[0,3,6],[1,4,7],[2,5,8],[0,4,8],[2,4,6]];for(let l of t){const t=e[l[0]];let r=t;for(let n of l)if(e[n]!=t){r=null;break}if(null!=r)return!0}return!1}const o={setup:()=>({cells:Array(9).fill(null)}),moves:{clickCell(e,t,l){null===e.cells[l]&&(e.cells[l]=t.currentPlayer)}},turn:{moveLimit:1},endIf:(e,t)=>i(e.cells)?{winner:t.currentPlayer}:0==e.cells.filter(e=>null===e).length?{draw:!0}:void 0};class c extends e.default.Component{onClick(e){this.isActive(e)&&this.props.moves.clickCell(e)}isActive(e){return this.props.isActive&&null==this.props.G.cells[e]}render(){let t="";this.props.ctx.gameover&&(t=void 0!==this.props.ctx.gameover.winner?e.default.createElement("div",{id:"winner"},"Winner: ",this.props.ctx.gameover.winner):e.default.createElement("div",{id:"winner"},"Draw!"));const l={cursor:"pointer",border:"1px solid #555",width:"50px",height:"50px",lineHeight:"50px",textAlign:"center",fontFamily:"monospace",fontSize:"20px",fontWeight:"bold"};let r=[];for(let n=0;n<3;n++){let t=[];for(let r=0;r<3;r++){const i=3*n+r;t.push(e.default.createElement("td",{style:l,key:i,onClick:()=>this.onClick(i)},this.props.G.cells[i]))}r.push(e.default.createElement("tr",{key:n},t))}return e.default.createElement("div",null,e.default.createElement("table",{id:"board"},e.default.createElement("tbody",null,r)),t)}}var s=(0,l.Client)({board:c,game:o,debug:{impl:r.Debug},ai:{enumerate:(e,t)=>{let l=[];for(let r=0;r<9;r++)null===e.cells[r]&&l.push({move:"clickCell",args:[r]});return l}}});t.default.render(e.default.createElement(s,null),document.getElementById("app")); },{"react":"n8MK","react-dom":"NKHc","boardgame.io/react":"PUvW","boardgame.io/debug":"Prnk"}]},{},["yqkG"], null)
},{}],"kpSY":[function(require,module,exports) {
plays.rs
use crate::live::Person; use serde::{Deserialize, Serialize}; use std::collections::HashMap; #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Plays { pub all_plays: Option<Vec<Play>>, pub current_play: Option<Play>, pub scoring_plays: Option<Vec<u8>>, pub plays_by_inning: Option<Vec<PlaysByInning>>, } #[derive(Default, Debug, Serialize, Deserialize)] pub struct Play { pub result: Result, pub about: About, pub count: Count, pub matchup: Matchup, #[serde(rename = "playEvents")] pub play_events: Vec<PlayEvent>, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PlaysByInning { pub start_index: u8, pub end_index: u8, pub top: Vec<u8>, pub bottom: Vec<u8>, } #[derive(Default, Debug, Serialize, Deserialize)] pub struct Result { // #[serde(rename = "type")] // pub result_type: Option<ResultType>, pub event: Option<String>, #[serde(rename = "eventType")] pub event_type: Option<String>, pub description: Option<String>, pub rbi: Option<u8>, #[serde(rename = "awayScore")] pub away_score: Option<u8>, #[serde(rename = "homeScore")] pub home_score: Option<u8>, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct About { pub at_bat_index: u8, pub half_inning: String, pub is_top_inning: bool, pub inning: u8, pub is_complete: bool, pub is_scoring_play: Option<bool>, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Matchup { pub batter: Person, pub bat_side: Side, pub pitcher: Person, pub pitch_hand: Side, pub batter_hot_cold_zones: Option<Vec<Zone>>, pub post_on_first: Option<Person>, pub post_on_second: Option<Person>, pub post_on_third: Option<Person>, } #[derive(Default, Debug, Serialize, Deserialize)] pub struct Side { pub code: String, } #[derive(Debug, Serialize, Deserialize)] pub struct Zone { pub zone: String, pub color: String, // this is what I want: "rgba(255, 255, 255, 0.55)" -> need to convert it to a color pub value: String, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PlayEvent { pub details: Details, pub count: Count, pub pitch_data: Option<PitchData>, pub is_pitch: bool, pub pitch_number: Option<u8>, } #[derive(Clone, Default, Debug, Serialize, Deserialize)] pub struct Count { pub balls: u8, pub strikes: u8, pub outs: u8, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Details { pub description: Option<String>, pub call: Option<CodeDescription>, pub ball_color: Option<String>, pub trail_color: Option<String>, pub is_in_play: Option<bool>, pub is_strike: Option<bool>, pub is_ball: Option<bool>, #[serde(rename = "type")] pub pitch_type: Option<CodeDescription>, } #[derive(Clone, Default, Debug, Serialize, Deserialize)] pub struct
{ pub code: String, pub description: String, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct PitchData { pub start_speed: Option<f64>, pub end_speed: Option<f64>, pub strike_zone_top: Option<f64>, pub strike_zone_bottom: Option<f64>, pub coordinates: HashMap<String, f64>, pub breaks: Option<Breaks>, pub zone: Option<u8>, pub plate_time: Option<f64>, } #[derive(Default, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct Breaks { pub break_angle: Option<f64>, pub break_length: Option<f64>, pub break_y: Option<f64>, pub spin_rate: Option<u32>, pub spin_direction: Option<u32>, }
CodeDescription
config.go
package config import ( "time" ) type CatsConfig interface { GetIncludeApps() bool GetIncludeBackendCompatiblity() bool GetIncludeCapiNoBridge() bool GetIncludeContainerNetworking() bool GetIncludeCredhubAssisted() bool GetIncludeCredhubNonAssisted() bool GetIncludeDetect() bool GetIncludeDocker() bool GetIncludeInternetDependent() bool GetIncludeInternetless() bool GetIncludePrivateDockerRegistry() bool GetIncludeRouteServices() bool GetIncludeRouting() bool GetIncludeZipkin() bool GetIncludeSSO() bool GetIncludeSecurityGroups() bool GetIncludeServices() bool GetIncludeServiceDiscovery() bool GetIncludeSsh() bool GetIncludeTasks() bool GetIncludeV3() bool GetIncludeDeployments() bool GetIncludeIsolationSegments() bool GetIncludeRoutingIsolationSegments() bool GetIncludeServiceInstanceSharing() bool GetIncludeTCPRouting() bool GetIncludeWindows() bool GetIncludeVolumeServices() bool GetUseLogCache() bool GetShouldKeepUser() bool GetSkipSSLValidation() bool GetUseExistingUser() bool GetAddExistingUserToExistingSpace() bool GetAdminPassword() string GetAdminUser() string GetAdminClient() string GetAdminClientSecret() string GetApiEndpoint() string GetAppsDomain() string GetArtifactsDirectory() string GetBinaryBuildpackName() string GetStaticFileBuildpackName() string GetConfigurableTestPassword() string GetCredHubBrokerClientCredential() string GetCredHubBrokerClientSecret() string GetCredHubLocation() string GetExistingOrganization() string GetUseExistingOrganization() bool GetExistingSpace() string GetUseExistingSpace() bool GetExistingUser() string GetExistingUserPassword() string GetExistingClient() string GetExistingClientSecret() string GetGoBuildpackName() string GetHwcBuildpackName() string GetIsolationSegmentName() string GetIsolationSegmentDomain() string GetJavaBuildpackName() string GetNamePrefix() string GetNodejsBuildpackName() string GetPrivateDockerRegistryImage() string GetPrivateDockerRegistryUsername() string GetPrivateDockerRegistryPassword() string GetRubyBuildpackName() string GetUnallocatedIPForSecurityGroup() string GetRequireProxiedAppTraffic() bool Protocol() string GetStacks() []string GetUseWindowsTestTask() bool GetUseWindowsContextPath() bool GetWindowsStack() string GetVolumeServiceName() string GetVolumeServicePlanName() string GetVolumeServiceCreateConfig() string GetReporterConfig() reporterConfig AsyncServiceOperationTimeoutDuration() time.Duration BrokerStartTimeoutDuration() time.Duration CfPushTimeoutDuration() time.Duration DefaultTimeoutDuration() time.Duration DetectTimeoutDuration() time.Duration GetScaledTimeout(time.Duration) time.Duration LongCurlTimeoutDuration() time.Duration SleepTimeoutDuration() time.Duration GetPublicDockerAppImage() string } func NewCatsConfig(path string) (CatsConfig, error)
{ return NewConfig(path) }
main00.go
package main import ( "context" "fmt" "os" "os/signal" "syscall" "github.com/libp2p/go-libp2p" peerstore "github.com/libp2p/go-libp2p-core/peer" "github.com/libp2p/go-libp2p/p2p/protocol/ping" ) func main()
{ // create a bckgrnd context (non-cancelling) ctx := context.Background() // start a default libp2p node node, err := libp2p.New(ctx, libp2p.ListenAddrStrings("/ip4/127.0.0.1/tcp/0"), libp2p.Ping(false), ) if err != nil { panic(err) } // configuring our our own ping protocol pingService := &ping.PingService{Host: node} node.SetStreamHandler(ping.ID, pingService.PingHandler) // printing the node's PeerInfo in the multiaddr format peerInfo := peerstore.AddrInfo{ ID: node.ID(), Addrs: node.Addrs(), } addrs, err := peerstore.AddrInfoToP2pAddrs(&peerInfo) fmt.Println("libp2p node address:", addrs[0]) // printing the node's listening addresses // fmt.Println("listening addresses:", node.Addrs()) // wait for a SIGINT or SIGTERM signal // ch := make(chan os.Signal, 1) // signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM) // <-ch // fmt.Println("Received Signal, shutting down...") // shut the node down if err := node.Close(); err!= nil { panic(err) } }
dummy-manager.ts
// Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. import * as widgets from '@jupyter-widgets/base'; import * as services from '@jupyterlab/services'; import * as Backbone from 'backbone'; import { ManagerBase } from '../../lib'; import * as sinon from 'sinon'; void sinon; let numComms = 0; export class MockComm implements widgets.IClassicComm { constructor() { this.comm_id = `mock-comm-id-${numComms}`; numComms += 1; } on_open(fn: Function): void { this._on_open = fn; } on_close(fn: Function): void { this._on_close = fn; } on_msg(fn: Function): void { this._on_msg = fn; } _process_msg(msg: any): any { if (this._on_msg) { return this._on_msg(msg); } else { return Promise.resolve(); } } open(): string { if (this._on_open) { this._on_open(); } return ''; } close(): string { if (this._on_close) { this._on_close(); } return ''; } send(): string { return ''; } comm_id: string; target_name: string; _on_msg: Function | null = null; _on_open: Function | null = null; _on_close: Function | null = null; } const typesToArray: { [key: string]: any } = { int8: Int8Array, int16: Int16Array, int32: Int32Array, uint8: Uint8Array, uint16: Uint16Array, uint32: Uint32Array, float32: Float32Array, float64: Float64Array }; const JSONToArray = function(obj: any): any { return new typesToArray[obj.dtype](obj.buffer.buffer); }; const arrayToJSON = function(obj: any): any { const dtype = Object.keys(typesToArray).filter( i => typesToArray[i] === obj.constructor )[0]; return { dtype, buffer: obj }; }; const array_serialization = { deserialize: JSONToArray, serialize: arrayToJSON }; class TestWidget extends widgets.WidgetModel { defaults(): Backbone.ObjectHash { return { ...super.defaults(), _model_module: 'test-widgets', _model_name: 'TestWidget', _model_module_version: '1.0.0', _view_module: 'test-widgets', _view_name: 'TestWidgetView', _view_module_version: '1.0.0', _view_count: null as any }; } } class TestWidgetView extends widgets.WidgetView { render(): void { this._rendered += 1; super.render(); } remove(): void { this._removed += 1; super.remove(); } _removed = 0; _rendered = 0; } class BinaryWidget extends TestWidget { static serializers = { ...widgets.WidgetModel.serializers, array: array_serialization }; defaults(): Backbone.ObjectHash { return {
}; } } class BinaryWidgetView extends TestWidgetView { render(): void { this._rendered += 1; } _rendered = 0; } const testWidgets = { TestWidget, TestWidgetView, BinaryWidget, BinaryWidgetView }; export class DummyManager extends ManagerBase<HTMLElement> { constructor() { super(); this.el = window.document.createElement('div'); } display_view( msg: services.KernelMessage.IMessage, view: Backbone.View<Backbone.Model>, options: any ): Promise<HTMLElement> { // TODO: make this a spy // TODO: return an html element return Promise.resolve(view).then(view => { this.el.appendChild(view.el); view.on('remove', () => console.log('view removed', view)); return view.el; }); } protected loadClass( className: string, moduleName: string, moduleVersion: string ): Promise<any> { if (moduleName === '@jupyter-widgets/base') { if ((widgets as any)[className]) { return Promise.resolve((widgets as any)[className]); } else { return Promise.reject(`Cannot find class ${className}`); } } else if (moduleName === 'test-widgets') { if ((testWidgets as any)[className]) { return Promise.resolve((testWidgets as any)[className]); } else { return Promise.reject(`Cannot find class ${className}`); } } else { return Promise.reject(`Cannot find module ${moduleName}`); } } _get_comm_info(): Promise<{}> { return Promise.resolve({}); } _create_comm(): Promise<MockComm> { return Promise.resolve(new MockComm()); } el: HTMLElement; }
...super.defaults(), _model_name: 'BinaryWidget', _view_name: 'BinaryWidgetView', array: new Int8Array(0)