@kvass/widgets 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.html +18 -15
- package/package.json +4 -3
- package/src/flatfinder/components/Flatfinder.ce.vue +9 -6
- package/src/map/components/Map.ce.vue +23 -6
- package/dist/Flatfinder-xVhUSkxC.js +0 -15
- package/dist/_plugin-vue_export-helper.js +0 -17
- package/dist/contact.js +0 -25
- package/dist/flatfinder.js +0 -180
- package/dist/img-comparison-slider.js +0 -2
- package/dist/index.js +0 -1
- package/dist/map.js +0 -2029
- package/dist/project-portal.js +0 -6
- package/dist/vimeo.js +0 -2
- package/dist/youtube.js +0 -2
package/dist/flatfinder.js
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import{E as Li,G as ls,q as Dt,o as R,e as Ct,b as lt,c as K,y as hi,H as ua,a as tt,t as _t,j as Ht,v as dt,g as xt,w as Xt,C as le,m as ee,F as oe,k as vi,r as W,i as Ae,I as Ut,z as Bd,d as ut,A as zd,f as _l,J as Xi,K as Ji,L as ve,n as ti,B as Hv,M as jd,s as he,N as da,D as Vd,O as ao,P as $v,Q as Zd,R as qv,S as Ne,U as Wv,V as bl,W as kl,X as _e,h as Ci,Y as Ke,Z as Gv,$ as Yv,a0 as Ud,a1 as au,a2 as yl,a3 as Kv,a4 as Xv,_ as Jv,p as Qv}from"./_plugin-vue_export-helper.js";const t_="modulepreload",e_=function(t){return"/"+t},su={},Hd=function(e,i,r){if(!i||i.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(i.map(s=>{if(s=e_(s),s in su)return;su[s]=!0;const c=s.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(!!r)for(let m=a.length-1;m>=0;m--){const g=a[m];if(g.href===s&&(!c||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${d}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":t_,c||(p.as="script",p.crossOrigin=""),p.href=s,document.head.appendChild(p),c)return new Promise((m,g)=>{p.addEventListener("load",m),p.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>e())};function $d(t,e){for(var i=0;i<e.length;i++){const r=e[i];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in t)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const xl=JSON,i_=t=>t.toUpperCase(),n_=t=>{const e={};return t.forEach((i,r)=>{e[r]=i}),e},r_=(t,e,i)=>t.document?t:{document:t,variables:e,requestHeaders:i,signal:void 0},o_=(t,e,i)=>t.query?t:{query:t,variables:e,requestHeaders:i,signal:void 0},a_=(t,e)=>t.documents?t:{documents:t,requestHeaders:e,signal:void 0};function ko(t,e){if(!t)throw new Error(e)}function s_(t){return typeof t=="object"&&t!==null}function l_(t,e){if(!t)throw new Error(e??"Unexpected invariant triggered.")}const c_=/\r\n|[\n\r]/g;function Fs(t,e){let i=0,r=1;for(const a of t.body.matchAll(c_)){if(typeof a.index=="number"||l_(!1),a.index>=e)break;i=a.index+a[0].length,r+=1}return{line:r,column:e+1-i}}function u_(t){return qd(t.source,Fs(t.source,t.start))}function qd(t,e){const i=t.locationOffset.column-1,r="".padStart(i)+t.body,a=e.line-1,s=t.locationOffset.line-1,c=e.line+s,d=e.line===1?i:0,h=e.column+d,p=`${t.name}:${c}:${h}
|
|
2
|
-
`,m=r.split(/\r\n|[\n\r]/g),g=m[a];if(g.length>120){const v=Math.floor(h/80),_=h%80,y=[];for(let k=0;k<g.length;k+=80)y.push(g.slice(k,k+80));return p+lu([[`${c} |`,y[0]],...y.slice(1,v+1).map(k=>["|",k]),["|","^".padStart(_)],["|",y[v+1]]])}return p+lu([[`${c-1} |`,m[a-1]],[`${c} |`,g],["|","^".padStart(h)],[`${c+1} |`,m[a+1]]])}function lu(t){const e=t.filter(([r,a])=>a!==void 0),i=Math.max(...e.map(([r])=>r.length));return e.map(([r,a])=>r.padStart(i)+(a?" "+a:"")).join(`
|
|
3
|
-
`)}function d_(t){const e=t[0];return e==null||"kind"in e||"length"in e?{nodes:e,source:t[1],positions:t[2],path:t[3],originalError:t[4],extensions:t[5]}:e}class wl extends Error{constructor(e,...i){var r,a,s;const{nodes:c,source:d,positions:h,path:p,originalError:m,extensions:g}=d_(i);super(e),this.name="GraphQLError",this.path=p??void 0,this.originalError=m??void 0,this.nodes=cu(Array.isArray(c)?c:c?[c]:void 0);const v=cu((r=this.nodes)===null||r===void 0?void 0:r.map(y=>y.loc).filter(y=>y!=null));this.source=d??(v==null||(a=v[0])===null||a===void 0?void 0:a.source),this.positions=h??v?.map(y=>y.start),this.locations=h&&d?h.map(y=>Fs(d,y)):v?.map(y=>Fs(y.source,y.start));const _=s_(m?.extensions)?m?.extensions:void 0;this.extensions=(s=g??_)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),m!=null&&m.stack?Object.defineProperty(this,"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,wl):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const i of this.nodes)i.loc&&(e+=`
|
|
4
|
-
|
|
5
|
-
`+u_(i.loc));else if(this.source&&this.locations)for(const i of this.locations)e+=`
|
|
6
|
-
|
|
7
|
-
`+qd(this.source,i);return e}toJSON(){const e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function cu(t){return t===void 0||t.length===0?void 0:t}function ie(t,e,i){return new wl(`Syntax Error: ${i}`,{source:t,positions:[e]})}class h_{constructor(e,i,r){this.start=e.start,this.end=i.end,this.startToken=e,this.endToken=i,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Wd{constructor(e,i,r,a,s,c){this.kind=e,this.start=i,this.end=r,this.line=a,this.column=s,this.value=c,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Gd={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},p_=new Set(Object.keys(Gd));function uu(t){const e=t?.kind;return typeof e=="string"&&p_.has(e)}var Pn;(function(t){t.QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription"})(Pn||(Pn={}));var Rs;(function(t){t.QUERY="QUERY",t.MUTATION="MUTATION",t.SUBSCRIPTION="SUBSCRIPTION",t.FIELD="FIELD",t.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",t.FRAGMENT_SPREAD="FRAGMENT_SPREAD",t.INLINE_FRAGMENT="INLINE_FRAGMENT",t.VARIABLE_DEFINITION="VARIABLE_DEFINITION",t.SCHEMA="SCHEMA",t.SCALAR="SCALAR",t.OBJECT="OBJECT",t.FIELD_DEFINITION="FIELD_DEFINITION",t.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",t.INTERFACE="INTERFACE",t.UNION="UNION",t.ENUM="ENUM",t.ENUM_VALUE="ENUM_VALUE",t.INPUT_OBJECT="INPUT_OBJECT",t.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(Rs||(Rs={}));var ot;(function(t){t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.VARIABLE="Variable",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition",t.SCHEMA_EXTENSION="SchemaExtension",t.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",t.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",t.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",t.UNION_TYPE_EXTENSION="UnionTypeExtension",t.ENUM_TYPE_EXTENSION="EnumTypeExtension",t.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(ot||(ot={}));function Bs(t){return t===9||t===32}function Sr(t){return t>=48&&t<=57}function Yd(t){return t>=97&&t<=122||t>=65&&t<=90}function Kd(t){return Yd(t)||t===95}function f_(t){return Yd(t)||Sr(t)||t===95}function m_(t){var e;let i=Number.MAX_SAFE_INTEGER,r=null,a=-1;for(let c=0;c<t.length;++c){var s;const d=t[c],h=g_(d);h!==d.length&&(r=(s=r)!==null&&s!==void 0?s:c,a=c,c!==0&&h<i&&(i=h))}return t.map((c,d)=>d===0?c:c.slice(i)).slice((e=r)!==null&&e!==void 0?e:0,a+1)}function g_(t){let e=0;for(;e<t.length&&Bs(t.charCodeAt(e));)++e;return e}function v_(t,e){const i=t.replace(/"""/g,'\\"""'),r=i.split(/\r\n|[\n\r]/g),a=r.length===1,s=r.length>1&&r.slice(1).every(_=>_.length===0||Bs(_.charCodeAt(0))),c=i.endsWith('\\"""'),d=t.endsWith('"')&&!c,h=t.endsWith("\\"),p=d||h,m=!(e!=null&&e.minimize)&&(!a||t.length>70||p||s||c);let g="";const v=a&&Bs(t.charCodeAt(0));return(m&&!v||s)&&(g+=`
|
|
8
|
-
`),g+=i,(m||p)&&(g+=`
|
|
9
|
-
`),'"""'+g+'"""'}var D;(function(t){t.SOF="<SOF>",t.EOF="<EOF>",t.BANG="!",t.DOLLAR="$",t.AMP="&",t.PAREN_L="(",t.PAREN_R=")",t.SPREAD="...",t.COLON=":",t.EQUALS="=",t.AT="@",t.BRACKET_L="[",t.BRACKET_R="]",t.BRACE_L="{",t.PIPE="|",t.BRACE_R="}",t.NAME="Name",t.INT="Int",t.FLOAT="Float",t.STRING="String",t.BLOCK_STRING="BlockString",t.COMMENT="Comment"})(D||(D={}));class __{constructor(e){const i=new Wd(D.SOF,0,0,0,0);this.source=e,this.lastToken=i,this.token=i,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==D.EOF)do if(e.next)e=e.next;else{const i=k_(this,e.end);e.next=i,i.prev=e,e=i}while(e.kind===D.COMMENT);return e}}function b_(t){return t===D.BANG||t===D.DOLLAR||t===D.AMP||t===D.PAREN_L||t===D.PAREN_R||t===D.SPREAD||t===D.COLON||t===D.EQUALS||t===D.AT||t===D.BRACKET_L||t===D.BRACKET_R||t===D.BRACE_L||t===D.PIPE||t===D.BRACE_R}function $n(t){return t>=0&&t<=55295||t>=57344&&t<=1114111}function ha(t,e){return Xd(t.charCodeAt(e))&&Jd(t.charCodeAt(e+1))}function Xd(t){return t>=55296&&t<=56319}function Jd(t){return t>=56320&&t<=57343}function nn(t,e){const i=t.source.body.codePointAt(e);if(i===void 0)return D.EOF;if(i>=32&&i<=126){const r=String.fromCodePoint(i);return r==='"'?`'"'`:`"${r}"`}return"U+"+i.toString(16).toUpperCase().padStart(4,"0")}function Kt(t,e,i,r,a){const s=t.line,c=1+i-t.lineStart;return new Wd(e,i,r,s,c,a)}function k_(t,e){const i=t.source.body,r=i.length;let a=e;for(;a<r;){const s=i.charCodeAt(a);switch(s){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a,++t.line,t.lineStart=a;continue;case 13:i.charCodeAt(a+1)===10?a+=2:++a,++t.line,t.lineStart=a;continue;case 35:return y_(t,a);case 33:return Kt(t,D.BANG,a,a+1);case 36:return Kt(t,D.DOLLAR,a,a+1);case 38:return Kt(t,D.AMP,a,a+1);case 40:return Kt(t,D.PAREN_L,a,a+1);case 41:return Kt(t,D.PAREN_R,a,a+1);case 46:if(i.charCodeAt(a+1)===46&&i.charCodeAt(a+2)===46)return Kt(t,D.SPREAD,a,a+3);break;case 58:return Kt(t,D.COLON,a,a+1);case 61:return Kt(t,D.EQUALS,a,a+1);case 64:return Kt(t,D.AT,a,a+1);case 91:return Kt(t,D.BRACKET_L,a,a+1);case 93:return Kt(t,D.BRACKET_R,a,a+1);case 123:return Kt(t,D.BRACE_L,a,a+1);case 124:return Kt(t,D.PIPE,a,a+1);case 125:return Kt(t,D.BRACE_R,a,a+1);case 34:return i.charCodeAt(a+1)===34&&i.charCodeAt(a+2)===34?A_(t,a):w_(t,a)}if(Sr(s)||s===45)return x_(t,a,s);if(Kd(s))return C_(t,a);throw ie(t.source,a,s===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:$n(s)||ha(i,a)?`Unexpected character: ${nn(t,a)}.`:`Invalid character: ${nn(t,a)}.`)}return Kt(t,D.EOF,r,r)}function y_(t,e){const i=t.source.body,r=i.length;let a=e+1;for(;a<r;){const s=i.charCodeAt(a);if(s===10||s===13)break;if($n(s))++a;else if(ha(i,a))a+=2;else break}return Kt(t,D.COMMENT,e,a,i.slice(e+1,a))}function x_(t,e,i){const r=t.source.body;let a=e,s=i,c=!1;if(s===45&&(s=r.charCodeAt(++a)),s===48){if(s=r.charCodeAt(++a),Sr(s))throw ie(t.source,a,`Invalid number, unexpected digit after 0: ${nn(t,a)}.`)}else a=cs(t,a,s),s=r.charCodeAt(a);if(s===46&&(c=!0,s=r.charCodeAt(++a),a=cs(t,a,s),s=r.charCodeAt(a)),(s===69||s===101)&&(c=!0,s=r.charCodeAt(++a),(s===43||s===45)&&(s=r.charCodeAt(++a)),a=cs(t,a,s),s=r.charCodeAt(a)),s===46||Kd(s))throw ie(t.source,a,`Invalid number, expected digit but got: ${nn(t,a)}.`);return Kt(t,c?D.FLOAT:D.INT,e,a,r.slice(e,a))}function cs(t,e,i){if(!Sr(i))throw ie(t.source,e,`Invalid number, expected digit but got: ${nn(t,e)}.`);const r=t.source.body;let a=e+1;for(;Sr(r.charCodeAt(a));)++a;return a}function w_(t,e){const i=t.source.body,r=i.length;let a=e+1,s=a,c="";for(;a<r;){const d=i.charCodeAt(a);if(d===34)return c+=i.slice(s,a),Kt(t,D.STRING,e,a+1,c);if(d===92){c+=i.slice(s,a);const h=i.charCodeAt(a+1)===117?i.charCodeAt(a+2)===123?E_(t,a):T_(t,a):S_(t,a);c+=h.value,a+=h.size,s=a;continue}if(d===10||d===13)break;if($n(d))++a;else if(ha(i,a))a+=2;else throw ie(t.source,a,`Invalid character within String: ${nn(t,a)}.`)}throw ie(t.source,a,"Unterminated string.")}function E_(t,e){const i=t.source.body;let r=0,a=3;for(;a<12;){const s=i.charCodeAt(e+a++);if(s===125){if(a<5||!$n(r))break;return{value:String.fromCodePoint(r),size:a}}if(r=r<<4|ur(s),r<0)break}throw ie(t.source,e,`Invalid Unicode escape sequence: "${i.slice(e,e+a)}".`)}function T_(t,e){const i=t.source.body,r=du(i,e+2);if($n(r))return{value:String.fromCodePoint(r),size:6};if(Xd(r)&&i.charCodeAt(e+6)===92&&i.charCodeAt(e+7)===117){const a=du(i,e+8);if(Jd(a))return{value:String.fromCodePoint(r,a),size:12}}throw ie(t.source,e,`Invalid Unicode escape sequence: "${i.slice(e,e+6)}".`)}function du(t,e){return ur(t.charCodeAt(e))<<12|ur(t.charCodeAt(e+1))<<8|ur(t.charCodeAt(e+2))<<4|ur(t.charCodeAt(e+3))}function ur(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}function S_(t,e){const i=t.source.body;switch(i.charCodeAt(e+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
10
|
-
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw ie(t.source,e,`Invalid character escape sequence: "${i.slice(e,e+2)}".`)}function A_(t,e){const i=t.source.body,r=i.length;let a=t.lineStart,s=e+3,c=s,d="";const h=[];for(;s<r;){const p=i.charCodeAt(s);if(p===34&&i.charCodeAt(s+1)===34&&i.charCodeAt(s+2)===34){d+=i.slice(c,s),h.push(d);const m=Kt(t,D.BLOCK_STRING,e,s+3,m_(h).join(`
|
|
11
|
-
`));return t.line+=h.length-1,t.lineStart=a,m}if(p===92&&i.charCodeAt(s+1)===34&&i.charCodeAt(s+2)===34&&i.charCodeAt(s+3)===34){d+=i.slice(c,s),c=s+1,s+=4;continue}if(p===10||p===13){d+=i.slice(c,s),h.push(d),p===13&&i.charCodeAt(s+1)===10?s+=2:++s,d="",c=s,a=s;continue}if($n(p))++s;else if(ha(i,s))s+=2;else throw ie(t.source,s,`Invalid character within String: ${nn(t,s)}.`)}throw ie(t.source,s,"Unterminated string.")}function C_(t,e){const i=t.source.body,r=i.length;let a=e+1;for(;a<r;){const s=i.charCodeAt(a);if(f_(s))++a;else break}return Kt(t,D.NAME,e,a,i.slice(e,a))}const I_=10,Qd=2;function El(t){return pa(t,[])}function pa(t,e){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return P_(t,e);default:return String(t)}}function P_(t,e){if(t===null)return"null";if(e.includes(t))return"[Circular]";const i=[...e,t];if(O_(t)){const r=t.toJSON();if(r!==t)return typeof r=="string"?r:pa(r,i)}else if(Array.isArray(t))return D_(t,i);return L_(t,i)}function O_(t){return typeof t.toJSON=="function"}function L_(t,e){const i=Object.entries(t);return i.length===0?"{}":e.length>Qd?"["+M_(t)+"]":"{ "+i.map(([r,a])=>r+": "+pa(a,e)).join(", ")+" }"}function D_(t,e){if(t.length===0)return"[]";if(e.length>Qd)return"[Array]";const i=Math.min(I_,t.length),r=t.length-i,a=[];for(let s=0;s<i;++s)a.push(pa(t[s],e));return r===1?a.push("... 1 more item"):r>1&&a.push(`... ${r} more items`),"["+a.join(", ")+"]"}function M_(t){const e=Object.prototype.toString.call(t).replace(/^\[object /,"").replace(/]$/,"");if(e==="Object"&&typeof t.constructor=="function"){const i=t.constructor.name;if(typeof i=="string"&&i!=="")return i}return e}const N_=globalThis.process?function(t,e){return t instanceof e}:function(t,e){if(t instanceof e)return!0;if(typeof t=="object"&&t!==null){var i;const r=e.prototype[Symbol.toStringTag],a=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===a){const s=El(t);throw new Error(`Cannot use ${r} "${s}" from another module or realm.
|
|
12
|
-
|
|
13
|
-
Ensure that there is only one instance of "graphql" in the node_modules
|
|
14
|
-
directory. If different versions of "graphql" are the dependencies of other
|
|
15
|
-
relied on modules, use "resolutions" to ensure only one version is installed.
|
|
16
|
-
|
|
17
|
-
https://yarnpkg.com/en/docs/selective-version-resolutions
|
|
18
|
-
|
|
19
|
-
Duplicate "graphql" modules cannot be used at the same time since different
|
|
20
|
-
versions may have different capabilities and behavior. The data from one
|
|
21
|
-
version used in the function from another could produce confusing and
|
|
22
|
-
spurious results.`)}}return!1};class th{constructor(e,i="GraphQL request",r={line:1,column:1}){typeof e=="string"||ko(!1,`Body must be a string. Received: ${El(e)}.`),this.body=e,this.name=i,this.locationOffset=r,this.locationOffset.line>0||ko(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||ko(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function F_(t){return N_(t,th)}function R_(t,e){return new B_(t,e).parseDocument()}class B_{constructor(e,i={}){const r=F_(e)?e:new th(e);this._lexer=new __(r),this._options=i,this._tokenCounter=0}parseName(){const e=this.expectToken(D.NAME);return this.node(e,{kind:ot.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ot.DOCUMENT,definitions:this.many(D.SOF,this.parseDefinition,D.EOF)})}parseDefinition(){if(this.peek(D.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),i=e?this._lexer.lookahead():this._lexer.token;if(i.kind===D.NAME){switch(i.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw ie(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(i.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(i)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(D.BRACE_L))return this.node(e,{kind:ot.OPERATION_DEFINITION,operation:Pn.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const i=this.parseOperationType();let r;return this.peek(D.NAME)&&(r=this.parseName()),this.node(e,{kind:ot.OPERATION_DEFINITION,operation:i,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(D.NAME);switch(e.value){case"query":return Pn.QUERY;case"mutation":return Pn.MUTATION;case"subscription":return Pn.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(D.PAREN_L,this.parseVariableDefinition,D.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ot.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(D.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(D.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(D.DOLLAR),this.node(e,{kind:ot.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ot.SELECTION_SET,selections:this.many(D.BRACE_L,this.parseSelection,D.BRACE_R)})}parseSelection(){return this.peek(D.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,i=this.parseName();let r,a;return this.expectOptionalToken(D.COLON)?(r=i,a=this.parseName()):a=i,this.node(e,{kind:ot.FIELD,alias:r,name:a,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(D.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const i=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(D.PAREN_L,i,D.PAREN_R)}parseArgument(e=!1){const i=this._lexer.token,r=this.parseName();return this.expectToken(D.COLON),this.node(i,{kind:ot.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(D.SPREAD);const i=this.expectOptionalKeyword("on");return!i&&this.peek(D.NAME)?this.node(e,{kind:ot.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ot.INLINE_FRAGMENT,typeCondition:i?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:ot.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ot.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(e){const i=this._lexer.token;switch(i.kind){case D.BRACKET_L:return this.parseList(e);case D.BRACE_L:return this.parseObject(e);case D.INT:return this.advanceLexer(),this.node(i,{kind:ot.INT,value:i.value});case D.FLOAT:return this.advanceLexer(),this.node(i,{kind:ot.FLOAT,value:i.value});case D.STRING:case D.BLOCK_STRING:return this.parseStringLiteral();case D.NAME:switch(this.advanceLexer(),i.value){case"true":return this.node(i,{kind:ot.BOOLEAN,value:!0});case"false":return this.node(i,{kind:ot.BOOLEAN,value:!1});case"null":return this.node(i,{kind:ot.NULL});default:return this.node(i,{kind:ot.ENUM,value:i.value})}case D.DOLLAR:if(e)if(this.expectToken(D.DOLLAR),this._lexer.token.kind===D.NAME){const r=this._lexer.token.value;throw ie(this._lexer.source,i.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(i);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ot.STRING,value:e.value,block:e.kind===D.BLOCK_STRING})}parseList(e){const i=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:ot.LIST,values:this.any(D.BRACKET_L,i,D.BRACKET_R)})}parseObject(e){const i=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:ot.OBJECT,fields:this.any(D.BRACE_L,i,D.BRACE_R)})}parseObjectField(e){const i=this._lexer.token,r=this.parseName();return this.expectToken(D.COLON),this.node(i,{kind:ot.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const i=[];for(;this.peek(D.AT);)i.push(this.parseDirective(e));return i}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const i=this._lexer.token;return this.expectToken(D.AT),this.node(i,{kind:ot.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let i;if(this.expectOptionalToken(D.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(D.BRACKET_R),i=this.node(e,{kind:ot.LIST_TYPE,type:r})}else i=this.parseNamedType();return this.expectOptionalToken(D.BANG)?this.node(e,{kind:ot.NON_NULL_TYPE,type:i}):i}parseNamedType(){return this.node(this._lexer.token,{kind:ot.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(D.STRING)||this.peek(D.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),a=this.many(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);return this.node(e,{kind:ot.SCHEMA_DEFINITION,description:i,directives:r,operationTypes:a})}parseOperationTypeDefinition(){const e=this._lexer.token,i=this.parseOperationType();this.expectToken(D.COLON);const r=this.parseNamedType();return this.node(e,{kind:ot.OPERATION_TYPE_DEFINITION,operation:i,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),a=this.parseConstDirectives();return this.node(e,{kind:ot.SCALAR_TYPE_DEFINITION,description:i,name:r,directives:a})}parseObjectTypeDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(e,{kind:ot.OBJECT_TYPE_DEFINITION,description:i,name:r,interfaces:a,directives:s,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(D.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(D.BRACE_L,this.parseFieldDefinition,D.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,i=this.parseDescription(),r=this.parseName(),a=this.parseArgumentDefs();this.expectToken(D.COLON);const s=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(e,{kind:ot.FIELD_DEFINITION,description:i,name:r,arguments:a,type:s,directives:c})}parseArgumentDefs(){return this.optionalMany(D.PAREN_L,this.parseInputValueDef,D.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,i=this.parseDescription(),r=this.parseName();this.expectToken(D.COLON);const a=this.parseTypeReference();let s;this.expectOptionalToken(D.EQUALS)&&(s=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(e,{kind:ot.INPUT_VALUE_DEFINITION,description:i,name:r,type:a,defaultValue:s,directives:c})}parseInterfaceTypeDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),a=this.parseImplementsInterfaces(),s=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(e,{kind:ot.INTERFACE_TYPE_DEFINITION,description:i,name:r,interfaces:a,directives:s,fields:c})}parseUnionTypeDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),a=this.parseConstDirectives(),s=this.parseUnionMemberTypes();return this.node(e,{kind:ot.UNION_TYPE_DEFINITION,description:i,name:r,directives:a,types:s})}parseUnionMemberTypes(){return this.expectOptionalToken(D.EQUALS)?this.delimitedMany(D.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),a=this.parseConstDirectives(),s=this.parseEnumValuesDefinition();return this.node(e,{kind:ot.ENUM_TYPE_DEFINITION,description:i,name:r,directives:a,values:s})}parseEnumValuesDefinition(){return this.optionalMany(D.BRACE_L,this.parseEnumValueDefinition,D.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,i=this.parseDescription(),r=this.parseEnumValueName(),a=this.parseConstDirectives();return this.node(e,{kind:ot.ENUM_VALUE_DEFINITION,description:i,name:r,directives:a})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw ie(this._lexer.source,this._lexer.token.start,`${so(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),a=this.parseConstDirectives(),s=this.parseInputFieldsDefinition();return this.node(e,{kind:ot.INPUT_OBJECT_TYPE_DEFINITION,description:i,name:r,directives:a,fields:s})}parseInputFieldsDefinition(){return this.optionalMany(D.BRACE_L,this.parseInputValueDef,D.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===D.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const i=this.parseConstDirectives(),r=this.optionalMany(D.BRACE_L,this.parseOperationTypeDefinition,D.BRACE_R);if(i.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:ot.SCHEMA_EXTENSION,directives:i,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const i=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(e,{kind:ot.SCALAR_TYPE_EXTENSION,name:i,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const i=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&a.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:ot.OBJECT_TYPE_EXTENSION,name:i,interfaces:r,directives:a,fields:s})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const i=this.parseName(),r=this.parseImplementsInterfaces(),a=this.parseConstDirectives(),s=this.parseFieldsDefinition();if(r.length===0&&a.length===0&&s.length===0)throw this.unexpected();return this.node(e,{kind:ot.INTERFACE_TYPE_EXTENSION,name:i,interfaces:r,directives:a,fields:s})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseUnionMemberTypes();if(r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:ot.UNION_TYPE_EXTENSION,name:i,directives:r,types:a})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseEnumValuesDefinition();if(r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:ot.ENUM_TYPE_EXTENSION,name:i,directives:r,values:a})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const i=this.parseName(),r=this.parseConstDirectives(),a=this.parseInputFieldsDefinition();if(r.length===0&&a.length===0)throw this.unexpected();return this.node(e,{kind:ot.INPUT_OBJECT_TYPE_EXTENSION,name:i,directives:r,fields:a})}parseDirectiveDefinition(){const e=this._lexer.token,i=this.parseDescription();this.expectKeyword("directive"),this.expectToken(D.AT);const r=this.parseName(),a=this.parseArgumentDefs(),s=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const c=this.parseDirectiveLocations();return this.node(e,{kind:ot.DIRECTIVE_DEFINITION,description:i,name:r,arguments:a,repeatable:s,locations:c})}parseDirectiveLocations(){return this.delimitedMany(D.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,i=this.parseName();if(Object.prototype.hasOwnProperty.call(Rs,i.value))return i;throw this.unexpected(e)}node(e,i){return this._options.noLocation!==!0&&(i.loc=new h_(e,this._lexer.lastToken,this._lexer.source)),i}peek(e){return this._lexer.token.kind===e}expectToken(e){const i=this._lexer.token;if(i.kind===e)return this.advanceLexer(),i;throw ie(this._lexer.source,i.start,`Expected ${eh(e)}, found ${so(i)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){const i=this._lexer.token;if(i.kind===D.NAME&&i.value===e)this.advanceLexer();else throw ie(this._lexer.source,i.start,`Expected "${e}", found ${so(i)}.`)}expectOptionalKeyword(e){const i=this._lexer.token;return i.kind===D.NAME&&i.value===e?(this.advanceLexer(),!0):!1}unexpected(e){const i=e??this._lexer.token;return ie(this._lexer.source,i.start,`Unexpected ${so(i)}.`)}any(e,i,r){this.expectToken(e);const a=[];for(;!this.expectOptionalToken(r);)a.push(i.call(this));return a}optionalMany(e,i,r){if(this.expectOptionalToken(e)){const a=[];do a.push(i.call(this));while(!this.expectOptionalToken(r));return a}return[]}many(e,i,r){this.expectToken(e);const a=[];do a.push(i.call(this));while(!this.expectOptionalToken(r));return a}delimitedMany(e,i){this.expectOptionalToken(e);const r=[];do r.push(i.call(this));while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,i=this._lexer.advance();if(e!==void 0&&i.kind!==D.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw ie(this._lexer.source,i.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function so(t){const e=t.value;return eh(t.kind)+(e!=null?` "${e}"`:"")}function eh(t){return b_(t)?`"${t}"`:t}function z_(t){return`"${t.replace(j_,V_)}"`}const j_=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function V_(t){return Z_[t.charCodeAt(0)]}const Z_=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"],U_=Object.freeze({});function H_(t,e,i=Gd){const r=new Map;for(const C of Object.values(ot))r.set(C,$_(e,C));let a,s=Array.isArray(t),c=[t],d=-1,h=[],p=t,m,g;const v=[],_=[];do{d++;const C=d===c.length,N=C&&h.length!==0;if(C){if(m=_.length===0?void 0:v[v.length-1],p=g,g=_.pop(),N)if(s){p=p.slice();let j=0;for(const[z,U]of h){const V=z-j;U===null?(p.splice(V,1),j++):p[V]=U}}else{p=Object.defineProperties({},Object.getOwnPropertyDescriptors(p));for(const[j,z]of h)p[j]=z}d=a.index,c=a.keys,h=a.edits,s=a.inArray,a=a.prev}else if(g){if(m=s?d:c[d],p=g[m],p==null)continue;v.push(m)}let O;if(!Array.isArray(p)){var y,k;if(uu(p)||ko(!1,`Invalid AST Node: ${El(p)}.`),O=(C?(y=r.get(p.kind))===null||y===void 0?void 0:y.leave:(k=r.get(p.kind))===null||k===void 0?void 0:k.enter)?.call(e,p,m,g,v,_),O===U_)break;if(O===!1){if(!C){v.pop();continue}}else if(O!==void 0&&(h.push([m,O]),!C))if(uu(O))p=O;else{v.pop();continue}}if(O===void 0&&N&&h.push([m,p]),C)v.pop();else{var E;a={inArray:s,index:d,keys:c,edits:h,prev:a},s=Array.isArray(p),c=s?p:(E=i[p.kind])!==null&&E!==void 0?E:[],d=-1,h=[],g&&_.push(g),g=p}}while(a!==void 0);return h.length!==0?h[h.length-1][1]:t}function $_(t,e){const i=t[e];return typeof i=="object"?i:typeof i=="function"?{enter:i,leave:void 0}:{enter:t.enter,leave:t.leave}}function q_(t){return H_(t,G_)}const W_=80,G_={Name:{leave:t=>t.value},Variable:{leave:t=>"$"+t.name},Document:{leave:t=>J(t.definitions,`
|
|
23
|
-
|
|
24
|
-
`)},OperationDefinition:{leave(t){const e=yt("(",J(t.variableDefinitions,", "),")"),i=J([t.operation,J([t.name,e]),J(t.directives," ")]," ");return(i==="query"?"":i+" ")+t.selectionSet}},VariableDefinition:{leave:({variable:t,type:e,defaultValue:i,directives:r})=>t+": "+e+yt(" = ",i)+yt(" ",J(r," "))},SelectionSet:{leave:({selections:t})=>Ve(t)},Field:{leave({alias:t,name:e,arguments:i,directives:r,selectionSet:a}){const s=yt("",t,": ")+e;let c=s+yt("(",J(i,", "),")");return c.length>W_&&(c=s+yt(`(
|
|
25
|
-
`,yo(J(i,`
|
|
26
|
-
`)),`
|
|
27
|
-
)`)),J([c,J(r," "),a]," ")}},Argument:{leave:({name:t,value:e})=>t+": "+e},FragmentSpread:{leave:({name:t,directives:e})=>"..."+t+yt(" ",J(e," "))},InlineFragment:{leave:({typeCondition:t,directives:e,selectionSet:i})=>J(["...",yt("on ",t),J(e," "),i]," ")},FragmentDefinition:{leave:({name:t,typeCondition:e,variableDefinitions:i,directives:r,selectionSet:a})=>`fragment ${t}${yt("(",J(i,", "),")")} on ${e} ${yt("",J(r," ")," ")}`+a},IntValue:{leave:({value:t})=>t},FloatValue:{leave:({value:t})=>t},StringValue:{leave:({value:t,block:e})=>e?v_(t):z_(t)},BooleanValue:{leave:({value:t})=>t?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:t})=>t},ListValue:{leave:({values:t})=>"["+J(t,", ")+"]"},ObjectValue:{leave:({fields:t})=>"{"+J(t,", ")+"}"},ObjectField:{leave:({name:t,value:e})=>t+": "+e},Directive:{leave:({name:t,arguments:e})=>"@"+t+yt("(",J(e,", "),")")},NamedType:{leave:({name:t})=>t},ListType:{leave:({type:t})=>"["+t+"]"},NonNullType:{leave:({type:t})=>t+"!"},SchemaDefinition:{leave:({description:t,directives:e,operationTypes:i})=>yt("",t,`
|
|
28
|
-
`)+J(["schema",J(e," "),Ve(i)]," ")},OperationTypeDefinition:{leave:({operation:t,type:e})=>t+": "+e},ScalarTypeDefinition:{leave:({description:t,name:e,directives:i})=>yt("",t,`
|
|
29
|
-
`)+J(["scalar",e,J(i," ")]," ")},ObjectTypeDefinition:{leave:({description:t,name:e,interfaces:i,directives:r,fields:a})=>yt("",t,`
|
|
30
|
-
`)+J(["type",e,yt("implements ",J(i," & ")),J(r," "),Ve(a)]," ")},FieldDefinition:{leave:({description:t,name:e,arguments:i,type:r,directives:a})=>yt("",t,`
|
|
31
|
-
`)+e+(hu(i)?yt(`(
|
|
32
|
-
`,yo(J(i,`
|
|
33
|
-
`)),`
|
|
34
|
-
)`):yt("(",J(i,", "),")"))+": "+r+yt(" ",J(a," "))},InputValueDefinition:{leave:({description:t,name:e,type:i,defaultValue:r,directives:a})=>yt("",t,`
|
|
35
|
-
`)+J([e+": "+i,yt("= ",r),J(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:t,name:e,interfaces:i,directives:r,fields:a})=>yt("",t,`
|
|
36
|
-
`)+J(["interface",e,yt("implements ",J(i," & ")),J(r," "),Ve(a)]," ")},UnionTypeDefinition:{leave:({description:t,name:e,directives:i,types:r})=>yt("",t,`
|
|
37
|
-
`)+J(["union",e,J(i," "),yt("= ",J(r," | "))]," ")},EnumTypeDefinition:{leave:({description:t,name:e,directives:i,values:r})=>yt("",t,`
|
|
38
|
-
`)+J(["enum",e,J(i," "),Ve(r)]," ")},EnumValueDefinition:{leave:({description:t,name:e,directives:i})=>yt("",t,`
|
|
39
|
-
`)+J([e,J(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:t,name:e,directives:i,fields:r})=>yt("",t,`
|
|
40
|
-
`)+J(["input",e,J(i," "),Ve(r)]," ")},DirectiveDefinition:{leave:({description:t,name:e,arguments:i,repeatable:r,locations:a})=>yt("",t,`
|
|
41
|
-
`)+"directive @"+e+(hu(i)?yt(`(
|
|
42
|
-
`,yo(J(i,`
|
|
43
|
-
`)),`
|
|
44
|
-
)`):yt("(",J(i,", "),")"))+(r?" repeatable":"")+" on "+J(a," | ")},SchemaExtension:{leave:({directives:t,operationTypes:e})=>J(["extend schema",J(t," "),Ve(e)]," ")},ScalarTypeExtension:{leave:({name:t,directives:e})=>J(["extend scalar",t,J(e," ")]," ")},ObjectTypeExtension:{leave:({name:t,interfaces:e,directives:i,fields:r})=>J(["extend type",t,yt("implements ",J(e," & ")),J(i," "),Ve(r)]," ")},InterfaceTypeExtension:{leave:({name:t,interfaces:e,directives:i,fields:r})=>J(["extend interface",t,yt("implements ",J(e," & ")),J(i," "),Ve(r)]," ")},UnionTypeExtension:{leave:({name:t,directives:e,types:i})=>J(["extend union",t,J(e," "),yt("= ",J(i," | "))]," ")},EnumTypeExtension:{leave:({name:t,directives:e,values:i})=>J(["extend enum",t,J(e," "),Ve(i)]," ")},InputObjectTypeExtension:{leave:({name:t,directives:e,fields:i})=>J(["extend input",t,J(e," "),Ve(i)]," ")}};function J(t,e=""){var i;return(i=t?.filter(r=>r).join(e))!==null&&i!==void 0?i:""}function Ve(t){return yt(`{
|
|
45
|
-
`,yo(J(t,`
|
|
46
|
-
`)),`
|
|
47
|
-
}`)}function yt(t,e,i=""){return e!=null&&e!==""?t+e+i:""}function yo(t){return yt(" ",t.replace(/\n/g,`
|
|
48
|
-
`))}function hu(t){var e;return(e=t?.some(i=>i.includes(`
|
|
49
|
-
`)))!==null&&e!==void 0?e:!1}const pu=t=>{let e;const i=t.definitions.filter(r=>r.kind==="OperationDefinition");return i.length===1&&(e=i[0]?.name?.value),e},us=t=>{if(typeof t=="string"){let i;try{const r=R_(t);i=pu(r)}catch{}return{query:t,operationName:i}}const e=pu(t);return{query:q_(t),operationName:e}};class mr extends Error{constructor(e,i){const r=`${mr.extractMessage(e)}: ${JSON.stringify({response:e,request:i})}`;super(r),Object.setPrototypeOf(this,mr.prototype),this.response=e,this.request=i,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,mr)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${e.status})`}}var ih=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zs={exports:{}};(function(t,e){var i=typeof self<"u"?self:ih,r=function(){function s(){this.fetch=!1,this.DOMException=i.DOMException}return s.prototype=i,new s}();(function(s){(function(c){var d={searchParams:"URLSearchParams"in s,iterable:"Symbol"in s&&"iterator"in Symbol,blob:"FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in s,arrayBuffer:"ArrayBuffer"in s};function h(w){return w&&DataView.prototype.isPrototypeOf(w)}if(d.arrayBuffer)var p=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],m=ArrayBuffer.isView||function(w){return w&&p.indexOf(Object.prototype.toString.call(w))>-1};function g(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function v(w){return typeof w!="string"&&(w=String(w)),w}function _(w){var P={next:function(){var F=w.shift();return{done:F===void 0,value:F}}};return d.iterable&&(P[Symbol.iterator]=function(){return P}),P}function y(w){this.map={},w instanceof y?w.forEach(function(P,F){this.append(F,P)},this):Array.isArray(w)?w.forEach(function(P){this.append(P[0],P[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(P){this.append(P,w[P])},this)}y.prototype.append=function(w,P){w=g(w),P=v(P);var F=this.map[w];this.map[w]=F?F+", "+P:P},y.prototype.delete=function(w){delete this.map[g(w)]},y.prototype.get=function(w){return w=g(w),this.has(w)?this.map[w]:null},y.prototype.has=function(w){return this.map.hasOwnProperty(g(w))},y.prototype.set=function(w,P){this.map[g(w)]=v(P)},y.prototype.forEach=function(w,P){for(var F in this.map)this.map.hasOwnProperty(F)&&w.call(P,this.map[F],F,this)},y.prototype.keys=function(){var w=[];return this.forEach(function(P,F){w.push(F)}),_(w)},y.prototype.values=function(){var w=[];return this.forEach(function(P){w.push(P)}),_(w)},y.prototype.entries=function(){var w=[];return this.forEach(function(P,F){w.push([F,P])}),_(w)},d.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function k(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function E(w){return new Promise(function(P,F){w.onload=function(){P(w.result)},w.onerror=function(){F(w.error)}})}function C(w){var P=new FileReader,F=E(P);return P.readAsArrayBuffer(w),F}function N(w){var P=new FileReader,F=E(P);return P.readAsText(w),F}function O(w){for(var P=new Uint8Array(w),F=new Array(P.length),Q=0;Q<P.length;Q++)F[Q]=String.fromCharCode(P[Q]);return F.join("")}function j(w){if(w.slice)return w.slice(0);var P=new Uint8Array(w.byteLength);return P.set(new Uint8Array(w)),P.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(w){this._bodyInit=w,w?typeof w=="string"?this._bodyText=w:d.blob&&Blob.prototype.isPrototypeOf(w)?this._bodyBlob=w:d.formData&&FormData.prototype.isPrototypeOf(w)?this._bodyFormData=w:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)?this._bodyText=w.toString():d.arrayBuffer&&d.blob&&h(w)?(this._bodyArrayBuffer=j(w.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(w)||m(w))?this._bodyArrayBuffer=j(w):this._bodyText=w=Object.prototype.toString.call(w):this._bodyText="",this.headers.get("content-type")||(typeof w=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(w)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var w=k(this);if(w)return w;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?k(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(C)}),this.text=function(){var w=k(this);if(w)return w;if(this._bodyBlob)return N(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}var U=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function V(w){var P=w.toUpperCase();return U.indexOf(P)>-1?P:w}function Z(w,P){P=P||{};var F=P.body;if(w instanceof Z){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,P.headers||(this.headers=new y(w.headers)),this.method=w.method,this.mode=w.mode,this.signal=w.signal,!F&&w._bodyInit!=null&&(F=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=P.credentials||this.credentials||"same-origin",(P.headers||!this.headers)&&(this.headers=new y(P.headers)),this.method=V(P.method||this.method||"GET"),this.mode=P.mode||this.mode||null,this.signal=P.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&F)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(F)}Z.prototype.clone=function(){return new Z(this,{body:this._bodyInit})};function T(w){var P=new FormData;return w.trim().split("&").forEach(function(F){if(F){var Q=F.split("="),q=Q.shift().replace(/\+/g," "),ht=Q.join("=").replace(/\+/g," ");P.append(decodeURIComponent(q),decodeURIComponent(ht))}}),P}function A(w){var P=new y,F=w.replace(/\r?\n[\t ]+/g," ");return F.split(/\r?\n/).forEach(function(Q){var q=Q.split(":"),ht=q.shift().trim();if(ht){var X=q.join(":").trim();P.append(ht,X)}}),P}z.call(Z.prototype);function B(w,P){P||(P={}),this.type="default",this.status=P.status===void 0?200:P.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in P?P.statusText:"OK",this.headers=new y(P.headers),this.url=P.url||"",this._initBody(w)}z.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},B.error=function(){var w=new B(null,{status:0,statusText:""});return w.type="error",w};var $=[301,302,303,307,308];B.redirect=function(w,P){if($.indexOf(P)===-1)throw new RangeError("Invalid status code");return new B(null,{status:P,headers:{location:w}})},c.DOMException=s.DOMException;try{new c.DOMException}catch{c.DOMException=function(w,P){this.message=w,this.name=P;var F=Error(w);this.stack=F.stack},c.DOMException.prototype=Object.create(Error.prototype),c.DOMException.prototype.constructor=c.DOMException}function nt(w,P){return new Promise(function(F,Q){var q=new Z(w,P);if(q.signal&&q.signal.aborted)return Q(new c.DOMException("Aborted","AbortError"));var ht=new XMLHttpRequest;function X(){ht.abort()}ht.onload=function(){var wt={status:ht.status,statusText:ht.statusText,headers:A(ht.getAllResponseHeaders()||"")};wt.url="responseURL"in ht?ht.responseURL:wt.headers.get("X-Request-URL");var Pt="response"in ht?ht.response:ht.responseText;F(new B(Pt,wt))},ht.onerror=function(){Q(new TypeError("Network request failed"))},ht.ontimeout=function(){Q(new TypeError("Network request failed"))},ht.onabort=function(){Q(new c.DOMException("Aborted","AbortError"))},ht.open(q.method,q.url,!0),q.credentials==="include"?ht.withCredentials=!0:q.credentials==="omit"&&(ht.withCredentials=!1),"responseType"in ht&&d.blob&&(ht.responseType="blob"),q.headers.forEach(function(wt,Pt){ht.setRequestHeader(Pt,wt)}),q.signal&&(q.signal.addEventListener("abort",X),ht.onreadystatechange=function(){ht.readyState===4&&q.signal.removeEventListener("abort",X)}),ht.send(typeof q._bodyInit>"u"?null:q._bodyInit)})}return nt.polyfill=!0,s.fetch||(s.fetch=nt,s.Headers=y,s.Request=Z,s.Response=B),c.Headers=y,c.Request=Z,c.Response=B,c.fetch=nt,Object.defineProperty(c,"__esModule",{value:!0}),c})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var a=r;e=a.fetch,e.default=a.fetch,e.fetch=a.fetch,e.Headers=a.Headers,e.Request=a.Request,e.Response=a.Response,t.exports=e})(zs,zs.exports);var Bo=zs.exports;const xo=nh(Bo),Y_=$d({__proto__:null,default:xo},[Bo]),wn=t=>{let e={};return t&&(typeof Headers<"u"&&t instanceof Headers||Y_&&Bo.Headers&&t instanceof Bo.Headers?e=n_(t):Array.isArray(t)?t.forEach(([i,r])=>{i&&r!==void 0&&(e[i]=r)}):e=t),e},fu=t=>t.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),K_=t=>{if(!Array.isArray(t.query)){const r=t,a=[`query=${encodeURIComponent(fu(r.query))}`];return t.variables&&a.push(`variables=${encodeURIComponent(r.jsonSerializer.stringify(r.variables))}`),r.operationName&&a.push(`operationName=${encodeURIComponent(r.operationName)}`),a.join("&")}if(typeof t.variables<"u"&&!Array.isArray(t.variables))throw new Error("Cannot create query with given variable type, array expected");const e=t,i=t.query.reduce((r,a,s)=>(r.push({query:fu(a),variables:e.variables?e.jsonSerializer.stringify(e.variables[s]):void 0}),r),[]);return`query=${encodeURIComponent(e.jsonSerializer.stringify(i))}`},X_=t=>async e=>{const{url:i,query:r,variables:a,operationName:s,fetch:c,fetchOptions:d,middleware:h}=e,p={...e.headers};let m="",g;t==="POST"?(g=Q_(r,a,s,d.jsonSerializer),typeof g=="string"&&(p["Content-Type"]="application/json")):m=K_({query:r,variables:a,operationName:s,jsonSerializer:d.jsonSerializer??xl});const v={method:t,headers:p,body:g,...d};let _=i,y=v;if(h){const k=await Promise.resolve(h({...v,url:i,operationName:s,variables:a})),{url:E,...C}=k;_=E,y=C}return m&&(_=`${_}?${m}`),await c(_,y)};class J_{constructor(e,i={}){this.url=e,this.requestConfig=i,this.rawRequest=async(...r)=>{const[a,s,c]=r,d=o_(a,s,c),{headers:h,fetch:p=xo,method:m="POST",requestMiddleware:g,responseMiddleware:v,..._}=this.requestConfig,{url:y}=this;d.signal!==void 0&&(_.signal=d.signal);const{operationName:k}=us(d.query);return ds({url:y,query:d.query,variables:d.variables,headers:{...wn(hs(h)),...wn(d.requestHeaders)},operationName:k,fetch:p,method:m,fetchOptions:_,middleware:g}).then(E=>(v&&v(E),E)).catch(E=>{throw v&&v(E),E})}}async request(e,...i){const[r,a]=i,s=r_(e,r,a),{headers:c,fetch:d=xo,method:h="POST",requestMiddleware:p,responseMiddleware:m,...g}=this.requestConfig,{url:v}=this;s.signal!==void 0&&(g.signal=s.signal);const{query:_,operationName:y}=us(s.document);return ds({url:v,query:_,variables:s.variables,headers:{...wn(hs(c)),...wn(s.requestHeaders)},operationName:y,fetch:d,method:h,fetchOptions:g,middleware:p}).then(k=>(m&&m(k),k.data)).catch(k=>{throw m&&m(k),k})}batchRequests(e,i){const r=a_(e,i),{headers:a,...s}=this.requestConfig;r.signal!==void 0&&(s.signal=r.signal);const c=r.documents.map(({document:h})=>us(h).query),d=r.documents.map(({variables:h})=>h);return ds({url:this.url,query:c,variables:d,headers:{...wn(hs(a)),...wn(r.requestHeaders)},operationName:void 0,fetch:this.requestConfig.fetch??xo,method:this.requestConfig.method||"POST",fetchOptions:s,middleware:this.requestConfig.requestMiddleware}).then(h=>(this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(h),h.data)).catch(h=>{throw this.requestConfig.responseMiddleware&&this.requestConfig.responseMiddleware(h),h})}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,i){const{headers:r}=this.requestConfig;return r?r[e]=i:this.requestConfig.headers={[e]:i},this}setEndpoint(e){return this.url=e,this}}const ds=async t=>{const{query:e,variables:i,fetchOptions:r}=t,a=X_(i_(t.method??"post")),s=Array.isArray(t.query),c=await a(t),d=await tb(c,r.jsonSerializer??xl),h=Array.isArray(d)?!d.some(({data:m})=>!m):!!d.data,p=Array.isArray(d)||!d.errors||Array.isArray(d.errors)&&!d.errors.length||r.errorPolicy==="all"||r.errorPolicy==="ignore";if(c.ok&&p&&h){const{errors:m,...g}=d,v=r.errorPolicy==="ignore"?g:d;return{...s?{data:v}:v,headers:c.headers,status:c.status}}else{const m=typeof d=="string"?{error:d}:d;throw new mr({...m,status:c.status,headers:c.headers},{query:e,variables:i})}},Q_=(t,e,i,r)=>{const a=r??xl;if(!Array.isArray(t))return a.stringify({query:t,variables:e,operationName:i});if(typeof e<"u"&&!Array.isArray(e))throw new Error("Cannot create request body with given variable type, array expected");const s=t.reduce((c,d,h)=>(c.push({query:d,variables:e?e[h]:void 0}),c),[]);return a.stringify(s)},tb=async(t,e)=>{let i;return t.headers.forEach((r,a)=>{a.toLowerCase()==="content-type"&&(i=r)}),i&&(i.toLowerCase().startsWith("application/json")||i.toLowerCase().startsWith("application/graphql+json")||i.toLowerCase().startsWith("application/graphql-response+json"))?e.parse(await t.text()):t.text()},hs=t=>typeof t=="function"?t():t,Ar={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"properties"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filter"}},type:{kind:"NamedType",name:{kind:"Name",value:"FlatfinderItemFilter"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Enums"},arguments:[{kind:"Argument",name:{kind:"Name",value:"keys"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"ResidentialProperties",block:!1}]}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"Flatfinder"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FlatfinderBase"},directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"project"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"residentialProperties"},arguments:[{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"!draft",block:!1},{kind:"StringValue",value:"!sold",block:!1},{kind:"StringValue",value:"!rented",block:!1}]}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"siteSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultFlatfinderFilters"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"items"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"Variable",name:{kind:"Name",value:"filter"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"reference"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"onModel"},name:{kind:"Name",value:"__typename"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Residential"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirectUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"sale"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fee"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"included"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"jointDebt"},arguments:[],directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"propertyType"},name:{kind:"Name",value:"properties"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"keys"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"propertyType",block:!1}]}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"formatted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"properties"},arguments:[{kind:"Argument",name:{kind:"Name",value:"filter"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"keys"},value:{kind:"Variable",name:{kind:"Name",value:"properties"}}}]}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"i18n"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"formatted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"key"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cover"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"floorplan"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Project"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"media"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cover"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Flatfinder"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FlatfinderBase"},directives:[]}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Link"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"href"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:1514}};Ar.loc.source={body:`
|
|
50
|
-
#import "../fragments/Flatfinder.gql"
|
|
51
|
-
|
|
52
|
-
query ($id: ID!, $properties: [String!], $filter: FlatfinderItemFilter) {
|
|
53
|
-
Enums(keys: ["ResidentialProperties"])
|
|
54
|
-
Flatfinder(id: $id) {
|
|
55
|
-
...FlatfinderBase
|
|
56
|
-
version
|
|
57
|
-
project {
|
|
58
|
-
metadata {
|
|
59
|
-
residentialProperties(status: ["!draft", "!sold", "!rented"])
|
|
60
|
-
siteSettings {
|
|
61
|
-
defaultFlatfinderFilters
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
items(filter: $filter) {
|
|
66
|
-
status
|
|
67
|
-
reference {
|
|
68
|
-
onModel: __typename
|
|
69
|
-
... on Residential {
|
|
70
|
-
id
|
|
71
|
-
name
|
|
72
|
-
status
|
|
73
|
-
redirectUrl
|
|
74
|
-
sale {
|
|
75
|
-
value
|
|
76
|
-
type
|
|
77
|
-
fee {
|
|
78
|
-
value
|
|
79
|
-
included
|
|
80
|
-
}
|
|
81
|
-
jointDebt
|
|
82
|
-
}
|
|
83
|
-
propertyType: properties(filter: { keys: ["propertyType"] }) {
|
|
84
|
-
formatted
|
|
85
|
-
value
|
|
86
|
-
}
|
|
87
|
-
properties(filter: { keys: $properties }) {
|
|
88
|
-
i18n
|
|
89
|
-
formatted
|
|
90
|
-
key
|
|
91
|
-
label
|
|
92
|
-
}
|
|
93
|
-
media {
|
|
94
|
-
cover {
|
|
95
|
-
url
|
|
96
|
-
}
|
|
97
|
-
floorplan {
|
|
98
|
-
url
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
... on Project {
|
|
103
|
-
id
|
|
104
|
-
name
|
|
105
|
-
url
|
|
106
|
-
media {
|
|
107
|
-
cover {
|
|
108
|
-
url
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
... on Flatfinder {
|
|
113
|
-
...FlatfinderBase
|
|
114
|
-
}
|
|
115
|
-
... on Link {
|
|
116
|
-
id
|
|
117
|
-
href
|
|
118
|
-
label
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
data
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};const mu={};function eb(t){return t.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;const i=e.name.value;return mu[i]?!1:(mu[i]=!0,!0)})}Ar.definitions=Ar.definitions.concat(eb((await Hd(()=>import("./Flatfinder-xVhUSkxC.js"),[])).default.definitions));function wo(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){const i=t.type;i.kind==="NamedType"&&e.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(i){wo(i,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(i){wo(i,e)}),t.definitions&&t.definitions.forEach(function(i){wo(i,e)})}const ib={};(function(){Ar.definitions.forEach(function(t){if(t.name){const e=new Set;wo(t,e),ib[t.name.value]=e}})})();const Tl={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Flatfinder"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"project"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"residentialProperties"},arguments:[{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"!draft",block:!1},{kind:"StringValue",value:"!sold",block:!1},{kind:"StringValue",value:"!rented",block:!1}]}}],directives:[]},{kind:"Field",name:{kind:"Name",value:"siteSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultFlatfinderFilters"},arguments:[],directives:[]}]}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"Enums"},arguments:[{kind:"Argument",name:{kind:"Name",value:"keys"},value:{kind:"ListValue",values:[{kind:"StringValue",value:"ResidentialProperties",block:!1}]}}],directives:[]}]}}],loc:{start:0,end:303}};Tl.loc.source={body:`
|
|
127
|
-
query ($id: ID!) {
|
|
128
|
-
Flatfinder(id: $id) {
|
|
129
|
-
project {
|
|
130
|
-
metadata {
|
|
131
|
-
residentialProperties(status: ["!draft", "!sold", "!rented"])
|
|
132
|
-
siteSettings {
|
|
133
|
-
defaultFlatfinderFilters
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
Enums(keys: ["ResidentialProperties"])
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};function Eo(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){const i=t.type;i.kind==="NamedType"&&e.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(i){Eo(i,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(i){Eo(i,e)}),t.definitions&&t.definitions.forEach(function(i){Eo(i,e)})}const nb={};(function(){Tl.definitions.forEach(function(t){if(t.name){const e=new Set;Eo(t,e),nb[t.name.value]=e}})})();const Cr={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"Project"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metadata"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"siteSettings"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"featuredResidentialProperties"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"flatfinders"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FlatfinderBase"},directives:[]}]}}]}}]}}],loc:{start:0,end:259}};Cr.loc.source={body:`
|
|
142
|
-
# import "../fragments/Flatfinder.gql"
|
|
143
|
-
|
|
144
|
-
query ($id: ID!) {
|
|
145
|
-
Project(id: $id) {
|
|
146
|
-
id
|
|
147
|
-
metadata {
|
|
148
|
-
siteSettings {
|
|
149
|
-
featuredResidentialProperties
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
flatfinders {
|
|
153
|
-
...FlatfinderBase
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
`,name:"GraphQL request",locationOffset:{line:1,column:1}};const gu={};function rb(t){return t.filter(function(e){if(e.kind!=="FragmentDefinition")return!0;const i=e.name.value;return gu[i]?!1:(gu[i]=!0,!0)})}Cr.definitions=Cr.definitions.concat(rb((await Hd(()=>import("./Flatfinder-xVhUSkxC.js"),[])).default.definitions));function To(t,e){if(t.kind==="FragmentSpread")e.add(t.name.value);else if(t.kind==="VariableDefinition"){const i=t.type;i.kind==="NamedType"&&e.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(i){To(i,e)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(i){To(i,e)}),t.definitions&&t.definitions.forEach(function(i){To(i,e)})}const ob={};(function(){Cr.definitions.forEach(function(t){if(t.name){const e=new Set;To(t,e),ob[t.name.value]=e}})})();const vu=Object.assign({"./Flatfinder.gql":Ar,"./FlatfinderMetadata.gql":Tl,"./Project.gql":Cr}),fa={};Object.keys(vu).forEach(t=>{const e=t.replace(/(\.\/|\.gql)/g,"");fa[e]=vu[t]});let Mn;function rh(t){if(Mn)return Mn;const{url:e,headers:i}=t;return Mn=new J_(e,{headers:{"accept-language":document?.querySelector("html")?.getAttribute("lang")??"nb",...i}})}async function ab(t){return Mn.request(fa.Flatfinder,t).then(e=>e)}async function sb(t){return Mn.request(fa.FlatfinderMetadata,t)}async function lb(t){return Mn.request(fa.Project,t).then(e=>e.Project)}function cb(t,e){let i,r,a;const s=W(!0),c=()=>{s.value=!0,a()};Ut(t,c,{flush:"sync"});const d=typeof e=="function"?e:e.get,h=typeof e=="function"?void 0:e.set,p=Xv((m,g)=>(r=m,a=g,{get(){return s.value&&(i=d(),s.value=!1),r(),i},set(v){h?.(v)}}));return Object.isExtensible(p)&&(p.trigger=c),p}function oh(t){return bl()?(kl(t),!0):!1}function ma(t){return typeof t=="function"?t():dt(t)}const ub=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const db=t=>t!=null,hb=Object.prototype.toString,pb=t=>hb.call(t)==="[object Object]",So=()=>{};function fb(t){return t||yl()}function mb(t,e=!0,i){fb()?Ae(t,i):e?t():Ud(t)}function gr(t){var e;const i=ma(t);return(e=i?.$el)!=null?e:i}const ga=ub?window:void 0;function lo(...t){let e,i,r,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([i,r,a]=t,e=ga):[e,i,r,a]=t,!e)return So;Array.isArray(i)||(i=[i]),Array.isArray(r)||(r=[r]);const s=[],c=()=>{s.forEach(m=>m()),s.length=0},d=(m,g,v,_)=>(m.addEventListener(g,v,_),()=>m.removeEventListener(g,v,_)),h=Ut(()=>[gr(e),ma(a)],([m,g])=>{if(c(),!m)return;const v=pb(g)?{...g}:g;s.push(...i.flatMap(_=>r.map(y=>d(m,_,y,v))))},{immediate:!0,flush:"post"}),p=()=>{h(),c()};return oh(p),p}function gb(){const t=W(!1);return yl()&&Ae(()=>{t.value=!0}),t}function vb(t){const e=gb();return lt(()=>(e.value,!!t()))}function _b(){const t=yl(),e=cb(()=>null,()=>t.proxy.$el);return Kv(e.trigger),Ae(e.trigger),e}function bb(t,e,i={}){const{root:r,rootMargin:a="0px",threshold:s=.1,window:c=ga,immediate:d=!0}=i,h=vb(()=>c&&"IntersectionObserver"in c),p=lt(()=>{const y=ma(t);return(Array.isArray(y)?y:[y]).map(gr).filter(db)});let m=So;const g=W(d),v=h.value?Ut(()=>[p.value,gr(r),g.value],([y,k])=>{if(m(),!g.value||!y.length)return;const E=new IntersectionObserver(e,{root:gr(k),rootMargin:a,threshold:s});y.forEach(C=>C&&E.observe(C)),m=()=>{E.disconnect(),m=So}},{immediate:d,flush:"post"}):So,_=()=>{m(),v(),g.value=!1};return oh(_),{isSupported:h,isActive:g,pause(){m(),g.value=!1},resume(){g.value=!0},stop:_}}function kb(t,e={}){const{window:i=ga,scrollTarget:r}=e,a=W(!1);return bb(t,s=>{let c=a.value,d=0;for(const h of s)h.time>=d&&(d=h.time,c=h.isIntersecting);a.value=c},{root:r,window:i,threshold:0}),a}const yb={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function xb(t={}){const{type:e="page",touch:i=!0,resetOnTouchEnds:r=!1,initialValue:a={x:0,y:0},window:s=ga,target:c=s,scroll:d=!0,eventFilter:h}=t;let p=null;const m=W(a.x),g=W(a.y),v=W(null),_=typeof e=="function"?e:yb[e],y=z=>{const U=_(z);p=z,U&&([m.value,g.value]=U,v.value="mouse")},k=z=>{if(z.touches.length>0){const U=_(z.touches[0]);U&&([m.value,g.value]=U,v.value="touch")}},E=()=>{if(!p||!s)return;const z=_(p);p instanceof MouseEvent&&z&&(m.value=z[0]+s.scrollX,g.value=z[1]+s.scrollY)},C=()=>{m.value=a.x,g.value=a.y},N=h?z=>h(()=>y(z),{}):z=>y(z),O=h?z=>h(()=>k(z),{}):z=>k(z),j=h?()=>h(()=>E(),{}):()=>E();if(c){const z={passive:!0};lo(c,["mousemove","dragover"],N,z),i&&e!=="movement"&&(lo(c,["touchstart","touchmove"],O,z),r&&lo(c,"touchend",C,z)),d&&e==="page"&&lo(s,"scroll",j,{passive:!0})}return{x:m,y:g,sourceType:v}}function wb(t=_b()){const e=da(),i=()=>{const r=gr(t);r&&(e.value=r.parentElement)};return mb(i),Ut(()=>ma(t),i),e}function Eb(t){return{all:t=t||new Map,on:function(e,i){var r=t.get(e);r?r.push(i):t.set(e,[i])},off:function(e,i){var r=t.get(e);r&&(i?r.splice(r.indexOf(i)>>>0,1):t.set(e,[]))},emit:function(e,i){var r=t.get(e);r&&r.slice().map(function(a){a(i)}),(r=t.get("*"))&&r.slice().map(function(a){a(e,i)})}}}const ah="Klik for at filtrere",sh="Filtrer",lh="Fandt {0} resultater",ch="Gå tilbage",uh="Billeder er ment som illustration",dh="Fællesgæld",hh="Se {x}",ph="mnd",fh="Nej",mh="Soveværelse",gh="Værelse",vh="Pris",_h="Pris ved forespørgsel",bh="Primærrum",kh="Boligtype",yh="Slet",xh="Omkostninger",wh="Den angivne pris er inkl. omkostninger",Eh="Vælg",Th="Totalpris",Sh="Brugsareal",Ah="Ja",Ch="Du er her",Tb={clickToFilter:ah,filter:sh,foundXResults:lh,goBack:ch,imagesOnlyAsIllustration:uh,jointDebt:dh,lookAt:hh,multiplicatorMonthly:ph,no:fh,numberOfBedrooms:mh,numberOfRooms:gh,price:vh,priceOnRequest:_h,primaryRoomArea:bh,propertyType:kh,remove:yh,residentialSaleFee:xh,residentialSaleFeeIncluded:wh,"residentialStatus:rent":{development:"Under udvikling",draft:"@:unpublished",rent:"Til leje",rented:"Udlejet",reserved:"Reserveret",upcoming:"Kommer til salg"},"residentialStatus:sale":{development:"Under udvikling",draft:"@:unpublished",reserved:"Reserveret",sale:"Til salg",sold:"Solgt",upcoming:"Kommer til salg"},select:Eh,totalPrice:Th,useableArea:Sh,yes:Ah,youAreHere:Ch},Sb=Object.freeze(Object.defineProperty({__proto__:null,clickToFilter:ah,default:Tb,filter:sh,foundXResults:lh,goBack:ch,imagesOnlyAsIllustration:uh,jointDebt:dh,lookAt:hh,multiplicatorMonthly:ph,no:fh,numberOfBedrooms:mh,numberOfRooms:gh,price:vh,priceOnRequest:_h,primaryRoomArea:bh,propertyType:kh,remove:yh,residentialSaleFee:xh,residentialSaleFeeIncluded:wh,select:Eh,totalPrice:Th,useableArea:Sh,yes:Ah,youAreHere:Ch},Symbol.toStringTag,{value:"Module"})),Ih="Zum Filtern drücken",Ph="Filtern",Oh="{0} Ergebnisse gefunden",Lh="Zurückgehen",Dh="Bilder dienen Illustrationszwecken",Mh="Gemeinschaftsschulden",Nh="Siehe {x}",Fh="Monat",Rh="Nein",Bh="Schlafzimmer",zh="Zimmer",jh="Preis",Vh="Preis nach Anfrage",Zh="Primäres Zimmer",Uh="Einheitentyp",Hh="Löschen",$h="Kaufnebenkosten",qh="Angegebener Preis inkl. Kaufnebenkosten",Wh="Auswählen",Gh="Gesamtpreis",Yh="Nettowohnfläche",Kh="Ja",Xh="Sie sind hier",Ab={clickToFilter:Ih,filter:Ph,foundXResults:Oh,goBack:Lh,imagesOnlyAsIllustration:Dh,jointDebt:Mh,lookAt:Nh,multiplicatorMonthly:Fh,no:Rh,numberOfBedrooms:Bh,numberOfRooms:zh,price:jh,priceOnRequest:Vh,primaryRoomArea:Zh,propertyType:Uh,remove:Hh,residentialSaleFee:$h,residentialSaleFeeIncluded:qh,"residentialStatus:rent":{development:"In Entwicklung",draft:"@:unpublished",rent:"Zu vermieten",rented:"Vermietet",reserved:"Reserviert",upcoming:"Kommt zur Vermietung"},"residentialStatus:sale":{development:"In Entwicklung",draft:"@:unpublished",reserved:"Reserviert",sale:"Zu verkaufen",sold:"Verkauft",upcoming:"Kommt zum Verkauf"},select:Wh,totalPrice:Gh,useableArea:Yh,yes:Kh,youAreHere:Xh},Cb=Object.freeze(Object.defineProperty({__proto__:null,clickToFilter:Ih,default:Ab,filter:Ph,foundXResults:Oh,goBack:Lh,imagesOnlyAsIllustration:Dh,jointDebt:Mh,lookAt:Nh,multiplicatorMonthly:Fh,no:Rh,numberOfBedrooms:Bh,numberOfRooms:zh,price:jh,priceOnRequest:Vh,primaryRoomArea:Zh,propertyType:Uh,remove:Hh,residentialSaleFee:$h,residentialSaleFeeIncluded:qh,select:Wh,totalPrice:Gh,useableArea:Yh,yes:Kh,youAreHere:Xh},Symbol.toStringTag,{value:"Module"})),Jh="Click to filter",Qh="Filter",tp="Found {0} results",ep="Back",ip="Images are included for illustrative purposes",np="Housing cooperative joint debt",rp="Look at {x}",op="Months",ap="No",sp="Bedrooms",lp="Rooms",cp="Price",up="Price available upon request",dp="Primary rooms",hp="Home type",pp="Delete",fp="Expenses",mp="Specified price includes expenses",gp="Select",vp="Total price",_p="Usable floor space",bp="Yes",kp="You are here",Ib={clickToFilter:Jh,filter:Qh,foundXResults:tp,goBack:ep,imagesOnlyAsIllustration:ip,jointDebt:np,lookAt:rp,multiplicatorMonthly:op,no:ap,numberOfBedrooms:sp,numberOfRooms:lp,price:cp,priceOnRequest:up,primaryRoomArea:dp,propertyType:hp,remove:pp,residentialSaleFee:fp,residentialSaleFeeIncluded:mp,"residentialStatus:rent":{development:"Under development",draft:"@:unpublished",rent:"For rent",rented:"Rented",reserved:"Reserved",upcoming:"Coming soon"},"residentialStatus:sale":{development:"Under development",draft:"@:unpublished",reserved:"Reserved",sale:"For sale",sold:"Sold",upcoming:"Coming soon"},select:gp,totalPrice:vp,useableArea:_p,yes:bp,youAreHere:kp},Pb=Object.freeze(Object.defineProperty({__proto__:null,clickToFilter:Jh,default:Ib,filter:Qh,foundXResults:tp,goBack:ep,imagesOnlyAsIllustration:ip,jointDebt:np,lookAt:rp,multiplicatorMonthly:op,no:ap,numberOfBedrooms:sp,numberOfRooms:lp,price:cp,priceOnRequest:up,primaryRoomArea:dp,propertyType:hp,remove:pp,residentialSaleFee:fp,residentialSaleFeeIncluded:mp,select:gp,totalPrice:vp,useableArea:_p,yes:bp,youAreHere:kp},Symbol.toStringTag,{value:"Module"})),yp="Trykk for å filtrere",xp="Filtrer",wp="Fant {0} resultater",Ep="Gå tilbake",Tp="Bilder er ment som illustrasjon",Sp="Fellesgjeld",Ap="Se {x}",Cp="mnd",Ip="Nei",Pp="Soverom",Op="Rom",Lp="Pris",Dp="Pris etter forespørsel",Mp="Primærrom",Np="Enhetstype",Fp="Slett",Rp="Omkostninger",Bp="Angitt pris er inkl. omkostninger",zp="Velg",jp="Totalpris",Vp="Bruksareal",Zp="Ja",Up="Du er her",Ob={clickToFilter:yp,filter:xp,foundXResults:wp,goBack:Ep,imagesOnlyAsIllustration:Tp,jointDebt:Sp,lookAt:Ap,multiplicatorMonthly:Cp,no:Ip,numberOfBedrooms:Pp,numberOfRooms:Op,price:Lp,priceOnRequest:Dp,primaryRoomArea:Mp,propertyType:Np,remove:Fp,residentialSaleFee:Rp,residentialSaleFeeIncluded:Bp,"residentialStatus:rent":{development:"Under utvikling",draft:"@:unpublished",rent:"Til leie",rented:"Utleid",reserved:"Reservert",upcoming:"Kommer til leie"},"residentialStatus:sale":{development:"Under utvikling",draft:"@:unpublished",reserved:"Reservert",sale:"Til salgs",sold:"Solgt",upcoming:"Kommer for salg"},select:zp,totalPrice:jp,useableArea:Vp,yes:Zp,youAreHere:Up},Lb=Object.freeze(Object.defineProperty({__proto__:null,clickToFilter:yp,default:Ob,filter:xp,foundXResults:wp,goBack:Ep,imagesOnlyAsIllustration:Tp,jointDebt:Sp,lookAt:Ap,multiplicatorMonthly:Cp,no:Ip,numberOfBedrooms:Pp,numberOfRooms:Op,price:Lp,priceOnRequest:Dp,primaryRoomArea:Mp,propertyType:Np,remove:Fp,residentialSaleFee:Rp,residentialSaleFeeIncluded:Bp,select:zp,totalPrice:jp,useableArea:Vp,yes:Zp,youAreHere:Up},Symbol.toStringTag,{value:"Module"})),Hp="Klik om te filteren",$p="Filter",qp="{0} resultaten gevonden",Wp="Ga terug",Gp="De afbeeldingen zijn uitsluitend bedoeld ter illustratie",Yp="Gezamenlijke schulden",Kp="Zie {x}",Xp="Maanden",Jp="Nee",Qp="Slaapkamers",tf="Kamers",ef="Prijs",nf="Prijs op aanvraag",rf="Primaire kamers",of="Huistype",af="Verwijderen",sf="Extra aankoopkosten",lf="De genoemde prijs is inclusief kosten",cf="Selecteer",uf="Totale prijs",df="Netto leefruimte",hf="Ja",pf="Je bent hier",Db={clickToFilter:Hp,filter:$p,foundXResults:qp,goBack:Wp,imagesOnlyAsIllustration:Gp,jointDebt:Yp,lookAt:Kp,multiplicatorMonthly:Xp,no:Jp,numberOfBedrooms:Qp,numberOfRooms:tf,price:ef,priceOnRequest:nf,primaryRoomArea:rf,propertyType:of,remove:af,residentialSaleFee:sf,residentialSaleFeeIncluded:lf,"residentialStatus:rent":{development:"In ontwikkeling",draft:"@:unpublished",rent:"Te huur",rented:"Verhuurd",reserved:"Gereserveerd",upcoming:"Komt te huur"},"residentialStatus:sale":{development:"In ontwikkeling",draft:"@:unpublished",reserved:"Gereserveerd",sale:"Te koop",sold:"Verkocht",upcoming:"Komt te koop"},select:cf,totalPrice:uf,useableArea:df,yes:hf,youAreHere:pf},Mb=Object.freeze(Object.defineProperty({__proto__:null,clickToFilter:Hp,default:Db,filter:$p,foundXResults:qp,goBack:Wp,imagesOnlyAsIllustration:Gp,jointDebt:Yp,lookAt:Kp,multiplicatorMonthly:Xp,no:Jp,numberOfBedrooms:Qp,numberOfRooms:tf,price:ef,priceOnRequest:nf,primaryRoomArea:rf,propertyType:of,remove:af,residentialSaleFee:sf,residentialSaleFeeIncluded:lf,select:cf,totalPrice:uf,useableArea:df,yes:hf,youAreHere:pf},Symbol.toStringTag,{value:"Module"})),ff="Tryck för att filtrera",mf="Filtrera",gf="Hittade {0} resultat",vf="Gå tillbaka",_f="Bilder är avsedda som illustrationer",bf="Gemensam skuld",kf="Se {x}",yf="mån",xf="Nej",wf="Sovrum",Ef="Rum",Tf="Pris",Sf="Pris efter förfrågan",Af="Boyta/Boarea",Cf="Bostadstyp",If="Radera",Pf="Omkostnader",Of="Angivet pris är inklusive omkostnader",Lf="Välj",Df="Totalpris",Mf="Bruksarea",Nf="Ja",Ff="Du är här",Nb={clickToFilter:ff,filter:mf,foundXResults:gf,goBack:vf,imagesOnlyAsIllustration:_f,jointDebt:bf,lookAt:kf,multiplicatorMonthly:yf,no:xf,numberOfBedrooms:wf,numberOfRooms:Ef,price:Tf,priceOnRequest:Sf,primaryRoomArea:Af,propertyType:Cf,remove:If,residentialSaleFee:Pf,residentialSaleFeeIncluded:Of,"residentialStatus:rent":{development:"Under utveckling",draft:"@:unpublished",rent:"Till uthyrning",rented:"Uthyrd",reserved:"Reserverat",upcoming:"Kommande försäljning"},"residentialStatus:sale":{development:"Under utveckling",draft:"@:unpublished",reserved:"Reserverat",sale:"Till salu",sold:"Sålt",upcoming:"Kommande försäljning"},select:Lf,totalPrice:Df,useableArea:Mf,yes:Nf,youAreHere:Ff},Fb=Object.freeze(Object.defineProperty({__proto__:null,clickToFilter:ff,default:Nb,filter:mf,foundXResults:gf,goBack:vf,imagesOnlyAsIllustration:_f,jointDebt:bf,lookAt:kf,multiplicatorMonthly:yf,no:xf,numberOfBedrooms:wf,numberOfRooms:Ef,price:Tf,priceOnRequest:Sf,primaryRoomArea:Af,propertyType:Cf,remove:If,residentialSaleFee:Pf,residentialSaleFeeIncluded:Of,select:Lf,totalPrice:Df,useableArea:Mf,yes:Nf,youAreHere:Ff},Symbol.toStringTag,{value:"Module"}));var Rb=function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,s;r<a;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))};function Bb(t,e,i){var r=t.length-e.length,a=Array.from(e);if(r===0)return t.apply(void 0,a);if(r===1){var s=function(c){return t.apply(void 0,Rb([c],a,!1))};return(i||t.lazy)&&(s.lazy=i||t.lazy,s.lazyArgs=e),s}throw new Error("Wrong number of arguments")}function js(){return Bb(zb,arguments)}function zb(t,e,i){for(var r=t,a=0,s=e;a<s.length;a++){var c=s[a];if(r==null||r[c]==null)return i;r=r[c]}return r}var jb=function(t,e,i){if(i||arguments.length===2)for(var r=0,a=e.length,s;r<a;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return t.concat(s||Array.prototype.slice.call(e))};function Vs(t){return Rf(t)}function Rf(t){var e;if(t.length===0)return[];var i=(e=t.match(/^\[(.+?)\](.*)$/))!==null&&e!==void 0?e:t.match(/^\.?([^.[\]]+)(.*)$/);if(i){var r=i[1],a=i[2];return jb([r],Rf(a),!0)}return[t]}const Vb=Object.assign({"../i18n/da.json":Sb,"../i18n/de.json":Cb,"../i18n/en.json":Pb,"../i18n/nb.json":Lb,"../i18n/nl.json":Mb,"../i18n/sv.json":Fb}),_u=Object.fromEntries(Object.entries(Vb).map(([t,e])=>[t.replace(/(\.\.\/|\.json)/g,"").split("/")[1],e]));function Mr(){const t=W("nb");Ae(()=>{t.value=document.documentElement.getAttribute("lang")??"nb"});function e(a,s){return Object.entries(s).reduce((c,[d,h])=>c.replace(`{${d}}`,h),a)}function i(a,s){const c=_u[t.value],d=Vs(a);let h=js(c,d,a).toString();return s&&(h=e(h,s)),h}function r(a,s=1,c){const d=_u[t.value],h=Vs(a),[p,m]=js(d,h,a).toString().split("|").map(g=>g.trim()).map(g=>c?e(g,c):g);return s<=1?p:m}return{t:i,tc:r,locale:t}}function Bf(){const t=W({}),e=W({get(i){return i},set(i,r){}});return Ae(()=>{"Kvass"in window&&window.Kvass&&typeof window.Kvass=="object"&&(t.value=window.Kvass),"KvassConfig"in window&&window.KvassConfig&&typeof window.KvassConfig=="object"&&(e.value=window.KvassConfig)}),{kvassApi:t,kvassConfig:e}}function Zb(t,e=300){let i;return(...r)=>{clearTimeout(i),i=setTimeout(()=>t.apply(this,r),e)}}function Ao(t,e={locale:document.querySelector("html")?.getAttribute("lang")??"nb",currency:sessionStorage.getItem("currency")||"NOK",decimals:0}){const{locale:i,currency:r,decimals:a}=e;if(t)return t.toLocaleString(i,{style:"currency",currency:r,minimumFractionDigits:a})}function zf(t,e){return js(e,Vs(t),void 0)}function jf(t){return typeof t=="number"?!0:typeof t!="string"?!1:!isNaN(Number.parseFloat(t))}function Vf(t){var e,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(i=Vf(t[e]))&&(r&&(r+=" "),r+=i);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Ub(){for(var t,e,i=0,r="";i<arguments.length;)(t=arguments[i++])&&(e=Vf(t))&&(r&&(r+=" "),r+=e);return r}const bu=t=>typeof t=="boolean"?"".concat(t):t===0?"0":t,ku=Ub,Zf=(t,e)=>i=>{var r;if(e?.variants==null)return ku(t,i?.class,i?.className);const{variants:a,defaultVariants:s}=e,c=Object.keys(a).map(p=>{const m=i?.[p],g=s?.[p];if(m===null)return null;const v=bu(m)||bu(g);return a[p][v]}),d=i&&Object.entries(i).reduce((p,m)=>{let[g,v]=m;return v===void 0||(p[g]=v),p},{}),h=e==null||(r=e.compoundVariants)===null||r===void 0?void 0:r.reduce((p,m)=>{let{class:g,className:v,..._}=m;return Object.entries(_).every(y=>{let[k,E]=y;return Array.isArray(E)?E.includes({...s,...d}[k]):{...s,...d}[k]===E})?[...p,g,v]:p},[]);return ku(t,c,h,i?.class,i?.className)},vr=/^[a-z0-9]+(-[a-z0-9]+)*$/,va=(t,e,i,r="")=>{const a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;r=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){const d=a.pop(),h=a.pop(),p={provider:a.length>0?a[0]:r,prefix:h,name:d};return e&&!Co(p)?null:p}const s=a[0],c=s.split("-");if(c.length>1){const d={provider:r,prefix:c.shift(),name:c.join("-")};return e&&!Co(d)?null:d}if(i&&r===""){const d={provider:r,prefix:"",name:s};return e&&!Co(d,i)?null:d}return null},Co=(t,e)=>t?!!((t.provider===""||t.provider.match(vr))&&(e&&t.prefix===""||t.prefix.match(vr))&&t.name.match(vr)):!1,Uf=Object.freeze({left:0,top:0,width:16,height:16}),zo=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_a=Object.freeze({...Uf,...zo}),Zs=Object.freeze({..._a,body:"",hidden:!1});function Hb(t,e){const i={};!t.hFlip!=!e.hFlip&&(i.hFlip=!0),!t.vFlip!=!e.vFlip&&(i.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(i.rotate=r),i}function yu(t,e){const i=Hb(t,e);for(const r in Zs)r in zo?r in t&&!(r in i)&&(i[r]=zo[r]):r in e?i[r]=e[r]:r in t&&(i[r]=t[r]);return i}function $b(t,e){const i=t.icons,r=t.aliases||Object.create(null),a=Object.create(null);function s(c){if(i[c])return a[c]=[];if(!(c in a)){a[c]=null;const d=r[c]&&r[c].parent,h=d&&s(d);h&&(a[c]=[d].concat(h))}return a[c]}return(e||Object.keys(i).concat(Object.keys(r))).forEach(s),a}function qb(t,e,i){const r=t.icons,a=t.aliases||Object.create(null);let s={};function c(d){s=yu(r[d]||a[d],s)}return c(e),i.forEach(c),yu(t,s)}function Hf(t,e){const i=[];if(typeof t!="object"||typeof t.icons!="object")return i;t.not_found instanceof Array&&t.not_found.forEach(a=>{e(a,null),i.push(a)});const r=$b(t);for(const a in r){const s=r[a];s&&(e(a,qb(t,a,s)),i.push(a))}return i}const Wb={provider:"",aliases:{},not_found:{},...Uf};function ps(t,e){for(const i in e)if(i in t&&typeof t[i]!=typeof e[i])return!1;return!0}function $f(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!ps(t,Wb))return null;const i=e.icons;for(const a in i){const s=i[a];if(!a.match(vr)||typeof s.body!="string"||!ps(s,Zs))return null}const r=e.aliases||Object.create(null);for(const a in r){const s=r[a],c=s.parent;if(!a.match(vr)||typeof c!="string"||!i[c]&&!r[c]||!ps(s,Zs))return null}return e}const xu=Object.create(null);function Gb(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function rn(t,e){const i=xu[t]||(xu[t]=Object.create(null));return i[e]||(i[e]=Gb(t,e))}function Sl(t,e){return $f(e)?Hf(e,(i,r)=>{r?t.icons[i]=r:t.missing.add(i)}):[]}function Yb(t,e,i){try{if(typeof i.body=="string")return t.icons[e]={...i},!0}catch{}return!1}let Ir=!1;function qf(t){return typeof t=="boolean"&&(Ir=t),Ir}function Kb(t){const e=typeof t=="string"?va(t,!0,Ir):t;if(e){const i=rn(e.provider,e.prefix),r=e.name;return i.icons[r]||(i.missing.has(r)?null:void 0)}}function Xb(t,e){const i=va(t,!0,Ir);if(!i)return!1;const r=rn(i.provider,i.prefix);return Yb(r,i.name,e)}function Jb(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Ir&&!e&&!t.prefix){let a=!1;return $f(t)&&(t.prefix="",Hf(t,(s,c)=>{c&&Xb(s,c)&&(a=!0)})),a}const i=t.prefix;if(!Co({provider:e,prefix:i,name:"a"}))return!1;const r=rn(e,i);return!!Sl(r,t)}const Wf=Object.freeze({width:null,height:null}),Gf=Object.freeze({...Wf,...zo}),Qb=/(-?[0-9.]*[0-9]+[0-9.]*)/g,tk=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function wu(t,e,i){if(e===1)return t;if(i=i||100,typeof t=="number")return Math.ceil(t*e*i)/i;if(typeof t!="string")return t;const r=t.split(Qb);if(r===null||!r.length)return t;const a=[];let s=r.shift(),c=tk.test(s);for(;;){if(c){const d=parseFloat(s);isNaN(d)?a.push(s):a.push(Math.ceil(d*e*i)/i)}else a.push(s);if(s=r.shift(),s===void 0)return a.join("");c=!c}}const ek=t=>t==="unset"||t==="undefined"||t==="none";function ik(t,e){const i={..._a,...t},r={...Gf,...e},a={left:i.left,top:i.top,width:i.width,height:i.height};let s=i.body;[i,r].forEach(y=>{const k=[],E=y.hFlip,C=y.vFlip;let N=y.rotate;E?C?N+=2:(k.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),k.push("scale(-1 1)"),a.top=a.left=0):C&&(k.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),k.push("scale(1 -1)"),a.top=a.left=0);let O;switch(N<0&&(N-=Math.floor(N/4)*4),N=N%4,N){case 1:O=a.height/2+a.top,k.unshift("rotate(90 "+O.toString()+" "+O.toString()+")");break;case 2:k.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:O=a.width/2+a.left,k.unshift("rotate(-90 "+O.toString()+" "+O.toString()+")");break}N%2===1&&(a.left!==a.top&&(O=a.left,a.left=a.top,a.top=O),a.width!==a.height&&(O=a.width,a.width=a.height,a.height=O)),k.length&&(s='<g transform="'+k.join(" ")+'">'+s+"</g>")});const c=r.width,d=r.height,h=a.width,p=a.height;let m,g;c===null?(g=d===null?"1em":d==="auto"?p:d,m=wu(g,h/p)):(m=c==="auto"?h:c,g=d===null?wu(m,p/h):d==="auto"?p:d);const v={},_=(y,k)=>{ek(k)||(v[y]=k.toString())};return _("width",m),_("height",g),v.viewBox=a.left.toString()+" "+a.top.toString()+" "+h.toString()+" "+p.toString(),{attributes:v,body:s}}const nk=/\sid="(\S+)"/g,rk="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let ok=0;function ak(t,e=rk){const i=[];let r;for(;r=nk.exec(t);)i.push(r[1]);if(!i.length)return t;const a="suffix"+(Math.random()*16777216|Date.now()).toString(16);return i.forEach(s=>{const c=typeof e=="function"?e(s):e+(ok++).toString(),d=s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+d+')([")]|\\.[a-z])',"g"),"$1"+c+a+"$3")}),t=t.replace(new RegExp(a,"g"),""),t}const Us=Object.create(null);function sk(t,e){Us[t]=e}function Hs(t){return Us[t]||Us[""]}function Al(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Cl=Object.create(null),co=["https://api.simplesvg.com","https://api.unisvg.com"],$s=[];for(;co.length>0;)co.length===1||Math.random()>.5?$s.push(co.shift()):$s.push(co.pop());Cl[""]=Al({resources:["https://api.iconify.design"].concat($s)});function Yf(t,e){const i=Al(e);return i===null?!1:(Cl[t]=i,!0)}function Il(t){return Cl[t]}const lk=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let Eu=lk();function ck(t,e){const i=Il(t);if(!i)return 0;let r;if(!i.maxURL)r=0;else{let a=0;i.resources.forEach(c=>{a=Math.max(a,c.length)});const s=e+".json?icons=";r=i.maxURL-a-i.path.length-s.length}return r}function uk(t){return t===404}const dk=(t,e,i)=>{const r=[],a=ck(t,e),s="icons";let c={type:s,provider:t,prefix:e,icons:[]},d=0;return i.forEach((h,p)=>{d+=h.length+1,d>=a&&p>0&&(r.push(c),c={type:s,provider:t,prefix:e,icons:[]},d=h.length),c.icons.push(h)}),r.push(c),r};function hk(t){if(typeof t=="string"){const e=Il(t);if(e)return e.path}return"/"}const pk=(t,e,i)=>{if(!Eu){i("abort",424);return}let r=hk(e.provider);switch(e.type){case"icons":{const s=e.prefix,c=e.icons.join(","),d=new URLSearchParams({icons:c});r+=s+".json?"+d.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:i("abort",400);return}let a=503;Eu(t+r).then(s=>{const c=s.status;if(c!==200){setTimeout(()=>{i(uk(c)?"abort":"next",c)});return}return a=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?i("abort",s):i("next",a)});return}setTimeout(()=>{i("success",s)})}).catch(()=>{i("next",a)})},fk={prepare:dk,send:pk};function mk(t){const e={loaded:[],missing:[],pending:[]},i=Object.create(null);t.sort((a,s)=>a.provider!==s.provider?a.provider.localeCompare(s.provider):a.prefix!==s.prefix?a.prefix.localeCompare(s.prefix):a.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(a=>{if(r.name===a.name&&r.prefix===a.prefix&&r.provider===a.provider)return;r=a;const s=a.provider,c=a.prefix,d=a.name,h=i[s]||(i[s]=Object.create(null)),p=h[c]||(h[c]=rn(s,c));let m;d in p.icons?m=e.loaded:c===""||p.missing.has(d)?m=e.missing:m=e.pending;const g={provider:s,prefix:c,name:d};m.push(g)}),e}function Kf(t,e){t.forEach(i=>{const r=i.loaderCallbacks;r&&(i.loaderCallbacks=r.filter(a=>a.id!==e))})}function gk(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let i=!1;const r=t.provider,a=t.prefix;e.forEach(s=>{const c=s.icons,d=c.pending.length;c.pending=c.pending.filter(h=>{if(h.prefix!==a)return!0;const p=h.name;if(t.icons[p])c.loaded.push({provider:r,prefix:a,name:p});else if(t.missing.has(p))c.missing.push({provider:r,prefix:a,name:p});else return i=!0,!0;return!1}),c.pending.length!==d&&(i||Kf([t],s.id),s.callback(c.loaded.slice(0),c.missing.slice(0),c.pending.slice(0),s.abort))})}))}let vk=0;function _k(t,e,i){const r=vk++,a=Kf.bind(null,i,r);if(!e.pending.length)return a;const s={id:r,icons:e,callback:t,abort:a};return i.forEach(c=>{(c.loaderCallbacks||(c.loaderCallbacks=[])).push(s)}),a}function bk(t,e=!0,i=!1){const r=[];return t.forEach(a=>{const s=typeof a=="string"?va(a,e,i):a;s&&r.push(s)}),r}var kk={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function yk(t,e,i,r){const a=t.resources.length,s=t.random?Math.floor(Math.random()*a):t.index;let c;if(t.random){let U=t.resources.slice(0);for(c=[];U.length>1;){const V=Math.floor(Math.random()*U.length);c.push(U[V]),U=U.slice(0,V).concat(U.slice(V+1))}c=c.concat(U)}else c=t.resources.slice(s).concat(t.resources.slice(0,s));const d=Date.now();let h="pending",p=0,m,g=null,v=[],_=[];typeof r=="function"&&_.push(r);function y(){g&&(clearTimeout(g),g=null)}function k(){h==="pending"&&(h="aborted"),y(),v.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),v=[]}function E(U,V){V&&(_=[]),typeof U=="function"&&_.push(U)}function C(){return{startTime:d,payload:e,status:h,queriesSent:p,queriesPending:v.length,subscribe:E,abort:k}}function N(){h="failed",_.forEach(U=>{U(void 0,m)})}function O(){v.forEach(U=>{U.status==="pending"&&(U.status="aborted")}),v=[]}function j(U,V,Z){const T=V!=="success";switch(v=v.filter(A=>A!==U),h){case"pending":break;case"failed":if(T||!t.dataAfterTimeout)return;break;default:return}if(V==="abort"){m=Z,N();return}if(T){m=Z,v.length||(c.length?z():N());return}if(y(),O(),!t.random){const A=t.resources.indexOf(U.resource);A!==-1&&A!==t.index&&(t.index=A)}h="completed",_.forEach(A=>{A(Z)})}function z(){if(h!=="pending")return;y();const U=c.shift();if(U===void 0){if(v.length){g=setTimeout(()=>{y(),h==="pending"&&(O(),N())},t.timeout);return}N();return}const V={status:"pending",resource:U,callback:(Z,T)=>{j(V,Z,T)}};v.push(V),p++,g=setTimeout(z,t.rotate),i(U,e,V.callback)}return setTimeout(z),C}function Xf(t){const e={...kk,...t};let i=[];function r(){i=i.filter(c=>c().status==="pending")}function a(c,d,h){const p=yk(e,c,d,(m,g)=>{r(),h&&h(m,g)});return i.push(p),p}function s(c){return i.find(d=>c(d))||null}return{query:a,find:s,setIndex:c=>{e.index=c},getIndex:()=>e.index,cleanup:r}}function Tu(){}const fs=Object.create(null);function xk(t){if(!fs[t]){const e=Il(t);if(!e)return;const i=Xf(e),r={config:e,redundancy:i};fs[t]=r}return fs[t]}function wk(t,e,i){let r,a;if(typeof t=="string"){const s=Hs(t);if(!s)return i(void 0,424),Tu;a=s.send;const c=xk(t);c&&(r=c.redundancy)}else{const s=Al(t);if(s){r=Xf(s);const c=t.resources?t.resources[0]:"",d=Hs(c);d&&(a=d.send)}}return!r||!a?(i(void 0,424),Tu):r.query(e,a,i)().abort}const Su="iconify2",Pr="iconify",Jf=Pr+"-count",Au=Pr+"-version",Qf=36e5,Ek=168;function qs(t,e){try{return t.getItem(e)}catch{}}function Pl(t,e,i){try{return t.setItem(e,i),!0}catch{}}function Cu(t,e){try{t.removeItem(e)}catch{}}function Ws(t,e){return Pl(t,Jf,e.toString())}function Gs(t){return parseInt(qs(t,Jf))||0}const ba={local:!0,session:!0},tm={local:new Set,session:new Set};let Ol=!1;function Tk(t){Ol=t}let uo=typeof window>"u"?{}:window;function em(t){const e=t+"Storage";try{if(uo&&uo[e]&&typeof uo[e].length=="number")return uo[e]}catch{}ba[t]=!1}function im(t,e){const i=em(t);if(!i)return;const r=qs(i,Au);if(r!==Su){if(r){const d=Gs(i);for(let h=0;h<d;h++)Cu(i,Pr+h.toString())}Pl(i,Au,Su),Ws(i,0);return}const a=Math.floor(Date.now()/Qf)-Ek,s=d=>{const h=Pr+d.toString(),p=qs(i,h);if(typeof p=="string"){try{const m=JSON.parse(p);if(typeof m=="object"&&typeof m.cached=="number"&&m.cached>a&&typeof m.provider=="string"&&typeof m.data=="object"&&typeof m.data.prefix=="string"&&e(m,d))return!0}catch{}Cu(i,h)}};let c=Gs(i);for(let d=c-1;d>=0;d--)s(d)||(d===c-1?(c--,Ws(i,c)):tm[t].add(d))}function nm(){if(!Ol){Tk(!0);for(const t in ba)im(t,e=>{const i=e.data,r=e.provider,a=i.prefix,s=rn(r,a);if(!Sl(s,i).length)return!1;const c=i.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,c):c,!0})}}function Sk(t,e){const i=t.lastModifiedCached;if(i&&i>=e)return i===e;if(t.lastModifiedCached=e,i)for(const r in ba)im(r,a=>{const s=a.data;return a.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Ak(t,e){Ol||nm();function i(r){let a;if(!ba[r]||!(a=em(r)))return;const s=tm[r];let c;if(s.size)s.delete(c=Array.from(s).shift());else if(c=Gs(a),!Ws(a,c+1))return;const d={cached:Math.floor(Date.now()/Qf),provider:t.provider,data:e};return Pl(a,Pr+c.toString(),JSON.stringify(d))}e.lastModified&&!Sk(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),i("local")||i("session"))}function Iu(){}function Ck(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,gk(t)}))}function Ik(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:i,prefix:r}=t,a=t.iconsToLoad;delete t.iconsToLoad;let s;!a||!(s=Hs(i))||s.prepare(i,r,a).forEach(c=>{wk(i,c,d=>{if(typeof d!="object")c.icons.forEach(h=>{t.missing.add(h)});else try{const h=Sl(t,d);if(!h.length)return;const p=t.pendingIcons;p&&h.forEach(m=>{p.delete(m)}),Ak(t,d)}catch(h){console.error(h)}Ck(t)})})}))}const Pk=(t,e)=>{const i=bk(t,!0,qf()),r=mk(i);if(!r.pending.length){let h=!0;return e&&setTimeout(()=>{h&&e(r.loaded,r.missing,r.pending,Iu)}),()=>{h=!1}}const a=Object.create(null),s=[];let c,d;return r.pending.forEach(h=>{const{provider:p,prefix:m}=h;if(m===d&&p===c)return;c=p,d=m,s.push(rn(p,m));const g=a[p]||(a[p]=Object.create(null));g[m]||(g[m]=[])}),r.pending.forEach(h=>{const{provider:p,prefix:m,name:g}=h,v=rn(p,m),_=v.pendingIcons||(v.pendingIcons=new Set);_.has(g)||(_.add(g),a[p][m].push(g))}),s.forEach(h=>{const{provider:p,prefix:m}=h;a[p][m].length&&Ik(h,a[p][m])}),e?_k(e,r,s):Iu};function Ok(t,e){const i={...t};for(const r in e){const a=e[r],s=typeof a;r in Wf?(a===null||a&&(s==="string"||s==="number"))&&(i[r]=a):s===typeof i[r]&&(i[r]=r==="rotate"?a%4:a)}return i}const Lk=/[\s,]+/;function Dk(t,e){e.split(Lk).forEach(i=>{switch(i.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function Mk(t,e=0){const i=t.replace(/^-?[0-9.]*/,"");function r(a){for(;a<0;)a+=4;return a%4}if(i===""){const a=parseInt(t);return isNaN(a)?0:r(a)}else if(i!==t){let a=0;switch(i){case"%":a=25;break;case"deg":a=90}if(a){let s=parseFloat(t.slice(0,t.length-i.length));return isNaN(s)?0:(s=s/a,s%1===0?r(s):0)}}return e}function Nk(t,e){let i=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)i+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+i+">"+t+"</svg>"}function Fk(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Rk(t){return"data:image/svg+xml,"+Fk(t)}function Bk(t){return'url("'+Rk(t)+'")'}const Pu={...Gf,inline:!1},zk={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},jk={display:"inline-block"},Ys={backgroundColor:"currentColor"},rm={backgroundColor:"transparent"},Ou={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Lu={webkitMask:Ys,mask:Ys,background:rm};for(const t in Lu){const e=Lu[t];for(const i in Ou)e[t+i]=Ou[i]}const Io={};["horizontal","vertical"].forEach(t=>{const e=t.slice(0,1)+"Flip";Io[t+"-flip"]=e,Io[t.slice(0,1)+"-flip"]=e,Io[t+"Flip"]=e});function Du(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Mu=(t,e)=>{const i=Ok(Pu,e),r={...zk},a=e.mode||"svg",s={},c=e.style,d=typeof c=="object"&&!(c instanceof Array)?c:{};for(let k in e){const E=e[k];if(E!==void 0)switch(k){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":i[k]=E===!0||E==="true"||E===1;break;case"flip":typeof E=="string"&&Dk(i,E);break;case"color":s.color=E;break;case"rotate":typeof E=="string"?i[k]=Mk(E):typeof E=="number"&&(i[k]=E);break;case"ariaHidden":case"aria-hidden":E!==!0&&E!=="true"&&delete r["aria-hidden"];break;default:{const C=Io[k];C?(E===!0||E==="true"||E===1)&&(i[C]=!0):Pu[k]===void 0&&(r[k]=E)}}}const h=ik(t,i),p=h.attributes;if(i.inline&&(s.verticalAlign="-0.125em"),a==="svg"){r.style={...s,...d},Object.assign(r,p);let k=0,E=e.id;return typeof E=="string"&&(E=E.replace(/-/g,"_")),r.innerHTML=ak(h.body,E?()=>E+"ID"+k++:"iconifyVue"),he("svg",r)}const{body:m,width:g,height:v}=t,_=a==="mask"||(a==="bg"?!1:m.indexOf("currentColor")!==-1),y=Nk(m,{...p,width:g+"",height:v+""});return r.style={...s,"--svg":Bk(y),width:Du(p.width),height:Du(p.height),...jk,..._?Ys:rm,...d},he("span",r)};qf(!0);sk("",fk);if(typeof document<"u"&&typeof window<"u"){nm();const t=window;if(t.IconifyPreload!==void 0){const e=t.IconifyPreload,i="Invalid IconifyPreload syntax.";typeof e=="object"&&e!==null&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!Jb(r))&&console.error(i)}catch{console.error(i)}})}if(t.IconifyProviders!==void 0){const e=t.IconifyProviders;if(typeof e=="object"&&e!==null)for(let i in e){const r="IconifyProviders["+i+"] is invalid.";try{const a=e[i];if(typeof a!="object"||!a||a.resources===void 0)continue;Yf(i,a)||console.error(r)}catch{console.error(r)}}}}const Vk={..._a,body:""},He=Dt({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,e){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let i;if(typeof t!="string"||(i=va(t,!1,!0))===null)return this.abortLoading(),null;const r=Kb(i);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:Pk([i],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,e&&e(t));const a=["iconify"];return i.prefix!==""&&a.push("iconify--"+i.prefix),i.provider!==""&&a.push("iconify--"+i.provider),{data:r,classes:a}}},render(){this.counter;const t=this.$attrs,e=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!e)return Mu(Vk,t);let i=t;return e.classes&&(i={...t,class:(typeof t.class=="string"?t.class+" ":"")+e.classes.join(" ")}),Mu({..._a,...e.data},i)}});Yf("",{resources:["https://icons.ui.kvass.no"]});function Zk(t){return!t||typeof t!="object"?!1:typeof t.then=="function"&&typeof t.catch=="function"}function Uk(){var t=new Date().getTime(),e=typeof performance<"u"&&performance.now&&performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var r=Math.random()*16;return t>0?(r=(t+r)%16|0,t=Math.floor(t/16)):(r=(e+r)%16|0,e=Math.floor(e/16)),(i==="x"?r:r&3|8).toString(16)})}const om=Dt({__name:"Spinner",props:{size:{default:"medium"}},setup(t){return(e,i)=>(R(),K("span",{class:ti(`k-spinner k-spinner--size-${e.size}`)},null,2))}}),Hk={class:"k-button__content"},$k={key:0,class:"k-button__icon k-button__icon--left"},qk={key:1,class:"k-button__icon k-button__icon--right"},Wk={key:2,class:"k-button__confirm-label"},Di=Dt({__name:"Button",props:{variant:{default:"secondary"},size:{default:"medium"},loading:{type:Boolean},promise:{},confirm:{type:Boolean},is:{type:[String,Object,Function],default:"button"},stateTimeout:{default:1e3},confirmLabel:{default:"Are you sure?"},label:{},icon:{},iconLeft:{},iconRight:{}},emits:["idle","loading","success","error","confirm","click"],setup(t,{emit:e}){const i=t,r={success:"success",confirm:"warning",error:"danger",loading:null,idle:null},a=lt(()=>!g.value||h.value==="loading"?i.variant:h.value=="confirm"?"warning":r[h.value]||i.variant),s=lt(()=>i.loading||h.value==="loading"),c=W(),d=lt(()=>{if(h.value)return["error","success"].includes(h.value)||s.value}),h=W("idle"),p=W(),m=W(),g=lt(()=>h.value||s.value),v=lt(()=>["error","success"].includes(h.value)),_=lt(()=>h.value==="success"?"fa-pro-regular:check":"fa-pro-regular:exclamation-circle");function y(j){if(!j)return;k(),m.value=j,c.value=setTimeout(()=>h.value="loading",100);let z=U=>{k(),i.stateTimeout?(h.value=U,p.value=setTimeout(()=>{k(),e(U)},i.stateTimeout)):e(U)};m.value.then(()=>z("success")).catch(()=>z("error"))}function k(){c.value&&clearTimeout(c.value),p.value&&clearTimeout(p.value),m.value=null,h.value="idle"}Ut(()=>i.promise,j=>{j&&Zk(j)&&y(j)});const E=W(),C=lt(()=>h.value==="confirm");function N(j){if(i.confirm&&h.value!=="confirm")return h.value="confirm";k(),e("click",j)}const O=Zf("k-button",{variants:{variant:{primary:"k-button--variant-primary",secondary:"k-button--variant-secondary",tertiary:"k-button--variant-tertiary",danger:"k-button--variant-danger",warning:"k-button--variant-warning",success:"k-button--variant-success"},size:{small:"k-button--size-small",medium:"k-button--size-medium",large:"k-button--size-large"},isLoading:{true:"k-button--loading"},isBusy:{true:"k-button--busy"}}});return(j,z)=>(R(),Ct(_l(j.is),ee({type:"button",class:dt(O)({variant:a.value,size:j.size,isLoading:s.value,isBusy:d.value}),"aria-busy":d.value,inert:d.value},j.$attrs,{onClick:N,ref_key:"rootElement",ref:E}),{default:Xt(()=>[Bd(tt("span",Hk,[j.icon||j.iconLeft||j.$slots.icon||j.$slots["icon-left"]?(R(),K("span",$k,[xt(j.$slots,"icon-left",{},()=>[xt(j.$slots,"icon",{},()=>[Ht(dt(He),{icon:j.icon||j.iconLeft},null,8,["icon"])])])])):ut("",!0),xt(j.$slots,"default",{},()=>[le(_t(j.label),1)]),j.iconRight||j.$slots["icon-right"]?(R(),K("span",qk,[xt(j.$slots,"icon-right",{},()=>[Ht(dt(He),{icon:j.iconRight},null,8,["icon"])])])):ut("",!0)],512),[[zd,!C.value]]),s.value?(R(),Ct(om,{key:0})):ut("",!0),v.value?(R(),Ct(dt(He),{key:1,class:"k-button__state-indicator",icon:_.value},null,8,["icon"])):ut("",!0),C.value?(R(),K("span",Wk,_t(j.confirmLabel),1)):ut("",!0)]),_:3},16,["class","aria-busy","inert"]))}});var Ii=(t,e=[])=>({parts:(...i)=>{if(Gk(e))return Ii(t,i);throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?")},extendWith:(...i)=>Ii(t,[...e,...i]),rename:i=>Ii(i,e),keys:()=>e,build:()=>[...new Set(e)].reduce((i,r)=>Object.assign(i,{[r]:{selector:[`&[data-scope="${En(t)}"][data-part="${En(r)}"]`,`& [data-scope="${En(t)}"][data-part="${En(r)}"]`].join(", "),attrs:{"data-scope":En(t),"data-part":En(r)}}}),{})}),En=t=>t.replace(/([A-Z])([A-Z])/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase(),Gk=t=>t.length===0,Nt=t=>t?"":void 0,Yk=t=>t?"true":void 0;function jo(t){return typeof t=="object"&&t?.nodeType===Node.ELEMENT_NODE&&typeof t?.nodeName=="string"}function Vo(t,e){return!t||!e||!jo(t)||!jo(e)?!1:t===e||t.contains(e)}var Kk=t=>t.nodeType===Node.DOCUMENT_NODE?t:t.ownerDocument??document;function Nr(t){const e={getRootNode:i=>{var r;return((r=i.getRootNode)==null?void 0:r.call(i))??document},getDoc:i=>Kk(e.getRootNode(i)),getWin:i=>e.getDoc(i).defaultView??window,getActiveElement:i=>e.getDoc(i).activeElement,getById:(i,r)=>e.getRootNode(i).getElementById(r),setValue:(i,r)=>{i==null||r==null||(i.value=r.toString())}};return{...e,...t}}var Xk=t=>t.nodeType===Node.DOCUMENT_NODE;function Ll(t){return Xk(t)?t:t?.ownerDocument??document}function Jk(t){return t?.ownerDocument.defaultView??window}function Zo(t){var e;return((e=t.composedPath)==null?void 0:e.call(t)[0])??t.target}var am=()=>typeof document<"u";function Qk(){return navigator.userAgentData?.platform??navigator.platform}var sm=t=>am()&&t.test(Qk()),ty=()=>am()&&!!navigator.maxTouchPoints,ey=()=>sm(/^Mac/)&&!ty(),iy=()=>sm(/mac|iphone|ipad|ipod/i),Dl=()=>iy()&&!ey();function lm(t,e){return Array.from(t?.querySelectorAll(e)??[])}function cm(t){const e=new Set;function i(r){const a=globalThis.requestAnimationFrame(r);e.add(()=>globalThis.cancelAnimationFrame(a))}return i(()=>i(t)),function(){e.forEach(r=>r())}}function on(t){const e=globalThis.requestAnimationFrame(t);return()=>{globalThis.cancelAnimationFrame(e)}}var ny={border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"};const ry=Symbol(),Nu=Object.getPrototypeOf,Ks=new WeakMap,oy=t=>t&&(Ks.has(t)?Ks.get(t):Nu(t)===Object.prototype||Nu(t)===Array.prototype),ay=t=>oy(t)&&t[ry]||null,Fu=(t,e=!0)=>{Ks.set(t,e)};var ms=t=>typeof t=="object"&&t!==null,Yi=new WeakMap,dr=new WeakSet,sy=(t=Object.is,e=(p,m)=>new Proxy(p,m),i=p=>ms(p)&&!dr.has(p)&&(Array.isArray(p)||!(Symbol.iterator in p))&&!(p instanceof WeakMap)&&!(p instanceof WeakSet)&&!(p instanceof Error)&&!(p instanceof Number)&&!(p instanceof Date)&&!(p instanceof String)&&!(p instanceof RegExp)&&!(p instanceof ArrayBuffer),r=p=>{switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:throw p}},a=new WeakMap,s=(p,m,g=r)=>{const v=a.get(p);if(v?.[0]===m)return v[1];const _=Array.isArray(p)?[]:Object.create(Object.getPrototypeOf(p));return Fu(_,!0),a.set(p,[m,_]),Reflect.ownKeys(p).forEach(y=>{const k=Reflect.get(p,y);dr.has(k)?(Fu(k,!1),_[y]=k):k instanceof Promise?Object.defineProperty(_,y,{get(){return g(k)}}):Yi.has(k)?_[y]=jn(k,g):_[y]=k}),Object.freeze(_)},c=new WeakMap,d=[1,1],h=p=>{if(!ms(p))throw new Error("object required");const m=c.get(p);if(m)return m;let g=d[0];const v=new Set,_=(Z,T=++d[0])=>{g!==T&&(g=T,v.forEach(A=>A(Z,T)))};let y=d[1];const k=(Z=++d[1])=>(y!==Z&&!v.size&&(y=Z,C.forEach(([T])=>{const A=T[1](Z);A>g&&(g=A)})),g),E=Z=>(T,A)=>{const B=[...T];B[1]=[Z,...B[1]],_(B,A)},C=new Map,N=(Z,T)=>{if(v.size){const A=T[3](E(Z));C.set(Z,[T,A])}else C.set(Z,[T])},O=Z=>{var T;const A=C.get(Z);A&&(C.delete(Z),(T=A[1])==null||T.call(A))},j=Z=>(v.add(Z),v.size===1&&C.forEach(([T,A],B)=>{const $=T[3](E(B));C.set(B,[T,$])}),()=>{v.delete(Z),v.size===0&&C.forEach(([T,A],B)=>{A&&(A(),C.set(B,[T]))})}),z=Array.isArray(p)?[]:Object.create(Object.getPrototypeOf(p)),U=e(z,{deleteProperty(Z,T){const A=Reflect.get(Z,T);O(T);const B=Reflect.deleteProperty(Z,T);return B&&_(["delete",[T],A]),B},set(Z,T,A,B){var $;const nt=Reflect.has(Z,T),w=Reflect.get(Z,T,B);if(nt&&(t(w,A)||c.has(A)&&t(w,c.get(A))))return!0;O(T),ms(A)&&(A=ay(A)||A);let P=A;if(!(($=Object.getOwnPropertyDescriptor(Z,T))!=null&&$.set))if(A instanceof Promise)A.then(F=>{A.status="fulfilled",A.value=F,_(["resolve",[T],F])}).catch(F=>{A.status="rejected",A.reason=F,_(["reject",[T],F])});else{!Yi.has(A)&&i(A)&&(P=Ml(A));const F=!dr.has(P)&&Yi.get(P);F&&N(T,F)}return Reflect.set(Z,T,P,B),_(["set",[T],A,w]),!0}});c.set(p,U);const V=[z,k,s,j];return Yi.set(U,V),Reflect.ownKeys(p).forEach(Z=>{const T=Object.getOwnPropertyDescriptor(p,Z);T.get||T.set?Object.defineProperty(z,Z,T):U[Z]=p[Z]}),U})=>[h,Yi,dr,t,e,i,r,a,s,c,d],[ly]=sy();function Ml(t={}){return ly(t)}function Xs(t,e,i){const r=Yi.get(t);let a;const s=[],c=r[3];let d=!1;const h=c(p=>{if(s.push(p),i){e(s.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,d&&e(s.splice(0))}))});return d=!0,()=>{d=!1,h()}}function jn(t,e){const i=Yi.get(t),[r,a,s]=i;return s(r,a(),e)}function Ru(t){return dr.add(t),t}function cy(t,e){Object.keys(e).forEach(r=>{if(Object.getOwnPropertyDescriptor(t,r))throw new Error("object property already defined");const a=e[r],{get:s,set:c}=typeof a=="function"?{get:a}:a,d={};d.get=()=>s(jn(i)),c&&(d.set=h=>c(i,h)),Object.defineProperty(t,r,d)});const i=Ml(t);return i}var uy=(t,e)=>Object.is(t,e);function Bu(t,e,i,r,a){let s=Reflect.get(jn(t),e);const c=a||uy;function d(){const h=jn(t);c(s,h[e])||(i(h[e]),s=Reflect.get(h,e))}return Xs(t,d,r)}function zu(t,e,i){typeof i.value=="object"&&(i.value=On(i.value)),!i.enumerable||i.get||i.set||!i.configurable||!i.writable||e==="__proto__"?Object.defineProperty(t,e,i):t[e]=i.value}function On(t){if(typeof t!="object")return t;var e=0,i,r,a,s=Object.prototype.toString.call(t);if(s==="[object Object]"?a=Object.create(t.__proto__||null):s==="[object Array]"?a=Array(t.length):s==="[object Set]"?(a=new Set,t.forEach(function(c){a.add(On(c))})):s==="[object Map]"?(a=new Map,t.forEach(function(c,d){a.set(On(d),On(c))})):s==="[object Date]"?a=new Date(+t):s==="[object RegExp]"?a=new RegExp(t.source,t.flags):s==="[object DataView]"?a=new t.constructor(On(t.buffer)):s==="[object ArrayBuffer]"?a=t.slice(0):s.slice(-6)==="Array]"&&(a=new t.constructor(t)),a){for(r=Object.getOwnPropertySymbols(t);e<r.length;e++)zu(a,r[e],Object.getOwnPropertyDescriptor(t,r[e]));for(e=0,r=Object.getOwnPropertyNames(t);e<r.length;e++)Object.hasOwnProperty.call(a,i=r[e])&&a[i]===t[i]||zu(a,i,Object.getOwnPropertyDescriptor(t,i))}return a||t}var dy=Object.defineProperty,hy=(t,e,i)=>e in t?dy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Y=(t,e,i)=>(hy(t,typeof e!="symbol"?e+"":e,i),i);function py(t){for(;t.length>0;)t.pop();return t}var ju=(t,...e)=>(typeof t=="function"?t(...e):t)??void 0,ci=t=>t,gs=()=>{},fy=(()=>{let t=0;return()=>(t++,t.toString(36))})(),_r=t=>Array.isArray(t),br=t=>!(t==null||typeof t!="object"||_r(t)),my=t=>typeof t=="number"&&!Number.isNaN(t),Je=t=>typeof t=="string",Uo=t=>typeof t=="function";function Ho(t){if(!gy(t)||t===void 0)return t;const e=Reflect.ownKeys(t).filter(r=>typeof r=="string"),i={};for(const r of e){const a=t[r];a!==void 0&&(i[r]=Ho(a))}return i}var gy=t=>t&&typeof t=="object"&&t.constructor===Object;function vs(...t){const e=t.length===1?t[0]:t[1];t.length!==2||t[0]}function Po(...t){const e=t.length===1?t[0]:t[1];t.length!==2||t[0]}function um(t,...e){for(const i of e){const r=Ho(i);for(const a in r)br(i[a])?(t[a]||(t[a]={}),um(t[a],i[a])):t[a]=i[a]}return t}function Vu(t){return On(t)}function fe(t){return Je(t)?{type:t}:t}function Ei(t){return t?_r(t)?t.slice():[t]:[]}function dm(t){return br(t)&&t.predicate!=null}var vy=()=>!0;function Nl(t,e,i,r){return a=>{var s;return Je(a)?!!((s=t[a])!=null&&s.call(t,e,i,r)):Uo(a)?a(e,i,r):a.predicate(t)(e,i,r)}}function _y(...t){return{predicate:e=>(i,r,a)=>t.map(Nl(e,i,r,a)).some(Boolean)}}function by(...t){return{predicate:e=>(i,r,a)=>t.map(Nl(e,i,r,a)).every(Boolean)}}function ky(t){return{predicate:e=>(i,r,a)=>!Nl(e,i,r,a)(t)}}function yy(...t){return(e,i,r)=>r.state.matches(...t)}var xy={or:_y,and:by,not:ky,stateIn:yy};function hm(t,e){return t=t??vy,(i,r,a)=>{if(Je(t)){const s=e[t];return Uo(s)?s(i,r,a):s}return dm(t)?t.predicate(e)(i,r,a):t?.(i,r,a)}}function _s(t,e){return(i,r,a)=>dm(t)?t.predicate(e)(i,r,a):t}function wy(t){const e=t.computed??ci({}),i=t.context??ci({}),r=Ml({value:t.initial??"",previousValue:"",event:ci({}),previousEvent:ci({}),context:cy(i,e),done:!1,tags:[],hasTag(a){return this.tags.includes(a)},matches(...a){return a.includes(this.value)},can(a){return ci(this).nextEvents.includes(a)},get nextEvents(){var a,s;const c=((s=(a=t.states)==null?void 0:a[this.value])==null?void 0:s.on)??{},d=t?.on??{};return Object.keys({...c,...d})},get changed(){return this.event.value==="machine.init"||!this.previousValue?!1:this.value!==this.previousValue}});return ci(r)}function ho(t,e){return(i,r)=>{if(my(t))return t;if(Uo(t))return t(i,r);if(Je(t)){const a=Number.parseFloat(t);if(!Number.isNaN(a))return a;if(e){const s=e?.[t];return Po(s==null,`[@zag-js/core > determine-delay] Cannot determine delay for \`${t}\`. It doesn't exist in \`options.delays\``),Uo(s)?s(i,r):s}}}}function Ey(t){return Je(t)?{target:t}:t}function Ty(t,e){return(i,r,a)=>Ei(t).map(Ey).find(s=>hm(s.guard,e)(i,r,a)??s.target??s.actions)}var Sy=class pm{constructor(e,i){var r,a,s,c,d,h;Y(this,"status","Not Started"),Y(this,"state"),Y(this,"initialState"),Y(this,"initialContext"),Y(this,"id"),Y(this,"type","machine"),Y(this,"activityEvents",new Map),Y(this,"delayedEvents",new Map),Y(this,"stateListeners",new Set),Y(this,"contextListeners",new Set),Y(this,"eventListeners",new Set),Y(this,"doneListeners",new Set),Y(this,"contextWatchers",new Set),Y(this,"removeStateListener",gs),Y(this,"removeEventListener",gs),Y(this,"removeContextListener",gs),Y(this,"parent"),Y(this,"children",new Map),Y(this,"guardMap"),Y(this,"actionMap"),Y(this,"delayMap"),Y(this,"activityMap"),Y(this,"sync"),Y(this,"options"),Y(this,"config"),Y(this,"start",m=>{if(this.state.value="",this.status==="Running")return this;this.status="Running",this.removeStateListener=Xs(this.state,()=>{this.stateListeners.forEach(E=>{E(this.stateSnapshot)})},this.sync),this.removeEventListener=Bu(this.state,"event",E=>{this.executeActions(this.config.onEvent,E),this.eventListeners.forEach(C=>{C(E)})},this.sync),this.removeContextListener=Xs(this.state.context,()=>{this.log("Context:",this.contextSnapshot),this.contextListeners.forEach(E=>{E(this.contextSnapshot)})},this.sync||this.options.debug),this.setupContextWatchers(),this.executeActivities(fe("machine.start"),Ei(this.config.activities),"machine.start"),this.executeActions(this.config.entry,fe("machine.start"));const g=fe("machine.init"),v=br(m)?m.value:m,_=br(m)?m.context:void 0;_&&this.setContext(_);const y={target:v??this.config.initial},k=this.getNextStateInfo(y,g);return this.initialState=k,this.performStateChangeEffects(this.state.value,k,g),this}),Y(this,"setupContextWatchers",()=>{var m;for(const[g,v]of Object.entries(this.config.watch??{})){const _=(m=this.options.compareFns)==null?void 0:m[g],y=Bu(this.state.context,g,()=>{this.executeActions(v,this.state.event)},this.sync,_);this.contextWatchers.add(y)}}),Y(this,"stop",()=>{if(this.status!=="Stopped")return this.performExitEffects(this.state.value,fe("machine.stop")),this.executeActions(this.config.exit,fe("machine.stop")),this.setState(""),this.setEvent("machine.stop"),this.stopStateListeners(),this.stopChildren(),this.stopActivities(),this.stopDelayedEvents(),this.stopContextWatchers(),this.stopEventListeners(),this.stopContextListeners(),this.status="Stopped",this}),Y(this,"stopEventListeners",()=>{this.eventListeners.clear(),this.removeEventListener()}),Y(this,"stopContextListeners",()=>{this.contextListeners.clear(),this.removeContextListener()}),Y(this,"stopStateListeners",()=>{this.removeStateListener(),this.stateListeners.clear()}),Y(this,"stopContextWatchers",()=>{this.contextWatchers.forEach(m=>m()),this.contextWatchers.clear()}),Y(this,"stopDelayedEvents",()=>{this.delayedEvents.forEach(m=>{m.forEach(g=>g())}),this.delayedEvents.clear()}),Y(this,"stopActivities",m=>{var g,v;m?((g=this.activityEvents.get(m))==null||g.forEach(_=>_()),(v=this.activityEvents.get(m))==null||v.clear(),this.activityEvents.delete(m)):(this.activityEvents.forEach(_=>{_.forEach(y=>y()),_.clear()}),this.activityEvents.clear())}),Y(this,"sendChild",(m,g)=>{const v=fe(m),_=ju(g,this.contextSnapshot),y=this.children.get(_);y||Po(`[@zag-js/core] Cannot send '${v.type}' event to unknown child`),y.send(v)}),Y(this,"stopChild",m=>{this.children.has(m)||Po(`[@zag-js/core > stop-child] Cannot stop unknown child ${m}`),this.children.get(m).stop(),this.children.delete(m)}),Y(this,"removeChild",m=>{this.children.delete(m)}),Y(this,"stopChildren",()=>{this.children.forEach(m=>m.stop()),this.children.clear()}),Y(this,"setParent",m=>{this.parent=m}),Y(this,"spawn",(m,g)=>{const v=ju(m);return g&&(v.id=g),v.type="machine.actor",v.setParent(this),this.children.set(v.id,ci(v)),v.onDone(()=>{this.removeChild(v.id)}).start(),ci(Ru(v))}),Y(this,"addActivityCleanup",(m,g)=>{var v;m&&(this.activityEvents.has(m)?(v=this.activityEvents.get(m))==null||v.add(g):this.activityEvents.set(m,new Set([g])))}),Y(this,"setState",m=>{this.state.previousValue=this.state.value,this.state.value=m;const g=this.getStateNode(m);m==null?py(this.state.tags):this.state.tags=Ei(g?.tags)}),Y(this,"transformContext",m=>{var g,v;return(v=(g=this.options)==null?void 0:g.transformContext)==null||v.call(g,m),m}),Y(this,"setContext",m=>{m&&um(this.state.context,this.transformContext(m))}),Y(this,"withContext",m=>{const g=this.transformContext(m),v={...this.config.context,...Ho(g)};return new pm({...this.config,context:v},this.options)}),Y(this,"setOptions",m=>{const g=Ho(m);this.actionMap={...this.actionMap,...g.actions},this.delayMap={...this.delayMap,...g.delays},this.activityMap={...this.activityMap,...g.activities},this.guardMap={...this.guardMap,...g.guards}}),Y(this,"getStateNode",m=>{var g;if(m)return(g=this.config.states)==null?void 0:g[m]}),Y(this,"getNextStateInfo",(m,g)=>{const v=this.determineTransition(m,g),_=!(v!=null&&v.target),y=v?.target??this.state.value,k=this.state.value!==y,E=this.getStateNode(y),C={reenter:!_&&!k&&!(v!=null&&v.internal),transition:v,stateNode:E,target:y,changed:k};return this.log("NextState:",`[${g.type}]`,this.state.value,"---->",C.target),C}),Y(this,"getActionFromDelayedTransition",m=>{const g=fe("machine.after"),v=ho(m.delay,this.delayMap)(this.contextSnapshot,g);let _;return{entry:()=>{_=globalThis.setTimeout(()=>{const y=this.getNextStateInfo(m,g);this.performStateChangeEffects(this.state.value,y,g)},v)},exit:()=>{globalThis.clearTimeout(_)}}}),Y(this,"getDelayedEventActions",m=>{const g=this.getStateNode(m),v=fe("machine.after");if(!g||!g.after)return;const _=[],y=[];if(_r(g.after)){const k=this.determineTransition(g.after,v);if(!k)return;const E=this.getActionFromDelayedTransition(k);_.push(E.entry),y.push(E.exit)}else if(br(g.after))for(const k in g.after){const E=g.after[k];let C={};if(_r(E)){const O=this.determineTransition(E,v);O&&(C=O)}else Je(E)?C={target:E,delay:k}:C={...E,delay:k};const N=this.getActionFromDelayedTransition(C);_.push(N.entry),y.push(N.exit)}return{entries:_,exits:y}}),Y(this,"executeActions",(m,g)=>{var v;const _=_s(m,this.guardMap)(this.contextSnapshot,g,this.guardMeta);for(const y of Ei(_)){const k=Je(y)?(v=this.actionMap)==null?void 0:v[y]:y;vs(Je(y)&&!k,`[@zag-js/core > execute-actions] No implementation found for action: \`${y}\``),k?.(this.state.context,g,this.meta)}}),Y(this,"executeActivities",(m,g,v)=>{var _;for(const y of g){const k=Je(y)?(_=this.activityMap)==null?void 0:_[y]:y;if(!k){vs(`[@zag-js/core > execute-activity] No implementation found for activity: \`${y}\``);continue}const E=k(this.state.context,m,this.meta);E&&this.addActivityCleanup(v??this.state.value,E)}}),Y(this,"createEveryActivities",(m,g)=>{if(!m)return;const v=fe("machine.every");if(_r(m)){const _=Ei(m).find(k=>{const E=k.delay,C=ho(E,this.delayMap)(this.contextSnapshot,v);return hm(k.guard,this.guardMap)(this.contextSnapshot,v,this.guardMeta)??C!=null});if(!_)return;const y=ho(_.delay,this.delayMap)(this.contextSnapshot,v);g(()=>{const k=globalThis.setInterval(()=>{this.executeActions(_.actions,v)},y);return()=>{globalThis.clearInterval(k)}})}else for(const _ in m){const y=m?.[_],k=ho(_,this.delayMap)(this.contextSnapshot,v);g(()=>{const E=globalThis.setInterval(()=>{this.executeActions(y,v)},k);return()=>{globalThis.clearInterval(E)}})}}),Y(this,"setEvent",m=>{this.state.previousEvent=this.state.event,this.state.event=Ru(fe(m))}),Y(this,"performExitEffects",(m,g)=>{const v=this.state.value;if(v==="")return;const _=m?this.getStateNode(m):void 0;this.stopActivities(v);const y=_s(_?.exit,this.guardMap)(this.contextSnapshot,g,this.guardMeta),k=Ei(y),E=this.delayedEvents.get(v);E&&k.push(...E),this.executeActions(k,g),this.eventListeners.clear()}),Y(this,"performEntryEffects",(m,g)=>{const v=this.getStateNode(m),_=Ei(v?.activities);this.createEveryActivities(v?.every,C=>{_.unshift(C)}),_.length>0&&this.executeActivities(g,_);const y=_s(v?.entry,this.guardMap)(this.contextSnapshot,g,this.guardMeta),k=Ei(y),E=this.getDelayedEventActions(m);v!=null&&v.after&&E&&(this.delayedEvents.set(m,E?.exits),k.push(...E.entries)),this.executeActions(k,g),v?.type==="final"&&(this.state.done=!0,this.doneListeners.forEach(C=>{C(this.stateSnapshot)}),this.stop())}),Y(this,"performTransitionEffects",(m,g)=>{const v=this.determineTransition(m,g);this.executeActions(v?.actions,g)}),Y(this,"performStateChangeEffects",(m,g,v)=>{this.setEvent(v);const _=g.changed||g.reenter;_&&this.performExitEffects(m,v),this.performTransitionEffects(g.transition,v),this.setState(g.target),_&&this.performEntryEffects(g.target,v)}),Y(this,"determineTransition",(m,g)=>Ty(m,this.guardMap)?.(this.contextSnapshot,g,this.guardMeta)),Y(this,"sendParent",m=>{var g;this.parent||Po("[@zag-js/core > send-parent] Cannot send event to an unknown parent");const v=fe(m);(g=this.parent)==null||g.send(v)}),Y(this,"log",(...m)=>{}),Y(this,"send",m=>{const g=fe(m);this.transition(this.state.value,g)}),Y(this,"transition",(m,g)=>{var v,_;const y=Je(m)?this.getStateNode(m):m?.stateNode,k=fe(g);if(!y&&!this.config.on){const N=this.status==="Stopped"?"[@zag-js/core > transition] Cannot transition a stopped machine":`[@zag-js/core > transition] State does not have a definition for \`state\`: ${m}, \`event\`: ${k.type}`;vs(N);return}const E=((v=y?.on)==null?void 0:v[k.type])??((_=this.config.on)==null?void 0:_[k.type]),C=this.getNextStateInfo(E,k);return this.performStateChangeEffects(this.state.value,C,k),C.stateNode}),Y(this,"subscribe",m=>(this.stateListeners.add(m),this.status==="Running"&&m(this.stateSnapshot),()=>{this.stateListeners.delete(m)})),Y(this,"onDone",m=>(this.doneListeners.add(m),this)),Y(this,"onTransition",m=>(this.stateListeners.add(m),this.status==="Running"&&m(this.stateSnapshot),this)),Y(this,"onChange",m=>(this.contextListeners.add(m),this)),Y(this,"onEvent",m=>(this.eventListeners.add(m),this)),this.config=Vu(e),this.options=Vu(i??{}),this.id=this.config.id??`machine-${fy()}`,this.guardMap=((r=this.options)==null?void 0:r.guards)??{},this.actionMap=((a=this.options)==null?void 0:a.actions)??{},this.delayMap=((s=this.options)==null?void 0:s.delays)??{},this.activityMap=((c=this.options)==null?void 0:c.activities)??{},this.sync=((d=this.options)==null?void 0:d.sync)??!1,this.state=wy(this.config),this.initialContext=jn(this.state.context),this.transformContext(this.state.context);const p=fe("machine.created");this.executeActions((h=this.config)==null?void 0:h.created,p)}get stateSnapshot(){return ci(jn(this.state))}getState(){return this.stateSnapshot}get contextSnapshot(){return this.stateSnapshot.context}get self(){const e=this;return{id:this.id,send:this.send.bind(this),sendParent:this.sendParent.bind(this),sendChild:this.sendChild.bind(this),stop:this.stop.bind(this),stopChild:this.stopChild.bind(this),spawn:this.spawn.bind(this),get state(){return e.stateSnapshot},get initialContext(){return e.initialContext},get initialState(){var i;return((i=e.initialState)==null?void 0:i.target)??""}}}get meta(){var e;return{state:this.stateSnapshot,guards:this.guardMap,send:this.send.bind(this),self:this.self,initialContext:this.initialContext,initialState:((e=this.initialState)==null?void 0:e.target)??"",getState:()=>this.stateSnapshot,getAction:i=>this.actionMap[i],getGuard:i=>this.guardMap[i]}}get guardMeta(){return{state:this.stateSnapshot}}get[Symbol.toStringTag](){return"Machine"}},Fl=(t,e)=>new Sy(t,e);function Ay(t,e,i){if(!t)return;const r=t.ownerDocument.defaultView||window,a=new r.MutationObserver(s=>{for(const c of s)c.type==="attributes"&&c.attributeName&&e.includes(c.attributeName)&&i(c)});return a.observe(t,{attributes:!0,attributeFilter:e}),()=>a.disconnect()}var Rl=t=>t.ownerDocument.defaultView||window;function fm(t,e){const{type:i="HTMLInputElement",property:r="value"}=e,a=Rl(t)[i].prototype;return Object.getOwnPropertyDescriptor(a,r)??{}}function Cy(t,e,i={}){var r;(r=fm(t,i).set)==null||r.call(t,e)}function Iy(t,e){var i;(i=fm(t,{type:"HTMLInputElement",property:"checked"}).set)==null||i.call(t,e)}function mm(t,e){const{value:i,bubbles:r=!0}=e;if(!t)return;const a=Rl(t);t instanceof a.HTMLInputElement&&(Cy(t,`${i}`),t.dispatchEvent(new a.Event("input",{bubbles:r})))}function Py(t,e){const{checked:i,bubbles:r=!0}=e;if(!t)return;const a=Rl(t);t instanceof a.HTMLInputElement&&(Iy(t,i),t.dispatchEvent(new a.Event("click",{bubbles:r})),t.dispatchEvent(new a.Event("change",{bubbles:r})))}function Oy(t){return Ly(t)?t.form:t.closest("form")}function Ly(t){return t.matches("textarea, input, select, button")}function Dy(t,e){if(!t)return;const i=Oy(t);return i?.addEventListener("reset",e,{passive:!0}),()=>{i?.removeEventListener("reset",e)}}function My(t,e){const i=t?.closest("fieldset");if(i)return e(i.disabled),Ay(i,["disabled"],()=>e(i.disabled))}function gm(t,e){if(!t)return;const{onFieldsetDisabledChange:i,onFormReset:r}=e,a=[Dy(t,r),My(t,i)];return()=>{a.forEach(s=>s?.())}}var Zu=(t,...e)=>(typeof t=="function"?t(...e):t)??void 0,Uu=(...t)=>(...e)=>{t.forEach(function(i){i?.(...e)})};function ka(t){if(!Ny(t)||t===void 0)return t;const e=Reflect.ownKeys(t).filter(r=>typeof r=="string"),i={};for(const r of e){const a=t[r];a!==void 0&&(i[r]=ka(a))}return i}var Ny=t=>t&&typeof t=="object"&&t.constructor===Object;function Fy(...t){const e=t.length===1?t[0]:t[1];t.length!==2||t[0]}var Ry=Ii("checkbox").parts("root","label","control"),bs=Ry.build(),ge=Nr({getRootId:t=>{var e;return((e=t.ids)==null?void 0:e.root)??`checkbox:${t.id}`},getLabelId:t=>{var e;return((e=t.ids)==null?void 0:e.label)??`checkbox:${t.id}:label`},getControlId:t=>{var e;return((e=t.ids)==null?void 0:e.control)??`checkbox:${t.id}:control`},getHiddenInputId:t=>{var e;return((e=t.ids)==null?void 0:e.hiddenInput)??`checkbox:${t.id}:hidden`},getRootEl:t=>ge.getById(t,ge.getRootId(t)),getHiddenInputEl:t=>ge.getById(t,ge.getHiddenInputId(t))});function By(t,e,i){const r=t.context.isDisabled,a=!r&&t.context.focused,s=t.context.isChecked,c=t.context.isIndeterminate,d={"data-active":Nt(t.context.active),"data-focus":Nt(a),"data-hover":Nt(t.context.hovered),"data-disabled":Nt(r),"data-state":c?"indeterminate":t.context.checked?"checked":"unchecked","data-invalid":Nt(t.context.invalid)};return{isChecked:s,isDisabled:r,isIndeterminate:c,isFocused:a,checkedState:t.context.checked,setChecked(h){e({type:"CHECKED.SET",checked:h,isTrusted:!1})},toggleChecked(){e({type:"CHECKED.TOGGLE",checked:s,isTrusted:!1})},rootProps:i.label({...bs.root.attrs,...d,id:ge.getRootId(t.context),htmlFor:ge.getHiddenInputId(t.context),onPointerMove(){r||e({type:"CONTEXT.SET",context:{hovered:!0}})},onPointerLeave(){r||e({type:"CONTEXT.SET",context:{hovered:!1}})},onPointerDown(h){r||(a&&h.pointerType==="mouse"&&h.preventDefault(),e({type:"CONTEXT.SET",context:{active:!0}}))},onPointerUp(){r||e({type:"CONTEXT.SET",context:{active:!1}})},onClick(h){h.target===ge.getHiddenInputEl(t.context)&&h.stopPropagation()}}),labelProps:i.element({...bs.label.attrs,...d,id:ge.getLabelId(t.context)}),controlProps:i.element({...bs.control.attrs,...d,id:ge.getControlId(t.context),"aria-hidden":!0}),hiddenInputProps:i.input({id:ge.getHiddenInputId(t.context),type:"checkbox",required:t.context.required,defaultChecked:s,disabled:r,"data-disabled":Nt(r),"aria-labelledby":ge.getLabelId(t.context),"aria-invalid":t.context.invalid,name:t.context.name,form:t.context.form,value:t.context.value,style:ny,onChange(h){const p=h.currentTarget.checked;e({type:"CHECKED.SET",checked:p,isTrusted:!0})},onBlur(){e({type:"CONTEXT.SET",context:{focused:!1}})},onFocus(){e({type:"CONTEXT.SET",context:{focused:!0}})},onKeyDown(h){h.key===" "&&e({type:"CONTEXT.SET",context:{active:!0}})},onKeyUp(h){h.key===" "&&e({type:"CONTEXT.SET",context:{active:!1}})}})}}var{not:Hu}=xy;function zy(t){const e=ka(t);return Fl({id:"checkbox",initial:"ready",context:{checked:!1,value:"on",disabled:!1,...e,fieldsetDisabled:!1},watch:{disabled:"removeFocusIfNeeded",checked:"syncInputElement"},activities:["trackFormControlState"],on:{"CHECKED.TOGGLE":[{guard:Hu("isTrusted"),actions:["toggleChecked","dispatchChangeEvent"]},{actions:["toggleChecked"]}],"CHECKED.SET":[{guard:Hu("isTrusted"),actions:["setChecked","dispatchChangeEvent"]},{actions:["setChecked"]}],"CONTEXT.SET":{actions:["setContext"]}},computed:{isIndeterminate:i=>Js(i.checked),isChecked:i=>$u(i.checked),isDisabled:i=>!!i.disabled||i.fieldsetDisabled},states:{ready:{}}},{guards:{isTrusted:(i,r)=>!!r.isTrusted},activities:{trackFormControlState(i,r,{send:a,initialContext:s}){return gm(ge.getHiddenInputEl(i),{onFieldsetDisabledChange(c){i.fieldsetDisabled=c},onFormReset(){a({type:"CHECKED.SET",checked:!!s.checked})}})}},actions:{setContext(i,r){Object.assign(i,r.context)},syncInputElement(i){const r=ge.getHiddenInputEl(i);r&&(r.checked=i.isChecked,r.indeterminate=i.isIndeterminate)},removeFocusIfNeeded(i){i.disabled&&i.focused&&(i.focused=!1)},setChecked(i,r){qu.checked(i,r.checked)},toggleChecked(i){const r=Js(i.checked)?!0:!i.checked;qu.checked(i,r)},dispatchChangeEvent(i){const r=ge.getHiddenInputEl(i);Py(r,{checked:$u(i.checked)})}}})}function Js(t){return t==="indeterminate"}function $u(t){return Js(t)?!1:!!t}var jy={change:t=>{var e;(e=t.onChange)==null||e.call(t,{checked:t.checked})}},qu={checked:(t,e)=>{t.checked=e,jy.change(t)}};function Vy(t){return new Proxy({},{get(){return t}})}function Zy(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}var Wu={htmlFor:"for",className:"class",onDoubleClick:"onDblclick",onChange:"onInput",onFocus:"onFocusin",onBlur:"onFocusout",defaultValue:"value",defaultChecked:"checked"};function Uy(t){return t in Wu?Wu[t]:t.startsWith("on")?`on${Zy(t.substr(2))}`:t.toLowerCase()}var Bl=Vy(t=>{const e={};for(const i in t){const r=t[i];i==="children"?typeof r=="string"&&(e.innerHTML=r):e[Uy(i)]=t[i]}return e});function Hy(t,e){const{actions:i,state:r,context:a}=e??{},s=typeof t=="function"?t():t,c=a?s.withContext(a.value):s;return Ae(()=>{c.start(r),c.state.can("SETUP")&&c.send("SETUP"),Vd(()=>{c.stop()})}),Wv(()=>{c.setOptions({actions:i})}),a&&Ut(a,c.setContext,{deep:!0}),c}function zl(t,e){const i=Hy(t,e),r=da(i.state);return Ae(()=>{const a=i.subscribe(s=>{r.value=s});Vd(()=>{a?.()})}),[r,i.send,i]}function ya(t={}){const{prefix:e}=t,i=Uk();return e?`${e}-${i}`:i}const $y={class:"k-checkbox__label"},qy={key:0,class:"k-checkbox__help"},Wy=Dt({__name:"Checkbox",props:{modelValue:{type:[Boolean,Array]},value:{},label:{},disabled:{type:Boolean},help:{}},emits:["update:modelValue"],setup(t,{emit:e}){const i=t;if(i.modelValue instanceof Array&&!i.value)throw new Error("props.value is required if props.modelValue is an array");const r=()=>{const{modelValue:p,value:m}=i;return p instanceof Array?p.some(g=>ao(g)===ao(m)):!!p};function a(p){const{modelValue:m,value:g}=i;if(!(m instanceof Array))return e("update:modelValue",typeof p=="boolean"?p:void 0);if(!(typeof p!="boolean"||!g))return p?e("update:modelValue",[...m,g]):e("update:modelValue",m.filter(v=>ao(v)!==ao(g)))}const s={id:ya(),checked:r(),onChange:({checked:p})=>{if(r()!==p)return a(p)}},[c,d]=zl(zy(s),{context:lt(()=>({disabled:i.disabled}))}),h=lt(()=>By(c.value,d,Bl));return Ut(()=>i.modelValue,()=>{const p=r();if(h.value.isChecked!==p)return h.value.setChecked(p)}),(p,m)=>(R(),K("label",ee({class:"k-checkbox"},h.value.rootProps),[tt("div",Xi(Ji(h.value.controlProps)),[h.value.isChecked?(R(),Ct(dt(He),{key:0,icon:"fa-pro-solid:check"})):ut("",!0)],16),tt("span",Xi(Ji(h.value.labelProps)),[tt("span",$y,[xt(p.$slots,"default",{},()=>[le(_t(p.label),1)])]),p.$slots.help||p.help?(R(),K("span",qy,[xt(p.$slots,"help",{},()=>[le(_t(p.help),1)])])):ut("",!0)],16),tt("input",Xi(Ji(h.value.hiddenInputProps)),null,16)],16))}}),vm=Symbol("form-control"),Gy={class:"k-formcontrol"},Yy=["for"],Ky={key:0,class:"k-formcontrol__error"},Xy={key:1,class:"k-formcontrol__help"},Jy=Dt({__name:"FormControl",props:{label:{},help:{},error:{}},setup(t){const e=t,i=ya({prefix:"k-formcontrol"}),r=lt(()=>`${i}_label`),a=lt(()=>`${i}_help`);return Ke(vm,lt(()=>({...e,id:i,labelId:r.value,helpId:a.value,invalid:!!e.error}))),(s,c)=>(R(),K("div",Gy,[tt("label",{class:"k-formcontrol__label",for:dt(i)},[xt(s.$slots,"label",{},()=>[le(_t(s.label),1)])],8,Yy),xt(s.$slots,"default",{id:dt(i)}),s.$slots.error||s.error?(R(),K("span",Ky,[xt(s.$slots,"error",{},()=>[le(_t(s.error),1)])])):ut("",!0),s.$slots.help||s.help?(R(),K("span",Xy,[xt(s.$slots,"help",{},()=>[le(_t(s.help),1)])])):ut("",!0)]))}});function Pi(t){return typeof t=="string"||t instanceof String}function Gu(t){var e;return typeof t=="object"&&t!=null&&(t==null||(e=t.constructor)==null?void 0:e.name)==="Object"}function _m(t,e){return Array.isArray(e)?_m(t,(i,r)=>e.includes(r)):Object.entries(t).reduce((i,r)=>{let[a,s]=r;return e(s,a)&&(i[a]=s),i},{})}const it={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Qy(t){switch(t){case it.LEFT:return it.FORCE_LEFT;case it.RIGHT:return it.FORCE_RIGHT;default:return t}}function ks(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function $o(t,e){if(e===t)return!0;const i=Array.isArray(e),r=Array.isArray(t);let a;if(i&&r){if(e.length!=t.length)return!1;for(a=0;a<e.length;a++)if(!$o(e[a],t[a]))return!1;return!0}if(i!=r)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){const s=e instanceof Date,c=t instanceof Date;if(s&&c)return e.getTime()==t.getTime();if(s!=c)return!1;const d=e instanceof RegExp,h=t instanceof RegExp;if(d&&h)return e.toString()==t.toString();if(d!=h)return!1;const p=Object.keys(e);for(a=0;a<p.length;a++)if(!Object.prototype.hasOwnProperty.call(t,p[a]))return!1;for(a=0;a<p.length;a++)if(!$o(t[p[a]],e[p[a]]))return!1;return!0}else if(e&&t&&typeof e=="function"&&typeof t=="function")return e.toString()===t.toString();return!1}class t0{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?it.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?it.RIGHT:it.LEFT}}function gt(t,e){return new gt.InputMask(t,e)}function bm(t){if(t==null)throw new Error("mask property should be defined");return t instanceof RegExp?gt.MaskedRegExp:Pi(t)?gt.MaskedPattern:t===Date?gt.MaskedDate:t===Number?gt.MaskedNumber:Array.isArray(t)||t===Array?gt.MaskedDynamic:gt.Masked&&t.prototype instanceof gt.Masked?t:gt.Masked&&t instanceof gt.Masked?t.constructor:t instanceof Function?gt.MaskedFunction:(console.warn("Mask not found for mask",t),gt.Masked)}function qo(t){if(!t)throw new Error("Options in not defined");if(gt.Masked){if(t.prototype instanceof gt.Masked)return{mask:t};const{mask:e=void 0,...i}=t instanceof gt.Masked?{mask:t}:Gu(t)&&t.mask instanceof gt.Masked?t:{};if(e){const r=e.mask;return{..._m(e,(a,s)=>!s.startsWith("_")),mask:e.constructor,_mask:r,...i}}}return Gu(t)?{...t}:{mask:t}}function an(t){if(gt.Masked&&t instanceof gt.Masked)return t;const e=qo(t),i=bm(e.mask);if(!i)throw new Error("Masked class is not found for provided mask, appropriate module needs to be imported manually before creating mask.");return e.mask===i&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new i(e)}gt.createMask=an;class jl{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,i){if(!(e==null||i==null||e===this.selectionStart&&i===this.selectionEnd))try{this._unsafeSelect(e,i)}catch{}}get isActive(){return!1}}gt.MaskElement=jl;class un extends jl{constructor(e){super(),this.input=e,this._handlers={}}get rootElement(){var e,i,r;return(e=(i=(r=this.input).getRootNode)==null?void 0:i.call(r))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){Object.keys(e).forEach(i=>this._toggleEventHandler(un.EVENTS_MAP[i],e[i]))}unbindEvents(){Object.keys(this._handlers).forEach(e=>this._toggleEventHandler(e))}_toggleEventHandler(e,i){this._handlers[e]&&(this.input.removeEventListener(e,this._handlers[e]),delete this._handlers[e]),i&&(this.input.addEventListener(e,i),this._handlers[e]=i)}}un.EVENTS_MAP={selectionChange:"keydown",input:"input",drop:"drop",click:"click",focus:"focus",commit:"blur"};gt.HTMLMaskElement=un;class e0 extends un{constructor(e){super(e),this.input=e,this._handlers={}}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,i){this.input.setSelectionRange(e,i)}get value(){return this.input.value}set value(e){this.input.value=e}}gt.HTMLMaskElement=un;class km extends un{get _unsafeSelectionStart(){const e=this.rootElement,i=e.getSelection&&e.getSelection(),r=i&&i.anchorOffset,a=i&&i.focusOffset;return a==null||r==null||r<a?r:a}get _unsafeSelectionEnd(){const e=this.rootElement,i=e.getSelection&&e.getSelection(),r=i&&i.anchorOffset,a=i&&i.focusOffset;return a==null||r==null||r>a?r:a}_unsafeSelect(e,i){if(!this.rootElement.createRange)return;const r=this.rootElement.createRange();r.setStart(this.input.firstChild||this.input,e),r.setEnd(this.input.lastChild||this.input,i);const a=this.rootElement,s=a.getSelection&&a.getSelection();s&&(s.removeAllRanges(),s.addRange(r))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}gt.HTMLContenteditableMaskElement=km;class i0{constructor(e,i){this.el=e instanceof jl?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new km(e):new e0(e),this.masked=an(i),this._listeners={},this._value="",this._unmaskedValue="",this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var i;return e==null||((i=this.masked)==null?void 0:i.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof gt.Masked)&&this.masked.constructor===bm(e)){this.masked.updateOptions({mask:e});return}const i=e instanceof gt.Masked?e:an({mask:e});i.unmaskedValue=this.masked.unmaskedValue,this.masked=i}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl(),this.alignCursor())}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl(),this.alignCursor())}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,i){const r=this._listeners[e];r&&r.forEach(a=>a(i))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value}updateControl(){const e=this.masked.unmaskedValue,i=this.masked.value,r=this.displayValue,a=this.unmaskedValue!==e||this.value!==i;this._unmaskedValue=e,this._value=i,this.el.value!==r&&(this.el.value=r),a&&this._fireChangeEvents()}updateOptions(e){const{mask:i,...r}=e,a=!this.maskEquals(i),s=!$o(this.masked,r);a&&(this.mask=i),s&&this.masked.updateOptions(r),(a||s)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,it.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,i){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(i),this}off(e,i){if(!this._listeners[e])return this;if(!i)return delete this._listeners[e],this;const r=this._listeners[e].indexOf(i);return r>=0&&this._listeners[e].splice(r,1),this}_onInput(e){if(this._inputEvent=e,this._abortUpdateCursor(),!this._selection)return this.updateValue();const i=new t0({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),r=this.masked.rawInputValue,a=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:!0,raw:!0}).offset,s=r===this.masked.rawInputValue?i.removeDirection:it.NONE;let c=this.masked.nearestInputPos(i.startChangePos+a,s);s!==it.NONE&&(c=this.masked.nearestInputPos(c,it.NONE)),this.updateControl(),this.updateCursor(c),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}gt.InputMask=i0;class Mt{static normalize(e){return Array.isArray(e)?e:[e,new Mt]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",skip:!1,tailShift:0},e)}aggregate(e){return this.rawInserted+=e.rawInserted,this.skip=this.skip||e.skip,this.inserted+=e.inserted,this.tailShift+=e.tailShift,this}get offset(){return this.tailShift+this.inserted.length}}gt.ChangeDetails=Mt;class ui{constructor(e,i,r){e===void 0&&(e=""),i===void 0&&(i=0),this.value=e,this.from=i,this.stop=r}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const i=this.value[0];return this.value=this.value.slice(1),i}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class we{constructor(e){this._value="",this._update({...we.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){Object.keys(e).length&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,i){i===void 0&&(i={input:!0}),this.reset(),this.append(e,i,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,i){return e}totalInputPositions(e,i){return e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),Math.min(this.displayValue.length,i-e)}extractInput(e,i,r){return e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),this.displayValue.slice(e,i)}extractTail(e,i){return e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),new ui(this.extractInput(e,i),e)}appendTail(e){return Pi(e)&&(e=new ui(String(e))),e.appendTo(this)}_appendCharRaw(e,i){return e?(this._value+=e,new Mt({inserted:e,rawInserted:e})):new Mt}_appendChar(e,i,r){i===void 0&&(i={});const a=this.state;let s;if([e,s]=this.doPrepareChar(e,i),s=s.aggregate(this._appendCharRaw(e,i)),s.inserted){let c,d=this.doValidate(i)!==!1;if(d&&r!=null){const h=this.state;this.overwrite===!0&&(c=r.state,r.unshift(this.displayValue.length-s.tailShift));let p=this.appendTail(r);d=p.rawInserted===r.toString(),!(d&&p.inserted)&&this.overwrite==="shift"&&(this.state=h,c=r.state,r.shift(),p=this.appendTail(r),d=p.rawInserted===r.toString()),d&&p.inserted&&(this.state=h)}d||(s=new Mt,this.state=a,r&&c&&(r.state=c))}return s}_appendPlaceholder(){return new Mt}_appendEager(){return new Mt}append(e,i,r){if(!Pi(e))throw new Error("value should be string");const a=Pi(r)?new ui(String(r)):r;i!=null&&i.tail&&(i._beforeTailState=this.state);let s;[e,s]=this.doPrepare(e,i);for(let c=0;c<e.length;++c){const d=this._appendChar(e[c],i,a);if(!d.rawInserted&&!this.doSkipInvalid(e[c],i,a))break;s.aggregate(d)}return(this.eager===!0||this.eager==="append")&&i!=null&&i.input&&e&&s.aggregate(this._appendEager()),a!=null&&(s.tailShift+=this.appendTail(a).tailShift),s}remove(e,i){return e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(i),new Mt}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const i=this.rawInputValue,r=this.value,a=e();return this.rawInputValue=i,this.value&&this.value!==r&&r.indexOf(this.value)===0&&this.append(r.slice(this.displayValue.length),{},""),delete this._refreshing,a}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const i=this.state,r=e(this);return this.state=i,delete this._isolated,r}doSkipInvalid(e,i,r){return!!this.skipInvalid}doPrepare(e,i){return i===void 0&&(i={}),Mt.normalize(this.prepare?this.prepare(e,this,i):e)}doPrepareChar(e,i){return i===void 0&&(i={}),Mt.normalize(this.prepareChar?this.prepareChar(e,this,i):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,i,r,a,s){a===void 0&&(a=it.NONE),s===void 0&&(s={input:!0});const c=e+i,d=this.extractTail(c),h=this.eager===!0||this.eager==="remove";let p;h&&(a=Qy(a),p=this.extractInput(0,c,{raw:!0}));let m=e;const g=new Mt;if(a!==it.NONE&&(m=this.nearestInputPos(e,i>1&&e!==0&&!h?it.NONE:a),g.tailShift=m-e),g.aggregate(this.remove(m)),h&&a!==it.NONE&&p===this.rawInputValue)if(a===it.FORCE_LEFT){let v;for(;p===this.rawInputValue&&(v=this.displayValue.length);)g.aggregate(new Mt({tailShift:-1})).aggregate(this.remove(v-1))}else a===it.FORCE_RIGHT&&d.unshift();return g.aggregate(this.append(r,s,d))}maskEquals(e){return this.mask===e}typedValueEquals(e){const i=this.typedValue;return e===i||we.EMPTY_VALUES.includes(e)&&we.EMPTY_VALUES.includes(i)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}}we.DEFAULTS={skipInvalid:!0};we.EMPTY_VALUES=[void 0,null,""];gt.Masked=we;class Qi{constructor(e,i){e===void 0&&(e=[]),i===void 0&&(i=0),this.chunks=e,this.from=i}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=Pi(e)?new ui(String(e)):e;const i=this.chunks[this.chunks.length-1],r=i&&(i.stop===e.stop||e.stop==null)&&e.from===i.from+i.toString().length;if(e instanceof ui)r?i.extend(e.toString()):this.chunks.push(e);else if(e instanceof Qi){if(e.stop==null){let a;for(;e.chunks.length&&e.chunks[0].stop==null;)a=e.chunks.shift(),a.from+=e.from,this.extend(a)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof gt.MaskedPattern))return new ui(this.toString()).appendTo(e);const i=new Mt;for(let r=0;r<this.chunks.length&&!i.skip;++r){const a=this.chunks[r],s=e._mapPosToBlock(e.displayValue.length),c=a.stop;let d;if(c!=null&&(!s||s.index<=c)){if(a instanceof Qi||e._stops.indexOf(c)>=0){const h=e._appendPlaceholder(c);i.aggregate(h)}d=a instanceof Qi&&e._blocks[c]}if(d){const h=d.appendTail(a);h.skip=!1,i.aggregate(h),e._value+=h.inserted;const p=a.toString().slice(h.rawInserted.length);p&&i.aggregate(e.append(p,{tail:!0}))}else i.aggregate(e.append(a.toString(),{tail:!0}))}return i}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:i,...r}=e;Object.assign(this,r),this.chunks=i.map(a=>{const s="chunks"in a?new Qi:new ui;return s.state=a,s})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const i=e!=null?e-this.from:e;let r=0;for(;r<this.chunks.length;){const a=this.chunks[r],s=a.unshift(i);if(a.toString()){if(!s)break;++r}else this.chunks.splice(r,1);if(s)return s}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const i=this.chunks[e],r=i.shift();if(i.toString()){if(!r)break;--e}else this.chunks.splice(e,1);if(r)return r}return""}}class n0{constructor(e,i){this.masked=e,this._log=[];const{offset:r,index:a}=e._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=r,this.index=a,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,it.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,it.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,it.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,it.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,it.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,it.NONE),!0})}}class ym{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,i){return e===void 0&&(e=0),i===void 0&&(i=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(i),this._value||(this._isRawInput=!1),new Mt}nearestInputPos(e,i){i===void 0&&(i=it.NONE);const r=0,a=this._value.length;switch(i){case it.LEFT:case it.FORCE_LEFT:return r;case it.NONE:case it.RIGHT:case it.FORCE_RIGHT:default:return a}}totalInputPositions(e,i){return e===void 0&&(e=0),i===void 0&&(i=this._value.length),this._isRawInput?i-e:0}extractInput(e,i,r){return e===void 0&&(e=0),i===void 0&&(i=this._value.length),r===void 0&&(r={}),r.raw&&this._isRawInput&&this._value.slice(e,i)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,i){i===void 0&&(i={});const r=new Mt;if(this.isFilled)return r;const a=this.eager===!0||this.eager==="append",s=this.char===e&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!a)&&!i.tail;return s&&(r.rawInserted=this.char),this._value=r.inserted=this.char,this._isRawInput=s&&(i.raw||i.input),r}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new Mt;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new ui("")}appendTail(e){return Pi(e)&&(e=new ui(String(e))),e.appendTo(this)}append(e,i,r){const a=this._appendChar(e[0],i);return r!=null&&(a.tailShift+=this.appendTail(r).tailShift),a}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}}class Wo{constructor(e){const{parent:i,isOptional:r,placeholderChar:a,displayChar:s,lazy:c,eager:d,...h}=e;this.masked=an(h),Object.assign(this,{parent:i,isOptional:r,placeholderChar:a,displayChar:s,lazy:c,eager:d})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,i){return e===void 0&&(e=0),i===void 0&&(i=this.value.length),e===0&&i>=1?(this.isFilled=!1,this.masked.remove(e,i)):new Mt}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,i){if(i===void 0&&(i={}),this.isFilled)return new Mt;const r=this.masked.state,a=this.masked._appendChar(e,this.currentMaskFlags(i));return a.inserted&&this.doValidate(i)===!1&&(a.inserted=a.rawInserted="",this.masked.state=r),!a.inserted&&!this.isOptional&&!this.lazy&&!i.input&&(a.inserted=this.placeholderChar),a.skip=!a.inserted&&!this.isOptional,this.isFilled=!!a.inserted,a}append(e,i,r){return this.masked.append(e,this.currentMaskFlags(i),r)}_appendPlaceholder(){const e=new Mt;return this.isFilled||this.isOptional||(this.isFilled=!0,e.inserted=this.placeholderChar),e}_appendEager(){return new Mt}extractTail(e,i){return this.masked.extractTail(e,i)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,i,r){return e===void 0&&(e=0),i===void 0&&(i=this.value.length),this.masked.extractInput(e,i,r)}nearestInputPos(e,i){i===void 0&&(i=it.NONE);const r=0,a=this.value.length,s=Math.min(Math.max(e,r),a);switch(i){case it.LEFT:case it.FORCE_LEFT:return this.isComplete?s:r;case it.RIGHT:case it.FORCE_RIGHT:return this.isComplete?s:a;case it.NONE:default:return s}}totalInputPositions(e,i){return e===void 0&&(e=0),i===void 0&&(i=this.value.length),this.value.slice(e,i).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var i;return{...e,_beforeTailState:(e==null||(i=e._beforeTailState)==null?void 0:i.masked)||e?._beforeTailState}}}Wo.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class r0 extends we{updateOptions(e){super.updateOptions(e)}_update(e){const i=e.mask;i&&(e.validate=r=>r.search(i)>=0),super._update(e)}}gt.MaskedRegExp=r0;class Ee extends we{constructor(e){super({...Ee.DEFAULTS,...e,definitions:Object.assign({},Wo.DEFAULT_DEFINITIONS,e?.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const i=this.mask;if(!i||!e)return;let r=!1,a=!1;for(let s=0;s<i.length;++s){if(this.blocks){const p=i.slice(s),m=Object.keys(this.blocks).filter(v=>p.indexOf(v)===0);m.sort((v,_)=>_.length-v.length);const g=m[0];if(g){const{expose:v,..._}=qo(this.blocks[g]),y=an({lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,..._,parent:this});y&&(this._blocks.push(y),v&&(this.exposeBlock=y),this._maskedBlocks[g]||(this._maskedBlocks[g]=[]),this._maskedBlocks[g].push(this._blocks.length-1)),s+=g.length-1;continue}}let c=i[s],d=c in e;if(c===Ee.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(c==="{"||c==="}"){r=!r;continue}if(c==="["||c==="]"){a=!a;continue}if(c===Ee.ESCAPE_CHAR){if(++s,c=i[s],!c)break;d=!1}const h=d?new Wo({isOptional:a,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...qo(e[c]),parent:this}):new ym({char:c,eager:this.eager,isUnmasking:r});this._blocks.push(h)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){const{_blocks:i,...r}=e;this._blocks.forEach((a,s)=>a.state=i[s]),super.state=r}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,i)=>e+=i.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(i),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,i)=>e+=i.value,"")}set value(e){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(i),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const i=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(i),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,i)=>e+=i.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const i=new Mt;let r=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(r==null)return i;this._blocks[r].isFilled&&++r;for(let a=r;a<this._blocks.length;++a){const s=this._blocks[a]._appendEager();if(!s.inserted)break;i.aggregate(s)}return i}_appendCharRaw(e,i){i===void 0&&(i={});const r=this._mapPosToBlock(this.displayValue.length),a=new Mt;if(!r)return a;for(let c=r.index;;++c){var s;const d=this._blocks[c];if(!d)break;const h=d._appendChar(e,{...i,_beforeTailState:(s=i._beforeTailState)==null||(s=s._blocks)==null?void 0:s[c]}),p=h.skip;if(a.aggregate(h),p||h.rawInserted)break}return a}extractTail(e,i){e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length);const r=new Qi;return e===i||this._forEachBlocksInRange(e,i,(a,s,c,d)=>{const h=a.extractTail(c,d);h.stop=this._findStopBefore(s),h.from=this._blockStartPos(s),h instanceof Qi&&(h.blockIndex=s),r.extend(h)}),r}extractInput(e,i,r){if(e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),r===void 0&&(r={}),e===i)return"";let a="";return this._forEachBlocksInRange(e,i,(s,c,d,h)=>{a+=s.extractInput(d,h,r)}),a}_findStopBefore(e){let i;for(let r=0;r<this._stops.length;++r){const a=this._stops[r];if(a<=e)i=a;else break}return i}_appendPlaceholder(e){const i=new Mt;if(this.lazy&&e==null)return i;const r=this._mapPosToBlock(this.displayValue.length);if(!r)return i;const a=r.index,s=e??this._blocks.length;return this._blocks.slice(a,s).forEach(c=>{if(!c.lazy||e!=null){var d;const h=c._appendPlaceholder((d=c._blocks)==null?void 0:d.length);this._value+=h.inserted,i.aggregate(h)}}),i}_mapPosToBlock(e){let i="";for(let r=0;r<this._blocks.length;++r){const a=this._blocks[r],s=i.length;if(i+=a.displayValue,e<=i.length)return{index:r,offset:e-s}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((i,r)=>i+=r.displayValue.length,0)}_forEachBlocksInRange(e,i,r){i===void 0&&(i=this.displayValue.length);const a=this._mapPosToBlock(e);if(a){const s=this._mapPosToBlock(i),c=s&&a.index===s.index,d=a.offset,h=s&&c?s.offset:this._blocks[a.index].displayValue.length;if(r(this._blocks[a.index],a.index,d,h),s&&!c){for(let p=a.index+1;p<s.index;++p)r(this._blocks[p],p,0,this._blocks[p].displayValue.length);r(this._blocks[s.index],s.index,0,s.offset)}}}remove(e,i){e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length);const r=super.remove(e,i);return this._forEachBlocksInRange(e,i,(a,s,c,d)=>{r.aggregate(a.remove(c,d))}),r}nearestInputPos(e,i){if(i===void 0&&(i=it.NONE),!this._blocks.length)return 0;const r=new n0(this,e);if(i===it.NONE)return r.pushRightBeforeInput()||(r.popState(),r.pushLeftBeforeInput())?r.pos:this.displayValue.length;if(i===it.LEFT||i===it.FORCE_LEFT){if(i===it.LEFT){if(r.pushRightBeforeFilled(),r.ok&&r.pos===e)return e;r.popState()}if(r.pushLeftBeforeInput(),r.pushLeftBeforeRequired(),r.pushLeftBeforeFilled(),i===it.LEFT){if(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.ok&&r.pos<=e||(r.popState(),r.ok&&r.pos<=e))return r.pos;r.popState()}return r.ok?r.pos:i===it.FORCE_LEFT?0:(r.popState(),r.ok||(r.popState(),r.ok)?r.pos:0)}return i===it.RIGHT||i===it.FORCE_RIGHT?(r.pushRightBeforeInput(),r.pushRightBeforeRequired(),r.pushRightBeforeFilled()?r.pos:i===it.FORCE_RIGHT?this.displayValue.length:(r.popState(),r.ok||(r.popState(),r.ok)?r.pos:this.nearestInputPos(e,it.LEFT))):e}totalInputPositions(e,i){e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length);let r=0;return this._forEachBlocksInRange(e,i,(a,s,c,d)=>{r+=a.totalInputPositions(c,d)}),r}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const i=this._maskedBlocks[e];return i?i.map(r=>this._blocks[r]):[]}}Ee.DEFAULTS={lazy:!0,placeholderChar:"_"};Ee.STOP_CHAR="`";Ee.ESCAPE_CHAR="\\";Ee.InputDefinition=Wo;Ee.FixedDefinition=ym;gt.MaskedPattern=Ee;class Oo extends Ee{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:i=this.to||0,from:r=this.from||0,maxLength:a=this.maxLength||0,autofix:s=this.autofix,...c}=e;this.to=i,this.from=r,this.maxLength=Math.max(String(i).length,a),this.autofix=s;const d=String(this.from).padStart(this.maxLength,"0"),h=String(this.to).padStart(this.maxLength,"0");let p=0;for(;p<h.length&&h[p]===d[p];)++p;c.mask=h.slice(0,p).replace(/0/g,"\\0")+"0".repeat(this.maxLength-p),super._update(c)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let i="",r="";const[,a,s]=e.match(/^(\D*)(\d*)(\D*)/)||[];return s&&(i="0".repeat(a.length)+s,r="9".repeat(a.length)+s),i=i.padEnd(this.maxLength,"0"),r=r.padEnd(this.maxLength,"9"),[i,r]}doPrepareChar(e,i){i===void 0&&(i={});let r;if([e,r]=super.doPrepareChar(e.replace(/\D/g,""),i),!this.autofix||!e)return[e,r];const a=String(this.from).padStart(this.maxLength,"0"),s=String(this.to).padStart(this.maxLength,"0"),c=this.value+e;if(c.length>this.maxLength)return["",r];const[d,h]=this.boundaries(c);return Number(h)<this.from?[a[c.length-1],r]:Number(d)>this.to?this.autofix==="pad"&&c.length<this.maxLength?["",r.aggregate(this.append(a[c.length-1]+e,i))]:[s[c.length-1],r]:[e,r]}doValidate(e){const i=this.value;if(i.search(/[^0]/)===-1&&i.length<=this._matchFrom)return!0;const[r,a]=this.boundaries(i);return this.from<=Number(a)&&Number(r)<=this.to&&super.doValidate(e)}}gt.MaskedRange=Oo;class en extends Ee{constructor(e){const{mask:i,pattern:r,...a}={...en.DEFAULTS,...e};super({...a,mask:Pi(i)?i:r})}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:i,pattern:r,blocks:a,...s}={...en.DEFAULTS,...e},c=Object.assign({},en.GET_DEFAULT_BLOCKS());e.min&&(c.Y.from=e.min.getFullYear()),e.max&&(c.Y.to=e.max.getFullYear()),e.min&&e.max&&c.Y.from===c.Y.to&&(c.m.from=e.min.getMonth()+1,c.m.to=e.max.getMonth()+1,c.m.from===c.m.to&&(c.d.from=e.min.getDate(),c.d.to=e.max.getDate())),Object.assign(c,this.blocks,a),Object.keys(c).forEach(d=>{const h=c[d];!("autofix"in h)&&"autofix"in e&&(h.autofix=e.autofix)}),super._update({...s,mask:Pi(i)?i:r,blocks:c})}doValidate(e){const i=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&i!=null&&(this.min==null||this.min<=i)&&(this.max==null||i<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}}en.GET_DEFAULT_BLOCKS=()=>({d:{mask:Oo,from:1,to:31,maxLength:2},m:{mask:Oo,from:1,to:12,maxLength:2},Y:{mask:Oo,from:1900,to:9999}});en.DEFAULTS={mask:Date,pattern:"d{.}`m{.}`Y",format:(t,e)=>{if(!t)return"";const i=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),a=t.getFullYear();return[i,r,a].join(".")},parse:(t,e)=>{const[i,r,a]=t.split(".").map(Number);return new Date(a,r-1,i)}};gt.MaskedDate=en;class Fr extends we{constructor(e){super({...Fr.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(i=>{const{expose:r,...a}=qo(i),s=an({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...a});return r&&(this.exposeMask=s),s}):[])}_appendCharRaw(e,i){i===void 0&&(i={});const r=this._applyDispatch(e,i);return this.currentMask&&r.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(i))),r}_applyDispatch(e,i,r){e===void 0&&(e=""),i===void 0&&(i={}),r===void 0&&(r="");const a=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value,s=this.rawInputValue,c=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:s,d=s.slice(c.length),h=this.currentMask,p=new Mt,m=h?.state;if(this.currentMask=this.doDispatch(e,{...i},r),this.currentMask)if(this.currentMask!==h){if(this.currentMask.reset(),c){const g=this.currentMask.append(c,{raw:!0});p.tailShift=g.inserted.length-a.length}d&&(p.tailShift+=this.currentMask.append(d,{raw:!0,tail:!0}).tailShift)}else m&&(this.currentMask.state=m);return p}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const i=new Mt;return e&&i.aggregate(this._applyDispatch("",{},e)),i.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var i,r;return{...e,_beforeTailState:((i=e._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((r=e._beforeTailState)==null?void 0:r.currentMask)||e._beforeTailState}}doDispatch(e,i,r){return i===void 0&&(i={}),r===void 0&&(r=""),this.dispatch(e,this,i,r)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,i){i===void 0&&(i={});let[r,a]=super.doPrepare(e,i);if(this.currentMask){let s;[r,s]=super.doPrepare(r,this.currentMaskFlags(i)),a=a.aggregate(s)}return[r,a]}doPrepareChar(e,i){i===void 0&&(i={});let[r,a]=super.doPrepareChar(e,i);if(this.currentMask){let s;[r,s]=super.doPrepareChar(r,this.currentMaskFlags(i)),a=a.aggregate(s)}return[r,a]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(i=>i.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let i=String(e);this.currentMask&&(this.currentMask.typedValue=e,i=this.currentMask.unmaskedValue),this.unmaskedValue=i}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,i){const r=new Mt;return this.currentMask&&r.aggregate(this.currentMask.remove(e,i)).aggregate(this._applyDispatch()),r}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(i=>i.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:i,currentMaskRef:r,currentMask:a,...s}=e;i&&this.compiledMasks.forEach((c,d)=>c.state=i[d]),r!=null&&(this.currentMask=r,this.currentMask.state=a),super.state=s}extractInput(e,i,r){return this.currentMask?this.currentMask.extractInput(e,i,r):""}extractTail(e,i){return this.currentMask?this.currentMask.extractTail(e,i):super.extractTail(e,i)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,i){return this.currentMask?this.currentMask.nearestInputPos(e,i):super.nearestInputPos(e,i)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((i,r)=>{if(!e[r])return;const{mask:a,...s}=e[r];return $o(i,s)&&i.maskEquals(a)}):super.maskEquals(e)}typedValueEquals(e){var i;return!!((i=this.currentMask)!=null&&i.typedValueEquals(e))}}Fr.DEFAULTS=void 0;Fr.DEFAULTS={dispatch:(t,e,i,r)=>{if(!e.compiledMasks.length)return;const a=e.rawInputValue,s=e.compiledMasks.map((c,d)=>{const h=e.currentMask===c,p=h?c.displayValue.length:c.nearestInputPos(c.displayValue.length,it.FORCE_LEFT);return c.rawInputValue!==a?(c.reset(),c.append(a,{raw:!0})):h||c.remove(p),c.append(t,e.currentMaskFlags(i)),c.appendTail(r),{index:d,weight:c.rawInputValue.length,totalInputPositions:c.totalInputPositions(0,Math.max(p,c.nearestInputPos(c.displayValue.length,it.FORCE_LEFT)))}});return s.sort((c,d)=>d.weight-c.weight||d.totalInputPositions-c.totalInputPositions),e.compiledMasks[s[0].index]}};gt.MaskedDynamic=Fr;class o0 extends Ee{constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:i,...r}=e;if(i){const a=i.map(d=>d.length),s=Math.min(...a),c=Math.max(...a)-s;r.mask="*".repeat(s),c&&(r.mask+="["+"*".repeat(c)+"]"),this.enum=i}super._update(r)}doValidate(e){return this.enum.some(i=>i.indexOf(this.unmaskedValue)===0)&&super.doValidate(e)}}gt.MaskedEnum=o0;class a0 extends we{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}gt.MaskedFunction=a0;class Fe extends we{constructor(e){super({...Fe.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),i="\\d*",r=(this.scale?"("+ks(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+i+r),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(ks).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(ks(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const i=e.split(this.radix);return i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),i.join(this.radix)}doPrepareChar(e,i){i===void 0&&(i={});const[r,a]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(i.input&&i.raw||!i.input&&!i.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),i);return e&&!r&&(a.skip=!0),r&&!this.allowPositive&&!this.value&&r!=="-"&&a.aggregate(this._appendChar("-")),[r,a]}_separatorsCount(e,i){i===void 0&&(i=!1);let r=0;for(let a=0;a<e;++a)this._value.indexOf(this.thousandsSeparator,a)===a&&(++r,i&&(e+=this.thousandsSeparator.length));return r}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,i,r){return e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),[e,i]=this._adjustRangeWithSeparators(e,i),this._removeThousandsSeparators(super.extractInput(e,i,r))}_appendCharRaw(e,i){if(i===void 0&&(i={}),!this.thousandsSeparator)return super._appendCharRaw(e,i);const r=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value,a=this._separatorsCountFromSlice(r);this._value=this._removeThousandsSeparators(this.value);const s=super._appendCharRaw(e,i);this._value=this._insertThousandsSeparators(this._value);const c=i.tail&&i._beforeTailState?i._beforeTailState._value:this._value,d=this._separatorsCountFromSlice(c);return s.tailShift+=(d-a)*this.thousandsSeparator.length,s.skip=!s.rawInserted&&e===this.thousandsSeparator,s}_findSeparatorAround(e){if(this.thousandsSeparator){const i=e-this.thousandsSeparator.length+1,r=this.value.indexOf(this.thousandsSeparator,i);if(r<=e)return r}return-1}_adjustRangeWithSeparators(e,i){const r=this._findSeparatorAround(e);r>=0&&(e=r);const a=this._findSeparatorAround(i);return a>=0&&(i=a+this.thousandsSeparator.length),[e,i]}remove(e,i){e===void 0&&(e=0),i===void 0&&(i=this.displayValue.length),[e,i]=this._adjustRangeWithSeparators(e,i);const r=this.value.slice(0,e),a=this.value.slice(i),s=this._separatorsCount(r.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(r+a));const c=this._separatorsCountFromSlice(r);return new Mt({tailShift:(c-s)*this.thousandsSeparator.length})}nearestInputPos(e,i){if(!this.thousandsSeparator)return e;switch(i){case it.NONE:case it.LEFT:case it.FORCE_LEFT:{const r=this._findSeparatorAround(e-1);if(r>=0){const a=r+this.thousandsSeparator.length;if(e<a||this.value.length<=a||i===it.FORCE_LEFT)return r}break}case it.RIGHT:case it.FORCE_RIGHT:{const r=this._findSeparatorAround(e);if(r>=0)return r+this.thousandsSeparator.length}}return e}doValidate(e){let i=!!this._removeThousandsSeparators(this.value).match(this._numberRegExp);if(i){const r=this.number;i=i&&!isNaN(r)&&(this.min==null||this.min>=0||this.min<=this.number)&&(this.max==null||this.max<=0||this.number<=this.max)}return i&&super.doValidate(e)}doCommit(){if(this.value){const e=this.number;let i=e;this.min!=null&&(i=Math.max(i,this.min)),this.max!=null&&(i=Math.min(i,this.max)),i!==e&&(this.unmaskedValue=this.format(i,this));let r=this.value;this.normalizeZeros&&(r=this._normalizeZeros(r)),this.padFractionalZeros&&this.scale>0&&(r=this._padFractionalZeros(r)),this._value=r}super.doCommit()}_normalizeZeros(e){const i=this._removeThousandsSeparators(e).split(this.radix);return i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,(r,a,s,c)=>a+c),e.length&&!/\d$/.test(i[0])&&(i[0]=i[0]+"0"),i.length>1&&(i[1]=i[1].replace(/0*$/,""),i[1].length||(i.length=1)),this._insertThousandsSeparators(i.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const i=e.split(this.radix);return i.length<2&&i.push(""),i[1]=i[1].padEnd(this.scale,"0"),i.join(this.radix)}doSkipInvalid(e,i,r){i===void 0&&(i={});const a=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===Fe.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,i,r)&&!a}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Fe.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(Fe.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||Fe.EMPTY_VALUES.includes(e)&&Fe.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}Fe.UNMASKED_RADIX=".";Fe.EMPTY_VALUES=[...we.EMPTY_VALUES,0];Fe.DEFAULTS={mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[Fe.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:t=>t.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};gt.MaskedNumber=Fe;const Qs={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function xm(t,e,i){e===void 0&&(e=Qs.MASKED),i===void 0&&(i=Qs.MASKED);const r=an(t);return a=>r.runIsolated(s=>(s[e]=a,s[i]))}function s0(t,e,i,r){return xm(e,i,r)(t)}gt.PIPE_TYPE=Qs;gt.createPipe=xm;gt.pipe=s0;try{globalThis.IMask=gt}catch{}function l0(t,e){let{emit:i,onAccept:r,onComplete:a}=e===void 0?{}:e;const s=$v(t)?t:W(t),c=W(),d=W(),h=W(""),p=W(""),m=W(null);let g,v,_,y;function k(){y=m.value=d.value.typedValue,_=p.value=d.value.unmaskedValue,v=h.value=d.value.value,i&&(i("accept",v),i("accept:masked",v),i("accept:typed",y),i("accept:unmasked",_)),r&&r()}function E(){i&&(i("complete",v),i("complete:masked",v),i("complete:typed",y),i("complete:unmasked",_)),a&&a()}function C(){g=c.value;const O=s.value;!g||!(O!=null&&O.mask)||(d.value=gt(g,O).on("accept",k).on("complete",E),k())}function N(){d.value&&(d.value.destroy(),d.value=void 0)}return Ae(C),Zd(N),Ut(p,()=>{d.value&&(_=d.value.unmaskedValue=p.value)}),Ut(h,()=>{d.value&&(v=d.value.value=h.value)}),Ut(m,()=>{d.value&&(y=d.value.typedValue=m.value)}),Ut([c,s],()=>{const O=c.value,j=s.value;(!(j!=null&&j.mask)||O!==g)&&N(),O&&(d.value?d.value.updateOptions(j):C())}),{el:c,mask:qv(d),masked:h,unmasked:p,typed:m}}const c0={key:0,class:"k-input__prefix"},u0=["id","value","aria-labelledby","aria-describedby","type"],d0={key:1,class:"k-input__suffix"},Yu=Dt({__name:"Input",props:{invalid:{type:Boolean},id:{},modelValue:{},prefix:{},suffix:{},mask:{},align:{default:"left"},type:{}},emits:["update:modelValue"],setup(t,{emit:e}){const i=t;function r(h){e("update:modelValue",h.target.value)}const a=Zf("k-input",{variants:{invalid:{true:"k-input--invalid"},align:{left:"k-input--align-left",right:"k-input--align-right"}}}),s=ve(vm,lt(()=>({id:i.id,invalid:i.invalid}))),{el:c}=l0(i.mask),d=lt({get(){return i.modelValue?i.modelValue:""},set(h){var p;(i.type==="number"||((p=i.mask)==null?void 0:p.mask)===Number)&&(h=parseFloat(`${h}`)),e("update:modelValue",h)}});return(h,p)=>(R(),K("div",{class:ti(dt(a)({invalid:dt(s).invalid,align:h.align}))},[h.$slots.prefix||h.prefix?(R(),K("span",c0,[xt(h.$slots,"prefix",{},()=>[le(_t(h.prefix),1)])])):ut("",!0),tt("input",ee({class:"k-input__input",id:dt(s).id,value:d.value,"aria-labelledby":dt(s).labelId,"aria-describedby":dt(s).helpId,onInput:r,ref_key:"el",ref:c,type:i.type},h.$attrs),null,16,u0),h.$slots.suffix||h.suffix?(R(),K("span",d0,[xt(h.$slots,"suffix",{},()=>[le(_t(h.suffix),1)])])):ut("",!0)],2))}}),h0=["src","alt"],p0=Dt({__name:"Image",props:{src:{},preview:{},alt:{},caption:{},captionVisibility:{default:"hover"},captionTheme:{default:"dark"},size:{default:"cover"},position:{default:"center"},width:{},height:{},aspectRatio:{}},emits:["loaded","error"],setup(t,{emit:e}){const i=t,r=W(),a=W(!1),s=W(!1),c=W(),d=lt(()=>({"--k-image-size":i.size,"--k-image-preview":i.preview||"","--k-image-position":i.position,"--k-image-width":i.width||"initial","--k-image-height":i.height||"initial","--k-image-aspectratio":(i.aspectRatio==="natural"?c.value:i.aspectRatio)||"initial"}));function h(){a.value=!0;const{naturalWidth:m=0,naturalHeight:g=0}=r.value||{};c.value=`${m}/${g}`,e("loaded")}function p(){a.value=!0,s.value=!0,e("error")}return Ae(()=>{var m;return((m=r.value)==null?void 0:m.complete)&&h()}),(m,g)=>(R(),K("figure",{class:ti(["k-image",[`k-image--size-${m.size}`,{"k-image--loaded":a.value,"k-image--loading":!a.value}]]),style:hi(d.value)},[a.value?ut("",!0):(R(),Ct(om,{key:0,size:"small"})),Bd(tt("img",{src:m.src,alt:m.alt||m.caption,onLoad:h,onError:p,ref_key:"image",ref:r},null,40,h0),[[zd,!s.value]]),m.$slots.caption||m.caption?(R(),K("figcaption",{key:1,class:ti(`k-image__caption k-image__caption--visibility-${m.captionVisibility} k-image__caption--theme-${!a.value||s.value?"light":m.captionTheme}`)},[xt(m.$slots,"caption",{},()=>[le(_t(m.caption),1)])],2)):ut("",!0)],6))}}),f0={key:1,class:"k-card__content"},m0={key:0,class:"k-card__title"},g0={key:2,class:"k-card__footer"},v0=Dt({inheritAttrs:!1,__name:"Card",props:{is:{default:"div"},title:{},variant:{default:"border"},thumbnail:{},thumbnailSize:{default:"cover"},headerMinHeight:{}},setup(t){return(e,i)=>(R(),Ct(_l(e.is),ee({class:`k-card k-card--variant-${e.variant}`,style:`--k-header-min-height: ${e.headerMinHeight||""}`},e.$attrs),{default:Xt(()=>[e.$slots.header||e.thumbnail?(R(),K("div",{key:0,class:ti(["k-card__header",[{"k-card__header--has-thumbnail":!e.$slots.header&&e.thumbnail},`k-card__header--thumbnail-size-${e.thumbnailSize}`]])},[xt(e.$slots,"header",{},()=>[e.thumbnail?(R(),Ct(p0,{key:0,class:"k-card__thumbnail",src:e.thumbnail,size:e.thumbnailSize},null,8,["src","size"])):ut("",!0)])],2)):ut("",!0),e.$slots.default||e.title?(R(),K("div",f0,[e.title?(R(),K("div",m0,_t(e.title),1)):ut("",!0),xt(e.$slots,"default")])):ut("",!0),e.$slots.footer?(R(),K("div",g0,[xt(e.$slots,"footer")])):ut("",!0)]),_:3},16,["class","style"]))}}),_0=["onClick"],b0={class:"k-selectable__checked"},k0=Dt({__name:"Selectable",props:{modelValue:{},items:{},max:{default:1}},emits:["update:modelValue"],setup(t,{emit:e}){const i=t,r=d=>c(d)?e("update:modelValue",void 0):e("update:modelValue",d),a=d=>{const h=i.modelValue instanceof Array?i.modelValue:[];if(c(d))return e("update:modelValue",h.filter(g=>g!==d));const p=i.max===1/0?i.items.length:i.max||0,m=Math.max(h.length-p+1,0);return e("update:modelValue",[...h.slice(m),d])},s=d=>i.max===1?r(d):a(d),c=d=>i.modelValue instanceof Array?i.modelValue.includes(d):i.modelValue===d;return(d,h)=>(R(!0),K(oe,null,vi(d.items,p=>(R(),K("button",{type:"button",class:ti(["k-selectable",{"k-selectable--selected":c(p),"k-selectable--multiple":d.max!==1}]),onClick:m=>s(p)},[tt("span",b0,[Ht(dt(He),{icon:"heroicons-solid:check",width:12})]),xt(d.$slots,"item",{item:p})],10,_0))),256))}});var Ln="default",tl="",Lo=new WeakMap;function y0(t={}){const{target:e,doc:i}=t,r=i??document,a=r.documentElement;return Dl()?(Ln==="default"&&(tl=a.style.webkitUserSelect,a.style.webkitUserSelect="none"),Ln="disabled"):e&&(Lo.set(e,e.style.userSelect),e.style.userSelect="none"),()=>x0({target:e,doc:r})}function x0(t={}){const{target:e,doc:i}=t,r=(i??document).documentElement;if(Dl()){if(Ln!=="disabled")return;Ln="restoring",setTimeout(()=>{cm(()=>{Ln==="restoring"&&(r.style.webkitUserSelect==="none"&&(r.style.webkitUserSelect=tl||""),tl="",Ln="default")})},300)}else if(e&&Lo.has(e)){const a=Lo.get(e);e.style.userSelect==="none"&&(e.style.userSelect=a??""),e.getAttribute("style")===""&&e.removeAttribute("style"),Lo.delete(e)}}function w0(t={}){const{defer:e,target:i,...r}=t,a=e?on:c=>c(),s=[];return s.push(a(()=>{const c=typeof i=="function"?i():i;s.push(y0({...r,target:c}))})),()=>{s.forEach(c=>c?.())}}var tn=(t,e,i,r)=>{const a=typeof t=="function"?t():t;return a?.addEventListener(e,i,r),()=>{a?.removeEventListener(e,i,r)}},E0=t=>t.button===0,T0=t=>t.button===2||A0()&&t.ctrlKey&&t.button===0,S0=t=>t.ctrlKey||t.altKey||t.metaKey,A0=()=>/Mac|iPod|iPhone|iPad/.test(window.navigator.platform);function Ku(t,e,i){if(!t)return;const r=t.ownerDocument.defaultView||window,a=new r.CustomEvent(e,i);return t.dispatchEvent(a)}var C0={Up:"ArrowUp",Down:"ArrowDown",Esc:"Escape"," ":"Space",",":"Comma",Left:"ArrowLeft",Right:"ArrowRight"},Xu={ArrowLeft:"ArrowRight",ArrowRight:"ArrowLeft"};function I0(t,e={}){const{dir:i="ltr",orientation:r="horizontal"}=e;let{key:a}=t;return a=C0[a]??a,i==="rtl"&&r==="horizontal"&&a in Xu&&(a=Xu[a]),a}function P0(t,e="client"){const i=t.touches[0]||t.changedTouches[0];return{x:i[`${e}X`],y:i[`${e}Y`]}}function O0(t,e="client"){return{x:t[`${e}X`],y:t[`${e}Y`]}}var L0=t=>"touches"in t&&t.touches.length>0;function wm(t,e="client"){return L0(t)?P0(t,e):O0(t,e)}var D0=new Set(["PageUp","PageDown"]),M0=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function N0(t){return t.ctrlKey||t.metaKey?.1:D0.has(t.key)||t.shiftKey&&M0.has(t.key)?10:1}function F0(t){return t.nativeEvent??t}function Ju(t){return Math.max(0,Math.min(1,t))}function Em(t,e){const{left:i,top:r,width:a,height:s}=e.getBoundingClientRect(),c={x:t.x-i,y:t.y-r},d={x:Ju(c.x/a),y:Ju(c.y/s)};function h(p={}){const{dir:m="ltr",orientation:g="horizontal",inverted:v}=p,_=typeof v=="object"?v.x:v,y=typeof v=="object"?v.y:v;return g==="horizontal"?m==="rtl"||_?1-d.x:d.x:y?1-d.y:d.y}return{offset:c,percent:d,getPercentValue:h}}function R0(t,e){const{onPointerMove:i,onPointerUp:r}=e,a=[tn(t,"pointermove",s=>{const c=wm(s),d=Math.sqrt(c.x**2+c.y**2),h=s.pointerType==="touch"?10:5;if(!(d<h)){if(s.pointerType==="mouse"&&s.button===0){r();return}i({point:c,event:s})}},!1),tn(t,"pointerup",r,!1),tn(t,"pointercancel",r,!1),tn(t,"contextmenu",r,!1),w0({doc:t})];return()=>{a.forEach(s=>s())}}function B0(t,e,i){return t===0?i:e[t-1]}function z0(t,e,i){return t===e.length-1?i:e[t+1]}function j0(t,e,i){return Math.round((t-e)/i)*i+e}function xa(t,e,i){return Math.min(Math.max(t,e),i)}function Vl(t,e,i){return(t-e)/(i-e)}function Zl(t,e,i,r){const a=t*(i-e)+e,s=j0(a,e,r);return xa(s,e,i)}function Tm(t,e,i,r){let a=(t-(isNaN(e)?0:e))%r,s=Math.abs(a)*2>=r?t+Math.sign(a)*(r-Math.abs(a)):t-a;isNaN(e)?!isNaN(i)&&s>i&&(s=Math.floor(i/r)*r):s<e?s=e:!isNaN(i)&&s>i&&(s=e+Math.floor((i-e)/r)*r);let c=r.toString(),d=c.indexOf("."),h=d>=0?c.length-d:0;if(h>0){let p=Math.pow(10,h);s=Math.round(s*p)/p}return s}function V0(t,e,i){return t[e]===i?t:[...t.slice(0,e),i,...t.slice(e+1)]}function Sm(t,e){const i=B0(t,e.values,e.min),r=z0(t,e.values,e.max);let a=e.values.slice();return function(s){let c=Tm(s,i,r,e.step);return a=V0(a,t,s),a[t]=c,a}}function Z0(t,e){const i=e.values[t]+e.step;return Sm(t,e)(i)}function U0(t,e){const i=e.values[t]-e.step;return Sm(t,e)(i)}function H0(t,e){let i=t.findIndex(s=>e-s<0);if(i===0)return i;if(i===-1)return t.length-1;let r=t[i-1],a=t[i];return Math.abs(r-e)<Math.abs(a-e)?i-1:i}function $0(t,e,i,r){return t.map((a,s)=>{const c=s===0?e:t[s-1]+r,d=s===t.length-1?i:t[s+1]-r;return{min:c,max:d,value:a}})}function el(t,e){const i={min:t[0],max:t[1]},r={min:e[0],max:e[1]};return function(a){if(i.min===i.max||r.min===r.max)return r.min;const s=(r.max-r.min)/(i.max-i.min);return r.min+s*(a-i.min)}}function q0(t,e){if(!t){e(void 0);return}e({width:t.offsetWidth,height:t.offsetHeight});const i=t.ownerDocument.defaultView??window,r=new i.ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const[s]=a;let c,d;if("borderBoxSize"in s){const h=s.borderBoxSize,p=Array.isArray(h)?h[0]:h;c=p.inlineSize,d=p.blockSize}else c=t.offsetWidth,d=t.offsetHeight;e({width:c,height:d})});return r.observe(t,{box:"border-box"}),()=>r.unobserve(t)}function W0(t){const{getNodes:e,observeMutation:i=!0,callback:r}=t,a=[];let s=null;function c(){const d=e();s=d[0];const h=d.map((p,m)=>q0(p,g=>{r(g,m)}));a.push(...h)}if(c(),i){const d=G0(s,c);a.push(d)}return()=>{a.forEach(d=>{d?.()})}}function G0(t,e){var i;if(!t||!t.parentElement)return;const r=((i=t.ownerDocument)==null?void 0:i.defaultView)??window,a=new r.MutationObserver(()=>{e()});return a.observe(t.parentElement,{childList:!0}),()=>{a.disconnect()}}var Y0=Ii("slider").parts("root","label","thumb","output","track","range","control","markerGroup","marker");Y0.build();function K0(t){const{height:e=0}=t.thumbSize??{},i=el([t.min,t.max],[-e/2,e/2]);return parseFloat(i(t.value).toFixed(2))}function X0(t){const{width:e=0}=t.thumbSize??{};if(t.isRtl){const r=el([t.max,t.min],[-e/2,e/2]);return-1*parseFloat(r(t.value).toFixed(2))}const i=el([t.min,t.max],[-e/2,e/2]);return parseFloat(i(t.value).toFixed(2))}function J0(t,e){if(t.thumbAlignment==="center")return`${e}%`;const i=t.isVertical?K0(t):X0(t);return`calc(${e}% - ${i}px)`}function Ul(t){let e=Vl(t.value,t.min,t.max)*100;return J0(t,e)}function Am(t){let e="visible";return t.thumbAlignment==="contain"&&!t.hasMeasuredThumbSize&&(e="hidden"),e}function Q0(t){const e=t.isVertical?"bottom":"insetInlineStart";return{visibility:Am(t),position:"absolute",transform:"var(--slider-thumb-transform)",[e]:"var(--slider-thumb-offset)"}}function tx(t){let e="0%",i=`${100-t.valuePercent}%`;if(t.origin==="center"){const r=t.valuePercent<50;e=r?`${t.valuePercent}%`:"50%",i=r?"50%":i}return{start:e,end:i}}function ex(t){return t.isVertical?{position:"absolute",bottom:"var(--slider-range-start)",top:"var(--slider-range-end)"}:{position:"absolute",[t.isRtl?"right":"left"]:"var(--slider-range-start)",[t.isRtl?"left":"right"]:"var(--slider-range-end)"}}function ix(){return{touchAction:"none",userSelect:"none",position:"relative"}}function nx(t){const e=tx(t);return{"--slider-thumb-transform":t.isVertical?"translateY(50%)":t.isRtl?"translateX(50%)":"translateX(-50%)","--slider-thumb-offset":Ul(t),"--slider-range-start":e.start,"--slider-range-end":e.end}}function rx(t,e){return{visibility:Am(t),position:"absolute",pointerEvents:"none",[t.isHorizontal?"insetInlineStart":"bottom"]:Ul({...t,value:e}),translate:"var(--tx) var(--ty)","--tx":t.isHorizontal?t.isRtl?"50%":"-50%":"0%","--ty":t.isHorizontal?"0%":"50%"}}function ox(){return{userSelect:"none"}}function ax(){return{position:"relative"}}function sx(){return{userSelect:"none",pointerEvents:"none",position:"relative"}}var lx={getThumbOffset:Ul,getControlStyle:ix,getThumbStyle:Q0,getRangeStyle:ex,getRootStyle:nx,getMarkerStyle:rx,getLabelStyle:ox,getTrackStyle:ax,getMarkerGroupStyle:sx},de=Nr({...lx,getRootId:t=>{var e;return((e=t.ids)==null?void 0:e.root)??`slider:${t.id}`},getThumbId:t=>{var e;return((e=t.ids)==null?void 0:e.thumb)??`slider:${t.id}:thumb`},getControlId:t=>{var e;return((e=t.ids)==null?void 0:e.control)??`slider:${t.id}:control`},getHiddenInputId:t=>{var e;return((e=t.ids)==null?void 0:e.hiddenInput)??`slider:${t.id}:input`},getOutputId:t=>{var e;return((e=t.ids)==null?void 0:e.output)??`slider:${t.id}:output`},getTrackId:t=>{var e;return((e=t.ids)==null?void 0:e.track)??`slider:${t.id}track`},getRangeId:t=>{var e;return((e=t.ids)==null?void 0:e.track)??`slider:${t.id}:range`},getLabelId:t=>{var e;return((e=t.ids)==null?void 0:e.label)??`slider:${t.id}:label`},getMarkerId:(t,e)=>`slider:${t.id}:marker:${e}`,getRootEl:t=>de.getById(t,de.getRootId(t)),getThumbEl:t=>de.getById(t,de.getThumbId(t)),getControlEl:t=>de.getById(t,de.getControlId(t)),getHiddenInputEl:t=>de.getById(t,de.getHiddenInputId(t)),getValueFromPoint(t,e){const i=de.getControlEl(t);if(!i)return;const r=Em(e,i).getPercentValue({orientation:t.orientation,dir:t.dir,inverted:{y:!0}});return Zl(r,t.min,t.max,t.step)},dispatchChangeEvent(t){const e=de.getHiddenInputEl(t);e&&mm(e,{value:t.value})}}),cx=Ii("range-slider").parts("root","label","thumb","output","track","range","control","markerGroup","marker"),li=cx.build();function ux(t){const e=t[0],i=t[t.length-1];return[e,i]}function dx(t){const[e,i]=ux(t.valuePercent);return{start:`${e}%`,end:`${100-i}%`}}function hx(t){let e="visible";return t.thumbAlignment==="contain"&&!t.hasMeasuredThumbSize&&(e="hidden"),e}function px(t,e){const i=t.isVertical?"bottom":"insetInlineStart";return{visibility:hx(t),position:"absolute",transform:"var(--slider-thumb-transform)",[i]:`var(--slider-thumb-offset-${e})`}}function fx(t){const e=dx(t);return{...t.value.reduce((i,r,a)=>{const s=de.getThumbOffset({...t,value:r});return{...i,[`--slider-thumb-offset-${a}`]:s}},{}),"--slider-thumb-transform":t.isVertical?"translateY(50%)":t.isRtl?"translateX(50%)":"translateX(-50%)","--slider-range-start":e.start,"--slider-range-end":e.end}}var mx={getRootStyle:fx,getControlStyle:de.getControlStyle,getThumbStyle:px,getRangeStyle:de.getRangeStyle,getMarkerStyle:de.getMarkerStyle,getMarkerGroupStyle:de.getMarkerGroupStyle},mt=Nr({...mx,getRootId:t=>{var e;return((e=t.ids)==null?void 0:e.root)??`slider:${t.id}`},getThumbId:(t,e)=>{var i,r;return((r=(i=t.ids)==null?void 0:i.thumb)==null?void 0:r.call(i,e))??`slider:${t.id}:thumb:${e}`},getHiddenInputId:(t,e)=>`slider:${t.id}:input:${e}`,getControlId:t=>{var e;return((e=t.ids)==null?void 0:e.control)??`slider:${t.id}:control`},getTrackId:t=>{var e;return((e=t.ids)==null?void 0:e.track)??`slider:${t.id}:track`},getRangeId:t=>{var e;return((e=t.ids)==null?void 0:e.range)??`slider:${t.id}:range`},getLabelId:t=>{var e;return((e=t.ids)==null?void 0:e.label)??`slider:${t.id}:label`},getOutputId:t=>{var e;return((e=t.ids)==null?void 0:e.output)??`slider:${t.id}:output`},getMarkerId:(t,e)=>{var i,r;return((r=(i=t.ids)==null?void 0:i.marker)==null?void 0:r.call(i,e))??`slider:${t.id}:marker:${e}`},getRootEl:t=>mt.getById(t,mt.getRootId(t)),getThumbEl:(t,e)=>mt.getById(t,mt.getThumbId(t,e)),getHiddenInputEl:(t,e)=>mt.getById(t,mt.getHiddenInputId(t,e)),getControlEl:t=>mt.getById(t,mt.getControlId(t)),getElements:t=>lm(mt.getControlEl(t),"[role=slider]"),getFirstEl:t=>mt.getElements(t)[0],getRangeEl:t=>mt.getById(t,mt.getRangeId(t)),getValueFromPoint(t,e){const i=mt.getControlEl(t);if(!i)return;const r=Em(e,i).getPercentValue({orientation:t.orientation,dir:t.dir,inverted:{y:!0}});return Zl(r,t.min,t.max,t.step)},dispatchChangeEvent(t){Array.from(t.value).forEach((e,i)=>{const r=mt.getHiddenInputEl(t,i);r&&mm(r,{value:e})})}});function Qu(t,e){return e.map((i,r,a)=>il({...t,value:a},i,r))}function Oi(t,e){return $0(t.value,t.min,t.max,t.minStepsBetweenThumbs)[e]}function il(t,e,i){const r=Oi(t,i),a=Tm(e,t.min,t.max,t.step);return xa(a,r.min,r.max)}function gx(t,e,i){const r=e??t.focusedIndex,a=Oi(t,r),s=U0(r,{...a,step:i??t.step,values:t.value});return s[r]=xa(s[r],a.min,a.max),s}function vx(t,e,i){const r=e??t.focusedIndex,a=Oi(t,r),s=Z0(r,{...a,step:i??t.step,values:t.value});return s[r]=xa(s[r],a.min,a.max),s}function _x(t,e){return H0(t.value,e)}function bx(t,e){for(let i=0;i<e.length;i++){const r=e[i];t[i]=r}}function kx(t,e,i){const r=t.context["aria-label"],a=t.context["aria-labelledby"],s=t.context.value,c=t.matches("focus"),d=t.matches("dragging"),h=t.context.isDisabled,p=t.context.invalid,m=t.context.isInteractive;function g(_){return Vl(_,t.context.min,t.context.max)}function v(_){return Zl(_,t.context.min,t.context.max,t.context.step)}return{value:t.context.value,isDragging:d,isFocused:c,setValue(_){e({type:"SET_VALUE",value:_})},getThumbValue(_){return s[_]},setThumbValue(_,y){e({type:"SET_VALUE",index:_,value:y})},getValuePercent:g,getPercentValue:v,getThumbPercent(_){return g(s[_])},setThumbPercent(_,y){const k=v(y);e({type:"SET_VALUE",index:_,value:k})},getThumbMin(_){return Oi(t.context,_).min},getThumbMax(_){return Oi(t.context,_).max},increment(_){e({type:"INCREMENT",index:_})},decrement(_){e({type:"DECREMENT",index:_})},focus(){m&&e({type:"FOCUS",index:0})},labelProps:i.label({...li.label.attrs,"data-disabled":Nt(h),"data-orientation":t.context.orientation,"data-invalid":Nt(p),"data-focus":Nt(c),id:mt.getLabelId(t.context),htmlFor:mt.getHiddenInputId(t.context,0),onClick(_){var y;m&&(_.preventDefault(),(y=mt.getFirstEl(t.context))==null||y.focus())},style:{userSelect:"none"}}),rootProps:i.element({...li.root.attrs,"data-disabled":Nt(h),"data-orientation":t.context.orientation,"data-invalid":Nt(p),"data-focus":Nt(c),id:mt.getRootId(t.context),dir:t.context.dir,style:mt.getRootStyle(t.context)}),outputProps:i.output({...li.output.attrs,"data-disabled":Nt(h),"data-orientation":t.context.orientation,"data-invalid":Nt(p),"data-focus":Nt(c),id:mt.getOutputId(t.context),htmlFor:s.map((_,y)=>mt.getHiddenInputId(t.context,y)).join(" "),"aria-live":"off"}),trackProps:i.element({...li.track.attrs,id:mt.getTrackId(t.context),"data-disabled":Nt(h),"data-invalid":Nt(p),"data-orientation":t.context.orientation,"data-focus":Nt(c),style:{position:"relative"}}),getThumbProps(_){var y,k;const E=s[_],C=Oi(t.context,_),N=(k=(y=t.context).getAriaValueText)==null?void 0:k.call(y,E,_),O=Array.isArray(r)?r[_]:r,j=Array.isArray(a)?a[_]:a;return i.element({...li.thumb.attrs,"data-index":_,id:mt.getThumbId(t.context,_),"data-disabled":Nt(h),"data-orientation":t.context.orientation,"data-focus":Nt(c&&t.context.focusedIndex===_),draggable:!1,"aria-disabled":Yk(h),"aria-label":O,"aria-labelledby":j??mt.getLabelId(t.context),"aria-orientation":t.context.orientation,"aria-valuemax":C.max,"aria-valuemin":C.min,"aria-valuenow":s[_],"aria-valuetext":N,role:"slider",tabIndex:h?void 0:0,style:mt.getThumbStyle(t.context,_),onPointerDown(z){e({type:"THUMB_POINTER_DOWN",index:_}),z.stopPropagation()},onBlur(){m&&e("BLUR")},onFocus(){m&&e({type:"FOCUS",index:_})},onKeyDown(z){if(!m)return;const U=N0(z)*t.context.step;let V=!0;const Z={ArrowUp(){e({type:"ARROW_UP",step:U}),V=t.context.isVertical},ArrowDown(){e({type:"ARROW_DOWN",step:U}),V=t.context.isVertical},ArrowLeft(){e({type:"ARROW_LEFT",step:U}),V=t.context.isHorizontal},ArrowRight(){e({type:"ARROW_RIGHT",step:U}),V=t.context.isHorizontal},PageUp(){e({type:"PAGE_UP",step:U})},PageDown(){e({type:"PAGE_DOWN",step:U})},Home(){e("HOME")},End(){e("END")}},T=I0(z,t.context),A=Z[T];A&&(A(z),V&&(z.preventDefault(),z.stopPropagation()))}})},getHiddenInputProps(_){return i.input({name:`${t.context.name}[${_}]`,form:t.context.form,type:"text",hidden:!0,defaultValue:t.context.value[_],id:mt.getHiddenInputId(t.context,_)})},rangeProps:i.element({id:mt.getRangeId(t.context),...li.range.attrs,"data-focus":Nt(c),"data-invalid":Nt(p),"data-disabled":Nt(h),"data-orientation":t.context.orientation,style:mt.getRangeStyle(t.context)}),controlProps:i.element({...li.control.attrs,id:mt.getControlId(t.context),"data-disabled":Nt(h),"data-orientation":t.context.orientation,"data-invalid":Nt(p),"data-focus":Nt(c),style:mt.getControlStyle(),onPointerDown(_){if(!m)return;const y=F0(_);if(!E0(y)||S0(y))return;const k=wm(y);e({type:"POINTER_DOWN",point:k}),_.preventDefault(),_.stopPropagation()}}),markerGroupProps:i.element({...li.markerGroup.attrs,role:"presentation","aria-hidden":!0,"data-orientation":t.context.orientation,style:mt.getMarkerGroupStyle()}),getMarkerProps({value:_}){const y=mt.getMarkerStyle(t.context,_);let k;const E=t.context.value[0],C=t.context.value[t.context.value.length-1];return _<E?k="under-value":_>C?k="over-value":k="at-value",i.element({...li.marker.attrs,id:mt.getMarkerId(t.context,_),role:"presentation",dir:t.context.dir,"data-orientation":t.context.orientation,"data-value":_,"data-disabled":Nt(h),"data-state":k,style:y})}}}var yx=(t,e)=>t?.width===e?.width&&t?.height===e?.height;function xx(t){const e=ka(t);return Fl({id:"range-slider",initial:"idle",context:{thumbSize:null,thumbAlignment:"contain",threshold:5,focusedIndex:-1,min:0,max:100,step:1,value:[0,100],orientation:"horizontal",dir:"ltr",minStepsBetweenThumbs:0,disabled:!1,...e,fieldsetDisabled:!1},computed:{isHorizontal:i=>i.orientation==="horizontal",isVertical:i=>i.orientation==="vertical",isRtl:i=>i.orientation==="horizontal"&&i.dir==="rtl",isDisabled:i=>!!i.disabled||i.fieldsetDisabled,isInteractive:i=>!(i.readOnly||i.isDisabled),spacing:i=>i.minStepsBetweenThumbs*i.step,hasMeasuredThumbSize:i=>i.thumbSize!=null,valuePercent(i){return i.value.map(r=>100*Vl(r,i.min,i.max))}},watch:{value:["syncInputElements"]},entry:["coarseValue"],activities:["trackFormControlState","trackThumbsSize"],on:{SET_VALUE:[{guard:"hasIndex",actions:"setValueAtIndex"},{actions:"setValue"}],INCREMENT:{actions:"incrementAtIndex"},DECREMENT:{actions:"decrementAtIndex"}},states:{idle:{on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","invokeOnChangeStart","focusActiveThumb"]},FOCUS:{target:"focus",actions:"setFocusedIndex"},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","invokeOnChangeStart","focusActiveThumb"]}}},focus:{entry:"focusActiveThumb",on:{POINTER_DOWN:{target:"dragging",actions:["setClosestThumbIndex","setPointerValue","invokeOnChangeStart","focusActiveThumb"]},THUMB_POINTER_DOWN:{target:"dragging",actions:["setFocusedIndex","invokeOnChangeStart","focusActiveThumb"]},ARROW_LEFT:{guard:"isHorizontal",actions:"decrementAtIndex"},ARROW_RIGHT:{guard:"isHorizontal",actions:"incrementAtIndex"},ARROW_UP:{guard:"isVertical",actions:"incrementAtIndex"},ARROW_DOWN:{guard:"isVertical",actions:"decrementAtIndex"},PAGE_UP:{actions:"incrementAtIndex"},PAGE_DOWN:{actions:"decrementAtIndex"},HOME:{actions:"setActiveThumbToMin"},END:{actions:"setActiveThumbToMax"},BLUR:{target:"idle",actions:"clearFocusedIndex"}}},dragging:{entry:"focusActiveThumb",activities:"trackPointerMove",on:{POINTER_UP:{target:"focus",actions:"invokeOnChangeEnd"},POINTER_MOVE:{actions:"setPointerValue"}}}}},{guards:{isHorizontal:i=>i.isHorizontal,isVertical:i=>i.isVertical,hasIndex:(i,r)=>r.index!=null},activities:{trackFormControlState(i,r,{initialContext:a}){return gm(mt.getRootEl(i),{onFieldsetDisabledChange(s){i.fieldsetDisabled=s},onFormReset(){Le.value(i,a.value)}})},trackPointerMove(i,r,{send:a}){return R0(mt.getDoc(i),{onPointerMove(s){a({type:"POINTER_MOVE",point:s.point})},onPointerUp(){a("POINTER_UP")}})},trackThumbsSize(i){if(!(i.thumbAlignment!=="contain"||i.thumbSize))return W0({getNodes:()=>mt.getElements(i),observeMutation:!0,callback(r){!r||yx(i.thumbSize,r)||(i.thumbSize=r)}})}},actions:{syncInputElements(i){i.value.forEach((r,a)=>{const s=mt.getHiddenInputEl(i,a);mt.setValue(s,r)})},invokeOnChangeStart(i){var r;(r=i.onChangeStart)==null||r.call(i,{value:i.value})},invokeOnChangeEnd(i){var r;(r=i.onChangeEnd)==null||r.call(i,{value:i.value})},setClosestThumbIndex(i,r){const a=mt.getValueFromPoint(i,r.point);if(a==null)return;const s=_x(i,a);Le.focusedIndex(i,s)},setFocusedIndex(i,r){Le.focusedIndex(i,r.index)},clearFocusedIndex(i){Le.focusedIndex(i,-1)},setPointerValue(i,r){const a=mt.getValueFromPoint(i,r.point);if(a==null)return;const s=il(i,a,i.focusedIndex);Le.valueAtIndex(i,i.focusedIndex,s)},focusActiveThumb(i){on(()=>{mt.getThumbEl(i,i.focusedIndex)?.focus({preventScroll:!0})})},decrementAtIndex(i,r){const a=gx(i,r.index,r.step);Le.value(i,a)},incrementAtIndex(i,r){const a=vx(i,r.index,r.step);Le.value(i,a)},setActiveThumbToMin(i){const{min:r}=Oi(i,i.focusedIndex);Le.valueAtIndex(i,i.focusedIndex,r)},setActiveThumbToMax(i){const{max:r}=Oi(i,i.focusedIndex);Le.valueAtIndex(i,i.focusedIndex,r)},coarseValue(i){const r=Qu(i,i.value);Le.value(i,r)},setValueAtIndex(i,r){const a=il(i,r.value,r.index);Le.valueAtIndex(i,r.index,a)},setValue(i,r){const a=Qu(i,r.value);Le.value(i,a)}}})}var ys={change:t=>{var e;(e=t.onChange)==null||e.call(t,{value:t.value}),mt.dispatchChangeEvent(t)},focusChange:t=>{var e;(e=t.onFocusChange)==null||e.call(t,{value:t.value,index:t.focusedIndex})}},Le={valueAtIndex:(t,e,i)=>{t.value[e]=i,ys.change(t)},value:(t,e)=>{bx(t.value,e),ys.change(t)},focusedIndex:(t,e)=>{t.focusedIndex=e,ys.focusChange(t)}};const wx=Dt({__name:"RangeSlider",props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},minStepsBetweenThumbs:{}},emits:["update:modelValue"],setup(t,{emit:e}){const i=t,r={id:ya(),...i,value:i.modelValue,onChange:({value:d})=>{const[h,p]=[c.value.getThumbMin(0),c.value.getThumbMax(0)],[m,g]=[c.value.getThumbMin(1),c.value.getThumbMax(1)],v=Math.max(h,Math.min(p,d[0])),_=Math.min(g,Math.max(m,d[1]));e("update:modelValue",[v,_])}},[a,s]=zl(xx(r),{context:lt(()=>i)}),c=lt(()=>kx(a.value,s,Bl));return Ut(()=>i.modelValue,d=>{const[h,p]=[c.value.getThumbMin(0),c.value.getThumbMax(0)],[m,g]=[c.value.getThumbMin(1),c.value.getThumbMax(1)],[v,_]=[c.value.getThumbValue(0),c.value.getThumbValue(1)],[y,k]=d;if(y===v&&k===_)return;const E=Math.max(h,Math.min(p,y)),C=Math.min(g,Math.max(m,k));return v===E&&_===C?e("update:modelValue",[E,C]):c.value.setValue([E,C])},{deep:!0}),(d,h)=>(R(),K("div",ee(c.value.rootProps,{class:"k-rangeslider"}),[tt("div",Xi(Ji(c.value.controlProps)),[tt("div",Xi(Ji(c.value.trackProps)),[tt("div",Xi(Ji(c.value.rangeProps)),null,16)],16),(R(!0),K(oe,null,vi(c.value.value,(p,m)=>(R(),K("div",ee({key:m},c.value.getThumbProps(m)),[tt("input",Xi(Ji(c.value.getHiddenInputProps(m))),null,16)],16))),128))],16)],16))}}),nl=Math.min,Nn=Math.max,Go=Math.round,po=Math.floor,Mi=t=>({x:t,y:t}),Ex={left:"right",right:"left",bottom:"top",top:"bottom"},Tx={start:"end",end:"start"};function Hl(t,e){return typeof t=="function"?t(e):t}function Vn(t){return t.split("-")[0]}function wa(t){return t.split("-")[1]}function Sx(t){return t==="x"?"y":"x"}function Cm(t){return t==="y"?"height":"width"}function $l(t){return["top","bottom"].includes(Vn(t))?"y":"x"}function Im(t){return Sx($l(t))}function Ax(t,e,i){i===void 0&&(i=!1);const r=wa(t),a=Im(t),s=Cm(a);let c=a==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(c=Yo(c)),[c,Yo(c)]}function Cx(t){const e=Yo(t);return[rl(t),e,rl(e)]}function rl(t){return t.replace(/start|end/g,e=>Tx[e])}function Ix(t,e,i){const r=["left","right"],a=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(t){case"top":case"bottom":return i?e?a:r:e?r:a;case"left":case"right":return e?s:c;default:return[]}}function Px(t,e,i,r){const a=wa(t);let s=Ix(Vn(t),i==="start",r);return a&&(s=s.map(c=>c+"-"+a),e&&(s=s.concat(s.map(rl)))),s}function Yo(t){return t.replace(/left|right|bottom|top/g,e=>Ex[e])}function Ox(t){return{top:0,right:0,bottom:0,left:0,...t}}function Lx(t){return typeof t!="number"?Ox(t):{top:t,right:t,bottom:t,left:t}}function Ko(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function td(t,e,i){let{reference:r,floating:a}=t;const s=$l(e),c=Im(e),d=Cm(c),h=Vn(e),p=s==="y",m=r.x+r.width/2-a.width/2,g=r.y+r.height/2-a.height/2,v=r[d]/2-a[d]/2;let _;switch(h){case"top":_={x:m,y:r.y-a.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-a.width,y:g};break;default:_={x:r.x,y:r.y}}switch(wa(e)){case"start":_[c]-=v*(i&&p?-1:1);break;case"end":_[c]+=v*(i&&p?-1:1);break}return _}const Dx=async(t,e,i)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:c}=i,d=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(e));let p=await c.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:g}=td(p,r,h),v=r,_={},y=0;for(let k=0;k<d.length;k++){const{name:E,fn:C}=d[k],{x:N,y:O,data:j,reset:z}=await C({x:m,y:g,initialPlacement:r,placement:v,strategy:a,middlewareData:_,rects:p,platform:c,elements:{reference:t,floating:e}});if(m=N??m,g=O??g,_={..._,[E]:{..._[E],...j}},z&&y<=50){y++,typeof z=="object"&&(z.placement&&(v=z.placement),z.rects&&(p=z.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:a}):z.rects),{x:m,y:g}=td(p,v,h)),k=-1;continue}}return{x:m,y:g,placement:v,strategy:a,middlewareData:_}};async function Mx(t,e){var i;e===void 0&&(e={});const{x:r,y:a,platform:s,rects:c,elements:d,strategy:h}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:_=0}=Hl(e,t),y=Lx(_),k=d[v?g==="floating"?"reference":"floating":g],E=Ko(await s.getClippingRect({element:(i=await(s.isElement==null?void 0:s.isElement(k)))==null||i?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),C=g==="floating"?{...c.floating,x:r,y:a}:c.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),O=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},j=Ko(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:C,offsetParent:N,strategy:h}):C);return{top:(E.top-j.top+y.top)/O.y,bottom:(j.bottom-E.bottom+y.bottom)/O.y,left:(E.left-j.left+y.left)/O.x,right:(j.right-E.right+y.right)/O.x}}const Nx=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,r;const{placement:a,middlewareData:s,rects:c,initialPlacement:d,platform:h,elements:p}=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:k=!0,...E}=Hl(t,e);if((i=s.arrow)!=null&&i.alignmentOffset)return{};const C=Vn(a),N=Vn(d)===d,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),j=v||(N||!k?[Yo(d)]:Cx(d));!v&&y!=="none"&&j.push(...Px(d,k,y,O));const z=[d,...j],U=await Mx(e,E),V=[];let Z=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&V.push(U[C]),g){const $=Ax(a,c,O);V.push(U[$[0]],U[$[1]])}if(Z=[...Z,{placement:a,overflows:V}],!V.every($=>$<=0)){var T,A;const $=(((T=s.flip)==null?void 0:T.index)||0)+1,nt=z[$];if(nt)return{data:{index:$,overflows:Z},reset:{placement:nt}};let w=(A=Z.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!w)switch(_){case"bestFit":{var B;const P=(B=Z.map(F=>[F.placement,F.overflows.filter(Q=>Q>0).reduce((Q,q)=>Q+q,0)]).sort((F,Q)=>F[1]-Q[1])[0])==null?void 0:B[0];P&&(w=P);break}case"initialPlacement":w=d;break}if(a!==w)return{reset:{placement:w}}}return{}}}};async function Fx(t,e){const{placement:i,platform:r,elements:a}=t,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),c=Vn(i),d=wa(i),h=$l(i)==="y",p=["left","top"].includes(c)?-1:1,m=s&&h?-1:1,g=Hl(e,t);let{mainAxis:v,crossAxis:_,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return d&&typeof y=="number"&&(_=d==="end"?y*-1:y),h?{x:_*m,y:v*p}:{x:v*p,y:_*m}}const Rx=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:i,y:r}=e,a=await Fx(e,t);return{x:i+a.x,y:r+a.y,data:a}}}};function Ni(t){return Pm(t)?(t.nodeName||"").toLowerCase():"#document"}function Te(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function _i(t){var e;return(e=(Pm(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pm(t){return t instanceof Node||t instanceof Te(t).Node}function pi(t){return t instanceof Element||t instanceof Te(t).Element}function ei(t){return t instanceof HTMLElement||t instanceof Te(t).HTMLElement}function ed(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Te(t).ShadowRoot}function Rr(t){const{overflow:e,overflowX:i,overflowY:r,display:a}=Re(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&!["inline","contents"].includes(a)}function Bx(t){return["table","td","th"].includes(Ni(t))}function ql(t){const e=Wl(),i=Re(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(i.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(i.contain||"").includes(r))}function zx(t){let e=Zn(t);for(;ei(e)&&!Ea(e);){if(ql(e))return e;e=Zn(e)}return null}function Wl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ea(t){return["html","body","#document"].includes(Ni(t))}function Re(t){return Te(t).getComputedStyle(t)}function Ta(t){return pi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Zn(t){if(Ni(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ed(t)&&t.host||_i(t);return ed(e)?e.host:e}function Om(t){const e=Zn(t);return Ea(e)?t.ownerDocument?t.ownerDocument.body:t.body:ei(e)&&Rr(e)?e:Om(e)}function Or(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);const a=Om(t),s=a===((r=t.ownerDocument)==null?void 0:r.body),c=Te(a);return s?e.concat(c,c.visualViewport||[],Rr(a)?a:[],c.frameElement&&i?Or(c.frameElement):[]):e.concat(a,Or(a))}function Lm(t){const e=Re(t);let i=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=ei(t),s=a?t.offsetWidth:i,c=a?t.offsetHeight:r,d=Go(i)!==s||Go(r)!==c;return d&&(i=s,r=c),{width:i,height:r,$:d}}function Gl(t){return pi(t)?t:t.contextElement}function Fn(t){const e=Gl(t);if(!ei(e))return Mi(1);const i=e.getBoundingClientRect(),{width:r,height:a,$:s}=Lm(e);let c=(s?Go(i.width):i.width)/r,d=(s?Go(i.height):i.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const jx=Mi(0);function Dm(t){const e=Te(t);return!Wl()||!e.visualViewport?jx:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vx(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==Te(t)?!1:e}function sn(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);const a=t.getBoundingClientRect(),s=Gl(t);let c=Mi(1);e&&(r?pi(r)&&(c=Fn(r)):c=Fn(t));const d=Vx(s,i,r)?Dm(s):Mi(0);let h=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,m=a.width/c.x,g=a.height/c.y;if(s){const v=Te(s),_=r&&pi(r)?Te(r):r;let y=v.frameElement;for(;y&&r&&_!==v;){const k=Fn(y),E=y.getBoundingClientRect(),C=Re(y),N=E.left+(y.clientLeft+parseFloat(C.paddingLeft))*k.x,O=E.top+(y.clientTop+parseFloat(C.paddingTop))*k.y;h*=k.x,p*=k.y,m*=k.x,g*=k.y,h+=N,p+=O,y=Te(y).frameElement}}return Ko({width:m,height:g,x:h,y:p})}function Zx(t){let{rect:e,offsetParent:i,strategy:r}=t;const a=ei(i),s=_i(i);if(i===s)return e;let c={scrollLeft:0,scrollTop:0},d=Mi(1);const h=Mi(0);if((a||!a&&r!=="fixed")&&((Ni(i)!=="body"||Rr(s))&&(c=Ta(i)),ei(i))){const p=sn(i);d=Fn(i),h.x=p.x+i.clientLeft,h.y=p.y+i.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-c.scrollLeft*d.x+h.x,y:e.y*d.y-c.scrollTop*d.y+h.y}}function Ux(t){return Array.from(t.getClientRects())}function Mm(t){return sn(_i(t)).left+Ta(t).scrollLeft}function Hx(t){const e=_i(t),i=Ta(t),r=t.ownerDocument.body,a=Nn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Nn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-i.scrollLeft+Mm(t);const d=-i.scrollTop;return Re(r).direction==="rtl"&&(c+=Nn(e.clientWidth,r.clientWidth)-a),{width:a,height:s,x:c,y:d}}function $x(t,e){const i=Te(t),r=_i(t),a=i.visualViewport;let s=r.clientWidth,c=r.clientHeight,d=0,h=0;if(a){s=a.width,c=a.height;const p=Wl();(!p||p&&e==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}return{width:s,height:c,x:d,y:h}}function qx(t,e){const i=sn(t,!0,e==="fixed"),r=i.top+t.clientTop,a=i.left+t.clientLeft,s=ei(t)?Fn(t):Mi(1),c=t.clientWidth*s.x,d=t.clientHeight*s.y,h=a*s.x,p=r*s.y;return{width:c,height:d,x:h,y:p}}function id(t,e,i){let r;if(e==="viewport")r=$x(t,i);else if(e==="document")r=Hx(_i(t));else if(pi(e))r=qx(e,i);else{const a=Dm(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return Ko(r)}function Nm(t,e){const i=Zn(t);return i===e||!pi(i)||Ea(i)?!1:Re(i).position==="fixed"||Nm(i,e)}function Wx(t,e){const i=e.get(t);if(i)return i;let r=Or(t,[],!1).filter(d=>pi(d)&&Ni(d)!=="body"),a=null;const s=Re(t).position==="fixed";let c=s?Zn(t):t;for(;pi(c)&&!Ea(c);){const d=Re(c),h=ql(c);!h&&d.position==="fixed"&&(a=null),(s?!h&&!a:!h&&d.position==="static"&&a&&["absolute","fixed"].includes(a.position)||Rr(c)&&!h&&Nm(t,c))?r=r.filter(p=>p!==c):a=d,c=Zn(c)}return e.set(t,r),r}function Gx(t){let{element:e,boundary:i,rootBoundary:r,strategy:a}=t;const s=[...i==="clippingAncestors"?Wx(e,this._c):[].concat(i),r],c=s[0],d=s.reduce((h,p)=>{const m=id(e,p,a);return h.top=Nn(m.top,h.top),h.right=nl(m.right,h.right),h.bottom=nl(m.bottom,h.bottom),h.left=Nn(m.left,h.left),h},id(e,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yx(t){return Lm(t)}function Kx(t,e,i){const r=ei(e),a=_i(e),s=i==="fixed",c=sn(t,!0,s,e);let d={scrollLeft:0,scrollTop:0};const h=Mi(0);if(r||!r&&!s)if((Ni(e)!=="body"||Rr(a))&&(d=Ta(e)),r){const p=sn(e,!0,s,e);h.x=p.x+e.clientLeft,h.y=p.y+e.clientTop}else a&&(h.x=Mm(a));return{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function nd(t,e){return!ei(t)||Re(t).position==="fixed"?null:e?e(t):t.offsetParent}function Fm(t,e){const i=Te(t);if(!ei(t))return i;let r=nd(t,e);for(;r&&Bx(r)&&Re(r).position==="static";)r=nd(r,e);return r&&(Ni(r)==="html"||Ni(r)==="body"&&Re(r).position==="static"&&!ql(r))?i:r||zx(t)||i}const Xx=async function(t){let{reference:e,floating:i,strategy:r}=t;const a=this.getOffsetParent||Fm,s=this.getDimensions;return{reference:Kx(e,await a(i),r),floating:{x:0,y:0,...await s(i)}}};function Jx(t){return Re(t).direction==="rtl"}const Qx={convertOffsetParentRelativeRectToViewportRelativeRect:Zx,getDocumentElement:_i,getClippingRect:Gx,getOffsetParent:Fm,getElementRects:Xx,getClientRects:Ux,getDimensions:Yx,getScale:Fn,isElement:pi,isRTL:Jx};function tw(t,e){let i=null,r;const a=_i(t);function s(){clearTimeout(r),i&&i.disconnect(),i=null}function c(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),s();const{left:p,top:m,width:g,height:v}=t.getBoundingClientRect();if(d||e(),!g||!v)return;const _=po(m),y=po(a.clientWidth-(p+g)),k=po(a.clientHeight-(m+v)),E=po(p),C={rootMargin:-_+"px "+-y+"px "+-k+"px "+-E+"px",threshold:Nn(0,nl(1,h))||1};let N=!0;function O(j){const z=j[0].intersectionRatio;if(z!==h){if(!N)return c();z?c(!1,z):r=setTimeout(()=>{c(!1,1e-7)},100)}N=!1}try{i=new IntersectionObserver(O,{...C,root:a.ownerDocument})}catch{i=new IntersectionObserver(O,C)}i.observe(t)}return c(!0),s}function ew(t,e,i,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=Gl(t),m=a||s?[...p?Or(p):[],...Or(e)]:[];m.forEach(C=>{a&&C.addEventListener("scroll",i,{passive:!0}),s&&C.addEventListener("resize",i)});const g=p&&d?tw(p,i):null;let v=-1,_=null;c&&(_=new ResizeObserver(C=>{let[N]=C;N&&N.target===p&&_&&(_.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{_&&_.observe(e)})),i()}),p&&!h&&_.observe(p),_.observe(e));let y,k=h?sn(t):null;h&&E();function E(){const C=sn(t);k&&(C.x!==k.x||C.y!==k.y||C.width!==k.width||C.height!==k.height)&&i(),k=C,y=requestAnimationFrame(E)}return i(),()=>{m.forEach(C=>{a&&C.removeEventListener("scroll",i),s&&C.removeEventListener("resize",i)}),g&&g(),_&&_.disconnect(),_=null,h&&cancelAnimationFrame(y)}}const iw=(t,e,i)=>{const r=new Map,a={platform:Qx,...i},s={...a.platform,_c:r};return Dx(t,e,{...a,platform:s})};function rd(t){var e;return(e=t?.$el)!=null?e:t}function Rm(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function od(t,e){const i=Rm(t);return Math.round(e*i)/i}function nw(t,e,i){i===void 0&&(i={});const r=i.whileElementsMounted,a=lt(()=>{var V;return(V=dt(i.open))!=null?V:!0}),s=lt(()=>dt(i.middleware)),c=lt(()=>{var V;return(V=dt(i.placement))!=null?V:"bottom"}),d=lt(()=>{var V;return(V=dt(i.strategy))!=null?V:"absolute"}),h=lt(()=>{var V;return(V=dt(i.transform))!=null?V:!0}),p=lt(()=>rd(t.value)),m=lt(()=>rd(e.value)),g=W(0),v=W(0),_=W(d.value),y=W(c.value),k=da({}),E=W(!1),C=lt(()=>{const V={position:_.value,left:"0",top:"0"};if(!m.value)return V;const Z=od(m.value,g.value),T=od(m.value,v.value);return h.value?{...V,transform:"translate("+Z+"px, "+T+"px)",...Rm(m.value)>=1.5&&{willChange:"transform"}}:{position:_.value,left:Z+"px",top:T+"px"}});let N;function O(){p.value==null||m.value==null||iw(p.value,m.value,{middleware:s.value,placement:c.value,strategy:d.value}).then(V=>{g.value=V.x,v.value=V.y,_.value=V.strategy,y.value=V.placement,k.value=V.middlewareData,E.value=!0})}function j(){typeof N=="function"&&(N(),N=void 0)}function z(){if(j(),r===void 0){O();return}if(p.value!=null&&m.value!=null){N=r(p.value,m.value,O);return}}function U(){a.value||(E.value=!1)}return Ut([s,c,d],O,{flush:"sync"}),Ut([p,m],z,{flush:"sync"}),Ut(a,U,{flush:"sync"}),bl()&&kl(j),{x:Ne(g),y:Ne(v),strategy:Ne(_),placement:Ne(y),middlewareData:Ne(k),isPositioned:Ne(E),floatingStyles:C,update:O}}const Bm=Dt({inheritAttrs:!1,__name:"Dropdown",props:{items:{},placement:{default:"bottom-start"},teleport:{type:Boolean,default:!1},keepOpen:{type:Boolean,default:!1},theme:{default:"border"},variant:{},size:{},loading:{type:Boolean},promise:{},confirm:{type:Boolean},is:{},stateTimeout:{},confirmLabel:{},label:{},icon:{},iconLeft:{},iconRight:{default:"fa-pro-regular:angle-down"}},setup(t){const e=t,{items:i,placement:r,teleport:a,keepOpen:s,...c}=e,d=W(!1),h=W(),p=W(),{floatingStyles:m}=nw(h,p,{placement:e.placement,middleware:[Rx(10),Nx()],whileElementsMounted:ew}),g=({target:y})=>{if(y instanceof Element&&![h.value.$el,p.value].some(k=>k&&(y===k||k.contains(y))))return _(!1)},v=({key:y})=>y==="Escape"&&_(!1),_=(y=!d.value)=>(y?(window.addEventListener("click",g),window.addEventListener("keydown",v)):(window.removeEventListener("click",g),window.removeEventListener("keydown",v)),d.value=y,!0);return(y,k)=>(R(),K(oe,null,[Ht(Di,ee({...c,...y.$attrs},{onClick:k[0]||(k[0]=()=>_()),ref_key:"trigger",ref:h}),null,16),(R(),Ct(jd,{to:"body",disabled:!dt(a)},[Ht(Hv,{name:"k-dropdown"},{default:Xt(()=>[d.value?(R(),K("div",{key:0,class:ti(`k-dropdown k-dropdown--theme-${y.theme}`),style:hi(dt(m)),ref_key:"content",ref:p,onClick:k[1]||(k[1]=()=>!dt(s)&&_(!1))},[xt(y.$slots,"default",{close:_.bind(null,!1)},()=>[(R(!0),K(oe,null,vi(dt(i),({action:E,icon:C,...N})=>(R(),Ct(Di,ee(N,{variant:"tertiary","icon-right":N.iconRight||C,onClick:()=>E()}),null,16,["icon-right","onClick"]))),256))])],6)):ut("",!0)]),_:3})],8,["disabled"]))],64))}});var rw=Ii("radio-group").parts("root","label","radio","radioLabel","radioControl","indicator");rw.build();var ae=Nr({getRootId:t=>{var e;return((e=t.ids)==null?void 0:e.root)??`radio-group:${t.id}`},getLabelId:t=>{var e;return((e=t.ids)==null?void 0:e.label)??`radio-group:${t.id}:label`},getRadioId:(t,e)=>{var i,r;return((r=(i=t.ids)==null?void 0:i.radio)==null?void 0:r.call(i,e))??`radio-group:${t.id}:radio:${e}`},getRadioHiddenInputId:(t,e)=>{var i,r;return((r=(i=t.ids)==null?void 0:i.radioHiddenInput)==null?void 0:r.call(i,e))??`radio-group:${t.id}:radio:input:${e}`},getRadioControlId:(t,e)=>{var i,r;return((r=(i=t.ids)==null?void 0:i.radioControl)==null?void 0:r.call(i,e))??`radio-group:${t.id}:radio:control:${e}`},getRadioLabelId:(t,e)=>{var i,r;return((r=(i=t.ids)==null?void 0:i.radioLabel)==null?void 0:r.call(i,e))??`radio-group:${t.id}:radio:label:${e}`},getIndicatorId:t=>{var e;return((e=t.ids)==null?void 0:e.indicator)??`radio-group:${t.id}:indicator`},getRootEl:t=>ae.getById(t,ae.getRootId(t)),getRadioHiddenInputEl:(t,e)=>ae.getById(t,ae.getRadioHiddenInputId(t,e)),getIndicatorEl:t=>ae.getById(t,ae.getIndicatorId(t)),getFirstEnabledInputEl:t=>{var e;return(e=ae.getRootEl(t))==null?void 0:e.querySelector("input:not(:disabled)")},getFirstEnabledAndCheckedInputEl:t=>{var e;return(e=ae.getRootEl(t))==null?void 0:e.querySelector("input:not(:disabled):checked")},getInputEls:t=>{const e=`input[type=radio][data-ownedby='${CSS.escape(ae.getRootId(t))}']:not([disabled])`;return lm(ae.getRootEl(t),e)},getActiveRadioEl:t=>{if(t.value)return ae.getById(t,ae.getRadioId(t,t.value))},getOffsetRect:t=>({left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.offsetWidth??0,height:t?.offsetHeight??0}),getRectById:(t,e)=>{const i=ae.getById(t,ae.getRadioId(t,e));if(i)return ae.resolveRect(ae.getOffsetRect(i))},resolveRect:t=>({width:`${t.width}px`,height:`${t.height}px`,left:`${t.left}px`,top:`${t.top}px`})}),lr=new WeakMap,De=[];function ow(t,e={}){const{rootEl:i}=e,r=t.filter(Boolean);if(r.length===0)return;const a=r[0].ownerDocument||document,s=a.defaultView??window,c=new Set(r),d=new Set,h=i??a.body;let p=_=>{for(let C of _.querySelectorAll("[data-live-announcer], [data-zag-top-layer]"))c.add(C);let y=C=>{if(c.has(C)||d.has(C.parentElement)&&C.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let N of c)if(C.contains(N))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},k=a.createTreeWalker(_,NodeFilter.SHOW_ELEMENT,{acceptNode:y}),E=y(_);if(E===NodeFilter.FILTER_ACCEPT&&m(_),E!==NodeFilter.FILTER_REJECT){let C=k.nextNode();for(;C!=null;)m(C),C=k.nextNode()}},m=_=>{let y=lr.get(_)??0;_.getAttribute("aria-hidden")==="true"&&y===0||(y===0&&_.setAttribute("aria-hidden","true"),d.add(_),lr.set(_,y+1))};De.length&&De[De.length-1].disconnect(),p(h);const g=new s.MutationObserver(_=>{for(let y of _)if(!(y.type!=="childList"||y.addedNodes.length===0)&&![...c,...d].some(k=>k.contains(y.target))){for(let k of y.removedNodes)k instanceof s.Element&&(c.delete(k),d.delete(k));for(let k of y.addedNodes)(k instanceof s.HTMLElement||k instanceof s.SVGElement)&&(k.dataset.liveAnnouncer==="true"||k.dataset.zagTopLayer==="true")?c.add(k):k instanceof s.Element&&p(k)}});g.observe(h,{childList:!0,subtree:!0});let v={observe(){g.observe(h,{childList:!0,subtree:!0})},disconnect(){g.disconnect()}};return De.push(v),()=>{g.disconnect();for(let _ of d){let y=lr.get(_);y===1?(_.removeAttribute("aria-hidden"),lr.delete(_)):lr.set(_,y-1)}v===De[De.length-1]?(De.pop(),De.length&&De[De.length-1].observe()):De.splice(De.indexOf(v),1)}}function aw(t,e={}){const{defer:i}=e,r=i?on:s=>s(),a=[];return a.push(r(()=>{const s=typeof t=="function"?t():t;a.push(ow(s,e))})),()=>{a.forEach(s=>s?.())}}var sw=t=>typeof t=="object"&&t!==null&&t.nodeType===1;function lw(t){return sw(t)?t.offsetWidth>0||t.offsetHeight>0||t.getClientRects().length>0:!1}var cw="input:not([type='hidden']):not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], button:not([disabled]), [tabindex], iframe, object, embed, area[href], audio[controls], video[controls], [contenteditable]:not([contenteditable='false']), details > summary:first-of-type";function zm(t){return!t||t.closest("[inert]")?!1:t.matches(cw)&&lw(t)}function uw(t){const e={each(i){var r;for(let a=0;a<((r=t.frames)==null?void 0:r.length);a+=1){const s=t.frames[a];s&&i(s)}},addEventListener(i,r,a){return e.each(s=>{try{s.document.addEventListener(i,r,a)}catch(c){console.warn(c)}}),()=>{try{e.removeEventListener(i,r,a)}catch(s){console.warn(s)}}},removeEventListener(i,r,a){e.each(s=>{try{s.document.removeEventListener(i,r,a)}catch(c){console.warn(c)}})}};return e}var ad="pointerdown.outside",sd="focus.outside";function dw(t){const e=t.composedPath()??[t.target];for(const i of e)if(jo(i)&&zm(i))return!0;return!1}var hw=t=>"clientY"in t;function pw(t,e){if(!hw(e)||!t)return!1;const i=t.getBoundingClientRect();return i.width===0||i.height===0?!1:i.top<=e.clientY&&e.clientY<=i.top+i.height&&i.left<=e.clientX&&e.clientX<=i.left+i.width}function fw(t,e){const{exclude:i,onFocusOutside:r,onPointerDownOutside:a,onInteractOutside:s}=e;if(!t)return;const c=Ll(t),d=Jk(t),h=uw(d);function p(k){const E=Zo(k);return!jo(E)||Vo(t,E)||pw(t,k)?!1:!(i!=null&&i(E))}let m;function g(k){function E(){if(!(!t||!p(k))){if(a||s){const C=Uu(a,s);t.addEventListener(ad,C,{once:!0})}Ku(t,ad,{bubbles:!1,cancelable:!0,detail:{originalEvent:k,contextmenu:T0(k),focusable:dw(k)}})}}k.pointerType==="touch"?(h.removeEventListener("click",E),c.removeEventListener("click",E),m=E,c.addEventListener("click",E,{once:!0}),h.addEventListener("click",E,{once:!0})):E()}const v=new Set,_=setTimeout(()=>{v.add(h.addEventListener("pointerdown",g,!0)),v.add(tn(c,"pointerdown",g,!0))},0);function y(k){if(!(!t||!p(k))){if(r||s){const E=Uu(r,s);t.addEventListener(sd,E,{once:!0})}Ku(t,sd,{bubbles:!1,cancelable:!0,detail:{originalEvent:k,contextmenu:!1,focusable:zm(Zo(k))}})}}return v.add(tn(c,"focusin",y,!0)),v.add(h.addEventListener("focusin",y,!0)),()=>{clearTimeout(_),m&&(h.removeEventListener("click",m),c.removeEventListener("click",m)),v.forEach(k=>k())}}function mw(t,e){const{defer:i}=e,r=i?on:s=>s(),a=[];return a.push(r(()=>{const s=typeof t=="function"?t():t;a.push(fw(s,e))})),()=>{a.forEach(s=>s?.())}}function gw(t,e){const i=r=>{r.key==="Escape"&&e?.(r)};return tn(Ll(t),"keydown",i)}var Ue={layers:[],branches:[],count(){return this.layers.length},pointerBlockingLayers(){return this.layers.filter(t=>t.pointerBlocking)},topMostPointerBlockingLayer(){return[...this.pointerBlockingLayers()].slice(-1)[0]},hasPointerBlockingLayer(){return this.pointerBlockingLayers().length>0},isBelowPointerBlockingLayer(t){var e;const i=this.indexOf(t),r=this.topMostPointerBlockingLayer()?this.indexOf((e=this.topMostPointerBlockingLayer())==null?void 0:e.node):-1;return i<r},isTopMost(t){return this.layers[this.count()-1]?.node===t},getNestedLayers(t){return Array.from(this.layers).slice(this.indexOf(t)+1)},isInNestedLayer(t,e){return this.getNestedLayers(t).some(i=>Vo(i.node,e))},isInBranch(t){return Array.from(this.branches).some(e=>Vo(e,t))},add(t){this.layers.push(t)},addBranch(t){this.branches.push(t)},remove(t){const e=this.indexOf(t);e<0||(e<this.count()-1&&this.getNestedLayers(t).forEach(i=>i.dismiss()),this.layers.splice(e,1))},removeBranch(t){const e=this.branches.indexOf(t);e>=0&&this.branches.splice(e,1)},indexOf(t){return this.layers.findIndex(e=>e.node===t)},dismiss(t){var e;(e=this.layers[this.indexOf(t)])==null||e.dismiss()},clear(){this.remove(this.layers[0].node)}},ld;function cd(){Ue.layers.forEach(({node:t})=>{t.style.pointerEvents=Ue.isBelowPointerBlockingLayer(t)?"none":"auto"})}function vw(t){t.style.pointerEvents=""}var xs="data-inert";function _w(t){const e=Ll(t);return Ue.hasPointerBlockingLayer()&&!e.body.hasAttribute(xs)&&(ld=document.body.style.pointerEvents,e.body.style.pointerEvents="none",e.body.setAttribute(xs,"")),()=>{Ue.hasPointerBlockingLayer()||(e.body.style.pointerEvents=ld,e.body.removeAttribute(xs),e.body.style.length===0&&e.body.removeAttribute("style"))}}function bw(t,e){if(!t){Fy("[@zag-js/dismissable] node is `null` or `undefined`");return}const{onDismiss:i,pointerBlocking:r,exclude:a,debug:s}=e,c={dismiss:i,node:t,pointerBlocking:r};Ue.add(c),cd();function d(v){var _,y;const k=Zo(v.detail.originalEvent);Ue.isBelowPointerBlockingLayer(t)||Ue.isInBranch(k)||((_=e.onPointerDownOutside)==null||_.call(e,v),(y=e.onInteractOutside)==null||y.call(e,v),!v.defaultPrevented&&(s&&console.log("onPointerDownOutside:",v.detail.originalEvent),i?.()))}function h(v){var _,y;const k=Zo(v.detail.originalEvent);Ue.isInBranch(k)||((_=e.onFocusOutside)==null||_.call(e,v),(y=e.onInteractOutside)==null||y.call(e,v),!v.defaultPrevented&&(s&&console.log("onFocusOutside:",v.detail.originalEvent),i?.()))}function p(v){var _;Ue.isTopMost(t)&&((_=e.onEscapeKeyDown)==null||_.call(e,v),!v.defaultPrevented&&i&&(v.preventDefault(),i()))}function m(v){if(!t)return!1;const _=typeof a=="function"?a():a;return(Array.isArray(_)?_:[_]).some(y=>Vo(y,v))||Ue.isInNestedLayer(t,v)}const g=[r?_w(t):void 0,gw(t,p),mw(t,{exclude:m,onFocusOutside:h,onPointerDownOutside:d})];return()=>{Ue.remove(t),cd(),vw(t),g.forEach(v=>v?.())}}function kw(t,e){const{defer:i}=e,r=i?on:s=>s(),a=[];return a.push(r(()=>{const s=typeof t=="function"?t():t;a.push(bw(s,e))})),()=>{a.forEach(s=>s?.())}}var ws="data-zag-scroll-lock";function ud(t,e){if(!t)return;const i=t.style.cssText;return Object.assign(t.style,e),()=>{t.style.cssText=i}}function yw(t,e,i){if(!t)return;const r=t.style.getPropertyValue(e);return t.style.setProperty(e,i),()=>{r?t.style.setProperty(e,r):t.style.removeProperty(e)}}function xw(t){const e=t.getBoundingClientRect().left;return Math.round(e)+t.scrollLeft?"paddingLeft":"paddingRight"}function ww(t){const e=t??document,i=e.defaultView??window,{documentElement:r,body:a}=e;if(a.hasAttribute(ws))return;a.setAttribute(ws,"");const s=i.innerWidth-r.clientWidth,c=()=>yw(r,"--scrollbar-width",`${s}px`),d=xw(r),h=()=>ud(a,{overflow:"hidden",[d]:`${s}px`}),p=()=>{const{scrollX:g,scrollY:v,visualViewport:_}=i,y=_?.offsetLeft??0,k=_?.offsetTop??0,E=ud(a,{position:"fixed",overflow:"hidden",top:`${-(v-Math.floor(k))}px`,left:`${-(g-Math.floor(y))}px`,right:"0",[d]:`${s}px`});return()=>{E?.(),i.scrollTo(g,v)}},m=[c(),Dl()?p():h()];return()=>{m.forEach(g=>g?.()),a.removeAttribute(ws)}}/*!
|
|
159
|
-
* tabbable 6.2.0
|
|
160
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
161
|
-
*/var jm=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Xo=jm.join(","),Vm=typeof Element>"u",ln=Vm?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Jo=!Vm&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Qo=function t(e,i){var r;i===void 0&&(i=!0);var a=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=a===""||a==="true",c=s||i&&e&&t(e.parentNode);return c},Ew=function(t){var e,i=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return i===""||i==="true"},Zm=function(t,e,i){if(Qo(t))return[];var r=Array.prototype.slice.apply(t.querySelectorAll(Xo));return e&&ln.call(t,Xo)&&r.unshift(t),r=r.filter(i),r},Um=function t(e,i,r){for(var a=[],s=Array.from(e);s.length;){var c=s.shift();if(!Qo(c,!1))if(c.tagName==="SLOT"){var d=c.assignedElements(),h=d.length?d:c.children,p=t(h,!0,r);r.flatten?a.push.apply(a,p):a.push({scopeParent:c,candidates:p})}else{var m=ln.call(c,Xo);m&&r.filter(c)&&(i||!e.includes(c))&&a.push(c);var g=c.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(c),v=!Qo(g,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(g&&v){var _=t(g===!0?c.children:g.children,!0,r);r.flatten?a.push.apply(a,_):a.push({scopeParent:c,candidates:_})}else s.unshift.apply(s,c.children)}}return a},Hm=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Ki=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Ew(t))&&!Hm(t)?0:t.tabIndex},Tw=function(t,e){var i=Ki(t);return i<0&&e&&!Hm(t)?0:i},Sw=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},$m=function(t){return t.tagName==="INPUT"},Aw=function(t){return $m(t)&&t.type==="hidden"},Cw=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return e},Iw=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]},Pw=function(t){if(!t.name)return!0;var e=t.form||Jo(t),i=function(s){return e.querySelectorAll('input[type="radio"][name="'+s+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(t.name));else try{r=i(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var a=Iw(r,t.form);return!a||a===t},Ow=function(t){return $m(t)&&t.type==="radio"},Lw=function(t){return Ow(t)&&!Pw(t)},Dw=function(t){var e,i=t&&Jo(t),r=(e=i)===null||e===void 0?void 0:e.host,a=!1;if(i&&i!==t){var s,c,d;for(a=!!((s=r)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(r)||t!=null&&(d=t.ownerDocument)!==null&&d!==void 0&&d.contains(t));!a&&r;){var h,p,m;i=Jo(r),r=(h=i)===null||h===void 0?void 0:h.host,a=!!((p=r)!==null&&p!==void 0&&(m=p.ownerDocument)!==null&&m!==void 0&&m.contains(r))}}return a},dd=function(t){var e=t.getBoundingClientRect(),i=e.width,r=e.height;return i===0&&r===0},Mw=function(t,e){var i=e.displayCheck,r=e.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=ln.call(t,"details>summary:first-of-type"),s=a?t.parentElement:t;if(ln.call(s,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var c=t;t;){var d=t.parentElement,h=Jo(t);if(d&&!d.shadowRoot&&r(d)===!0)return dd(t);t.assignedSlot?t=t.assignedSlot:!d&&h!==t.ownerDocument?t=h.host:t=d}t=c}if(Dw(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return dd(t);return!1},Nw=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var i=0;i<e.children.length;i++){var r=e.children.item(i);if(r.tagName==="LEGEND")return ln.call(e,"fieldset[disabled] *")?!0:!r.contains(t)}return!0}e=e.parentElement}return!1},ta=function(t,e){return!(e.disabled||Qo(e)||Aw(e)||Mw(e,t)||Cw(e)||Nw(e))},ol=function(t,e){return!(Lw(e)||Ki(e)<0||!ta(t,e))},Fw=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},Rw=function t(e){var i=[],r=[];return e.forEach(function(a,s){var c=!!a.scopeParent,d=c?a.scopeParent:a,h=Tw(d,c),p=c?t(a.candidates):d;h===0?c?i.push.apply(i,p):i.push(d):r.push({documentOrder:s,tabIndex:h,item:a,isScope:c,content:p})}),r.sort(Sw).reduce(function(a,s){return s.isScope?a.push.apply(a,s.content):a.push(s.content),a},[]).concat(i)},Bw=function(t,e){e=e||{};var i;return e.getShadowRoot?i=Um([t],e.includeContainer,{filter:ol.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:Fw}):i=Zm(t,e.includeContainer,ol.bind(null,e)),Rw(i)},zw=function(t,e){e=e||{};var i;return e.getShadowRoot?i=Um([t],e.includeContainer,{filter:ta.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):i=Zm(t,e.includeContainer,ta.bind(null,e)),i},Tn=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return ln.call(t,Xo)===!1?!1:ol(e,t)},jw=jm.concat("iframe").join(","),Es=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return ln.call(t,jw)===!1?!1:ta(e,t)};/*!
|
|
162
|
-
* focus-trap 7.5.2
|
|
163
|
-
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
164
|
-
*/function hd(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,r)}return i}function pd(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?hd(Object(i),!0).forEach(function(r){Vw(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):hd(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function Vw(t,e,i){return e=Uw(e),e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Zw(t,e){if(typeof t!="object"||t===null)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var r=i.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uw(t){var e=Zw(t,"string");return typeof e=="symbol"?e:String(e)}var fd={activateTrap:function(t,e){if(t.length>0){var i=t[t.length-1];i!==e&&i.pause()}var r=t.indexOf(e);r===-1||t.splice(r,1),t.push(e)},deactivateTrap:function(t,e){var i=t.indexOf(e);i!==-1&&t.splice(i,1),t.length>0&&t[t.length-1].unpause()}},Hw=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},$w=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},kr=function(t){return t?.key==="Tab"||t?.keyCode===9},qw=function(t){return kr(t)&&!t.shiftKey},Ww=function(t){return kr(t)&&t.shiftKey},md=function(t){return setTimeout(t,0)},gd=function(t,e){var i=-1;return t.every(function(r,a){return e(r)?(i=a,!1):!0}),i},cr=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];return typeof t=="function"?t.apply(void 0,i):t},fo=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Gw=[],Yw=function(t,e){var i=e?.document||document,r=e?.trapStack||Gw,a=pd({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:qw,isKeyBackward:Ww},e),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,d=function(T,A,B){return T&&T[A]!==void 0?T[A]:a[B||A]},h=function(T,A){var B=typeof A?.composedPath=="function"?A.composedPath():void 0;return s.containerGroups.findIndex(function($){var nt=$.container,w=$.tabbableNodes;return nt.contains(T)||B?.includes(nt)||w.find(function(P){return P===T})})},p=function(T){var A=a[T];if(typeof A=="function"){for(var B=arguments.length,$=new Array(B>1?B-1:0),nt=1;nt<B;nt++)$[nt-1]=arguments[nt];A=A.apply(void 0,$)}if(A===!0&&(A=void 0),!A){if(A===void 0||A===!1)return A;throw new Error("`".concat(T,"` was specified but was not a node, or did not return a node"))}var w=A;if(typeof A=="string"&&(w=i.querySelector(A),!w))throw new Error("`".concat(T,"` as selector refers to no known node"));return w},m=function(){var T=p("initialFocus");if(T===!1)return!1;if(T===void 0||!Es(T,a.tabbableOptions))if(h(i.activeElement)>=0)T=i.activeElement;else{var A=s.tabbableGroups[0],B=A&&A.firstTabbableNode;T=B||p("fallbackFocus")}if(!T)throw new Error("Your focus-trap needs to have at least one focusable element");return T},g=function(){if(s.containerGroups=s.containers.map(function(T){var A=Bw(T,a.tabbableOptions),B=zw(T,a.tabbableOptions),$=A.length>0?A[0]:void 0,nt=A.length>0?A[A.length-1]:void 0,w=B.find(function(Q){return Tn(Q)}),P=B.slice().reverse().find(function(Q){return Tn(Q)}),F=!!A.find(function(Q){return Ki(Q)>0});return{container:T,tabbableNodes:A,focusableNodes:B,posTabIndexesFound:F,firstTabbableNode:$,lastTabbableNode:nt,firstDomTabbableNode:w,lastDomTabbableNode:P,nextTabbableNode:function(Q){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ht=A.indexOf(Q);return ht<0?q?B.slice(B.indexOf(Q)+1).find(function(X){return Tn(X)}):B.slice(0,B.indexOf(Q)).reverse().find(function(X){return Tn(X)}):A[ht+(q?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(T){return T.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!p("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(T){return T.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},v=function T(A){if(A!==!1&&A!==i.activeElement){if(!A||!A.focus){T(m());return}A.focus({preventScroll:!!a.preventScroll}),s.mostRecentlyFocusedNode=A,Hw(A)&&A.select()}},_=function(T){var A=p("setReturnFocus",T);return A||(A===!1?!1:T)},y=function(T){var A=T.target,B=T.event,$=T.isBackward,nt=$===void 0?!1:$;A=A||fo(B),g();var w=null;if(s.tabbableGroups.length>0){var P=h(A,B),F=P>=0?s.containerGroups[P]:void 0;if(P<0)nt?w=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:w=s.tabbableGroups[0].firstTabbableNode;else if(nt){var Q=gd(s.tabbableGroups,function(Ft){var Ot=Ft.firstTabbableNode;return A===Ot});if(Q<0&&(F.container===A||Es(A,a.tabbableOptions)&&!Tn(A,a.tabbableOptions)&&!F.nextTabbableNode(A,!1))&&(Q=P),Q>=0){var q=Q===0?s.tabbableGroups.length-1:Q-1,ht=s.tabbableGroups[q];w=Ki(A)>=0?ht.lastTabbableNode:ht.lastDomTabbableNode}else kr(B)||(w=F.nextTabbableNode(A,!1))}else{var X=gd(s.tabbableGroups,function(Ft){var Ot=Ft.lastTabbableNode;return A===Ot});if(X<0&&(F.container===A||Es(A,a.tabbableOptions)&&!Tn(A,a.tabbableOptions)&&!F.nextTabbableNode(A))&&(X=P),X>=0){var wt=X===s.tabbableGroups.length-1?0:X+1,Pt=s.tabbableGroups[wt];w=Ki(A)>=0?Pt.firstTabbableNode:Pt.firstDomTabbableNode}else kr(B)||(w=F.nextTabbableNode(A))}}else w=p("fallbackFocus");return w},k=function(T){var A=fo(T);if(!(h(A,T)>=0)){if(cr(a.clickOutsideDeactivates,T)){c.deactivate({returnFocus:a.returnFocusOnDeactivate});return}cr(a.allowOutsideClick,T)||T.preventDefault()}},E=function(T){var A=fo(T),B=h(A,T)>=0;if(B||A instanceof Document)B&&(s.mostRecentlyFocusedNode=A);else{T.stopImmediatePropagation();var $,nt=!0;if(s.mostRecentlyFocusedNode)if(Ki(s.mostRecentlyFocusedNode)>0){var w=h(s.mostRecentlyFocusedNode),P=s.containerGroups[w].tabbableNodes;if(P.length>0){var F=P.findIndex(function(Q){return Q===s.mostRecentlyFocusedNode});F>=0&&(a.isKeyForward(s.recentNavEvent)?F+1<P.length&&($=P[F+1],nt=!1):F-1>=0&&($=P[F-1],nt=!1))}}else s.containerGroups.some(function(Q){return Q.tabbableNodes.some(function(q){return Ki(q)>0})})||(nt=!1);else nt=!1;nt&&($=y({target:s.mostRecentlyFocusedNode,isBackward:a.isKeyBackward(s.recentNavEvent)})),v($||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},C=function(T){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=T;var B=y({event:T,isBackward:A});B&&(kr(T)&&T.preventDefault(),v(B))},N=function(T){if($w(T)&&cr(a.escapeDeactivates,T)!==!1){T.preventDefault(),c.deactivate();return}(a.isKeyForward(T)||a.isKeyBackward(T))&&C(T,a.isKeyBackward(T))},O=function(T){var A=fo(T);h(A,T)>=0||cr(a.clickOutsideDeactivates,T)||cr(a.allowOutsideClick,T)||(T.preventDefault(),T.stopImmediatePropagation())},j=function(){if(s.active)return fd.activateTrap(r,c),s.delayInitialFocusTimer=a.delayInitialFocus?md(function(){v(m())}):v(m()),i.addEventListener("focusin",E,!0),i.addEventListener("mousedown",k,{capture:!0,passive:!1}),i.addEventListener("touchstart",k,{capture:!0,passive:!1}),i.addEventListener("click",O,{capture:!0,passive:!1}),i.addEventListener("keydown",N,{capture:!0,passive:!1}),c},z=function(){if(s.active)return i.removeEventListener("focusin",E,!0),i.removeEventListener("mousedown",k,!0),i.removeEventListener("touchstart",k,!0),i.removeEventListener("click",O,!0),i.removeEventListener("keydown",N,!0),c},U=function(T){var A=T.some(function(B){var $=Array.from(B.removedNodes);return $.some(function(nt){return nt===s.mostRecentlyFocusedNode})});A&&v(m())},V=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(U):void 0,Z=function(){V&&(V.disconnect(),s.active&&!s.paused&&s.containers.map(function(T){V.observe(T,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(T){if(s.active)return this;var A=d(T,"onActivate"),B=d(T,"onPostActivate"),$=d(T,"checkCanFocusTrap");$||g(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=i.activeElement,A?.();var nt=function(){$&&g(),j(),Z(),B?.()};return $?($(s.containers.concat()).then(nt,nt),this):(nt(),this)},deactivate:function(T){if(!s.active)return this;var A=pd({onDeactivate:a.onDeactivate,onPostDeactivate:a.onPostDeactivate,checkCanReturnFocus:a.checkCanReturnFocus},T);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,z(),s.active=!1,s.paused=!1,Z(),fd.deactivateTrap(r,c);var B=d(A,"onDeactivate"),$=d(A,"onPostDeactivate"),nt=d(A,"checkCanReturnFocus"),w=d(A,"returnFocus","returnFocusOnDeactivate");B?.();var P=function(){md(function(){w&&v(_(s.nodeFocusedBeforeActivation)),$?.()})};return w&&nt?(nt(_(s.nodeFocusedBeforeActivation)).then(P,P),this):(P(),this)},pause:function(T){if(s.paused||!s.active)return this;var A=d(T,"onPause"),B=d(T,"onPostPause");return s.paused=!0,A?.(),z(),Z(),B?.(),this},unpause:function(T){if(!s.paused||!s.active)return this;var A=d(T,"onUnpause"),B=d(T,"onPostUnpause");return s.paused=!1,A?.(),g(),j(),Z(),B?.(),this},updateContainerElements:function(T){var A=[].concat(T).filter(Boolean);return s.containers=A.map(function(B){return typeof B=="string"?i.querySelector(B):B}),s.active&&g(),Z(),this}},c.updateContainerElements(t),c},Kw=Ii("dialog").parts("trigger","backdrop","container","content","title","description","closeTrigger"),$i=Kw.build(),Lt=Nr({getContainerId:t=>{var e;return((e=t.ids)==null?void 0:e.container)??`dialog:${t.id}:container`},getBackdropId:t=>{var e;return((e=t.ids)==null?void 0:e.backdrop)??`dialog:${t.id}:backdrop`},getContentId:t=>{var e;return((e=t.ids)==null?void 0:e.content)??`dialog:${t.id}:content`},getTriggerId:t=>{var e;return((e=t.ids)==null?void 0:e.trigger)??`dialog:${t.id}:trigger`},getTitleId:t=>{var e;return((e=t.ids)==null?void 0:e.title)??`dialog:${t.id}:title`},getDescriptionId:t=>{var e;return((e=t.ids)==null?void 0:e.description)??`dialog:${t.id}:description`},getCloseTriggerId:t=>{var e;return((e=t.ids)==null?void 0:e.closeTrigger)??`dialog:${t.id}:close`},getContentEl:t=>Lt.getById(t,Lt.getContentId(t)),getTriggerEl:t=>Lt.getById(t,Lt.getTriggerId(t)),getContainerEl:t=>Lt.getById(t,Lt.getContainerId(t)),getTitleEl:t=>Lt.getById(t,Lt.getTitleId(t)),getDescriptionEl:t=>Lt.getById(t,Lt.getDescriptionId(t))});function Xw(t,e,i){const r=t.context["aria-label"],a=t.matches("open"),s=t.context.renderedElements;return{isOpen:a,open(){e("OPEN")},close(){e("CLOSE")},triggerProps:i.button({...$i.trigger.attrs,id:Lt.getTriggerId(t.context),"aria-haspopup":"dialog",type:"button","aria-expanded":a,"data-state":a?"open":"closed","aria-controls":Lt.getContentId(t.context),onClick(){e("TOGGLE")}}),backdropProps:i.element({...$i.backdrop.attrs,hidden:!a,id:Lt.getBackdropId(t.context),"data-state":a?"open":"closed"}),containerProps:i.element({...$i.container.attrs,hidden:!a,id:Lt.getContainerId(t.context),"data-state":a?"open":"closed",style:{pointerEvents:a?void 0:"none"}}),contentProps:i.element({...$i.content.attrs,role:t.context.role,hidden:!a,id:Lt.getContentId(t.context),tabIndex:-1,"data-state":a?"open":"closed","aria-modal":!0,"aria-label":r||void 0,"aria-labelledby":r||!s.title?void 0:Lt.getTitleId(t.context),"aria-describedby":s.description?Lt.getDescriptionId(t.context):void 0}),titleProps:i.element({...$i.title.attrs,id:Lt.getTitleId(t.context)}),descriptionProps:i.element({...$i.description.attrs,id:Lt.getDescriptionId(t.context)}),closeTriggerProps:i.button({...$i.closeTrigger.attrs,id:Lt.getCloseTriggerId(t.context),type:"button",onClick(c){c.stopPropagation(),e("CLOSE")}})}}function Jw(t){const e=ka(t);return Fl({id:"dialog",initial:e.open?"open":"closed",context:{role:"dialog",renderedElements:{title:!0,description:!0},modal:!0,trapFocus:!0,preventScroll:!0,closeOnOutsideClick:!0,closeOnEsc:!0,restoreFocus:!0,...e},watch:{open:["toggleVisibility"]},states:{open:{entry:["checkRenderedElements"],activities:["trackDismissableElement","trapFocus","preventScroll","hideContentBelow"],on:{CLOSE:{target:"closed",actions:["invokeOnClose","restoreFocus"]},TOGGLE:{target:"closed",actions:["invokeOnClose","restoreFocus"]}}},closed:{on:{OPEN:{target:"open",actions:["invokeOnOpen"]},TOGGLE:{target:"open",actions:["invokeOnOpen"]}}}}},{activities:{trackDismissableElement(i,r,{send:a}){return kw(()=>Lt.getContentEl(i),{defer:!0,pointerBlocking:i.modal,exclude:[Lt.getTriggerEl(i)],onDismiss(){a({type:"CLOSE",src:"interact-outside"})},onEscapeKeyDown(s){var c;i.closeOnEsc?a({type:"CLOSE",src:"escape-key"}):s.preventDefault(),(c=i.onEsc)==null||c.call(i)},onPointerDownOutside(s){var c;i.closeOnOutsideClick||s.preventDefault(),(c=i.onOutsideClick)==null||c.call(i)}})},preventScroll(i){if(i.preventScroll)return ww(Lt.getDoc(i))},trapFocus(i){if(!i.trapFocus)return;let r;return cm(()=>{const a=Lt.getContentEl(i);if(a){r=Yw(a,{document:Lt.getDoc(i),escapeDeactivates:!1,preventScroll:!0,returnFocusOnDeactivate:!1,fallbackFocus:a,allowOutsideClick:!0,initialFocus:Zu(i.initialFocusEl)});try{r.activate()}catch{}}}),()=>r?.deactivate()},hideContentBelow(i){return i.modal?aw(()=>[Lt.getContainerEl(i)],{defer:!0}):void 0}},actions:{checkRenderedElements(i){on(()=>{i.renderedElements.title=!!Lt.getTitleEl(i),i.renderedElements.description=!!Lt.getDescriptionEl(i)})},invokeOnClose(i){var r;(r=i.onClose)==null||r.call(i)},invokeOnOpen(i){var r;(r=i.onOpen)==null||r.call(i)},toggleVisibility(i,r,{send:a}){a({type:i.open?"OPEN":"CLOSE",src:"controlled"})},restoreFocus(i){i.restoreFocus&&on(()=>{(Zu(i.finalFocusEl)??Lt.getTriggerEl(i))?.focus({preventScroll:!0})})}}})}const Qw=["data-id"],t1=["data-id"],e1=["data-id"],i1={class:"k-dialog__card-header"},n1=Dt({__name:"Dialog",props:{title:{},description:{},closeOnOutsideClick:{type:Boolean,default:!0},role:{default:"dialog"},alignment:{default:"top"},triggerLabel:{},showCloseTrigger:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},dialogId:{}},emits:["open","close","clickoutside"],setup(t,{expose:e,emit:i}){const r=t,[a,s]=zl(Jw({id:ya({prefix:"dialog"}),closeOnOutsideClick:r.closeOnOutsideClick,closeOnEsc:r.closeOnEsc,modal:!0,role:r.role,onClose(){r.closeOnEsc&&i("close")},onOpen(){i("open")},onOutsideClick(){i("clickoutside")}}),{context:lt(()=>r)}),c=lt(()=>Xw(a.value,s,Bl)),d=h=>r.dialogId?`${r.dialogId}-${h}`:"";return e({open:c.value.open,close:c.value.close}),(h,p)=>(R(),K("div",{class:"k-dialog","data-id":h.dialogId},[xt(h.$slots,"trigger",{triggerProps:c.value.triggerProps},()=>[h.triggerLabel?(R(),Ct(Di,ee({key:0,class:"k-dialog__trigger",variant:"secondary"},c.value.triggerProps),{default:Xt(()=>[le(_t(h.triggerLabel),1)]),_:1},16)):ut("",!0)]),(R(),Ct(jd,{to:"body"},[c.value.isOpen?(R(),K(oe,{key:0},[tt("div",ee({class:"k-dialog__backdrop"},c.value.backdropProps,{"data-id":d("backdrop")}),null,16,t1),tt("div",ee({class:`k-dialog__container k-dialog--align-${h.alignment}`},c.value.containerProps,{"data-id":d("container")}),[Ht(v0,ee({class:"k-dialog__card",variant:"shadow"},c.value.contentProps,{"data-id":d("dialog")}),Gv({default:Xt(()=>[xt(h.$slots,"header",{titleProps:c.value.titleProps,descriptionProps:c.value.descriptionProps,closeTriggerProps:c.value.closeTriggerProps},()=>[tt("div",i1,[xt(h.$slots,"title",{titleProps:c.value.titleProps},()=>[tt("h2",ee({class:"k-dialog__title"},c.value.titleProps),_t(h.title),17)]),xt(h.$slots,"description",{descriptionProps:c.value.descriptionProps},()=>[h.description?(R(),K("span",ee({key:0,class:"k-dialog__description"},c.value.descriptionProps),_t(h.description),17)):ut("",!0)]),h.showCloseTrigger?(R(),Ct(Di,ee({key:0,class:"k-dialog__close-trigger",variant:"tertiary",icon:"fa-pro-light:times",size:"small"},c.value.closeTriggerProps),null,16)):ut("",!0)])]),xt(h.$slots,"default",{descriptionProps:c.value.descriptionProps})]),_:2},[h.$slots.footer?{name:"footer",fn:Xt(()=>[xt(h.$slots,"footer",{close:c.value.close})]),key:"0"}:void 0]),1040,["data-id"])],16,e1)],64)):ut("",!0)]))],8,Qw))}});Li({title:{},description:{},confirmLabel:{default:"Confirm"},cancelLabel:{default:"Cancel"},type:{default:"info"}},{open:{type:Boolean,default:!1}}),Li(["cancel","confirm"],["update:open"]);function Sa(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t<arguments.length;t++)this.define(arguments[t]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}Sa.prototype.define=function(t,e){for(let i in t){let r=t[i].map(function(a){return a.toLowerCase()});i=i.toLowerCase();for(let a=0;a<r.length;a++){const s=r[a];if(s[0]!=="*"){if(!e&&s in this._types)throw new Error('Attempt to change mapping for "'+s+'" extension from "'+this._types[s]+'" to "'+i+'". Pass `force=true` to allow this, otherwise remove "'+s+'" from the list of extensions for "'+i+'".');this._types[s]=i}}if(e||!this._extensions[i]){const a=r[0];this._extensions[i]=a[0]!=="*"?a:a.substr(1)}}};Sa.prototype.getType=function(t){t=String(t);let e=t.replace(/^.*[/\\]/,"").toLowerCase(),i=e.replace(/^.*\./,"").toLowerCase(),r=e.length<t.length;return(i.length<e.length-1||!r)&&this._types[i]||null};Sa.prototype.getExtension=function(t){return t=/^\s*([^;\s]*)/.test(t)&&RegExp.$1,t&&this._extensions[t.toLowerCase()]||null};var r1=Sa,o1={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};let a1=r1;new a1(o1);const s1=Dt({__name:"CreateTrigger",props:{label:{}},setup(t){return(e,i)=>(R(),Ct(Di,{type:"button",class:"k-media-image-create-trigger",label:e.label,iconRight:"fa6-solid:image"},null,8,["label"]))}}),l1=Dt({__name:"Thumbnail",props:{value:{}},setup(t){const e=t,i=lt(()=>({backgroundImage:`url(${e.value.url})`}));return(r,a)=>(R(),K("div",{class:"k-media-image__thumbnail",style:hi(i.value),onClick:a[0]||(a[0]=s=>r.$emit("click"))},null,4))}}),c1=Dt({__name:"Preview",props:{value:{},size:{}},setup(t){const e=t,i=lt(()=>({padding:e.size==="cover"?"0":"1rem",backgroundSize:e.size,backgroundImage:`url(${e.value.url})`}));return(r,a)=>(R(),K("div",{class:"k-media-image-preview",style:hi(i.value)},null,4))}});ls(s1),ls(l1),ls(c1);/**!
|
|
165
|
-
* Sortable 1.14.0
|
|
166
|
-
* @author RubaXa <trash@rubaxa.org>
|
|
167
|
-
* @author owenm <owen23355@gmail.com>
|
|
168
|
-
* @license MIT
|
|
169
|
-
*/function vd(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),i.push.apply(i,r)}return i}function ii(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?vd(Object(i),!0).forEach(function(r){u1(t,r,i[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):vd(Object(i)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))})}return t}function Do(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Do=function(e){return typeof e}:Do=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Do(t)}function u1(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function fi(){return fi=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t},fi.apply(this,arguments)}function d1(t,e){if(t==null)return{};var i={},r=Object.keys(t),a,s;for(s=0;s<r.length;s++)a=r[s],!(e.indexOf(a)>=0)&&(i[a]=t[a]);return i}function h1(t,e){if(t==null)return{};var i=d1(t,e),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(a=0;a<s.length;a++)r=s[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var p1="1.14.0";function di(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var bi=di(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Br=di(/Edge/i),_d=di(/firefox/i),yr=di(/safari/i)&&!di(/chrome/i)&&!di(/android/i),qm=di(/iP(ad|od|hone)/i),f1=di(/chrome/i)&&di(/android/i),Wm={capture:!1,passive:!1};function It(t,e,i){t.addEventListener(e,i,!bi&&Wm)}function Tt(t,e,i){t.removeEventListener(e,i,!bi&&Wm)}function ea(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function m1(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Xe(t,e,i,r){if(t){i=i||document;do{if(e!=null&&(e[0]===">"?t.parentNode===i&&ea(t,e):ea(t,e))||r&&t===i)return t;if(t===i)break}while(t=m1(t))}return null}var bd=/\s+/g;function ke(t,e,i){if(t&&e)if(t.classList)t.classList[i?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(bd," ").replace(" "+e+" "," ");t.className=(r+(i?" "+e:"")).replace(bd," ")}}function at(t,e,i){var r=t&&t.style;if(r){if(i===void 0)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),e===void 0?i:i[e];!(e in r)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),r[e]=i+(typeof i=="string"?"":"px")}}function Rn(t,e){var i="";if(typeof t=="string")i=t;else do{var r=at(t,"transform");r&&r!=="none"&&(i=r+" "+i)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(i)}function Gm(t,e,i){if(t){var r=t.getElementsByTagName(e),a=0,s=r.length;if(i)for(;a<s;a++)i(r[a],a);return r}return[]}function Qe(){var t=document.scrollingElement;return t||document.documentElement}function Qt(t,e,i,r,a){if(!(!t.getBoundingClientRect&&t!==window)){var s,c,d,h,p,m,g;if(t!==window&&t.parentNode&&t!==Qe()?(s=t.getBoundingClientRect(),c=s.top,d=s.left,h=s.bottom,p=s.right,m=s.height,g=s.width):(c=0,d=0,h=window.innerHeight,p=window.innerWidth,m=window.innerHeight,g=window.innerWidth),(e||i)&&t!==window&&(a=a||t.parentNode,!bi))do if(a&&a.getBoundingClientRect&&(at(a,"transform")!=="none"||i&&at(a,"position")!=="static")){var v=a.getBoundingClientRect();c-=v.top+parseInt(at(a,"border-top-width")),d-=v.left+parseInt(at(a,"border-left-width")),h=c+s.height,p=d+s.width;break}while(a=a.parentNode);if(r&&t!==window){var _=Rn(a||t),y=_&&_.a,k=_&&_.d;_&&(c/=k,d/=y,g/=y,m/=k,h=c+m,p=d+g)}return{top:c,left:d,bottom:h,right:p,width:g,height:m}}}function kd(t,e,i){for(var r=Ai(t,!0),a=Qt(t)[e];r;){var s=Qt(r)[i],c=void 0;if(i==="top"||i==="left"?c=a>=s:c=a<=s,!c)return r;if(r===Qe())break;r=Ai(r,!1)}return!1}function Un(t,e,i,r){for(var a=0,s=0,c=t.children;s<c.length;){if(c[s].style.display!=="none"&&c[s]!==st.ghost&&(r||c[s]!==st.dragged)&&Xe(c[s],i.draggable,t,!1)){if(a===e)return c[s];a++}s++}return null}function Yl(t,e){for(var i=t.lastElementChild;i&&(i===st.ghost||at(i,"display")==="none"||e&&!ea(i,e));)i=i.previousElementSibling;return i||null}function Me(t,e){var i=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==st.clone&&(!e||ea(t,e))&&i++;return i}function yd(t){var e=0,i=0,r=Qe();if(t)do{var a=Rn(t),s=a.a,c=a.d;e+=t.scrollLeft*s,i+=t.scrollTop*c}while(t!==r&&(t=t.parentNode));return[e,i]}function g1(t,e){for(var i in t)if(t.hasOwnProperty(i)){for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[i][r])return Number(i)}return-1}function Ai(t,e){if(!t||!t.getBoundingClientRect)return Qe();var i=t,r=!1;do if(i.clientWidth<i.scrollWidth||i.clientHeight<i.scrollHeight){var a=at(i);if(i.clientWidth<i.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||i.clientHeight<i.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!i.getBoundingClientRect||i===document.body)return Qe();if(r||e)return i;r=!0}}while(i=i.parentNode);return Qe()}function v1(t,e){if(t&&e)for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function Ts(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var xr;function Ym(t,e){return function(){if(!xr){var i=arguments,r=this;i.length===1?t.call(r,i[0]):t.apply(r,i),xr=setTimeout(function(){xr=void 0},e)}}}function _1(){clearTimeout(xr),xr=void 0}function Km(t,e,i){t.scrollLeft+=e,t.scrollTop+=i}function Xm(t){var e=window.Polymer,i=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):i?i(t).clone(!0)[0]:t.cloneNode(!0)}var xe="Sortable"+new Date().getTime();function b1(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(r){if(!(at(r,"display")==="none"||r===st.ghost)){t.push({target:r,rect:Qt(r)});var a=ii({},t[t.length-1].rect);if(r.thisAnimationDuration){var s=Rn(r,!0);s&&(a.top-=s.f,a.left-=s.e)}r.fromRect=a}})}},addAnimationState:function(i){t.push(i)},removeAnimationState:function(i){t.splice(g1(t,{target:i}),1)},animateAll:function(i){var r=this;if(!this.options.animation){clearTimeout(e),typeof i=="function"&&i();return}var a=!1,s=0;t.forEach(function(c){var d=0,h=c.target,p=h.fromRect,m=Qt(h),g=h.prevFromRect,v=h.prevToRect,_=c.rect,y=Rn(h,!0);y&&(m.top-=y.f,m.left-=y.e),h.toRect=m,h.thisAnimationDuration&&Ts(g,m)&&!Ts(p,m)&&(_.top-m.top)/(_.left-m.left)===(p.top-m.top)/(p.left-m.left)&&(d=y1(_,g,v,r.options)),Ts(m,p)||(h.prevFromRect=p,h.prevToRect=m,d||(d=r.options.animation),r.animate(h,_,m,d)),d&&(a=!0,s=Math.max(s,d),clearTimeout(h.animationResetTimer),h.animationResetTimer=setTimeout(function(){h.animationTime=0,h.prevFromRect=null,h.fromRect=null,h.prevToRect=null,h.thisAnimationDuration=null},d),h.thisAnimationDuration=d)}),clearTimeout(e),a?e=setTimeout(function(){typeof i=="function"&&i()},s):typeof i=="function"&&i(),t=[]},animate:function(i,r,a,s){if(s){at(i,"transition",""),at(i,"transform","");var c=Rn(this.el),d=c&&c.a,h=c&&c.d,p=(r.left-a.left)/(d||1),m=(r.top-a.top)/(h||1);i.animatingX=!!p,i.animatingY=!!m,at(i,"transform","translate3d("+p+"px,"+m+"px,0)"),this.forRepaintDummy=k1(i),at(i,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),at(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){at(i,"transition",""),at(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},s)}}}}function k1(t){return t.offsetWidth}function y1(t,e,i,r){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-i.top,2)+Math.pow(e.left-i.left,2))*r.animation}var Sn=[],Ss={initializeByDefault:!0},zr={mount:function(t){for(var e in Ss)Ss.hasOwnProperty(e)&&!(e in t)&&(t[e]=Ss[e]);Sn.forEach(function(i){if(i.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Sn.push(t)},pluginEvent:function(t,e,i){var r=this;this.eventCanceled=!1,i.cancel=function(){r.eventCanceled=!0};var a=t+"Global";Sn.forEach(function(s){e[s.pluginName]&&(e[s.pluginName][a]&&e[s.pluginName][a](ii({sortable:e},i)),e.options[s.pluginName]&&e[s.pluginName][t]&&e[s.pluginName][t](ii({sortable:e},i)))})},initializePlugins:function(t,e,i,r){Sn.forEach(function(c){var d=c.pluginName;if(!(!t.options[d]&&!c.initializeByDefault)){var h=new c(t,e,t.options);h.sortable=t,h.options=t.options,t[d]=h,fi(i,h.defaults)}});for(var a in t.options)if(t.options.hasOwnProperty(a)){var s=this.modifyOption(t,a,t.options[a]);typeof s<"u"&&(t.options[a]=s)}},getEventProperties:function(t,e){var i={};return Sn.forEach(function(r){typeof r.eventProperties=="function"&&fi(i,r.eventProperties.call(e[r.pluginName],t))}),i},modifyOption:function(t,e,i){var r;return Sn.forEach(function(a){t[a.pluginName]&&a.optionListeners&&typeof a.optionListeners[e]=="function"&&(r=a.optionListeners[e].call(t[a.pluginName],i))}),r}};function x1(t){var e=t.sortable,i=t.rootEl,r=t.name,a=t.targetEl,s=t.cloneEl,c=t.toEl,d=t.fromEl,h=t.oldIndex,p=t.newIndex,m=t.oldDraggableIndex,g=t.newDraggableIndex,v=t.originalEvent,_=t.putSortable,y=t.extraEventProperties;if(e=e||i&&i[xe],!!e){var k,E=e.options,C="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!bi&&!Br?k=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(k=document.createEvent("Event"),k.initEvent(r,!0,!0)),k.to=c||i,k.from=d||i,k.item=a||i,k.clone=s,k.oldIndex=h,k.newIndex=p,k.oldDraggableIndex=m,k.newDraggableIndex=g,k.originalEvent=v,k.pullMode=_?_.lastPutMode:void 0;var N=ii(ii({},y),zr.getEventProperties(r,e));for(var O in N)k[O]=N[O];i&&i.dispatchEvent(k),E[C]&&E[C].call(e,k)}}var w1=["evt"],me=function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.evt,a=h1(i,w1);zr.pluginEvent.bind(st)(t,e,ii({dragEl:H,parentEl:Vt,ghostEl:ft,rootEl:Bt,nextEl:Gi,lastDownEl:Mo,cloneEl:Zt,cloneHidden:Si,dragStarted:hr,putSortable:re,activeSortable:st.active,originalEvent:r,oldIndex:Dn,oldDraggableIndex:wr,newIndex:ye,newDraggableIndex:Ti,hideGhostForTarget:eg,unhideGhostForTarget:ig,cloneNowHidden:function(){Si=!0},cloneNowShown:function(){Si=!1},dispatchSortableEvent:function(s){ue({sortable:e,name:s,originalEvent:r})}},a))};function ue(t){x1(ii({putSortable:re,cloneEl:Zt,targetEl:H,rootEl:Bt,oldIndex:Dn,oldDraggableIndex:wr,newIndex:ye,newDraggableIndex:Ti},t))}var H,Vt,ft,Bt,Gi,Mo,Zt,Si,Dn,ye,wr,Ti,mo,re,In=!1,ia=!1,na=[],qi,Ze,As,Cs,xd,wd,hr,An,Er,Tr=!1,go=!1,No,se,Is=[],al=!1,ra=[],Aa=typeof document<"u",vo=qm,Ed=Br||bi?"cssFloat":"float",E1=Aa&&!f1&&!qm&&"draggable"in document.createElement("div"),Jm=function(){if(Aa){if(bi)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Qm=function(t,e){var i=at(t),r=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),a=Un(t,0,e),s=Un(t,1,e),c=a&&at(a),d=s&&at(s),h=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Qt(a).width,p=d&&parseInt(d.marginLeft)+parseInt(d.marginRight)+Qt(s).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&c.float&&c.float!=="none"){var m=c.float==="left"?"left":"right";return s&&(d.clear==="both"||d.clear===m)?"vertical":"horizontal"}return a&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||h>=r&&i[Ed]==="none"||s&&i[Ed]==="none"&&h+p>r)?"vertical":"horizontal"},T1=function(t,e,i){var r=i?t.left:t.top,a=i?t.right:t.bottom,s=i?t.width:t.height,c=i?e.left:e.top,d=i?e.right:e.bottom,h=i?e.width:e.height;return r===c||a===d||r+s/2===c+h/2},S1=function(t,e){var i;return na.some(function(r){var a=r[xe].options.emptyInsertThreshold;if(!(!a||Yl(r))){var s=Qt(r),c=t>=s.left-a&&t<=s.right+a,d=e>=s.top-a&&e<=s.bottom+a;if(c&&d)return i=r}}),i},tg=function(t){function e(a,s){return function(c,d,h,p){var m=c.options.group.name&&d.options.group.name&&c.options.group.name===d.options.group.name;if(a==null&&(s||m))return!0;if(a==null||a===!1)return!1;if(s&&a==="clone")return a;if(typeof a=="function")return e(a(c,d,h,p),s)(c,d,h,p);var g=(s?c:d).options.group.name;return a===!0||typeof a=="string"&&a===g||a.join&&a.indexOf(g)>-1}}var i={},r=t.group;(!r||Do(r)!="object")&&(r={name:r}),i.name=r.name,i.checkPull=e(r.pull,!0),i.checkPut=e(r.put),i.revertClone=r.revertClone,t.group=i},eg=function(){!Jm&&ft&&at(ft,"display","none")},ig=function(){!Jm&&ft&&at(ft,"display","")};Aa&&document.addEventListener("click",function(t){if(ia)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),ia=!1,!1},!0);var Wi=function(t){if(H){t=t.touches?t.touches[0]:t;var e=S1(t.clientX,t.clientY);if(e){var i={};for(var r in t)t.hasOwnProperty(r)&&(i[r]=t[r]);i.target=i.rootEl=e,i.preventDefault=void 0,i.stopPropagation=void 0,e[xe]._onDragOver(i)}}},A1=function(t){H&&H.parentNode[xe]._isOutsideThisEl(t.target)};function st(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=fi({},e),t[xe]=this;var i={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qm(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,c){s.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:st.supportPointer!==!1&&"PointerEvent"in window&&!yr,emptyInsertThreshold:5};zr.initializePlugins(this,t,i);for(var r in i)!(r in e)&&(e[r]=i[r]);tg(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:E1,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?It(t,"pointerdown",this._onTapStart):(It(t,"mousedown",this._onTapStart),It(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(It(t,"dragover",this),It(t,"dragenter",this)),na.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),fi(this,b1())}st.prototype={constructor:st,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(An=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,H):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,i=this.el,r=this.options,a=r.preventOnFilter,s=t.type,c=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,d=(c||t).target,h=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||d,p=r.filter;if(N1(i),!H&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||r.disabled)&&!h.isContentEditable&&!(!this.nativeDraggable&&yr&&d&&d.tagName.toUpperCase()==="SELECT")&&(d=Xe(d,r.draggable,i,!1),!(d&&d.animated)&&Mo!==d)){if(Dn=Me(d),wr=Me(d,r.draggable),typeof p=="function"){if(p.call(this,t,d,this)){ue({sortable:e,rootEl:h,name:"filter",targetEl:d,toEl:i,fromEl:i}),me("filter",e,{evt:t}),a&&t.cancelable&&t.preventDefault();return}}else if(p&&(p=p.split(",").some(function(m){if(m=Xe(h,m.trim(),i,!1),m)return ue({sortable:e,rootEl:m,name:"filter",targetEl:d,fromEl:i,toEl:i}),me("filter",e,{evt:t}),!0}),p)){a&&t.cancelable&&t.preventDefault();return}r.handle&&!Xe(h,r.handle,i,!1)||this._prepareDragStart(t,c,d)}}},_prepareDragStart:function(t,e,i){var r=this,a=r.el,s=r.options,c=a.ownerDocument,d;if(i&&!H&&i.parentNode===a){var h=Qt(i);if(Bt=a,H=i,Vt=H.parentNode,Gi=H.nextSibling,Mo=i,mo=s.group,st.dragged=H,qi={target:H,clientX:(e||t).clientX,clientY:(e||t).clientY},xd=qi.clientX-h.left,wd=qi.clientY-h.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,H.style["will-change"]="all",d=function(){if(me("delayEnded",r,{evt:t}),st.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!_d&&r.nativeDraggable&&(H.draggable=!0),r._triggerDragStart(t,e),ue({sortable:r,name:"choose",originalEvent:t}),ke(H,s.chosenClass,!0)},s.ignore.split(",").forEach(function(p){Gm(H,p.trim(),Ps)}),It(c,"dragover",Wi),It(c,"mousemove",Wi),It(c,"touchmove",Wi),It(c,"mouseup",r._onDrop),It(c,"touchend",r._onDrop),It(c,"touchcancel",r._onDrop),_d&&this.nativeDraggable&&(this.options.touchStartThreshold=4,H.draggable=!0),me("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Br||bi))){if(st.eventCanceled){this._onDrop();return}It(c,"mouseup",r._disableDelayedDrag),It(c,"touchend",r._disableDelayedDrag),It(c,"touchcancel",r._disableDelayedDrag),It(c,"mousemove",r._delayedDragTouchMoveHandler),It(c,"touchmove",r._delayedDragTouchMoveHandler),s.supportPointer&&It(c,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(d,s.delay)}else d()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){H&&Ps(H),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Tt(t,"mouseup",this._disableDelayedDrag),Tt(t,"touchend",this._disableDelayedDrag),Tt(t,"touchcancel",this._disableDelayedDrag),Tt(t,"mousemove",this._delayedDragTouchMoveHandler),Tt(t,"touchmove",this._delayedDragTouchMoveHandler),Tt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?It(document,"pointermove",this._onTouchMove):e?It(document,"touchmove",this._onTouchMove):It(document,"mousemove",this._onTouchMove):(It(H,"dragend",this),It(Bt,"dragstart",this._onDragStart));try{document.selection?Fo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(In=!1,Bt&&H){me("dragStarted",this,{evt:e}),this.nativeDraggable&&It(document,"dragover",A1);var i=this.options;!t&&ke(H,i.dragClass,!1),ke(H,i.ghostClass,!0),st.active=this,t&&this._appendGhost(),ue({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(Ze){this._lastX=Ze.clientX,this._lastY=Ze.clientY,eg();for(var t=document.elementFromPoint(Ze.clientX,Ze.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ze.clientX,Ze.clientY),t!==e);)e=t;if(H.parentNode[xe]._isOutsideThisEl(t),e)do{if(e[xe]){var i=void 0;if(i=e[xe]._onDragOver({clientX:Ze.clientX,clientY:Ze.clientY,target:t,rootEl:e}),i&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);ig()}},_onTouchMove:function(t){if(qi){var e=this.options,i=e.fallbackTolerance,r=e.fallbackOffset,a=t.touches?t.touches[0]:t,s=ft&&Rn(ft,!0),c=ft&&s&&s.a,d=ft&&s&&s.d,h=vo&&se&&yd(se),p=(a.clientX-qi.clientX+r.x)/(c||1)+(h?h[0]-Is[0]:0)/(c||1),m=(a.clientY-qi.clientY+r.y)/(d||1)+(h?h[1]-Is[1]:0)/(d||1);if(!st.active&&!In){if(i&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))<i)return;this._onDragStart(t,!0)}if(ft){s?(s.e+=p-(As||0),s.f+=m-(Cs||0)):s={a:1,b:0,c:0,d:1,e:p,f:m};var g="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");at(ft,"webkitTransform",g),at(ft,"mozTransform",g),at(ft,"msTransform",g),at(ft,"transform",g),As=p,Cs=m,Ze=a}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ft){var t=this.options.fallbackOnBody?document.body:Bt,e=Qt(H,!0,vo,!0,t),i=this.options;if(vo){for(se=t;at(se,"position")==="static"&&at(se,"transform")==="none"&&se!==document;)se=se.parentNode;se!==document.body&&se!==document.documentElement?(se===document&&(se=Qe()),e.top+=se.scrollTop,e.left+=se.scrollLeft):se=Qe(),Is=yd(se)}ft=H.cloneNode(!0),ke(ft,i.ghostClass,!1),ke(ft,i.fallbackClass,!0),ke(ft,i.dragClass,!0),at(ft,"transition",""),at(ft,"transform",""),at(ft,"box-sizing","border-box"),at(ft,"margin",0),at(ft,"top",e.top),at(ft,"left",e.left),at(ft,"width",e.width),at(ft,"height",e.height),at(ft,"opacity","0.8"),at(ft,"position",vo?"absolute":"fixed"),at(ft,"zIndex","100000"),at(ft,"pointerEvents","none"),st.ghost=ft,t.appendChild(ft),at(ft,"transform-origin",xd/parseInt(ft.style.width)*100+"% "+wd/parseInt(ft.style.height)*100+"%")}},_onDragStart:function(t,e){var i=this,r=t.dataTransfer,a=i.options;if(me("dragStart",this,{evt:t}),st.eventCanceled){this._onDrop();return}me("setupClone",this),st.eventCanceled||(Zt=Xm(H),Zt.draggable=!1,Zt.style["will-change"]="",this._hideClone(),ke(Zt,this.options.chosenClass,!1),st.clone=Zt),i.cloneId=Fo(function(){me("clone",i),!st.eventCanceled&&(i.options.removeCloneOnHide||Bt.insertBefore(Zt,H),i._hideClone(),ue({sortable:i,name:"clone"}))}),!e&&ke(H,a.dragClass,!0),e?(ia=!0,i._loopId=setInterval(i._emulateDragOver,50)):(Tt(document,"mouseup",i._onDrop),Tt(document,"touchend",i._onDrop),Tt(document,"touchcancel",i._onDrop),r&&(r.effectAllowed="move",a.setData&&a.setData.call(i,r,H)),It(document,"drop",i),at(H,"transform","translateZ(0)")),In=!0,i._dragStartId=Fo(i._dragStarted.bind(i,e,t)),It(document,"selectstart",i),hr=!0,yr&&at(document.body,"user-select","none")},_onDragOver:function(t){var e=this.el,i=t.target,r,a,s,c=this.options,d=c.group,h=st.active,p=mo===d,m=c.sort,g=re||h,v,_=this,y=!1;if(al)return;function k(Q,q){me(Q,_,ii({evt:t,isOwner:p,axis:v?"vertical":"horizontal",revert:s,dragRect:r,targetRect:a,canSort:m,fromSortable:g,target:i,completed:C,onMove:function(ht,X){return _o(Bt,e,H,r,ht,Qt(ht),t,X)},changed:N},q))}function E(){k("dragOverAnimationCapture"),_.captureAnimationState(),_!==g&&g.captureAnimationState()}function C(Q){return k("dragOverCompleted",{insertion:Q}),Q&&(p?h._hideClone():h._showClone(_),_!==g&&(ke(H,re?re.options.ghostClass:h.options.ghostClass,!1),ke(H,c.ghostClass,!0)),re!==_&&_!==st.active?re=_:_===st.active&&re&&(re=null),g===_&&(_._ignoreWhileAnimating=i),_.animateAll(function(){k("dragOverAnimationComplete"),_._ignoreWhileAnimating=null}),_!==g&&(g.animateAll(),g._ignoreWhileAnimating=null)),(i===H&&!H.animated||i===e&&!i.animated)&&(An=null),!c.dragoverBubble&&!t.rootEl&&i!==document&&(H.parentNode[xe]._isOutsideThisEl(t.target),!Q&&Wi(t)),!c.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),y=!0}function N(){ye=Me(H),Ti=Me(H,c.draggable),ue({sortable:_,name:"change",toEl:e,newIndex:ye,newDraggableIndex:Ti,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),i=Xe(i,c.draggable,e,!0),k("dragOver"),st.eventCanceled)return y;if(H.contains(t.target)||i.animated&&i.animatingX&&i.animatingY||_._ignoreWhileAnimating===i)return C(!1);if(ia=!1,h&&!c.disabled&&(p?m||(s=Vt!==Bt):re===this||(this.lastPutMode=mo.checkPull(this,h,H,t))&&d.checkPut(this,h,H,t))){if(v=this._getDirection(t,i)==="vertical",r=Qt(H),k("dragOverValid"),st.eventCanceled)return y;if(s)return Vt=Bt,E(),this._hideClone(),k("revert"),st.eventCanceled||(Gi?Bt.insertBefore(H,Gi):Bt.appendChild(H)),C(!0);var O=Yl(e,c.draggable);if(!O||O1(t,v,this)&&!O.animated){if(O===H)return C(!1);if(O&&e===t.target&&(i=O),i&&(a=Qt(i)),_o(Bt,e,H,r,i,a,t,!!i)!==!1)return E(),e.appendChild(H),Vt=e,N(),C(!0)}else if(O&&P1(t,v,this)){var j=Un(e,0,c,!0);if(j===H)return C(!1);if(i=j,a=Qt(i),_o(Bt,e,H,r,i,a,t,!1)!==!1)return E(),e.insertBefore(H,j),Vt=e,N(),C(!0)}else if(i.parentNode===e){a=Qt(i);var z=0,U,V=H.parentNode!==e,Z=!T1(H.animated&&H.toRect||r,i.animated&&i.toRect||a,v),T=v?"top":"left",A=kd(i,"top","top")||kd(H,"top","top"),B=A?A.scrollTop:void 0;An!==i&&(U=a[T],Tr=!1,go=!Z&&c.invertSwap||V),z=L1(t,i,a,v,Z?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,go,An===i);var $;if(z!==0){var nt=Me(H);do nt-=z,$=Vt.children[nt];while($&&(at($,"display")==="none"||$===ft))}if(z===0||$===i)return C(!1);An=i,Er=z;var w=i.nextElementSibling,P=!1;P=z===1;var F=_o(Bt,e,H,r,i,a,t,P);if(F!==!1)return(F===1||F===-1)&&(P=F===1),al=!0,setTimeout(I1,30),E(),P&&!w?e.appendChild(H):i.parentNode.insertBefore(H,P?w:i),A&&Km(A,0,B-A.scrollTop),Vt=H.parentNode,U!==void 0&&!go&&(No=Math.abs(U-Qt(i)[T])),N(),C(!0)}if(e.contains(H))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Tt(document,"mousemove",this._onTouchMove),Tt(document,"touchmove",this._onTouchMove),Tt(document,"pointermove",this._onTouchMove),Tt(document,"dragover",Wi),Tt(document,"mousemove",Wi),Tt(document,"touchmove",Wi)},_offUpEvents:function(){var t=this.el.ownerDocument;Tt(t,"mouseup",this._onDrop),Tt(t,"touchend",this._onDrop),Tt(t,"pointerup",this._onDrop),Tt(t,"touchcancel",this._onDrop),Tt(document,"selectstart",this)},_onDrop:function(t){var e=this.el,i=this.options;if(ye=Me(H),Ti=Me(H,i.draggable),me("drop",this,{evt:t}),Vt=H&&H.parentNode,ye=Me(H),Ti=Me(H,i.draggable),st.eventCanceled){this._nulling();return}In=!1,go=!1,Tr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),sl(this.cloneId),sl(this._dragStartId),this.nativeDraggable&&(Tt(document,"drop",this),Tt(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),yr&&at(document.body,"user-select",""),at(H,"transform",""),t&&(hr&&(t.cancelable&&t.preventDefault(),!i.dropBubble&&t.stopPropagation()),ft&&ft.parentNode&&ft.parentNode.removeChild(ft),(Bt===Vt||re&&re.lastPutMode!=="clone")&&Zt&&Zt.parentNode&&Zt.parentNode.removeChild(Zt),H&&(this.nativeDraggable&&Tt(H,"dragend",this),Ps(H),H.style["will-change"]="",hr&&!In&&ke(H,re?re.options.ghostClass:this.options.ghostClass,!1),ke(H,this.options.chosenClass,!1),ue({sortable:this,name:"unchoose",toEl:Vt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Bt!==Vt?(ye>=0&&(ue({rootEl:Vt,name:"add",toEl:Vt,fromEl:Bt,originalEvent:t}),ue({sortable:this,name:"remove",toEl:Vt,originalEvent:t}),ue({rootEl:Vt,name:"sort",toEl:Vt,fromEl:Bt,originalEvent:t}),ue({sortable:this,name:"sort",toEl:Vt,originalEvent:t})),re&&re.save()):ye!==Dn&&ye>=0&&(ue({sortable:this,name:"update",toEl:Vt,originalEvent:t}),ue({sortable:this,name:"sort",toEl:Vt,originalEvent:t})),st.active&&((ye==null||ye===-1)&&(ye=Dn,Ti=wr),ue({sortable:this,name:"end",toEl:Vt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){me("nulling",this),Bt=H=Vt=ft=Gi=Zt=Mo=Si=qi=Ze=hr=ye=Ti=Dn=wr=An=Er=re=mo=st.dragged=st.ghost=st.clone=st.active=null,ra.forEach(function(t){t.checked=!0}),ra.length=As=Cs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":H&&(this._onDragOver(t),C1(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,i=this.el.children,r=0,a=i.length,s=this.options;r<a;r++)e=i[r],Xe(e,s.draggable,this.el,!1)&&t.push(e.getAttribute(s.dataIdAttr)||M1(e));return t},sort:function(t,e){var i={},r=this.el;this.toArray().forEach(function(a,s){var c=r.children[s];Xe(c,this.options.draggable,r,!1)&&(i[a]=c)},this),e&&this.captureAnimationState(),t.forEach(function(a){i[a]&&(r.removeChild(i[a]),r.appendChild(i[a]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return Xe(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var i=this.options;if(e===void 0)return i[t];var r=zr.modifyOption(this,t,e);typeof r<"u"?i[t]=r:i[t]=e,t==="group"&&tg(i)},destroy:function(){me("destroy",this);var t=this.el;t[xe]=null,Tt(t,"mousedown",this._onTapStart),Tt(t,"touchstart",this._onTapStart),Tt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Tt(t,"dragover",this),Tt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),na.splice(na.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Si){if(me("hideClone",this),st.eventCanceled)return;at(Zt,"display","none"),this.options.removeCloneOnHide&&Zt.parentNode&&Zt.parentNode.removeChild(Zt),Si=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Si){if(me("showClone",this),st.eventCanceled)return;H.parentNode==Bt&&!this.options.group.revertClone?Bt.insertBefore(Zt,H):Gi?Bt.insertBefore(Zt,Gi):Bt.appendChild(Zt),this.options.group.revertClone&&this.animate(H,Zt),at(Zt,"display",""),Si=!1}}};function C1(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function _o(t,e,i,r,a,s,c,d){var h,p=t[xe],m=p.options.onMove,g;return window.CustomEvent&&!bi&&!Br?h=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent("move",!0,!0)),h.to=e,h.from=t,h.dragged=i,h.draggedRect=r,h.related=a||e,h.relatedRect=s||Qt(e),h.willInsertAfter=d,h.originalEvent=c,t.dispatchEvent(h),m&&(g=m.call(p,h,c)),g}function Ps(t){t.draggable=!1}function I1(){al=!1}function P1(t,e,i){var r=Qt(Un(i.el,0,i.options,!0)),a=10;return e?t.clientX<r.left-a||t.clientY<r.top&&t.clientX<r.right:t.clientY<r.top-a||t.clientY<r.bottom&&t.clientX<r.left}function O1(t,e,i){var r=Qt(Yl(i.el,i.options.draggable)),a=10;return e?t.clientX>r.right+a||t.clientX<=r.right&&t.clientY>r.bottom&&t.clientX>=r.left:t.clientX>r.right&&t.clientY>r.top||t.clientX<=r.right&&t.clientY>r.bottom+a}function L1(t,e,i,r,a,s,c,d){var h=r?t.clientY:t.clientX,p=r?i.height:i.width,m=r?i.top:i.left,g=r?i.bottom:i.right,v=!1;if(!c){if(d&&No<p*a){if(!Tr&&(Er===1?h>m+p*s/2:h<g-p*s/2)&&(Tr=!0),Tr)v=!0;else if(Er===1?h<m+No:h>g-No)return-Er}else if(h>m+p*(1-a)/2&&h<g-p*(1-a)/2)return D1(e)}return v=v||c,v&&(h<m+p*s/2||h>g-p*s/2)?h>m+p/2?1:-1:0}function D1(t){return Me(H)<Me(t)?1:-1}function M1(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,i=e.length,r=0;i--;)r+=e.charCodeAt(i);return r.toString(36)}function N1(t){ra.length=0;for(var e=t.getElementsByTagName("input"),i=e.length;i--;){var r=e[i];r.checked&&ra.push(r)}}function Fo(t){return setTimeout(t,0)}function sl(t){return clearTimeout(t)}Aa&&It(document,"touchmove",function(t){(st.active||In)&&t.cancelable&&t.preventDefault()});st.utils={on:It,off:Tt,css:at,find:Gm,is:function(t,e){return!!Xe(t,e,t,!1)},extend:v1,throttle:Ym,closest:Xe,toggleClass:ke,clone:Xm,index:Me,nextTick:Fo,cancelNextTick:sl,detectDirection:Qm,getChild:Un};st.get=function(t){return t[xe]};st.mount=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e[0].constructor===Array&&(e=e[0]),e.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(st.utils=ii(ii({},st.utils),r.utils)),zr.mount(r)})};st.create=function(t,e){return new st(t,e)};st.version=p1;var Yt=[],pr,ll,cl=!1,Os,Ls,oa,fr;function F1(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(e){var i=e.originalEvent;this.sortable.nativeDraggable?It(document,"dragover",this._handleAutoScroll):this.options.supportPointer?It(document,"pointermove",this._handleFallbackAutoScroll):i.touches?It(document,"touchmove",this._handleFallbackAutoScroll):It(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var i=e.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?Tt(document,"dragover",this._handleAutoScroll):(Tt(document,"pointermove",this._handleFallbackAutoScroll),Tt(document,"touchmove",this._handleFallbackAutoScroll),Tt(document,"mousemove",this._handleFallbackAutoScroll)),Td(),Ro(),_1()},nulling:function(){oa=ll=pr=cl=fr=Os=Ls=null,Yt.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,i){var r=this,a=(e.touches?e.touches[0]:e).clientX,s=(e.touches?e.touches[0]:e).clientY,c=document.elementFromPoint(a,s);if(oa=e,i||this.options.forceAutoScrollFallback||Br||bi||yr){Ds(e,this.options,c,i);var d=Ai(c,!0);cl&&(!fr||a!==Os||s!==Ls)&&(fr&&Td(),fr=setInterval(function(){var h=Ai(document.elementFromPoint(a,s),!0);h!==d&&(d=h,Ro()),Ds(e,r.options,h,i)},10),Os=a,Ls=s)}else{if(!this.options.bubbleScroll||Ai(c,!0)===Qe()){Ro();return}Ds(e,this.options,Ai(c,!1),!1)}}},fi(t,{pluginName:"scroll",initializeByDefault:!0})}function Ro(){Yt.forEach(function(t){clearInterval(t.pid)}),Yt=[]}function Td(){clearInterval(fr)}var Ds=Ym(function(t,e,i,r){if(e.scroll){var a=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,c=e.scrollSensitivity,d=e.scrollSpeed,h=Qe(),p=!1,m;ll!==i&&(ll=i,Ro(),pr=e.scroll,m=e.scrollFn,pr===!0&&(pr=Ai(i,!0)));var g=0,v=pr;do{var _=v,y=Qt(_),k=y.top,E=y.bottom,C=y.left,N=y.right,O=y.width,j=y.height,z=void 0,U=void 0,V=_.scrollWidth,Z=_.scrollHeight,T=at(_),A=_.scrollLeft,B=_.scrollTop;_===h?(z=O<V&&(T.overflowX==="auto"||T.overflowX==="scroll"||T.overflowX==="visible"),U=j<Z&&(T.overflowY==="auto"||T.overflowY==="scroll"||T.overflowY==="visible")):(z=O<V&&(T.overflowX==="auto"||T.overflowX==="scroll"),U=j<Z&&(T.overflowY==="auto"||T.overflowY==="scroll"));var $=z&&(Math.abs(N-a)<=c&&A+O<V)-(Math.abs(C-a)<=c&&!!A),nt=U&&(Math.abs(E-s)<=c&&B+j<Z)-(Math.abs(k-s)<=c&&!!B);if(!Yt[g])for(var w=0;w<=g;w++)Yt[w]||(Yt[w]={});(Yt[g].vx!=$||Yt[g].vy!=nt||Yt[g].el!==_)&&(Yt[g].el=_,Yt[g].vx=$,Yt[g].vy=nt,clearInterval(Yt[g].pid),($!=0||nt!=0)&&(p=!0,Yt[g].pid=setInterval(function(){r&&this.layer===0&&st.active._onTouchMove(oa);var P=Yt[this.layer].vy?Yt[this.layer].vy*d:0,F=Yt[this.layer].vx?Yt[this.layer].vx*d:0;typeof m=="function"&&m.call(st.dragged.parentNode[xe],F,P,t,oa,Yt[this.layer].el)!=="continue"||Km(Yt[this.layer].el,F,P)}.bind({layer:g}),24))),g++}while(e.bubbleScroll&&v!==h&&(v=Ai(v,!1)));cl=p}},30),ng=function(t){var e=t.originalEvent,i=t.putSortable,r=t.dragEl,a=t.activeSortable,s=t.dispatchSortableEvent,c=t.hideGhostForTarget,d=t.unhideGhostForTarget;if(e){var h=i||a;c();var p=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,m=document.elementFromPoint(p.clientX,p.clientY);d(),h&&!h.el.contains(m)&&(s("spill"),this.onSpill({dragEl:r,putSortable:i}))}};function Kl(){}Kl.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,i=t.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var r=Un(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),i&&i.animateAll()},drop:ng};fi(Kl,{pluginName:"revertOnSpill"});function Xl(){}Xl.prototype={onSpill:function(t){var e=t.dragEl,i=t.putSortable,r=i||this.sortable;r.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),r.animateAll()},drop:ng};fi(Xl,{pluginName:"removeOnSpill"});st.mount(new F1);st.mount(Xl,Kl);const R1=["Start","Add","Remove","Update","End"],B1=["Choose","Unchoose","Sort","Filter","Clone"],z1=["Move"],Sd={manage:z1,manageAndEmit:R1,emit:B1};[...[...Sd.manageAndEmit,...Sd.emit].map(t=>t.toLowerCase())];function rg(){const t=W();Ae(()=>{t.value=window.location});const e=lt(()=>t.value?.origin),i=lt(()=>t.value?.href.replace(t.value.origin,""));function r(s){t.value&&(t.value.href=s)}function a(s){return t.value?new URLSearchParams(t.value.search).get(s):void 0}return{navigateTo:r,getSearchParam:a,routerLocation:i,origin:e,router:t}}const j1={class:"flatfinder-filter-type-boolean"},V1={class:"flatfinder-filter-type-boolean__header"},Z1={class:"flatfindeer-filter-type-boolean__header-label"},U1=Dt({__name:"Boolean",props:Li({label:{}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const{t:e}=Mr(),i=ua(t,"modelValue");return(r,a)=>(R(),K("div",j1,[tt("div",V1,[tt("label",Z1,[tt("span",null,_t(r.label),1),Ht(dt(He),{icon:r.$attrs.icon,class:"ml-1"},null,8,["icon"])]),xt(r.$slots,"remove")]),tt("div",null,[Ht(dt(k0),{modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=s=>i.value=s),items:[{label:dt(e)("yes"),value:!0},{label:dt(e)("no"),value:!1}]},{item:Xt(({item:s})=>[le(_t(s.label),1)]),_:1},8,["modelValue","items"])])]))}}),H1=Object.freeze(Object.defineProperty({__proto__:null,default:U1},Symbol.toStringTag,{value:"Module"})),$1={class:"flatfinder-filter-type-range"},q1={class:"flatfinder-filter-type-range__header"},W1={class:"flatfinder-filter-type-range__value"},G1=tt("span",null,"-",-1),Y1=Dt({__name:"Range",props:Li({min:{},max:{},suffix:{},mask:{},interval:{},label:{}},{modelValue:{},modelModifiers:{}}),emits:Li(["input"],["update:modelValue"]),setup(t,{emit:e}){const i=e,r=ua(t,"modelValue");function a(c,d){d!==void 0&&i("input",d===0?[+c,r.value[1]]:[r.value[0],+c])}function s(c){if(c!==void 0)return r.value[c]}return(c,d)=>(R(),K("div",$1,[tt("div",q1,[tt("label",null,[tt("span",null,_t(c.label),1),Ht(dt(He),{icon:c.$attrs.icon,class:"ml-1"},null,8,["icon"])]),xt(c.$slots,"remove")]),tt("div",W1,[Ht(dt(Yu),{align:"right",suffix:c.suffix,mask:c.mask,"model-value":s(0),"onUpdate:modelValue":d[0]||(d[0]=h=>a(h,0))},null,8,["suffix","mask","model-value"]),G1,Ht(dt(Yu),{align:"right",suffix:c.suffix,mask:c.mask,"model-value":s(1),"onUpdate:modelValue":d[1]||(d[1]=h=>a(h,1))},null,8,["suffix","mask","model-value"])])]))}}),K1=Object.freeze(Object.defineProperty({__proto__:null,default:Y1},Symbol.toStringTag,{value:"Module"})),X1={class:"flatfinder-filter-type-range"},J1={class:"flatfinder-filter-type-range__header"},Q1={class:"flatfinder-filter-type-range__header-label"},tE={class:"flatfinder-filter-type-range__value"},eE={class:"flatfinder-filter-type-range__value-display"},iE=Dt({__name:"RangeSlider",props:Li({min:{},max:{},label:{},suffix:{},step:{},type:{}},{modelValue:{default:[0,0]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,i=ua(t,"modelValue");function r(a){return e.type==="currency"?Ao(a):[a,e.suffix].filter(Boolean).join(" ")}return(a,s)=>(R(),K("div",X1,[tt("div",J1,[tt("label",Q1,[tt("span",null,_t(a.label),1),Ht(dt(He),{icon:a.$attrs.icon},null,8,["icon"])]),xt(a.$slots,"remove")]),tt("div",tE,[Ht(dt(wx),ee({modelValue:i.value,"onUpdate:modelValue":s[0]||(s[0]=c=>i.value=c)},e,{"min-steps-between-thumbs":1}),null,16,["modelValue"]),tt("div",eE,[tt("span",null,_t(r(i.value[0])),1),tt("span",null,_t(r(i.value[1])),1)])])]))}}),nE=Object.freeze(Object.defineProperty({__proto__:null,default:iE},Symbol.toStringTag,{value:"Module"})),rE={class:"flatfinder-filter-type-select"},oE={class:"flatfinder-filter-type-select__header"},aE={class:"flatfinder-filter-type-select__header-label"},sE=Dt({__name:"Select",props:Li({label:{},items:{}},{modelValue:{default:[]},modelModifiers:{}}),emits:Li(["disable"],["update:modelValue"]),setup(t,{emit:e}){const i=t,r=e,a=ua(t,"modelValue"),s=lt(()=>{const d=a.value.slice(0,3),h=d.length<a.value.length?` +${a.value.length-d.length}`:"";return`${d.map(p=>i.items.find(m=>m.value===p)?.label).join(", ")}${h}`}),c=lt({get(){return a.value},set(d){d.length||(r("disable"),d=i.items.map(h=>h.value)),a.value=d}});return(d,h)=>(R(),K("div",rE,[tt("div",oE,[tt("label",aE,[tt("span",null,_t(d.label),1),Ht(dt(He),{icon:d.$attrs.icon},null,8,["icon"])]),xt(d.$slots,"remove")]),(R(),Ct(dt(Bm),{key:s.value,placement:"bottom-start",label:s.value,"keep-open":!0},{default:Xt(()=>[(R(!0),K(oe,null,vi(d.items,p=>(R(),Ct(dt(Wy),{key:p.value,modelValue:c.value,"onUpdate:modelValue":h[0]||(h[0]=m=>c.value=m),label:p.label,value:p.value},null,8,["modelValue","label","value"]))),128))]),_:1},8,["label"]))]))}}),lE=Object.freeze(Object.defineProperty({__proto__:null,default:sE},Symbol.toStringTag,{value:"Module"})),Ad=Object.assign({"./Boolean.vue":H1,"./Range.vue":K1,"./RangeSlider.vue":nE,"./Select.vue":lE}),og={};for(const t in Ad){const e=t.replace(/(\.\/|\.vue)/g,"");og[e]=Ad[t].default}const cE={class:"flatfinder-filter-items"},uE=["onClick"],dE={class:"flatfinder-filter-items__item-disabled-icon"},hE={class:"flatfinder-filter-items__item-disabled-label"},pE=Dt({__name:"Items",props:{isSmallDevice:{type:Boolean,default:!1},filters:{default:()=>[]},data:{default:()=>({})}},emits:["update:filter","update:filter-item","remove:filter"],setup(t,{emit:e}){const i=e,{t:r}=Mr();return(a,s)=>(R(),K("div",cE,[(R(!0),K(oe,null,vi(a.filters,c=>(R(),K("div",{key:c.key,class:"flatfinder-filter-items__item"},[(R(),Ct(_l(c.component),ee({class:["flatfinder-filter-items__item-filter",[{"flatfinder-filter-items__item-filter--disabled":!a.data[c.key].enabled}]]},c.bindings,{"model-value":a.data[c.key].value,"onUpdate:modelValue":d=>i("update:filter",{key:c.key,value:d})},Yv(c.listeners)),{remove:Xt(()=>[Ht(dt(Di),{class:"flatfinder-filter-items__item-remove",label:dt(r)("remove"),icon:"fa-pro-light:times",variant:"danger",onClick:d=>i("remove:filter",c)},null,8,["label","onClick"])]),_:2},1040,["class","model-value","onUpdate:modelValue"])),xt(a.$slots,"default"),a.data[c.key].enabled?ut("",!0):(R(),K("div",{key:0,class:"flatfinder-filter-items__item-disabled",onClick:d=>i("update:filter-item",c.key)},[tt("div",dE,[Ht(dt(He),{icon:c.bindings.icon},null,8,["icon"])]),tt("label",hE,[tt("span",null,_t(dt(r)("clickToFilter")),1),tt("span",null,_t(c.bindings.label),1)])],8,uE))]))),128))]))}});function bo(t){return e=>e.key===t&&(!e.models||e.models.includes("Residential"))}const fE={SquareMetre:"RangeSlider",Enum:"Select",Currency:"RangeSlider",Int:"RangeSlider",Boolean:"Boolean"},Cn={SquareMetre:"fa-pro-light:ruler-triangle",Enum:"fa-pro-light:check-square",Currency:"fa-pro-light:tag",Int:"fa-pro-light:sort-numeric-up",Boolean:"fa-pro-light:toggle-on"},mE=[{key:"price",unit:"Currency"}];function gE(t){if(!t||t.length===0||!Array.isArray(t))return{};const e=t[0],i=t[t.length-1],r=i-e;let a=0;r<500?a=0:r<1e4?a=1:r<1e6?a=2:a=4;const s=10**a,c=e%s===0?e:Math.floor(e/s)*s,d=i%s===0?i:Math.ceil(i/s)*s;return{step:s,min:c,max:d}}function vE(t){if([/^-\d+$/,/^\d+-$/,/^\d+-\d+$/].some(e=>e.test(t))){const[e,i]=t.split("-").map(Number.parseFloat);return[e,i??e]}return jf(t)?t:t.includes(",")?t.split(","):[!0,!1,"true","false"].includes(t)?["true",!0].includes(t):t}const _E=Dt({components:{Items:pE,Dialog:n1,FormControl:Jy,Button:Di,Dropdown:Bm},inject:["current"],props:{isSmallDevice:{type:Boolean,default:!1},flatfinderMetadata:{type:Object,default:()=>({})}},emits:["filter"],setup(t){const e=W(),{t:i,tc:r}=Mr(),{getSearchParam:a}=rg();return{filterModal:e,path:zf,t:i,tc:r,getSearchParam:a}},data(){return{data:{},defaultFilters:[],propertiesEnum:[],properties:{},initialized:!1,showModal:!1}},computed:{filters(){return Object.keys(this.data).map(t=>{const e=this.propertiesEnum.find(bo(t));if(!e||!this.properties[t]||this.properties[t].length<2)return null;const i=this.properties[e.key];let r=fE[e.unit];(r==="RangeSlider"&&i.length<5||!e.unit)&&(r="Select");const a=s=>{const c={disable:()=>this.removeFilter({key:s.key})};let d={label:this.t(s.key),icon:Cn[s.key]||Cn[s.unit]||Cn.Enum,enum:s,suffix:void 0,prefix:void 0,type:void 0,min:void 0,max:void 0,items:void 0,mask:void 0};switch(this.data[s.key].type=r,s.unit){case"SquareMetre":d.suffix="m²";break;case"Currency":d.type="currency"}switch(r){case"Range":this.path(`data.${s.key}.value`,this)||(this.data[e.key].value=[i[0],i[i.length-1]]);break;case"RangeSlider":d={...d,...gE(i)},this.path(`data.${s.key}.value`,this)||(this.data[e.key].value=[d.min,d.max]);break;case"Select":{const h=document.querySelector("html")?.getAttribute("lang");s.values?d.items=s.values.filter(p=>i.includes(p)).map(p=>({value:p,label:this.tc(`${s.key}:${p}`,1)})):d.items=i.filter(Boolean).map(p=>({value:p.toString(),label:[d.prefix,jf(p)?p.toLocaleString(h??"nb"):p.toString(),d.suffix].filter(Boolean).join(" ")})),this.path(`data.${e.key}.value`,this)||(this.data[s.key].value=d.items.map(p=>p.value))}break;case"Boolean":this.path(`data.${s.key}.value`,this)!==null&&this.data[s.key].value.toString()||(this.data[s.key].value=!0)}switch(s.key){case"constructionYear":d.mask={mask:Number,unmask:!0};break}return d=Object.fromEntries(Object.entries(d).filter(([h,p])=>!!p)),{listeners:c,bindings:d}};return{component:og[r],key:e.key,...a(e)}}).filter(Boolean)},availableFilters(){return Object.entries(this.properties).filter(([t,e])=>e.length>1&&!(t in this.data)).map(([t])=>{const e=this.propertiesEnum.find(bo(t));return e?{key:t,icon:Cn[e.key]||Cn[e.unit]||Cn.Enum,label:this.t(e.key)}:null}).filter(Boolean)}},watch:{data:{handler(t){this.initialized&&this.$emit("filter",this.dataToValue(t))},deep:!0}},created(){this.fetchMetadata(),this.init()},methods:{updateData(t){const{key:e,value:i}=t;this.data[e].value=i},enableItem(t){this.data[t].enabled=!0},init(){const t=this.getSearchParam("flatfinder-filter");if(t){const e=Array.isArray(t)?t:[t];this.data=this.valueToData(e)}this.defaultFilters.forEach(e=>{e in this.data||(this.data[e]={enabled:!1,type:null,value:null})}),this.initialized=!0},closeModal(){this.filterModal?.close()},prepareAllValues(){if(this.filterModal?.open(),!!this.availableFilters.length)return this.availableFilters.forEach(t=>this.prepareValue(t.key,!1))},prepareValue(t,e=!1){t&&!(t in this.data)&&(this.data[t]={enabled:e,type:null,value:null})},removeFilter(t){if(this.isSmallDevice)return this.data[t.key].enabled=!1;if(this.defaultFilters.includes(t.key))return this.data[t.key].enabled=!1;delete this.data[t.key]},resetFilter(){if(this.closeModal(),!!this.filters.length)return this.filters.forEach(t=>delete this.data[t.key])},valueToData(t){return Object.fromEntries(t.map(e=>{const[i,r]=e.split(":");return this.propertiesEnum.find(bo(i))?[i,{enabled:!0,value:vE(r)}]:null}).filter(Boolean))},dataToValue(t){return Object.entries(t).filter(([,e])=>e.enabled).map(([e,{value:i,type:r}])=>{if(!this.propertiesEnum.find(bo(e))||!i)return null;const a=[...i].map(s=>isNaN(s)?s:Number(s)).sort((s,c)=>s-c);switch(r){case"RangeSlider":i=a.join("-");break;case"Range":i=a.join("-");break;case"Select":i=a.join(",");break}return`${e}:${i}`}).filter(Boolean).sort()},fetchMetadata(){this.propertiesEnum=[...this.flatfinderMetadata.Enums?.ResidentialProperties||[],...mE].filter(Boolean),this.properties=this.flatfinderMetadata.Flatfinder?.project.metadata.residentialProperties||[],this.defaultFilters=this.flatfinderMetadata.Flatfinder?.project.metadata.siteSettings.defaultFlatfinderFilters||[]}}}),Ca=(t,e)=>{const i=t.__vccOpts||t;for(const[r,a]of e)i[r]=a;return i},bE={class:"flatfinder-filter"},kE={class:"flatfinder-filter__modal-bottom"};function yE(t,e,i,r,a,s){const c=_e("Items"),d=_e("Button"),h=_e("Dialog"),p=_e("Dropdown"),m=_e("FormControl");return R(),K("div",bE,[t.isSmallDevice?(R(),Ct(h,{key:0,ref:"filterModal",title:t.t("filter"),class:"flatfinder-filter__modal","dialog-id":"filter-dialog"},{header:Xt(()=>[tt("h2",null,_t(t.t("filter")),1)]),footer:Xt(()=>[tt("div",kE,[Ht(d,{"icon-placement":"left",icon:"fa-pro-light:times",onClick:t.resetFilter},null,8,["onClick"]),Ht(d,{theme:"primary",label:t.t("filter"),onClick:t.closeModal},null,8,["label","onClick"])])]),default:Xt(()=>[Ht(c,{"is-small-device":t.isSmallDevice,filters:t.filters,data:t.data,"onUpdate:filter":e[0]||(e[0]=g=>t.updateData(g)),"onUpdate:filterItem":e[1]||(e[1]=g=>t.enableItem(g)),"onRemove:filter":e[2]||(e[2]=g=>t.removeFilter(g))},null,8,["is-small-device","filters","data"])]),_:1},8,["title"])):(R(),Ct(c,{key:1,filters:t.filters,data:t.data,"onUpdate:filter":e[3]||(e[3]=g=>t.updateData(g)),"onRemove:filter":e[4]||(e[4]=g=>t.removeFilter(g)),"onUpdate:filterItem":e[5]||(e[5]=g=>t.enableItem(g))},null,8,["filters","data"])),t.isSmallDevice&&t.filters.length||t.availableFilters.length?(R(),Ct(m,{key:2,label:t.t("clickToFilter"),class:"flatfinder-filter-items__item"},{default:Xt(({id:g})=>[t.isSmallDevice?(R(),Ct(d,{key:1,id:g,label:t.t("select"),icon:"fa-pro-light:plus","icon-right":"fa-pro-light:chevron-down",class:"flatfinder-filter__trigger",onClick:e[7]||(e[7]=v=>t.isSmallDevice&&t.prepareAllValues())},null,8,["id","label"])):(R(),Ct(p,{key:0,id:g,label:t.t("select"),icon:"fa-pro-light:plus",onClick:e[6]||(e[6]=v=>t.isSmallDevice&&t.prepareAllValues())},{default:Xt(()=>[(R(!0),K(oe,null,vi(t.availableFilters,v=>(R(),K(oe,null,[v?(R(),Ct(d,{key:0,label:v.label,icon:v.icon,variant:"tertiary",class:"flatfinder-filter__trigger-add-button",onClick:_=>t.prepareValue(v.key,!0)},null,8,["label","icon","onClick"])):ut("",!0)],64))),256))]),_:2},1032,["id","label"]))]),_:1},8,["label"])):ut("",!0)])}const xE=Ca(_E,[["render",yE]]),wE=["top","right","bottom","left"],ul=Math.min,Bn=Math.max,aa=Math.round,Fi=t=>({x:t,y:t}),EE={left:"right",right:"left",bottom:"top",top:"bottom"},TE={start:"end",end:"start"};function Cd(t,e,i){return Bn(t,ul(e,i))}function jr(t,e){return typeof t=="function"?t(e):t}function cn(t){return t.split("-")[0]}function Ia(t){return t.split("-")[1]}function ag(t){return t==="x"?"y":"x"}function sg(t){return t==="y"?"height":"width"}function Pa(t){return["top","bottom"].includes(cn(t))?"y":"x"}function lg(t){return ag(Pa(t))}function SE(t,e,i){i===void 0&&(i=!1);const r=Ia(t),a=lg(t),s=sg(a);let c=a==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(c=sa(c)),[c,sa(c)]}function AE(t){const e=sa(t);return[dl(t),e,dl(e)]}function dl(t){return t.replace(/start|end/g,e=>TE[e])}function CE(t,e,i){const r=["left","right"],a=["right","left"],s=["top","bottom"],c=["bottom","top"];switch(t){case"top":case"bottom":return i?e?a:r:e?r:a;case"left":case"right":return e?s:c;default:return[]}}function IE(t,e,i,r){const a=Ia(t);let s=CE(cn(t),i==="start",r);return a&&(s=s.map(c=>c+"-"+a),e&&(s=s.concat(s.map(dl)))),s}function sa(t){return t.replace(/left|right|bottom|top/g,e=>EE[e])}function PE(t){return{top:0,right:0,bottom:0,left:0,...t}}function OE(t){return typeof t!="number"?PE(t):{top:t,right:t,bottom:t,left:t}}function la(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Id(t,e,i){let{reference:r,floating:a}=t;const s=Pa(e),c=lg(e),d=sg(c),h=cn(e),p=s==="y",m=r.x+r.width/2-a.width/2,g=r.y+r.height/2-a.height/2,v=r[d]/2-a[d]/2;let _;switch(h){case"top":_={x:m,y:r.y-a.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:g};break;case"left":_={x:r.x-a.width,y:g};break;default:_={x:r.x,y:r.y}}switch(Ia(e)){case"start":_[c]-=v*(i&&p?-1:1);break;case"end":_[c]+=v*(i&&p?-1:1);break}return _}const LE=async(t,e,i)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:c}=i,d=s.filter(Boolean),h=await(c.isRTL==null?void 0:c.isRTL(e));let p=await c.getElementRects({reference:t,floating:e,strategy:a}),{x:m,y:g}=Id(p,r,h),v=r,_={},y=0;for(let k=0;k<d.length;k++){const{name:E,fn:C}=d[k],{x:N,y:O,data:j,reset:z}=await C({x:m,y:g,initialPlacement:r,placement:v,strategy:a,middlewareData:_,rects:p,platform:c,elements:{reference:t,floating:e}});m=N??m,g=O??g,_={..._,[E]:{..._[E],...j}},z&&y<=50&&(y++,typeof z=="object"&&(z.placement&&(v=z.placement),z.rects&&(p=z.rects===!0?await c.getElementRects({reference:t,floating:e,strategy:a}):z.rects),{x:m,y:g}=Id(p,v,h)),k=-1)}return{x:m,y:g,placement:v,strategy:a,middlewareData:_}};async function Lr(t,e){var i;e===void 0&&(e={});const{x:r,y:a,platform:s,rects:c,elements:d,strategy:h}=t,{boundary:p="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:v=!1,padding:_=0}=jr(e,t),y=OE(_),k=d[v?g==="floating"?"reference":"floating":g],E=la(await s.getClippingRect({element:(i=await(s.isElement==null?void 0:s.isElement(k)))==null||i?k:k.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(d.floating)),boundary:p,rootBoundary:m,strategy:h})),C=g==="floating"?{...c.floating,x:r,y:a}:c.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d.floating)),O=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},j=la(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:C,offsetParent:N,strategy:h}):C);return{top:(E.top-j.top+y.top)/O.y,bottom:(j.bottom-E.bottom+y.bottom)/O.y,left:(E.left-j.left+y.left)/O.x,right:(j.right-E.right+y.right)/O.x}}const DE=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var i,r;const{placement:a,middlewareData:s,rects:c,initialPlacement:d,platform:h,elements:p}=e,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:k=!0,...E}=jr(t,e);if((i=s.arrow)!=null&&i.alignmentOffset)return{};const C=cn(a),N=cn(d)===d,O=await(h.isRTL==null?void 0:h.isRTL(p.floating)),j=v||(N||!k?[sa(d)]:AE(d));!v&&y!=="none"&&j.push(...IE(d,k,y,O));const z=[d,...j],U=await Lr(e,E),V=[];let Z=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&V.push(U[C]),g){const $=SE(a,c,O);V.push(U[$[0]],U[$[1]])}if(Z=[...Z,{placement:a,overflows:V}],!V.every($=>$<=0)){var T,A;const $=(((T=s.flip)==null?void 0:T.index)||0)+1,nt=z[$];if(nt)return{data:{index:$,overflows:Z},reset:{placement:nt}};let w=(A=Z.filter(P=>P.overflows[0]<=0).sort((P,F)=>P.overflows[1]-F.overflows[1])[0])==null?void 0:A.placement;if(!w)switch(_){case"bestFit":{var B;const P=(B=Z.map(F=>[F.placement,F.overflows.filter(Q=>Q>0).reduce((Q,q)=>Q+q,0)]).sort((F,Q)=>F[1]-Q[1])[0])==null?void 0:B[0];P&&(w=P);break}case"initialPlacement":w=d;break}if(a!==w)return{reset:{placement:w}}}return{}}}};function Pd(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Od(t){return wE.some(e=>t[e]>=0)}const ME=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:i}=e,{strategy:r="referenceHidden",...a}=jr(t,e);switch(r){case"referenceHidden":{const s=await Lr(e,{...a,elementContext:"reference"}),c=Pd(s,i.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Od(c)}}}case"escaped":{const s=await Lr(e,{...a,altBoundary:!0}),c=Pd(s,i.floating);return{data:{escapedOffsets:c,escaped:Od(c)}}}default:return{}}}}};async function NE(t,e){const{placement:i,platform:r,elements:a}=t,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),c=cn(i),d=Ia(i),h=Pa(i)==="y",p=["left","top"].includes(c)?-1:1,m=s&&h?-1:1,g=jr(e,t);let{mainAxis:v,crossAxis:_,alignmentAxis:y}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return d&&typeof y=="number"&&(_=d==="end"?y*-1:y),h?{x:_*m,y:v*p}:{x:v*p,y:_*m}}const cg=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var i,r;const{x:a,y:s,placement:c,middlewareData:d}=e,h=await NE(e,t);return c===((i=d.offset)==null?void 0:i.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:a+h.x,y:s+h.y,data:{...h,placement:c}}}}},FE=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:i,y:r,placement:a}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:d={fn:E=>{let{x:C,y:N}=E;return{x:C,y:N}}},...h}=jr(t,e),p={x:i,y:r},m=await Lr(e,h),g=Pa(cn(a)),v=ag(g);let _=p[v],y=p[g];if(s){const E=v==="y"?"top":"left",C=v==="y"?"bottom":"right",N=_+m[E],O=_-m[C];_=Cd(N,_,O)}if(c){const E=g==="y"?"top":"left",C=g==="y"?"bottom":"right",N=y+m[E],O=y-m[C];y=Cd(N,y,O)}const k=d.fn({...e,[v]:_,[g]:y});return{...k,data:{x:k.x-i,y:k.y-r}}}}};function mi(t){return Jl(t)?(t.nodeName||"").toLowerCase():"#document"}function Se(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ri(t){var e;return(e=(Jl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Jl(t){return t instanceof Node||t instanceof Se(t).Node}function gi(t){return t instanceof Element||t instanceof Se(t).Element}function ni(t){return t instanceof HTMLElement||t instanceof Se(t).HTMLElement}function Ld(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Se(t).ShadowRoot}function Vr(t){const{overflow:e,overflowX:i,overflowY:r,display:a}=Be(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&!["inline","contents"].includes(a)}function RE(t){return["table","td","th"].includes(mi(t))}function Ql(t){const e=tc(),i=Be(t);return i.transform!=="none"||i.perspective!=="none"||(i.containerType?i.containerType!=="normal":!1)||!e&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!e&&(i.filter?i.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(i.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(i.contain||"").includes(r))}function BE(t){let e=Hn(t);for(;ni(e)&&!Oa(e);){if(Ql(e))return e;e=Hn(e)}return null}function tc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Oa(t){return["html","body","#document"].includes(mi(t))}function Be(t){return Se(t).getComputedStyle(t)}function La(t){return gi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Hn(t){if(mi(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ld(t)&&t.host||Ri(t);return Ld(e)?e.host:e}function ug(t){const e=Hn(t);return Oa(e)?t.ownerDocument?t.ownerDocument.body:t.body:ni(e)&&Vr(e)?e:ug(e)}function hl(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);const a=ug(t),s=a===((r=t.ownerDocument)==null?void 0:r.body),c=Se(a);return s?e.concat(c,c.visualViewport||[],Vr(a)?a:[],c.frameElement&&i?hl(c.frameElement):[]):e.concat(a,hl(a,[],i))}function dg(t){const e=Be(t);let i=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=ni(t),s=a?t.offsetWidth:i,c=a?t.offsetHeight:r,d=aa(i)!==s||aa(r)!==c;return d&&(i=s,r=c),{width:i,height:r,$:d}}function hg(t){return gi(t)?t:t.contextElement}function zn(t){const e=hg(t);if(!ni(e))return Fi(1);const i=e.getBoundingClientRect(),{width:r,height:a,$:s}=dg(e);let c=(s?aa(i.width):i.width)/r,d=(s?aa(i.height):i.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!d||!Number.isFinite(d))&&(d=1),{x:c,y:d}}const zE=Fi(0);function pg(t){const e=Se(t);return!tc()||!e.visualViewport?zE:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function jE(t,e,i){return e===void 0&&(e=!1),!i||e&&i!==Se(t)?!1:e}function Dr(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);const a=t.getBoundingClientRect(),s=hg(t);let c=Fi(1);e&&(r?gi(r)&&(c=zn(r)):c=zn(t));const d=jE(s,i,r)?pg(s):Fi(0);let h=(a.left+d.x)/c.x,p=(a.top+d.y)/c.y,m=a.width/c.x,g=a.height/c.y;if(s){const v=Se(s),_=r&&gi(r)?Se(r):r;let y=v.frameElement;for(;y&&r&&_!==v;){const k=zn(y),E=y.getBoundingClientRect(),C=Be(y),N=E.left+(y.clientLeft+parseFloat(C.paddingLeft))*k.x,O=E.top+(y.clientTop+parseFloat(C.paddingTop))*k.y;h*=k.x,p*=k.y,m*=k.x,g*=k.y,h+=N,p+=O,y=Se(y).frameElement}}return la({width:m,height:g,x:h,y:p})}function VE(t){let{rect:e,offsetParent:i,strategy:r}=t;const a=ni(i),s=Ri(i);if(i===s)return e;let c={scrollLeft:0,scrollTop:0},d=Fi(1);const h=Fi(0);if((a||!a&&r!=="fixed")&&((mi(i)!=="body"||Vr(s))&&(c=La(i)),ni(i))){const p=Dr(i);d=zn(i),h.x=p.x+i.clientLeft,h.y=p.y+i.clientTop}return{width:e.width*d.x,height:e.height*d.y,x:e.x*d.x-c.scrollLeft*d.x+h.x,y:e.y*d.y-c.scrollTop*d.y+h.y}}function ZE(t){return Array.from(t.getClientRects())}function fg(t){return Dr(Ri(t)).left+La(t).scrollLeft}function UE(t){const e=Ri(t),i=La(t),r=t.ownerDocument.body,a=Bn(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=Bn(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let c=-i.scrollLeft+fg(t);const d=-i.scrollTop;return Be(r).direction==="rtl"&&(c+=Bn(e.clientWidth,r.clientWidth)-a),{width:a,height:s,x:c,y:d}}function HE(t,e){const i=Se(t),r=Ri(t),a=i.visualViewport;let s=r.clientWidth,c=r.clientHeight,d=0,h=0;if(a){s=a.width,c=a.height;const p=tc();(!p||p&&e==="fixed")&&(d=a.offsetLeft,h=a.offsetTop)}return{width:s,height:c,x:d,y:h}}function $E(t,e){const i=Dr(t,!0,e==="fixed"),r=i.top+t.clientTop,a=i.left+t.clientLeft,s=ni(t)?zn(t):Fi(1),c=t.clientWidth*s.x,d=t.clientHeight*s.y,h=a*s.x,p=r*s.y;return{width:c,height:d,x:h,y:p}}function Dd(t,e,i){let r;if(e==="viewport")r=HE(t,i);else if(e==="document")r=UE(Ri(t));else if(gi(e))r=$E(e,i);else{const a=pg(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return la(r)}function mg(t,e){const i=Hn(t);return i===e||!gi(i)||Oa(i)?!1:Be(i).position==="fixed"||mg(i,e)}function qE(t,e){const i=e.get(t);if(i)return i;let r=hl(t,[],!1).filter(d=>gi(d)&&mi(d)!=="body"),a=null;const s=Be(t).position==="fixed";let c=s?Hn(t):t;for(;gi(c)&&!Oa(c);){const d=Be(c),h=Ql(c);!h&&d.position==="fixed"&&(a=null),(s?!h&&!a:!h&&d.position==="static"&&a&&["absolute","fixed"].includes(a.position)||Vr(c)&&!h&&mg(t,c))?r=r.filter(p=>p!==c):a=d,c=Hn(c)}return e.set(t,r),r}function WE(t){let{element:e,boundary:i,rootBoundary:r,strategy:a}=t;const s=[...i==="clippingAncestors"?qE(e,this._c):[].concat(i),r],c=s[0],d=s.reduce((h,p)=>{const m=Dd(e,p,a);return h.top=Bn(m.top,h.top),h.right=ul(m.right,h.right),h.bottom=ul(m.bottom,h.bottom),h.left=Bn(m.left,h.left),h},Dd(e,c,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function GE(t){const{width:e,height:i}=dg(t);return{width:e,height:i}}function YE(t,e,i){const r=ni(e),a=Ri(e),s=i==="fixed",c=Dr(t,!0,s,e);let d={scrollLeft:0,scrollTop:0};const h=Fi(0);if(r||!r&&!s)if((mi(e)!=="body"||Vr(a))&&(d=La(e)),r){const p=Dr(e,!0,s,e);h.x=p.x+e.clientLeft,h.y=p.y+e.clientTop}else a&&(h.x=fg(a));return{x:c.left+d.scrollLeft-h.x,y:c.top+d.scrollTop-h.y,width:c.width,height:c.height}}function Md(t,e){return!ni(t)||Be(t).position==="fixed"?null:e?e(t):t.offsetParent}function gg(t,e){const i=Se(t);if(!ni(t))return i;let r=Md(t,e);for(;r&&RE(r)&&Be(r).position==="static";)r=Md(r,e);return r&&(mi(r)==="html"||mi(r)==="body"&&Be(r).position==="static"&&!Ql(r))?i:r||BE(t)||i}const KE=async function(t){let{reference:e,floating:i,strategy:r}=t;const a=this.getOffsetParent||gg,s=this.getDimensions;return{reference:YE(e,await a(i),r),floating:{x:0,y:0,...await s(i)}}};function XE(t){return Be(t).direction==="rtl"}const JE={convertOffsetParentRelativeRectToViewportRelativeRect:VE,getDocumentElement:Ri,getClippingRect:WE,getOffsetParent:gg,getElementRects:KE,getClientRects:ZE,getDimensions:GE,getScale:zn,isElement:gi,isRTL:XE},vg=FE,QE=DE,tT=ME,_g=(t,e,i)=>{const r=new Map,a={platform:JE,...i},s={...a.platform,_c:r};return LE(t,e,{...a,platform:s})};var pl={exports:{}};/* @preserve
|
|
170
|
-
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
171
|
-
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
172
|
-
*/(function(t,e){(function(i,r){r(e)})(ih,function(i){var r="1.9.4";function a(n){var o,l,u,f;for(l=1,u=arguments.length;l<u;l++){f=arguments[l];for(o in f)n[o]=f[o]}return n}var s=Object.create||function(){function n(){}return function(o){return n.prototype=o,new n}}();function c(n,o){var l=Array.prototype.slice;if(n.bind)return n.bind.apply(n,l.call(arguments,1));var u=l.call(arguments,2);return function(){return n.apply(o,u.length?u.concat(l.call(arguments)):arguments)}}var d=0;function h(n){return"_leaflet_id"in n||(n._leaflet_id=++d),n._leaflet_id}function p(n,o,l){var u,f,b,x;return x=function(){u=!1,f&&(b.apply(l,f),f=!1)},b=function(){u?f=arguments:(n.apply(l,arguments),setTimeout(x,o),u=!0)},b}function m(n,o,l){var u=o[1],f=o[0],b=u-f;return n===u&&l?n:((n-f)%b+b)%b+f}function g(){return!1}function v(n,o){if(o===!1)return n;var l=Math.pow(10,o===void 0?6:o);return Math.round(n*l)/l}function _(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function y(n){return _(n).split(/\s+/)}function k(n,o){Object.prototype.hasOwnProperty.call(n,"options")||(n.options=n.options?s(n.options):{});for(var l in o)n.options[l]=o[l];return n.options}function E(n,o,l){var u=[];for(var f in n)u.push(encodeURIComponent(l?f.toUpperCase():f)+"="+encodeURIComponent(n[f]));return(!o||o.indexOf("?")===-1?"?":"&")+u.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function N(n,o){return n.replace(C,function(l,u){var f=o[u];if(f===void 0)throw new Error("No value provided for variable "+l);return typeof f=="function"&&(f=f(o)),f})}var O=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"};function j(n,o){for(var l=0;l<n.length;l++)if(n[l]===o)return l;return-1}var z="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function U(n){return window["webkit"+n]||window["moz"+n]||window["ms"+n]}var V=0;function Z(n){var o=+new Date,l=Math.max(0,16-(o-V));return V=o+l,window.setTimeout(n,l)}var T=window.requestAnimationFrame||U("RequestAnimationFrame")||Z,A=window.cancelAnimationFrame||U("CancelAnimationFrame")||U("CancelRequestAnimationFrame")||function(n){window.clearTimeout(n)};function B(n,o,l){if(l&&T===Z)n.call(o);else return T.call(window,c(n,o))}function $(n){n&&A.call(window,n)}var nt={__proto__:null,extend:a,create:s,bind:c,get lastId(){return d},stamp:h,throttle:p,wrapNum:m,falseFn:g,formatNum:v,trim:_,splitWords:y,setOptions:k,getParamString:E,template:N,isArray:O,indexOf:j,emptyImageUrl:z,requestFn:T,cancelFn:A,requestAnimFrame:B,cancelAnimFrame:$};function w(){}w.extend=function(n){var o=function(){k(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},l=o.__super__=this.prototype,u=s(l);u.constructor=o,o.prototype=u;for(var f in this)Object.prototype.hasOwnProperty.call(this,f)&&f!=="prototype"&&f!=="__super__"&&(o[f]=this[f]);return n.statics&&a(o,n.statics),n.includes&&(P(n.includes),a.apply(null,[u].concat(n.includes))),a(u,n),delete u.statics,delete u.includes,u.options&&(u.options=l.options?s(l.options):{},a(u.options,n.options)),u._initHooks=[],u.callInitHooks=function(){if(!this._initHooksCalled){l.callInitHooks&&l.callInitHooks.call(this),this._initHooksCalled=!0;for(var b=0,x=u._initHooks.length;b<x;b++)u._initHooks[b].call(this)}},o},w.include=function(n){var o=this.prototype.options;return a(this.prototype,n),n.options&&(this.prototype.options=o,this.mergeOptions(n.options)),this},w.mergeOptions=function(n){return a(this.prototype.options,n),this},w.addInitHook=function(n){var o=Array.prototype.slice.call(arguments,1),l=typeof n=="function"?n:function(){this[n].apply(this,o)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(l),this};function P(n){if(!(typeof L>"u"||!L||!L.Mixin)){n=O(n)?n:[n];for(var o=0;o<n.length;o++)n[o]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var F={on:function(n,o,l){if(typeof n=="object")for(var u in n)this._on(u,n[u],o);else{n=y(n);for(var f=0,b=n.length;f<b;f++)this._on(n[f],o,l)}return this},off:function(n,o,l){if(!arguments.length)delete this._events;else if(typeof n=="object")for(var u in n)this._off(u,n[u],o);else{n=y(n);for(var f=arguments.length===1,b=0,x=n.length;b<x;b++)f?this._off(n[b]):this._off(n[b],o,l)}return this},_on:function(n,o,l,u){if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}if(this._listens(n,o,l)===!1){l===this&&(l=void 0);var f={fn:o,ctx:l};u&&(f.once=!0),this._events=this._events||{},this._events[n]=this._events[n]||[],this._events[n].push(f)}},_off:function(n,o,l){var u,f,b;if(this._events&&(u=this._events[n],!!u)){if(arguments.length===1){if(this._firingCount)for(f=0,b=u.length;f<b;f++)u[f].fn=g;delete this._events[n];return}if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}var x=this._listens(n,o,l);if(x!==!1){var S=u[x];this._firingCount&&(S.fn=g,this._events[n]=u=u.slice()),u.splice(x,1)}}},fire:function(n,o,l){if(!this.listens(n,l))return this;var u=a({},o,{type:n,target:this,sourceTarget:o&&o.sourceTarget||this});if(this._events){var f=this._events[n];if(f){this._firingCount=this._firingCount+1||1;for(var b=0,x=f.length;b<x;b++){var S=f[b],I=S.fn;S.once&&this.off(n,I,S.ctx),I.call(S.ctx||this,u)}this._firingCount--}}return l&&this._propagateEvent(u),this},listens:function(n,o,l,u){typeof n!="string"&&console.warn('"string" type argument expected');var f=o;typeof o!="function"&&(u=!!o,f=void 0,l=void 0);var b=this._events&&this._events[n];if(b&&b.length&&this._listens(n,f,l)!==!1)return!0;if(u){for(var x in this._eventParents)if(this._eventParents[x].listens(n,o,l,u))return!0}return!1},_listens:function(n,o,l){if(!this._events)return!1;var u=this._events[n]||[];if(!o)return!!u.length;l===this&&(l=void 0);for(var f=0,b=u.length;f<b;f++)if(u[f].fn===o&&u[f].ctx===l)return f;return!1},once:function(n,o,l){if(typeof n=="object")for(var u in n)this._on(u,n[u],o,!0);else{n=y(n);for(var f=0,b=n.length;f<b;f++)this._on(n[f],o,l,!0)}return this},addEventParent:function(n){return this._eventParents=this._eventParents||{},this._eventParents[h(n)]=n,this},removeEventParent:function(n){return this._eventParents&&delete this._eventParents[h(n)],this},_propagateEvent:function(n){for(var o in this._eventParents)this._eventParents[o].fire(n.type,a({layer:n.target,propagatedFrom:n.target},n),!0)}};F.addEventListener=F.on,F.removeEventListener=F.clearAllEventListeners=F.off,F.addOneTimeEventListener=F.once,F.fireEvent=F.fire,F.hasEventListeners=F.listens;var Q=w.extend(F);function q(n,o,l){this.x=l?Math.round(n):n,this.y=l?Math.round(o):o}var ht=Math.trunc||function(n){return n>0?Math.floor(n):Math.ceil(n)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(n){return this.clone()._add(X(n))},_add:function(n){return this.x+=n.x,this.y+=n.y,this},subtract:function(n){return this.clone()._subtract(X(n))},_subtract:function(n){return this.x-=n.x,this.y-=n.y,this},divideBy:function(n){return this.clone()._divideBy(n)},_divideBy:function(n){return this.x/=n,this.y/=n,this},multiplyBy:function(n){return this.clone()._multiplyBy(n)},_multiplyBy:function(n){return this.x*=n,this.y*=n,this},scaleBy:function(n){return new q(this.x*n.x,this.y*n.y)},unscaleBy:function(n){return new q(this.x/n.x,this.y/n.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ht(this.x),this.y=ht(this.y),this},distanceTo:function(n){n=X(n);var o=n.x-this.x,l=n.y-this.y;return Math.sqrt(o*o+l*l)},equals:function(n){return n=X(n),n.x===this.x&&n.y===this.y},contains:function(n){return n=X(n),Math.abs(n.x)<=Math.abs(this.x)&&Math.abs(n.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function X(n,o,l){return n instanceof q?n:O(n)?new q(n[0],n[1]):n==null?n:typeof n=="object"&&"x"in n&&"y"in n?new q(n.x,n.y):new q(n,o,l)}function wt(n,o){if(n)for(var l=o?[n,o]:n,u=0,f=l.length;u<f;u++)this.extend(l[u])}wt.prototype={extend:function(n){var o,l;if(!n)return this;if(n instanceof q||typeof n[0]=="number"||"x"in n)o=l=X(n);else if(n=Pt(n),o=n.min,l=n.max,!o||!l)return this;return!this.min&&!this.max?(this.min=o.clone(),this.max=l.clone()):(this.min.x=Math.min(o.x,this.min.x),this.max.x=Math.max(l.x,this.max.x),this.min.y=Math.min(o.y,this.min.y),this.max.y=Math.max(l.y,this.max.y)),this},getCenter:function(n){return X((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,n)},getBottomLeft:function(){return X(this.min.x,this.max.y)},getTopRight:function(){return X(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(n){var o,l;return typeof n[0]=="number"||n instanceof q?n=X(n):n=Pt(n),n instanceof wt?(o=n.min,l=n.max):o=l=n,o.x>=this.min.x&&l.x<=this.max.x&&o.y>=this.min.y&&l.y<=this.max.y},intersects:function(n){n=Pt(n);var o=this.min,l=this.max,u=n.min,f=n.max,b=f.x>=o.x&&u.x<=l.x,x=f.y>=o.y&&u.y<=l.y;return b&&x},overlaps:function(n){n=Pt(n);var o=this.min,l=this.max,u=n.min,f=n.max,b=f.x>o.x&&u.x<l.x,x=f.y>o.y&&u.y<l.y;return b&&x},isValid:function(){return!!(this.min&&this.max)},pad:function(n){var o=this.min,l=this.max,u=Math.abs(o.x-l.x)*n,f=Math.abs(o.y-l.y)*n;return Pt(X(o.x-u,o.y-f),X(l.x+u,l.y+f))},equals:function(n){return n?(n=Pt(n),this.min.equals(n.getTopLeft())&&this.max.equals(n.getBottomRight())):!1}};function Pt(n,o){return!n||n instanceof wt?n:new wt(n,o)}function Ft(n,o){if(n)for(var l=o?[n,o]:n,u=0,f=l.length;u<f;u++)this.extend(l[u])}Ft.prototype={extend:function(n){var o=this._southWest,l=this._northEast,u,f;if(n instanceof St)u=n,f=n;else if(n instanceof Ft){if(u=n._southWest,f=n._northEast,!u||!f)return this}else return n?this.extend(kt(n)||Ot(n)):this;return!o&&!l?(this._southWest=new St(u.lat,u.lng),this._northEast=new St(f.lat,f.lng)):(o.lat=Math.min(u.lat,o.lat),o.lng=Math.min(u.lng,o.lng),l.lat=Math.max(f.lat,l.lat),l.lng=Math.max(f.lng,l.lng)),this},pad:function(n){var o=this._southWest,l=this._northEast,u=Math.abs(o.lat-l.lat)*n,f=Math.abs(o.lng-l.lng)*n;return new Ft(new St(o.lat-u,o.lng-f),new St(l.lat+u,l.lng+f))},getCenter:function(){return new St((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new St(this.getNorth(),this.getWest())},getSouthEast:function(){return new St(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(n){typeof n[0]=="number"||n instanceof St||"lat"in n?n=kt(n):n=Ot(n);var o=this._southWest,l=this._northEast,u,f;return n instanceof Ft?(u=n.getSouthWest(),f=n.getNorthEast()):u=f=n,u.lat>=o.lat&&f.lat<=l.lat&&u.lng>=o.lng&&f.lng<=l.lng},intersects:function(n){n=Ot(n);var o=this._southWest,l=this._northEast,u=n.getSouthWest(),f=n.getNorthEast(),b=f.lat>=o.lat&&u.lat<=l.lat,x=f.lng>=o.lng&&u.lng<=l.lng;return b&&x},overlaps:function(n){n=Ot(n);var o=this._southWest,l=this._northEast,u=n.getSouthWest(),f=n.getNorthEast(),b=f.lat>o.lat&&u.lat<l.lat,x=f.lng>o.lng&&u.lng<l.lng;return b&&x},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(n,o){return n?(n=Ot(n),this._southWest.equals(n.getSouthWest(),o)&&this._northEast.equals(n.getNorthEast(),o)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Ot(n,o){return n instanceof Ft?n:new Ft(n,o)}function St(n,o,l){if(isNaN(n)||isNaN(o))throw new Error("Invalid LatLng object: ("+n+", "+o+")");this.lat=+n,this.lng=+o,l!==void 0&&(this.alt=+l)}St.prototype={equals:function(n,o){if(!n)return!1;n=kt(n);var l=Math.max(Math.abs(this.lat-n.lat),Math.abs(this.lng-n.lng));return l<=(o===void 0?1e-9:o)},toString:function(n){return"LatLng("+v(this.lat,n)+", "+v(this.lng,n)+")"},distanceTo:function(n){return $e.distance(this,kt(n))},wrap:function(){return $e.wrapLatLng(this)},toBounds:function(n){var o=180*n/40075017,l=o/Math.cos(Math.PI/180*this.lat);return Ot([this.lat-o,this.lng-l],[this.lat+o,this.lng+l])},clone:function(){return new St(this.lat,this.lng,this.alt)}};function kt(n,o,l){return n instanceof St?n:O(n)&&typeof n[0]!="object"?n.length===3?new St(n[0],n[1],n[2]):n.length===2?new St(n[0],n[1]):null:n==null?n:typeof n=="object"&&"lat"in n?new St(n.lat,"lng"in n?n.lng:n.lon,n.alt):o===void 0?null:new St(n,o,l)}var Ce={latLngToPoint:function(n,o){var l=this.projection.project(n),u=this.scale(o);return this.transformation._transform(l,u)},pointToLatLng:function(n,o){var l=this.scale(o),u=this.transformation.untransform(n,l);return this.projection.unproject(u)},project:function(n){return this.projection.project(n)},unproject:function(n){return this.projection.unproject(n)},scale:function(n){return 256*Math.pow(2,n)},zoom:function(n){return Math.log(n/256)/Math.LN2},getProjectedBounds:function(n){if(this.infinite)return null;var o=this.projection.bounds,l=this.scale(n),u=this.transformation.transform(o.min,l),f=this.transformation.transform(o.max,l);return new wt(u,f)},infinite:!1,wrapLatLng:function(n){var o=this.wrapLng?m(n.lng,this.wrapLng,!0):n.lng,l=this.wrapLat?m(n.lat,this.wrapLat,!0):n.lat,u=n.alt;return new St(l,o,u)},wrapLatLngBounds:function(n){var o=n.getCenter(),l=this.wrapLatLng(o),u=o.lat-l.lat,f=o.lng-l.lng;if(u===0&&f===0)return n;var b=n.getSouthWest(),x=n.getNorthEast(),S=new St(b.lat-u,b.lng-f),I=new St(x.lat-u,x.lng-f);return new Ft(S,I)}},$e=a({},Ce,{wrapLng:[-180,180],R:6371e3,distance:function(n,o){var l=Math.PI/180,u=n.lat*l,f=o.lat*l,b=Math.sin((o.lat-n.lat)*l/2),x=Math.sin((o.lng-n.lng)*l/2),S=b*b+Math.cos(u)*Math.cos(f)*x*x,I=2*Math.atan2(Math.sqrt(S),Math.sqrt(1-S));return this.R*I}}),qn=6378137,dn={R:qn,MAX_LATITUDE:85.0511287798,project:function(n){var o=Math.PI/180,l=this.MAX_LATITUDE,u=Math.max(Math.min(l,n.lat),-l),f=Math.sin(u*o);return new q(this.R*n.lng*o,this.R*Math.log((1+f)/(1-f))/2)},unproject:function(n){var o=180/Math.PI;return new St((2*Math.atan(Math.exp(n.y/this.R))-Math.PI/2)*o,n.x*o/this.R)},bounds:function(){var n=qn*Math.PI;return new wt([-n,-n],[n,n])}()};function Wn(n,o,l,u){if(O(n)){this._a=n[0],this._b=n[1],this._c=n[2],this._d=n[3];return}this._a=n,this._b=o,this._c=l,this._d=u}Wn.prototype={transform:function(n,o){return this._transform(n.clone(),o)},_transform:function(n,o){return o=o||1,n.x=o*(this._a*n.x+this._b),n.y=o*(this._c*n.y+this._d),n},untransform:function(n,o){return o=o||1,new q((n.x/o-this._b)/this._a,(n.y/o-this._d)/this._c)}};function Bi(n,o,l,u){return new Wn(n,o,l,u)}var hn=a({},$e,{code:"EPSG:3857",projection:dn,transformation:function(){var n=.5/(Math.PI*dn.R);return Bi(n,.5,-n,.5)}()}),ct=a({},hn,{code:"EPSG:900913"});function qt(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function jt(n,o){var l="",u,f,b,x,S,I;for(u=0,b=n.length;u<b;u++){for(S=n[u],f=0,x=S.length;f<x;f++)I=S[f],l+=(f?"L":"M")+I.x+" "+I.y;l+=o?et.svg?"z":"x":""}return l||"M0 0"}var be=document.documentElement.style,ki="ActiveXObject"in window,Gn=ki&&!document.addEventListener,pn="msLaunchUri"in navigator&&!("documentMode"in document),zi=qe("webkit"),yi=qe("android"),ec=qe("android 2")||qe("android 3"),xg=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),wg=yi&&qe("Google")&&xg<537&&!("AudioNode"in window),Da=!!window.opera,ic=!pn&&qe("chrome"),nc=qe("gecko")&&!zi&&!Da&&!ki,Eg=!ic&&qe("safari"),rc=qe("phantom"),oc="OTransition"in be,Tg=navigator.platform.indexOf("Win")===0,ac=ki&&"transition"in be,Ma="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ec,sc="MozPerspective"in be,Sg=!window.L_DISABLE_3D&&(ac||Ma||sc)&&!oc&&!rc,Yn=typeof orientation<"u"||qe("mobile"),Ag=Yn&&zi,Cg=Yn&&Ma,lc=!window.PointerEvent&&window.MSPointerEvent,cc=!!(window.PointerEvent||lc),uc="ontouchstart"in window||!!window.TouchEvent,Ig=!window.L_NO_TOUCH&&(uc||cc),Pg=Yn&&Da,Og=Yn&&nc,Lg=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Dg=function(){var n=!1;try{var o=Object.defineProperty({},"passive",{get:function(){n=!0}});window.addEventListener("testPassiveEventSupport",g,o),window.removeEventListener("testPassiveEventSupport",g,o)}catch{}return n}(),Mg=function(){return!!document.createElement("canvas").getContext}(),Na=!!(document.createElementNS&&qt("svg").createSVGRect),Ng=!!Na&&function(){var n=document.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Fg=!Na&&function(){try{var n=document.createElement("div");n.innerHTML='<v:shape adj="1"/>';var o=n.firstChild;return o.style.behavior="url(#default#VML)",o&&typeof o.adj=="object"}catch{return!1}}(),Rg=navigator.platform.indexOf("Mac")===0,Bg=navigator.platform.indexOf("Linux")===0;function qe(n){return navigator.userAgent.toLowerCase().indexOf(n)>=0}var et={ie:ki,ielt9:Gn,edge:pn,webkit:zi,android:yi,android23:ec,androidStock:wg,opera:Da,chrome:ic,gecko:nc,safari:Eg,phantom:rc,opera12:oc,win:Tg,ie3d:ac,webkit3d:Ma,gecko3d:sc,any3d:Sg,mobile:Yn,mobileWebkit:Ag,mobileWebkit3d:Cg,msPointer:lc,pointer:cc,touch:Ig,touchNative:uc,mobileOpera:Pg,mobileGecko:Og,retina:Lg,passiveEvents:Dg,canvas:Mg,svg:Na,vml:Fg,inlineSvg:Ng,mac:Rg,linux:Bg},dc=et.msPointer?"MSPointerDown":"pointerdown",hc=et.msPointer?"MSPointerMove":"pointermove",pc=et.msPointer?"MSPointerUp":"pointerup",fc=et.msPointer?"MSPointerCancel":"pointercancel",Fa={touchstart:dc,touchmove:hc,touchend:pc,touchcancel:fc},mc={touchstart:Hg,touchmove:Zr,touchend:Zr,touchcancel:Zr},fn={},gc=!1;function zg(n,o,l){return o==="touchstart"&&Ug(),mc[o]?(l=mc[o].bind(this,l),n.addEventListener(Fa[o],l,!1),l):(console.warn("wrong event specified:",o),g)}function jg(n,o,l){if(!Fa[o]){console.warn("wrong event specified:",o);return}n.removeEventListener(Fa[o],l,!1)}function Vg(n){fn[n.pointerId]=n}function Zg(n){fn[n.pointerId]&&(fn[n.pointerId]=n)}function vc(n){delete fn[n.pointerId]}function Ug(){gc||(document.addEventListener(dc,Vg,!0),document.addEventListener(hc,Zg,!0),document.addEventListener(pc,vc,!0),document.addEventListener(fc,vc,!0),gc=!0)}function Zr(n,o){if(o.pointerType!==(o.MSPOINTER_TYPE_MOUSE||"mouse")){o.touches=[];for(var l in fn)o.touches.push(fn[l]);o.changedTouches=[o],n(o)}}function Hg(n,o){o.MSPOINTER_TYPE_TOUCH&&o.pointerType===o.MSPOINTER_TYPE_TOUCH&&ne(o),Zr(n,o)}function $g(n){var o={},l,u;for(u in n)l=n[u],o[u]=l&&l.bind?l.bind(n):l;return n=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var qg=200;function Wg(n,o){n.addEventListener("dblclick",o);var l=0,u;function f(b){if(b.detail!==1){u=b.detail;return}if(!(b.pointerType==="mouse"||b.sourceCapabilities&&!b.sourceCapabilities.firesTouchEvents)){var x=xc(b);if(!(x.some(function(I){return I instanceof HTMLLabelElement&&I.attributes.for})&&!x.some(function(I){return I instanceof HTMLInputElement||I instanceof HTMLSelectElement}))){var S=Date.now();S-l<=qg?(u++,u===2&&o($g(b))):u=1,l=S}}}return n.addEventListener("click",f),{dblclick:o,simDblclick:f}}function Gg(n,o){n.removeEventListener("dblclick",o.dblclick),n.removeEventListener("click",o.simDblclick)}var Ra=$r(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Kn=$r(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),_c=Kn==="webkitTransition"||Kn==="OTransition"?Kn+"End":"transitionend";function bc(n){return typeof n=="string"?document.getElementById(n):n}function Xn(n,o){var l=n.style[o]||n.currentStyle&&n.currentStyle[o];if((!l||l==="auto")&&document.defaultView){var u=document.defaultView.getComputedStyle(n,null);l=u?u[o]:null}return l==="auto"?null:l}function At(n,o,l){var u=document.createElement(n);return u.className=o||"",l&&l.appendChild(u),u}function zt(n){var o=n.parentNode;o&&o.removeChild(n)}function Ur(n){for(;n.firstChild;)n.removeChild(n.firstChild)}function mn(n){var o=n.parentNode;o&&o.lastChild!==n&&o.appendChild(n)}function gn(n){var o=n.parentNode;o&&o.firstChild!==n&&o.insertBefore(n,o.firstChild)}function Ba(n,o){if(n.classList!==void 0)return n.classList.contains(o);var l=Hr(n);return l.length>0&&new RegExp("(^|\\s)"+o+"(\\s|$)").test(l)}function vt(n,o){if(n.classList!==void 0)for(var l=y(o),u=0,f=l.length;u<f;u++)n.classList.add(l[u]);else if(!Ba(n,o)){var b=Hr(n);za(n,(b?b+" ":"")+o)}}function $t(n,o){n.classList!==void 0?n.classList.remove(o):za(n,_((" "+Hr(n)+" ").replace(" "+o+" "," ")))}function za(n,o){n.className.baseVal===void 0?n.className=o:n.className.baseVal=o}function Hr(n){return n.correspondingElement&&(n=n.correspondingElement),n.className.baseVal===void 0?n.className:n.className.baseVal}function Ie(n,o){"opacity"in n.style?n.style.opacity=o:"filter"in n.style&&Yg(n,o)}function Yg(n,o){var l=!1,u="DXImageTransform.Microsoft.Alpha";try{l=n.filters.item(u)}catch{if(o===1)return}o=Math.round(o*100),l?(l.Enabled=o!==100,l.Opacity=o):n.style.filter+=" progid:"+u+"(opacity="+o+")"}function $r(n){for(var o=document.documentElement.style,l=0;l<n.length;l++)if(n[l]in o)return n[l];return!1}function ji(n,o,l){var u=o||new q(0,0);n.style[Ra]=(et.ie3d?"translate("+u.x+"px,"+u.y+"px)":"translate3d("+u.x+"px,"+u.y+"px,0)")+(l?" scale("+l+")":"")}function Wt(n,o){n._leaflet_pos=o,et.any3d?ji(n,o):(n.style.left=o.x+"px",n.style.top=o.y+"px")}function Vi(n){return n._leaflet_pos||new q(0,0)}var Jn,Qn,ja;if("onselectstart"in document)Jn=function(){pt(window,"selectstart",ne)},Qn=function(){Rt(window,"selectstart",ne)};else{var tr=$r(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jn=function(){if(tr){var n=document.documentElement.style;ja=n[tr],n[tr]="none"}},Qn=function(){tr&&(document.documentElement.style[tr]=ja,ja=void 0)}}function Va(){pt(window,"dragstart",ne)}function Za(){Rt(window,"dragstart",ne)}var qr,Ua;function Ha(n){for(;n.tabIndex===-1;)n=n.parentNode;n.style&&(Wr(),qr=n,Ua=n.style.outlineStyle,n.style.outlineStyle="none",pt(window,"keydown",Wr))}function Wr(){qr&&(qr.style.outlineStyle=Ua,qr=void 0,Ua=void 0,Rt(window,"keydown",Wr))}function kc(n){do n=n.parentNode;while((!n.offsetWidth||!n.offsetHeight)&&n!==document.body);return n}function $a(n){var o=n.getBoundingClientRect();return{x:o.width/n.offsetWidth||1,y:o.height/n.offsetHeight||1,boundingClientRect:o}}var Kg={__proto__:null,TRANSFORM:Ra,TRANSITION:Kn,TRANSITION_END:_c,get:bc,getStyle:Xn,create:At,remove:zt,empty:Ur,toFront:mn,toBack:gn,hasClass:Ba,addClass:vt,removeClass:$t,setClass:za,getClass:Hr,setOpacity:Ie,testProp:$r,setTransform:ji,setPosition:Wt,getPosition:Vi,get disableTextSelection(){return Jn},get enableTextSelection(){return Qn},disableImageDrag:Va,enableImageDrag:Za,preventOutline:Ha,restoreOutline:Wr,getSizedParentNode:kc,getScale:$a};function pt(n,o,l,u){if(o&&typeof o=="object")for(var f in o)Wa(n,f,o[f],l);else{o=y(o);for(var b=0,x=o.length;b<x;b++)Wa(n,o[b],l,u)}return this}var We="_leaflet_events";function Rt(n,o,l,u){if(arguments.length===1)yc(n),delete n[We];else if(o&&typeof o=="object")for(var f in o)Ga(n,f,o[f],l);else if(o=y(o),arguments.length===2)yc(n,function(S){return j(o,S)!==-1});else for(var b=0,x=o.length;b<x;b++)Ga(n,o[b],l,u);return this}function yc(n,o){for(var l in n[We]){var u=l.split(/\d/)[0];(!o||o(u))&&Ga(n,u,null,null,l)}}var qa={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Wa(n,o,l,u){var f=o+h(l)+(u?"_"+h(u):"");if(n[We]&&n[We][f])return this;var b=function(S){return l.call(u||n,S||window.event)},x=b;!et.touchNative&&et.pointer&&o.indexOf("touch")===0?b=zg(n,o,b):et.touch&&o==="dblclick"?b=Wg(n,b):"addEventListener"in n?o==="touchstart"||o==="touchmove"||o==="wheel"||o==="mousewheel"?n.addEventListener(qa[o]||o,b,et.passiveEvents?{passive:!1}:!1):o==="mouseenter"||o==="mouseleave"?(b=function(S){S=S||window.event,Ka(n,S)&&x(S)},n.addEventListener(qa[o],b,!1)):n.addEventListener(o,x,!1):n.attachEvent("on"+o,b),n[We]=n[We]||{},n[We][f]=b}function Ga(n,o,l,u,f){f=f||o+h(l)+(u?"_"+h(u):"");var b=n[We]&&n[We][f];if(!b)return this;!et.touchNative&&et.pointer&&o.indexOf("touch")===0?jg(n,o,b):et.touch&&o==="dblclick"?Gg(n,b):"removeEventListener"in n?n.removeEventListener(qa[o]||o,b,!1):n.detachEvent("on"+o,b),n[We][f]=null}function Zi(n){return n.stopPropagation?n.stopPropagation():n.originalEvent?n.originalEvent._stopped=!0:n.cancelBubble=!0,this}function Ya(n){return Wa(n,"wheel",Zi),this}function er(n){return pt(n,"mousedown touchstart dblclick contextmenu",Zi),n._leaflet_disable_click=!0,this}function ne(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,this}function Ui(n){return ne(n),Zi(n),this}function xc(n){if(n.composedPath)return n.composedPath();for(var o=[],l=n.target;l;)o.push(l),l=l.parentNode;return o}function wc(n,o){if(!o)return new q(n.clientX,n.clientY);var l=$a(o),u=l.boundingClientRect;return new q((n.clientX-u.left)/l.x-o.clientLeft,(n.clientY-u.top)/l.y-o.clientTop)}var Xg=et.linux&&et.chrome?window.devicePixelRatio:et.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Ec(n){return et.edge?n.wheelDeltaY/2:n.deltaY&&n.deltaMode===0?-n.deltaY/Xg:n.deltaY&&n.deltaMode===1?-n.deltaY*20:n.deltaY&&n.deltaMode===2?-n.deltaY*60:n.deltaX||n.deltaZ?0:n.wheelDelta?(n.wheelDeltaY||n.wheelDelta)/2:n.detail&&Math.abs(n.detail)<32765?-n.detail*20:n.detail?n.detail/-32765*60:0}function Ka(n,o){var l=o.relatedTarget;if(!l)return!0;try{for(;l&&l!==n;)l=l.parentNode}catch{return!1}return l!==n}var Jg={__proto__:null,on:pt,off:Rt,stopPropagation:Zi,disableScrollPropagation:Ya,disableClickPropagation:er,preventDefault:ne,stop:Ui,getPropagationPath:xc,getMousePosition:wc,getWheelDelta:Ec,isExternalTarget:Ka,addListener:pt,removeListener:Rt},Tc=Q.extend({run:function(n,o,l,u){this.stop(),this._el=n,this._inProgress=!0,this._duration=l||.25,this._easeOutPower=1/Math.max(u||.5,.2),this._startPos=Vi(n),this._offset=o.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=B(this._animate,this),this._step()},_step:function(n){var o=+new Date-this._startTime,l=this._duration*1e3;o<l?this._runFrame(this._easeOut(o/l),n):(this._runFrame(1),this._complete())},_runFrame:function(n,o){var l=this._startPos.add(this._offset.multiplyBy(n));o&&l._round(),Wt(this._el,l),this.fire("step")},_complete:function(){$(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(n){return 1-Math.pow(1-n,this._easeOutPower)}}),Et=Q.extend({options:{crs:hn,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(n,o){o=k(this,o),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(n),this._initLayout(),this._onResize=c(this._onResize,this),this._initEvents(),o.maxBounds&&this.setMaxBounds(o.maxBounds),o.zoom!==void 0&&(this._zoom=this._limitZoom(o.zoom)),o.center&&o.zoom!==void 0&&this.setView(kt(o.center),o.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Kn&&et.any3d&&!et.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),pt(this._proxy,_c,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(n,o,l){if(o=o===void 0?this._zoom:this._limitZoom(o),n=this._limitCenter(kt(n),o,this.options.maxBounds),l=l||{},this._stop(),this._loaded&&!l.reset&&l!==!0){l.animate!==void 0&&(l.zoom=a({animate:l.animate},l.zoom),l.pan=a({animate:l.animate,duration:l.duration},l.pan));var u=this._zoom!==o?this._tryAnimatedZoom&&this._tryAnimatedZoom(n,o,l.zoom):this._tryAnimatedPan(n,l.pan);if(u)return clearTimeout(this._sizeTimer),this}return this._resetView(n,o,l.pan&&l.pan.noMoveStart),this},setZoom:function(n,o){return this._loaded?this.setView(this.getCenter(),n,{zoom:o}):(this._zoom=n,this)},zoomIn:function(n,o){return n=n||(et.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+n,o)},zoomOut:function(n,o){return n=n||(et.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-n,o)},setZoomAround:function(n,o,l){var u=this.getZoomScale(o),f=this.getSize().divideBy(2),b=n instanceof q?n:this.latLngToContainerPoint(n),x=b.subtract(f).multiplyBy(1-1/u),S=this.containerPointToLatLng(f.add(x));return this.setView(S,o,{zoom:l})},_getBoundsCenterZoom:function(n,o){o=o||{},n=n.getBounds?n.getBounds():Ot(n);var l=X(o.paddingTopLeft||o.padding||[0,0]),u=X(o.paddingBottomRight||o.padding||[0,0]),f=this.getBoundsZoom(n,!1,l.add(u));if(f=typeof o.maxZoom=="number"?Math.min(o.maxZoom,f):f,f===1/0)return{center:n.getCenter(),zoom:f};var b=u.subtract(l).divideBy(2),x=this.project(n.getSouthWest(),f),S=this.project(n.getNorthEast(),f),I=this.unproject(x.add(S).divideBy(2).add(b),f);return{center:I,zoom:f}},fitBounds:function(n,o){if(n=Ot(n),!n.isValid())throw new Error("Bounds are not valid.");var l=this._getBoundsCenterZoom(n,o);return this.setView(l.center,l.zoom,o)},fitWorld:function(n){return this.fitBounds([[-90,-180],[90,180]],n)},panTo:function(n,o){return this.setView(n,this._zoom,{pan:o})},panBy:function(n,o){if(n=X(n).round(),o=o||{},!n.x&&!n.y)return this.fire("moveend");if(o.animate!==!0&&!this.getSize().contains(n))return this._resetView(this.unproject(this.project(this.getCenter()).add(n)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Tc,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),o.noMoveStart||this.fire("movestart"),o.animate!==!1){vt(this._mapPane,"leaflet-pan-anim");var l=this._getMapPanePos().subtract(n).round();this._panAnim.run(this._mapPane,l,o.duration||.25,o.easeLinearity)}else this._rawPanBy(n),this.fire("move").fire("moveend");return this},flyTo:function(n,o,l){if(l=l||{},l.animate===!1||!et.any3d)return this.setView(n,o,l);this._stop();var u=this.project(this.getCenter()),f=this.project(n),b=this.getSize(),x=this._zoom;n=kt(n),o=o===void 0?x:o;var S=Math.max(b.x,b.y),I=S*this.getZoomScale(x,o),M=f.distanceTo(u)||1,G=1.42,rt=G*G;function bt(Gt){var oo=Gt?-1:1,jv=Gt?I:S,Vv=I*I-S*S+oo*rt*rt*M*M,Zv=2*jv*rt*M,ss=Vv/Zv,ou=Math.sqrt(ss*ss+1)-ss,Uv=ou<1e-9?-18:Math.log(ou);return Uv}function ce(Gt){return(Math.exp(Gt)-Math.exp(-Gt))/2}function te(Gt){return(Math.exp(Gt)+Math.exp(-Gt))/2}function Oe(Gt){return ce(Gt)/te(Gt)}var pe=bt(0);function xn(Gt){return S*(te(pe)/te(pe+G*Gt))}function Fv(Gt){return S*(te(pe)*Oe(pe+G*Gt)-ce(pe))/rt}function Rv(Gt){return 1-Math.pow(1-Gt,1.5)}var Bv=Date.now(),nu=(bt(1)-pe)/G,zv=l.duration?1e3*l.duration:1e3*nu*.8;function ru(){var Gt=(Date.now()-Bv)/zv,oo=Rv(Gt)*nu;Gt<=1?(this._flyToFrame=B(ru,this),this._move(this.unproject(u.add(f.subtract(u).multiplyBy(Fv(oo)/M)),x),this.getScaleZoom(S/xn(oo),x),{flyTo:!0})):this._move(n,o)._moveEnd(!0)}return this._moveStart(!0,l.noMoveStart),ru.call(this),this},flyToBounds:function(n,o){var l=this._getBoundsCenterZoom(n,o);return this.flyTo(l.center,l.zoom,o)},setMaxBounds:function(n){return n=Ot(n),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),n.isValid()?(this.options.maxBounds=n,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(n){var o=this.options.minZoom;return this.options.minZoom=n,this._loaded&&o!==n&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(n):this},setMaxZoom:function(n){var o=this.options.maxZoom;return this.options.maxZoom=n,this._loaded&&o!==n&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(n):this},panInsideBounds:function(n,o){this._enforcingBounds=!0;var l=this.getCenter(),u=this._limitCenter(l,this._zoom,Ot(n));return l.equals(u)||this.panTo(u,o),this._enforcingBounds=!1,this},panInside:function(n,o){o=o||{};var l=X(o.paddingTopLeft||o.padding||[0,0]),u=X(o.paddingBottomRight||o.padding||[0,0]),f=this.project(this.getCenter()),b=this.project(n),x=this.getPixelBounds(),S=Pt([x.min.add(l),x.max.subtract(u)]),I=S.getSize();if(!S.contains(b)){this._enforcingBounds=!0;var M=b.subtract(S.getCenter()),G=S.extend(b).getSize().subtract(I);f.x+=M.x<0?-G.x:G.x,f.y+=M.y<0?-G.y:G.y,this.panTo(this.unproject(f),o),this._enforcingBounds=!1}return this},invalidateSize:function(n){if(!this._loaded)return this;n=a({animate:!1,pan:!0},n===!0?{animate:!0}:n);var o=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var l=this.getSize(),u=o.divideBy(2).round(),f=l.divideBy(2).round(),b=u.subtract(f);return!b.x&&!b.y?this:(n.animate&&n.pan?this.panBy(b):(n.pan&&this._rawPanBy(b),this.fire("move"),n.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(c(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:o,newSize:l}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(n){if(n=this._locateOptions=a({timeout:1e4,watch:!1},n),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var o=c(this._handleGeolocationResponse,this),l=c(this._handleGeolocationError,this);return n.watch?this._locationWatchId=navigator.geolocation.watchPosition(o,l,n):navigator.geolocation.getCurrentPosition(o,l,n),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(n){if(this._container._leaflet_id){var o=n.code,l=n.message||(o===1?"permission denied":o===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:o,message:"Geolocation error: "+l+"."})}},_handleGeolocationResponse:function(n){if(this._container._leaflet_id){var o=n.coords.latitude,l=n.coords.longitude,u=new St(o,l),f=u.toBounds(n.coords.accuracy*2),b=this._locateOptions;if(b.setView){var x=this.getBoundsZoom(f);this.setView(u,b.maxZoom?Math.min(x,b.maxZoom):x)}var S={latlng:u,bounds:f,timestamp:n.timestamp};for(var I in n.coords)typeof n.coords[I]=="number"&&(S[I]=n.coords[I]);this.fire("locationfound",S)}},addHandler:function(n,o){if(!o)return this;var l=this[n]=new o(this);return this._handlers.push(l),this.options[n]&&l.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),zt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&($(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var n;for(n in this._layers)this._layers[n].remove();for(n in this._panes)zt(this._panes[n]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(n,o){var l="leaflet-pane"+(n?" leaflet-"+n.replace("Pane","")+"-pane":""),u=At("div",l,o||this._mapPane);return n&&(this._panes[n]=u),u},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var n=this.getPixelBounds(),o=this.unproject(n.getBottomLeft()),l=this.unproject(n.getTopRight());return new Ft(o,l)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(n,o,l){n=Ot(n),l=X(l||[0,0]);var u=this.getZoom()||0,f=this.getMinZoom(),b=this.getMaxZoom(),x=n.getNorthWest(),S=n.getSouthEast(),I=this.getSize().subtract(l),M=Pt(this.project(S,u),this.project(x,u)).getSize(),G=et.any3d?this.options.zoomSnap:1,rt=I.x/M.x,bt=I.y/M.y,ce=o?Math.max(rt,bt):Math.min(rt,bt);return u=this.getScaleZoom(ce,u),G&&(u=Math.round(u/(G/100))*(G/100),u=o?Math.ceil(u/G)*G:Math.floor(u/G)*G),Math.max(f,Math.min(b,u))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(n,o){var l=this._getTopLeftPoint(n,o);return new wt(l,l.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(n){return this.options.crs.getProjectedBounds(n===void 0?this.getZoom():n)},getPane:function(n){return typeof n=="string"?this._panes[n]:n},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(n,o){var l=this.options.crs;return o=o===void 0?this._zoom:o,l.scale(n)/l.scale(o)},getScaleZoom:function(n,o){var l=this.options.crs;o=o===void 0?this._zoom:o;var u=l.zoom(n*l.scale(o));return isNaN(u)?1/0:u},project:function(n,o){return o=o===void 0?this._zoom:o,this.options.crs.latLngToPoint(kt(n),o)},unproject:function(n,o){return o=o===void 0?this._zoom:o,this.options.crs.pointToLatLng(X(n),o)},layerPointToLatLng:function(n){var o=X(n).add(this.getPixelOrigin());return this.unproject(o)},latLngToLayerPoint:function(n){var o=this.project(kt(n))._round();return o._subtract(this.getPixelOrigin())},wrapLatLng:function(n){return this.options.crs.wrapLatLng(kt(n))},wrapLatLngBounds:function(n){return this.options.crs.wrapLatLngBounds(Ot(n))},distance:function(n,o){return this.options.crs.distance(kt(n),kt(o))},containerPointToLayerPoint:function(n){return X(n).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(n){return X(n).add(this._getMapPanePos())},containerPointToLatLng:function(n){var o=this.containerPointToLayerPoint(X(n));return this.layerPointToLatLng(o)},latLngToContainerPoint:function(n){return this.layerPointToContainerPoint(this.latLngToLayerPoint(kt(n)))},mouseEventToContainerPoint:function(n){return wc(n,this._container)},mouseEventToLayerPoint:function(n){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(n))},mouseEventToLatLng:function(n){return this.layerPointToLatLng(this.mouseEventToLayerPoint(n))},_initContainer:function(n){var o=this._container=bc(n);if(o){if(o._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");pt(o,"scroll",this._onScroll,this),this._containerId=h(o)},_initLayout:function(){var n=this._container;this._fadeAnimated=this.options.fadeAnimation&&et.any3d,vt(n,"leaflet-container"+(et.touch?" leaflet-touch":"")+(et.retina?" leaflet-retina":"")+(et.ielt9?" leaflet-oldie":"")+(et.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var o=Xn(n,"position");o!=="absolute"&&o!=="relative"&&o!=="fixed"&&o!=="sticky"&&(n.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var n=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Wt(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(vt(n.markerPane,"leaflet-zoom-hide"),vt(n.shadowPane,"leaflet-zoom-hide"))},_resetView:function(n,o,l){Wt(this._mapPane,new q(0,0));var u=!this._loaded;this._loaded=!0,o=this._limitZoom(o),this.fire("viewprereset");var f=this._zoom!==o;this._moveStart(f,l)._move(n,o)._moveEnd(f),this.fire("viewreset"),u&&this.fire("load")},_moveStart:function(n,o){return n&&this.fire("zoomstart"),o||this.fire("movestart"),this},_move:function(n,o,l,u){o===void 0&&(o=this._zoom);var f=this._zoom!==o;return this._zoom=o,this._lastCenter=n,this._pixelOrigin=this._getNewPixelOrigin(n),u?l&&l.pinch&&this.fire("zoom",l):((f||l&&l.pinch)&&this.fire("zoom",l),this.fire("move",l)),this},_moveEnd:function(n){return n&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return $(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(n){Wt(this._mapPane,this._getMapPanePos().subtract(n))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(n){this._targets={},this._targets[h(this._container)]=this;var o=n?Rt:pt;o(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&o(window,"resize",this._onResize,this),et.any3d&&this.options.transform3DLimit&&(n?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){$(this._resizeRequest),this._resizeRequest=B(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var n=this._getMapPanePos();Math.max(Math.abs(n.x),Math.abs(n.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(n,o){for(var l=[],u,f=o==="mouseout"||o==="mouseover",b=n.target||n.srcElement,x=!1;b;){if(u=this._targets[h(b)],u&&(o==="click"||o==="preclick")&&this._draggableMoved(u)){x=!0;break}if(u&&u.listens(o,!0)&&(f&&!Ka(b,n)||(l.push(u),f))||b===this._container)break;b=b.parentNode}return!l.length&&!x&&!f&&this.listens(o,!0)&&(l=[this]),l},_isClickDisabled:function(n){for(;n&&n!==this._container;){if(n._leaflet_disable_click)return!0;n=n.parentNode}},_handleDOMEvent:function(n){var o=n.target||n.srcElement;if(!(!this._loaded||o._leaflet_disable_events||n.type==="click"&&this._isClickDisabled(o))){var l=n.type;l==="mousedown"&&Ha(o),this._fireDOMEvent(n,l)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(n,o,l){if(n.type==="click"){var u=a({},n);u.type="preclick",this._fireDOMEvent(u,u.type,l)}var f=this._findEventTargets(n,o);if(l){for(var b=[],x=0;x<l.length;x++)l[x].listens(o,!0)&&b.push(l[x]);f=b.concat(f)}if(f.length){o==="contextmenu"&&ne(n);var S=f[0],I={originalEvent:n};if(n.type!=="keypress"&&n.type!=="keydown"&&n.type!=="keyup"){var M=S.getLatLng&&(!S._radius||S._radius<=10);I.containerPoint=M?this.latLngToContainerPoint(S.getLatLng()):this.mouseEventToContainerPoint(n),I.layerPoint=this.containerPointToLayerPoint(I.containerPoint),I.latlng=M?S.getLatLng():this.layerPointToLatLng(I.layerPoint)}for(x=0;x<f.length;x++)if(f[x].fire(o,I,!0),I.originalEvent._stopped||f[x].options.bubblingMouseEvents===!1&&j(this._mouseEvents,o)!==-1)return}},_draggableMoved:function(n){return n=n.dragging&&n.dragging.enabled()?n:this,n.dragging&&n.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var n=0,o=this._handlers.length;n<o;n++)this._handlers[n].disable()},whenReady:function(n,o){return this._loaded?n.call(o||this,{target:this}):this.on("load",n,o),this},_getMapPanePos:function(){return Vi(this._mapPane)||new q(0,0)},_moved:function(){var n=this._getMapPanePos();return n&&!n.equals([0,0])},_getTopLeftPoint:function(n,o){var l=n&&o!==void 0?this._getNewPixelOrigin(n,o):this.getPixelOrigin();return l.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(n,o){var l=this.getSize()._divideBy(2);return this.project(n,o)._subtract(l)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(n,o,l){var u=this._getNewPixelOrigin(l,o);return this.project(n,o)._subtract(u)},_latLngBoundsToNewLayerBounds:function(n,o,l){var u=this._getNewPixelOrigin(l,o);return Pt([this.project(n.getSouthWest(),o)._subtract(u),this.project(n.getNorthWest(),o)._subtract(u),this.project(n.getSouthEast(),o)._subtract(u),this.project(n.getNorthEast(),o)._subtract(u)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(n){return this.latLngToLayerPoint(n).subtract(this._getCenterLayerPoint())},_limitCenter:function(n,o,l){if(!l)return n;var u=this.project(n,o),f=this.getSize().divideBy(2),b=new wt(u.subtract(f),u.add(f)),x=this._getBoundsOffset(b,l,o);return Math.abs(x.x)<=1&&Math.abs(x.y)<=1?n:this.unproject(u.add(x),o)},_limitOffset:function(n,o){if(!o)return n;var l=this.getPixelBounds(),u=new wt(l.min.add(n),l.max.add(n));return n.add(this._getBoundsOffset(u,o))},_getBoundsOffset:function(n,o,l){var u=Pt(this.project(o.getNorthEast(),l),this.project(o.getSouthWest(),l)),f=u.min.subtract(n.min),b=u.max.subtract(n.max),x=this._rebound(f.x,-b.x),S=this._rebound(f.y,-b.y);return new q(x,S)},_rebound:function(n,o){return n+o>0?Math.round(n-o)/2:Math.max(0,Math.ceil(n))-Math.max(0,Math.floor(o))},_limitZoom:function(n){var o=this.getMinZoom(),l=this.getMaxZoom(),u=et.any3d?this.options.zoomSnap:1;return u&&(n=Math.round(n/u)*u),Math.max(o,Math.min(l,n))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){$t(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(n,o){var l=this._getCenterOffset(n)._trunc();return(o&&o.animate)!==!0&&!this.getSize().contains(l)?!1:(this.panBy(l,o),!0)},_createAnimProxy:function(){var n=this._proxy=At("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(n),this.on("zoomanim",function(o){var l=Ra,u=this._proxy.style[l];ji(this._proxy,this.project(o.center,o.zoom),this.getZoomScale(o.zoom,1)),u===this._proxy.style[l]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){zt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var n=this.getCenter(),o=this.getZoom();ji(this._proxy,this.project(n,o),this.getZoomScale(o,1))},_catchTransitionEnd:function(n){this._animatingZoom&&n.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(n,o,l){if(this._animatingZoom)return!0;if(l=l||{},!this._zoomAnimated||l.animate===!1||this._nothingToAnimate()||Math.abs(o-this._zoom)>this.options.zoomAnimationThreshold)return!1;var u=this.getZoomScale(o),f=this._getCenterOffset(n)._divideBy(1-1/u);return l.animate!==!0&&!this.getSize().contains(f)?!1:(B(function(){this._moveStart(!0,l.noMoveStart||!1)._animateZoom(n,o,!0)},this),!0)},_animateZoom:function(n,o,l,u){this._mapPane&&(l&&(this._animatingZoom=!0,this._animateToCenter=n,this._animateToZoom=o,vt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:n,zoom:o,noUpdate:u}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(c(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&$t(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Qg(n,o){return new Et(n,o)}var ze=w.extend({options:{position:"topright"},initialize:function(n){k(this,n)},getPosition:function(){return this.options.position},setPosition:function(n){var o=this._map;return o&&o.removeControl(this),this.options.position=n,o&&o.addControl(this),this},getContainer:function(){return this._container},addTo:function(n){this.remove(),this._map=n;var o=this._container=this.onAdd(n),l=this.getPosition(),u=n._controlCorners[l];return vt(o,"leaflet-control"),l.indexOf("bottom")!==-1?u.insertBefore(o,u.firstChild):u.appendChild(o),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(zt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(n){this._map&&n&&n.screenX>0&&n.screenY>0&&this._map.getContainer().focus()}}),ir=function(n){return new ze(n)};Et.include({addControl:function(n){return n.addTo(this),this},removeControl:function(n){return n.remove(),this},_initControlPos:function(){var n=this._controlCorners={},o="leaflet-",l=this._controlContainer=At("div",o+"control-container",this._container);function u(f,b){var x=o+f+" "+o+b;n[f+b]=At("div",x,l)}u("top","left"),u("top","right"),u("bottom","left"),u("bottom","right")},_clearControlPos:function(){for(var n in this._controlCorners)zt(this._controlCorners[n]);zt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Sc=ze.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(n,o,l,u){return l<u?-1:u<l?1:0}},initialize:function(n,o,l){k(this,l),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var u in n)this._addLayer(n[u],u);for(u in o)this._addLayer(o[u],u,!0)},onAdd:function(n){this._initLayout(),this._update(),this._map=n,n.on("zoomend",this._checkDisabledLayers,this);for(var o=0;o<this._layers.length;o++)this._layers[o].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(n){return ze.prototype.addTo.call(this,n),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var n=0;n<this._layers.length;n++)this._layers[n].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(n,o){return this._addLayer(n,o),this._map?this._update():this},addOverlay:function(n,o){return this._addLayer(n,o,!0),this._map?this._update():this},removeLayer:function(n){n.off("add remove",this._onLayerChange,this);var o=this._getLayer(h(n));return o&&this._layers.splice(this._layers.indexOf(o),1),this._map?this._update():this},expand:function(){vt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var n=this._map.getSize().y-(this._container.offsetTop+50);return n<this._section.clientHeight?(vt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=n+"px"):$t(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return $t(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var n="leaflet-control-layers",o=this._container=At("div",n),l=this.options.collapsed;o.setAttribute("aria-haspopup",!0),er(o),Ya(o);var u=this._section=At("section",n+"-list");l&&(this._map.on("click",this.collapse,this),pt(o,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var f=this._layersLink=At("a",n+"-toggle",o);f.href="#",f.title="Layers",f.setAttribute("role","button"),pt(f,{keydown:function(b){b.keyCode===13&&this._expandSafely()},click:function(b){ne(b),this._expandSafely()}},this),l||this.expand(),this._baseLayersList=At("div",n+"-base",u),this._separator=At("div",n+"-separator",u),this._overlaysList=At("div",n+"-overlays",u),o.appendChild(u)},_getLayer:function(n){for(var o=0;o<this._layers.length;o++)if(this._layers[o]&&h(this._layers[o].layer)===n)return this._layers[o]},_addLayer:function(n,o,l){this._map&&n.on("add remove",this._onLayerChange,this),this._layers.push({layer:n,name:o,overlay:l}),this.options.sortLayers&&this._layers.sort(c(function(u,f){return this.options.sortFunction(u.layer,f.layer,u.name,f.name)},this)),this.options.autoZIndex&&n.setZIndex&&(this._lastZIndex++,n.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ur(this._baseLayersList),Ur(this._overlaysList),this._layerControlInputs=[];var n,o,l,u,f=0;for(l=0;l<this._layers.length;l++)u=this._layers[l],this._addItem(u),o=o||u.overlay,n=n||!u.overlay,f+=u.overlay?0:1;return this.options.hideSingleBase&&(n=n&&f>1,this._baseLayersList.style.display=n?"":"none"),this._separator.style.display=o&&n?"":"none",this},_onLayerChange:function(n){this._handlingClick||this._update();var o=this._getLayer(h(n.target)),l=o.overlay?n.type==="add"?"overlayadd":"overlayremove":n.type==="add"?"baselayerchange":null;l&&this._map.fire(l,o)},_createRadioElement:function(n,o){var l='<input type="radio" class="leaflet-control-layers-selector" name="'+n+'"'+(o?' checked="checked"':"")+"/>",u=document.createElement("div");return u.innerHTML=l,u.firstChild},_addItem:function(n){var o=document.createElement("label"),l=this._map.hasLayer(n.layer),u;n.overlay?(u=document.createElement("input"),u.type="checkbox",u.className="leaflet-control-layers-selector",u.defaultChecked=l):u=this._createRadioElement("leaflet-base-layers_"+h(this),l),this._layerControlInputs.push(u),u.layerId=h(n.layer),pt(u,"click",this._onInputClick,this);var f=document.createElement("span");f.innerHTML=" "+n.name;var b=document.createElement("span");o.appendChild(b),b.appendChild(u),b.appendChild(f);var x=n.overlay?this._overlaysList:this._baseLayersList;return x.appendChild(o),this._checkDisabledLayers(),o},_onInputClick:function(){if(!this._preventClick){var n=this._layerControlInputs,o,l,u=[],f=[];this._handlingClick=!0;for(var b=n.length-1;b>=0;b--)o=n[b],l=this._getLayer(o.layerId).layer,o.checked?u.push(l):o.checked||f.push(l);for(b=0;b<f.length;b++)this._map.hasLayer(f[b])&&this._map.removeLayer(f[b]);for(b=0;b<u.length;b++)this._map.hasLayer(u[b])||this._map.addLayer(u[b]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var n=this._layerControlInputs,o,l,u=this._map.getZoom(),f=n.length-1;f>=0;f--)o=n[f],l=this._getLayer(o.layerId).layer,o.disabled=l.options.minZoom!==void 0&&u<l.options.minZoom||l.options.maxZoom!==void 0&&u>l.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var n=this._section;this._preventClick=!0,pt(n,"click",ne),this.expand();var o=this;setTimeout(function(){Rt(n,"click",ne),o._preventClick=!1})}}),tv=function(n,o,l){return new Sc(n,o,l)},Xa=ze.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(n){var o="leaflet-control-zoom",l=At("div",o+" leaflet-bar"),u=this.options;return this._zoomInButton=this._createButton(u.zoomInText,u.zoomInTitle,o+"-in",l,this._zoomIn),this._zoomOutButton=this._createButton(u.zoomOutText,u.zoomOutTitle,o+"-out",l,this._zoomOut),this._updateDisabled(),n.on("zoomend zoomlevelschange",this._updateDisabled,this),l},onRemove:function(n){n.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(n){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(n.shiftKey?3:1))},_zoomOut:function(n){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(n.shiftKey?3:1))},_createButton:function(n,o,l,u,f){var b=At("a",l,u);return b.innerHTML=n,b.href="#",b.title=o,b.setAttribute("role","button"),b.setAttribute("aria-label",o),er(b),pt(b,"click",Ui),pt(b,"click",f,this),pt(b,"click",this._refocusOnMap,this),b},_updateDisabled:function(){var n=this._map,o="leaflet-disabled";$t(this._zoomInButton,o),$t(this._zoomOutButton,o),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||n._zoom===n.getMinZoom())&&(vt(this._zoomOutButton,o),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||n._zoom===n.getMaxZoom())&&(vt(this._zoomInButton,o),this._zoomInButton.setAttribute("aria-disabled","true"))}});Et.mergeOptions({zoomControl:!0}),Et.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Xa,this.addControl(this.zoomControl))});var ev=function(n){return new Xa(n)},Ac=ze.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(n){var o="leaflet-control-scale",l=At("div",o),u=this.options;return this._addScales(u,o+"-line",l),n.on(u.updateWhenIdle?"moveend":"move",this._update,this),n.whenReady(this._update,this),l},onRemove:function(n){n.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(n,o,l){n.metric&&(this._mScale=At("div",o,l)),n.imperial&&(this._iScale=At("div",o,l))},_update:function(){var n=this._map,o=n.getSize().y/2,l=n.distance(n.containerPointToLatLng([0,o]),n.containerPointToLatLng([this.options.maxWidth,o]));this._updateScales(l)},_updateScales:function(n){this.options.metric&&n&&this._updateMetric(n),this.options.imperial&&n&&this._updateImperial(n)},_updateMetric:function(n){var o=this._getRoundNum(n),l=o<1e3?o+" m":o/1e3+" km";this._updateScale(this._mScale,l,o/n)},_updateImperial:function(n){var o=n*3.2808399,l,u,f;o>5280?(l=o/5280,u=this._getRoundNum(l),this._updateScale(this._iScale,u+" mi",u/l)):(f=this._getRoundNum(o),this._updateScale(this._iScale,f+" ft",f/o))},_updateScale:function(n,o,l){n.style.width=Math.round(this.options.maxWidth*l)+"px",n.innerHTML=o},_getRoundNum:function(n){var o=Math.pow(10,(Math.floor(n)+"").length-1),l=n/o;return l=l>=10?10:l>=5?5:l>=3?3:l>=2?2:1,o*l}}),iv=function(n){return new Ac(n)},nv='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',Ja=ze.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(et.inlineSvg?nv+" ":"")+"Leaflet</a>"},initialize:function(n){k(this,n),this._attributions={}},onAdd:function(n){n.attributionControl=this,this._container=At("div","leaflet-control-attribution"),er(this._container);for(var o in n._layers)n._layers[o].getAttribution&&this.addAttribution(n._layers[o].getAttribution());return this._update(),n.on("layeradd",this._addAttribution,this),this._container},onRemove:function(n){n.off("layeradd",this._addAttribution,this)},_addAttribution:function(n){n.layer.getAttribution&&(this.addAttribution(n.layer.getAttribution()),n.layer.once("remove",function(){this.removeAttribution(n.layer.getAttribution())},this))},setPrefix:function(n){return this.options.prefix=n,this._update(),this},addAttribution:function(n){return n?(this._attributions[n]||(this._attributions[n]=0),this._attributions[n]++,this._update(),this):this},removeAttribution:function(n){return n?(this._attributions[n]&&(this._attributions[n]--,this._update()),this):this},_update:function(){if(this._map){var n=[];for(var o in this._attributions)this._attributions[o]&&n.push(o);var l=[];this.options.prefix&&l.push(this.options.prefix),n.length&&l.push(n.join(", ")),this._container.innerHTML=l.join(' <span aria-hidden="true">|</span> ')}}});Et.mergeOptions({attributionControl:!0}),Et.addInitHook(function(){this.options.attributionControl&&new Ja().addTo(this)});var rv=function(n){return new Ja(n)};ze.Layers=Sc,ze.Zoom=Xa,ze.Scale=Ac,ze.Attribution=Ja,ir.layers=tv,ir.zoom=ev,ir.scale=iv,ir.attribution=rv;var Ge=w.extend({initialize:function(n){this._map=n},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ge.addTo=function(n,o){return n.addHandler(o,this),this};var ov={Events:F},Cc=et.touch?"touchstart mousedown":"mousedown",xi=Q.extend({options:{clickTolerance:3},initialize:function(n,o,l,u){k(this,u),this._element=n,this._dragStartTarget=o||n,this._preventOutline=l},enable:function(){this._enabled||(pt(this._dragStartTarget,Cc,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(xi._dragging===this&&this.finishDrag(!0),Rt(this._dragStartTarget,Cc,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(n){if(this._enabled&&(this._moved=!1,!Ba(this._element,"leaflet-zoom-anim"))){if(n.touches&&n.touches.length!==1){xi._dragging===this&&this.finishDrag();return}if(!(xi._dragging||n.shiftKey||n.which!==1&&n.button!==1&&!n.touches)&&(xi._dragging=this,this._preventOutline&&Ha(this._element),Va(),Jn(),!this._moving)){this.fire("down");var o=n.touches?n.touches[0]:n,l=kc(this._element);this._startPoint=new q(o.clientX,o.clientY),this._startPos=Vi(this._element),this._parentScale=$a(l);var u=n.type==="mousedown";pt(document,u?"mousemove":"touchmove",this._onMove,this),pt(document,u?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(n){if(this._enabled){if(n.touches&&n.touches.length>1){this._moved=!0;return}var o=n.touches&&n.touches.length===1?n.touches[0]:n,l=new q(o.clientX,o.clientY)._subtract(this._startPoint);!l.x&&!l.y||Math.abs(l.x)+Math.abs(l.y)<this.options.clickTolerance||(l.x/=this._parentScale.x,l.y/=this._parentScale.y,ne(n),this._moved||(this.fire("dragstart"),this._moved=!0,vt(document.body,"leaflet-dragging"),this._lastTarget=n.target||n.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),vt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(l),this._moving=!0,this._lastEvent=n,this._updatePosition())}},_updatePosition:function(){var n={originalEvent:this._lastEvent};this.fire("predrag",n),Wt(this._element,this._newPos),this.fire("drag",n)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(n){$t(document.body,"leaflet-dragging"),this._lastTarget&&($t(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Rt(document,"mousemove touchmove",this._onMove,this),Rt(document,"mouseup touchend touchcancel",this._onUp,this),Za(),Qn();var o=this._moved&&this._moving;this._moving=!1,xi._dragging=!1,o&&this.fire("dragend",{noInertia:n,distance:this._newPos.distanceTo(this._startPos)})}});function Ic(n,o,l){var u,f=[1,4,2,8],b,x,S,I,M,G,rt,bt;for(b=0,G=n.length;b<G;b++)n[b]._code=Hi(n[b],o);for(S=0;S<4;S++){for(rt=f[S],u=[],b=0,G=n.length,x=G-1;b<G;x=b++)I=n[b],M=n[x],I._code&rt?M._code&rt||(bt=Gr(M,I,rt,o,l),bt._code=Hi(bt,o),u.push(bt)):(M._code&rt&&(bt=Gr(M,I,rt,o,l),bt._code=Hi(bt,o),u.push(bt)),u.push(I));n=u}return n}function Pc(n,o){var l,u,f,b,x,S,I,M,G;if(!n||n.length===0)throw new Error("latlngs not passed");Pe(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);var rt=kt([0,0]),bt=Ot(n),ce=bt.getNorthWest().distanceTo(bt.getSouthWest())*bt.getNorthEast().distanceTo(bt.getNorthWest());ce<1700&&(rt=Qa(n));var te=n.length,Oe=[];for(l=0;l<te;l++){var pe=kt(n[l]);Oe.push(o.project(kt([pe.lat-rt.lat,pe.lng-rt.lng])))}for(S=I=M=0,l=0,u=te-1;l<te;u=l++)f=Oe[l],b=Oe[u],x=f.y*b.x-b.y*f.x,I+=(f.x+b.x)*x,M+=(f.y+b.y)*x,S+=x*3;S===0?G=Oe[0]:G=[I/S,M/S];var xn=o.unproject(X(G));return kt([xn.lat+rt.lat,xn.lng+rt.lng])}function Qa(n){for(var o=0,l=0,u=0,f=0;f<n.length;f++){var b=kt(n[f]);o+=b.lat,l+=b.lng,u++}return kt([o/u,l/u])}var av={__proto__:null,clipPolygon:Ic,polygonCenter:Pc,centroid:Qa};function Oc(n,o){if(!o||!n.length)return n.slice();var l=o*o;return n=cv(n,l),n=lv(n,l),n}function Lc(n,o,l){return Math.sqrt(nr(n,o,l,!0))}function sv(n,o,l){return nr(n,o,l)}function lv(n,o){var l=n.length,u=typeof Uint8Array<"u"?Uint8Array:Array,f=new u(l);f[0]=f[l-1]=1,ts(n,f,o,0,l-1);var b,x=[];for(b=0;b<l;b++)f[b]&&x.push(n[b]);return x}function ts(n,o,l,u,f){var b=0,x,S,I;for(S=u+1;S<=f-1;S++)I=nr(n[S],n[u],n[f],!0),I>b&&(x=S,b=I);b>l&&(o[x]=1,ts(n,o,l,u,x),ts(n,o,l,x,f))}function cv(n,o){for(var l=[n[0]],u=1,f=0,b=n.length;u<b;u++)uv(n[u],n[f])>o&&(l.push(n[u]),f=u);return f<b-1&&l.push(n[b-1]),l}var Dc;function Mc(n,o,l,u,f){var b=u?Dc:Hi(n,l),x=Hi(o,l),S,I,M;for(Dc=x;;){if(!(b|x))return[n,o];if(b&x)return!1;S=b||x,I=Gr(n,o,S,l,f),M=Hi(I,l),S===b?(n=I,b=M):(o=I,x=M)}}function Gr(n,o,l,u,f){var b=o.x-n.x,x=o.y-n.y,S=u.min,I=u.max,M,G;return l&8?(M=n.x+b*(I.y-n.y)/x,G=I.y):l&4?(M=n.x+b*(S.y-n.y)/x,G=S.y):l&2?(M=I.x,G=n.y+x*(I.x-n.x)/b):l&1&&(M=S.x,G=n.y+x*(S.x-n.x)/b),new q(M,G,f)}function Hi(n,o){var l=0;return n.x<o.min.x?l|=1:n.x>o.max.x&&(l|=2),n.y<o.min.y?l|=4:n.y>o.max.y&&(l|=8),l}function uv(n,o){var l=o.x-n.x,u=o.y-n.y;return l*l+u*u}function nr(n,o,l,u){var f=o.x,b=o.y,x=l.x-f,S=l.y-b,I=x*x+S*S,M;return I>0&&(M=((n.x-f)*x+(n.y-b)*S)/I,M>1?(f=l.x,b=l.y):M>0&&(f+=x*M,b+=S*M)),x=n.x-f,S=n.y-b,u?x*x+S*S:new q(f,b)}function Pe(n){return!O(n[0])||typeof n[0][0]!="object"&&typeof n[0][0]<"u"}function Nc(n){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Pe(n)}function Fc(n,o){var l,u,f,b,x,S,I,M;if(!n||n.length===0)throw new Error("latlngs not passed");Pe(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);var G=kt([0,0]),rt=Ot(n),bt=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());bt<1700&&(G=Qa(n));var ce=n.length,te=[];for(l=0;l<ce;l++){var Oe=kt(n[l]);te.push(o.project(kt([Oe.lat-G.lat,Oe.lng-G.lng])))}for(l=0,u=0;l<ce-1;l++)u+=te[l].distanceTo(te[l+1])/2;if(u===0)M=te[0];else for(l=0,b=0;l<ce-1;l++)if(x=te[l],S=te[l+1],f=x.distanceTo(S),b+=f,b>u){I=(b-u)/f,M=[S.x-I*(S.x-x.x),S.y-I*(S.y-x.y)];break}var pe=o.unproject(X(M));return kt([pe.lat+G.lat,pe.lng+G.lng])}var dv={__proto__:null,simplify:Oc,pointToSegmentDistance:Lc,closestPointOnSegment:sv,clipSegment:Mc,_getEdgeIntersection:Gr,_getBitCode:Hi,_sqClosestPointOnSegment:nr,isFlat:Pe,_flat:Nc,polylineCenter:Fc},es={project:function(n){return new q(n.lng,n.lat)},unproject:function(n){return new St(n.y,n.x)},bounds:new wt([-180,-90],[180,90])},is={R:6378137,R_MINOR:6356752314245179e-9,bounds:new wt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(n){var o=Math.PI/180,l=this.R,u=n.lat*o,f=this.R_MINOR/l,b=Math.sqrt(1-f*f),x=b*Math.sin(u),S=Math.tan(Math.PI/4-u/2)/Math.pow((1-x)/(1+x),b/2);return u=-l*Math.log(Math.max(S,1e-10)),new q(n.lng*o*l,u)},unproject:function(n){for(var o=180/Math.PI,l=this.R,u=this.R_MINOR/l,f=Math.sqrt(1-u*u),b=Math.exp(-n.y/l),x=Math.PI/2-2*Math.atan(b),S=0,I=.1,M;S<15&&Math.abs(I)>1e-7;S++)M=f*Math.sin(x),M=Math.pow((1-M)/(1+M),f/2),I=Math.PI/2-2*Math.atan(b*M)-x,x+=I;return new St(x*o,n.x*o/l)}},hv={__proto__:null,LonLat:es,Mercator:is,SphericalMercator:dn},pv=a({},$e,{code:"EPSG:3395",projection:is,transformation:function(){var n=.5/(Math.PI*is.R);return Bi(n,.5,-n,.5)}()}),Rc=a({},$e,{code:"EPSG:4326",projection:es,transformation:Bi(1/180,1,-1/180,.5)}),fv=a({},Ce,{projection:es,transformation:Bi(1,0,-1,0),scale:function(n){return Math.pow(2,n)},zoom:function(n){return Math.log(n)/Math.LN2},distance:function(n,o){var l=o.lng-n.lng,u=o.lat-n.lat;return Math.sqrt(l*l+u*u)},infinite:!0});Ce.Earth=$e,Ce.EPSG3395=pv,Ce.EPSG3857=hn,Ce.EPSG900913=ct,Ce.EPSG4326=Rc,Ce.Simple=fv;var je=Q.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(n){return n.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(n){return n&&n.removeLayer(this),this},getPane:function(n){return this._map.getPane(n?this.options[n]||n:this.options.pane)},addInteractiveTarget:function(n){return this._map._targets[h(n)]=this,this},removeInteractiveTarget:function(n){return delete this._map._targets[h(n)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(n){var o=n.target;if(o.hasLayer(this)){if(this._map=o,this._zoomAnimated=o._zoomAnimated,this.getEvents){var l=this.getEvents();o.on(l,this),this.once("remove",function(){o.off(l,this)},this)}this.onAdd(o),this.fire("add"),o.fire("layeradd",{layer:this})}}});Et.include({addLayer:function(n){if(!n._layerAdd)throw new Error("The provided object is not a Layer.");var o=h(n);return this._layers[o]?this:(this._layers[o]=n,n._mapToAdd=this,n.beforeAdd&&n.beforeAdd(this),this.whenReady(n._layerAdd,n),this)},removeLayer:function(n){var o=h(n);return this._layers[o]?(this._loaded&&n.onRemove(this),delete this._layers[o],this._loaded&&(this.fire("layerremove",{layer:n}),n.fire("remove")),n._map=n._mapToAdd=null,this):this},hasLayer:function(n){return h(n)in this._layers},eachLayer:function(n,o){for(var l in this._layers)n.call(o,this._layers[l]);return this},_addLayers:function(n){n=n?O(n)?n:[n]:[];for(var o=0,l=n.length;o<l;o++)this.addLayer(n[o])},_addZoomLimit:function(n){(!isNaN(n.options.maxZoom)||!isNaN(n.options.minZoom))&&(this._zoomBoundLayers[h(n)]=n,this._updateZoomLevels())},_removeZoomLimit:function(n){var o=h(n);this._zoomBoundLayers[o]&&(delete this._zoomBoundLayers[o],this._updateZoomLevels())},_updateZoomLevels:function(){var n=1/0,o=-1/0,l=this._getZoomSpan();for(var u in this._zoomBoundLayers){var f=this._zoomBoundLayers[u].options;n=f.minZoom===void 0?n:Math.min(n,f.minZoom),o=f.maxZoom===void 0?o:Math.max(o,f.maxZoom)}this._layersMaxZoom=o===-1/0?void 0:o,this._layersMinZoom=n===1/0?void 0:n,l!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var vn=je.extend({initialize:function(n,o){k(this,o),this._layers={};var l,u;if(n)for(l=0,u=n.length;l<u;l++)this.addLayer(n[l])},addLayer:function(n){var o=this.getLayerId(n);return this._layers[o]=n,this._map&&this._map.addLayer(n),this},removeLayer:function(n){var o=n in this._layers?n:this.getLayerId(n);return this._map&&this._layers[o]&&this._map.removeLayer(this._layers[o]),delete this._layers[o],this},hasLayer:function(n){var o=typeof n=="number"?n:this.getLayerId(n);return o in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(n){var o=Array.prototype.slice.call(arguments,1),l,u;for(l in this._layers)u=this._layers[l],u[n]&&u[n].apply(u,o);return this},onAdd:function(n){this.eachLayer(n.addLayer,n)},onRemove:function(n){this.eachLayer(n.removeLayer,n)},eachLayer:function(n,o){for(var l in this._layers)n.call(o,this._layers[l]);return this},getLayer:function(n){return this._layers[n]},getLayers:function(){var n=[];return this.eachLayer(n.push,n),n},setZIndex:function(n){return this.invoke("setZIndex",n)},getLayerId:function(n){return h(n)}}),mv=function(n,o){return new vn(n,o)},ri=vn.extend({addLayer:function(n){return this.hasLayer(n)?this:(n.addEventParent(this),vn.prototype.addLayer.call(this,n),this.fire("layeradd",{layer:n}))},removeLayer:function(n){return this.hasLayer(n)?(n in this._layers&&(n=this._layers[n]),n.removeEventParent(this),vn.prototype.removeLayer.call(this,n),this.fire("layerremove",{layer:n})):this},setStyle:function(n){return this.invoke("setStyle",n)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var n=new Ft;for(var o in this._layers){var l=this._layers[o];n.extend(l.getBounds?l.getBounds():l.getLatLng())}return n}}),gv=function(n,o){return new ri(n,o)},_n=w.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(n){k(this,n)},createIcon:function(n){return this._createIcon("icon",n)},createShadow:function(n){return this._createIcon("shadow",n)},_createIcon:function(n,o){var l=this._getIconUrl(n);if(!l){if(n==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var u=this._createImg(l,o&&o.tagName==="IMG"?o:null);return this._setIconStyles(u,n),(this.options.crossOrigin||this.options.crossOrigin==="")&&(u.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),u},_setIconStyles:function(n,o){var l=this.options,u=l[o+"Size"];typeof u=="number"&&(u=[u,u]);var f=X(u),b=X(o==="shadow"&&l.shadowAnchor||l.iconAnchor||f&&f.divideBy(2,!0));n.className="leaflet-marker-"+o+" "+(l.className||""),b&&(n.style.marginLeft=-b.x+"px",n.style.marginTop=-b.y+"px"),f&&(n.style.width=f.x+"px",n.style.height=f.y+"px")},_createImg:function(n,o){return o=o||document.createElement("img"),o.src=n,o},_getIconUrl:function(n){return et.retina&&this.options[n+"RetinaUrl"]||this.options[n+"Url"]}});function vv(n){return new _n(n)}var rr=_n.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(n){return typeof rr.imagePath!="string"&&(rr.imagePath=this._detectIconPath()),(this.options.imagePath||rr.imagePath)+_n.prototype._getIconUrl.call(this,n)},_stripUrl:function(n){var o=function(l,u,f){var b=u.exec(l);return b&&b[f]};return n=o(n,/^url\((['"])?(.+)\1\)$/,2),n&&o(n,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var n=At("div","leaflet-default-icon-path",document.body),o=Xn(n,"background-image")||Xn(n,"backgroundImage");if(document.body.removeChild(n),o=this._stripUrl(o),o)return o;var l=document.querySelector('link[href$="leaflet.css"]');return l?l.href.substring(0,l.href.length-11-1):""}}),Bc=Ge.extend({initialize:function(n){this._marker=n},addHooks:function(){var n=this._marker._icon;this._draggable||(this._draggable=new xi(n,n,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),vt(n,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&$t(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(n){var o=this._marker,l=o._map,u=this._marker.options.autoPanSpeed,f=this._marker.options.autoPanPadding,b=Vi(o._icon),x=l.getPixelBounds(),S=l.getPixelOrigin(),I=Pt(x.min._subtract(S).add(f),x.max._subtract(S).subtract(f));if(!I.contains(b)){var M=X((Math.max(I.max.x,b.x)-I.max.x)/(x.max.x-I.max.x)-(Math.min(I.min.x,b.x)-I.min.x)/(x.min.x-I.min.x),(Math.max(I.max.y,b.y)-I.max.y)/(x.max.y-I.max.y)-(Math.min(I.min.y,b.y)-I.min.y)/(x.min.y-I.min.y)).multiplyBy(u);l.panBy(M,{animate:!1}),this._draggable._newPos._add(M),this._draggable._startPos._add(M),Wt(o._icon,this._draggable._newPos),this._onDrag(n),this._panRequest=B(this._adjustPan.bind(this,n))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(n){this._marker.options.autoPan&&($(this._panRequest),this._panRequest=B(this._adjustPan.bind(this,n)))},_onDrag:function(n){var o=this._marker,l=o._shadow,u=Vi(o._icon),f=o._map.layerPointToLatLng(u);l&&Wt(l,u),o._latlng=f,n.latlng=f,n.oldLatLng=this._oldLatLng,o.fire("move",n).fire("drag",n)},_onDragEnd:function(n){$(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",n)}}),Yr=je.extend({options:{icon:new rr,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(n,o){k(this,o),this._latlng=kt(n)},onAdd:function(n){this._zoomAnimated=this._zoomAnimated&&n.options.markerZoomAnimation,this._zoomAnimated&&n.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(n){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&n.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(n){var o=this._latlng;return this._latlng=kt(n),this.update(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},setZIndexOffset:function(n){return this.options.zIndexOffset=n,this.update()},getIcon:function(){return this.options.icon},setIcon:function(n){return this.options.icon=n,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var n=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(n)}return this},_initIcon:function(){var n=this.options,o="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),l=n.icon.createIcon(this._icon),u=!1;l!==this._icon&&(this._icon&&this._removeIcon(),u=!0,n.title&&(l.title=n.title),l.tagName==="IMG"&&(l.alt=n.alt||"")),vt(l,o),n.keyboard&&(l.tabIndex="0",l.setAttribute("role","button")),this._icon=l,n.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&pt(l,"focus",this._panOnFocus,this);var f=n.icon.createShadow(this._shadow),b=!1;f!==this._shadow&&(this._removeShadow(),b=!0),f&&(vt(f,o),f.alt=""),this._shadow=f,n.opacity<1&&this._updateOpacity(),u&&this.getPane().appendChild(this._icon),this._initInteraction(),f&&b&&this.getPane(n.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Rt(this._icon,"focus",this._panOnFocus,this),zt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&zt(this._shadow),this._shadow=null},_setPos:function(n){this._icon&&Wt(this._icon,n),this._shadow&&Wt(this._shadow,n),this._zIndex=n.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(n){this._icon&&(this._icon.style.zIndex=this._zIndex+n)},_animateZoom:function(n){var o=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center).round();this._setPos(o)},_initInteraction:function(){if(this.options.interactive&&(vt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Bc)){var n=this.options.draggable;this.dragging&&(n=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Bc(this),n&&this.dragging.enable()}},setOpacity:function(n){return this.options.opacity=n,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var n=this.options.opacity;this._icon&&Ie(this._icon,n),this._shadow&&Ie(this._shadow,n)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var n=this._map;if(n){var o=this.options.icon.options,l=o.iconSize?X(o.iconSize):X(0,0),u=o.iconAnchor?X(o.iconAnchor):X(0,0);n.panInside(this._latlng,{paddingTopLeft:u,paddingBottomRight:l.subtract(u)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function _v(n,o){return new Yr(n,o)}var wi=je.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(n){this._renderer=n.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(n){return k(this,n),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&n&&Object.prototype.hasOwnProperty.call(n,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Kr=wi.extend({options:{fill:!0,radius:10},initialize:function(n,o){k(this,o),this._latlng=kt(n),this._radius=this.options.radius},setLatLng:function(n){var o=this._latlng;return this._latlng=kt(n),this.redraw(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(n){return this.options.radius=this._radius=n,this.redraw()},getRadius:function(){return this._radius},setStyle:function(n){var o=n&&n.radius||this._radius;return wi.prototype.setStyle.call(this,n),this.setRadius(o),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var n=this._radius,o=this._radiusY||n,l=this._clickTolerance(),u=[n+l,o+l];this._pxBounds=new wt(this._point.subtract(u),this._point.add(u))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(n){return n.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function bv(n,o){return new Kr(n,o)}var ns=Kr.extend({initialize:function(n,o,l){if(typeof o=="number"&&(o=a({},l,{radius:o})),k(this,o),this._latlng=kt(n),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(n){return this._mRadius=n,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var n=[this._radius,this._radiusY||this._radius];return new Ft(this._map.layerPointToLatLng(this._point.subtract(n)),this._map.layerPointToLatLng(this._point.add(n)))},setStyle:wi.prototype.setStyle,_project:function(){var n=this._latlng.lng,o=this._latlng.lat,l=this._map,u=l.options.crs;if(u.distance===$e.distance){var f=Math.PI/180,b=this._mRadius/$e.R/f,x=l.project([o+b,n]),S=l.project([o-b,n]),I=x.add(S).divideBy(2),M=l.unproject(I).lat,G=Math.acos((Math.cos(b*f)-Math.sin(o*f)*Math.sin(M*f))/(Math.cos(o*f)*Math.cos(M*f)))/f;(isNaN(G)||G===0)&&(G=b/Math.cos(Math.PI/180*o)),this._point=I.subtract(l.getPixelOrigin()),this._radius=isNaN(G)?0:I.x-l.project([M,n-G]).x,this._radiusY=I.y-x.y}else{var rt=u.unproject(u.project(this._latlng).subtract([this._mRadius,0]));this._point=l.latLngToLayerPoint(this._latlng),this._radius=this._point.x-l.latLngToLayerPoint(rt).x}this._updateBounds()}});function kv(n,o,l){return new ns(n,o,l)}var oi=wi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(n,o){k(this,o),this._setLatLngs(n)},getLatLngs:function(){return this._latlngs},setLatLngs:function(n){return this._setLatLngs(n),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(n){for(var o=1/0,l=null,u=nr,f,b,x=0,S=this._parts.length;x<S;x++)for(var I=this._parts[x],M=1,G=I.length;M<G;M++){f=I[M-1],b=I[M];var rt=u(n,f,b,!0);rt<o&&(o=rt,l=u(n,f,b))}return l&&(l.distance=Math.sqrt(o)),l},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Fc(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(n,o){return o=o||this._defaultShape(),n=kt(n),o.push(n),this._bounds.extend(n),this.redraw()},_setLatLngs:function(n){this._bounds=new Ft,this._latlngs=this._convertLatLngs(n)},_defaultShape:function(){return Pe(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(n){for(var o=[],l=Pe(n),u=0,f=n.length;u<f;u++)l?(o[u]=kt(n[u]),this._bounds.extend(o[u])):o[u]=this._convertLatLngs(n[u]);return o},_project:function(){var n=new wt;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,n),this._bounds.isValid()&&n.isValid()&&(this._rawPxBounds=n,this._updateBounds())},_updateBounds:function(){var n=this._clickTolerance(),o=new q(n,n);this._rawPxBounds&&(this._pxBounds=new wt([this._rawPxBounds.min.subtract(o),this._rawPxBounds.max.add(o)]))},_projectLatlngs:function(n,o,l){var u=n[0]instanceof St,f=n.length,b,x;if(u){for(x=[],b=0;b<f;b++)x[b]=this._map.latLngToLayerPoint(n[b]),l.extend(x[b]);o.push(x)}else for(b=0;b<f;b++)this._projectLatlngs(n[b],o,l)},_clipPoints:function(){var n=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(n))){if(this.options.noClip){this._parts=this._rings;return}var o=this._parts,l,u,f,b,x,S,I;for(l=0,f=0,b=this._rings.length;l<b;l++)for(I=this._rings[l],u=0,x=I.length;u<x-1;u++)S=Mc(I[u],I[u+1],n,u,!0),S&&(o[f]=o[f]||[],o[f].push(S[0]),(S[1]!==I[u+1]||u===x-2)&&(o[f].push(S[1]),f++))}},_simplifyPoints:function(){for(var n=this._parts,o=this.options.smoothFactor,l=0,u=n.length;l<u;l++)n[l]=Oc(n[l],o)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(n,o){var l,u,f,b,x,S,I=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(n))return!1;for(l=0,b=this._parts.length;l<b;l++)for(S=this._parts[l],u=0,x=S.length,f=x-1;u<x;f=u++)if(!(!o&&u===0)&&Lc(n,S[f],S[u])<=I)return!0;return!1}});function yv(n,o){return new oi(n,o)}oi._flat=Nc;var bn=oi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Pc(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(n){var o=oi.prototype._convertLatLngs.call(this,n),l=o.length;return l>=2&&o[0]instanceof St&&o[0].equals(o[l-1])&&o.pop(),o},_setLatLngs:function(n){oi.prototype._setLatLngs.call(this,n),Pe(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Pe(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var n=this._renderer._bounds,o=this.options.weight,l=new q(o,o);if(n=new wt(n.min.subtract(l),n.max.add(l)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(n))){if(this.options.noClip){this._parts=this._rings;return}for(var u=0,f=this._rings.length,b;u<f;u++)b=Ic(this._rings[u],n,!0),b.length&&this._parts.push(b)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(n){var o=!1,l,u,f,b,x,S,I,M;if(!this._pxBounds||!this._pxBounds.contains(n))return!1;for(b=0,I=this._parts.length;b<I;b++)for(l=this._parts[b],x=0,M=l.length,S=M-1;x<M;S=x++)u=l[x],f=l[S],u.y>n.y!=f.y>n.y&&n.x<(f.x-u.x)*(n.y-u.y)/(f.y-u.y)+u.x&&(o=!o);return o||oi.prototype._containsPoint.call(this,n,!0)}});function xv(n,o){return new bn(n,o)}var ai=ri.extend({initialize:function(n,o){k(this,o),this._layers={},n&&this.addData(n)},addData:function(n){var o=O(n)?n:n.features,l,u,f;if(o){for(l=0,u=o.length;l<u;l++)f=o[l],(f.geometries||f.geometry||f.features||f.coordinates)&&this.addData(f);return this}var b=this.options;if(b.filter&&!b.filter(n))return this;var x=Xr(n,b);return x?(x.feature=to(n),x.defaultOptions=x.options,this.resetStyle(x),b.onEachFeature&&b.onEachFeature(n,x),this.addLayer(x)):this},resetStyle:function(n){return n===void 0?this.eachLayer(this.resetStyle,this):(n.options=a({},n.defaultOptions),this._setLayerStyle(n,this.options.style),this)},setStyle:function(n){return this.eachLayer(function(o){this._setLayerStyle(o,n)},this)},_setLayerStyle:function(n,o){n.setStyle&&(typeof o=="function"&&(o=o(n.feature)),n.setStyle(o))}});function Xr(n,o){var l=n.type==="Feature"?n.geometry:n,u=l?l.coordinates:null,f=[],b=o&&o.pointToLayer,x=o&&o.coordsToLatLng||rs,S,I,M,G;if(!u&&!l)return null;switch(l.type){case"Point":return S=x(u),zc(b,n,S,o);case"MultiPoint":for(M=0,G=u.length;M<G;M++)S=x(u[M]),f.push(zc(b,n,S,o));return new ri(f);case"LineString":case"MultiLineString":return I=Jr(u,l.type==="LineString"?0:1,x),new oi(I,o);case"Polygon":case"MultiPolygon":return I=Jr(u,l.type==="Polygon"?1:2,x),new bn(I,o);case"GeometryCollection":for(M=0,G=l.geometries.length;M<G;M++){var rt=Xr({geometry:l.geometries[M],type:"Feature",properties:n.properties},o);rt&&f.push(rt)}return new ri(f);case"FeatureCollection":for(M=0,G=l.features.length;M<G;M++){var bt=Xr(l.features[M],o);bt&&f.push(bt)}return new ri(f);default:throw new Error("Invalid GeoJSON object.")}}function zc(n,o,l,u){return n?n(o,l):new Yr(l,u&&u.markersInheritOptions&&u)}function rs(n){return new St(n[1],n[0],n[2])}function Jr(n,o,l){for(var u=[],f=0,b=n.length,x;f<b;f++)x=o?Jr(n[f],o-1,l):(l||rs)(n[f]),u.push(x);return u}function os(n,o){return n=kt(n),n.alt!==void 0?[v(n.lng,o),v(n.lat,o),v(n.alt,o)]:[v(n.lng,o),v(n.lat,o)]}function Qr(n,o,l,u){for(var f=[],b=0,x=n.length;b<x;b++)f.push(o?Qr(n[b],Pe(n[b])?0:o-1,l,u):os(n[b],u));return!o&&l&&f.length>0&&f.push(f[0].slice()),f}function kn(n,o){return n.feature?a({},n.feature,{geometry:o}):to(o)}function to(n){return n.type==="Feature"||n.type==="FeatureCollection"?n:{type:"Feature",properties:{},geometry:n}}var as={toGeoJSON:function(n){return kn(this,{type:"Point",coordinates:os(this.getLatLng(),n)})}};Yr.include(as),ns.include(as),Kr.include(as),oi.include({toGeoJSON:function(n){var o=!Pe(this._latlngs),l=Qr(this._latlngs,o?1:0,!1,n);return kn(this,{type:(o?"Multi":"")+"LineString",coordinates:l})}}),bn.include({toGeoJSON:function(n){var o=!Pe(this._latlngs),l=o&&!Pe(this._latlngs[0]),u=Qr(this._latlngs,l?2:o?1:0,!0,n);return o||(u=[u]),kn(this,{type:(l?"Multi":"")+"Polygon",coordinates:u})}}),vn.include({toMultiPoint:function(n){var o=[];return this.eachLayer(function(l){o.push(l.toGeoJSON(n).geometry.coordinates)}),kn(this,{type:"MultiPoint",coordinates:o})},toGeoJSON:function(n){var o=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(o==="MultiPoint")return this.toMultiPoint(n);var l=o==="GeometryCollection",u=[];return this.eachLayer(function(f){if(f.toGeoJSON){var b=f.toGeoJSON(n);if(l)u.push(b.geometry);else{var x=to(b);x.type==="FeatureCollection"?u.push.apply(u,x.features):u.push(x)}}}),l?kn(this,{geometries:u,type:"GeometryCollection"}):{type:"FeatureCollection",features:u}}});function jc(n,o){return new ai(n,o)}var wv=jc,eo=je.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(n,o,l){this._url=n,this._bounds=Ot(o),k(this,l)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(vt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){zt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(n){return this.options.opacity=n,this._image&&this._updateOpacity(),this},setStyle:function(n){return n.opacity&&this.setOpacity(n.opacity),this},bringToFront:function(){return this._map&&mn(this._image),this},bringToBack:function(){return this._map&&gn(this._image),this},setUrl:function(n){return this._url=n,this._image&&(this._image.src=n),this},setBounds:function(n){return this._bounds=Ot(n),this._map&&this._reset(),this},getEvents:function(){var n={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},setZIndex:function(n){return this.options.zIndex=n,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var n=this._url.tagName==="IMG",o=this._image=n?this._url:At("img");if(vt(o,"leaflet-image-layer"),this._zoomAnimated&&vt(o,"leaflet-zoom-animated"),this.options.className&&vt(o,this.options.className),o.onselectstart=g,o.onmousemove=g,o.onload=c(this.fire,this,"load"),o.onerror=c(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),n){this._url=o.src;return}o.src=this._url,o.alt=this.options.alt},_animateZoom:function(n){var o=this._map.getZoomScale(n.zoom),l=this._map._latLngBoundsToNewLayerBounds(this._bounds,n.zoom,n.center).min;ji(this._image,l,o)},_reset:function(){var n=this._image,o=new wt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),l=o.getSize();Wt(n,o.min),n.style.width=l.x+"px",n.style.height=l.y+"px"},_updateOpacity:function(){Ie(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var n=this.options.errorOverlayUrl;n&&this._url!==n&&(this._url=n,this._image.src=n)},getCenter:function(){return this._bounds.getCenter()}}),Ev=function(n,o,l){return new eo(n,o,l)},Vc=eo.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var n=this._url.tagName==="VIDEO",o=this._image=n?this._url:At("video");if(vt(o,"leaflet-image-layer"),this._zoomAnimated&&vt(o,"leaflet-zoom-animated"),this.options.className&&vt(o,this.options.className),o.onselectstart=g,o.onmousemove=g,o.onloadeddata=c(this.fire,this,"load"),n){for(var l=o.getElementsByTagName("source"),u=[],f=0;f<l.length;f++)u.push(l[f].src);this._url=l.length>0?u:[o.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(o.style,"objectFit")&&(o.style.objectFit="fill"),o.autoplay=!!this.options.autoplay,o.loop=!!this.options.loop,o.muted=!!this.options.muted,o.playsInline=!!this.options.playsInline;for(var b=0;b<this._url.length;b++){var x=At("source");x.src=this._url[b],o.appendChild(x)}}});function Tv(n,o,l){return new Vc(n,o,l)}var Zc=eo.extend({_initImage:function(){var n=this._image=this._url;vt(n,"leaflet-image-layer"),this._zoomAnimated&&vt(n,"leaflet-zoom-animated"),this.options.className&&vt(n,this.options.className),n.onselectstart=g,n.onmousemove=g}});function Sv(n,o,l){return new Zc(n,o,l)}var Ye=je.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(n,o){n&&(n instanceof St||O(n))?(this._latlng=kt(n),k(this,o)):(k(this,n),this._source=o),this.options.content&&(this._content=this.options.content)},openOn:function(n){return n=arguments.length?n:this._source._map,n.hasLayer(this)||n.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(n){return this._map?this.close():(arguments.length?this._source=n:n=this._source,this._prepareOpen(),this.openOn(n._map)),this},onAdd:function(n){this._zoomAnimated=n._zoomAnimated,this._container||this._initLayout(),n._fadeAnimated&&Ie(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),n._fadeAnimated&&Ie(this._container,1),this.bringToFront(),this.options.interactive&&(vt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(n){n._fadeAnimated?(Ie(this._container,0),this._removeTimeout=setTimeout(c(zt,void 0,this._container),200)):zt(this._container),this.options.interactive&&($t(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(n){return this._latlng=kt(n),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(n){return this._content=n,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var n={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&mn(this._container),this},bringToBack:function(){return this._map&&gn(this._container),this},_prepareOpen:function(n){var o=this._source;if(!o._map)return!1;if(o instanceof ri){o=null;var l=this._source._layers;for(var u in l)if(l[u]._map){o=l[u];break}if(!o)return!1;this._source=o}if(!n)if(o.getCenter)n=o.getCenter();else if(o.getLatLng)n=o.getLatLng();else if(o.getBounds)n=o.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(n),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var n=this._contentNode,o=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof o=="string")n.innerHTML=o;else{for(;n.hasChildNodes();)n.removeChild(n.firstChild);n.appendChild(o)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var n=this._map.latLngToLayerPoint(this._latlng),o=X(this.options.offset),l=this._getAnchor();this._zoomAnimated?Wt(this._container,n.add(l)):o=o.add(n).add(l);var u=this._containerBottom=-o.y,f=this._containerLeft=-Math.round(this._containerWidth/2)+o.x;this._container.style.bottom=u+"px",this._container.style.left=f+"px"}},_getAnchor:function(){return[0,0]}});Et.include({_initOverlay:function(n,o,l,u){var f=o;return f instanceof n||(f=new n(u).setContent(o)),l&&f.setLatLng(l),f}}),je.include({_initOverlay:function(n,o,l,u){var f=l;return f instanceof n?(k(f,u),f._source=this):(f=o&&!u?o:new n(u,this),f.setContent(l)),f}});var io=Ye.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(n){return n=arguments.length?n:this._source._map,!n.hasLayer(this)&&n._popup&&n._popup.options.autoClose&&n.removeLayer(n._popup),n._popup=this,Ye.prototype.openOn.call(this,n)},onAdd:function(n){Ye.prototype.onAdd.call(this,n),n.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof wi||this._source.on("preclick",Zi))},onRemove:function(n){Ye.prototype.onRemove.call(this,n),n.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof wi||this._source.off("preclick",Zi))},getEvents:function(){var n=Ye.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(n.preclick=this.close),this.options.keepInView&&(n.moveend=this._adjustPan),n},_initLayout:function(){var n="leaflet-popup",o=this._container=At("div",n+" "+(this.options.className||"")+" leaflet-zoom-animated"),l=this._wrapper=At("div",n+"-content-wrapper",o);if(this._contentNode=At("div",n+"-content",l),er(o),Ya(this._contentNode),pt(o,"contextmenu",Zi),this._tipContainer=At("div",n+"-tip-container",o),this._tip=At("div",n+"-tip",this._tipContainer),this.options.closeButton){var u=this._closeButton=At("a",n+"-close-button",o);u.setAttribute("role","button"),u.setAttribute("aria-label","Close popup"),u.href="#close",u.innerHTML='<span aria-hidden="true">×</span>',pt(u,"click",function(f){ne(f),this.close()},this)}},_updateLayout:function(){var n=this._contentNode,o=n.style;o.width="",o.whiteSpace="nowrap";var l=n.offsetWidth;l=Math.min(l,this.options.maxWidth),l=Math.max(l,this.options.minWidth),o.width=l+1+"px",o.whiteSpace="",o.height="";var u=n.offsetHeight,f=this.options.maxHeight,b="leaflet-popup-scrolled";f&&u>f?(o.height=f+"px",vt(n,b)):$t(n,b),this._containerWidth=this._container.offsetWidth},_animateZoom:function(n){var o=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center),l=this._getAnchor();Wt(this._container,o.add(l))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var n=this._map,o=parseInt(Xn(this._container,"marginBottom"),10)||0,l=this._container.offsetHeight+o,u=this._containerWidth,f=new q(this._containerLeft,-l-this._containerBottom);f._add(Vi(this._container));var b=n.layerPointToContainerPoint(f),x=X(this.options.autoPanPadding),S=X(this.options.autoPanPaddingTopLeft||x),I=X(this.options.autoPanPaddingBottomRight||x),M=n.getSize(),G=0,rt=0;b.x+u+I.x>M.x&&(G=b.x+u-M.x+I.x),b.x-G-S.x<0&&(G=b.x-S.x),b.y+l+I.y>M.y&&(rt=b.y+l-M.y+I.y),b.y-rt-S.y<0&&(rt=b.y-S.y),(G||rt)&&(this.options.keepInView&&(this._autopanning=!0),n.fire("autopanstart").panBy([G,rt]))}},_getAnchor:function(){return X(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Av=function(n,o){return new io(n,o)};Et.mergeOptions({closePopupOnClick:!0}),Et.include({openPopup:function(n,o,l){return this._initOverlay(io,n,o,l).openOn(this),this},closePopup:function(n){return n=arguments.length?n:this._popup,n&&n.close(),this}}),je.include({bindPopup:function(n,o){return this._popup=this._initOverlay(io,this._popup,n,o),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(n){return this._popup&&(this instanceof ri||(this._popup._source=this),this._popup._prepareOpen(n||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(n){return this._popup&&this._popup.setContent(n),this},getPopup:function(){return this._popup},_openPopup:function(n){if(!(!this._popup||!this._map)){Ui(n);var o=n.layer||n.target;if(this._popup._source===o&&!(o instanceof wi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(n.latlng);return}this._popup._source=o,this.openPopup(n.latlng)}},_movePopup:function(n){this._popup.setLatLng(n.latlng)},_onKeyPress:function(n){n.originalEvent.keyCode===13&&this._openPopup(n)}});var no=Ye.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(n){Ye.prototype.onAdd.call(this,n),this.setOpacity(this.options.opacity),n.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(n){Ye.prototype.onRemove.call(this,n),n.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var n=Ye.prototype.getEvents.call(this);return this.options.permanent||(n.preclick=this.close),n},_initLayout:function(){var n="leaflet-tooltip",o=n+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=At("div",o),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(n){var o,l,u=this._map,f=this._container,b=u.latLngToContainerPoint(u.getCenter()),x=u.layerPointToContainerPoint(n),S=this.options.direction,I=f.offsetWidth,M=f.offsetHeight,G=X(this.options.offset),rt=this._getAnchor();S==="top"?(o=I/2,l=M):S==="bottom"?(o=I/2,l=0):S==="center"?(o=I/2,l=M/2):S==="right"?(o=0,l=M/2):S==="left"?(o=I,l=M/2):x.x<b.x?(S="right",o=0,l=M/2):(S="left",o=I+(G.x+rt.x)*2,l=M/2),n=n.subtract(X(o,l,!0)).add(G).add(rt),$t(f,"leaflet-tooltip-right"),$t(f,"leaflet-tooltip-left"),$t(f,"leaflet-tooltip-top"),$t(f,"leaflet-tooltip-bottom"),vt(f,"leaflet-tooltip-"+S),Wt(f,n)},_updatePosition:function(){var n=this._map.latLngToLayerPoint(this._latlng);this._setPosition(n)},setOpacity:function(n){this.options.opacity=n,this._container&&Ie(this._container,n)},_animateZoom:function(n){var o=this._map._latLngToNewLayerPoint(this._latlng,n.zoom,n.center);this._setPosition(o)},_getAnchor:function(){return X(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Cv=function(n,o){return new no(n,o)};Et.include({openTooltip:function(n,o,l){return this._initOverlay(no,n,o,l).openOn(this),this},closeTooltip:function(n){return n.close(),this}}),je.include({bindTooltip:function(n,o){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(no,this._tooltip,n,o),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(n){if(!(!n&&this._tooltipHandlersAdded)){var o=n?"off":"on",l={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?l.add=this._openTooltip:(l.mouseover=this._openTooltip,l.mouseout=this.closeTooltip,l.click=this._openTooltip,this._map?this._addFocusListeners():l.add=this._addFocusListeners),this._tooltip.options.sticky&&(l.mousemove=this._moveTooltip),this[o](l),this._tooltipHandlersAdded=!n}},openTooltip:function(n){return this._tooltip&&(this instanceof ri||(this._tooltip._source=this),this._tooltip._prepareOpen(n)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(n){return this._tooltip&&this._tooltip.setContent(n),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(n){var o=typeof n.getElement=="function"&&n.getElement();o&&(pt(o,"focus",function(){this._tooltip._source=n,this.openTooltip()},this),pt(o,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(n){var o=typeof n.getElement=="function"&&n.getElement();o&&o.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(n){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var o=this;this._map.once("moveend",function(){o._openOnceFlag=!1,o._openTooltip(n)});return}this._tooltip._source=n.layer||n.target,this.openTooltip(this._tooltip.options.sticky?n.latlng:void 0)}},_moveTooltip:function(n){var o=n.latlng,l,u;this._tooltip.options.sticky&&n.originalEvent&&(l=this._map.mouseEventToContainerPoint(n.originalEvent),u=this._map.containerPointToLayerPoint(l),o=this._map.layerPointToLatLng(u)),this._tooltip.setLatLng(o)}});var Uc=_n.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(n){var o=n&&n.tagName==="DIV"?n:document.createElement("div"),l=this.options;if(l.html instanceof Element?(Ur(o),o.appendChild(l.html)):o.innerHTML=l.html!==!1?l.html:"",l.bgPos){var u=X(l.bgPos);o.style.backgroundPosition=-u.x+"px "+-u.y+"px"}return this._setIconStyles(o,"icon"),o},createShadow:function(){return null}});function Iv(n){return new Uc(n)}_n.Default=rr;var or=je.extend({options:{tileSize:256,opacity:1,updateWhenIdle:et.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(n){k(this,n)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(n){n._addZoomLimit(this)},onRemove:function(n){this._removeAllTiles(),zt(this._container),n._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(mn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(gn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(n){return this.options.opacity=n,this._updateOpacity(),this},setZIndex:function(n){return this.options.zIndex=n,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var n=this._clampZoom(this._map.getZoom());n!==this._tileZoom&&(this._tileZoom=n,this._updateLevels()),this._update()}return this},getEvents:function(){var n={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),n.move=this._onMove),this._zoomAnimated&&(n.zoomanim=this._animateZoom),n},createTile:function(){return document.createElement("div")},getTileSize:function(){var n=this.options.tileSize;return n instanceof q?n:new q(n,n)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(n){for(var o=this.getPane().children,l=-n(-1/0,1/0),u=0,f=o.length,b;u<f;u++)b=o[u].style.zIndex,o[u]!==this._container&&b&&(l=n(l,+b));isFinite(l)&&(this.options.zIndex=l+n(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!et.ielt9){Ie(this._container,this.options.opacity);var n=+new Date,o=!1,l=!1;for(var u in this._tiles){var f=this._tiles[u];if(!(!f.current||!f.loaded)){var b=Math.min(1,(n-f.loaded)/200);Ie(f.el,b),b<1?o=!0:(f.active?l=!0:this._onOpaqueTile(f),f.active=!0)}}l&&!this._noPrune&&this._pruneTiles(),o&&($(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this))}},_onOpaqueTile:g,_initContainer:function(){this._container||(this._container=At("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var n=this._tileZoom,o=this.options.maxZoom;if(n!==void 0){for(var l in this._levels)l=Number(l),this._levels[l].el.children.length||l===n?(this._levels[l].el.style.zIndex=o-Math.abs(n-l),this._onUpdateLevel(l)):(zt(this._levels[l].el),this._removeTilesAtZoom(l),this._onRemoveLevel(l),delete this._levels[l]);var u=this._levels[n],f=this._map;return u||(u=this._levels[n]={},u.el=At("div","leaflet-tile-container leaflet-zoom-animated",this._container),u.el.style.zIndex=o,u.origin=f.project(f.unproject(f.getPixelOrigin()),n).round(),u.zoom=n,this._setZoomTransform(u,f.getCenter(),f.getZoom()),g(u.el.offsetWidth),this._onCreateLevel(u)),this._level=u,u}},_onUpdateLevel:g,_onRemoveLevel:g,_onCreateLevel:g,_pruneTiles:function(){if(this._map){var n,o,l=this._map.getZoom();if(l>this.options.maxZoom||l<this.options.minZoom){this._removeAllTiles();return}for(n in this._tiles)o=this._tiles[n],o.retain=o.current;for(n in this._tiles)if(o=this._tiles[n],o.current&&!o.active){var u=o.coords;this._retainParent(u.x,u.y,u.z,u.z-5)||this._retainChildren(u.x,u.y,u.z,u.z+2)}for(n in this._tiles)this._tiles[n].retain||this._removeTile(n)}},_removeTilesAtZoom:function(n){for(var o in this._tiles)this._tiles[o].coords.z===n&&this._removeTile(o)},_removeAllTiles:function(){for(var n in this._tiles)this._removeTile(n)},_invalidateAll:function(){for(var n in this._levels)zt(this._levels[n].el),this._onRemoveLevel(Number(n)),delete this._levels[n];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(n,o,l,u){var f=Math.floor(n/2),b=Math.floor(o/2),x=l-1,S=new q(+f,+b);S.z=+x;var I=this._tileCoordsToKey(S),M=this._tiles[I];return M&&M.active?(M.retain=!0,!0):(M&&M.loaded&&(M.retain=!0),x>u?this._retainParent(f,b,x,u):!1)},_retainChildren:function(n,o,l,u){for(var f=2*n;f<2*n+2;f++)for(var b=2*o;b<2*o+2;b++){var x=new q(f,b);x.z=l+1;var S=this._tileCoordsToKey(x),I=this._tiles[S];if(I&&I.active){I.retain=!0;continue}else I&&I.loaded&&(I.retain=!0);l+1<u&&this._retainChildren(f,b,l+1,u)}},_resetView:function(n){var o=n&&(n.pinch||n.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),o,o)},_animateZoom:function(n){this._setView(n.center,n.zoom,!0,n.noUpdate)},_clampZoom:function(n){var o=this.options;return o.minNativeZoom!==void 0&&n<o.minNativeZoom?o.minNativeZoom:o.maxNativeZoom!==void 0&&o.maxNativeZoom<n?o.maxNativeZoom:n},_setView:function(n,o,l,u){var f=Math.round(o);this.options.maxZoom!==void 0&&f>this.options.maxZoom||this.options.minZoom!==void 0&&f<this.options.minZoom?f=void 0:f=this._clampZoom(f);var b=this.options.updateWhenZooming&&f!==this._tileZoom;(!u||b)&&(this._tileZoom=f,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),f!==void 0&&this._update(n),l||this._pruneTiles(),this._noPrune=!!l),this._setZoomTransforms(n,o)},_setZoomTransforms:function(n,o){for(var l in this._levels)this._setZoomTransform(this._levels[l],n,o)},_setZoomTransform:function(n,o,l){var u=this._map.getZoomScale(l,n.zoom),f=n.origin.multiplyBy(u).subtract(this._map._getNewPixelOrigin(o,l)).round();et.any3d?ji(n.el,f,u):Wt(n.el,f)},_resetGrid:function(){var n=this._map,o=n.options.crs,l=this._tileSize=this.getTileSize(),u=this._tileZoom,f=this._map.getPixelWorldBounds(this._tileZoom);f&&(this._globalTileRange=this._pxBoundsToTileRange(f)),this._wrapX=o.wrapLng&&!this.options.noWrap&&[Math.floor(n.project([0,o.wrapLng[0]],u).x/l.x),Math.ceil(n.project([0,o.wrapLng[1]],u).x/l.y)],this._wrapY=o.wrapLat&&!this.options.noWrap&&[Math.floor(n.project([o.wrapLat[0],0],u).y/l.x),Math.ceil(n.project([o.wrapLat[1],0],u).y/l.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(n){var o=this._map,l=o._animatingZoom?Math.max(o._animateToZoom,o.getZoom()):o.getZoom(),u=o.getZoomScale(l,this._tileZoom),f=o.project(n,this._tileZoom).floor(),b=o.getSize().divideBy(u*2);return new wt(f.subtract(b),f.add(b))},_update:function(n){var o=this._map;if(o){var l=this._clampZoom(o.getZoom());if(n===void 0&&(n=o.getCenter()),this._tileZoom!==void 0){var u=this._getTiledPixelBounds(n),f=this._pxBoundsToTileRange(u),b=f.getCenter(),x=[],S=this.options.keepBuffer,I=new wt(f.getBottomLeft().subtract([S,-S]),f.getTopRight().add([S,-S]));if(!(isFinite(f.min.x)&&isFinite(f.min.y)&&isFinite(f.max.x)&&isFinite(f.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var M in this._tiles){var G=this._tiles[M].coords;(G.z!==this._tileZoom||!I.contains(new q(G.x,G.y)))&&(this._tiles[M].current=!1)}if(Math.abs(l-this._tileZoom)>1){this._setView(n,l);return}for(var rt=f.min.y;rt<=f.max.y;rt++)for(var bt=f.min.x;bt<=f.max.x;bt++){var ce=new q(bt,rt);if(ce.z=this._tileZoom,!!this._isValidTile(ce)){var te=this._tiles[this._tileCoordsToKey(ce)];te?te.current=!0:x.push(ce)}}if(x.sort(function(pe,xn){return pe.distanceTo(b)-xn.distanceTo(b)}),x.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Oe=document.createDocumentFragment();for(bt=0;bt<x.length;bt++)this._addTile(x[bt],Oe);this._level.el.appendChild(Oe)}}}},_isValidTile:function(n){var o=this._map.options.crs;if(!o.infinite){var l=this._globalTileRange;if(!o.wrapLng&&(n.x<l.min.x||n.x>l.max.x)||!o.wrapLat&&(n.y<l.min.y||n.y>l.max.y))return!1}if(!this.options.bounds)return!0;var u=this._tileCoordsToBounds(n);return Ot(this.options.bounds).overlaps(u)},_keyToBounds:function(n){return this._tileCoordsToBounds(this._keyToTileCoords(n))},_tileCoordsToNwSe:function(n){var o=this._map,l=this.getTileSize(),u=n.scaleBy(l),f=u.add(l),b=o.unproject(u,n.z),x=o.unproject(f,n.z);return[b,x]},_tileCoordsToBounds:function(n){var o=this._tileCoordsToNwSe(n),l=new Ft(o[0],o[1]);return this.options.noWrap||(l=this._map.wrapLatLngBounds(l)),l},_tileCoordsToKey:function(n){return n.x+":"+n.y+":"+n.z},_keyToTileCoords:function(n){var o=n.split(":"),l=new q(+o[0],+o[1]);return l.z=+o[2],l},_removeTile:function(n){var o=this._tiles[n];o&&(zt(o.el),delete this._tiles[n],this.fire("tileunload",{tile:o.el,coords:this._keyToTileCoords(n)}))},_initTile:function(n){vt(n,"leaflet-tile");var o=this.getTileSize();n.style.width=o.x+"px",n.style.height=o.y+"px",n.onselectstart=g,n.onmousemove=g,et.ielt9&&this.options.opacity<1&&Ie(n,this.options.opacity)},_addTile:function(n,o){var l=this._getTilePos(n),u=this._tileCoordsToKey(n),f=this.createTile(this._wrapCoords(n),c(this._tileReady,this,n));this._initTile(f),this.createTile.length<2&&B(c(this._tileReady,this,n,null,f)),Wt(f,l),this._tiles[u]={el:f,coords:n,current:!0},o.appendChild(f),this.fire("tileloadstart",{tile:f,coords:n})},_tileReady:function(n,o,l){o&&this.fire("tileerror",{error:o,tile:l,coords:n});var u=this._tileCoordsToKey(n);l=this._tiles[u],l&&(l.loaded=+new Date,this._map._fadeAnimated?(Ie(l.el,0),$(this._fadeFrame),this._fadeFrame=B(this._updateOpacity,this)):(l.active=!0,this._pruneTiles()),o||(vt(l.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:l.el,coords:n})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),et.ielt9||!this._map._fadeAnimated?B(this._pruneTiles,this):setTimeout(c(this._pruneTiles,this),250)))},_getTilePos:function(n){return n.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(n){var o=new q(this._wrapX?m(n.x,this._wrapX):n.x,this._wrapY?m(n.y,this._wrapY):n.y);return o.z=n.z,o},_pxBoundsToTileRange:function(n){var o=this.getTileSize();return new wt(n.min.unscaleBy(o).floor(),n.max.unscaleBy(o).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var n in this._tiles)if(!this._tiles[n].loaded)return!1;return!0}});function Pv(n){return new or(n)}var yn=or.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(n,o){this._url=n,o=k(this,o),o.detectRetina&&et.retina&&o.maxZoom>0?(o.tileSize=Math.floor(o.tileSize/2),o.zoomReverse?(o.zoomOffset--,o.minZoom=Math.min(o.maxZoom,o.minZoom+1)):(o.zoomOffset++,o.maxZoom=Math.max(o.minZoom,o.maxZoom-1)),o.minZoom=Math.max(0,o.minZoom)):o.zoomReverse?o.minZoom=Math.min(o.maxZoom,o.minZoom):o.maxZoom=Math.max(o.minZoom,o.maxZoom),typeof o.subdomains=="string"&&(o.subdomains=o.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(n,o){return this._url===n&&o===void 0&&(o=!0),this._url=n,o||this.redraw(),this},createTile:function(n,o){var l=document.createElement("img");return pt(l,"load",c(this._tileOnLoad,this,o,l)),pt(l,"error",c(this._tileOnError,this,o,l)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(l.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(l.referrerPolicy=this.options.referrerPolicy),l.alt="",l.src=this.getTileUrl(n),l},getTileUrl:function(n){var o={r:et.retina?"@2x":"",s:this._getSubdomain(n),x:n.x,y:n.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var l=this._globalTileRange.max.y-n.y;this.options.tms&&(o.y=l),o["-y"]=l}return N(this._url,a(o,this.options))},_tileOnLoad:function(n,o){et.ielt9?setTimeout(c(n,this,null,o),0):n(null,o)},_tileOnError:function(n,o,l){var u=this.options.errorTileUrl;u&&o.getAttribute("src")!==u&&(o.src=u),n(l,o)},_onTileRemove:function(n){n.tile.onload=null},_getZoomForUrl:function(){var n=this._tileZoom,o=this.options.maxZoom,l=this.options.zoomReverse,u=this.options.zoomOffset;return l&&(n=o-n),n+u},_getSubdomain:function(n){var o=Math.abs(n.x+n.y)%this.options.subdomains.length;return this.options.subdomains[o]},_abortLoading:function(){var n,o;for(n in this._tiles)if(this._tiles[n].coords.z!==this._tileZoom&&(o=this._tiles[n].el,o.onload=g,o.onerror=g,!o.complete)){o.src=z;var l=this._tiles[n].coords;zt(o),delete this._tiles[n],this.fire("tileabort",{tile:o,coords:l})}},_removeTile:function(n){var o=this._tiles[n];if(o)return o.el.setAttribute("src",z),or.prototype._removeTile.call(this,n)},_tileReady:function(n,o,l){if(!(!this._map||l&&l.getAttribute("src")===z))return or.prototype._tileReady.call(this,n,o,l)}});function Hc(n,o){return new yn(n,o)}var $c=yn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(n,o){this._url=n;var l=a({},this.defaultWmsParams);for(var u in o)u in this.options||(l[u]=o[u]);o=k(this,o);var f=o.detectRetina&&et.retina?2:1,b=this.getTileSize();l.width=b.x*f,l.height=b.y*f,this.wmsParams=l},onAdd:function(n){this._crs=this.options.crs||n.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var o=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[o]=this._crs.code,yn.prototype.onAdd.call(this,n)},getTileUrl:function(n){var o=this._tileCoordsToNwSe(n),l=this._crs,u=Pt(l.project(o[0]),l.project(o[1])),f=u.min,b=u.max,x=(this._wmsVersion>=1.3&&this._crs===Rc?[f.y,f.x,b.y,b.x]:[f.x,f.y,b.x,b.y]).join(","),S=yn.prototype.getTileUrl.call(this,n);return S+E(this.wmsParams,S,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+x},setParams:function(n,o){return a(this.wmsParams,n),o||this.redraw(),this}});function Ov(n,o){return new $c(n,o)}yn.WMS=$c,Hc.wms=Ov;var si=je.extend({options:{padding:.1},initialize:function(n){k(this,n),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),vt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var n={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(n.zoomanim=this._onAnimZoom),n},_onAnimZoom:function(n){this._updateTransform(n.center,n.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(n,o){var l=this._map.getZoomScale(o,this._zoom),u=this._map.getSize().multiplyBy(.5+this.options.padding),f=this._map.project(this._center,o),b=u.multiplyBy(-l).add(f).subtract(this._map._getNewPixelOrigin(n,o));et.any3d?ji(this._container,b,l):Wt(this._container,b)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var n in this._layers)this._layers[n]._reset()},_onZoomEnd:function(){for(var n in this._layers)this._layers[n]._project()},_updatePaths:function(){for(var n in this._layers)this._layers[n]._update()},_update:function(){var n=this.options.padding,o=this._map.getSize(),l=this._map.containerPointToLayerPoint(o.multiplyBy(-n)).round();this._bounds=new wt(l,l.add(o.multiplyBy(1+n*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),qc=si.extend({options:{tolerance:0},getEvents:function(){var n=si.prototype.getEvents.call(this);return n.viewprereset=this._onViewPreReset,n},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){si.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var n=this._container=document.createElement("canvas");pt(n,"mousemove",this._onMouseMove,this),pt(n,"click dblclick mousedown mouseup contextmenu",this._onClick,this),pt(n,"mouseout",this._handleMouseOut,this),n._leaflet_disable_events=!0,this._ctx=n.getContext("2d")},_destroyContainer:function(){$(this._redrawRequest),delete this._ctx,zt(this._container),Rt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var n;this._redrawBounds=null;for(var o in this._layers)n=this._layers[o],n._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){si.prototype._update.call(this);var n=this._bounds,o=this._container,l=n.getSize(),u=et.retina?2:1;Wt(o,n.min),o.width=u*l.x,o.height=u*l.y,o.style.width=l.x+"px",o.style.height=l.y+"px",et.retina&&this._ctx.scale(2,2),this._ctx.translate(-n.min.x,-n.min.y),this.fire("update")}},_reset:function(){si.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(n){this._updateDashArray(n),this._layers[h(n)]=n;var o=n._order={layer:n,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=o),this._drawLast=o,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(n){this._requestRedraw(n)},_removePath:function(n){var o=n._order,l=o.next,u=o.prev;l?l.prev=u:this._drawLast=u,u?u.next=l:this._drawFirst=l,delete n._order,delete this._layers[h(n)],this._requestRedraw(n)},_updatePath:function(n){this._extendRedrawBounds(n),n._project(),n._update(),this._requestRedraw(n)},_updateStyle:function(n){this._updateDashArray(n),this._requestRedraw(n)},_updateDashArray:function(n){if(typeof n.options.dashArray=="string"){var o=n.options.dashArray.split(/[, ]+/),l=[],u,f;for(f=0;f<o.length;f++){if(u=Number(o[f]),isNaN(u))return;l.push(u)}n.options._dashArray=l}else n.options._dashArray=n.options.dashArray},_requestRedraw:function(n){this._map&&(this._extendRedrawBounds(n),this._redrawRequest=this._redrawRequest||B(this._redraw,this))},_extendRedrawBounds:function(n){if(n._pxBounds){var o=(n.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new wt,this._redrawBounds.extend(n._pxBounds.min.subtract([o,o])),this._redrawBounds.extend(n._pxBounds.max.add([o,o]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var n=this._redrawBounds;if(n){var o=n.getSize();this._ctx.clearRect(n.min.x,n.min.y,o.x,o.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var n,o=this._redrawBounds;if(this._ctx.save(),o){var l=o.getSize();this._ctx.beginPath(),this._ctx.rect(o.min.x,o.min.y,l.x,l.y),this._ctx.clip()}this._drawing=!0;for(var u=this._drawFirst;u;u=u.next)n=u.layer,(!o||n._pxBounds&&n._pxBounds.intersects(o))&&n._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(n,o){if(this._drawing){var l,u,f,b,x=n._parts,S=x.length,I=this._ctx;if(S){for(I.beginPath(),l=0;l<S;l++){for(u=0,f=x[l].length;u<f;u++)b=x[l][u],I[u?"lineTo":"moveTo"](b.x,b.y);o&&I.closePath()}this._fillStroke(I,n)}}},_updateCircle:function(n){if(!(!this._drawing||n._empty())){var o=n._point,l=this._ctx,u=Math.max(Math.round(n._radius),1),f=(Math.max(Math.round(n._radiusY),1)||u)/u;f!==1&&(l.save(),l.scale(1,f)),l.beginPath(),l.arc(o.x,o.y/f,u,0,Math.PI*2,!1),f!==1&&l.restore(),this._fillStroke(l,n)}},_fillStroke:function(n,o){var l=o.options;l.fill&&(n.globalAlpha=l.fillOpacity,n.fillStyle=l.fillColor||l.color,n.fill(l.fillRule||"evenodd")),l.stroke&&l.weight!==0&&(n.setLineDash&&n.setLineDash(o.options&&o.options._dashArray||[]),n.globalAlpha=l.opacity,n.lineWidth=l.weight,n.strokeStyle=l.color,n.lineCap=l.lineCap,n.lineJoin=l.lineJoin,n.stroke())},_onClick:function(n){for(var o=this._map.mouseEventToLayerPoint(n),l,u,f=this._drawFirst;f;f=f.next)l=f.layer,l.options.interactive&&l._containsPoint(o)&&(!(n.type==="click"||n.type==="preclick")||!this._map._draggableMoved(l))&&(u=l);this._fireEvent(u?[u]:!1,n)},_onMouseMove:function(n){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var o=this._map.mouseEventToLayerPoint(n);this._handleMouseHover(n,o)}},_handleMouseOut:function(n){var o=this._hoveredLayer;o&&($t(this._container,"leaflet-interactive"),this._fireEvent([o],n,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(n,o){if(!this._mouseHoverThrottled){for(var l,u,f=this._drawFirst;f;f=f.next)l=f.layer,l.options.interactive&&l._containsPoint(o)&&(u=l);u!==this._hoveredLayer&&(this._handleMouseOut(n),u&&(vt(this._container,"leaflet-interactive"),this._fireEvent([u],n,"mouseover"),this._hoveredLayer=u)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,n),this._mouseHoverThrottled=!0,setTimeout(c(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(n,o,l){this._map._fireDOMEvent(o,l||o.type,n)},_bringToFront:function(n){var o=n._order;if(o){var l=o.next,u=o.prev;if(l)l.prev=u;else return;u?u.next=l:l&&(this._drawFirst=l),o.prev=this._drawLast,this._drawLast.next=o,o.next=null,this._drawLast=o,this._requestRedraw(n)}},_bringToBack:function(n){var o=n._order;if(o){var l=o.next,u=o.prev;if(u)u.next=l;else return;l?l.prev=u:u&&(this._drawLast=u),o.prev=null,o.next=this._drawFirst,this._drawFirst.prev=o,this._drawFirst=o,this._requestRedraw(n)}}});function Wc(n){return et.canvas?new qc(n):null}var ar=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(n){return document.createElement("<lvml:"+n+' class="lvml">')}}catch{}return function(n){return document.createElement("<"+n+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Lv={_initContainer:function(){this._container=At("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(si.prototype._update.call(this),this.fire("update"))},_initPath:function(n){var o=n._container=ar("shape");vt(o,"leaflet-vml-shape "+(this.options.className||"")),o.coordsize="1 1",n._path=ar("path"),o.appendChild(n._path),this._updateStyle(n),this._layers[h(n)]=n},_addPath:function(n){var o=n._container;this._container.appendChild(o),n.options.interactive&&n.addInteractiveTarget(o)},_removePath:function(n){var o=n._container;zt(o),n.removeInteractiveTarget(o),delete this._layers[h(n)]},_updateStyle:function(n){var o=n._stroke,l=n._fill,u=n.options,f=n._container;f.stroked=!!u.stroke,f.filled=!!u.fill,u.stroke?(o||(o=n._stroke=ar("stroke")),f.appendChild(o),o.weight=u.weight+"px",o.color=u.color,o.opacity=u.opacity,u.dashArray?o.dashStyle=O(u.dashArray)?u.dashArray.join(" "):u.dashArray.replace(/( *, *)/g," "):o.dashStyle="",o.endcap=u.lineCap.replace("butt","flat"),o.joinstyle=u.lineJoin):o&&(f.removeChild(o),n._stroke=null),u.fill?(l||(l=n._fill=ar("fill")),f.appendChild(l),l.color=u.fillColor||u.color,l.opacity=u.fillOpacity):l&&(f.removeChild(l),n._fill=null)},_updateCircle:function(n){var o=n._point.round(),l=Math.round(n._radius),u=Math.round(n._radiusY||l);this._setPath(n,n._empty()?"M0 0":"AL "+o.x+","+o.y+" "+l+","+u+" 0,"+65535*360)},_setPath:function(n,o){n._path.v=o},_bringToFront:function(n){mn(n._container)},_bringToBack:function(n){gn(n._container)}},ro=et.vml?ar:qt,sr=si.extend({_initContainer:function(){this._container=ro("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ro("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){zt(this._container),Rt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){si.prototype._update.call(this);var n=this._bounds,o=n.getSize(),l=this._container;(!this._svgSize||!this._svgSize.equals(o))&&(this._svgSize=o,l.setAttribute("width",o.x),l.setAttribute("height",o.y)),Wt(l,n.min),l.setAttribute("viewBox",[n.min.x,n.min.y,o.x,o.y].join(" ")),this.fire("update")}},_initPath:function(n){var o=n._path=ro("path");n.options.className&&vt(o,n.options.className),n.options.interactive&&vt(o,"leaflet-interactive"),this._updateStyle(n),this._layers[h(n)]=n},_addPath:function(n){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(n._path),n.addInteractiveTarget(n._path)},_removePath:function(n){zt(n._path),n.removeInteractiveTarget(n._path),delete this._layers[h(n)]},_updatePath:function(n){n._project(),n._update()},_updateStyle:function(n){var o=n._path,l=n.options;o&&(l.stroke?(o.setAttribute("stroke",l.color),o.setAttribute("stroke-opacity",l.opacity),o.setAttribute("stroke-width",l.weight),o.setAttribute("stroke-linecap",l.lineCap),o.setAttribute("stroke-linejoin",l.lineJoin),l.dashArray?o.setAttribute("stroke-dasharray",l.dashArray):o.removeAttribute("stroke-dasharray"),l.dashOffset?o.setAttribute("stroke-dashoffset",l.dashOffset):o.removeAttribute("stroke-dashoffset")):o.setAttribute("stroke","none"),l.fill?(o.setAttribute("fill",l.fillColor||l.color),o.setAttribute("fill-opacity",l.fillOpacity),o.setAttribute("fill-rule",l.fillRule||"evenodd")):o.setAttribute("fill","none"))},_updatePoly:function(n,o){this._setPath(n,jt(n._parts,o))},_updateCircle:function(n){var o=n._point,l=Math.max(Math.round(n._radius),1),u=Math.max(Math.round(n._radiusY),1)||l,f="a"+l+","+u+" 0 1,0 ",b=n._empty()?"M0 0":"M"+(o.x-l)+","+o.y+f+l*2+",0 "+f+-l*2+",0 ";this._setPath(n,b)},_setPath:function(n,o){n._path.setAttribute("d",o)},_bringToFront:function(n){mn(n._path)},_bringToBack:function(n){gn(n._path)}});et.vml&&sr.include(Lv);function Gc(n){return et.svg||et.vml?new sr(n):null}Et.include({getRenderer:function(n){var o=n.options.renderer||this._getPaneRenderer(n.options.pane)||this.options.renderer||this._renderer;return o||(o=this._renderer=this._createRenderer()),this.hasLayer(o)||this.addLayer(o),o},_getPaneRenderer:function(n){if(n==="overlayPane"||n===void 0)return!1;var o=this._paneRenderers[n];return o===void 0&&(o=this._createRenderer({pane:n}),this._paneRenderers[n]=o),o},_createRenderer:function(n){return this.options.preferCanvas&&Wc(n)||Gc(n)}});var Yc=bn.extend({initialize:function(n,o){bn.prototype.initialize.call(this,this._boundsToLatLngs(n),o)},setBounds:function(n){return this.setLatLngs(this._boundsToLatLngs(n))},_boundsToLatLngs:function(n){return n=Ot(n),[n.getSouthWest(),n.getNorthWest(),n.getNorthEast(),n.getSouthEast()]}});function Dv(n,o){return new Yc(n,o)}sr.create=ro,sr.pointsToPath=jt,ai.geometryToLayer=Xr,ai.coordsToLatLng=rs,ai.coordsToLatLngs=Jr,ai.latLngToCoords=os,ai.latLngsToCoords=Qr,ai.getFeature=kn,ai.asFeature=to,Et.mergeOptions({boxZoom:!0});var Kc=Ge.extend({initialize:function(n){this._map=n,this._container=n._container,this._pane=n._panes.overlayPane,this._resetStateTimeout=0,n.on("unload",this._destroy,this)},addHooks:function(){pt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Rt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){zt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(n){if(!n.shiftKey||n.which!==1&&n.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Jn(),Va(),this._startPoint=this._map.mouseEventToContainerPoint(n),pt(document,{contextmenu:Ui,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(n){this._moved||(this._moved=!0,this._box=At("div","leaflet-zoom-box",this._container),vt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(n);var o=new wt(this._point,this._startPoint),l=o.getSize();Wt(this._box,o.min),this._box.style.width=l.x+"px",this._box.style.height=l.y+"px"},_finish:function(){this._moved&&(zt(this._box),$t(this._container,"leaflet-crosshair")),Qn(),Za(),Rt(document,{contextmenu:Ui,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(n){if(!(n.which!==1&&n.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(c(this._resetState,this),0);var o=new Ft(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(o).fire("boxzoomend",{boxZoomBounds:o})}},_onKeyDown:function(n){n.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Et.addInitHook("addHandler","boxZoom",Kc),Et.mergeOptions({doubleClickZoom:!0});var Xc=Ge.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(n){var o=this._map,l=o.getZoom(),u=o.options.zoomDelta,f=n.originalEvent.shiftKey?l-u:l+u;o.options.doubleClickZoom==="center"?o.setZoom(f):o.setZoomAround(n.containerPoint,f)}});Et.addInitHook("addHandler","doubleClickZoom",Xc),Et.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Jc=Ge.extend({addHooks:function(){if(!this._draggable){var n=this._map;this._draggable=new xi(n._mapPane,n._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),n.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),n.on("zoomend",this._onZoomEnd,this),n.whenReady(this._onZoomEnd,this))}vt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){$t(this._map._container,"leaflet-grab"),$t(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var n=this._map;if(n._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var o=Ot(this._map.options.maxBounds);this._offsetLimit=Pt(this._map.latLngToContainerPoint(o.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(o.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;n.fire("movestart").fire("dragstart"),n.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(n){if(this._map.options.inertia){var o=this._lastTime=+new Date,l=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(l),this._times.push(o),this._prunePositions(o)}this._map.fire("move",n).fire("drag",n)},_prunePositions:function(n){for(;this._positions.length>1&&n-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var n=this._map.getSize().divideBy(2),o=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=o.subtract(n).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(n,o){return n-(n-o)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var n=this._draggable._newPos.subtract(this._draggable._startPos),o=this._offsetLimit;n.x<o.min.x&&(n.x=this._viscousLimit(n.x,o.min.x)),n.y<o.min.y&&(n.y=this._viscousLimit(n.y,o.min.y)),n.x>o.max.x&&(n.x=this._viscousLimit(n.x,o.max.x)),n.y>o.max.y&&(n.y=this._viscousLimit(n.y,o.max.y)),this._draggable._newPos=this._draggable._startPos.add(n)}},_onPreDragWrap:function(){var n=this._worldWidth,o=Math.round(n/2),l=this._initialWorldOffset,u=this._draggable._newPos.x,f=(u-o+l)%n+o-l,b=(u+o+l)%n-o-l,x=Math.abs(f+l)<Math.abs(b+l)?f:b;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=x},_onDragEnd:function(n){var o=this._map,l=o.options,u=!l.inertia||n.noInertia||this._times.length<2;if(o.fire("dragend",n),u)o.fire("moveend");else{this._prunePositions(+new Date);var f=this._lastPos.subtract(this._positions[0]),b=(this._lastTime-this._times[0])/1e3,x=l.easeLinearity,S=f.multiplyBy(x/b),I=S.distanceTo([0,0]),M=Math.min(l.inertiaMaxSpeed,I),G=S.multiplyBy(M/I),rt=M/(l.inertiaDeceleration*x),bt=G.multiplyBy(-rt/2).round();!bt.x&&!bt.y?o.fire("moveend"):(bt=o._limitOffset(bt,o.options.maxBounds),B(function(){o.panBy(bt,{duration:rt,easeLinearity:x,noMoveStart:!0,animate:!0})}))}}});Et.addInitHook("addHandler","dragging",Jc),Et.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Qc=Ge.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(n){this._map=n,this._setPanDelta(n.options.keyboardPanDelta),this._setZoomDelta(n.options.zoomDelta)},addHooks:function(){var n=this._map._container;n.tabIndex<=0&&(n.tabIndex="0"),pt(n,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Rt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var n=document.body,o=document.documentElement,l=n.scrollTop||o.scrollTop,u=n.scrollLeft||o.scrollLeft;this._map._container.focus(),window.scrollTo(u,l)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(n){var o=this._panKeys={},l=this.keyCodes,u,f;for(u=0,f=l.left.length;u<f;u++)o[l.left[u]]=[-1*n,0];for(u=0,f=l.right.length;u<f;u++)o[l.right[u]]=[n,0];for(u=0,f=l.down.length;u<f;u++)o[l.down[u]]=[0,n];for(u=0,f=l.up.length;u<f;u++)o[l.up[u]]=[0,-1*n]},_setZoomDelta:function(n){var o=this._zoomKeys={},l=this.keyCodes,u,f;for(u=0,f=l.zoomIn.length;u<f;u++)o[l.zoomIn[u]]=n;for(u=0,f=l.zoomOut.length;u<f;u++)o[l.zoomOut[u]]=-n},_addHooks:function(){pt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Rt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(n){if(!(n.altKey||n.ctrlKey||n.metaKey)){var o=n.keyCode,l=this._map,u;if(o in this._panKeys){if(!l._panAnim||!l._panAnim._inProgress)if(u=this._panKeys[o],n.shiftKey&&(u=X(u).multiplyBy(3)),l.options.maxBounds&&(u=l._limitOffset(X(u),l.options.maxBounds)),l.options.worldCopyJump){var f=l.wrapLatLng(l.unproject(l.project(l.getCenter()).add(u)));l.panTo(f)}else l.panBy(u)}else if(o in this._zoomKeys)l.setZoom(l.getZoom()+(n.shiftKey?3:1)*this._zoomKeys[o]);else if(o===27&&l._popup&&l._popup.options.closeOnEscapeKey)l.closePopup();else return;Ui(n)}}});Et.addInitHook("addHandler","keyboard",Qc),Et.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var tu=Ge.extend({addHooks:function(){pt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Rt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(n){var o=Ec(n),l=this._map.options.wheelDebounceTime;this._delta+=o,this._lastMousePos=this._map.mouseEventToContainerPoint(n),this._startTime||(this._startTime=+new Date);var u=Math.max(l-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(c(this._performZoom,this),u),Ui(n)},_performZoom:function(){var n=this._map,o=n.getZoom(),l=this._map.options.zoomSnap||0;n._stop();var u=this._delta/(this._map.options.wheelPxPerZoomLevel*4),f=4*Math.log(2/(1+Math.exp(-Math.abs(u))))/Math.LN2,b=l?Math.ceil(f/l)*l:f,x=n._limitZoom(o+(this._delta>0?b:-b))-o;this._delta=0,this._startTime=null,x&&(n.options.scrollWheelZoom==="center"?n.setZoom(o+x):n.setZoomAround(this._lastMousePos,o+x))}});Et.addInitHook("addHandler","scrollWheelZoom",tu);var Mv=600;Et.mergeOptions({tapHold:et.touchNative&&et.safari&&et.mobile,tapTolerance:15});var eu=Ge.extend({addHooks:function(){pt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Rt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(n){if(clearTimeout(this._holdTimeout),n.touches.length===1){var o=n.touches[0];this._startPos=this._newPos=new q(o.clientX,o.clientY),this._holdTimeout=setTimeout(c(function(){this._cancel(),this._isTapValid()&&(pt(document,"touchend",ne),pt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",o))},this),Mv),pt(document,"touchend touchcancel contextmenu",this._cancel,this),pt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function n(){Rt(document,"touchend",ne),Rt(document,"touchend touchcancel",n)},_cancel:function(){clearTimeout(this._holdTimeout),Rt(document,"touchend touchcancel contextmenu",this._cancel,this),Rt(document,"touchmove",this._onMove,this)},_onMove:function(n){var o=n.touches[0];this._newPos=new q(o.clientX,o.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(n,o){var l=new MouseEvent(n,{bubbles:!0,cancelable:!0,view:window,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX,clientY:o.clientY});l._simulated=!0,o.target.dispatchEvent(l)}});Et.addInitHook("addHandler","tapHold",eu),Et.mergeOptions({touchZoom:et.touch,bounceAtZoomLimits:!0});var iu=Ge.extend({addHooks:function(){vt(this._map._container,"leaflet-touch-zoom"),pt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){$t(this._map._container,"leaflet-touch-zoom"),Rt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(n){var o=this._map;if(!(!n.touches||n.touches.length!==2||o._animatingZoom||this._zooming)){var l=o.mouseEventToContainerPoint(n.touches[0]),u=o.mouseEventToContainerPoint(n.touches[1]);this._centerPoint=o.getSize()._divideBy(2),this._startLatLng=o.containerPointToLatLng(this._centerPoint),o.options.touchZoom!=="center"&&(this._pinchStartLatLng=o.containerPointToLatLng(l.add(u)._divideBy(2))),this._startDist=l.distanceTo(u),this._startZoom=o.getZoom(),this._moved=!1,this._zooming=!0,o._stop(),pt(document,"touchmove",this._onTouchMove,this),pt(document,"touchend touchcancel",this._onTouchEnd,this),ne(n)}},_onTouchMove:function(n){if(!(!n.touches||n.touches.length!==2||!this._zooming)){var o=this._map,l=o.mouseEventToContainerPoint(n.touches[0]),u=o.mouseEventToContainerPoint(n.touches[1]),f=l.distanceTo(u)/this._startDist;if(this._zoom=o.getScaleZoom(f,this._startZoom),!o.options.bounceAtZoomLimits&&(this._zoom<o.getMinZoom()&&f<1||this._zoom>o.getMaxZoom()&&f>1)&&(this._zoom=o._limitZoom(this._zoom)),o.options.touchZoom==="center"){if(this._center=this._startLatLng,f===1)return}else{var b=l._add(u)._divideBy(2)._subtract(this._centerPoint);if(f===1&&b.x===0&&b.y===0)return;this._center=o.unproject(o.project(this._pinchStartLatLng,this._zoom).subtract(b),this._zoom)}this._moved||(o._moveStart(!0,!1),this._moved=!0),$(this._animRequest);var x=c(o._move,o,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=B(x,this,!0),ne(n)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,$(this._animRequest),Rt(document,"touchmove",this._onTouchMove,this),Rt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Et.addInitHook("addHandler","touchZoom",iu),Et.BoxZoom=Kc,Et.DoubleClickZoom=Xc,Et.Drag=Jc,Et.Keyboard=Qc,Et.ScrollWheelZoom=tu,Et.TapHold=eu,Et.TouchZoom=iu,i.Bounds=wt,i.Browser=et,i.CRS=Ce,i.Canvas=qc,i.Circle=ns,i.CircleMarker=Kr,i.Class=w,i.Control=ze,i.DivIcon=Uc,i.DivOverlay=Ye,i.DomEvent=Jg,i.DomUtil=Kg,i.Draggable=xi,i.Evented=Q,i.FeatureGroup=ri,i.GeoJSON=ai,i.GridLayer=or,i.Handler=Ge,i.Icon=_n,i.ImageOverlay=eo,i.LatLng=St,i.LatLngBounds=Ft,i.Layer=je,i.LayerGroup=vn,i.LineUtil=dv,i.Map=Et,i.Marker=Yr,i.Mixin=ov,i.Path=wi,i.Point=q,i.PolyUtil=av,i.Polygon=bn,i.Polyline=oi,i.Popup=io,i.PosAnimation=Tc,i.Projection=hv,i.Rectangle=Yc,i.Renderer=si,i.SVG=sr,i.SVGOverlay=Zc,i.TileLayer=yn,i.Tooltip=no,i.Transformation=Wn,i.Util=nt,i.VideoOverlay=Vc,i.bind=c,i.bounds=Pt,i.canvas=Wc,i.circle=kv,i.circleMarker=bv,i.control=ir,i.divIcon=Iv,i.extend=a,i.featureGroup=gv,i.geoJSON=jc,i.geoJson=wv,i.gridLayer=Pv,i.icon=vv,i.imageOverlay=Ev,i.latLng=kt,i.latLngBounds=Ot,i.layerGroup=mv,i.map=Qg,i.marker=_v,i.point=X,i.polygon=xv,i.polyline=yv,i.popup=Av,i.rectangle=Dv,i.setOptions=k,i.stamp=h,i.svg=Gc,i.svgOverlay=Sv,i.tileLayer=Hc,i.tooltip=Cv,i.transformation=Bi,i.version=r,i.videoOverlay=Tv;var Nv=window.L;i.noConflict=function(){return window.L=Nv,this},window.L=i})})(pl,pl.exports);var ca=pl.exports;const eT=nh(ca),iT=$d({__proto__:null,default:eT},[ca]);/**
|
|
173
|
-
* Vue 3 Carousel 0.3.1
|
|
174
|
-
* (c) 2023
|
|
175
|
-
* @license MIT
|
|
176
|
-
*/const Jt={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Nd={itemsToShow:{default:Jt.itemsToShow,type:Number},itemsToScroll:{default:Jt.itemsToScroll,type:Number},wrapAround:{default:Jt.wrapAround,type:Boolean},throttle:{default:Jt.throttle,type:Number},snapAlign:{default:Jt.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:Jt.transition,type:Number},breakpoints:{default:Jt.breakpoints,type:Object},autoplay:{default:Jt.autoplay,type:Number},pauseAutoplayOnHover:{default:Jt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Jt.mouseDrag,type:Boolean},touchDrag:{default:Jt.touchDrag,type:Boolean},dir:{default:Jt.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:Jt.i18n,type:Object},settings:{default(){return{}},type:Object}};function nT({config:t,slidesCount:e}){const{snapAlign:i,wrapAround:r,itemsToShow:a=1}=t;if(r)return Math.max(e-1,0);let s;switch(i){case"start":s=e-a;break;case"end":s=e-1;break;case"center":case"center-odd":s=e-Math.ceil((a-.5)/2);break;case"center-even":s=e-Math.ceil(a/2);break;default:s=0;break}return Math.max(s,0)}function rT({config:t,slidesCount:e}){const{wrapAround:i,snapAlign:r,itemsToShow:a=1}=t;let s=0;if(i||a>e)return s;switch(r){case"start":s=0;break;case"end":s=a-1;break;case"center":case"center-odd":s=Math.floor((a-1)/2);break;case"center-even":s=Math.floor((a-2)/2);break;default:s=0;break}return s}function fl({val:t,max:e,min:i}){return e<i?t:Math.min(Math.max(t,i),e)}function oT({config:t,currentSlide:e,slidesCount:i}){const{snapAlign:r,wrapAround:a,itemsToShow:s=1}=t;let c=e;switch(r){case"center":case"center-odd":c-=(s-1)/2;break;case"center-even":c-=(s-2)/2;break;case"end":c-=s-1;break}return a?c:fl({val:c,max:i-s,min:0})}function bg(t){return t?t.reduce((e,i)=>{var r;return i.type===oe?[...e,...bg(i.children)]:((r=i.type)===null||r===void 0?void 0:r.name)==="CarouselSlide"?[...e,i]:e},[]):[]}function ml({val:t,max:e,min:i=0}){return t>e?ml({val:t-(e+1),max:e,min:i}):t<i?ml({val:t+(e+1),max:e,min:i}):t}function aT(t,e){let i;return e?function(...r){const a=this;i||(t.apply(a,r),i=!0,setTimeout(()=>i=!1,e))}:t}function sT(t,e){let i;return function(...r){i&&clearTimeout(i),i=setTimeout(()=>{t(...r),i=null},e)}}function lT(t="",e={}){return Object.entries(e).reduce((i,[r,a])=>i.replace(`{${r}}`,String(a)),t)}var cT=Dt({name:"ARIA",setup(){const t=ve("config",Ci(Object.assign({},Jt))),e=ve("currentSlide",W(0)),i=ve("slidesCount",W(0));return()=>he("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lT(t.i18n.itemXofY,{currentSlide:e.value+1,slidesCount:i.value}))}}),uT=Dt({name:"Carousel",props:Nd,setup(t,{slots:e,emit:i,expose:r}){var a;const s=W(null),c=W([]),d=W(0),h=W(0),p=Ci(Object.assign({},Jt));let m=Object.assign({},Jt),g;const v=W((a=t.modelValue)!==null&&a!==void 0?a:0),_=W(0),y=W(0),k=W(0),E=W(0);let C,N;Ke("config",p),Ke("slidesCount",h),Ke("currentSlide",v),Ke("maxSlide",k),Ke("minSlide",E),Ke("slideWidth",d);function O(){g=Object.assign({},t.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),t),{i18n:Object.assign(Object.assign({},m.i18n),t.i18n),breakpoints:void 0}),z(m)}function j(){if(!g||!Object.keys(g).length)return;const ct=Object.keys(g).map(jt=>Number(jt)).sort((jt,be)=>+be-+jt);let qt=Object.assign({},m);ct.some(jt=>{const be=window.matchMedia(`(min-width: ${jt}px)`).matches;return be&&(qt=Object.assign(Object.assign({},qt),g[jt])),be}),z(qt)}function z(ct){Object.entries(ct).forEach(([qt,jt])=>p[qt]=jt)}const U=sT(()=>{j(),V()},16);function V(){if(!s.value)return;const ct=s.value.getBoundingClientRect();d.value=ct.width/p.itemsToShow}function Z(){h.value<=0||(y.value=Math.ceil((h.value-1)/2),k.value=nT({config:p,slidesCount:h.value}),E.value=rT({config:p,slidesCount:h.value}),p.wrapAround||(v.value=fl({val:v.value,max:k.value,min:E.value})))}Ae(()=>{Ud(()=>V()),setTimeout(()=>V(),1e3),j(),X(),window.addEventListener("resize",U,{passive:!0}),i("init")}),Zd(()=>{N&&clearTimeout(N),C&&clearInterval(C),window.removeEventListener("resize",U,{passive:!0})});let T=!1;const A={x:0,y:0},B={x:0,y:0},$=Ci({x:0,y:0}),nt=W(!1),w=W(!1),P=()=>{nt.value=!0},F=()=>{nt.value=!1};function Q(ct){["INPUT","TEXTAREA","SELECT"].includes(ct.target.tagName)||(T=ct.type==="touchstart",T||ct.preventDefault(),!(!T&&ct.button!==0||Pt.value)&&(A.x=T?ct.touches[0].clientX:ct.clientX,A.y=T?ct.touches[0].clientY:ct.clientY,document.addEventListener(T?"touchmove":"mousemove",q,!0),document.addEventListener(T?"touchend":"mouseup",ht,!0)))}const q=aT(ct=>{w.value=!0,B.x=T?ct.touches[0].clientX:ct.clientX,B.y=T?ct.touches[0].clientY:ct.clientY;const qt=B.x-A.x,jt=B.y-A.y;$.y=jt,$.x=qt},p.throttle);function ht(){const ct=p.dir==="rtl"?-1:1,qt=Math.sign($.x)*.4,jt=Math.round($.x/d.value+qt)*ct;if(jt&&!T){const be=ki=>{ki.stopPropagation(),window.removeEventListener("click",be,!0)};window.addEventListener("click",be,!0)}Ft(v.value-jt),$.x=0,$.y=0,w.value=!1,document.removeEventListener(T?"touchmove":"mousemove",q,!0),document.removeEventListener(T?"touchend":"mouseup",ht,!0)}function X(){!p.autoplay||p.autoplay<=0||(C=setInterval(()=>{p.pauseAutoplayOnHover&&nt.value||Ot()},p.autoplay))}function wt(){C&&(clearInterval(C),C=null),X()}const Pt=W(!1);function Ft(ct){const qt=p.wrapAround?ct:fl({val:ct,max:k.value,min:E.value});v.value===qt||Pt.value||(i("slide-start",{slidingToIndex:ct,currentSlideIndex:v.value,prevSlideIndex:_.value,slidesCount:h.value}),Pt.value=!0,_.value=v.value,v.value=qt,N=setTimeout(()=>{if(p.wrapAround){const jt=ml({val:qt,max:k.value,min:0});jt!==v.value&&(v.value=jt,i("loop",{currentSlideIndex:v.value,slidingToIndex:ct}))}i("update:modelValue",v.value),i("slide-end",{currentSlideIndex:v.value,prevSlideIndex:_.value,slidesCount:h.value}),Pt.value=!1,wt()},p.transition))}function Ot(){Ft(v.value+p.itemsToScroll)}function St(){Ft(v.value-p.itemsToScroll)}const kt={slideTo:Ft,next:Ot,prev:St};Ke("nav",kt),Ke("isSliding",Pt);const Ce=lt(()=>oT({config:p,currentSlide:v.value,slidesCount:h.value}));Ke("slidesToScroll",Ce);const $e=lt(()=>{const ct=p.dir==="rtl"?-1:1,qt=Ce.value*d.value*ct;return{transform:`translateX(${$.x-qt}px)`,transition:`${Pt.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${h.value*d.value}px`:"",width:"100%"}});function qn(){O(),j(),Z(),V(),wt()}Object.keys(Nd).forEach(ct=>{["modelValue"].includes(ct)||Ut(()=>t[ct],qn)}),Ut(()=>t.modelValue,ct=>{ct!==v.value&&Ft(Number(ct))}),Ut(h,Z),i("before-init"),O();const dn={config:p,slidesCount:h,slideWidth:d,next:Ot,prev:St,slideTo:Ft,currentSlide:v,maxSlide:k,minSlide:E,middleSlide:y};r({updateBreakpointsConfigs:j,updateSlidesData:Z,updateSlideWidth:V,initDefaultConfigs:O,restartCarousel:qn,slideTo:Ft,next:Ot,prev:St,nav:kt,data:dn});const Wn=e.default||e.slides,Bi=e.addons,hn=Ci(dn);return()=>{const ct=bg(Wn?.(hn)),qt=Bi?.(hn)||[];ct.forEach((Gn,pn)=>Gn.props.index=pn);let jt=ct;if(p.wrapAround){const Gn=ct.map((zi,yi)=>au(zi,{index:-ct.length+yi,isClone:!0,key:`clone-before-${yi}`})),pn=ct.map((zi,yi)=>au(zi,{index:ct.length+yi,isClone:!0,key:`clone-after-${yi}`}));jt=[...Gn,...ct,...pn]}c.value=ct,h.value=Math.max(ct.length,1);const be=he("ol",{class:"carousel__track",style:$e.value,onMousedownCapture:p.mouseDrag?Q:null,onTouchstartPassiveCapture:p.touchDrag?Q:null},jt),ki=he("div",{class:"carousel__viewport"},be);return he("section",{ref:s,class:{carousel:!0,"is-sliding":Pt.value,"is-dragging":w.value,"is-hover":nt.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:P,onMouseleave:F},[ki,qt,he(cT)])}}}),gl;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(gl||(gl={}));const dT={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function hT(t){return t in gl}const vl=t=>{const e=ve("config",Ci(Object.assign({},Jt))),i=String(t.name),r=`icon${i.charAt(0).toUpperCase()+i.slice(1)}`;if(!i||typeof i!="string"||!hT(i))return;const a=dT[i],s=he("path",{d:a}),c=e.i18n[r]||t.title||i,d=he("title",c);return he("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":c},[d,s])};vl.props={name:String,title:String};const pT=(t,{slots:e,attrs:i})=>{const{next:r,prev:a}=e||{},s=ve("config",Ci(Object.assign({},Jt))),c=ve("maxSlide",W(1)),d=ve("minSlide",W(1)),h=ve("currentSlide",W(1)),p=ve("nav",{}),{dir:m,wrapAround:g,i18n:v}=s,_=m==="rtl",y=he("button",{type:"button",class:["carousel__prev",!g&&h.value<=d.value&&"carousel__prev--disabled",i?.class],"aria-label":v.ariaPreviousSlide,onClick:p.prev},a?.()||he(vl,{name:_?"arrowRight":"arrowLeft"})),k=he("button",{type:"button",class:["carousel__next",!g&&h.value>=c.value&&"carousel__next--disabled",i?.class],"aria-label":v.ariaNextSlide,onClick:p.next},r?.()||he(vl,{name:_?"arrowLeft":"arrowRight"}));return[y,k]};var fT=Dt({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:e}){const i=ve("config",Ci(Object.assign({},Jt))),r=ve("currentSlide",W(0)),a=ve("slidesToScroll",W(0)),s=ve("isSliding",W(!1)),c=()=>t.index===r.value,d=()=>t.index===r.value-1,h=()=>t.index===r.value+1,p=()=>{const m=Math.floor(a.value),g=Math.ceil(a.value+i.itemsToShow-1);return t.index>=m&&t.index<=g};return()=>{var m;return he("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":p(),"carousel__slide--active":c(),"carousel__slide--prev":d(),"carousel__slide--next":h(),"carousel__slide--sliding":s.value},"aria-hidden":!p()},(m=e.default)===null||m===void 0?void 0:m.call(e))}}});const mT="var(--flatfinder-color-upcoming)",Ms={"current-bg":"var(--flatfinder-color-current)","current-border":"var(--flatfinder-color-current)","current-border-opacity":"0","current-hover":"hsl(var(--flatfinder-color-current-h), var(--flatfinder-color-current-s), calc(var(--flatfinder-color-current-l) + 50%))","current-border-hover":"hsl(var(--flatfinder-color-current-h), var(--flatfinder-color-current-s), calc(var(--flatfinder-color-current-l) + 50%))",upcoming:mT,"upcoming-border":"var(--flatfinder-color-upcoming)","upcoming-border-opacity":"0","upcoming-hover":"hsl(var(--flatfinder-color-upcoming-h), var(--flatfinder-color-upcoming-s), calc(var(--flatfinder-color-upcoming-l) + 50%))","upcoming-border-hover":"hsl(var(--flatfinder-color-upcoming-h), var(--flatfinder-color-upcoming-s), calc(var(--flatfinder-color-upcoming-l) + 50%))","sale-bg":"var(--flatfinder-color-success)","sale-border":"var(--flatfinder-color-success)","sale-border-opacity":"0","sale-hover":"hsl(var(--flatfinder-color-success-h), var(--flatfinder-color-success-s), calc(var(--flatfinder-color-success-l) + 50%))","sale-border-hover":"hsl(var(--flatfinder-color-success-h), var(--flatfinder-color-success-s), calc(var(--flatfinder-color-success-l) + 50%))","rent-bg":"var(--flatfinder-color-success)","rent-border":"var(--flatfinder-color-success)","rent-border-opacity":"0","rent-hover":"hsl(var(--flatfinder-color-success-h), var(--flatfinder-color-success-s), calc(var(--flatfinder-color-success-l) + 50%))","rent-border-hover":"hsl(var(--flatfinder-color-success-h), var(--flatfinder-color-success-s), calc(var(--flatfinder-color-success-l) + 50%))","rented-bg":"var(--flatfinder-color-error)","rented-border":"var(--flatfinder-color-error)","rented-border-opacity":"0","rented-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","rented-border-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","sold-bg":"var(--flatfinder-color-error)","sold-border":"var(--flatfinder-color-error)","sold-border-opacity":"0","sold-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","sold-border-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","reserved-bg":"var(--flatfinder-color-warning)","reserved-border":"var(--flatfinder-color-warning)","reserved-border-opacity":"0","reserved-hover":"hsl(var(--flatfinder-color-warning-h), var(--flatfinder-color-warning-s), calc(var(--flatfinder-color-warning-l) + 50%))","reserved-border-hover":"hsl(var(--flatfinder-color-warning-h), var(--flatfinder-color-warning-s), calc(var(--flatfinder-color-warning-l) + 50%))","project-sale-bg":"var(--flatfinder-color-project)","project-sale-border":"var(--flatfinder-color-project)","project-sale-border-opacity":"0","project-sale-hover":"hsl(var(--flatfinder-color-project-h), var(--flatfinder-color-project-s), calc(var(--flatfinder-color-project-l) - 15%))","project-sale-border-hover":"hsl(var(--flatfinder-color-project-h), var(--flatfinder-color-project-s), calc(var(--flatfinder-color-project-l) - 15%))","project-sold-bg":"var(--flatfinder-color-error)","project-sold-border":"var(--flatfinder-color-error)","project-sold-border-opacity":"0","project-sold-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","project-sold-border-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","project-undefined-bg":"var(--flatfinder-color-error)","project-undefined-border":"var(--flatfinder-color-error)","project-undefined-border-opacity":"0","project-undefined-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","project-undefined-border-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","flatfinder-sale-bg":"var(--flatfinder-color-flatfinder)","flatfinder-sale-border":"var(--flatfinder-color-flatfinder)","flatfinder-sale-border-opacity":"0","flatfinder-sale-hover":"hsl(var(--flatfinder-color-flatfinder-h), var(--flatfinder-color-flatfinder-s), calc(var(--flatfinder-color-flatfinder-l) - 15%))","flatfinder-sale-border-hover":"hsl(var(--flatfinder-color-flatfinder-h), var(--flatfinder-color-flatfinder-s), calc(var(--flatfinder-color-flatfinder-l) - 15%))","flatfinder-undefined-bg":"var(--flatfinder-color-flatfinder)","flatfinder-undefined-border":"var(--flatfinder-color-flatfinder)","flatfinder-undefined-border-opacity":"0","flatfinder-undefined-hover":"hsl(var(--flatfinder-color-flatfinder-h), var(--flatfinder-color-flatfinder-s), calc(var(--flatfinder-color-flatfinder-l) - 15%))","flatfinder-undefined-border-hover":"hsl(var(--flatfinder-color-flatfinder-h), var(--flatfinder-color-flatfinder-s), calc(var(--flatfinder-color-flatfinder-l) - 15%))","flatfinder-sold-bg":"var(--flatfinder-color-error)","flatfinder-sold-border":"var(--flatfinder-color-error)","flatfinder-sold-border-opacity":"0","flatfinder-sold-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","flatfinder-sold-border-hover":"hsl(var(--flatfinder-color-error-h), var(--flatfinder-color-error-s), calc(var(--flatfinder-color-error-l) + 50%))","link-undefined-bg":"var(--flatfinder-color-flatfinder)","link-undefined-border":"var(--flatfinder-color-flatfinder)","link-undefined-border-opacity":"0","link-undefined-hover":"hsl(var(--flatfinder-color-flatfinder-h), var(--flatfinder-color-flatfinder-s), calc(var(--flatfinder-color-flatfinder-l) - 15%))","link-undefined-border-hover":"hsl(var(--flatfinder-color-flatfinder-h), var(--flatfinder-color-flatfinder-s), calc(var(--flatfinder-color-flatfinder-l) - 15%))"},gT=Dt({components:{Icon:He,Button:Di},props:{value:{type:Object,default:()=>({})},popper:{type:Boolean,default:!1}},emits:["get:action"],setup(){const{kvassConfig:t}=Bf(),{t:e}=Mr();return{kvassConfig:t,path:zf,Currency:Ao,t:e}},computed:{isCurrent(){if("$route"in this&&this.$route)return this.$route.params?.id===this.reference.id},reference(){return this.path("value.reference",this)},buttonLabel(){if(this.isCurrent)return this.t("youAreHere");let t;switch(this.reference?.onModel){case"Residential":t=(this.path("customLabels.propertyType",this.kvassConfig)??this.path("reference.propertyType.0.formatted",this)??"").toLowerCase();break;default:t=this.reference?.name}return this.t("lookAt",{x:t})},properties(){return(this.path("reference.properties",this)||[]).slice(0,3)},fee(){return this.path("reference.sale.fee.value",this)},total(){let t=this.path("reference.sale.value",this);if(t)return!this.path("reference.sale.fee.included",this)&&this.fee&&(t+=this.fee),this.jointDebt&&(t+=this.jointDebt),Ao(t)},jointDebt(){return this.path("reference.sale.jointDebt",this)},cover(){return(this.path("value.data.thumbnailType",this)||"cover")==="floorplan"?this.path("reference.media.floorplan.0.url",this):this.path("reference.media.cover.0.url",this)||this.path("reference.image.url",this)},hasPrice(){return!!this.path("reference.sale.value",this)},price(){const t=this.path("sale.value",this.reference);if(this.reference.status)switch(this.reference.status){case"sale":return[null,void 0].includes(t)?this.t("priceOnRequest"):t;case"reserved":return`${this.t(`residentialStatus:${this.reference.sale.type}.${this.reference.status}`)}${t&&!this.kvassConfig.get("siteSettings.hideReservedPrice")?` (${t})`:""}`;case"rent":return[null,void 0].includes(t)?this.t("priceOnRequest"):`${t} / ${this.t("multiplicatorMonthly")}.`;default:return this.t(`residentialStatus:${this.reference.sale.type}.${this.reference.status}`)}},formattedPrice(){return typeof this.price=="number"?Ao(this.price):this.price}},methods:{getIconMap(t){switch(t){case"leisurePlot":case"plot":return"rectangle";case"office":return"building";case"storage":return"warehouse";default:return"house"}}}}),vT={class:"flatfinder-leaflet-v1-card__wrapper"},_T={key:0,class:"flatfinder-leaflet-v1-card__cover-fallback"},bT={class:"flatfinder-leaflet-v1-card__content grow-1"},kT={class:"flatfinder-leaflet-v1-card__title"},yT=["innerHTML"],xT={key:1,class:"flatfinder-leaflet-v1-card__properties-wrapper"},wT=["data-id"],ET={class:"mr-1"},TT={key:2,class:"flatfinder-leaflet-v1-card__price-wrapper"},ST={class:"flatfinder-leaflet-v1-card__price"},AT={key:0,class:"flatfinder-leaflet-v1-card__price-label"},CT={key:0},IT={key:4,class:"summary__price-total"};function PT(t,e,i,r,a,s){const c=_e("Icon"),d=_e("Button");return t.reference?(R(),K("div",{key:0,class:ti(["flatfinder-leaflet-v1-card",[{"flatfinder-leaflet-v1-card--visible":t.reference.id,"flatfinder-leaflet-v1-card-theme--popper":t.popper,"flatfinder-leaflet-v1-card-theme--carousel":!t.popper,[`flatfinder-leaflet-v1-card-status--${t.reference.status}`]:t.reference.status},`flatfinder-leaflet-v1-card-type--${t.value.data&&t.value.data.redirectUrl?"link":t.reference.onModel.toLowerCase()}`]])},[tt("div",vT,[t.cover?(R(),K("div",{key:1,class:"flatfinder-leaflet-v1-card__cover",style:hi({backgroundImage:`url(${t.cover})`})},null,4)):(R(),K("div",_T,[Ht(c,{icon:`fa-pro-thin:${t.getIconMap(t.reference.propertyType[0].value)}`},null,8,["icon"])])),tt("div",bT,[tt("h3",kT,_t(t.reference.name),1),t.value.data&&t.value.data.description?(R(),K("div",{key:0,class:"flatfinder-leaflet-v1-card__description",innerHTML:t.value.data.description},null,8,yT)):ut("",!0),t.properties.length?(R(),K("div",xT,[(R(!0),K(oe,null,vi(t.properties,h=>(R(),K("div",{key:h.key,"data-id":h.key,class:"flatfinder-leaflet-v1-card__properties"},[tt("b",ET,_t(h.label||t.t(h.key)),1),tt("span",null,_t(h.formatted),1)],8,wT))),128))])):ut("",!0),["Residential"].includes(t.reference.onModel)?(R(),K("div",TT,[tt("div",ST,_t(t.formattedPrice),1),t.hasPrice&&t.reference.status==="sale"?(R(),K("div",AT,[t.path("sale.jointDebt",t.reference)?(R(),K("div",CT,[le(" + "+_t(t.t("jointDebt").toLowerCase())+" ",1),t.jointDebt?(R(),K(oe,{key:0},[le(" ("+_t(t.Currency(t.jointDebt))+") ",1)],64)):ut("",!0)])):ut("",!0),t.path("sale.fee.included",t.reference)?(R(),K(oe,{key:1},[le(_t(t.t("residentialSaleFeeIncluded",{value:null})),1)],64)):(R(),K(oe,{key:2},[le(" + "+_t(t.t("residentialSaleFee").toLowerCase()),1)],64)),t.fee?(R(),K(oe,{key:3},[le(" ("+_t(t.Currency(t.fee))+") ",1)],64)):ut("",!0),t.total&&t.total!==t.price?(R(),K("strong",IT,_t(`${t.t("totalPrice")}: ${t.total}`),1)):ut("",!0)])):ut("",!0)])):ut("",!0),t.popper?ut("",!0):(R(),Ct(d,{key:3,class:"flatfinder-leaflet-v1-card__button",label:t.buttonLabel,variant:"secondary","icon-right":t.isCurrent?"fa-pro-solid:map-pin":"fa-pro-solid:arrow-right",disabled:t.isCurrent,onClick:e[0]||(e[0]=h=>t.$emit("get:action"))},null,8,["label","icon-right","disabled"]))])])],2)):ut("",!0)}const kg=Ca(gT,[["render",PT]]);function OT(t){return t!=null&&typeof t=="object"&&"$el"in t}function Fd(t){if(OT(t)){const e=t.$el;return Jl(e)&&mi(e)==="#comment"?null:e}return t}function yg(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Rd(t,e){const i=yg(t);return Math.round(e*i)/i}function LT(t,e,i){i===void 0&&(i={});const r=i.whileElementsMounted,a=lt(()=>{var V;return(V=dt(i.open))!=null?V:!0}),s=lt(()=>dt(i.middleware)),c=lt(()=>{var V;return(V=dt(i.placement))!=null?V:"bottom"}),d=lt(()=>{var V;return(V=dt(i.strategy))!=null?V:"absolute"}),h=lt(()=>{var V;return(V=dt(i.transform))!=null?V:!0}),p=lt(()=>Fd(t.value)),m=lt(()=>Fd(e.value)),g=W(0),v=W(0),_=W(d.value),y=W(c.value),k=da({}),E=W(!1),C=lt(()=>{const V={position:_.value,left:"0",top:"0"};if(!m.value)return V;const Z=Rd(m.value,g.value),T=Rd(m.value,v.value);return h.value?{...V,transform:"translate("+Z+"px, "+T+"px)",...yg(m.value)>=1.5&&{willChange:"transform"}}:{position:_.value,left:Z+"px",top:T+"px"}});let N;function O(){p.value==null||m.value==null||_g(p.value,m.value,{middleware:s.value,placement:c.value,strategy:d.value}).then(V=>{g.value=V.x,v.value=V.y,_.value=V.strategy,y.value=V.placement,k.value=V.middlewareData,E.value=!0})}function j(){typeof N=="function"&&(N(),N=void 0)}function z(){if(j(),r===void 0){O();return}if(p.value!=null&&m.value!=null){N=r(p.value,m.value,O);return}}function U(){a.value||(E.value=!1)}return Ut([s,c,d],O,{flush:"sync"}),Ut([p,m],z,{flush:"sync"}),Ut(a,U,{flush:"sync"}),bl()&&kl(j),{x:Ne(g),y:Ne(v),strategy:Ne(_),placement:Ne(y),middlewareData:Ne(k),isPositioned:Ne(E),floatingStyles:C,update:O}}const DT=Dt({__name:"Popover",props:{value:{},mouse:{}},setup(t){const e=t,i=W(),r=W();function a(){r.value={getBoundingClientRect:()=>({x:e.mouse.x,y:e.mouse.y,width:0,height:0,top:e.mouse.y,right:e.mouse.x,bottom:e.mouse.y,left:e.mouse.x})}}Ae(()=>{a()}),Ut(()=>[e.mouse.x,e.mouse.y],()=>a(),{immediate:!0});const{floatingStyles:s}=LT(r,i,{middleware:[vg({boundary:wb().value}),QE(),cg(30),{name:"detect-overflow",async fn(c){return await Lr(c),{}}}]});return(c,d)=>(R(),Ct(kg,{ref_key:"popper",ref:i,value:c.value,popper:!0,style:hi(dt(s)),class:"flatfinder-leaflet-v1-popper-card"},null,8,["value","style"]))}}),MT=Dt({components:{Card:kg,Slide:fT,Carousel:uT,Popover:DT,Navigation:pT},props:{value:{type:Array,default:()=>[]},image:String,dimensions:{type:Object,required:!0},preventNavigation:{type:Boolean,default:!1},preventFlatfinderNavigation:{type:Boolean,default:!1},preventNavigationOnStatus:{type:Array,default:()=>[]},isSmallDevice:{type:Boolean,default:!1},pathPrefix:String,projectUrl:{type:String,requried:!0}},setup(){const t=W(),e=Ci(xb({type:"client"})),i=W(),r=W(),a=W(),s=W(),c=W(!0),d=W(0),h=ca.extend({},ca.CRS.Simple),p=W(!1),{getSearchParam:m,navigateTo:g,routerLocation:v,origin:_}=rg();return{mapRef:t,mouse:e,map:i,layer:r,overlay:a,hover:s,permanentTooltip:c,current:d,customZoom:h,hasCurrent:p,Leaflet:iT,navigateTo:g,getSearchParam:m,routerLocation:v,routerOrigin:_}},computed:{ratio(){return this.dimensions.width/this.dimensions.height},style(){const t=screen.availHeight-300,e=Math.min(this.dimensions.width/this.dimensions.height*t,this.dimensions.width);return{"--map-ratio":`${this.ratio}`,maxWidth:`${e}px`}}},watch:{image:"init",value:"render",route:"render"},mounted(){this.init()},beforeUnmount(){this.destroyMap()},methods:{onPageChange(t){this.current!==t&&(this.addLayer(t),this.removeLayer(this.current),this.current=t)},getLayer(t){return Object.values(this.layer.getLayers()).find(e=>e.currentId===t)},addLayer(t){const e=this.getLayer(t);e&&this.appendLayer(e,this.value[t])},removeLayer(t){const e=this.getLayer(t);e&&this.initialLayer(e,this.value[t])},appendLayer(t,e){const i=["Project","Flatfinder","Link"].includes(e.reference.onModel);if(t.setStyle({fillColor:this.getColor(e,!0),color:this.getColor(e,!0,"-border")}),t._path.classList.add("flatfinder-layer--current-animated"),i){if(this.isSmallDevice)return;t.getTooltip()?.getElement()?.classList.remove("flatfinder-tooltip--muted")}},initialLayer(t,e){const i=["Project","Flatfinder","Link"].includes(e.reference.onModel);if(t.setStyle({fillColor:this.getColor(e,!1),color:this.getColor(e,!1,"-border")}),t._path.classList.remove("flatfinder-layer--current-animated"),i){if(this.isSmallDevice)return;t.getTooltip()?.getElement()?.classList.add("flatfinder-tooltip--muted")}},getColor(t,e,i="-bg"){const{reference:r}=t;if(this.checkIfRefIsCurrent(r.id))return Ms[`current${i}${e?"-hover":""}`];switch(r.onModel){case"Residential":return Ms[`${t.status.toLowerCase()}${i}${e?"-hover":""}`];default:return Ms[`${r.onModel.toLowerCase()}-${t.status}${i}${e?"-hover":""}`]}},checkIfRefIsCurrent(t){return"$route"in this?(this.$route.params?.id||this.$route.meta?.identifier)===t:this.routerLocation?.split("/").at(-1)===t},getAction(t){if(this.$emit("click",t.reference),t.data.redirectUrl)return window.location.href=t.data.redirectUrl;switch(t.reference.onModel){case"Residential":if(this.preventNavigation||this.preventNavigationOnStatus.includes(t.reference.status))return;if(t.reference.redirectUrl)return window.location.href=t.reference.redirectUrl;const e=this.projectUrl+(this.hasCurrent?`${t.reference.id}`:`${this.pathPrefix}/${t.reference.id}`);return this.navigateTo(e);case"Flatfinder":return this.preventFlatfinderNavigation?void 0:this.$emit("switch",t.reference);case"Project":return this.preventNavigation?void 0:window.location.href=t.reference.url;case"Link":return this.preventNavigation?void 0:window.location.href=t.reference.href}},render(){this.hover=null,this.layer&&(this.layer.clearLayers(),this.value.forEach((t,e)=>{const i=this.checkIfRefIsCurrent(t.reference.id),r=["Project","Flatfinder","Link"].includes(t.reference.onModel),a=this.Leaflet.GeoJSON.geometryToLayer(t.data,{weight:1,color:this.getColor(t,!1,"-border"),fillColor:this.getColor(t),fillOpacity:.3,opacity:this.getColor(t,!1,"-border-opacity"),className:`reference-${t.reference.id} status-${r?"none":t.reference.status} ${r?"flatfinder-layer--animated":""} ${i?"flatfinder-layer--current":""} flatfinder-layer--delay-${e%20}`});if(a._external_id=t.reference.id,a.currentId=e,this.layer.addLayer(a),i&&(this.hasCurrent=!0,this.$nextTick(()=>this.current=e)),a.on("mouseover",()=>{this.isSmallDevice||this.appendLayer(a,t)}),a.on("mouseout",()=>{this.initialLayer(a,t)}),r&&!this.isSmallDevice){const s=`<span class="flatfinder-tooltip__title"> ${t.reference.name||t.reference.label}</span>`;if(a.bindTooltip(s,{direction:"center",permanent:this.permanentTooltip,className:`flatfinder-tooltip--muted flatfinder-tooltip flatfinder-tooltip-${t.reference.id} flatfinder-tooltip-type--${t.data.redirectUrl?"link":t.reference.onModel.toLowerCase()}`}),t.data.description){let c=function(){_g(a.getTooltip()?.getElement(),d,{placement:"bottom",middleware:[cg(-30),vg({padding:8,mainAxis:!0,crossAxis:!0}),tT()]}).then(({x:m,y:g})=>{Object.assign(d.style,{top:`${g}px`,left:`${m}px`})})};const d=document.createElement("div");d.classList.add("flatfinder-tooltip__description"),d.setAttribute("data-visible","false"),d.innerHTML=`
|
|
177
|
-
<strong>${t.reference.name||t.reference.label}</strong>
|
|
178
|
-
<span>${t.data.description}</span>
|
|
179
|
-
`,this.mapRef?.append(d),c(),this.map?.on("move",()=>{c()});const h=()=>{a.getTooltip()?.getElement()?.classList.add("flatfinder-tooltip--hidden"),d.setAttribute("data-visible","true")},p=()=>{a.getTooltip()?.getElement()?.classList.remove("flatfinder-tooltip--hidden"),d.setAttribute("data-visible","false")};a._path.addEventListener("mouseenter",h),a._path.addEventListener("mouseleave",p)}}["Residential"].includes(t.reference.onModel)&&(a.on("mouseover",()=>{this.isSmallDevice||(this.hover=t)}),a.on("mouseout",()=>{this.isSmallDevice||(this.hover=null)})),a.on("click",()=>this.isSmallDevice?(this.current!==e&&(this.removeLayer(this.current),this.current=e),this.appendLayer(a,t)):this.getAction(t)),this.isSmallDevice&&(e===this.current&&this.appendLayer(a,t),i&&(this.removeLayer(this.current),this.appendLayer(a,t)))}))},destroyMap(){this.map&&(this.map.off(),this.map.remove())},initMap(){this.map&&this.destroyMap(),this.map=this.Leaflet.map(this.mapRef,{minZoom:-4,maxZoom:4,center:[0,0],zoom:0,zoomSnap:.01,maxBoundsViscosity:.85,scrollWheelZoom:!1,crs:this.customZoom}),this.layer=this.Leaflet.featureGroup(),this.map.addLayer(this.layer)},init(){if(!this.image)return;this.map||this.initMap(),this.layer&&this.layer.clearLayers();const t=this.map.unproject([0,this.dimensions.height],0),e=this.map.unproject([this.dimensions.width,0],0),i=new this.Leaflet.LatLngBounds(t,e);this.overlay&&this.map.hasLayer(this.overlay)&&this.map.removeLayer(this.overlay),this.overlay=this.Leaflet.imageOverlay(this.image,i).addTo(this.map),this.map.fitBounds(i,{animate:!1}),this.map.setMaxBounds(i),this.render(),window.flatfinder=this.map}}}),NT={ref:"mapRef",class:"flatfinder-leaflet-v1__map"},FT={class:"flatfinder-leaflet-v1__top-right"},RT={class:"flatfinder-leaflet-v1__top-left"},BT={class:"flatfinder-leaflet-v1__bottom-right"},zT={class:"flatfinder-leaflet-v1__bottom-left"};function jT(t,e,i,r,a,s){const c=_e("Popover"),d=_e("Card"),h=_e("Slide"),p=_e("Navigation"),m=_e("Carousel");return R(),K("div",{class:ti(["flatfinder-leaflet-v1",{"flatfinder-leaflet-v1--is-small-device":t.isSmallDevice}])},[tt("div",{class:"flatfinder-leaflet-v1__aspect",style:hi({...t.style})},[tt("div",NT,null,512),tt("div",FT,[xt(t.$slots,"top-right")]),tt("div",RT,[xt(t.$slots,"top-left")]),tt("div",BT,[xt(t.$slots,"bottom-right")]),tt("div",zT,[xt(t.$slots,"bottom-left")])],4),t.hover?(R(),Ct(c,{key:0,value:t.hover,mouse:t.mouse},null,8,["value","mouse"])):ut("",!0),t.isSmallDevice?(R(),Ct(m,{key:1,class:"flatfinder-leaflet-v1__carousel","per-page":1,"model-value":t.current,onSlideStart:e[0]||(e[0]=({slidingToIndex:g})=>t.onPageChange(g))},{addons:Xt(({slidesCount:g})=>[g>1?(R(),Ct(p,{key:0})):ut("",!0)]),default:Xt(()=>[(R(!0),K(oe,null,vi(t.value,(g,v)=>(R(),Ct(h,{key:v,class:"flatfinder-leaflet-v1__slide"},{default:Xt(()=>[Ht(d,{value:g,class:ti(["flatfinder-leaflet-v1__slide-card",[g.reference.onModel==="Residential"&&g.reference.status?`flatfinder-leaflet-v1__slide-card-status--${g.reference.status}`:"",`flatfinder-leaflet-v1__slide-card-model--${g.reference.onModel.toLowerCase()}`]]),"onGet:action":_=>t.getAction(g)},null,8,["value","class","onGet:action"])]),_:2},1024))),128))]),_:1},8,["model-value"])):ut("",!0)],2)}const VT=Ca(MT,[["render",jT]]),Ns=Eb(),ZT=Dt({components:{FilterComponent:xE,FlatfinderComponent:VT},provide(){return{current:this.current}},props:{projectUrl:{type:String,required:!0},value:{type:Array,required:!0},suggested:{type:Object,default:()=>({})},properties:{type:Array,default:()=>[]},preventNavigation:{type:Boolean,default:!1},isSmallDevice:{type:Boolean,default:!1},customStatusFilter:{type:Array,default:()=>[]},pathPrefix:{type:String,default:"/"}},setup(t){const e=W(),i=kb(e);rh({url:t.projectUrl+"/api/graphql"});const{kvassApi:r}=Bf(),{t:a}=Mr(),s=W(),c=W(),d=W(),h=W([]),p=lt(()=>window.innerWidth);return{getFlatfinder:ab,getFlatfinderMetadata:sb,intersect:i,root:e,kvassApi:r,current:s,item:c,filter:h,windowWidth:p,flatfinderMetadata:d,t:a}},computed:{visibleItemIds(){return this.item?.id?this.item.items.map(t=>t.reference.id):[]},items(){return this.current?.id!==this.item?.id?[]:this.item.items||[]},showFilter(){return this.filter.length?!0:this.intersect&&(this.items.some(t=>t.reference.onModel==="Residential")||this.filter.length)},children(){return this.value.filter(t=>t.parent&&t.parent.id===this.current?.id&&!this.visibleItemIds.includes(t.id))},siblings(){return this.value.filter(t=>t.id===this.current.id?!1:t.parent?.id===this.current?.parent?.id)},parent(){return this.value.find(t=>t.id===this.current?.parent?.id)},entry(){if(this.value.length)return this.value.find(t=>t.isEntry)||this.value[0]}},watch:{value:{handler:"setDefault",immediate:!0},filter:{handler(t){this.fetchDebounce()}},intersect:{handler:"fetch",immediate:!0},current:{handler(){this.$nextTick(()=>{Ns.emit("onChange",this.current)}),this.fetch()},immediate:!0}},created(){try{const t=sessionStorage.getItem("flatfinder_current");if(t){const e=JSON.parse(t);e&&e.id&&this.setCurrent(e)}}catch{}Ns.on("setCurrent",this.setCurrent)},methods:{setDefault(t=!1){this.current?.id&&!t||(this.current=this.suggested?.id?this.suggested:this.entry)},setCurrent(t){this.current=t,this.storeCurrent()},onClick(t){Ns.emit("click",t)},storeCurrent(){window.sessionStorage.setItem("flatfinder_current",JSON.stringify(this.current))},fetchDebounce(){const t=new Proxy(this,{get(e,i){return e[i]},set(e,i,r){return e[i]=r}});Zb(()=>{t.fetch()},500)()},async fetch(){if(!this.current?.id||!this.intersect)return;const t=["!draft"];this.filter.length&&t.push("!sold","!rented");const[e,i]=await Promise.all([this.getFlatfinder({id:this.current.id,properties:this.properties,filter:{status:[...t,...this.customStatusFilter],properties:[...this.filter]}}),this.getFlatfinderMetadata({id:this.current.id})]);this.item=e.Flatfinder,this.flatfinderMetadata=i}}}),UT={ref:"root",class:"flatfinder"},HT={key:0,class:"flatfinder__container"},$T={class:"flatfinder__header"},qT={class:"flatfinder__title"},WT={key:0,class:"flatfinder__content"},GT={key:0,class:"flatfinder__filter-count flatfinder__overlay"},YT={class:"flatfinder__attribution flatfinder__overlay"},KT={class:"flatfinder__list"},XT={class:"flatfinder__list-item-label"},JT=["onClick"],QT={class:"flatfinder__list-item-label"},tS={key:1,class:"flatfinder__filter-wrapper"};function eS(t,e,i,r,a,s){const c=_e("FilterComponent"),d=_e("FlatfinderComponent");return R(),K("div",UT,[t.current?(R(),K("div",HT,[tt("div",$T,[xt(t.$slots,"title",{},()=>[tt("h2",qT,_t(t.current.name),1)]),t.showFilter&&t.isSmallDevice&&t.flatfinderMetadata?(R(),Ct(c,{key:0,class:"flatfinder__filter","is-small-device":t.isSmallDevice,"flatfinder-metadata":t.flatfinderMetadata,onFilter:e[0]||(e[0]=h=>t.filter=h)},null,8,["is-small-device","flatfinder-metadata"])):ut("",!0)]),t.item?(R(),K("div",WT,[(R(),Ct(d,ee({key:t.current.id,"is-small-device":t.isSmallDevice,image:t.intersect?t.current.image?.url:void 0,dimensions:{width:t.current.image?.dimensions?.[0],height:t.current.image?.dimensions?.[1]},value:t.items,"path-prefix":t.pathPrefix,"project-url":t.projectUrl},t.$attrs,{onSwitch:t.setCurrent,onClick:t.onClick}),{"top-right":Xt(()=>[t.filter.length?(R(),K("div",GT,_t(t.t("foundXResults",[t.items.length])),1)):ut("",!0)]),"bottom-left":Xt(()=>[tt("div",YT,_t(t.t("imagesOnlyAsIllustration")),1)]),"bottom-right":Xt(()=>[tt("div",KT,[t.parent?(R(),K("button",{key:0,class:"flatfinder__list-item",style:hi({backgroundImage:`url(${t.parent.image.url})`}),onClick:e[1]||(e[1]=()=>t.setCurrent(t.parent))},[tt("span",XT,_t(t.t("goBack")),1)],4)):ut("",!0),(R(!0),K(oe,null,vi(t.children,h=>(R(),K("button",{key:h.id,class:"flatfinder__list-item",style:hi({backgroundImage:`url(${h.image.url})`}),onClick:()=>t.setCurrent(h)},[tt("span",QT,_t(h.name),1)],12,JT))),128))])]),_:1},16,["is-small-device","image","dimensions","value","path-prefix","project-url","onSwitch","onClick"]))])):ut("",!0),t.showFilter&&!t.isSmallDevice&&t.flatfinderMetadata?(R(),K("div",tS,[Ht(c,{"is-small-device":t.isSmallDevice,"flatfinder-metadata":t.flatfinderMetadata,onFilter:e[2]||(e[2]=h=>t.filter=h)},null,8,["is-small-device","flatfinder-metadata"])])):ut("",!0)])):ut("",!0),xt(t.$slots,"bottom")],512)}const iS=Ca(ZT,[["render",eS]]),nS=Dt({__name:"Component",props:{projectUrl:{},projectId:{},pathPrefix:{},suggested:{}},setup(t){const e=t,i=lt(()=>"ontouchstart"in window||navigator.maxTouchPoints>0),r=W();return Ae(()=>{rh({url:e.projectUrl+"/api/graphql"}),lb({id:e.projectId}).then(a=>{r.value=a})}),(a,s)=>r.value?(R(),Ct(iS,{key:0,"project-url":a.projectUrl,"is-small-device":i.value,"path-prefix":e.pathPrefix,properties:r.value.metadata.siteSettings.featuredResidentialProperties,value:r.value.flatfinders,suggested:e.suggested},null,8,["project-url","is-small-device","path-prefix","properties","value","suggested"])):ut("",!0)}}),rS=`.k-spinner{width:var(--k-spinner-width);aspect-ratio:1;border:var(--k-spinner-border-width)solid transparent;opacity:.4;z-index:1;border-left-color:currentColor;border-radius:999px;animation:.5s linear infinite spin;display:inline-block;position:relative}.k-spinner.k-spinner--size-small{--k-spinner-width:1rem;--k-spinner-border-width:1px}.k-spinner.k-spinner--size-medium{--k-spinner-width:2rem;--k-spinner-border-width:2px}.k-spinner.k-spinner--size-large{--k-spinner-width:4rem;--k-spinner-border-width:4px}@keyframes spin{to{rotate:1turn}}.k-button{font:inherit;border-radius:var(--k-button-border-radius,var(--k-ui-rounding));cursor:pointer;white-space:nowrap;border:1px solid #0000;line-height:1;text-decoration:none;display:inline-block;position:relative}.k-button__content{justify-content:space-between;align-items:center;transition:opacity .15s,translate .15s;display:flex}.k-button__icon{display:inline-flex}.k-button .k-spinner,.k-button__state-indicator{aspect-ratio:1;width:1em;display:inline-block;position:absolute;top:50%;left:50%;translate:-50% -50%}.k-button--full-width{width:100%}.k-button--variant-primary{background-color:var(--k-button-primary-background,var(--k-ui-color-primary));color:var(--k-button-primary-text,white)}.k-button--variant-primary:is(:hover,:focus-visible):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-primary-background-hover,var(--k-ui-color-primary-dark))}.k-button--variant-primary:is(:active,[aria-pressed=true]):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-primary-background-active,var(--k-ui-color-primary-darkest))}.k-button--variant-secondary{border-color:var(--k-button-secondary-border,var(--k-ui-color-neutral));background-color:var(--k-button-secondary-background,transparent);color:var(--k-button-secondary-text,black)}.k-button--variant-secondary:is(:hover,:focus-visible):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-secondary-background-hover,var(--k-ui-color-neutral-lightest))}.k-button--variant-secondary:is(:active,[aria-pressed=true]):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-secondary-background-active,var(--k-ui-color-neutral-light))}.k-button--variant-tertiary{background-color:var(--k-button-tertiary-background,transparent);color:var(--k-button-tertiary-text,black)}.k-button--variant-tertiary:is(:hover,:focus-visible):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-tertiary-background-hover,var(--k-ui-color-neutral-lightest))}.k-button--variant-tertiary:is(:active,[aria-pressed=true]):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-tertiary-background-active,var(--k-ui-color-neutral-light))}.k-button--variant-danger{background-color:var(--k-button-danger-background,var(--k-ui-color-danger));color:var(--k-button-danger-text,white)}.k-button--variant-danger:is(:hover,:focus-visible):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-danger-background-hover,var(--k-ui-color-danger-light))}.k-button--variant-danger:is(:active,[aria-pressed=true]):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-danger-background-active,var(--k-ui-color-danger-dark))}.k-button--variant-warning{background-color:var(--k-button-warning-background,var(--k-ui-color-warning));color:var(--k-button-warning-text,black)}.k-button--variant-warning:is(:hover,:focus-visible):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-warning-background-hover,var(--k-ui-color-warning-light))}.k-button--variant-warning:is(:active,[aria-pressed=true]):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-warning-background-active,var(--k-ui-color-warning-dark))}.k-button--variant-success{background-color:var(--k-button-success-background,var(--k-ui-color-success));color:var(--k-button-success-text,white)}.k-button--variant-success:is(:hover,:focus-visible):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-success-background-hover,var(--k-ui-color-success-light))}.k-button--variant-success:is(:active,[aria-pressed=true]):not(:is([aria-busy=true],:disabled,.k-button--loading)){background-color:var(--k-button-success-background-active,var(--k-ui-color-success-dark))}.k-button--size-small{font-size:var(--k-button-small-font-size,.8em);padding-inline:var(--k-button-small-padding-inline,var(--k-ui-spacing-sm));padding-block:var(--k-button-small-padding-block,calc(var(--k-ui-spacing-sm)*.7))}.k-button--size-small .k-button__content{gap:calc(var(--k-button-small-padding-inline,var(--k-ui-spacing-sm))/2)}.k-button--size-medium{font-size:var(--k-button-medium-font-size,inherit);padding-inline:var(--k-button-medium-padding-inline,var(--k-ui-spacing));padding-block:var(--k-button-medium-padding-block,calc(var(--k-ui-spacing)*.7))}.k-button--size-medium .k-button__content{gap:calc(var(--k-button-medium-padding-inline,var(--k-ui-spacing))/2)}.k-button--size-large{font-size:var(--k-button-large-font-size,1.2em);padding-inline:var(--k-button-large-padding-inline,var(--k-ui-spacing-lg));padding-block:var(--k-button-large-padding-block,calc(var(--k-ui-spacing-lg)*.7))}.k-button--size-large .k-button__content{gap:calc(var(--k-button-large-padding-inline,var(--k-ui-spacing-lg))/2)}.k-button--loading{cursor:wait}.k-button--busy .k-button__content{opacity:0;translate:0 .25rem}.k-button:is(:disabled,[disabled=disabled]){background-color:var(--k-ui-color-neutral-light);color:hsl(var(--k-ui-color-neutral-dark-h),var(--k-ui-color-neutral-dark-s),calc(var(--k-ui-color-neutral-dark-l) + 40%));cursor:not-allowed}.k-button:focus-visible{outline:2px solid var(--k-ui-outline-color);outline-offset:var(--k-ui-outline-offset)}.k-alert{padding:var(--k-alert-padding-x,var(--k-ui-spacing))var(--k-alert-padding-y,var(--k-ui-spacing));border-radius:var(--k-alert-border-radius,var(--k-ui-rounding));border:var(--k-alert-border-width,1px)solid;align-items:flex-start;gap:var(--k-alert-gap,var(--k-ui-spacing));display:flex}.k-alert__content{flex-grow:1}.k-alert__icon{flex-shrink:0}.k-alert__icon .iconify{width:var(--k-alert-icon-size,1.25rem);height:var(--k-alert-icon-size,1.25rem)}.k-alert__title{margin-bottom:var(--k-ui-spacing-xs)}.k-alert__action{margin-top:var(--k-ui-spacing);display:block}.k-alert--neutral{border-color:var(--k-alert-neutral-border,var(--k-ui-color-neutral));background:var(--k-alert-neutral-background,var(--k-ui-color-neutral-lightest));color:var(--k-alert-neutral-text,var(--k-ui-color-neutral-darkest))}.k-alert--neutral .k-alert__action{border-color:var(--k-alert-neutral-border,var(--k-ui-color-neutral));color:var(--k-alert-neutral-text,var(--k-ui-color-neutral-darkest))}.k-alert--neutral .k-alert__action:hover{background-color:#00000008}.k-alert--neutral .k-alert__action:active{background-color:#0000000d}.k-alert--info{border-color:var(--k-alert-info-border,var(--k-ui-color-info-light));background:var(--k-alert-info-background,hsl(var(--k-ui-color-info-lightest-h),var(--k-ui-color-info-lightest-s),calc(var(--k-ui-color-info-lightest-l) + 2%)));color:var(--k-alert-info-text,var(--k-ui-color-info-darkest))}.k-alert--info .k-alert__action{border-color:var(--k-alert-info-border,var(--k-ui-color-info-light));color:var(--k-alert-info-text,var(--k-ui-color-info-darkest))}.k-alert--info .k-alert__action:hover{background-color:#00000008}.k-alert--info .k-alert__action:active{background-color:#0000000d}.k-alert--danger{border-color:var(--k-alert-danger-border,var(--k-ui-color-danger-light));background:var(--k-alert-danger-background,var(--k-ui-color-danger-lightest));color:var(--k-alert-danger-text,var(--k-ui-color-danger-dark))}.k-alert--danger .k-alert__action{border-color:var(--k-alert-danger-border,var(--k-ui-color-danger-light));color:var(--k-alert-danger-text,var(--k-ui-color-danger-dark))}.k-alert--danger .k-alert__action:hover{background-color:#00000008}.k-alert--danger .k-alert__action:active{background-color:#0000000d}.k-alert--warning{border-color:var(--k-alert-warning-border,var(--k-ui-color-warning-light));background:var(--k-alert-warning-background,hsl(var(--k-ui-color-warning-lightest-h),var(--k-ui-color-warning-lightest-s),calc(var(--k-ui-color-warning-lightest-l) + 3%)));color:var(--k-alert-warning-text,var(--k-ui-color-warning-darkest))}.k-alert--warning .k-alert__action{border-color:var(--k-alert-warning-border,var(--k-ui-color-warning-light));color:var(--k-alert-warning-text,var(--k-ui-color-warning-darkest))}.k-alert--warning .k-alert__action:hover{background-color:#00000008}.k-alert--warning .k-alert__action:active{background-color:#0000000d}.k-avatar{aspect-ratio:1;box-shadow:inset 0 0 0 var(--k-avatar-border-width,2px) var(--k-avatar-border-color,var(--k-ui-color-neutral));background-repeat:no-repeat;background-size:cover;border-radius:100%;place-items:center;line-height:1;display:grid}.k-avatar--size-small{width:var(--k-avatar-small-width,1.5rem);font-size:var(--k-avatar-small-font-size,.6rem)}.k-avatar--size-medium{width:var(--k-avatar-medium-width,2.5rem);font-size:var(--k-avatar-medium-font-size,1rem)}.k-avatar--size-large{width:var(--k-avatar-large-width,4rem);font-size:var(--k-avatar-large-font-size,1.8rem)}.k-badge{border-radius:var(--k-badge-border-radius,var(--k-ui-rounding));font-size:var(--k-badge-font-size,var(--k-ui-font-size-sm));letter-spacing:.02rem;border-style:solid;align-items:center;gap:.4rem;padding-block:.4em;padding-inline:.7em;line-height:1;display:inline-flex}.k-badge__icon{flex-shrink:0}.k-badge__dot{aspect-ratio:1;background-color:currentColor;border-radius:100%;width:.3rem}.k-badge__dismiss{cursor:pointer;color:inherit;background:0 0;border:none;justify-content:center;align-items:center;margin:0;padding:0;font-size:.8rem;display:flex}.k-badge--rounded{border-radius:20rem}.k-badge--variant-neutral{background-color:var(--k-badge-neutral-background,var(--k-ui-color-neutral-lightest));border-color:var(--k-badge-neutral-border-color,var(--k-ui-color-neutral));color:var(--k-badge-neutral-text,var(--k-ui-color-neutral-darkest))}.k-badge--variant-info{background-color:var(--k-badge-info-background,var(--k-ui-color-info-lightest));border-color:var(--k-badge-info-border-color,var(--k-ui-color-info));color:var(--k-badge-info-text,var(--k-ui-color-info-darkest))}.k-badge--variant-success{background-color:var(--k-badge-success-background,var(--k-ui-color-success-lightest));border-color:var(--k-badge-success-border-color,var(--k-ui-color-success));color:var(--k-badge-success-text,var(--k-ui-color-success-darkest))}.k-badge--variant-warning{background-color:var(--k-badge-warning-background,var(--k-ui-color-warning-lightest));border-color:var(--k-badge-warning-border-color,var(--k-ui-color-warning));color:var(--k-badge-warning-text,var(--k-ui-color-warning-darkest))}.k-badge--variant-danger{background-color:var(--k-badge-danger-background,var(--k-ui-color-danger-lightest));border-color:var(--k-badge-danger-border-color,var(--k-ui-color-danger));color:var(--k-badge-danger-text,var(--k-ui-color-danger-darkest))}.k-badge--appearance-outline{background-color:#0000;border-width:1px}.k-badge--appearance-solid{border-width:0}.k-checkbox{cursor:pointer;align-items:center;gap:.75rem;display:inline-flex}.k-checkbox:focus-within [data-part=control]{outline:var(--k-ui-outline-width)solid var(--k-ui-outline-color);outline-offset:var(--k-ui-outline-offset)}:is(.k-checkbox__input,.k-checkbox__label){cursor:inherit}.k-checkbox__label{line-height:1;display:block}.k-checkbox__help{opacity:var(--k-ui-opacity-faded)}.k-checkbox [data-part=label]{gap:.25rem;display:grid;translate:0 -1px}.k-checkbox [data-part=control]{width:var(--k-checkbox-size,1.25rem);aspect-ratio:1;border:1px solid var(--k-checkbox-border-color,var(--k-ui-color-neutral));border-radius:var(--k-checkbox-border-radius,var(--k-ui-rounding-sm));justify-content:center;align-items:center;display:flex}.k-checkbox [data-part=control] svg{width:50%;display:none}.k-checkbox[data-state=checked] [data-part=control] svg{display:initial}.k-checkbox[data-state=checked]:not([data-disabled]) [data-part=control]{background-color:var(--k-checkbox-accent,var(--k-ui-color-primary-darkest));border-color:var(--k-checkbox-accent,var(--k-ui-color-primary-darkest));color:var(--k-checkbox-accent-contrast,white)}.k-checkbox[data-disabled]{cursor:not-allowed}.k-checkbox[data-disabled] [data-part=control]{background-color:var(--k-checkbox-accent-disabled,var(--k-ui-color-neutral-light));border-color:var(--k-checkbox-accent-disabled,var(--k-ui-color-neutral-light))}.k-formcontrol{flex-direction:column;gap:.5rem;display:flex}.k-formcontrol__help{opacity:.5}.k-formcontrol__error{color:var(--k-formcontrol-invalid-color,var(--k-ui-color-danger))}.k-input{border-radius:var(--k-input-border-radius,var(--k-ui-rounding));border:1px solid var(--k-input-border-color,var(--k-ui-color-neutral));display:flex;overflow:hidden}.k-input:focus-within{outline:2px solid var(--k-ui-outline-color);outline-offset:var(--k-ui-outline-offset)}.k-input__input{font:inherit;padding-block:var(--k-input-padding-y,var(--k-ui-spacing-sm));padding-inline:var(--k-input-padding-x,var(--k-ui-spacing-sm));border:none;flex-grow:1}.k-input__input:focus{outline:none}.k-input__prefix,.k-input__suffix{background-color:var(--k-input-prefix-background,var(--k-ui-colorneutral-lightest));padding-block:var(--k-input-padding-y,var(--k-ui-spacing-sm));padding-inline:var(--k-input-padding-x,var(--k-ui-spacing-sm));color:var(--k-input-prefix-text,hsl(var(--k-ui-colorneutral-dark-h),var(--k-ui-colorneutral-dark-s),calc(var(--k-ui-colorneutral-dark-l) + 50%)));justify-content:center;align-items:center;display:inline-flex}.k-input--invalid{border-color:var(--k-input-danger,var(--k-ui-colordanger))}.k-input--align-left .k-input__input{text-align:left}.k-input--align-right .k-input__input{text-align:right}.k-textarea{font:inherit;padding-block:var(--k-textarea-padding-y,var(--k-ui-spacing-xs));padding-inline:var(--k-textarea-padding-x,var(--k-ui-spacing-sm));border-radius:var(--k-textarea-border-radius,var(--k-ui-rounding));border:1px solid var(--k-textarea-border-color,var(--k-ui-color-neutral));resize:vertical}.k-textarea--invalid{border-color:var(--k-textarea-invalid-color,var(--k-ui-color-danger))}.k-textarea:focus-visible{outline:2px solid var(--k-ui-outline-color);outline-offset:var(--k-ui-outline-offset)}:root{--k-ui-color-danger-darkest-h:0deg;--k-ui-color-danger-darkest-s:77.9006%;--k-ui-color-danger-darkest-l:35.4902%;--k-ui-color-danger-darkest:hsl(var(--k-ui-color-danger-darkest-h),var(--k-ui-color-danger-darkest-s),var(--k-ui-color-danger-darkest-l));--k-ui-color-danger-dark-h:0deg;--k-ui-color-danger-dark-s:62.6374%;--k-ui-color-danger-dark-l:35.6863%;--k-ui-color-danger-dark:hsl(var(--k-ui-color-danger-dark-h),var(--k-ui-color-danger-dark-s),var(--k-ui-color-danger-dark-l));--k-ui-color-danger-h:0deg;--k-ui-color-danger-s:61.2069%;--k-ui-color-danger-l:45.4902%;--k-ui-color-danger:hsl(var(--k-ui-color-danger-h),var(--k-ui-color-danger-s),var(--k-ui-color-danger-l));--k-ui-color-danger-light-h:0deg;--k-ui-color-danger-light-s:54.0323%;--k-ui-color-danger-light-l:51.3726%;--k-ui-color-danger-light:hsl(var(--k-ui-color-danger-light-h),var(--k-ui-color-danger-light-s),var(--k-ui-color-danger-light-l));--k-ui-color-danger-lightest-h:0deg;--k-ui-color-danger-lightest-s:100%;--k-ui-color-danger-lightest-l:95.8824%;--k-ui-color-danger-lightest:hsl(var(--k-ui-color-danger-lightest-h),var(--k-ui-color-danger-lightest-s),var(--k-ui-color-danger-lightest-l));--k-ui-color-warning-darkest-h:38.7931deg;--k-ui-color-warning-darkest-s:82.8572%;--k-ui-color-warning-darkest-l:27.451%;--k-ui-color-warning-darkest:hsl(var(--k-ui-color-warning-darkest-h),var(--k-ui-color-warning-darkest-s),var(--k-ui-color-warning-darkest-l));--k-ui-color-warning-dark-h:38.9011deg;--k-ui-color-warning-dark-s:74.5902%;--k-ui-color-warning-dark-l:52.1569%;--k-ui-color-warning-dark:hsl(var(--k-ui-color-warning-dark-h),var(--k-ui-color-warning-dark-s),var(--k-ui-color-warning-dark-l));--k-ui-color-warning-h:39.1011deg;--k-ui-color-warning-s:87.2549%;--k-ui-color-warning-l:60%;--k-ui-color-warning:hsl(var(--k-ui-color-warning-h),var(--k-ui-color-warning-s),var(--k-ui-color-warning-l));--k-ui-color-warning-light-h:38.8889deg;--k-ui-color-warning-light-s:100%;--k-ui-color-warning-light-l:68.2353%;--k-ui-color-warning-light:hsl(var(--k-ui-color-warning-light-h),var(--k-ui-color-warning-light-s),var(--k-ui-color-warning-light-l));--k-ui-color-warning-lightest-h:45.3659deg;--k-ui-color-warning-lightest-s:100%;--k-ui-color-warning-lightest-l:91.9608%;--k-ui-color-warning-lightest:hsl(var(--k-ui-color-warning-lightest-h),var(--k-ui-color-warning-lightest-s),var(--k-ui-color-warning-lightest-l));--k-ui-color-success-darkest-h:132.75deg;--k-ui-color-success-darkest-s:85.1064%;--k-ui-color-success-darkest-l:18.4314%;--k-ui-color-success-darkest:hsl(var(--k-ui-color-success-darkest-h),var(--k-ui-color-success-darkest-s),var(--k-ui-color-success-darkest-l));--k-ui-color-success-dark-h:117.576deg;--k-ui-color-success-dark-s:68.2759%;--k-ui-color-success-dark-l:28.4314%;--k-ui-color-success-dark:hsl(var(--k-ui-color-success-dark-h),var(--k-ui-color-success-dark-s),var(--k-ui-color-success-dark-l));--k-ui-color-success-h:117.818deg;--k-ui-color-success-s:63.2184%;--k-ui-color-success-l:34.1177%;--k-ui-color-success:hsl(var(--k-ui-color-success-h),var(--k-ui-color-success-s),var(--k-ui-color-success-l));--k-ui-color-success-light-h:118.08deg;--k-ui-color-success-light-s:56.0538%;--k-ui-color-success-light-l:43.7255%;--k-ui-color-success-light:hsl(var(--k-ui-color-success-light-h),var(--k-ui-color-success-light-s),var(--k-ui-color-success-light-l));--k-ui-color-success-lightest-h:143.721deg;--k-ui-color-success-lightest-s:75.4386%;--k-ui-color-success-lightest-l:88.8235%;--k-ui-color-success-lightest:hsl(var(--k-ui-color-success-lightest-h),var(--k-ui-color-success-lightest-s),var(--k-ui-color-success-lightest-l));--k-ui-color-info-darkest-h:229.143deg;--k-ui-color-info-darkest-s:75.5396%;--k-ui-color-info-darkest-l:27.2549%;--k-ui-color-info-darkest:hsl(var(--k-ui-color-info-darkest-h),var(--k-ui-color-info-darkest-s),var(--k-ui-color-info-darkest-l));--k-ui-color-info-dark-h:228.857deg;--k-ui-color-info-dark-s:79.5455%;--k-ui-color-info-dark-l:34.5098%;--k-ui-color-info-dark:hsl(var(--k-ui-color-info-dark-h),var(--k-ui-color-info-dark-s),var(--k-ui-color-info-dark-l));--k-ui-color-info-h:228.889deg;--k-ui-color-info-s:61.086%;--k-ui-color-info-l:43.3333%;--k-ui-color-info:hsl(var(--k-ui-color-info-h),var(--k-ui-color-info-s),var(--k-ui-color-info-l));--k-ui-color-info-light-h:213.976deg;--k-ui-color-info-light-s:74.7748%;--k-ui-color-info-light-l:78.2353%;--k-ui-color-info-light:hsl(var(--k-ui-color-info-light-h),var(--k-ui-color-info-light-s),var(--k-ui-color-info-light-l));--k-ui-color-info-lightest-h:209.032deg;--k-ui-color-info-lightest-s:100%;--k-ui-color-info-lightest-l:93.9216%;--k-ui-color-info-lightest:hsl(var(--k-ui-color-info-lightest-h),var(--k-ui-color-info-lightest-s),var(--k-ui-color-info-lightest-l));--k-ui-color-neutral-darkest-h:0deg;--k-ui-color-neutral-darkest-s:0%;--k-ui-color-neutral-darkest-l:0%;--k-ui-color-neutral-darkest:hsl(var(--k-ui-color-neutral-darkest-h),var(--k-ui-color-neutral-darkest-s),var(--k-ui-color-neutral-darkest-l));--k-ui-color-neutral-dark-h:0deg;--k-ui-color-neutral-dark-s:0%;--k-ui-color-neutral-dark-l:20%;--k-ui-color-neutral-dark:hsl(var(--k-ui-color-neutral-dark-h),var(--k-ui-color-neutral-dark-s),var(--k-ui-color-neutral-dark-l));--k-ui-color-neutral-h:0deg;--k-ui-color-neutral-s:0%;--k-ui-color-neutral-l:81.5686%;--k-ui-color-neutral:hsl(var(--k-ui-color-neutral-h),var(--k-ui-color-neutral-s),var(--k-ui-color-neutral-l));--k-ui-color-neutral-light-h:0deg;--k-ui-color-neutral-light-s:0%;--k-ui-color-neutral-light-l:91.7647%;--k-ui-color-neutral-light:hsl(var(--k-ui-color-neutral-light-h),var(--k-ui-color-neutral-light-s),var(--k-ui-color-neutral-light-l));--k-ui-color-neutral-lightest-h:0deg;--k-ui-color-neutral-lightest-s:0%;--k-ui-color-neutral-lightest-l:94.1176%;--k-ui-color-neutral-lightest:hsl(var(--k-ui-color-neutral-lightest-h),var(--k-ui-color-neutral-lightest-s),var(--k-ui-color-neutral-lightest-l));--k-ui-color-primary-darkest-h:221.711deg;--k-ui-color-primary-darkest-s:76.3265%;--k-ui-color-primary-darkest-l:40.0392%;--k-ui-color-primary-darkest:hsl(var(--k-ui-color-primary-darkest-h),var(--k-ui-color-primary-darkest-s),var(--k-ui-color-primary-darkest-l));--k-ui-color-primary-dark-h:221.711deg;--k-ui-color-primary-dark-s:76.3265%;--k-ui-color-primary-dark-l:44.0392%;--k-ui-color-primary-dark:hsl(var(--k-ui-color-primary-dark-h),var(--k-ui-color-primary-dark-s),var(--k-ui-color-primary-dark-l));--k-ui-color-primary-h:221.711deg;--k-ui-color-primary-s:76.3265%;--k-ui-color-primary-l:48.0392%;--k-ui-color-primary:hsl(var(--k-ui-color-primary-h),var(--k-ui-color-primary-s),var(--k-ui-color-primary-l));--k-ui-color-primary-light-h:221.711deg;--k-ui-color-primary-light-s:76.3265%;--k-ui-color-primary-light-l:52.0392%;--k-ui-color-primary-light:hsl(var(--k-ui-color-primary-light-h),var(--k-ui-color-primary-light-s),var(--k-ui-color-primary-light-l));--k-ui-color-primary-lightest-h:221.711deg;--k-ui-color-primary-lightest-s:76.3265%;--k-ui-color-primary-lightest-l:56.0392%;--k-ui-color-primary-lightest:hsl(var(--k-ui-color-primary-lightest-h),var(--k-ui-color-primary-lightest-s),var(--k-ui-color-primary-lightest-l));--k-ui-spacing-xxs:.25rem;--k-ui-spacing-xs:.5rem;--k-ui-spacing-sm:.75rem;--k-ui-spacing:1rem;--k-ui-spacing-lg:1.5rem;--k-ui-spacing-xl:1.75rem;--k-ui-spacing-xxl:2rem;--k-ui-spacing-3xl:3rem;--k-ui-spacing-4xl:4rem;--k-ui-rounding-sm:3px;--k-ui-rounding:6px;--k-ui-rounding-lg:8px;--k-ui-rounding-xl:16px;--k-ui-rounding-full:999px;--k-ui-font-size-xs:.6rem;--k-ui-font-size-sm:.8rem;--k-ui-font-size:1rem;--k-ui-font-size-lg:1.2rem;--k-ui-font-size-xl:2.2rem;--k-ui-font-size-xxl:3rem;--k-ui-shadow-color:#0003;--k-ui-shadow-elevation-sm:0 4px 8px -4px;--k-ui-shadow-elevation-md:0 8px 16px -8px;--k-ui-shadow-elevation-lg:0 12px 24px -3px;--k-ui-shadow-sm:var(--k-ui-shadow-elevation-sm)var(--k-ui-shadow-color);--k-ui-shadow-md:var(--k-ui-shadow-elevation-md)var(--k-ui-shadow-color);--k-ui-shadow-lg:var(--k-ui-shadow-elevation-lg)var(--k-ui-shadow-color);--k-ui-shadow:var(--k-ui-shadow-sm);--k-ui-outline-color:var(--k-ui-color-neutral);--k-ui-outline-width:2px;--k-ui-outline-offset:2px;--k-ui-opacity-faded:.6}.k-p-xxs{padding:var(--k-ui-spacing-xxs)}.k-pt-xxs{padding-top:var(--k-ui-spacing-xxs)}.k-pr-xxs{padding-right:var(--k-ui-spacing-xxs)}.k-pb-xxs{padding-bottom:var(--k-ui-spacing-xxs)}.k-pl-xxs{padding-left:var(--k-ui-spacing-xxs)}.k-px-xxs{padding-inline:var(--k-ui-spacing-xxs)}.k-py-xxs{padding-block:var(--k-ui-spacing-xxs)}.k-p-xs{padding:var(--k-ui-spacing-xs)}.k-pt-xs{padding-top:var(--k-ui-spacing-xs)}.k-pr-xs{padding-right:var(--k-ui-spacing-xs)}.k-pb-xs{padding-bottom:var(--k-ui-spacing-xs)}.k-pl-xs{padding-left:var(--k-ui-spacing-xs)}.k-px-xs{padding-inline:var(--k-ui-spacing-xs)}.k-py-xs{padding-block:var(--k-ui-spacing-xs)}.k-p-sm{padding:var(--k-ui-spacing-sm)}.k-pt-sm{padding-top:var(--k-ui-spacing-sm)}.k-pr-sm{padding-right:var(--k-ui-spacing-sm)}.k-pb-sm{padding-bottom:var(--k-ui-spacing-sm)}.k-pl-sm{padding-left:var(--k-ui-spacing-sm)}.k-px-sm{padding-inline:var(--k-ui-spacing-sm)}.k-py-sm{padding-block:var(--k-ui-spacing-sm)}.k-p{padding:var(--k-ui-spacing)}.k-pt{padding-top:var(--k-ui-spacing)}.k-pr{padding-right:var(--k-ui-spacing)}.k-pb{padding-bottom:var(--k-ui-spacing)}.k-pl{padding-left:var(--k-ui-spacing)}.k-px{padding-inline:var(--k-ui-spacing)}.k-py{padding-block:var(--k-ui-spacing)}.k-p-lg{padding:var(--k-ui-spacing-lg)}.k-pt-lg{padding-top:var(--k-ui-spacing-lg)}.k-pr-lg{padding-right:var(--k-ui-spacing-lg)}.k-pb-lg{padding-bottom:var(--k-ui-spacing-lg)}.k-pl-lg{padding-left:var(--k-ui-spacing-lg)}.k-px-lg{padding-inline:var(--k-ui-spacing-lg)}.k-py-lg{padding-block:var(--k-ui-spacing-lg)}.k-p-xl{padding:var(--k-ui-spacing-xl)}.k-pt-xl{padding-top:var(--k-ui-spacing-xl)}.k-pr-xl{padding-right:var(--k-ui-spacing-xl)}.k-pb-xl{padding-bottom:var(--k-ui-spacing-xl)}.k-pl-xl{padding-left:var(--k-ui-spacing-xl)}.k-px-xl{padding-inline:var(--k-ui-spacing-xl)}.k-py-xl{padding-block:var(--k-ui-spacing-xl)}.k-p-xxl{padding:var(--k-ui-spacing-xxl)}.k-pt-xxl{padding-top:var(--k-ui-spacing-xxl)}.k-pr-xxl{padding-right:var(--k-ui-spacing-xxl)}.k-pb-xxl{padding-bottom:var(--k-ui-spacing-xxl)}.k-pl-xxl{padding-left:var(--k-ui-spacing-xxl)}.k-px-xxl{padding-inline:var(--k-ui-spacing-xxl)}.k-py-xxl{padding-block:var(--k-ui-spacing-xxl)}.k-p-3xl{padding:var(--k-ui-spacing-3xl)}.k-pt-3xl{padding-top:var(--k-ui-spacing-3xl)}.k-pr-3xl{padding-right:var(--k-ui-spacing-3xl)}.k-pb-3xl{padding-bottom:var(--k-ui-spacing-3xl)}.k-pl-3xl{padding-left:var(--k-ui-spacing-3xl)}.k-px-3xl{padding-inline:var(--k-ui-spacing-3xl)}.k-py-3xl{padding-block:var(--k-ui-spacing-3xl)}.k-p-4xl{padding:var(--k-ui-spacing-4xl)}.k-pt-4xl{padding-top:var(--k-ui-spacing-4xl)}.k-pt-auto{padding-top:auto}.k-pr-4xl{padding-right:var(--k-ui-spacing-4xl)}.k-pr-auto{padding-right:auto}.k-pb-4xl{padding-bottom:var(--k-ui-spacing-4xl)}.k-pb-auto{padding-bottom:auto}.k-pl-4xl{padding-left:var(--k-ui-spacing-4xl)}.k-pl-auto{padding-left:auto}.k-px-4xl{padding-inline:var(--k-ui-spacing-4xl)}.k-px-auto{padding-inline:auto}.k-py-4xl{padding-block:var(--k-ui-spacing-4xl)}.k-py-auto{padding-block:auto}.k-m-xxs{margin:var(--k-ui-spacing-xxs)}.k-mt-xxs{margin-top:var(--k-ui-spacing-xxs)}.k-mr-xxs{margin-right:var(--k-ui-spacing-xxs)}.k-mb-xxs{margin-bottom:var(--k-ui-spacing-xxs)}.k-ml-xxs{margin-left:var(--k-ui-spacing-xxs)}.k-mx-xxs{margin-inline:var(--k-ui-spacing-xxs)}.k-my-xxs{margin-block:var(--k-ui-spacing-xxs)}.k-m-xs{margin:var(--k-ui-spacing-xs)}.k-mt-xs{margin-top:var(--k-ui-spacing-xs)}.k-mr-xs{margin-right:var(--k-ui-spacing-xs)}.k-mb-xs{margin-bottom:var(--k-ui-spacing-xs)}.k-ml-xs{margin-left:var(--k-ui-spacing-xs)}.k-mx-xs{margin-inline:var(--k-ui-spacing-xs)}.k-my-xs{margin-block:var(--k-ui-spacing-xs)}.k-m-sm{margin:var(--k-ui-spacing-sm)}.k-mt-sm{margin-top:var(--k-ui-spacing-sm)}.k-mr-sm{margin-right:var(--k-ui-spacing-sm)}.k-mb-sm{margin-bottom:var(--k-ui-spacing-sm)}.k-ml-sm{margin-left:var(--k-ui-spacing-sm)}.k-mx-sm{margin-inline:var(--k-ui-spacing-sm)}.k-my-sm{margin-block:var(--k-ui-spacing-sm)}.k-m{margin:var(--k-ui-spacing)}.k-mt{margin-top:var(--k-ui-spacing)}.k-mr{margin-right:var(--k-ui-spacing)}.k-mb{margin-bottom:var(--k-ui-spacing)}.k-ml{margin-left:var(--k-ui-spacing)}.k-mx{margin-inline:var(--k-ui-spacing)}.k-my{margin-block:var(--k-ui-spacing)}.k-m-lg{margin:var(--k-ui-spacing-lg)}.k-mt-lg{margin-top:var(--k-ui-spacing-lg)}.k-mr-lg{margin-right:var(--k-ui-spacing-lg)}.k-mb-lg{margin-bottom:var(--k-ui-spacing-lg)}.k-ml-lg{margin-left:var(--k-ui-spacing-lg)}.k-mx-lg{margin-inline:var(--k-ui-spacing-lg)}.k-my-lg{margin-block:var(--k-ui-spacing-lg)}.k-m-xl{margin:var(--k-ui-spacing-xl)}.k-mt-xl{margin-top:var(--k-ui-spacing-xl)}.k-mr-xl{margin-right:var(--k-ui-spacing-xl)}.k-mb-xl{margin-bottom:var(--k-ui-spacing-xl)}.k-ml-xl{margin-left:var(--k-ui-spacing-xl)}.k-mx-xl{margin-inline:var(--k-ui-spacing-xl)}.k-my-xl{margin-block:var(--k-ui-spacing-xl)}.k-m-xxl{margin:var(--k-ui-spacing-xxl)}.k-mt-xxl{margin-top:var(--k-ui-spacing-xxl)}.k-mr-xxl{margin-right:var(--k-ui-spacing-xxl)}.k-mb-xxl{margin-bottom:var(--k-ui-spacing-xxl)}.k-ml-xxl{margin-left:var(--k-ui-spacing-xxl)}.k-mx-xxl{margin-inline:var(--k-ui-spacing-xxl)}.k-my-xxl{margin-block:var(--k-ui-spacing-xxl)}.k-m-3xl{margin:var(--k-ui-spacing-3xl)}.k-mt-3xl{margin-top:var(--k-ui-spacing-3xl)}.k-mr-3xl{margin-right:var(--k-ui-spacing-3xl)}.k-mb-3xl{margin-bottom:var(--k-ui-spacing-3xl)}.k-ml-3xl{margin-left:var(--k-ui-spacing-3xl)}.k-mx-3xl{margin-inline:var(--k-ui-spacing-3xl)}.k-my-3xl{margin-block:var(--k-ui-spacing-3xl)}.k-m-4xl{margin:var(--k-ui-spacing-4xl)}.k-mt-4xl{margin-top:var(--k-ui-spacing-4xl)}.k-mt-auto{margin-top:auto}.k-mr-4xl{margin-right:var(--k-ui-spacing-4xl)}.k-mr-auto{margin-right:auto}.k-mb-4xl{margin-bottom:var(--k-ui-spacing-4xl)}.k-mb-auto{margin-bottom:auto}.k-ml-4xl{margin-left:var(--k-ui-spacing-4xl)}.k-ml-auto{margin-left:auto}.k-mx-4xl{margin-inline:var(--k-ui-spacing-4xl)}.k-mx-auto{margin-inline:auto}.k-my-4xl{margin-block:var(--k-ui-spacing-4xl)}.k-my-auto{margin-block:auto}.k-stepper{gap:var(--k-stepper-gap,2rem);display:flex}.k-stepper--breadcrumb-placement-top .k-stepper__breadcrumbs,.k-stepper--breadcrumb-placement-bottom .k-stepper__breadcrumbs{align-items:center;gap:var(--k-stepper-breadcrumb-gap,1rem)}.k-stepper--breadcrumb-placement-top{flex-direction:column}.k-stepper--breadcrumb-placement-bottom{flex-direction:column-reverse}.k-stepper--breadcrumb-placement-right,.k-stepper--breadcrumb-placement-left{align-items:flex-start}.k-stepper--breadcrumb-placement-right .k-stepper-breadcrumbs-wrapper,.k-stepper--breadcrumb-placement-left .k-stepper-breadcrumbs-wrapper{flex-direction:column}.k-stepper--breadcrumb-placement-right .k-stepper__breadcrumbs,.k-stepper--breadcrumb-placement-left .k-stepper__breadcrumbs{flex-direction:column;align-items:flex-start;gap:1.5rem}.k-stepper--breadcrumb-placement-right .k-stepper__breadcrumb-arrow,.k-stepper--breadcrumb-placement-left .k-stepper__breadcrumb-arrow{display:none}.k-stepper--breadcrumb-placement-right{flex-direction:row-reverse}.k-stepper--breadcrumb-placement-left{flex-direction:row}.k-stepper .k-stepper-breadcrumbs-wrapper{display:flex}.k-stepper__breadcrumbs{flex-wrap:wrap;flex-grow:1;display:flex}.k-stepper__breadcrumbs .k-stepper__breadcrumb{cursor:pointer;font:inherit;border-radius:var(--k-ui-rounding-sm);background-color:#0000;border:none;outline:none;align-items:center;gap:.5rem;margin:0;padding:0;line-height:1;display:flex}.k-stepper__breadcrumbs .k-stepper__breadcrumb:focus-visible{outline:2px solid var(--k-ui-outline-color);outline-offset:5px}.k-stepper__breadcrumbs .k-stepper__breadcrumb:disabled{cursor:not-allowed}.k-stepper__breadcrumbs .k-stepper__breadcrumb:disabled .k-stepper__breadcrumb-icon{border-color:var(--k-stepper-icon-border,var(--k-ui-color-neutral));background-color:var(--k-stepper-icon-background,var(--k-ui-color-neutral-lightest))}.k-stepper__breadcrumbs .k-stepper__breadcrumb span{line-height:inherit}.k-stepper__breadcrumbs .k-stepper__breadcrumb-icon{z-index:1;border-style:solid;border-width:1px;border-radius:50%;justify-content:center;align-items:center;width:25px;height:25px;font-size:.75em;font-weight:700;display:inline-flex;position:relative}.k-stepper__breadcrumbs .k-stepper__breadcrumb-label{translate:0 -1px}.k-stepper__breadcrumbs .k-stepper__breadcrumb-arrow{border:2px solid #d9d9d9;border-width:0 2px 2px 0;margin:0 .25rem;padding:3px;rotate:-45deg}.k-stepper__breadcrumbs .k-stepper__breadcrumb--default:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):not(:hover){color:var(--k-stepper-text,inherit)}.k-stepper__breadcrumbs .k-stepper__breadcrumb--default:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):not(:hover) .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text,var(--k-ui-color-neutral-darkest));border-color:var(--k-stepper-icon-border,var(--k-ui-color-neutral));background-color:var(--k-stepper-icon-background,var(--k-ui-color-neutral-lightest))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--default:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):hover{color:var(--k-stepper-text-hover,inherit)}.k-stepper__breadcrumbs .k-stepper__breadcrumb--default:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):hover .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-hover,var(--k-ui-color-neutral-darkest));border-color:var(--k-stepper-icon-border-hover,hsl(var(--k-ui-color-neutral-h),var(--k-ui-color-neutral-s),calc(var(--k-ui-color-neutral-l) - 2%)));background-color:var(--k-stepper-icon-background-hover,var(--k-ui-color-neutral-light))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--active:is(.k-stepper__breadcrumbs .k-stepper__breadcrumb--default){color:var(--k-stepper-text-active,var(--k-ui-color-primary))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--active:is(.k-stepper__breadcrumbs .k-stepper__breadcrumb--default) .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-active,white);border-color:var(--k-stepper-icon-border-active,var(--k-ui-color-primary));background-color:var(--k-stepper-icon-background-active,var(--k-ui-color-primary))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--valid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):not(:hover){color:var(--k-stepper-text-valid,inherit)}.k-stepper__breadcrumbs .k-stepper__breadcrumb--valid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):not(:hover) .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-valid,var(--k-ui-color-neutral-darkest));border-color:var(--k-stepper-icon-border-valid,var(--k-ui-color-neutral));background-color:var(--k-stepper-icon-background-valid,var(--k-ui-color-neutral-lightest))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--valid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):hover{color:var(--k-stepper-text-valid-hover,inherit)}.k-stepper__breadcrumbs .k-stepper__breadcrumb--valid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):hover .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-valid-hover,var(--k-ui-color-neutral-darkest));border-color:var(--k-stepper-icon-border-valid-hover,hsl(var(--k-ui-color-neutral-h),var(--k-ui-color-neutral-s),calc(var(--k-ui-color-neutral-l) - 2%)));background-color:var(--k-stepper-icon-background-valid-hover,hsl(var(--k-ui-color-neutral-h),var(--k-ui-color-neutral-s),calc(var(--k-ui-color-neutral-l) - 3%)))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--active:is(.k-stepper__breadcrumbs .k-stepper__breadcrumb--valid){color:var(--k-stepper-text-valid-active,var(--k-ui-color-primary))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--active:is(.k-stepper__breadcrumbs .k-stepper__breadcrumb--valid) .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-valid-active,white);border-color:var(--k-stepper-icon-border-valid-active,var(--k-ui-color-primary));background-color:var(--k-stepper-icon-background-valid-active,var(--k-ui-color-primary))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--invalid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):not(:hover){color:var(--k-stepper-text-invalid,inherit)}.k-stepper__breadcrumbs .k-stepper__breadcrumb--invalid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):not(:hover) .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-invalid,var(--k-ui-color-danger-darkest));border-color:var(--k-stepper-icon-border-invalid,hsl(var(--k-ui-color-danger-lightest-h),var(--k-ui-color-danger-lightest-s),calc(var(--k-ui-color-danger-lightest-l) - 10%)));background-color:var(--k-stepper-icon-background-invalid,var(--k-ui-color-danger-lightest))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--invalid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):hover{color:var(--k-stepper-text-invalid-hover,inherit)}.k-stepper__breadcrumbs .k-stepper__breadcrumb--invalid:not(:disabled,.k-stepper__breadcrumbs .k-stepper__breadcrumb--active):hover .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-invalid-hover,var(--k-ui-color-danger-darkest));border-color:var(--k-stepper-icon-border-invalid-hover,hsl(var(--k-ui-color-danger-lightest-h),var(--k-ui-color-danger-lightest-s),calc(var(--k-ui-color-danger-lightest-l) - 10%)));background-color:var(--k-stepper-icon-background-invalid-hover,hsl(var(--k-ui-color-danger-lightest-h),var(--k-ui-color-danger-lightest-s),calc(var(--k-ui-color-danger-lightest-l) - 2%)))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--active:is(.k-stepper__breadcrumbs .k-stepper__breadcrumb--invalid){color:var(--k-stepper-text-invalid-active,var(--k-ui-color-danger-darkest))}.k-stepper__breadcrumbs .k-stepper__breadcrumb--active:is(.k-stepper__breadcrumbs .k-stepper__breadcrumb--invalid) .k-stepper__breadcrumb-icon{color:var(--k-stepper-icon-text-invalid-active,white);border-color:var(--k-stepper-icon-border-invalid-active,var(--k-ui-color-danger-darkest));background-color:var(--k-stepper-icon-background-invalid-active,var(--k-ui-color-danger-darkest))}.k-stepper__component-wrapper{gap:inherit;flex-direction:column;display:flex}.k-stepper--breadcrumb-placement-bottom .k-stepper__component-wrapper{flex-direction:column-reverse}.k-stepper__navigation{justify-content:var(--k-stepper-navigation-alignment,"flex-start");gap:1rem;display:flex}.k-stepper .k-stepper-fade-enter-active,.k-stepper .k-stepper-fade-leave-active{transition:all .2s}.k-stepper .k-stepper-fade-enter-from,.k-stepper .k-stepper-fade-leave-to{opacity:0}.k-stepper .k-stepper-slide-h-prev-enter-active,.k-stepper .k-stepper-slide-h-prev-leave-active,.k-stepper .k-stepper-slide-h-next-enter-active,.k-stepper .k-stepper-slide-h-next-leave-active,.k-stepper .k-stepper-slide-v-prev-enter-active,.k-stepper .k-stepper-slide-v-prev-leave-active,.k-stepper .k-stepper-slide-v-next-enter-active,.k-stepper .k-stepper-slide-v-next-leave-active{transition:all .2s}.k-stepper .k-stepper-slide-h-prev-enter-from,.k-stepper .k-stepper-slide-h-prev-leave-to,.k-stepper .k-stepper-slide-h-next-enter-from,.k-stepper .k-stepper-slide-h-next-leave-to,.k-stepper .k-stepper-slide-v-prev-enter-from,.k-stepper .k-stepper-slide-v-prev-leave-to,.k-stepper .k-stepper-slide-v-next-enter-from,.k-stepper .k-stepper-slide-v-next-leave-to{opacity:0}.k-stepper .k-stepper-slide-h-prev-enter-from,.k-stepper .k-stepper-slide-h-next-leave-to{translate:calc(var(--k-stepper-transition-preset-slide-delta,25px)*-1)0}.k-stepper .k-stepper-slide-h-next-enter-from,.k-stepper .k-stepper-slide-h-prev-leave-to{translate:var(--k-stepper-transition-preset-slide-delta,25px)0}.k-stepper .k-stepper-slide-v-prev-enter-from,.k-stepper .k-stepper-slide-v-next-leave-to{translate:0 calc(var(--k-stepper-transition-preset-slide-delta,25px)*-1)}.k-stepper .k-stepper-slide-v-next-enter-from,.k-stepper .k-stepper-slide-v-prev-leave-to{translate:0 var(--k-stepper-transition-preset-slide-delta,25px)}.k-image{background-image:var(--k-image-preview);background-size:var(--k-image-size);width:var(--k-image-width);height:var(--k-image-height);aspect-ratio:var(--k-image-aspectratio);background-repeat:no-repeat;justify-content:center;align-items:center;margin:0;display:flex;position:relative;overflow:hidden}.k-image img{object-fit:var(--k-image-size);object-position:var(--k-image-position);padding:inherit;opacity:0;width:100%;height:100%;transition:all .15s ease-in;position:absolute;top:0;left:0}.k-image--loaded img{opacity:1}.k-image__caption{padding:var(--k-image-caption-padding,var(--k-ui-spacing-lg));pointer-events:none;width:100%;height:100%;display:block;position:absolute}.k-image__caption--theme-light{background:linear-gradient(170deg,#fffc 15%,#fff0 55% 100%)}.k-image__caption--theme-dark{color:#fff;background:linear-gradient(170deg,#000c 15%,#fff0 55% 100%)}.k-image__caption--visibility-hover{opacity:0;transition:opacity .1s ease-in}.k-image:hover .k-image__caption.k-image__caption--visibility-hover{opacity:1}.k-card{border-radius:var(--k-card-border-radius,var(--k-ui-rounding-lg));color:inherit;background-color:#fff;flex-direction:column;text-decoration:none;display:flex}.k-card--variant-shadow{box-shadow:var(--k-card-shadow,var(--k-ui-shadow-lg))}.k-card--variant-border{border:1px solid var(--k-card-border-color,var(--k-ui-color-neutral-light))}.k-card__header{background-color:var(--k-card-header-background,var(--k-ui-color-neutral-lightest));border-top-left-radius:inherit;border-top-right-radius:inherit;min-height:var(--k-header-min-height)}.k-card__header:not(.k-card__header--has-thumbnail),.k-card__header--thumbnail-size-contain{padding:var(--k-card-spacing,var(--k-ui-spacing-lg))}.k-card__header--has-thumbnail{min-height:var(--k-header-min-height,200px)}.k-card__thumbnail{border-top-left-radius:inherit;border-top-right-radius:inherit;width:100%;height:100%}.k-card__title{margin-bottom:1rem;font-weight:700;line-height:1}.k-card__content,.k-card__footer{padding:var(--k-card-spacing,var(--k-ui-spacing-lg))}.k-card__header+.k-card__footer{padding-top:var(--k-card-spacing,var(--k-ui-spacing-lg))}.k-card__content{flex-grow:1}.k-card__footer{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit;flex-wrap:wrap;gap:1rem;padding-top:0;display:flex}.k-skeleton{aspect-ratio:var(--aspect-ratio);height:var(--height);width:var(--width);border-radius:var(--border-radius);justify-content:center;align-items:center;display:flex}.k-skeleton--variant-flat{background:var(--k-skeleton-background,var(--k-ui-color-neutral-lightest))}.k-skeleton--variant-shiny{background:var(--k-skeleton-background,var(--k-ui-color-neutral-lightest));background:linear-gradient(110deg,var(--k-skeleton-background,var(--k-ui-color-neutral-lightest))8%,var(--k-skeleton-background-shine,hsl(var(--k-ui-color-neutral-lightest-h),var(--k-ui-color-neutral-lightest-s),calc(var(--k-ui-color-neutral-lightest-l) + 2%)))18%,var(--k-skeleton-background,var(--k-ui-color-neutral-lightest))33%);background-size:200% 100%;animation:1.5s linear infinite shine}@keyframes shine{to{background-position-x:-200%}}.k-selectable{font:inherit;text-align:initial;line-height:initial;cursor:pointer;outline:var(--k-selectable-outline-width,4px)solid transparent;outline-offset:var(--k-selectable-outline-offset,var(--k-ui-outline-offset));background-color:#0000;border:none;margin:0;padding:0;transition:outline .1s;position:relative}.k-selectable:not(.k-selectable--selected):hover{outline:var(--k-selectable-outline-width,4px)solid var(--k-selectable-hover,var(--k-ui-color-neutral-light))}.k-selectable:not(.k-selectable--selected):focus-within{outline:var(--k-selectable-outline-width,4px)solid var(--k-ui-outline-color)}.k-selectable--selected:focus-within{outline-color:var(--k-selectable-accent-focus,var(--k-ui-color-primary-lightest))}.k-selectable__checked{border-radius:var(--k-ui-rounding-full);z-index:1;color:#fff;pointer-events:none;border:1px solid #0000;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;top:7px;right:7px}.k-selectable__checked svg{display:none}.k-selectable--multiple .k-selectable__checked{border-radius:var(--k-ui-rounding)}.k-selectable--selected{outline:var(--k-selectable-outline-width,4px)solid var(--k-selectable-accent,var(--k-ui-color-primary-darkest))}.k-selectable--selected .k-selectable__checked{border-color:var(--k-selectable-accent,var(--k-ui-color-primary-darkest));background-color:var(--k-selectable-accent,var(--k-ui-color-primary-darkest));visibility:visible}.k-selectable--selected .k-selectable__checked svg{display:block}.k-rangeslider [data-part=thumb]{background:var(--k-rangeslider-thumb-background,white);border:var(--k-rangeslider-thumb-border-width,1px)solid var(--k-rangeslider-thumb-border-color,hsl(var(--k-ui-color-neutral-h),var(--k-ui-color-neutral-s),calc(var(--k-ui-color-neutral-l) - 10%)));width:var(--k-rangeslider-thumb-size,24px);height:var(--k-rangeslider-thumb-size,24px);box-shadow:var(--k-ui-shadow);border-radius:9999px}.k-rangeslider [data-part=thumb]:focus-visible{border-color:var(--k-ui-outline-color);outline:none}.k-rangeslider [data-part=track]{background:var(--k-rangeslider-track-background,var(--k-ui-color-neutral-light));height:var(--k-rangeslider-track-height,8px);border-radius:9999px;flex:1}.k-rangeslider [data-part=control]{align-items:center;display:flex;position:relative}.k-rangeslider [data-part=range]{background:var(--k-rangeslider-range-background,var(--k-ui-color-primary));border-radius:inherit;height:100%}.k-rangeslider [data-part=marker]{color:gray}.k-rangeslider [data-part=marker][data-state=under-value]{color:#00f}.k-slider [data-part=thumb]{background:var(--k-slider-thumb-background,white);border:var(--k-slider-thumb-border-width,1px)solid var(--k-slider-thumb-border-color,hsl(var(--k-ui-color-neutral-h),var(--k-ui-color-neutral-s),calc(var(--k-ui-color-neutral-l) - 10%)));width:var(--k-slider-thumb-size,24px);height:var(--k-slider-thumb-size,24px);box-shadow:var(--k-ui-shadow);border-radius:9999px}.k-slider [data-part=thumb]:focus-visible{border-color:var(--k-ui-outline-color);outline:none}.k-slider [data-part=thumb]:active+[data-part=output]{opacity:1;translate:-50%}.k-slider [data-part=output]{pointer-events:none;bottom:calc(100% + 1.25rem);left:var(--slider-thumb-offset);border:1px solid var(--k-ui-outline-color);border-radius:var(--k-ui-rounding-lg);box-shadow:var(--k-ui-shadow);white-space:nowrap;opacity:0;z-index:1;background-color:#fff;place-items:center;padding:.25em .75em;transition-property:translate,opacity;transition-duration:.1s;transition-timing-function:ease;display:grid;position:absolute;translate:-50% 25%}.k-slider [data-part=output]:before{content:"";border:inherit;background-color:inherit;clip-path:polygon(0% 0%,100% 0%,100% 100%,0% 0%);width:10px;height:10px;display:block;position:absolute;bottom:-5px;rotate:135deg}.k-slider [data-part=track]{background:var(--k-slider-track-background,var(--k-ui-color-neutral-light));height:var(--k-slider-track-height,8px);border-radius:9999px;flex:1}.k-slider [data-part=control]{align-items:center;display:flex;position:relative}.k-slider [data-part=range]{background:var(--k-slider-range-background,var(--k-ui-color-primary));border-radius:inherit;height:100%}.k-slider [data-part=marker]{color:gray}.k-slider [data-part=marker][data-state=under-value]{color:#00f}.k-dropdown{z-index:var(--k-dropdown-z-index,10);border-radius:var(--k-dropdown-border-radius,var(--k-ui-rounding));padding:var(--k-dropdown-spacing,var(--k-ui-spacing-xxs));background-color:#fff;flex-direction:column;min-width:200px;display:flex}.k-dropdown--theme-shadow{box-shadow:var(--k-dropdown-shadow,var(--k-ui-shadow-lg))}.k-dropdown--theme-border{border:1px solid var(--k-dropdown-border,var(--k-ui-color-neutral))}.k-dropdown-enter-active{transition:opacity .2s}.k-dropdown-enter-from{opacity:0}.k-dropdown .k-button:focus-visible{outline-offset:0}.k-datatable{grid-template-columns:var(--k-datatable-layout);width:100%;display:grid;position:relative}.k-datatable--sticky .k-datatable__row:first-child .k-datatable__cell{z-index:2;top:var(--k-datatable-sticky-top);border-bottom:1px solid var(--k-datatable-border-color,var(--k-ui-color-neutral-light));position:sticky}.k-datatable:not(.k-datatable--no-header) .k-datatable__row:first-child{text-align:left;background-color:#fff;font-size:.8em}.k-datatable__cell{align-items:center;padding:.75rem;display:flex}.k-datatable__cell--text-align-start{justify-content:flex-start}.k-datatable__cell--text-align-center{justify-content:center}.k-datatable__cell--text-align-end{justify-content:flex-end}.k-datatable__cell-sort{cursor:pointer;vertical-align:middle}.k-datatable__cell-sort-icon{opacity:0;margin-left:.25rem}.k-datatable__cell-sort:not(.k-datatable__cell-sort--active):hover .k-datatable__cell-sort-icon{opacity:.3}.k-datatable__cell-sort--active .k-datatable__cell-sort-icon{opacity:1}.k-datatable__cell-actions{padding:0;position:relative}.k-datatable__row{display:contents}.k-datatable__row:hover .k-datatable__cell-actions .button-group,.k-datatable__row:focus-within .k-datatable__cell-actions .button-group{display:flex}.k-datatable__row-wrapper{display:contents}.k-datatable--default .k-datatable__row:nth-child(odd) .k-datatable__cell{background-color:var(--k-datatable-odd-color,hsl(var(--k-ui-color-neutral-lightest-h),var(--k-ui-color-neutral-lightest-s),calc(var(--k-ui-color-neutral-lightest-l) + 1%)))}.k-datatable--border .k-datatable__row:not(:last-child) .k-datatable__cell{border-bottom:1px solid var(--k-datatable-border-color,var(--k-ui-color-neutral-light))}.k-datatable--border .k-datatable__row:first-child .k-datatable__cell{background-color:inherit}.k-datatable__footer{font-size:var(--k-ui-font-size-sm);border-top:1px solid var(--k-datatable-border-color,var(--k-ui-color-neutral-light));background-color:#fff;grid-column:1/-1;align-items:center;gap:1rem;width:100%;padding:.75rem;animation:.2s ease-out fadeInUp;display:flex;position:sticky;bottom:0}.k-datatable--default .k-datatable__footer{background-color:#f5f5f5}.k-datatable-footer-enter-active,.k-datatable-footer-leave-active{transition:all .2s ease-out}.k-datatable-footer-enter-from,.k-datatable-footer-leave-to{opacity:0;transform:translateY(100%)}.k-navigation{border-bottom:1px solid var(--k-navigation-border-color,var(--k-ui-color-neutral-light));padding:var(--k-navigation-padding,var(--k-ui-spacing))}.k-navigation--responsive{max-height:100vh;overflow-y:auto}.k-navigation--responsive nav{flex-wrap:wrap}.k-navigation nav{max-width:var(--k-navigation-max-width,1200px);justify-content:space-between;align-items:center;width:100%;margin-inline:auto;display:flex}.k-navigation__logo{display:flex}.k-navigation__logo .k-button{padding-block:0;padding-inline:0}.k-navigation__logo .k-button:hover{background-color:#0000}.k-navigation__logo .k-image{height:var(--k-navigation-logo-height,30px)}.k-navigation__bars{display:none}.k-navigation--responsive .k-navigation__bars{display:block}.k-navigation__items{align-items:center;gap:var(--k-navigation-gap,1rem);transition:opacity .1s ease-out;display:flex}.k-navigation--initializing .k-navigation__items{opacity:0;position:absolute}.k-navigation--responsive .k-navigation__items{align-items:initial;flex-direction:column;width:100vw;margin-top:20px;animation:.15s ease-out slideDown}@keyframes slideDown{0%{opacity:0;transform:translateY(-20px)}}.k-navigation--responsive:not(.k-navigation--expanded) .k-navigation__items{display:none}.k-navigation [active=true]{background-color:var(--k-navigation-active-background,var(--k-ui-color-neutral-lightest))}.k-radiogroup--variant-radio{align-items:flex-start;gap:var(--k-radiogroup-gap,var(--k-ui-spacing-xs));border-radius:var(--k-ui-rounding-sm);display:flex}.k-radiogroup--variant-radio:focus-within{outline:var(--k-ui-outline-width)solid var(--k-ui-outline-color);outline-offset:8px}.k-radiogroup--variant-radio.k-radiogroup--direction-horizontal{flex-flow:wrap}.k-radiogroup--variant-radio.k-radiogroup--direction-vertical{flex-direction:column}.k-radiogroup--variant-radio [data-part=label]{width:100%;display:block}.k-formcontrol .k-radiogroup--variant-radio [data-part=label]{visibility:hidden;width:0;height:0;position:absolute}.k-radiogroup--variant-radio label{cursor:pointer;flex-direction:row-reverse;align-items:center;gap:.5rem;display:flex}.k-radiogroup--variant-radio label[data-disabled]{cursor:not-allowed}.k-radiogroup--variant-radio [data-part=radio-control]{width:var(--k-radiogroup-size,1.25rem);height:var(--k-radiogroup-size,1.25rem);border:1px solid var(--k-radiogroup-border-color,var(--k-ui-color-neutral));border-radius:999px;justify-content:center;align-items:center;display:flex}.k-radiogroup--variant-radio [data-part=radio-control] svg{width:50%;display:none}.k-radiogroup--variant-radio [data-part=radio-control][data-state=checked]{border-width:calc(var(--k-radiogroup-size,1.25rem)/3)}.k-radiogroup--variant-radio [data-part=radio-control][data-state=checked] svg{display:initial}.k-radiogroup--variant-radio [data-part=radio-control][data-state=checked]:not([data-disabled]){border-color:var(--k-radiogroup-accent,var(--k-ui-color-primary-darkest));background-color:#fff}.k-radiogroup--variant-radio [data-part=radio-control][data-disabled]{background-color:var(--k-radiogroup-background-disabled,var(--k-ui-color-neutral-light));border-color:var(--k-radiogroup-accent-disabled,var(--k-ui-color-neutral))}.k-radiogroup--variant-radio [data-part=radio-control][data-disabled]:not([data-state=checked]){border-width:0}.k-radiogroup--variant-segment{background-color:var(--k-radiogroup-segment-background,var(--k-ui-color-neutral-lightest));border-radius:var(--k-radiogroup-segment-border-radius,var(--k-ui-rounding));padding:var(--k-radiogroup-segment-padding,var(--k-ui-spacing-xs));display:flex}.k-radiogroup--variant-segment [data-disabled]{cursor:not-allowed;color:#0000004d}.k-radiogroup--variant-segment:focus-within{outline:var(--k-ui-outline-width)solid var(--k-ui-outline-color);outline-offset:var(--k-ui-outline-offset)}.k-radiogroup--variant-segment [data-part=indicator]{background-color:var(--k-radiogroup-segment-indicator-background,white);box-shadow:var(--k-ui-shadow);border-radius:inherit}.k-radiogroup--variant-segment [data-part=radio]{user-select:none;cursor:pointer;padding-block:var(--k-radiogroup-segment-padding,var(--k-ui-spacing-xs));padding-inline:calc(var(--k-radiogroup-segment-padding,var(--k-ui-spacing-xs))*2);white-space:nowrap;z-index:1}.k-grid{grid-template-columns:var(--k-grid-columns);grid-template-rows:var(--k-grid-rows);gap:var(--k-grid-gap);align-items:var(--k-grid-align);grid-template-areas:var(--k-grid-areas);display:grid}.k-grid>.k-grid-span-full{grid-column:1/-1}.k-grid>*{grid-area:var(--k-grid-item-area);align-self:var(--k-grid-item-align-self)}.k-flex{flex-direction:var(--k-flex-direction);justify-content:var(--k-flex-justify);align-items:var(--k-flex-align);flex-wrap:var(--k-flex-wrap);gap:var(--k-flex-gap);display:flex}.k-flex-grow{flex-grow:1}.k-scroller{overflow:auto}.k-scroller--appearance-shadow{background:linear-gradient(var(--k-scroller-background,transparent)30%,#fff0),linear-gradient(#fff0,var(--k-scroller-background,transparent)70%)0 100%,radial-gradient(farthest-side at 50% 0,#0000001a,#0000),radial-gradient(farthest-side at 50% 100%,#0000001a,#0000)0 100%;background-repeat:no-repeat;background-color:var(--k-scroller-background,transparent);background-size:100% 40px,100% 40px,100% 14px,100% 14px;background-attachment:local,local,scroll,scroll}.k-scroller--appearance-indicator .k-scroller__indicator{opacity:0;color:#414141;z-index:1;pointer-events:none;transform-origin:50%;background-color:#fffffff5;border:1px solid #e1e1e1;border-radius:20px 0 0 20px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:35px;transition:opacity .1s;display:flex;position:sticky}.k-scroller--appearance-indicator .k-scroller__indicator svg{width:.375em;font-size:40px;animation:2s ease-in-out infinite fadeInOut}@keyframes fadeInOut{0%,to{opacity:.4;transform:translate(-20%)}50%{opacity:1;transform:translate(20%)}}.k-scroller--appearance-indicator.k-scroller--scrolled-to-left .k-scroller__indicator{opacity:1;top:50%;left:100%;transform:translate(-100%,-50%)rotate(0)}.k-scroller--appearance-indicator.k-scroller--scrolled-to-right .k-scroller__indicator{opacity:1;top:50%;left:0;transform:translateY(-50%)rotate(180deg)}.k-scroller--appearance-indicator.k-scroller--scrolled-to-top .k-scroller__indicator{opacity:1;top:100%;left:50%;transform:translate(-50%,-100%)rotate(90deg)}.k-scroller--appearance-indicator.k-scroller--scrolled-to-bottom .k-scroller__indicator{opacity:1;top:0;left:50%;transform:translate(-50%)rotate(-90deg)}.k-scroller.k-flex-grow{height:0}.k-dialog__container{justify-content:center;display:flex;position:fixed;inset:0}.k-dialog__container.k-dialog--align-top{align-items:flex-start}.k-dialog__container.k-dialog--align-center{align-items:center}.k-dialog__card{margin:var(--k-dialog-card-margin-desktop,var(--k-ui-spacing-xl));max-width:var(--k-dialog-max-width,80ch);min-width:var(--k-dialog-min-width,400px);animation:dialogCardAppear .4s var(--k-dialog-easing,cubic-bezier(.075,.82,.165,1));position:relative}.k-dialog__card-header{margin-block-end:var(--k-dialog-header-margin,var(--k-ui-spacing-lg))}@media (width<800px){.k-dialog__card{margin:var(--k-dialog-card-margin-mobile,var(--k-ui-spacing-sm))}}.k-dialog__title{margin-block:0 .25rem;font-size:1rem}.k-dialog__description{color:var(--k-dialog-description-color,var(--k-ui-color-neutral-dark))}.k-dialog__backdrop{background-color:var(--k-dialog-backdrop-background,#0000004d);animation:.15s ease-out dialogBackdropAppear;position:fixed;inset:0}.k-dialog__close-trigger{position:absolute;inset-block-start:var(--k-dialog-close-trigger-offset,var(--k-ui-spacing-sm));inset-inline-end:var(--k-dialog-close-trigger-offset,var(--k-ui-spacing-sm))}@keyframes dialogCardAppear{0%{opacity:0;translate:0 var(--k-dialog-animation-translation-distance,calc(var(--k-ui-spacing-lg)*-1));scale:.95}}@keyframes dialogBackdropAppear{0%{opacity:0}}.k-alertdialog__actions{width:100%}.k-media-thumbnail-actions{gap:var(--k-media-thumbnail-actions-gap,var(--k-ui-spacings-xxs));flex-direction:column;font-size:.8em;transition:opacity .15s ease-out,transform .15s ease-out;display:flex;position:absolute;top:-5px;right:-5px}.k-media-thumbnail-actions>*{aspect-ratio:1;height:var(--k-media-thumbnail-actions-height,22px);color:#fff;font-size:var(--k-media-thumbnail-actions-font-size,var(--k-ui-font-size-xs));border-radius:var(--k-media-thumbnail-actions-border-radius,50%);cursor:pointer;justify-content:center;align-items:center;display:flex}@media (hover:hover){.k-media-thumbnail-actions{opacity:0;transform:translateY(50%)}}.k-media-thumbnail-actions__delete{background-color:var(--k-media-thumbnail-actions-danger,var(--k-ui-color-danger))}.k-media-thumbnail-actions__download{background-color:var(--k-media-thumbnail-actions-primary,var(--k-ui-color-primary))}.k-media-thumbnail{position:relative}.k-media-thumbnail__item{background-color:var(--k-media-thumbnail-background-color,var(--k-ui-color-neutral-lightest));cursor:pointer;border:var(--k-media-thumbnail-border-width,1px)solid var(--k-media-thumbnail-border-color,var(--k-ui-color-neutral-light));border-radius:var(--k-media-thumbnail-border-radius,var(--k-ui-rounding-sm))}.k-media-thumbnail__item--selected{border-color:var(--k-media-thumbnail-selected-border-color,var(--k-ui-color-primary-light));box-shadow:var(--k-media-thumbnail-box-shadow,var(--k-ui-shadow))}@media (hover:hover){.k-media-thumbnail:hover .k-media-thumbnail-actions{opacity:1;transform:translateY(0)}}[data-id=k-media-type-selector-dialog]{width:700px}.k-media-type-selector{flex-direction:column;align-items:center;font-size:.9em;display:flex}.k-media-type-selector .k-button:hover{background-color:hsl(var(--k-ui-color-neutral-lightest-h),var(--k-ui-color-neutral-lightest-s),calc(var(--k-ui-color-neutral-lightest-l) - 2%))}.k-media-type-selector__info{margin-bottom:.5rem}.k-media-description{text-align:left;font:inherit;border-radius:var(--k-ui-rounding-sm);backdrop-filter:blur(8px);text-overflow:ellipsis;z-index:1;background-color:#ffffffb3;width:calc(100% - 1rem);padding:.5rem .75rem;transition:all .15s ease-out;position:absolute;bottom:.5rem;left:.5rem}@media (hover:hover){.k-media-description{opacity:0;transform:translateY(1rem)}}.k-media-droparea:hover .k-media-description,.k-media-description:focus-visible{opacity:1;transform:translateY(0)}.k-media-description:focus-visible{outline:1px solid var(--k-ui-color-primary)}.k-media-uploader{border:1px solid var(--k-media-uploader-border-color,var(--k-ui-color-neutral-light));border-radius:var(--k-media-uploader-border-radius,var(--k-ui-rounding-sm));background-color:#fff;justify-content:space-between;align-items:center;width:100%;max-width:200px;padding:1rem;font-size:.7em;font-weight:700;display:flex;position:absolute;top:0}.k-media-uploader__bar{border-radius:var(--k-media-uploader-border-radius,var(--k-ui-rounding-sm));background-color:var(--k-media-uploader-border-color,var(--k-ui-color-neutral-light));flex-grow:1;height:5px;margin:0 1rem}.k-media-uploader__bar-value{height:inherit;border-radius:inherit;background-color:var(--k-media-uploader-primary,var(--k-ui-color-primary));transition:width .1s}.k-media-uploader__meta{align-items:center;display:flex}.k-media-uploader__meta>*+*{margin-left:5px}.k-media-droparea{text-align:center;border:var(--k-media-droparea-border-width,2px)dashed var(--k-media-droparea-border-color,var(--k-ui-color-neutral-light));border-radius:var(--k-media-droparea-border-radius,var(--k-ui-rounding-sm));background-color:var(--k-media-droparea-background-color,var(--k-ui-color-neutral-lightest));background-position:50%;background-repeat:no-repeat;flex-direction:column;flex-grow:1;justify-content:center;align-items:center;height:100%;min-height:150px;display:flex;position:relative}.k-media-droparea[disabled=disabled]{cursor:not-allowed}.k-media-droparea:before{content:"";opacity:0;background-color:var(--k-media-droparea-primary,var(--k-ui-color-primary));width:100%;height:100%;position:absolute;top:0;left:0}@media (hover:hover){.k-media-droparea:hover .k-media-thumbnail-actions{opacity:1;transform:translateY(0)}}.k-media-droparea--active{border-color:var(--k-media-droparea-primary,var(--k-ui-color-primary))}.k-media-droparea--active:before{opacity:.15}.k-media-droparea--active iframe{display:none}.k-media-droparea--invalid{cursor:not-allowed;color:var(--k-media-droparea-danger,var(--k-ui-color-danger));border-color:var(--k-media-droparea-danger,var(--k-ui-color-danger));background-image:none!important}.k-media-droparea--invalid:before{opacity:.2;background-color:var(--k-media-droparea-danger,var(--k-ui-color-danger))}.k-media-droparea--invalid .k-media-droparea__instruction{background:0 0!important}.k-media-droparea--invalid iframe{display:none}.k-media-droparea__instruction{text-align:center;z-index:1;max-width:75ch;font-size:.9em;transition:opacity .25s;position:absolute}@media (hover:hover){.k-media-droparea--selected .k-media-droparea__instruction{opacity:0;border-radius:var(--k-media-droparea-border-radius,var(--k-ui-rounding-sm));backdrop-filter:blur(8px);background-color:#ffffffb3;padding:1rem}}.k-media-droparea:hover .k-media-droparea__instruction,.k-media-droparea--active .k-media-droparea__instruction{opacity:1}.k-media-droparea__input{cursor:pointer;opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.k-media-droparea__input[type=text]{z-index:-1;pointer-events:none}.k-media-droparea__input:disabled{cursor:not-allowed}.k-media-droparea b{color:var(--k-media-droparea-primary,var(--k-ui-color-primary))}.k-media-droparea .k-media-uploader{margin-top:1rem}.k-media--inside .k-media-droparea .k-media-uploader{margin-top:2rem;margin-right:2rem;position:absolute;top:0;right:0}.k-media-image-create-trigger{font-size:var(--k-ui-font-size-sm);border:none}.k-media-image-create-trigger svg{color:var(--k-ui-color-primary)}.k-media-image__thumbnail{background-position:50%;background-size:cover;position:relative}.k-media-image-preview{text-align:center;border-radius:inherit;background-position:50%;background-repeat:no-repeat;background-origin:content-box;flex-grow:1;width:100%;height:100%}.k-media{text-align:left;flex-direction:column;display:flex;position:relative}.k-media__label{align-items:flex-end;gap:var(--k-media-gap,var(--k-ui-spacings-xs));font-weight:700;display:flex}.k-media__label-required{color:var(--k-media-danger,var(--k-ui-color-danger))}.k-media__label-wrapper{margin-bottom:.5em}.k-media__sublabel{opacity:.5;font-size:.9em;display:block}.k-media__thumbnails{gap:var(--k-media-gap,var(--k-ui-spacings-xs));flex-wrap:wrap;margin-top:.5rem;display:flex}.k-media--inside .k-media__thumbnails{position:absolute;bottom:2rem;right:2rem}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;top:0;left:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:0 0}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{-webkit-transform-origin:0 0;width:1600px;height:1600px}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{width:auto;padding:0;max-width:none!important;max-height:none!important}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:#33b5e566}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{box-sizing:border-box;z-index:800;width:0;height:0}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{z-index:800;pointer-events:visiblePainted;pointer-events:auto;position:relative}.leaflet-top,.leaflet-bottom{z-index:1000;pointer-events:none;position:absolute}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{outline-offset:1px;background:#ddd}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{background:#ffffff80;border:2px dotted #38f}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:.75rem;line-height:1.5}.leaflet-bar{border-radius:4px;box-shadow:0 1px 5px #000000a6}.leaflet-bar a{text-align:center;color:#000;background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;text-decoration:none;display:block}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom:none;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.leaflet-bar a.leaflet-disabled{cursor:default;color:#bbb;background-color:#f4f4f4}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-right-radius:2px;border-bottom-left-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{text-indent:1px;font:700 18px Lucida Console,Monaco,monospace}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{background:#fff;border-radius:5px;box-shadow:0 1px 5px #0006}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{color:#333;background:#fff;padding:6px 10px 6px 6px}.leaflet-control-layers-scrollbar{padding-right:5px;overflow:hidden scroll}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{font-size:1.08333em;display:block}.leaflet-control-layers-separator{border-top:1px solid #ddd;height:0;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{color:#333;padding:0 5px;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{width:1em;height:.6669em;vertical-align:baseline!important;display:inline!important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{white-space:nowrap;box-sizing:border-box;text-shadow:1px 1px #fff;background:#fffc;border:2px solid #777;border-top:none;padding:2px 5px 1px;line-height:1.1}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{background-clip:padding-box;border:2px solid #0003}.leaflet-popup{text-align:center;margin-bottom:20px;position:absolute}.leaflet-popup-content-wrapper{text-align:left;border-radius:12px;padding:1px}.leaflet-popup-content{min-height:1px;margin:13px 24px 13px 20px;font-size:1.08333em;line-height:1.3}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{pointer-events:none;width:40px;height:20px;margin-top:-1px;margin-left:-20px;position:absolute;left:50%;overflow:hidden}.leaflet-popup-tip{pointer-events:auto;width:17px;height:17px;margin:-10px auto 0;padding:1px;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{color:#333;background:#fff;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{text-align:center;color:#757575;background:0 0;border:none;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;text-decoration:none;position:absolute;top:0;right:0}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.707107,M12=.707107,M21=-.707107,M22=.707107);width:24px;margin:0 auto}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{color:#222;white-space:nowrap;user-select:none;pointer-events:none;background-color:#fff;border:1px solid #fff;border-radius:3px;padding:6px;position:absolute;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{pointer-events:none;content:"";background:0 0;border:6px solid #0000;position:absolute}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{margin-left:-6px;left:50%}.leaflet-tooltip-top:before{border-top-color:#fff;margin-bottom:-12px;bottom:0}.leaflet-tooltip-bottom:before{border-bottom-color:#fff;margin-top:-12px;margin-left:-6px;top:0}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{margin-top:-6px;top:50%}.leaflet-tooltip-left:before{border-left-color:#fff;margin-right:-12px;right:0}.leaflet-tooltip-right:before{border-right-color:#fff;margin-left:-12px;left:0}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.flatfinder-filter-type-boolean__header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.5rem;font-size:.8em;display:flex}.flatfinder-filter-type-boolean__header-label{align-items:center;gap:.25rem;display:flex}.flatfinder-filter-type-boolean .k-selectable{margin:inherit}.flatfinder-filter-type-boolean .k-selectable-label{padding:.25rem 1rem}.flatfinder-filter-type-range__value{align-items:center;gap:.25rem;display:flex}.flatfinder-filter-type-range .elder-input__element,.flatfinder-filter-type-range .elder-input__suffix{color:#0009;background-color:#ffffff80;padding:.1em .25em}.flatfinder-filter-type-range .elder-input__suffix{align-items:center;font-size:.8em;display:flex}.flatfinder-filter-type-range .elder-input__field{background-color:#fff6}.flatfinder-filter-type-range__header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.25rem;font-size:.8em;display:flex}.flatfinder-filter-type-range__header-label{align-items:center;gap:.25rem;display:flex}.flatfinder-filter-type-range__value{flex-direction:column;align-items:center;gap:.75rem;margin-top:.75rem;display:flex}.flatfinder-filter-type-range__value-display{justify-content:space-between;width:100%;display:flex}.flatfinder-filter-type-range .k-rangeslider{--k-rangeslider-thumb-size:1rem;width:100%}@media (width<=992px){.flatfinder-filter-type-range .k-rangeslider{--k-rangeslider-thumb-size:1.5rem}}.flatfinder-filter-type-select__header{justify-content:space-between;align-items:center;gap:var(--k-ui-spacing);font-size:var(--k-ui-font-size-sm);margin-bottom:var(--k-ui-spacing-xs);display:flex}.flatfinder-filter-type-select__header-label{align-items:center;gap:.25rem;display:flex}.flatfinder-filter-type-select__header+.k-button{white-space:normal;text-align:start;width:100%;padding-inline:1rem;font-size:16px}.flatfinder-filter-type-select__header+.k-button .k-button__icon{display:none}.flatfinder-filter-type-select .k-dropdown{padding:var(--k-ui-spacing-sm);gap:var(--k-ui-spacing-xs);min-width:200px}.flatfinder-filter-items{display:contents}.flatfinder-filter-items__item-filter--disabled{display:none}.flatfinder-filter-items__item-disabled,.flatfinder-filter-items__item-add{cursor:pointer;align-items:center;gap:.5rem;padding:0 1rem;display:flex}.flatfinder-filter-items__item-disabled-icon,.flatfinder-filter-items__item-add-icon{aspect-ratio:1;flex-shrink:0;justify-content:center;align-items:center;width:45px;display:flex;position:relative}.flatfinder-filter-items__item-disabled-label,.flatfinder-filter-items__item-add-label{cursor:inherit;padding-right:1.5em}.flatfinder-filter-items__item-disabled-label span,.flatfinder-filter-items__item-add-label span{display:block}.flatfinder-filter-items__item-disabled-label span:first-child,.flatfinder-filter-items__item-add-label span:first-child{opacity:.8;white-space:nowrap;font-size:.7em;font-weight:400}.flatfinder-filter-items__item-remove{align-items:center;gap:.5rem;padding:.1rem .4rem;display:flex;background-color:#0000!important;border:none!important}.flatfinder-filter-items__item-remove:before{background-color:#0000!important}.flatfinder-filter-items__item-remove>span{padding:0!important}.flatfinder-filter{flex-wrap:wrap;flex-grow:0;justify-content:center;align-items:center;gap:1.5rem;max-width:1150px;margin:2rem auto;display:flex}@media (width<=992px){.flatfinder-filter .k-formcontrol{--k-ui-spacing:0;margin-top:1rem}}.flatfinder-filter-items__item{padding:var(--k-ui-spacing);width:100%;max-width:255px;transition:background-color .1s ease-out;position:relative}.flatfinder-filter-items__item:before{content:"";opacity:.025;border-radius:inherit;pointer-events:none;z-index:-1;background-color:currentColor;position:absolute;inset:0}@media (width<=992px){.flatfinder-filter-items__item{max-width:initial}}.flatfinder-filter-items__item .k-formcontrol__label{opacity:.8;white-space:nowrap;font-size:.7em;font-weight:400}.flatfinder-filter .k-dropdown{z-index:1001;font-size:1em}.flatfinder-filter .flatfinder-filter__modal{display:contents}[data-id^=filter-dialog]{color:initial;z-index:1004;--k-card-spacing:2rem;--k-dialog-card-margin-mobile:2rem}[data-id^=filter-dialog] .k-card{height:calc(100vh - var(--k-dialog-card-margin-mobile)*2);overflow:auto}[data-id^=filter-dialog] .flatfinder-filter-items__item{margin:1rem 0}[data-id^=filter-dialog] .flatfinder-filter__modal-bottom{flex-grow:1;justify-content:space-between;margin:1.5rem 0;display:flex}:root{--vc-clr-primary:#000;--vc-clr-secondary:#090f207f;--vc-clr-white:#fff;--vc-icn-width:1.2em;--vc-nav-width:30px;--vc-nav-height:30px;--vc-nav-border-radius:0;--vc-nav-color:var(--vc-clr-primary);--vc-nav-color-hover:var(--vc-clr-secondary);--vc-nav-background:transparent;--vc-pgn-width:12px;--vc-pgn-height:4px;--vc-pgn-margin:4px;--vc-pgn-border-radius:0;--vc-pgn-background-color:var(--vc-clr-secondary);--vc-pgn-active-color:var(--vc-clr-primary)}.carousel__prev,.carousel__next{box-sizing:content-box;background:var(--vc-nav-background);border-radius:var(--vc-nav-border-radius);width:var(--vc-nav-width);height:var(--vc-nav-height);text-align:center;font-size:var(--vc-nav-height);color:var(--vc-nav-color);cursor:pointer;border:0;justify-content:center;align-items:center;margin:0 10px;padding:0;display:flex;position:absolute;top:50%;transform:translateY(-50%)}.carousel__prev:hover,.carousel__next:hover{color:var(--vc-nav-color-hover)}.carousel__next--disabled,.carousel__prev--disabled{cursor:not-allowed;opacity:.5}.carousel__prev{left:0}.carousel__next{right:0}.carousel--rtl .carousel__prev{left:auto;right:0}.carousel--rtl .carousel__next{left:0;right:auto}.carousel{text-align:center;box-sizing:border-box;touch-action:pan-y;overscroll-behavior:none;position:relative}.carousel.is-dragging{touch-action:none}.carousel *{box-sizing:border-box}.carousel__track{display:flex;position:relative;padding:0!important}.carousel__viewport{overflow:hidden}.carousel__sr-only{clip:rect(0,0,0,0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.carousel__icon{width:var(--vc-icn-width);height:var(--vc-icn-width);fill:currentColor}.carousel__pagination{justify-content:center;margin:10px 0 0;line-height:0;list-style:none;display:flex}.carousel__pagination-button{cursor:pointer;padding:var(--vc-pgn-margin);background:0 0;border:0;margin:0;display:block}.carousel__pagination-button:after{content:"";width:var(--vc-pgn-width);height:var(--vc-pgn-height);border-radius:var(--vc-pgn-border-radius);background-color:var(--vc-pgn-background-color);display:block}.carousel__pagination-button:hover:after,.carousel__pagination-button--active:after{background-color:var(--vc-pgn-active-color)}.carousel__slide{scroll-snap-stop:auto;flex-shrink:0;justify-content:center;align-items:center;margin:0;display:flex;position:relative;transform:translateZ(0)}:host{--flatfinder-color-error-h:1.47059deg;--flatfinder-color-error-s:80.9524%;--flatfinder-color-error-l:50.5882%;--flatfinder-color-error:hsl(var(--flatfinder-color-error-h),var(--flatfinder-color-error-s),var(--flatfinder-color-error-l));--flatfinder-color-success-h:146.78deg;--flatfinder-color-success-s:89.8477%;--flatfinder-color-success-l:38.6275%;--flatfinder-color-success:hsl(var(--flatfinder-color-success-h),var(--flatfinder-color-success-s),var(--flatfinder-color-success-l));--flatfinder-color-warning-h:43.6842deg;--flatfinder-color-warning-s:95.7983%;--flatfinder-color-warning-l:46.6667%;--flatfinder-color-warning:hsl(var(--flatfinder-color-warning-h),var(--flatfinder-color-warning-s),var(--flatfinder-color-warning-l));--flatfinder-color-current-h:0deg;--flatfinder-color-current-s:0%;--flatfinder-color-current-l:29.4118%;--flatfinder-color-current:hsl(var(--flatfinder-color-current-h),var(--flatfinder-color-current-s),var(--flatfinder-color-current-l));--flatfinder-color-upcoming-h:208.941deg;--flatfinder-color-upcoming-s:100%;--flatfinder-color-upcoming-l:50%;--flatfinder-color-upcoming:hsl(var(--flatfinder-color-upcoming-h),var(--flatfinder-color-upcoming-s),var(--flatfinder-color-upcoming-l));--flatfinder-color-flatfinder-h:0deg;--flatfinder-color-flatfinder-s:0%;--flatfinder-color-flatfinder-l:100%;--flatfinder-color-flatfinder:hsl(var(--flatfinder-color-flatfinder-h),var(--flatfinder-color-flatfinder-s),var(--flatfinder-color-flatfinder-l));--flatfinder-color-project-h:0deg;--flatfinder-color-project-s:0%;--flatfinder-color-project-l:100%;--flatfinder-color-project:hsl(var(--flatfinder-color-project-h),var(--flatfinder-color-project-s),var(--flatfinder-color-project-l))}.flatfinder-leaflet-v1-card{opacity:0}.flatfinder-leaflet-v1-card .k-button{font-weight:700}.flatfinder-leaflet-v1-card--visible{opacity:1}.flatfinder-leaflet-v1-card-theme--overlay .flatfinder-leaflet-v1-card__wrapper{padding:0}.flatfinder-leaflet-v1-card-theme--overlay .flatfinder-leaflet-v1-card__cover{width:100%}.flatfinder-leaflet-v1-card-theme--overlay .flatfinder-leaflet-v1-card__content{color:#fff;background-color:#0000004d;align-items:center;height:100%;margin-top:0;position:absolute;width:100%!important;max-width:100%!important}.flatfinder-leaflet-v1-card-theme--overlay .flatfinder-leaflet-v1-card__content .flatfinder-leaflet-v1-card__title{display:none}.flatfinder-leaflet-v1-card-theme--carousel{width:100%;height:100%}.flatfinder-leaflet-v1-card-theme--popper{z-index:999;pointer-events:none;transition:opacity .15s ease-out;position:absolute}.flatfinder-leaflet-v1-card-theme--popper .flatfinder-leaflet-v1-card__cover{height:150px}.flatfinder-leaflet-v1-card-theme--popper .flatfinder-leaflet-v1-card__content{max-width:300px;padding:1rem}.flatfinder-leaflet-v1-card-theme--popper .flatfinder-leaflet-v1-card__cover-fallback{max-height:150px}.flatfinder-leaflet-v1-card__wrapper{border-radius:var(--k-flatfinder-border-radius,var(--k-flatfinder-border-radius-default));color:#000;height:inherit;background-color:#fff;flex-direction:column;font-size:.75em;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 8px #63636333}.flatfinder-leaflet-v1-card__cover-fallback,.flatfinder-leaflet-v1-card__cover{background-position:50%;background-size:cover;background-color:hsla(var(--primary-h),var(--primary-s),var(--primary-l),.07);width:100%;height:200px}@media (width<=992px){.flatfinder-leaflet-v1-card__cover-fallback,.flatfinder-leaflet-v1-card__cover{height:150px}}.flatfinder-leaflet-v1-card__cover-fallback{padding:2rem}.flatfinder-leaflet-v1-card__cover-fallback svg{width:100%;height:100%}.flatfinder-leaflet-v1-card__button{color:var(--secondary-contrast);margin-top:auto}.flatfinder-leaflet-v1-card__button.elder-button--icon{justify-content:center}.flatfinder-leaflet-v1-card__button .elder-button__label{flex-grow:0}.flatfinder-leaflet-v1-card__description>:first-child{margin-top:0}.flatfinder-leaflet-v1-card__description>:last-child{margin-bottom:0}.flatfinder-leaflet-v1-card__title{margin:0;font-size:1.4em;line-height:1}.flatfinder-leaflet-v1-card__content{text-align:left;flex-direction:column;gap:1rem;min-width:250px;padding:1.5rem 2rem;display:flex}.flatfinder-leaflet-v1-card__properties{justify-content:space-between;display:flex}.flatfinder-leaflet-v1-card__price{margin:0;font-size:1.4em;font-weight:700;line-height:1}.flatfinder-leaflet-v1-card__price-wrapper{text-align:left;margin-top:1rem}.flatfinder-leaflet-v1-card__price-label{opacity:.7;flex-direction:column;justify-content:center;gap:.1em;margin-top:.3em;display:flex}.flatfinder-leaflet-v1-card__fee{opacity:.5;margin-top:.5em}.flatfinder-leaflet-v1-popper-card{z-index:1000}.flatfinder-leaflet-v1{justify-content:center;gap:1rem;display:flex;position:relative}.flatfinder-leaflet-v1__map{background-color:#fff;width:100%;height:100%;overflow:hidden}.flatfinder-leaflet-v1__aspect{aspect-ratio:var(--map-ratio);background-color:hsla(var(--primary-h),var(--primary-s),var(--primary-l),.1);background-size:contain;grid-area:flatfinder;align-self:center;width:100%;position:relative}.flatfinder-leaflet-v1__bottom-right,.flatfinder-leaflet-v1__bottom-left,.flatfinder-leaflet-v1__top-right,.flatfinder-leaflet-v1__top-left{z-index:999;position:absolute}.flatfinder-leaflet-v1__top-right,.flatfinder-leaflet-v1__top-left{top:1rem}@media (width<=992px){.flatfinder-leaflet-v1__top-right,.flatfinder-leaflet-v1__top-left{top:0}}.flatfinder-leaflet-v1__top-right{right:1rem}@media (width<=992px){.flatfinder-leaflet-v1__top-right{right:0}}.flatfinder-leaflet-v1__top-left{left:1rem}@media (width<=992px){.flatfinder-leaflet-v1__top-left{left:0}}.flatfinder-leaflet-v1__bottom-right,.flatfinder-leaflet-v1__bottom-left{bottom:1rem}@media (width<=992px){.flatfinder-leaflet-v1__bottom-right,.flatfinder-leaflet-v1__bottom-left{bottom:0}}.flatfinder-leaflet-v1__bottom-right{right:1rem}@media (width<=992px){.flatfinder-leaflet-v1__bottom-right{right:0}}.flatfinder-leaflet-v1__bottom-left{left:1rem}@media (width<=992px){.flatfinder-leaflet-v1__bottom-left{left:0}}.flatfinder-leaflet-v1__carousel{grid-area:carousel}.flatfinder-leaflet-v1__carousel .carousel__track{margin:0}.flatfinder-leaflet-v1__carousel .carousel__next,.flatfinder-leaflet-v1__carousel .carousel__prev{backdrop-filter:blur(10px);color:#fff;margin:0;background-color:#0000004d!important}.flatfinder-leaflet-v1__carousel .carousel__next{border-radius:999px 0 0 999px;padding-left:5px!important}.flatfinder-leaflet-v1__carousel .carousel__prev{border-radius:0 999px 999px 0;padding-right:5px!important}.flatfinder-leaflet-v1__slide-card-model--residential{height:100%}.flatfinder-leaflet-v1 .leaflet-control-attribution{display:none}.flatfinder-leaflet-v1 .leaflet-container{background-color:#f5f5f5}@media (width>=768px){.flatfinder-leaflet-v1 .flatfinder-layer--animated{animation:2s infinite flatfinder-pulse}.flatfinder-leaflet-v1 .flatfinder-layer--current{animation:2s infinite flatfinder-pulse-current}}.flatfinder-leaflet-v1 .flatfinder-layer--current-animated{animation:2s infinite flatfinder-pulse-current}.flatfinder-leaflet-v1 .flatfinder-layer--delay-0{animation-delay:0s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-1{animation-delay:.2s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-2{animation-delay:.4s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-3{animation-delay:.6s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-4{animation-delay:.8s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-5{animation-delay:1s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-6{animation-delay:1.2s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-7{animation-delay:1.4s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-8{animation-delay:1.6s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-9{animation-delay:1.8s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-10{animation-delay:2s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-11{animation-delay:2.2s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-12{animation-delay:2.4s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-13{animation-delay:2.6s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-14{animation-delay:2.8s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-15{animation-delay:3s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-16{animation-delay:3.2s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-17{animation-delay:3.4s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-18{animation-delay:3.6s}.flatfinder-leaflet-v1 .flatfinder-layer--delay-19{animation-delay:3.8s}.flatfinder-leaflet-v1 .flatfinder-tooltip{white-space:normal;width:max-content;max-width:50ch;opacity:1!important}.flatfinder-leaflet-v1 .flatfinder-tooltip--hidden{opacity:0!important}.flatfinder-leaflet-v1 .flatfinder-tooltip--muted{backdrop-filter:blur(4px);background-color:#fffc;border-color:#0000}.flatfinder-leaflet-v1 .flatfinder-tooltip--muted .flatfinder-tooltip__description{display:none}.flatfinder-leaflet-v1 .flatfinder-tooltip__title{font-weight:700}.flatfinder-leaflet-v1 .elder-loader__element{z-index:9999}.flatfinder-leaflet-v1 .flatfinder-tooltip__description{letter-spacing:.3px;z-index:1000;pointer-events:none;background-color:#fff;border-radius:4px;width:max-content;max-width:250px;padding:.5rem;animation:.1s ease-out flatfinder-tooltip-fade-in;display:block;position:absolute}.flatfinder-leaflet-v1 .flatfinder-tooltip__description[data-visible=false]{visibility:hidden}.flatfinder-leaflet-v1 .flatfinder-tooltip__description p{margin-block:.25rem}.flatfinder-leaflet-v1--is-small-device{grid-template-columns:repeat(2,1fr) 250px;grid-template-areas:"flatfinder flatfinder carousel";display:grid}@media (width<=767px){.flatfinder-leaflet-v1--is-small-device{flex-direction:column;grid-template-areas:"flatfinder flatfinder flatfinder""carousel carousel carousel"}}@media (width<=992px){.flatfinder-leaflet-v1--is-small-device .flatfinder__list-item{box-shadow:none;border-radius:0;min-width:100px;min-height:40px}}.flatfinder-leaflet-v1--is-small-device .flatfinder-leaflet-v1__aspect{flex-direction:column;align-self:flex-start;gap:.2rem;display:flex}@media (width<=767px){.flatfinder-leaflet-v1--is-small-device .flatfinder-leaflet-v1__aspect{margin-bottom:1.6rem}}.flatfinder-leaflet-v1--is-small-device .flatfinder-leaflet-v1__bottom-left .flatfinder__overlay{box-shadow:none}@media (width<=767px){.flatfinder-leaflet-v1--is-small-device .flatfinder-leaflet-v1__bottom-left .flatfinder__overlay{color:inherit}}.flatfinder-leaflet-v1--is-small-device .flatfinder-leaflet-v1__bottom-right .flatfinder__list{justify-content:flex-start}@keyframes flatfinder-pulse-current{50%{fill-opacity:.5}}@keyframes flatfinder-pulse{50%{fill-opacity:.5}}@keyframes flatfinder-tooltip-fade-in{0%{opacity:0;translate:0 -.25rem;scale:.98}}.flatfinder{position:relative}@media (width<=767px){.flatfinder .flatfinder-leaflet-v1__bottom-left{text-align:center;width:100%;top:100%}.flatfinder .flatfinder-leaflet-v1__aspect{margin-bottom:2.5rem}}.flatfinder__title{text-align:center;margin:0}.flatfinder__header{margin-bottom:1rem}@media (width<=992px){.flatfinder__header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.2rem;display:flex}.flatfinder__header .flatfinder-filter{margin:0}.flatfinder__header .flatfinder-filter__trigger{padding:.5rem;font-size:.9em}.flatfinder__header .flatfinder-filter__trigger-add{justify-content:flex-end}}@media (width<=767px){.flatfinder__header{flex-direction:column;justify-content:center}}.flatfinder__nav{flex-wrap:wrap;display:flex}.flatfinder__filter-wrapper{min-height:80px}@media (width<=767px){.flatfinder__filter-count{border-radius:0 0 0 var(--k-flatfinder-border-radius,var(--k-flatfinder-border-radius-default))!important}}.flatfinder__container{min-height:70vh}@media (width<=992px){.flatfinder__container{--spacing:2rem;min-height:35vh}}@media (width<=767px){.flatfinder__container{padding:0}}.flatfinder__overlay{backdrop-filter:blur(8px);border-radius:var(--k-flatfinder-border-radius,var(--k-flatfinder-border-radius-default));color:#fff;background-color:#0000004d;padding:.5rem 1rem;box-shadow:0 5px 8px #0003}@media (width<=767px){.flatfinder__overlay{padding:.25rem .5rem;font-size:.6em}}.flatfinder__attribution{white-space:nowrap;font-size:.8em}@media (width<=767px){.flatfinder__attribution{box-shadow:none;backdrop-filter:none;background:0 0;padding:.5rem}}.flatfinder__list{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}@media (width<=767px){.flatfinder__list{gap:.25rem}}.flatfinder__list-item{border-radius:var(--k-flatfinder-border-radius,var(--k-flatfinder-border-radius-default));cursor:pointer;background-color:#ffffffb3;background-position:50%;background-size:cover;border:none;min-width:140px;min-height:100px;margin:0;padding:0;transition:transform .15s ease-out;overflow:hidden;box-shadow:0 4px 8px #00000080}.flatfinder__list-item:hover .flatfinder__list-item-label{opacity:0}.flatfinder__list-item-label{backdrop-filter:blur(3px);color:#fff;text-shadow:0 1px 2px #000c;background:#ffffff1a;justify-content:center;align-items:center;width:100%;height:100%;padding:.5rem 1rem;font-weight:700;transition:opacity .2s ease-out;display:flex}@media (width<=767px){.flatfinder__list-item-label{font-size:.8em}}.flatfinder .elder-loader__element{z-index:400;background-color:#0000}.flatfinder .elder-loader__element-content-inner{color:#fff;backdrop-filter:blur(5px);min-width:initial;align-items:center;gap:1rem;margin:1rem;padding:.75rem 2rem .75rem .75rem;display:flex;background-color:#0000004d!important;border:none!important}.flatfinder .elder-loader__loading-message{margin:0}.flatfinder{--k-flatfinder-border-radius-default:6px}.flatfinder *,.flatfinder :before,.flatfinder :after{box-sizing:border-box}
|
|
180
|
-
`,oS={__name:"Flatfinder.ce",props:{projectUrl:{type:String,required:!0},projectId:{type:String,required:!0},pathPrefix:{type:String,default:""}},setup(t){return(e,i)=>(R(),Ct(dt(nS),{class:"kvass-flatfinder","project-url":t.projectUrl,"project-id":t.projectId,"path-prefix":t.pathPrefix},null,8,["project-url","project-id","path-prefix"]))}},aS=Jv(oS,[["styles",[rS]]]);customElements.define("kvass-flatfinder",Qv(aS));
|