@budibase/client 3.18.5 → 3.18.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/budibase-client.js
CHANGED
|
@@ -379,7 +379,7 @@ Please report this to https://github.com/markedjs/marked.`,u){const p="<p>An err
|
|
|
379
379
|
Use Save As... to download, then click back to return to this page.`)&&(location.href=pe),!0;var we=document.createElement("iframe");document.body.appendChild(we),!me&&/^data:/.test(pe)&&(pe="data:"+pe.replace(/^data:([\w\/\-\+]+)/,w)),we.src=pe,setTimeout(function(){document.body.removeChild(we)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob($,U);if(y.URL)ce(y.URL.createObjectURL($),!0);else{if(typeof $=="string"||$.constructor===O)try{return ce("data:"+v+";base64,"+y.btoa($))}catch{return ce("data:"+v+","+encodeURIComponent($))}X=new FileReader,X.onload=function(pe){ce(this.result)},X.readAsDataURL($)}return!0}})})(download$1);var downloadExports=download$1.exports;const download=getDefaultExportFromCjs$1(downloadExports),API$1=createAPIClient({enableCaching:!0,attachHeaders:u=>{window["##BUDIBASE_APP_ID##"]&&(u["x-budibase-app-id"]=window["##BUDIBASE_APP_ID##"]),get_store_value(appStore).embedded&&(u["x-budibase-embed-location"]=window.location.pathname),window["##BUDIBASE_IN_BUILDER##"]||(u["x-budibase-type"]="client");const f=get_store_value(authStore);f!=null&&f.csrfToken&&(u["x-csrf-token"]=f.csrfToken);const p=get_store_value(devToolsStore);get_store_value(devToolsEnabled)&&p.role&&(u["x-budibase-role"]=p.role)},onError:u=>{var v;const{status:l,method:f,url:p,message:m,handled:b,suppressErrors:y}=u||{},w=["bbtel","/api/global/self","/api/tables/ta_users"];if(l===498){recaptchaStore.actions.unverified();return}if(!b){console.error("Unhandled error from API client",u);return}if(m&&!y){let k=!1;for(let S of w)if(p!=null&&p.includes(S)){k=!0;break}if(!k){const S=(v=u==null?void 0:u.json)==null?void 0:v.validationErrors;if(S)for(let B in S)notificationStore.actions.error(`${B} ${S[B]}`);else notificationStore.actions.error(m)}}console.warn(`[Client] HTTP ${l} on ${f}:${p}
|
|
380
380
|
${m}`)},onMigrationDetected:u=>{window.MIGRATING_APP||window.location.reload()}}),ActionTypes={ValidateForm:"ValidateForm",UpdateFieldValue:"UpdateFieldValue",RefreshDatasource:"RefreshDatasource",AddDataProviderQueryExtension:"AddDataProviderQueryExtension",RemoveDataProviderQueryExtension:"RemoveDataProviderQueryExtension",AddDataProviderFilterExtension:"AddDataProviderFilterExtension",RemoveDataProviderFilterExtension:"RemoveDataProviderFilterExtension",SetDataProviderSorting:"SetDataProviderSorting",ClearForm:"ClearForm",ChangeFormStep:"ChangeFormStep",ScrollTo:"ScrollTo",ClearRowSelection:"ClearRowSelection"},PeekMessages={NOTIFICATION:"notification",CLOSE_SCREEN_MODAL:"close-screen-modal",INVALIDATE_DATASOURCE:"invalidate-datasource",UPDATE_STATE:"update-state",REFRESH_ALL_DATASOURCES:"refresh-all-datasources"},DNDPlaceholderID="dnd-placeholder",ScreenslotType="screenslot",ScreenslotID="screenslot",GridRowHeight=24,GridColumns=12,GridSpacing=4,patchAPI=u=>{const l=async(v,k)=>{var S;if(!Array.isArray(v))return[];if(v.length){const B={};for(let O of v){let R=O.tableId||k,U=B[R];U||(U=await u.fetchTableDefinition(R),B[R]=U);const $=U==null?void 0:U.schema;if($){const X=Object.keys($);for(let K of X){const J=$[K].type;if(J===FieldType.LINK&&Array.isArray(O[K]))O[`${K}_text`]=((S=O[K])==null?void 0:S.map(Z=>Z==null?void 0:Z.primaryDisplay).filter(Z=>!!Z).join(", "))||"";else if(J==="attachment"){let Z=null;Array.isArray(O[K])&&O[K][0]!=null&&(Z=O[K][0].url),O[`${K}_first`]=Z}}}}}return v},f=u.fetchSelf;u.fetchSelf=async()=>{const v=await f();return v&&"_id"in v&&v._id?v.roleId==="PUBLIC"?v:(await l([v],TableNames.USERS))[0]:null};const p=u.fetchRelationshipData;u.fetchRelationshipData=async(v,k,S)=>{const B=await p(v,k,S);return await l(B,v)};const m=u.fetchTableData;u.fetchTableData=async v=>{const k=await m(v);return await l(k,v)};const b=u.searchTable;u.searchTable=async(v,k)=>{const S=await b(v,k);return{...S,rows:await l(S.rows,v)}};const y=u.fetchViewData;u.fetchViewData=async(v,k)=>{const S=k==null?void 0:k.tableId,B=await y(v,k);return await l(B,S)};const w=u.fetchTableDefinition;u.fetchTableDefinition=async v=>{const k=await w(v);return Object.keys((k==null?void 0:k.schema)||{}).forEach(S=>{var B;((B=k.schema[S])==null?void 0:B.type)==="formula"&&delete k.schema[S].formula}),k}};patchAPI(API$1);const createAuthStore=()=>{const u=writable(),l=m=>m!=null&&"_id"in m,f=async()=>{let m,b;try{m=await API$1.fetchBuilderSelf()}catch{u.set(void 0);return}try{const y=await API$1.fetchSelf();l(y)&&(b=y)}catch{}u.set(b||m)},p=async()=>{try{await API$1.logOut(),window.location.href="/"}catch{}window.document.cookie="budibase:auth=; budibase:currentapp=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"};return{subscribe:u.subscribe,actions:{fetchUser:f,logOut:p}}},authStore=createAuthStore(),initialState$4={appId:null,isDevApp:!1,clientLoadTime:window.INIT_TIME?Date.now()-window.INIT_TIME:null,embedded:!1,inIframe:window.self!==window.top},createAppStore=()=>{const u=writable(initialState$4),l=derived(u,b=>{var y;return{...b,isDevApp:(y=b.appId)==null?void 0:y.startsWith("app_dev")}}),f=async()=>{var y,w;const b=(y=get_store_value(u))==null?void 0:y.appId;if(!b)throw"Cannot fetch app definition without app ID set";try{const v=await API$1.fetchAppPackage(b);u.set({...initialState$4,...v,appId:(w=v==null?void 0:v.application)==null?void 0:w.appId})}catch{u.set(initialState$4)}},p=b=>{u.update(y=>({...y,appId:b}))},m=b=>{u.update(y=>({...y,embedded:b}))};return{subscribe:l.subscribe,actions:{setAppId:p,setAppEmbedded:m,fetchAppDefinition:f}}},appStore=createAppStore();function parse$5(u,l){if(u instanceof RegExp)return{keys:!1,pattern:u};var f,p,m,b,y=[],w="",v=u.split("/");for(v[0]||v.shift();m=v.shift();)f=m[0],f==="*"?(y.push("wild"),w+="/(.*)"):f===":"?(p=m.indexOf("?",1),b=m.indexOf(".",1),y.push(m.substring(1,~p?p:~b?b:m.length)),w+=~p&&!~b?"(?:/([^/]+?))?":"/([^/]+?)",~b&&(w+=(~p?"?":"")+"\\"+m.substring(b))):w+="/"+m;return{keys:y,pattern:new RegExp("^"+w+(l?"(?=$|/)":"/?$"),"i")}}function create_else_block$k(u){let l,f,p;const m=[u[2]];var b=u[0];function y(w,v){let k={};for(let S=0;S<m.length;S+=1)k=assign(k,m[S]);return v!==void 0&&v&4&&(k=assign(k,get_spread_update(m,[get_spread_object(w[2])]))),{props:k}}return b&&(l=construct_svelte_component(b,y(u)),l.$on("routeEvent",u[7])),{c(){l&&create_component(l.$$.fragment),f=empty$1()},m(w,v){l&&mount_component(l,w,v),insert(w,f,v),p=!0},p(w,v){if(v&1&&b!==(b=w[0])){if(l){group_outros();const k=l;transition_out(k.$$.fragment,1,0,()=>{destroy_component(k,1)}),check_outros()}b?(l=construct_svelte_component(b,y(w,v)),l.$on("routeEvent",w[7]),create_component(l.$$.fragment),transition_in(l.$$.fragment,1),mount_component(l,f.parentNode,f)):l=null}else if(b){const k=v&4?get_spread_update(m,[get_spread_object(w[2])]):{};l.$set(k)}},i(w){p||(l&&transition_in(l.$$.fragment,w),p=!0)},o(w){l&&transition_out(l.$$.fragment,w),p=!1},d(w){w&&detach(f),l&&destroy_component(l,w)}}}function create_if_block$1h(u){let l,f,p;const m=[{params:u[1]},u[2]];var b=u[0];function y(w,v){let k={};for(let S=0;S<m.length;S+=1)k=assign(k,m[S]);return v!==void 0&&v&6&&(k=assign(k,get_spread_update(m,[v&2&&{params:w[1]},v&4&&get_spread_object(w[2])]))),{props:k}}return b&&(l=construct_svelte_component(b,y(u)),l.$on("routeEvent",u[6])),{c(){l&&create_component(l.$$.fragment),f=empty$1()},m(w,v){l&&mount_component(l,w,v),insert(w,f,v),p=!0},p(w,v){if(v&1&&b!==(b=w[0])){if(l){group_outros();const k=l;transition_out(k.$$.fragment,1,0,()=>{destroy_component(k,1)}),check_outros()}b?(l=construct_svelte_component(b,y(w,v)),l.$on("routeEvent",w[6]),create_component(l.$$.fragment),transition_in(l.$$.fragment,1),mount_component(l,f.parentNode,f)):l=null}else if(b){const k=v&6?get_spread_update(m,[v&2&&{params:w[1]},v&4&&get_spread_object(w[2])]):{};l.$set(k)}},i(w){p||(l&&transition_in(l.$$.fragment,w),p=!0)},o(w){l&&transition_out(l.$$.fragment,w),p=!1},d(w){w&&detach(f),l&&destroy_component(l,w)}}}function create_fragment$27(u){let l,f,p,m;const b=[create_if_block$1h,create_else_block$k],y=[];function w(v,k){return v[1]?0:1}return l=w(u),f=y[l]=b[l](u),{c(){f.c(),p=empty$1()},m(v,k){y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?y[l].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p))},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),y[l].d(v)}}}function getLocation(){const u=window.location.href.indexOf("#/");let l=u>-1?window.location.href.substr(u+1):"/";const f=l.indexOf("?");let p="";return f>-1&&(p=l.substr(f+1),l=l.substr(0,f)),{location:l,querystring:p}}const loc=readable(null,function u(l){l(getLocation());const f=()=>{l(getLocation())};return window.addEventListener("hashchange",f,!1),function(){window.removeEventListener("hashchange",f,!1)}});derived(loc,u=>u.location);const querystring=derived(loc,u=>u.querystring),params=writable(void 0);async function push(u){if(!u||u.length<1||u.charAt(0)!="/"&&u.indexOf("#/")!==0)throw Error("Invalid parameter location");await tick(),history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=(u.charAt(0)=="#"?"":"#")+u}function link$1(u,l){if(l=linkOpts(l),!u||!u.tagName||u.tagName.toLowerCase()!="a")throw Error('Action "link" can only be used with <a> tags');return updateLink(u,l),{update(f){f=linkOpts(f),updateLink(u,f)}}}function restoreScroll(u){u?window.scrollTo(u.__svelte_spa_router_scrollX,u.__svelte_spa_router_scrollY):window.scrollTo(0,0)}function updateLink(u,l){let f=l.href||u.getAttribute("href");if(f&&f.charAt(0)=="/")f="#"+f;else if(!f||f.length<2||f.slice(0,2)!="#/")throw Error('Invalid value for "href" attribute: '+f);u.setAttribute("href",f),u.addEventListener("click",p=>{p.preventDefault(),l.disabled||scrollstateHistoryHandler(p.currentTarget.getAttribute("href"))})}function linkOpts(u){return u&&typeof u=="string"?{href:u}:u||{}}function scrollstateHistoryHandler(u){history.replaceState({...history.state,__svelte_spa_router_scrollX:window.scrollX,__svelte_spa_router_scrollY:window.scrollY},void 0),window.location.hash=u}function instance$25(u,l,f){let{routes:p={}}=l,{prefix:m=""}=l,{restoreScrollState:b=!1}=l;class y{constructor(ie,ce){if(!ce||typeof ce!="function"&&(typeof ce!="object"||ce._sveltesparouter!==!0))throw Error("Invalid component object");if(!ie||typeof ie=="string"&&(ie.length<1||ie.charAt(0)!="/"&&ie.charAt(0)!="*")||typeof ie=="object"&&!(ie instanceof RegExp))throw Error('Invalid value for "path" argument - strings must start with / or *');const{pattern:pe,keys:me}=parse$5(ie);this.path=ie,typeof ce=="object"&&ce._sveltesparouter===!0?(this.component=ce.component,this.conditions=ce.conditions||[],this.userData=ce.userData,this.props=ce.props||{}):(this.component=()=>Promise.resolve(ce),this.conditions=[],this.props={}),this._pattern=pe,this._keys=me}match(ie){if(m){if(typeof m=="string")if(ie.startsWith(m))ie=ie.substr(m.length)||"/";else return null;else if(m instanceof RegExp){const we=ie.match(m);if(we&&we[0])ie=ie.substr(we[0].length)||"/";else return null}}const ce=this._pattern.exec(ie);if(ce===null)return null;if(this._keys===!1)return ce;const pe={};let me=0;for(;me<this._keys.length;){try{pe[this._keys[me]]=decodeURIComponent(ce[me+1]||"")||null}catch{pe[this._keys[me]]=null}me++}return pe}async checkConditions(ie){for(let ce=0;ce<this.conditions.length;ce++)if(!await this.conditions[ce](ie))return!1;return!0}}const w=[];p instanceof Map?p.forEach((se,ie)=>{w.push(new y(ie,se))}):Object.keys(p).forEach(se=>{w.push(new y(se,p[se]))});let v=null,k=null,S={};const B=createEventDispatcher();async function O(se,ie){await tick(),B(se,ie)}let R=null,U=null;b&&(U=se=>{se.state&&(se.state.__svelte_spa_router_scrollY||se.state.__svelte_spa_router_scrollX)?R=se.state:R=null},window.addEventListener("popstate",U),afterUpdate(()=>{restoreScroll(R)}));let $=null,X=null;const K=loc.subscribe(async se=>{$=se;let ie=0;for(;ie<w.length;){const ce=w[ie].match(se.location);if(!ce){ie++;continue}const pe={route:w[ie].path,location:se.location,querystring:se.querystring,userData:w[ie].userData,params:ce&&typeof ce=="object"&&Object.keys(ce).length?ce:null};if(!await w[ie].checkConditions(pe)){f(0,v=null),X=null,O("conditionsFailed",pe);return}O("routeLoading",Object.assign({},pe));const me=w[ie].component;if(X!=me){me.loading?(f(0,v=me.loading),X=me,f(1,k=me.loadingParams),f(2,S={}),O("routeLoaded",Object.assign({},pe,{component:v,name:v.name,params:k}))):(f(0,v=null),X=null);const we=await me();if(se!=$)return;f(0,v=we&&we.default||we),X=me}ce&&typeof ce=="object"&&Object.keys(ce).length?f(1,k=ce):f(1,k=null),f(2,S=w[ie].props),O("routeLoaded",Object.assign({},pe,{component:v,name:v.name,params:k})).then(()=>{params.set(k)});return}f(0,v=null),X=null,params.set(void 0)});onDestroy(()=>{K(),U&&window.removeEventListener("popstate",U)});function J(se){bubble.call(this,u,se)}function Z(se){bubble.call(this,u,se)}return u.$$set=se=>{"routes"in se&&f(3,p=se.routes),"prefix"in se&&f(4,m=se.prefix),"restoreScrollState"in se&&f(5,b=se.restoreScrollState)},u.$$.update=()=>{u.$$.dirty&32&&(history.scrollRestoration=b?"manual":"auto")},[v,k,S,p,m,b,J,Z]}class Router extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$25,create_fragment$27,safe_not_equal,{routes:3,prefix:4,restoreScrollState:5})}}const createStateStore=()=>{const l=`${window["##BUDIBASE_APP_ID##"]||"app"}.state`,f=createLocalStorageStore(l,{}),p=writable(get_store_value(f)),m=(v,k,S=!1)=>{const B=S?f:p,O=S?p:f;B.update(R=>(R[v]=k,R)),O.update(R=>(delete R[v],R))},b=v=>{[p,f].forEach(S=>{S.update(B=>(delete B[v],B))})},y=p.set;return{subscribe:derived([p,f],([v,k])=>({...v,...k})).subscribe,actions:{setValue:m,deleteValue:b,initialise:y}}},stateStore=createStateStore(),initialState$3={showPeek:!1,url:null,href:null,external:!1},createPeekStore=()=>{const u=writable(initialState$3),l=p=>{let m=p,b=!p.startsWith("/");if(!b){const y=get_store_value(stateStore),v=`peek=true&state=${encodeURIComponent(btoa(JSON.stringify(y)))}`;m=`${window.location.href.split("#")[0]}#${p}?${v}`}u.set({showPeek:!0,url:p,href:m,external:b})},f=()=>{u.set(initialState$3)};return{subscribe:u.subscribe,actions:{showPeek:l,hidePeek:f}}},peekStore=createPeekStore(),createOrgStore=()=>{const u=writable(null),{subscribe:l,set:f}=u;async function p(){var b;const m=(b=get_store_value(appStore).application)==null?void 0:b.tenantId;if(m)try{const y=await API$1.getTenantConfig(m);f({logoUrl:y.config.logoUrl})}catch(y){console.error("Could not init org ",y)}}return{subscribe:l,actions:{init:p}}},orgStore=createOrgStore(),createRecaptchaStore=()=>{const u=writable({verified:!1}),l=async()=>{const{verified:p}=await API$1.recaptcha.check();u.update(m=>(m.verified=p,m))},f=()=>{u.update(p=>(p.verified=!1,p))};return{subscribe:u.subscribe,actions:{checkVerified:l,unverified:f}}},recaptchaStore=createRecaptchaStore();async function initialise(){await routeStore.actions.fetchRoutes(),await appStore.actions.fetchAppDefinition(),get_store_value(appStore).recaptchaKey&&await recaptchaStore.actions.checkVerified(),await orgStore.actions.init()}const initialState$2={visible:!1,allowSelection:!1,role:null},createDevToolStore=()=>{const u=createLocalStorageStore("bb-devtools",initialState$2),l=m=>{u.update(b=>({...b,visible:m}))},f=m=>{u.update(b=>({...b,allowSelection:m}))},p=async m=>{m==="self"&&(m=null),m!==get_store_value(u).role&&(u.update(b=>({...b,role:m})),API$1.invalidateCache(),await authStore.actions.fetchUser(),await initialise())};return{subscribe:u.subscribe,actions:{setVisible:l,setAllowSelection:f,changeRole:p}}},devToolsStore=createDevToolStore(),createEventStore=()=>{const l=writable({eventResolvers:{}}),f={dispatchEvent:(p,m)=>{const b=Math.random();return new Promise(y=>{window.parent.postMessage({type:p,data:m,id:b}),l.update(w=>(w.eventResolvers[b]=y,w))})},resolveEvent:p=>{var m,b;(b=(m=get_store_value(l).eventResolvers)[p])==null||b.call(m)}};return{subscribe:l.subscribe,actions:f}},eventStore=createEventStore(),createBuilderStore=()=>{const u={inBuilder:!1,screen:null,selectedComponentId:void 0,editMode:!1,previewId:null,theme:null,customTheme:null,previewDevice:"desktop",navigation:null,hiddenComponentIds:[],usedPlugins:null,metadata:null,snippets:null,componentErrors:{}},l=writable(u);return{...l,set:p=>l.set({...u,...p}),actions:{selectComponent:p=>{p!==get_store_value(l).selectedComponentId&&(l.update(m=>({...m,editMode:!1,selectedComponentId:p})),devToolsStore.actions.setAllowSelection(!1),eventStore.actions.dispatchEvent("select-component",{id:p}))},updateProp:(p,m)=>{eventStore.actions.dispatchEvent("update-prop",{prop:p,value:m})},updateStyles:async(p,m)=>{await eventStore.actions.dispatchEvent("update-styles",{styles:p,id:m})},keyDown:(p,m)=>{eventStore.actions.dispatchEvent("key-down",{key:p,ctrlKey:m})},duplicateComponent:(p,m=DropPosition.BELOW,b=!0)=>{eventStore.actions.dispatchEvent("duplicate-component",{id:p,mode:m,selectComponent:b})},deleteComponent:p=>{eventStore.actions.dispatchEvent("delete-component",{id:p})},notifyLoaded:()=>{eventStore.actions.dispatchEvent("preview-loaded")},analyticsPing:async({embedded:p})=>{try{await API$1.analyticsPing({source:PingSource.APP,embedded:p})}catch{}},moveComponent:async(p,m,b)=>{await eventStore.actions.dispatchEvent("move-component",{componentId:p,destinationComponentId:m,mode:b})},dropNewComponent:(p,m,b,y)=>{eventStore.actions.dispatchEvent("drop-new-component",{component:p,parent:m,index:b,props:y})},setEditMode:p=>{p!==get_store_value(l).editMode&&l.update(m=>({...m,editMode:p}))},requestAddComponent:()=>{eventStore.actions.dispatchEvent("request-add-component")},highlightSetting:p=>{eventStore.actions.dispatchEvent("highlight-setting",{setting:p})},ejectBlock:(p,m)=>{eventStore.actions.dispatchEvent("eject-block",{id:p,definition:m})},updateUsedPlugin:(p,m)=>{var y,w;const b=(w=(y=get_store_value(l))==null?void 0:y.usedPlugins)==null?void 0:w.find(v=>v.name===p);b&&l.update(v=>(v.usedPlugins=v.usedPlugins.filter(k=>k.name!==p),v.usedPlugins.push({...b,hash:m}),v)),eventStore.actions.dispatchEvent("reload-plugin")},addParentComponent:(p,m)=>{eventStore.actions.dispatchEvent("add-parent-component",{componentId:p,parentType:m})},setMetadata:p=>{l.update(m=>({...m,metadata:p}))}}}},builderStore=createBuilderStore(),createRouteStore=()=>{const u={routes:[],routeParams:{},activeRoute:null,routeSessionId:Math.random(),routerLoaded:!1,queryParams:{}},l=writable(u),f=async()=>{let S;try{S=await API$1.fetchClientAppRoutes()}catch{S=null}const B=[];Object.values((S==null?void 0:S.routes)||{}).forEach(O=>{Object.entries(O.subpaths||{}).forEach(([R,U])=>{B.push({path:R,screenId:U.screenId})})}),B.sort((O,R)=>O.path>R.path?-1:1),l.update(O=>(O.routes=B,O.routeSessionId=Math.random(),O))},p=S=>{l.update(B=>(B.routeParams=S,B))},m=S=>{l.update(B=>{var O;return B.queryParams={...S,peek:S.peek||((O=B.queryParams)==null?void 0:O.peek)},B})},b=S=>{l.update(B=>(B.activeRoute=B.routes.find(O=>O.path===S),B))},y=(S,B,O)=>{var R;if(!get_store_value(builderStore).inBuilder&&S){const U=(R=get_store_value(l).queryParams)==null?void 0:R.peek,$=!S.startsWith("/");B&&!U&&!$?peekStore.actions.showPeek(S):$?(S.startsWith("www")&&(S=`https://${S}`),O?window.open(S,"_blank"):window.location.href=S):push(S)}},w=()=>{l.update(S=>({...S,routerLoaded:!0}))},v=S=>S!=null&&S.startsWith("/")?window.location.href.includes("#")?`${window.location.href.split("#")[0]}#${S}`:`${window.location.href}#${S}`:S,k=(S,B)=>{var se;if(S==="/")return;const[O,R]=B.split("?"),U=S.split("/").filter(Boolean),$=(se=U[0])!=null&&se.startsWith(":")?0:1,X=U.slice($),K=O.split("/"),J={};X.forEach((ie,ce)=>{ie.startsWith(":")&&ce<K.length&&(J[ie.slice(1)]=K[ce])});const Z={};R&&R.split("&").forEach(ie=>{const[ce,pe]=ie.split("=");ce&&pe&&(Z[ce]=pe)}),m({...Z}),l.update(ie=>({...ie,testUrlParams:J}))};return{subscribe:l.subscribe,actions:{fetchRoutes:f,navigate:y,createFullURL:v,setRouteParams:p,setQueryParams:m,setActiveRoute:b,setRouterLoaded:w,setTestUrlParams:k}}},routeStore=createRouteStore(),DEFAULT_NOTIFICATION_TIMEOUT=3e3,createNotificationStore=()=>{let u=!1;const l=writable([]),f=(y=1e3)=>{u=!0,setTimeout(()=>u=!1,y)},p=(y,w="info",v,k=!0,S,B=1)=>{var R;if(u)return;if((R=get_store_value(routeStore).queryParams)!=null&&R.peek){window.parent.postMessage({type:PeekMessages.NOTIFICATION,detail:{message:y,type:w,icon:v,duration:S,autoDismiss:k}});return}const O=b();l.update(U=>{const $=U.find(X=>X.message===y);return $?($.count+=1,[...U]):[...U,{id:O,type:w,message:y,icon:v,dismissable:!k,delay:get_store_value(l)!=null,count:B}]}),k&&setTimeout(()=>{m(O)},S||DEFAULT_NOTIFICATION_TIMEOUT)},m=y=>{l.update(w=>w.filter(v=>v.id!==y))};return{subscribe:l.subscribe,actions:{send:p,info:(y,w,v)=>p(y,"info","info",w??!0,v),success:(y,w,v)=>p(y,"success","check-circle",w??!0,v),warning:(y,w,v)=>p(y,"warning","warning",w??!0,v),error:(y,w,v)=>p(y,"error","warning",w??!1,v),blockNotifications:f,dismiss:m}};function b(){return"_"+Math.random().toString(36).slice(2,9)}},notificationStore=createNotificationStore(),createDndStore=()=>{const u=writable({}),l=w=>{u.set({source:{...w,isNew:!1}})},f=w=>{var R,U,$,X,K;let v,k;if(get_store_value(isGridScreen)){const J=(R=get_store_value(screenStore))==null?void 0:R.activeScreen,Z=J.props._id;v={id:Z,parent:ScreenslotID,empty:!1,acceptsChildren:!0},k={parent:Z,index:(($=(U=J==null?void 0:J.props)==null?void 0:U._children)==null?void 0:$.length)||0}}const S=componentStore.actions.getComponentDefinition(w),B=((X=S==null?void 0:S.size)==null?void 0:X.width)||128,O=((K=S==null?void 0:S.size)==null?void 0:K.height)||64;u.set({source:{bounds:{height:O,width:B},type:w,isNew:!0,name:`New ${(S==null?void 0:S.name)||"component"}`,icon:(S==null?void 0:S.icon)||"selection"},target:v,drop:k})},p=w=>{u.update(v=>(v.target=w,v))},m=w=>{u.update(v=>(v.drop=w,v))},b=()=>{u.set({})},y=w=>{u.update(v=>({...v,meta:{...v.meta,props:w}}))};return{subscribe:u.subscribe,actions:{startDraggingExistingComponent:l,startDraggingNewComponent:f,updateTarget:p,updateDrop:m,reset:b,updateNewComponentProps:y}}},dndStore=createDndStore(),dndParent=derivedMemo(dndStore,u=>{var l;return(l=u.drop)==null?void 0:l.parent}),dndIndex=derivedMemo(dndStore,u=>{var l;return(l=u.drop)==null?void 0:l.index}),dndSource=derivedMemo(dndStore,u=>u.source),dndIsDragging=derivedMemo(dndStore,u=>!!u.source),findComponentById=(u,l)=>{var f;if(!u||!l)return null;if(u._id===l)return u;if(!((f=u._children)!=null&&f.length))return null;for(let p of u._children){const m=findComponentById(p,l);if(m)return m}return null},findComponentPathById=(u,l,f=[])=>{var p;if(!u||!l)return null;if(f=[...f,u],u._id===l)return f;if(!((p=u._children)!=null&&p.length))return null;for(let m of u._children){const b=findComponentPathById(m,l,f);if(b)return b}return null},findComponentParent=(u,l,f)=>{if(!u||!l)return null;if(u._id===l)return f||null;if(!u._children)return null;for(const p of u._children){const m=findComponentParent(p,l,u);if(m)return m}return null},createScreenStore=()=>({subscribe:derived([appStore,routeStore,builderStore,orgStore,dndParent,dndIndex,dndSource],([l,f,p,m,b,y,w])=>{var B,O,R,U,$,X,K,J,Z;let v,k,S;if(p.inBuilder){k=cloneDeep$6(p.screen),S=[k];const se=p.componentErrors||{},ie=ce=>{var pe;ce._meta={errors:se[ce._id]||[]},(pe=ce._children)==null||pe.forEach(ie)};ie(k.props)}else{S=l.screens||[];const{activeRoute:se}=f;if(se&&(k=cloneDeep$6(S.find(ie=>ie._id===se.screenId))),k){const ie=(B=l.layouts)==null?void 0:B.find(ce=>ce._id===k.layoutId);ie&&(v=ie)}}if(k&&b&&y!=null){const{selectedComponentId:se}=p;let ie=findComponentParent(k.props,se);!w.isNew&&ie&&(ie._children=(O=ie._children)==null?void 0:O.filter(me=>me._id!==se));const ce={_instanceName:"",_component:"@budibase/standard-components/container",_id:DNDPlaceholderID,_styles:{normal:{width:`${((R=w==null?void 0:w.bounds)==null?void 0:R.width)||400}px`,height:`${((U=w==null?void 0:w.bounds)==null?void 0:U.height)||200}px`,opacity:0,"--default-width":(($=w==null?void 0:w.bounds)==null?void 0:$.width)||400,"--default-height":((X=w==null?void 0:w.bounds)==null?void 0:X.height)||200}},static:!0};let pe=findComponentById(k.props,b);pe&&((K=pe._children)!=null&&K.length?pe._children.splice(y,0,ce):pe._children=[ce])}if(S.forEach(se=>{const ie=se.routing.roleId;let ce=getRolePriority(ie);se.routing.homeScreen&&(ce+=100),se.rank=ce}),S=S.sort((se,ie)=>se.rank!==ie.rank?se.rank>ie.rank?-1:1:se.routing.route<ie.routing.route?-1:1),!v){let se={navigation:"None",pageWidth:(k==null?void 0:k.width)||"Large",embedded:l.embedded};k!=null&&k.showNavigation&&(se={...se,...p.navigation||((J=l.application)==null?void 0:J.navigation)},se.navigation||(se.navigation="Top"),!se.title&&!se.hideTitle&&(se.title=(Z=l.application)==null?void 0:Z.name),se.logoUrl||(se.logoUrl=m==null?void 0:m.logoUrl)),v={_id:"layout",props:{_component:"@budibase/standard-components/layout",_children:[{_component:ScreenslotType,_id:ScreenslotID,_styles:{normal:{flex:"1 1 auto",display:"flex","flex-direction":"column","justify-content":"flex-start","align-items":"stretch"}}}],...se}}}return{screens:S,activeLayout:v,activeScreen:k}}).subscribe}),screenStore=createScreenStore(),isGridScreen=derived(screenStore,u=>{var l,f,p;return((f=(l=u.activeScreen)==null?void 0:l.props)==null?void 0:f.layout)==="grid"||((p=u.activeScreen)==null?void 0:p.variant)===ScreenVariant.PDF}),createDataSourceStore=()=>{const u=writable([]),l=(b,y,w)=>{if(!b||!y||!w)return;let v=null;b.type==="table"||b.type==="view"?v=b.tableId:b.type==="viewV2"?v=b.id:b.type===FieldType.LINK?v=b.tableId||b.rowTableId:b.type==="query"&&(v=b.datasourceId),v&&u.update(k=>(k.push({dataSourceId:v,instanceId:y,refresh:w}),k))},f=b=>{u.update(y=>y.filter(w=>w.instanceId!==b))},p=async(b,y)=>{var S;if(!b)return;y={invalidateRelationships:!1,...y},((S=get_store_value(routeStore).queryParams)==null?void 0:S.peek)&&window.parent.postMessage({type:PeekMessages.INVALIDATE_DATASOURCE,detail:{dataSourceId:b,options:y}});let v=[b],k;if(y.invalidateRelationships&&!(b!=null&&b.includes("view_")))try{const B=await API$1.fetchTableDefinition(b);k=B==null?void 0:B.schema}catch{k=null}k&&Object.values(k).forEach(B=>{B.type===FieldType.LINK&&B.tableId&&!B.autocolumn&&v.push(B.tableId)}),v=[...new Set(v)],v.forEach(B=>{const O=get_store_value(u).filter(R=>R.dataSourceId===B);O==null||O.forEach(R=>{R.refresh()})})},m=()=>{var y;get_store_value(u).forEach(w=>w.refresh()),((y=get_store_value(routeStore).queryParams)==null?void 0:y.peek)&&window.parent.postMessage({type:PeekMessages.REFRESH_ALL_DATASOURCES})};return{subscribe:u.subscribe,actions:{registerDataSource:l,unregisterInstance:f,invalidateDataSource:p,refreshAll:m}}},dataSourceStore=createDataSourceStore(),initialState$1={showConfirmation:!1,title:null,text:null,confirmButtonText:null,cancelButtonText:null,onConfirm:null,onCancel:null},createConfirmationStore=()=>{const u=writable(initialState$1),l=(m,b,y,w,v,k)=>{u.set({showConfirmation:!0,title:m,text:b,confirmButtonText:v,cancelButtonText:k,onConfirm:y,onCancel:w})},f=async()=>{const m=get_store_value(u);!m.showConfirmation||!m.onConfirm||(u.set(initialState$1),await m.onConfirm())},p=()=>{const m=get_store_value(u);u.set(initialState$1),m.onCancel&&m.onCancel()};return{subscribe:u.subscribe,actions:{showConfirmation:l,confirm:f,cancel:p}}},confirmationStore=createConfirmationStore();class UIStateStore{constructor(){Vr(this,"appId");Vr(this,"localStorageKey");Vr(this,"persistentStore");Vr(this,"subscribe");Vr(this,"set");Vr(this,"update");this.appId=window["##BUDIBASE_APP_ID##"]||"app",this.localStorageKey=`${this.appId}.ui`,this.persistentStore=createLocalStorageStore(this.localStorageKey,{}),this.subscribe=this.persistentStore.subscribe,this.set=this.persistentStore.set,this.update=this.persistentStore.update}}const uiStateStore=new UIStateStore,defaultCustomTheme={primaryColor:"var(--spectrum-global-color-blue-600)",primaryColorHover:"var(--spectrum-global-color-blue-500)",buttonBorderRadius:"16px",navBackground:"var(--spectrum-global-color-gray-100)",navTextColor:"var(--spectrum-global-color-gray-800)"},createThemeStore=()=>({subscribe:derived([builderStore,appStore],([l,f])=>{var y,w;let p=(y=f.application)==null?void 0:y.theme,m=(w=f.application)==null?void 0:w.customTheme;l.inBuilder&&(p=l.theme,m=l.customTheme),p=ensureValidTheme(p,DefaultAppTheme),m&&Object.entries(m).forEach(([v,k])=>{(k==null||k==="")&&delete m[v]}),m={...defaultCustomTheme,...m};let b="";return Object.entries(m).forEach(([v,k])=>{b+=`--${v}:${k};`}),{theme:p,customTheme:m,customThemeCss:b}}).subscribe}),themeStore=createThemeStore(),features={spectrumThemes:!0,unifiedTheme:!0,intelligentLoading:!0,deviceAwareness:!0,state:!0,customThemes:!0,devicePreview:!0,messagePassing:!0,rowSelection:!0,continueIfAction:!0,showNotificationAction:!0,sidePanel:!0,modal:!0,skeletonLoader:!0},typeSupportPresets={numberLike:{supported:["number","boolean"],partialSupport:[{type:"longform",message:"stringAsNumber"},{type:"string",message:"stringAsNumber"},{type:"bigint",message:"stringAsNumber"},{type:"options",message:"stringAsNumber"},{type:"formula",message:"stringAsNumber"},{type:"datetime",message:"dateAsNumber"}],unsupported:[{type:"json",message:"jsonPrimitivesOnly"}]},stringLike:{supported:["string","number","bigint","options","longform","boolean","datetime"],unsupported:[{type:"json",message:"jsonPrimitivesOnly"}]},datetimeLike:{supported:["datetime"],partialSupport:[{type:"longform",message:"stringAsDate"},{type:"string",message:"stringAsDate"},{type:"options",message:"stringAsDate"},{type:"formula",message:"stringAsDate"},{type:"bigint",message:"stringAsDate"},{type:"number",message:"numberAsDate"}],unsupported:[{type:"json",message:"jsonPrimitivesOnly"}]}},layout={name:"Layout",description:"This component is specific only to layouts",icon:"columns",hasChildren:!0,styles:["padding","background"],settings:[{type:"text",label:"Logo URL",key:"logoUrl"},{type:"text",label:"Title",key:"title"},{type:"select",label:"Navigation",key:"navigation",options:["Top","Left","None"],defaultValue:"Top"},{type:"select",label:"Width",key:"width",options:["Small","Medium","Large","Max"],defaultValue:"Large"},{type:"navigation",label:"Links",key:"links"},{type:"boolean",label:"Hide title",key:"hideTitle",defaultValue:!1},{type:"boolean",label:"Hide logo",key:"hideLogo",defaultValue:!1},{type:"boolean",label:"Sticky header",key:"sticky",defaultValue:!1}]},container$1={name:"Container",description:"This component contains things within itself",icon:"selection",hasChildren:!0,size:{width:500,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},styles:["padding","size","background","border","shadow"],settings:[{type:"select",label:"Layout",key:"layout",showInBar:!0,placeholder:!1,options:[{label:"Flex",value:"flex"},{label:"Grid",value:"grid"}],defaultValue:"grid"},{type:"select",label:"Direction",key:"direction",showInBar:!0,barStyle:"buttons",options:[{label:"Column",value:"column",barIcon:"rows-plus-bottom",barTitle:"Column layout"},{label:"Row",value:"row",barIcon:"columns-plus-right",barTitle:"Row layout"}],defaultValue:"column",dependsOn:{setting:"layout",value:"grid",invert:!0}},{type:"select",label:"Horiz. align",key:"hAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"AlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"AlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"AlignRight",barTitle:"Align right"},{label:"Stretch",value:"stretch",barIcon:"MoveLeftRight",barTitle:"Align stretched horizontally"}],defaultValue:"stretch",dependsOn:{setting:"layout",value:"grid",invert:!0}},{type:"select",label:"Vert. align",key:"vAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Top",value:"top",barIcon:"AlignTop",barTitle:"Align top"},{label:"Middle",value:"middle",barIcon:"AlignMiddle",barTitle:"Align middle"},{label:"Bottom",value:"bottom",barIcon:"AlignBottom",barTitle:"Align bottom"},{label:"Stretch",value:"stretch",barIcon:"MoveUpDown",barTitle:"Align stretched vertically"}],defaultValue:"top",dependsOn:{setting:"layout",value:"grid",invert:!0}},{type:"select",label:"Size",key:"size",showInBar:!0,barStyle:"buttons",options:[{label:"Shrink",value:"shrink",barIcon:"Minimize",barTitle:"Shrink container"},{label:"Grow",value:"grow",barIcon:"Maximize",barTitle:"Grow container"}],defaultValue:"shrink",dependsOn:{setting:"layout",value:"grid",invert:!0}},{type:"select",label:"Gap",key:"gap",showInBar:!0,barStyle:"picker",options:[{label:"None",value:"N"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M",dependsOn:{setting:"layout",value:"grid",invert:!0}},{type:"boolean",label:"Wrap",key:"wrap",showInBar:!0,barIcon:"ModernGridView",barTitle:"Wrap",dependsOn:{setting:"layout",value:"grid",invert:!0}},{type:"event",label:"On click",key:"onClick"}]},section={name:"Section",description:"Add a section to your application",icon:"columns",hasChildren:!0,illegalChildren:["section"],showEmptyState:!1,size:{width:600,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"section",label:"Type",key:"type",defaultValue:"mainSidebar"}]},screenslot={name:"Screenslot",icon:"browser",description:"Contains your app screens",static:!0},buttongroup={name:"Button group",icon:"circles-three-plus",hasChildren:!1,size:{width:200,height:60},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{section:!0,name:"Buttons",settings:[{type:"buttonConfiguration",key:"buttons",nested:!0,defaultValue:[{type:"cta",text:"Button 1"},{type:"primary",text:"Button 2"}]}]},{section:!0,name:"Layout",settings:[{type:"boolean",label:"Collapse",key:"collapsed"},{type:"text",label:"Collapsed text",key:"collapsedText",dependsOn:"collapsed",placeholder:"Action"},{type:"select",label:"Direction",key:"direction",showInBar:!0,barStyle:"buttons",options:[{label:"Column",value:"column",barIcon:"rows-plus-bottom",barTitle:"Column layout"},{label:"Row",value:"row",barIcon:"columns-plus-right",barTitle:"Row layout"}],defaultValue:"row",dependsOn:{setting:"collapsed",invert:!0}},{type:"select",label:"Horiz. align",key:"hAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"AlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"AlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"AlignRight",barTitle:"Align right"},{label:"Stretch",value:"stretch",barIcon:"MoveLeftRight",barTitle:"Align stretched horizontally"}],defaultValue:"left"},{type:"select",label:"Vert. align",key:"vAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Top",value:"top",barIcon:"AlignTop",barTitle:"Align top"},{label:"Middle",value:"middle",barIcon:"AlignMiddle",barTitle:"Align middle"},{label:"Bottom",value:"bottom",barIcon:"AlignBottom",barTitle:"Align bottom"},{label:"Stretch",value:"stretch",barIcon:"MoveUpDown",barTitle:"Align stretched vertically"}],defaultValue:"top"},{type:"select",label:"Size",key:"size",showInBar:!0,barStyle:"buttons",options:[{label:"Shrink",value:"shrink",barIcon:"Minimize",barTitle:"Shrink container"},{label:"Grow",value:"grow",barIcon:"Maximize",barTitle:"Grow container"}],defaultValue:"shrink",dependsOn:{setting:"collapsed",invert:!0}},{type:"select",label:"Gap",key:"gap",showInBar:!0,barStyle:"picker",options:[{label:"None",value:"N"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M",dependsOn:{setting:"collapsed",invert:!0}},{type:"boolean",label:"Wrap",key:"wrap",showInBar:!0,barIcon:"ModernGridView",barTitle:"Wrap",dependsOn:{setting:"collapsed",invert:!0}}]}]},button={name:"Button",description:"This component is a button",icon:"circle",editable:!0,size:{width:120,height:32},grid:{hAlign:"center",vAlign:"center"},styles:["padding","background","font"],settings:[{type:"text",label:"Text",key:"text",defaultValue:"New Button"},{type:"select",showInBar:!0,label:"Variant",key:"type",options:[{label:"Action",value:"cta"},{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Warning",value:"warning"},{label:"Over background",value:"overBackground"}],defaultValue:"cta"},{type:"select",label:"Size",showInBar:!0,key:"size",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"},{label:"Extra large",value:"XL"}],defaultValue:"M"},{type:"boolean",label:"Quiet",key:"quiet",showInBar:!0,barIcon:"VisibilityOff",barTitle:"Quiet variant",barSeparator:!1,dependsOn:{setting:"type",value:"cta",invert:!0}},{type:"boolean",label:"Disabled",showInBar:!0,barIcon:"NoEdit",barTitle:"Disable button",key:"disabled"},{type:"icon",label:"Icon",key:"icon"},{type:"select",label:"Gap",key:"gap",showInBar:!0,barStyle:"picker",dependsOn:"icon",options:[{label:"None",value:"N"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M"},{type:"event",label:"On click",key:"onClick"},{type:"buttonConditions",label:"Conditions",key:"conditions",nestedOnly:!0,contextAccess:{global:!1,self:!0}}]},divider={name:"Divider",description:"A basic divider",icon:"line-segments",illegalChildren:["section"],size:{width:400,height:10},settings:[{type:"select",label:"Size",key:"size",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M"},{type:"boolean",label:"Vertical",key:"vertical"}]},repeater={name:"Repeater",description:"A configurable data list that attaches to your backend tables.",icon:"list-dashes",illegalChildren:["section"],hasChildren:!0,size:{width:500,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"text",label:"Empty text",key:"noRowsMessage",defaultValue:"No rows found"},{type:"select",label:"Direction",key:"direction",showInBar:!0,barStyle:"buttons",options:[{label:"Column",value:"column",barIcon:"TableSelectColumn",barTitle:"Column layout"},{label:"Row",value:"row",barIcon:"TableSelectRow",barTitle:"Row layout"}],defaultValue:"column"},{type:"select",label:"Horiz. align",key:"hAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"AlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"AlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"AlignRight",barTitle:"Align right"},{label:"Stretch",value:"stretch",barIcon:"MoveLeftRight",barTitle:"Align stretched horizontally"}],defaultValue:"stretch"},{type:"select",label:"Vert. align",key:"vAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Top",value:"top",barIcon:"AlignTop",barTitle:"Align top"},{label:"Middle",value:"middle",barIcon:"AlignMiddle",barTitle:"Align middle"},{label:"Bottom",value:"bottom",barIcon:"AlignBottom",barTitle:"Align bottom"},{label:"Stretch",value:"stretch",barIcon:"MoveUpDown",barTitle:"Align stretched vertically"}],defaultValue:"top"},{type:"select",label:"Gap",key:"gap",showInBar:!0,barStyle:"picker",options:[{label:"None",value:"N"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M"}],context:[{type:"schema",scope:"local"},{type:"static",scope:"local",values:[{label:"Row index",key:"index",type:"number"}]}]},stackedlist={deprecated:!0,name:"Stacked List",icon:"list-checks",description:"A basic card component that can contain content and actions.",illegalChildren:["section"],settings:[{type:"text",label:"Image",key:"imageUrl"},{type:"text",label:"Heading",key:"heading"},{type:"text",label:"Subheading",key:"subheading"},{type:"text",label:"Link URL",key:"destinationUrl",placeholder:"/screen"}]},card={deprecated:!0,name:"Vertical Card",description:"A basic card component that can contain content and actions.",icon:"cards",illegalChildren:["section"],settings:[{type:"text",label:"Image",key:"imageUrl"},{type:"text",label:"Heading",key:"heading"},{type:"text",label:"Description",key:"description"},{type:"text",label:"Link text",key:"linkText"},{type:"text",label:"Link URL",key:"linkUrl",placeholder:"/screen"},{type:"color",label:"Link color",key:"linkColor",defaultValue:"#000"},{type:"color",label:"Hover color",key:"linkHoverColor",defaultValue:"#222"},{type:"select",label:"Image height",key:"imageHeight",options:["auto","12rem","16rem","20rem","24rem"],defaultValue:"auto"},{type:"select",label:"Card width",key:"cardWidth",options:["16rem","20rem","24rem"],defaultValue:"20rem"}]},text={name:"Paragraph",deprecated:!0,description:"A component for displaying paragraph text.",icon:"text-t",illegalChildren:["section"],editable:!0,size:{width:400,height:24},settings:[{type:"text",label:"Text",key:"text"},{type:"select",label:"Size",key:"size",defaultValue:"M",showInBar:!0,barStyle:"picker",options:[{label:"Extra small",value:"XS"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"},{label:"Extra large",value:"XL"},{label:"2XL",value:"XXL"},{label:"3XL",value:"XXXL"}]},{type:"color",label:"Color",key:"color",showInBar:!0,barSeparator:!1},{type:"boolean",label:"Bold",key:"bold",showInBar:!0,barIcon:"TagBold",barTitle:"Bold text",barSeparator:!1},{type:"boolean",label:"Italic",key:"italic",showInBar:!0,barIcon:"TagItalic",barTitle:"Italic text",barSeparator:!1},{type:"boolean",label:"Underline",key:"underline",showInBar:!0,barIcon:"TagUnderline",barTitle:"Underline text"},{type:"select",label:"Alignment",key:"align",defaultValue:"left",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"TextAlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"TextAlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"TextAlignRight",barTitle:"Align right"},{label:"Justify",value:"justify",barIcon:"TextAlignJustify",barTitle:"Justify text"}]}]},heading={name:"Headline",deprecated:!0,description:"A component for displaying heading text",icon:"text-b",illegalChildren:["section"],editable:!0,size:{width:400,height:32},settings:[{type:"text",key:"text",label:"Text"},{type:"select",label:"Size",key:"size",defaultValue:"M",showInBar:!0,barStyle:"picker",options:[{label:"Extra small",value:"XS"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"},{label:"Extra large",value:"XL"},{label:"2XL",value:"XXL"},{label:"3XL",value:"XXXL"}]},{type:"color",label:"Color",key:"color",showInBar:!0,barSeparator:!1},{type:"boolean",label:"Bold",key:"bold",showInBar:!0,barIcon:"TagBold",barTitle:"Bold text",barSeparator:!1},{type:"boolean",label:"Italic",key:"italic",showInBar:!0,barIcon:"TagItalic",barTitle:"Italic text",barSeparator:!1},{type:"boolean",label:"Underline",key:"underline",showInBar:!0,barIcon:"TagUnderline",barTitle:"Underline text"},{type:"select",label:"Alignment",key:"align",defaultValue:"left",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"TextAlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"TextAlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"TextAlignRight",barTitle:"Align right"},{label:"Justify",value:"justify",barIcon:"TextAlignJustify",barTitle:"Justify text"}]}]},tag={name:"Tag",description:"This component is a tag",icon:"tag",size:{width:100,height:25},grid:{hAlign:"center",vAlign:"center"},settings:[{type:"text",label:"Text",key:"text"},{type:"select",label:"Size",key:"size",defaultValue:"M",showInBar:!0,barStyle:"picker",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}]},{type:"color",label:"Color",key:"color",showInBar:!0},{type:"color",label:"Text Color",key:"textColor",showInBar:!0},{type:"boolean",label:"Allow delete",key:"closable"},{type:"event",label:"On click delete",key:"onClick",dependsOn:"closable"}]},image={name:"Image",description:"A basic component for displaying images",icon:"image",styles:["size"],size:{width:400,height:300},settings:[{type:"text",label:"URL",key:"url",required:!0}]},backgroundimage={name:"Background Image",description:"A background image",icon:"image-square",hasChildren:!0,styles:["size"],showEmptyState:!1,size:{width:400,height:300},settings:[{type:"text",label:"URL",key:"url",required:!0},{type:"select",label:"Position",key:"position",defaultValue:"center center",options:[{label:"Center top",value:"center top"},{label:"Center",value:"center center"},{label:"Center bottom",value:"center bottom"},{label:"Left top",value:"left top"},{label:"Left center",value:"left center"},{label:"Left bottom",value:"left bottom"},{label:"Right top",value:"right top"},{label:"Right center",value:"right center"},{label:"Right bottom",value:"right bottom"}]}]},icon={name:"Icon",description:"A basic component for displaying icons",icon:"shapes",size:{width:25,height:25},grid:{hAlign:"center",vAlign:"center"},settings:[{type:"icon",label:"Icon",key:"icon",required:!0,defaultValue:"ri-star-fill"},{type:"select",label:"Size",key:"size",defaultValue:"ri-1x",options:[{value:"ri-xxs",label:"XXS"},{value:"ri-xs",label:"XS"},{value:"ri-sm",label:"Small"},{value:"ri-1x",label:"Medium"},{value:"ri-lg",label:"Large"},{value:"ri-xl",label:"XL"},{value:"ri-2x",label:"2XL"},{value:"ri-3x",label:"3XL"},{value:"ri-4x",label:"4XL"},{value:"ri-5x",label:"5XL"},{value:"ri-6x",label:"6XL"},{value:"ri-7x",label:"7XL"},{value:"ri-8x",label:"8XL"},{value:"ri-9x",label:"9XL"},{value:"ri-10x",label:"10XL"}]},{type:"color",label:"Color",key:"color"},{type:"event",label:"On click",key:"onClick"}]},navigation={deprecated:!0,name:"Nav Bar",description:"A component for handling the navigation within your app.",icon:"BreadcrumbNavigation",illegalChildren:["section"],hasChildren:!0,settings:[{type:"text",label:"Logo URL",key:"logoUrl"},{type:"boolean",label:"Hide logo",key:"hideLogo",defaultValue:!1}]},link={name:"Link",description:"A basic link component for internal and external links",icon:"link",editable:!0,size:{width:200,height:30},settings:[{type:"text",label:"Text",key:"text"},{type:"url",label:"URL",key:"url",placeholder:"/screen"},{type:"boolean",label:"New tab",key:"openInNewTab"},{type:"select",label:"Size",key:"size",defaultValue:"M",showInBar:!0,barStyle:"picker",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}]},{type:"color",label:"Color",key:"color",showInBar:!0,barSeparator:!1},{type:"boolean",label:"Bold",key:"bold",showInBar:!0,barIcon:"TagBold",barTitle:"Bold text",barSeparator:!1},{type:"boolean",label:"Italic",key:"italic",showInBar:!0,barIcon:"TagItalic",barTitle:"Italic text",barSeparator:!1},{type:"boolean",label:"Underline",key:"underline",showInBar:!0,barIcon:"TagUnderline",barTitle:"Underline text"},{type:"select",label:"Alignment",key:"align",defaultValue:"left",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"TextAlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"TextAlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"TextAlignRight",barTitle:"Align right"},{label:"Justify",value:"justify",barIcon:"TextAlignJustify",barTitle:"Justify text"}]}]},cardhorizontal={deprecated:!0,name:"Horizontal Card",description:"A basic card component that can contain content and actions.",icon:"cards",settings:[{type:"text",label:"Image",key:"imageUrl"},{type:"text",label:"Heading",key:"heading"},{type:"text",label:"Description",key:"description"},{type:"text",label:"Subtext",key:"subtext"},{type:"text",label:"Link text",key:"linkText"},{type:"text",label:"Link URL",key:"linkUrl",placeholder:"/screen"},{type:"color",label:"Link color",key:"linkColor",defaultValue:"#000"},{type:"color",label:"Hover color",key:"linkHoverColor",defaultValue:"#222"},{type:"select",label:"Card width",key:"cardWidth",options:["24rem","28rem","32rem","40rem","48rem","60rem","100%"],defaultValue:"32rem"},{type:"select",label:"Image width",key:"imageWidth",options:["auto","8rem","12rem","16rem"],defaultValue:"8rem"},{type:"select",label:"Image height",key:"imageHeight",options:["auto","8rem","12rem","16rem","auto"],defaultValue:"auto"}]},cardstat={name:"Stat Card",description:"A card component for displaying numbers.",icon:"cards",size:{width:260,height:143},grid:{hAlign:"center",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title",placeholder:"Total Revenue",defaultValue:"Title"},{type:"text",label:"Value",key:"value",placeholder:"$1,981,983",defaultValue:"Value"},{type:"text",label:"Label",key:"label",placeholder:"Stripe",defaultValue:"Label"}]},embed={name:"Embed",icon:"code",description:"Embed content from 3rd party sources",styles:["size"],size:{width:400,height:100},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"text",label:"Embed",key:"embed",required:!0,allowHTML:!0}]},bar={documentationLink:"https://docs.budibase.com/docs/bar-chart",name:"Bar Chart",description:"Bar chart",icon:"chart-bar",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"multifield",label:"Data columns",key:"valueColumns",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"event",label:"On click bar",key:"onClick",context:[{label:"Clicked bar",key:"bar"}]},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"boolean",label:"Stacked",key:"stacked",defaultValue:!1},{type:"boolean",label:"Horizontal",key:"horizontal",defaultValue:!1},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0},{type:"boolean",label:"Legend",key:"legend",defaultValue:!1}]},line={documentationLink:"https://docs.budibase.com/docs/line-chart",name:"Line Chart",description:"Line chart",icon:"chart-line",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"multifield",label:"Data columns",key:"valueColumns",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"event",label:"On click marker",key:"onClick",context:[{label:"Clicked marker",key:"marker"}]},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"select",label:"Curve",key:"curve",options:["Smooth","Straight","Stepline"],defaultValue:"Smooth"},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0},{type:"boolean",label:"Legend",key:"legend",defaultValue:!1}]},area={documentationLink:"https://docs.budibase.com/docs/area-chart",name:"Area Chart",description:"Line chart",icon:"chart-line-up",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"multifield",label:"Data columns",key:"valueColumns",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"event",label:"On click marker",key:"onClick",context:[{label:"Clicked marker",key:"marker"}]},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"select",label:"Curve",key:"curve",options:["Smooth","Straight","Stepline"],defaultValue:"Smooth"},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0},{type:"boolean",label:"Legend",key:"legend",defaultValue:!1},{type:"boolean",label:"Stacked",key:"stacked",defaultValue:!0},{type:"boolean",label:"Gradient",key:"gradient",defaultValue:!1}]},pie={documentationLink:"https://docs.budibase.com/docs/pie-donut-chart",name:"Pie Chart",description:"Pie chart",icon:"chart-pie",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"field",label:"Data column",key:"valueColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"event",label:"On click segment",key:"onClick",context:[{label:"Clicked segment",key:"segment"},{label:"Segment Index",key:"index"},{label:"Segment Percentage",key:"percentage"}]},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0},{type:"boolean",label:"Legend",key:"legend",defaultValue:!1}],context:[{type:"schema",scope:"local"}]},donut={documentationLink:"https://docs.budibase.com/docs/pie-donut-chart",name:"Donut Chart",description:"Donut chart",icon:"chart-donut",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"field",label:"Data columns",key:"valueColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"event",label:"On click segment",key:"onClick",context:[{label:"Clicked segment",key:"segment"},{label:"Segment Index",key:"index"},{label:"Segment Percentage",key:"percentage"}]},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0},{type:"boolean",label:"Legend",key:"legend",defaultValue:!1}]},candlestick={documentationLink:"https://docs.budibase.com/docs/candlestick-chart",name:"Candlestick Chart",description:"Candlestick chart",icon:"chart-bar",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Date column",key:"dateColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"datetimeLike"}},required:!0},{type:"field",label:"Open column",key:"openColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"field",label:"Close column",key:"closeColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"field",label:"High column",key:"highColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"field",label:"Low column",key:"lowColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"event",label:"On click candlestick",key:"onClick",context:[{label:"Clicked candlestick",key:"candlestick"}]},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0}]},histogram={documentationLink:"https://docs.budibase.com/docs/histogram-chart",name:"Histogram Chart",description:"Histogram chart",icon:"chart-bar",size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"field",label:"Data column",key:"valueColumn",dependsOn:"dataProvider",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"text",label:"Y axis label",key:"yAxisLabel",defaultValue:"Frequency"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"number",label:"Bucket count",key:"bucketCount",defaultValue:10,min:2},{type:"event",label:"On click bucket",key:"onClick",context:[{label:"Clicked bucket rows",key:"rowsInBucket"},{label:"Lower limit",key:"lowerLimit"},{label:"Upper limit",key:"upperLimit"}]},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"boolean",label:"Animate",key:"animate",defaultValue:!0},{type:"boolean",label:"Horizontal",key:"horizontal",defaultValue:!1}]},form={name:"Form",description:"This component is a form",icon:"list",hasChildren:!0,illegalChildren:["section","form","formblock"],actions:["ValidateForm","ClearForm","ChangeFormStep","UpdateFieldValue","ScrollTo"],styles:["padding","size","background","border","shadow"],size:{width:400,height:400},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"select",label:"Type",key:"actionType",options:["Create","Update"],defaultValue:"Create"},{type:"schema",label:"Schema",key:"dataSource",defaultValue:{name:"Custom",label:"Custom"}},{type:"select",label:"Size",key:"size",options:[{label:"Medium",value:"spectrum--medium"},{label:"Large",value:"spectrum--large"}],defaultValue:"spectrum--medium"},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"text",label:"Initial form step",key:"initialFormStep",defaultValue:1}],context:[{type:"static",values:[{label:"Value",key:"__value",type:"object"},{label:"Valid",key:"__valid",type:"boolean"},{label:"Current Step",key:"__currentStep",type:"number"},{label:"Current Step Valid",key:"__currentStepValid",type:"boolean"}]},{type:"form"}]},formstep={name:"Form Step",icon:"steps",hasChildren:!0,requiredAncestors:["form"],illegalChildren:["section","form","formstep","formblock"],styles:["size"],size:{width:400,height:400},settings:[{type:"number",label:"Step",key:"step",defaultValue:1,min:1}]},fieldgroup={name:"Field Group",icon:"stack",requiredAncestors:["form"],illegalChildren:["section"],styles:["size"],hasChildren:!0,size:{width:400,height:400},settings:[{type:"select",label:"Labels",key:"labelPosition",defaultValue:"above",options:[{label:"Left",value:"left"},{label:"Above",value:"above"}]},{type:"section",label:"Type",key:"type",defaultValue:"oneColumn",dependsOn:{setting:"labelPosition",value:"above"}}]},labelfield={name:"Text Field",icon:"text-t",editable:!0,size:{width:400,height:60},settings:[{type:"plainText",label:"Label",key:"label"},{type:"number",label:"Initial width",key:"width",placeholder:"Auto",min:80,max:9999},{type:"tableConditions",label:"Conditions",key:"conditions",contextAccess:{global:!0,self:!1}},{type:"text",label:"Format",key:"format",info:"Changing format will display values as text",contextAccess:{global:!1,self:!0}}]},stringfield={name:"Text Field",icon:"text-t",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/string",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Run on input",key:"runOnInput",dependsOn:"onChange",info:"Trigger actions by 'input' events as well as 'change' events",defaultValue:!1},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"validation/string",label:"Validation",key:"validation"},{type:"select",label:"Alignment",key:"align",defaultValue:"left",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"TextAlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"TextAlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"TextAlignRight",barTitle:"Align right"},{label:"Justify",value:"justify",barIcon:"TextAlignJustify",barTitle:"Justify text"}]},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},numberfield={name:"Number Field",icon:"number-circle-nine",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/number",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Run on input",key:"runOnInput",dependsOn:"onChange",info:"Trigger actions by 'input' events as well as 'change' events",defaultValue:!1},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"validation/number",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"number"}]}},bigintfield={name:"BigInt Field",icon:"hash-straight",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/bigint",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Run on input",key:"runOnInput",dependsOn:"onChange",info:"Trigger actions by 'input' events as well as 'change' events",defaultValue:!1},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"number"}]}},passwordfield={name:"Password Field",icon:"password",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/string",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Run on input",key:"runOnInput",dependsOn:"onChange",info:"Trigger actions by 'input' events as well as 'change' events",defaultValue:!1},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"validation/string",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},optionsfield={name:"Options Picker",icon:"list-plus",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/options",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder",placeholder:"Choose an option"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"select",label:"Type",key:"optionsType",defaultValue:"select",placeholder:"Pick an options type",options:[{label:"Select",value:"select"},{label:"Radio buttons",value:"radio"}]},{type:"select",label:"Direction",key:"direction",defaultValue:"vertical",options:[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],dependsOn:{setting:"optionsType",value:"radio"}},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"boolean",label:"Autocomplete",key:"autocomplete",defaultValue:!1,dependsOn:{setting:"optionsType",value:"select"}},{type:"boolean",label:"Alphabetical",key:"sort",defaultValue:!0},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"select",label:"Options source",key:"optionsSource",defaultValue:"schema",placeholder:"Pick an options source",options:[{label:"Schema",value:"schema"},{label:"Data provider",value:"provider"},{label:"Custom",value:"custom"}]},{type:"dataProvider",label:"Options provider",key:"dataProvider",required:!0,dependsOn:{setting:"optionsSource",value:"provider"}},{type:"field",label:"Label column",key:"labelColumn",dependsOn:{setting:"optionsSource",value:"provider"}},{type:"field",label:"Value column",key:"valueColumn",dependsOn:{setting:"optionsSource",value:"provider"}},{type:"options",label:"Custom options",key:"customOptions",dependsOn:{setting:"optionsSource",value:"custom"}},{type:"validation/string",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},multifieldselect={name:"Multi-select Picker",icon:"list-checks",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/array",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder",placeholder:"Choose an option"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Autocomplete",key:"autocomplete",defaultValue:!1,dependsOn:{setting:"optionsType",value:"select"}},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"select",label:"Type",key:"optionsType",defaultValue:"select",placeholder:"Pick an options type",options:[{label:"Select",value:"select"},{label:"Checkboxes",value:"checkbox"}]},{type:"select",label:"Direction",key:"direction",defaultValue:"vertical",options:[{label:"Horizontal",value:"horizontal"},{label:"Vertical",value:"vertical"}],dependsOn:{setting:"optionsType",value:"checkbox"}},{type:"select",label:"Options source",key:"optionsSource",defaultValue:"schema",placeholder:"Pick an options source",options:[{label:"Schema",value:"schema"},{label:"Data provider",value:"provider"},{label:"Custom",value:"custom"}]},{type:"dataProvider",label:"Options provider",key:"dataProvider",required:!0,dependsOn:{setting:"optionsSource",value:"provider"}},{type:"field",label:"Label column",key:"labelColumn",dependsOn:{setting:"optionsSource",value:"provider"}},{type:"field",label:"Value column",key:"valueColumn",dependsOn:{setting:"optionsSource",value:"provider"}},{type:"options",label:"Custom options",key:"customOptions",dependsOn:{setting:"optionsSource",value:"custom"}},{type:"validation/array",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"array"}]}},booleanfield={name:"Checkbox",icon:"check-square",editable:!0,size:{width:400,height:60},settings:[{type:"field/boolean",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Text",key:"text"},{type:"select",label:"Size",key:"size",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"},{label:"Extra large",value:"XL"}],defaultValue:"M"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"validation/boolean",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"boolean"}]}},longformfield={name:"Long Form Field",icon:"text-align-left",styles:["size"],editable:!0,size:{width:400,height:100},settings:[{type:"field/longform",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder",placeholder:"Type something..."},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"select",label:"Formatting",key:"format",placeholder:null,options:[{label:"Auto",value:"auto"},{label:"Plain text",value:"plain"},{label:"Rich text (markdown)",value:"rich"}],defaultValue:"auto"},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"validation/string",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},datetimefield={name:"Date Picker",icon:"calendar",styles:["size"],editable:!0,size:{width:400,height:60},settings:[{type:"field/datetime",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"boolean",label:"Show time",key:"enableTime",defaultValue:!0},{type:"boolean",label:"Time only",key:"timeOnly",defaultValue:!1},{type:"boolean",label:"Ignore time zones",key:"ignoreTimezones",defaultValue:!1},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"validation/datetime",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"datetime"}]}},codescanner={name:"Barcode/QR Scanner",icon:"barcode",styles:["size"],size:{width:400,height:60},settings:[{type:"field/barcodeqr",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Button text",key:"scanButtonText"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Manual entry",key:"allowManualEntry",defaultValue:!1},{type:"boolean",label:"Auto confirm",key:"autoConfirm",defaultValue:!1},{type:"boolean",label:"Play sound on scan",key:"beepOnScan",defaultValue:!1},{type:"select",label:"Sound pitch",key:"beepFrequency",dependsOn:"beepOnScan",defaultValue:2637,options:[{label:"Low",value:2096},{label:"Regular",value:2637},{label:"High",value:3136},{label:"Custom",value:"custom"}]},{type:"number",label:"Sound frequency (Hz)",key:"customFrequency",defaultValue:1046,min:20,max:8e3,dependsOn:{setting:"beepFrequency",value:"custom"}},{type:"select",label:"Preferred camera",key:"preferredCamera",defaultValue:"environment",options:[{label:"Front",value:"user"},{label:"Back",value:"environment"}]},{type:"text",label:"Zoom level",key:"defaultZoom",defaultValue:"1"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"validation/string",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},codegenerator={name:"Barcode/QR Generator",icon:"Vignette",new:!0,settings:[{type:"radio",label:"Barcode/QR",key:"codeType",options:["QR Code","Barcode"],defaultValue:"QR Code"},{type:"select",label:"Size",key:"size",defaultValue:200,required:!0,options:[{label:"X Small",value:75},{label:"Small",value:150},{label:"Medium",value:200},{label:"Large",value:250},{label:"X Large",value:300},{label:"XX Large",value:350},{label:"XXX Large",value:400}]},{type:"text",key:"value",label:"Value",defaultValue:"https://docs.budibase.com/"},{type:"boolean",key:"showValue",label:"Display value",defaultValue:!0},{section:!0,name:"Customisation",settings:[{type:"boolean",key:"showLogo",label:"Show Logo",defaultValue:!0},{type:"text",key:"customLogo",label:"Logo",dependsOn:{setting:"showLogo",value:!0}}]},{section:!0,name:"Appearance",settings:[{type:"color",label:"Primary color",key:"primColor",defaultValue:"#000",dependsOn:{setting:"codeType",value:"QR Code",invert:!1}}]}]},signaturesinglefield={name:"Signature",icon:"signature",styles:["size"],size:{width:400,height:60},settings:[{type:"field/signature_single",label:"Field",key:"field",required:!0},{type:"text",label:"Label",key:"label"},{type:"text",label:"Help text",key:"helpText"},{type:"text",label:"Button text",key:"buttonText",defaultValue:"Add signature",placeholder:"Add signature"},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"validation/signature_single",label:"Validation",key:"validation"}]},embeddedmap={name:"Embedded Map",icon:"map-pin",styles:["size"],draggable:!1,size:{width:400,height:320},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"dataProvider",label:"Provider",key:"dataProvider"},{type:"field",label:"Latitude key",key:"latitudeKey",dependsOn:"dataProvider"},{type:"field",label:"Longitude key",key:"longitudeKey",dependsOn:"dataProvider"},{type:"field",label:"Title key",key:"titleKey",dependsOn:"dataProvider"},{type:"event",label:"On click marker",key:"onClickMarker",context:[{label:"Clicked marker",key:"marker"}]},{type:"boolean",label:"Enable adding",key:"creationEnabled",defaultValue:!1},{type:"event",label:"On create marker",key:"onCreateMarker",dependsOn:"creationEnabled",context:[{label:"New marker latitude",key:"lat"},{label:"New marker longitude",key:"lng"}]},{type:"boolean",label:"Enable fullscreen",key:"fullScreenEnabled",defaultValue:!0},{type:"boolean",label:"Enable location",key:"locationEnabled",defaultValue:!0},{type:"boolean",label:"Enable zoom",key:"zoomEnabled",defaultValue:!0},{type:"text",label:"Tile URL",key:"tileURL",defaultValue:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"},{type:"text",label:"Default location",key:"defaultLocation",placeholder:"51.5072,-0.1276"},{type:"number",label:"Default zoom (0-100)",key:"zoomLevel",placeholder:50,max:100,min:0},{type:"text",label:"Map attribution",key:"mapAttribution",defaultValue:"OpenStreetMap contributors"}]},attachmentfield={name:"Attachment List",icon:"files",styles:["size"],requiredAncestors:["form"],editable:!0,size:{width:400,height:200},settings:[{type:"field/attachment",label:"Field",key:"field",required:!0},{type:"text",label:"Label",key:"label"},{type:"text",label:"Help text",key:"helpText"},{type:"text",label:"Extensions",key:"extensions"},{type:"number",label:"Max attachments",key:"maximum",min:1},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Compact",key:"compact",defaultValue:!1},{type:"boolean",label:"Read only",key:"disabled",defaultValue:!1},{type:"validation/attachment",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]},{section:!0,name:"Uploader Text Settings",dependsOn:[{setting:"disabled",value:!1}],settings:[{type:"text",label:"Title Text",key:"titleText",dependsOn:{setting:"compact",value:!1}},{type:"text",label:"Upload text",key:"clickText"},{type:"text",label:"Sub text",key:"addText",dependsOn:{setting:"compact",value:!1}}]}]},attachmentsinglefield={name:"Single Attachment",icon:"file",styles:["size"],requiredAncestors:["form"],editable:!0,size:{width:400,height:200},settings:[{type:"field/attachment_single",label:"Field",key:"field",required:!0},{type:"text",label:"Label",key:"label"},{type:"text",label:"Help text",key:"helpText"},{type:"text",label:"Extensions",key:"extensions"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Compact",key:"compact",defaultValue:!1},{type:"boolean",label:"Read only",key:"disabled",defaultValue:!1},{type:"validation/attachment_single",label:"Validation",key:"validation"},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]},{section:!0,name:"Uploader Text Settings",dependsOn:[{setting:"disabled",value:!1}],settings:[{type:"text",label:"Title Text",key:"titleText",dependsOn:{setting:"compact",value:!1}},{type:"text",label:"Upload text",key:"clickText"},{type:"text",label:"Sub text",key:"addText",dependsOn:{setting:"compact",value:!1}}]}]},relationshipfield={name:"Relationship Picker",icon:"git-fork",styles:["size"],requiredAncestors:["form"],editable:!0,size:{width:400,height:60},settings:[{type:"field/link",label:"Field",key:"field",required:!0},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"validation/link",label:"Validation",key:"validation"},{type:"filter/relationship",label:"Filtering",key:"filter"},{type:"boolean",label:"Search",key:"autocomplete",defaultValue:!0},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}]},jsonfield={name:"JSON Field",icon:"brackets-curly",styles:["size"],editable:!0,size:{width:400,height:100},settings:[{type:"field/json",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue",supportsConditions:!1},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},s3upload={name:"S3 File Upload",icon:"cloud-arrow-up",styles:["size"],editable:!0,size:{width:400,height:200},settings:[{type:"field/s3",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"dataSource/s3",label:"S3 datasource",key:"datasourceId",info:"This component can't be used with S3 datasources that use custom endpoints"},{type:"text",label:"Bucket",key:"bucket"},{type:"text",label:"File name",key:"key",nested:!0},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"validation/attachment",label:"Validation",key:"validation"}],context:{type:"static",values:[{label:"Value",key:"value",type:"array"}]}},dataprovider={name:"Data Provider",icon:"database",illegalChildren:["section"],hasChildren:!0,actions:["RefreshDatasource","AddDataProviderQueryExtension"],size:{width:500,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"dataSource",label:"Data",key:"dataSource",required:!0},{type:"select",label:"Auto-refresh",key:"autoRefresh",license:"premium",placeholder:"Never",options:[{label:"10 seconds",value:10},{label:"30 seconds",value:30},{label:"1 minute",value:60},{label:"5 minutes",value:300},{label:"10 minutes",value:600}]},{type:"filter",label:"Filtering",key:"filter",resetOn:"dataSource"},{type:"field/sortable",label:"Sort column",key:"sortColumn",placeholder:"None"},{type:"select",label:"Sort order",key:"sortOrder",options:["Ascending","Descending"],defaultValue:"Ascending"},{type:"number",label:"Limit",key:"limit",defaultValue:50},{type:"boolean",label:"Paginate",key:"paginate",defaultValue:!0,info:"Pagination is only available for data stored in tables"}],context:{type:"static",values:[{label:"Rows",key:"rows",type:"array"},{label:"Extra Info",key:"info",type:"string"},{label:"Rows Length",key:"rowsLength",type:"number"},{label:"Schema",key:"schema",type:"object"},{label:"Page Number",key:"pageNumber",type:"number"}]}},table={deprecated:!0,name:"Table",icon:"table",illegalChildren:["section"],hasChildren:!0,showEmptyState:!1,actions:["ClearRowSelection"],size:{width:600,height:400},settings:[{type:"dataProvider",label:"Data provider",key:"dataProvider",required:!0},{type:"columns",label:"Columns",key:"columns",dependsOn:"dataProvider",nested:!0},{type:"select",label:"Size",key:"size",defaultValue:"spectrum--medium",options:[{label:"Medium",value:"spectrum--medium"},{label:"Large",value:"spectrum--large"}]},{type:"number",label:"Row count",key:"rowCount",defaultValue:8},{type:"boolean",label:"Quiet",key:"quiet"},{type:"boolean",label:"Compact",key:"compact"},{type:"boolean",label:"Row selection",key:"allowSelectRows",defaultValue:!1,info:"Row selection is only compatible with internal or SQL tables"},{type:"text",label:"Empty text",key:"noRowsMessage",defaultValue:"No rows found"},{section:!0,name:"On Row Click",settings:[{type:"event",key:"onClick",context:[{label:"Clicked row",key:"row"}]}]}],context:[{type:"schema",scope:"local"},{type:"static",values:[{label:"Selected Rows",key:"selectedRows",type:"array"}]}]},daterangepicker={name:"Date Range",icon:"calendar-plus",styles:["size"],hasChildren:!1,size:{width:200,height:50},settings:[{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0,info:"Your data provider will be automatically filtered to the given date range."},{type:"field",label:"Date field",key:"field",required:!0},{type:"select",label:"Default range",key:"defaultValue",options:["Last 1 day","Last 7 days","Last 30 days","Last 3 months","Last 6 months","Last 1 year"],defaultValue:"Last 30 days"}]},spectrumcard={name:"Card",icon:"cards",styles:["size"],size:{width:300,height:120},grid:{hAlign:"center",vAlign:"center"},settings:[{type:"text",key:"title",label:"Title",defaultValue:"Title"},{type:"text",key:"subtitle",label:"Subtitle",defaultValue:"Subtitle"},{type:"text",key:"description",label:"Description",defaultValue:"Description"},{type:"text",key:"imageURL",label:"Image URL"},{type:"url",key:"linkURL",label:"Link URL"},{type:"boolean",key:"linkPeek",label:"Open in modal"},{type:"boolean",key:"horizontal",label:"Horizontal"},{type:"boolean",key:"showButton",label:"Show button"},{type:"text",key:"buttonText",label:"Button text",dependsOn:"showButton"},{type:"event",label:"Click action",key:"buttonOnClick"}]},filter$2={name:"Filter",icon:"funnel",size:{width:100,height:35},new:!0,settings:[{type:"dataSource/filterable",label:"Target component",required:!0,key:"targetComponent",wide:!0},{type:"select",label:"Size",showInBar:!0,key:"size",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M",wide:!0},{type:"text",key:"buttonText",label:"Button text",placeholder:"Apply",defaultValue:"Apply"},{type:"boolean",label:"Persist filters",key:"persistFilters",defaultValue:!1},{type:"boolean",label:"Clear filters",key:"showClear",defaultValue:!1},{label:"",type:"filterConfiguration",key:"filterConfig",nested:!0,dependsOn:"targetComponent",resetOn:"targetComponent"}]},filterconfig={name:"",icon:"funnel-simple",editable:!0,settings:[{type:"plainText",label:"Label",key:"label"}]},dynamicfilter={deprecated:!0,name:"Dynamic Filter",icon:"funnel",size:{width:100,height:35},grid:{hAlign:"center",vAlign:"center"},settings:[{type:"dataProvider",label:"Provider",key:"dataProvider",required:!0},{type:"columns/basic",label:"Allowed filter columns",key:"allowedFields",dependsOn:"dataProvider"},{type:"select",label:"Button size",showInBar:!0,key:"size",options:[{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"},{label:"Extra large",value:"XL"}],defaultValue:"M"}]},chartblock={documentationLink:"https://docs.budibase.com/docs/chart",block:!0,name:"Chart Block",icon:"chart-pie",hasChildren:!1,size:{width:600,height:420},grid:{hAlign:"stretch",vAlign:"center"},settings:[{type:"select",label:"Chart type",key:"chartType",required:!0,options:[{label:"Pie",value:"pie"},{label:"Bar",value:"bar"},{label:"Histogram",value:"histogram"},{label:"Line",value:"line"},{label:"Donut",value:"donut"},{label:"Candlestick",value:"candlestick"},{label:"Area",value:"area"}]},{type:"dataSource",label:"Data",key:"dataSource",required:!0},{type:"select",label:"Auto-refresh",key:"autoRefresh",license:"premium",placeholder:"Never",options:[{label:"10 seconds",value:10},{label:"30 seconds",value:30},{label:"1 minute",value:60},{label:"5 minutes",value:300},{label:"10 minutes",value:600}]},{type:"text",label:"Title",key:"chartTitle"},{type:"filter",label:"Filtering",key:"filter",nested:!0},{type:"field",label:"Sort column",key:"sortColumn"},{type:"select",label:"Sort order",key:"sortOrder",options:["Ascending","Descending"],defaultValue:"Ascending"},{type:"number",label:"Limit",key:"limit",defaultValue:50},{type:"text",label:"Width",key:"width"},{type:"text",label:"Height",key:"height",defaultValue:"400"},{type:"select",label:"Colors",key:"palette",defaultValue:"Palette 1",options:["Custom","Palette 1","Palette 2","Palette 3","Palette 4","Palette 5","Palette 6","Palette 7","Palette 8","Palette 9","Palette 10"]},{type:"color",label:"C1",key:"c1",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C2",key:"c2",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C3",key:"c3",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C4",key:"c4",dependsOn:{setting:"palette",value:"Custom"}},{type:"color",label:"C5",key:"c5",dependsOn:{setting:"palette",value:"Custom"}},{type:"boolean",label:"Data labels",key:"dataLabels",defaultValue:!1},{type:"boolean",label:"Legend",key:"legend",defaultValue:!0},{type:"boolean",label:"Animate",key:"animate",defaultValue:!1},{section:!0,name:"Pie Chart",icon:"chart-pie",dependsOn:{setting:"chartType",value:"pie"},settings:[{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"field",label:"Data column",key:"valueColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0}]},{section:!0,name:"Donut Chart",icon:"chart-donut",dependsOn:{setting:"chartType",value:"donut"},settings:[{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"field",label:"Data column",key:"valueColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0}]},{section:!0,name:"Bar Chart",icon:"chart-bar",dependsOn:{setting:"chartType",value:"bar"},settings:[{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"multifield",label:"Data columns",key:"valueColumns",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"boolean",label:"Stacked",key:"stacked",defaultValue:!1},{type:"boolean",label:"Horizontal",key:"horizontal",defaultValue:!1}]},{section:!0,name:"Histogram Chart",icon:"chart-bar",dependsOn:{setting:"chartType",value:"histogram"},settings:[{type:"field",label:"Value column",key:"valueColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"boolean",label:"Horizontal",key:"horizontal",defaultValue:!1},{type:"number",label:"Bucket count",key:"bucketCount",defaultValue:10,min:2}]},{section:!0,name:"Line Chart",icon:"chart-line",dependsOn:{setting:"chartType",value:"line"},settings:[{type:"field",label:"Label column",key:"labelColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"multifield",label:"Data columns",key:"valueColumns",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"select",label:"Curve",key:"curve",options:["Smooth","Straight","Stepline"],defaultValue:"Smooth"}]},{section:!0,name:"Area Chart",icon:"chart-line-up",dependsOn:{setting:"chartType",value:"area"},settings:[{type:"field",label:"Label columns",key:"labelColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"stringLike"}},required:!0},{type:"multifield",label:"Data columns",key:"valueColumns",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"},{type:"select",label:"Curve",key:"curve",options:["Smooth","Straight","Stepline"],defaultValue:"Smooth"},{type:"boolean",label:"Stacked",key:"stacked",defaultValue:!0},{type:"boolean",label:"Gradient",key:"gradient",defaultValue:!1}]},{section:!0,name:"Candlestick Chart",icon:"chart-bar",dependsOn:{setting:"chartType",value:"candlestick"},settings:[{type:"field",label:"Date column",key:"dateColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"datetimeLike"}},required:!0},{type:"field",label:"Open column",key:"openColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"field",label:"Close column",key:"closeColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"field",label:"High column",key:"highColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"field",label:"Low column",key:"lowColumn",dependsOn:"dataSource",explanation:{typeSupport:{preset:"numberLike"}},required:!0},{type:"select",label:"Format",key:"yAxisUnits",options:["Default","Thousands","Millions"],defaultValue:"Default"},{type:"text",label:"Y axis label",key:"yAxisLabel"},{type:"text",label:"X axis label",key:"xAxisLabel"}]}]},tableblock={deprecated:!0,block:!0,name:"Table Block",icon:"table",styles:["size"],size:{width:600,height:400},settings:[{type:"text",label:"Title",key:"title"},{section:!0,name:"Table",settings:[{type:"dataSource",label:"Data",key:"dataSource",required:!0},{type:"select",label:"Auto-refresh",key:"autoRefresh",license:"premium",placeholder:"Never",options:[{label:"10 seconds",value:10},{label:"30 seconds",value:30},{label:"1 minute",value:60},{label:"5 minutes",value:300},{label:"10 minutes",value:600}]},{type:"columns",label:"Columns",key:"tableColumns",dependsOn:"dataSource",placeholder:"All columns",nested:!0},{type:"field/sortable",label:"Sort by",key:"sortColumn",placeholder:"Default"},{type:"select",label:"Sort order",key:"sortOrder",options:["Ascending","Descending"],defaultValue:"Ascending",dependsOn:"sortColumn"},{type:"select",label:"Size",key:"size",defaultValue:"spectrum--medium",options:[{label:"Medium",value:"spectrum--medium"},{label:"Large",value:"spectrum--large"}]},{type:"number",label:"Scroll limit",key:"rowCount",defaultValue:8},{type:"boolean",label:"Paginate",key:"paginate",defaultValue:!0},{type:"boolean",label:"Quiet",key:"quiet"},{type:"boolean",label:"Compact",key:"compact"},{type:"boolean",label:"Row selection",key:"allowSelectRows",info:"Row selection is only compatible with internal or SQL tables"},{type:"filter",label:"Filtering",key:"filter",nested:!0},{type:"text",label:"Empty text",key:"noRowsMessage",defaultValue:"No rows found"},{type:"searchfield",label:"Search fields",key:"searchColumns",placeholder:"Choose search fields",info:"Only the first 5 fields will be used"}]},{section:!0,name:"On row click",settings:[{label:"Behaviour",labelHidden:!0,type:"radio",key:"clickBehaviour",sendEvents:!0,defaultValue:"actions",info:"Details side panel is only compatible with internal or SQL tables",options:[{label:"Run actions",value:"actions"},{label:"Show details side panel",value:"details"}]},{label:"Actions",labelHidden:!0,type:"event",key:"onClick",nested:!0,dependsOn:{setting:"clickBehaviour",value:"actions"},context:[{label:"Clicked row",key:"row"}]},{label:"",type:"fieldConfiguration",key:"sidePanelFields",nested:!0,dependsOn:{setting:"clickBehaviour",value:"details"},resetOn:"dataSource"},{label:"Save button",type:"text",key:"sidePanelSaveLabel",defaultValue:"Save",nested:!0,dependsOn:{setting:"clickBehaviour",value:"details"}},{label:"Delete button",type:"text",key:"sidePanelDeleteLabel",defaultValue:"Delete",nested:!0,dependsOn:{setting:"clickBehaviour",value:"details"}},{type:"boolean",label:"Hide notifications",key:"notificationOverride",defaultValue:!1,dependsOn:{setting:"clickBehaviour",value:"details"}}]},{section:!0,name:"Button",settings:[{type:"boolean",key:"showTitleButton",label:"Show button",defaultValue:!1},{type:"text",key:"titleButtonText",label:"Text",defaultValue:"Create row",dependsOn:"showTitleButton"},{type:"radio",key:"titleButtonClickBehaviour",label:"Behaviour",dependsOn:"showTitleButton",defaultValue:"actions",info:"New row side panel is only compatible with internal or SQL tables",options:[{label:"Run actions",value:"actions"},{label:"Show new row side panel",value:"new"}]},{type:"event",label:"On click",key:"onClickTitleButton",nested:!0,dependsOn:{setting:"titleButtonClickBehaviour",value:"actions"}}]}],context:[{type:"static",suffix:"provider",values:[{label:"Rows",key:"rows",type:"array"},{label:"Extra Info",key:"info",type:"string"},{label:"Rows Length",key:"rowsLength",type:"number"},{label:"Schema",key:"schema",type:"object"},{label:"Page Number",key:"pageNumber",type:"number"}]},{type:"static",suffix:"table",values:[{label:"Selected Rows",key:"selectedRows",type:"array"}]}]},cardsblock={block:!0,name:"Cards Block",icon:"cards",styles:["size"],size:{width:600,height:400},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"text",label:"Title",key:"title"},{type:"dataSource",label:"Data",key:"dataSource",required:!0},{type:"select",label:"Auto-refresh",key:"autoRefresh",license:"premium",placeholder:"Never",options:[{label:"10 seconds",value:10},{label:"30 seconds",value:30},{label:"1 minute",value:60},{label:"5 minutes",value:300},{label:"10 minutes",value:600}]},{type:"searchfield",label:"Search columns",key:"searchColumns",placeholder:"Choose search columns",info:"Max 5 columns will be used"},{type:"filter",label:"Filtering",key:"filter",nested:!0},{type:"field/sortable",label:"Sort column",key:"sortColumn",placeholder:"None"},{type:"select",label:"Sort order",key:"sortOrder",options:["Ascending","Descending"],defaultValue:"Descending"},{type:"number",label:"Limit",key:"limit",defaultValue:8},{type:"boolean",label:"Paginate",key:"paginate"},{type:"text",label:"Empty text",key:"noRowsMessage",defaultValue:"No rows found"},{section:!0,name:"Cards",settings:[{type:"text",key:"cardTitle",label:"Title",nested:!0,resetOn:"dataSource"},{type:"text",key:"cardSubtitle",label:"Subtitle",nested:!0,resetOn:"dataSource"},{type:"text",key:"cardDescription",label:"Description",nested:!0,resetOn:"dataSource"},{type:"text",key:"cardImageURL",label:"Image URL",nested:!0,resetOn:"dataSource"},{type:"boolean",key:"linkCardTitle",label:"Link card title"},{type:"boolean",key:"cardPeek",label:"Open in modal"},{type:"url",label:"Link screen",key:"cardURL",nested:!0},{type:"boolean",key:"cardHorizontal",label:"Horizontal"},{type:"boolean",label:"Add button",key:"showCardButton"},{type:"text",key:"cardButtonText",label:"Button text",nested:!0,dependsOn:"showCardButton"},{type:"event",label:"Click action",key:"cardButtonOnClick",nested:!0}]},{section:!0,name:"Title button",settings:[{type:"boolean",key:"showTitleButton",label:"Show button"},{type:"boolean",label:"Open in modal",key:"titleButtonPeek"},{type:"text",key:"titleButtonText",label:"Button text"},{type:"url",label:"Button link",key:"titleButtonURL"}]},{section:!0,name:"Advanced",settings:[{type:"field",label:"ID column",key:"linkColumn",placeholder:"Default"}]}],context:{type:"schema",suffix:"repeater",scope:"local"}},repeaterblock={block:!0,name:"Repeater Block",icon:"list-dashes",illegalChildren:["section","rowexplorer"],hasChildren:!0,size:{width:500,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"dataSource",label:"Data",key:"dataSource",required:!0},{type:"select",label:"Auto-refresh",key:"autoRefresh",license:"premium",placeholder:"Never",options:[{label:"10 seconds",value:10},{label:"30 seconds",value:30},{label:"1 minute",value:60},{label:"5 minutes",value:300},{label:"10 minutes",value:600}]},{type:"filter",label:"Filtering",key:"filter",nested:!0},{type:"field/sortable",label:"Sort column",key:"sortColumn",placeholder:"None"},{type:"select",label:"Sort order",key:"sortOrder",options:["Ascending","Descending"],defaultValue:"Descending"},{type:"number",label:"Limit",key:"limit",defaultValue:10},{type:"boolean",label:"Paginate",key:"paginate"},{section:!0,name:"Layout settings",settings:[{type:"text",label:"Empty text",key:"noRowsMessage",defaultValue:"No rows found"},{type:"select",label:"Direction",key:"direction",showInBar:!0,barStyle:"buttons",options:[{label:"Column",value:"column",barIcon:"TableSelectColumn",barTitle:"Column layout"},{label:"Row",value:"row",barIcon:"TableSelectRow",barTitle:"Row layout"}],defaultValue:"column"},{type:"select",label:"Horiz. align",key:"hAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"AlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"AlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"AlignRight",barTitle:"Align right"},{label:"Stretch",value:"stretch",barIcon:"MoveLeftRight",barTitle:"Align stretched horizontally"}],defaultValue:"stretch"},{type:"select",label:"Vert. align",key:"vAlign",showInBar:!0,barStyle:"buttons",options:[{label:"Top",value:"top",barIcon:"AlignTop",barTitle:"Align top"},{label:"Middle",value:"middle",barIcon:"AlignMiddle",barTitle:"Align middle"},{label:"Bottom",value:"bottom",barIcon:"AlignBottom",barTitle:"Align bottom"},{label:"Stretch",value:"stretch",barIcon:"MoveUpDown",barTitle:"Align stretched vertically"}],defaultValue:"top"},{type:"select",label:"Gap",key:"gap",showInBar:!0,barStyle:"picker",options:[{label:"None",value:"N"},{label:"Small",value:"S"},{label:"Medium",value:"M"},{label:"Large",value:"L"}],defaultValue:"M"}]}],context:[{type:"static",suffix:"provider",values:[{label:"Rows",key:"rows",type:"array"},{label:"Extra Info",key:"info",type:"string"},{label:"Rows Length",key:"rowsLength",type:"number"},{label:"Schema",key:"schema",type:"object"},{label:"Page Number",key:"pageNumber",type:"number"}]},{type:"static",suffix:"repeater",values:[{label:"Row Index",key:"index",type:"number"}]},{type:"schema",suffix:"repeater",scope:"local"}]},markdownviewer={deprecated:!0,name:"Markdown Viewer",icon:"article",styles:["size"],size:{width:400,height:100},grid:{hAlign:"stretch",vAlign:"start"},settings:[{type:"text",label:"Markdown",key:"value",required:!0}]},multistepformblock={name:"Multi-step Form Block",icon:"steps",block:!0,hasChildren:!1,ejectable:!1,size:{width:600,height:400},grid:{hAlign:"stretch",vAlign:"start"},styles:["padding","size","background","border","shadow"],settings:[{type:"table",label:"Data",key:"dataSource"},{type:"radio",label:"Type",key:"actionType",options:["Create","Update","View"],defaultValue:"Create"},{section:!0,dependsOn:{setting:"actionType",value:"Create",invert:!0},name:"Row ID",info:"<a href='https://docs.budibase.com/docs/form-block' target='_blank'>How to pass a row ID using bindings</a>",settings:[{type:"text",label:"Row ID",key:"rowId",nested:!0},{type:"text",label:"No rows found",key:"noRowsMessage",defaultValue:"We couldn't find a row to display",nested:!0}]},{section:!0,name:"Details",settings:[{type:"stepConfiguration",key:"steps",nested:!0,labelHidden:!0,resetOn:["dataSource","actionType"],defaultValue:[{}]}]},{tag:"style",type:"select",label:"Button position",key:"buttonPosition",options:[{label:"Bottom",value:"bottom"},{label:"Top",value:"top"}],defaultValue:"bottom"},{tag:"style",type:"select",label:"Size",key:"size",options:[{label:"Medium",value:"spectrum--medium"},{label:"Large",value:"spectrum--large"}],defaultValue:"spectrum--medium"}],actions:[{type:"ValidateForm",suffix:"form"},{type:"ClearForm",suffix:"form"},{type:"UpdateFieldValue",suffix:"form"},{type:"ScrollTo",suffix:"form"},{type:"ChangeFormStep",suffix:"form"},{type:"RefreshDatasource",suffix:"provider"}],context:[{type:"form",suffix:"form"},{type:"schema",suffix:"repeater"},{type:"static",suffix:"form",values:[{label:"Value",key:"__value",type:"object"},{label:"Valid",key:"__valid",type:"boolean"},{label:"Current Step",key:"__currentStep",type:"number"},{label:"Current Step Valid",key:"__currentStepValid",type:"boolean"}]}]},multistepformblockstep={name:"Multi-step Form Block Step",settings:[{type:"formStepControls",label:"Steps",key:"steps"},{type:"text",label:"Title",key:"title",nested:!0},{type:"text",label:"Description",key:"desc",nested:!0},{type:"fieldConfiguration",key:"fields",nested:!0},{type:"buttonConfiguration",label:"Buttons",key:"buttons",wide:!0,nested:!0},{type:"boolean",label:"Collapse",key:"buttonsCollapsed"},{type:"text",label:"Collapsed text",key:"buttonsCollapsedText",dependsOn:"buttonsCollapsed",placeholder:"Action"}]},formblock={name:"Form Block",icon:"list",styles:["padding","size","background","border","shadow"],block:!0,info:"Form blocks are only compatible with internal or SQL tables",size:{width:600,height:400},grid:{hAlign:"stretch",vAlign:"start"},settings:[{type:"table",label:"Data",key:"dataSource"},{type:"radio",label:"Type",key:"actionType",options:["Create","Update","View"],defaultValue:"Create"},{section:!0,dependsOn:{setting:"actionType",value:"Create",invert:!0},name:"Row ID",info:"<a href='https://docs.budibase.com/docs/form-block' target='_blank'>How to pass a row ID using bindings</a>",settings:[{type:"text",label:"Row ID",key:"rowId",nested:!0},{type:"text",label:"No rows found",key:"noRowsMessage",defaultValue:"We couldn't find a row to display",nested:!0}]},{section:!0,name:"Details",settings:[{type:"text",label:"Title",key:"title",nested:!0},{type:"text",label:"Description",key:"description",nested:!0},{type:"fieldConfiguration",key:"fields",nested:!0,resetOn:"dataSource",selectAllFields:!0},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1}]},{tag:"style",type:"select",label:"Button position",key:"buttonPosition",options:[{label:"Bottom",value:"bottom"},{label:"Top",value:"top"}],defaultValue:"bottom"},{section:!0,name:"Buttons",settings:[{type:"buttonConfiguration",key:"buttons",nested:!0,resetOn:["actionType","dataSource"]},{type:"boolean",label:"Collapse",key:"buttonsCollapsed"},{type:"text",label:"Collapsed text",key:"buttonsCollapsedText",dependsOn:"buttonsCollapsed",placeholder:"Action"}]},{tag:"style",type:"select",label:"Size",key:"size",options:[{label:"Medium",value:"spectrum--medium"},{label:"Large",value:"spectrum--large"}],defaultValue:"spectrum--medium"}],actions:[{type:"ValidateForm",suffix:"form"},{type:"ClearForm",suffix:"form"},{type:"UpdateFieldValue",suffix:"form"},{type:"ScrollTo",suffix:"form"},{type:"RefreshDatasource",suffix:"provider"}],context:[{type:"form",suffix:"form"},{type:"schema",suffix:"repeater"}]},sidepanel={name:"Side Panel",icon:"sidebar",hasChildren:!0,ignoresLayout:!0,illegalChildren:["section","sidepanel","modal"],showEmptyState:!1,draggable:!1,info:"Side panels are hidden by default. They will only be revealed when triggered by the 'Open Side Panel' action.",settings:[{type:"boolean",key:"ignoreClicksOutside",label:"Ignore clicks outside",defaultValue:!1},{type:"event",key:"onClose",label:"On close"}]},modal={name:"Modal",icon:"square",hasChildren:!0,illegalChildren:["section","modal","sidepanel"],ignoresLayout:!0,showEmptyState:!1,draggable:!1,info:"Modals are hidden by default. They will only be revealed when triggered by the 'Open Modal' action.",settings:[{type:"boolean",key:"ignoreClicksOutside",label:"Ignore clicks outside",defaultValue:!1},{type:"event",key:"onClose",label:"On close"},{type:"select",label:"Size",key:"size",defaultValue:"small",options:[{label:"Small",value:"small"},{label:"Medium",value:"medium"},{label:"Large",value:"large"},{label:"Fullscreen",value:"fullscreen"}]}]},accordion={name:"Accordion",icon:"caret-down",friendlyName:"Accordion",description:"A collapsible Budibase container component",hasChildren:!0,illegalChildren:["modal","sidepanel"],showSettingsBar:!0,new:!0,size:{width:500,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"text",label:"Label",placeholder:"Label",key:"label"},{type:"boolean",label:"Bold",key:"bold",showInBar:!0,barIcon:"TagBold",barTitle:"Bold text",barSeparator:!1},{type:"select",label:"Default State",key:"initialOpen",defaultValue:!0,options:[{label:"Open",value:!0},{label:"Closed",value:!1}]}]},rowexplorer={block:!0,name:"Row Explorer Block",icon:"rows",size:{width:800,height:426},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"table",label:"Data",key:"dataSource",required:!0},{type:"select",label:"Auto-refresh",key:"autoRefresh",license:"premium",placeholder:"Never",options:[{label:"10 seconds",value:10},{label:"30 seconds",value:30},{label:"1 minute",value:60},{label:"5 minutes",value:300},{label:"10 minutes",value:600}]},{type:"text",label:"Height",key:"height",defaultValue:"426px"},{type:"text",label:"Empty text",key:"noRowsMessage",defaultValue:"No data"},{section:!0,name:"Cards",settings:[{type:"field",label:"Search field",key:"cardSearchField",nested:!0},{type:"text",key:"cardTitle",label:"Title",nested:!0,defaultValue:"Title"},{type:"text",key:"cardSubtitle",label:"Subtitle",nested:!0,defaultValue:"Subtitle"},{type:"text",key:"cardDescription",label:"Description",nested:!0,defaultValue:"Description"},{type:"text",key:"cardImageURL",label:"Image URL",nested:!0}]},{section:!0,name:"Details",settings:[{type:"text",key:"detailTitle",label:"Title"},{type:"multifield",label:"Fields",key:"detailFields",nested:!0,selectAllFields:!0}]}],context:{type:"schema",suffix:"repeater",scope:"local"}},gridblock={name:"Table",icon:"table",styles:["size"],cssVariables:[{label:"Header color",variable:"--custom-header-cell-background",type:"color"},{label:"Stripe color",variable:"--custom-stripe-cell-background",type:"color"}],size:{width:600,height:400},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"dataSource",label:"Data",key:"table",required:!0},{type:"filter",label:"Filtering",key:"initialFilter",dependsOn:{setting:"table.type",value:"custom",invert:!0},resetOn:"table"},{type:"field/sortable",label:"Sort column",key:"initialSortColumn",placeholder:"Default",dependsOn:{setting:"table.type",value:"custom",invert:!0}},{type:"select",label:"Sort order",key:"initialSortOrder",options:["Ascending","Descending"],defaultValue:"Ascending",dependsOn:"initialSortColumn"},{type:"select",label:"Row height",key:"fixedRowHeight",placeholder:"Default",options:[{label:"Small",value:36},{label:"Medium",value:64},{label:"Large",value:92}]},{type:"event",label:"On row click",key:"onRowClick",context:[{label:"Clicked row",key:"row"}]},{type:"boolean",label:"Add rows",key:"allowAddRows",defaultValue:!0,dependsOn:{setting:"table.type",value:["table","viewV2"]}},{type:"boolean",label:"Edit rows",key:"allowEditRows",defaultValue:!0,dependsOn:{setting:"table.type",value:["table","viewV2"]}},{type:"boolean",label:"Delete rows",key:"allowDeleteRows",defaultValue:!0,dependsOn:{setting:"table.type",value:["table","viewV2"]}},{type:"boolean",label:"Striped rows",key:"stripeRows",defaultValue:!1},{type:"boolean",label:"Quiet",key:"quiet",defaultValue:!1},{section:!0,name:"Columns",settings:[{type:"columns/grid",key:"columns",resetOn:"table",nested:!0}]},{section:!0,name:"Buttons",settings:[{type:"buttonConfiguration",key:"buttons",nested:!0,context:[{label:"Clicked row",key:"row"}]},{type:"boolean",label:"Collapse",key:"buttonsCollapsed"},{type:"text",label:"Collapsed text",key:"buttonsCollapsedText",dependsOn:"buttonsCollapsed",placeholder:"Action"}]}],context:[{type:"schema",scope:"local"},{type:"static",values:[{label:"Selected rows",key:"selectedRows",type:"array"}]}],actions:["AddDataProviderFilterExtension","ClearRowSelection","RefreshDatasource"]},bbreferencefield={devComment:"As bb reference is only used for user subtype for now, we are using user for icon and labels",name:"User List Field",icon:"users",styles:["size"],editable:!0,size:{width:400,height:50},settings:[{type:"field/bb_reference",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue"},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"validation/link",label:"Validation",key:"validation"},{type:"boolean",label:"Search",key:"autocomplete",defaultValue:!0},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"array"}]}},bbreferencesinglefield={devComment:"As bb reference is only used for user subtype for now, we are using user for icon and labels",name:"User Field",icon:"user",styles:["size"],editable:!0,size:{width:400,height:50},settings:[{type:"field/bb_reference_single",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"text",label:"Placeholder",key:"placeholder"},{type:"text",label:"Default value",key:"defaultValue"},{type:"text",label:"Help text",key:"helpText"},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"validation/link",label:"Validation",key:"validation"},{type:"boolean",label:"Search",key:"autocomplete",defaultValue:!0},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"select",label:"Columns",key:"span",defaultValue:6,hidden:!0,showInBar:!0,barStyle:"buttons",options:[{label:"1 column",value:6,barIcon:"number-square-one",barTitle:"1 column"},{label:"2 columns",value:3,barIcon:"number-square-two",barTitle:"2 columns"},{label:"3 columns",value:2,barIcon:"number-square-three",barTitle:"3 columns"}]}],context:{type:"static",values:[{label:"Value",key:"value",type:"string"}]}},textv2={new:!0,name:"Text",description:"A component for displaying text",icon:"text-t",size:{width:400,height:24},settings:[{type:"text/multiline",label:"Text (Markdown supported)",key:"text",wide:!0},{type:"select",label:"Size",key:"size",defaultValue:"14px",showInBar:!0,placeholder:"Default",options:[{label:"Small",value:"12px"},{label:"Medium",value:"14px"},{label:"Large",value:"18px"},{label:"Extra large",value:"24px"}]},{type:"select",label:"Alignment",key:"align",defaultValue:"left",showInBar:!0,barStyle:"buttons",options:[{label:"Left",value:"left",barIcon:"TextAlignLeft",barTitle:"Align left"},{label:"Center",value:"center",barIcon:"TextAlignCenter",barTitle:"Align center"},{label:"Right",value:"right",barIcon:"TextAlignRight",barTitle:"Align right"},{label:"Justify",value:"justify",barIcon:"TextAlignJustify",barTitle:"Justify text"}]},{type:"color",label:"Color",key:"color",showInBar:!0}]},pdf={name:"PDF Generator",icon:"file-pdf",hasChildren:!0,showEmptyState:!1,illegalChildren:["sidepanel","modal","gridblock"],grid:{hAlign:"center",vAlign:"start"},size:{width:800,height:1200},description:"A component to render PDFs from other Budibase components",settings:[{type:"text",label:"PDF title",key:"fileName",defaultValue:"Report"},{type:"text",label:"Button text",key:"buttonText",defaultValue:"Download PDF"}]},pdftable={name:"PDF Table",icon:"table",styles:["size"],size:{width:600,height:304},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"dataSource",label:"Data",key:"datasource",required:!0},{type:"filter",label:"Filtering",key:"filter",resetOn:"datasource",dependsOn:{setting:"datasource.type",value:"custom",invert:!0}},{type:"field/sortable",label:"Sort column",key:"sortColumn",placeholder:"Default",resetOn:"datasource",dependsOn:{setting:"datasource.type",value:"custom",invert:!0}},{type:"select",label:"Sort order",key:"sortOrder",resetOn:"datasource",options:["Ascending","Descending"],defaultValue:"Ascending",dependsOn:"sortColumn"},{type:"columns/toplevel",label:"Columns",key:"columns",resetOn:"datasource",placeholder:"First 3 columns"},{type:"number",label:"Limit",key:"limit",defaultValue:10}]},singlerowprovider={name:"Single Row Provider",icon:"database",hasChildren:!0,actions:["RefreshDatasource"],size:{width:500,height:200},grid:{hAlign:"stretch",vAlign:"stretch"},settings:[{type:"table",label:"Datasource",key:"datasource",required:!0},{type:"text",label:"Row ID",key:"rowId",required:!0,resetOn:"datasource"}],context:{type:"schema"}},ratingfield={name:"Rating Field",icon:"star",styles:["size"],editable:!0,new:!0,size:{width:400,height:60},settings:[{type:"field/number",label:"Field",key:"field"},{type:"text",label:"Label",key:"label"},{type:"number",label:"Number of stars",key:"numberOfStars",min:1,max:25,defaultValue:5},{type:"select",label:"Size",key:"size",options:["XS","S","M","L","XL"],defaultValue:"L"},{type:"select",label:"Icon type",key:"type",options:["Star","Heart"],defaultValue:"Star"},{type:"select",label:"Colour variant",key:"variant",options:["Primary","Secondary","Mono","Gold","Red","Custom"],defaultValue:"Primary"},{type:"color",label:"Custom colour",key:"colour",dependsOn:{setting:"variant",value:"Custom"}},{type:"boolean",label:"Disabled",key:"disabled",defaultValue:!1},{type:"boolean",label:"Read only",key:"readonly",defaultValue:!1,dependsOn:{setting:"disabled",value:!0,invert:!0}},{type:"event",label:"On change",key:"onChange",context:[{label:"Field Value",key:"value"}]},{type:"validation/number",label:"Validation",key:"validation"}],context:{type:"static",values:[{label:"Value",key:"value",type:"number"}]}},Manifest={features,typeSupportPresets,layout,container:container$1,section,screenslot,buttongroup,button,divider,repeater,stackedlist,card,text,heading,tag,image,backgroundimage,icon,navigation,link,cardhorizontal,cardstat,embed,bar,line,area,pie,donut,candlestick,histogram,form,formstep,fieldgroup,labelfield,stringfield,numberfield,bigintfield,passwordfield,optionsfield,multifieldselect,booleanfield,longformfield,datetimefield,codescanner,codegenerator,signaturesinglefield,embeddedmap,attachmentfield,attachmentsinglefield,relationshipfield,jsonfield,s3upload,dataprovider,table,daterangepicker,spectrumcard,filter:filter$2,filterconfig,dynamicfilter,chartblock,tableblock,cardsblock,repeaterblock,markdownviewer,multistepformblock,multistepformblockstep,formblock,sidepanel,modal,accordion,rowexplorer,gridblock,bbreferencefield,bbreferencesinglefield,textv2,pdf,pdftable,singlerowprovider,ratingfield};var lib$6={exports:{}},seed=1;function getNextValue(){return seed=(seed*9301+49297)%233280,seed/233280}function setSeed$1(u){seed=u}var randomFromSeed$1={nextValue:getNextValue,seed:setSeed$1},randomFromSeed=randomFromSeed$1,ORIGINAL="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",alphabet$2,previousSeed,shuffled;function reset(){shuffled=!1}function setCharacters(u){if(!u){alphabet$2!==ORIGINAL&&(alphabet$2=ORIGINAL,reset());return}if(u!==alphabet$2){if(u.length!==ORIGINAL.length)throw new Error("Custom alphabet for shortid must be "+ORIGINAL.length+" unique characters. You submitted "+u.length+" characters: "+u);var l=u.split("").filter(function(f,p,m){return p!==m.lastIndexOf(f)});if(l.length)throw new Error("Custom alphabet for shortid must be "+ORIGINAL.length+" unique characters. These characters were not unique: "+l.join(", "));alphabet$2=u,reset()}}function characters$1(u){return setCharacters(u),alphabet$2}function setSeed(u){randomFromSeed.seed(u),previousSeed!==u&&(reset(),previousSeed=u)}function shuffle(){alphabet$2||setCharacters(ORIGINAL);for(var u=alphabet$2.split(""),l=[],f=randomFromSeed.nextValue(),p;u.length>0;)f=randomFromSeed.nextValue(),p=Math.floor(f*u.length),l.push(u.splice(p,1)[0]);return l.join("")}function getShuffled(){return shuffled||(shuffled=shuffle(),shuffled)}function lookup(u){var l=getShuffled();return l[u]}function get(){return alphabet$2||ORIGINAL}var alphabet_1={get,characters:characters$1,seed:setSeed,lookup,shuffled:getShuffled},crypto$1=typeof window=="object"&&(window.crypto||window.msCrypto),randomByte;!crypto$1||!crypto$1.getRandomValues?randomByte=function(u){for(var l=[],f=0;f<u;f++)l.push(Math.floor(Math.random()*256));return l}:randomByte=function(u){return crypto$1.getRandomValues(new Uint8Array(u))};var randomByteBrowser=randomByte;let urlAlphabet$1="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",random$1=u=>crypto.getRandomValues(new Uint8Array(u)),customRandom$1=(u,l,f)=>{let p=(2<<Math.log(u.length-1)/Math.LN2)-1,m=-~(1.6*p*l/u.length);return(b=l)=>{let y="";for(;;){let w=f(m),v=m|0;for(;v--;)if(y+=u[w[v]&p]||"",y.length===b)return y}}},customAlphabet$1=(u,l=21)=>customRandom$1(u,l,random$1),nanoid$2=(u=21)=>crypto.getRandomValues(new Uint8Array(u)).reduce((l,f)=>(f&=63,f<36?l+=f.toString(36):f<62?l+=(f-26).toString(36).toUpperCase():f>62?l+="-":l+="_",l),"");const index_browser=Object.freeze(Object.defineProperty({__proto__:null,customAlphabet:customAlphabet$1,customRandom:customRandom$1,nanoid:nanoid$2,random:random$1,urlAlphabet:urlAlphabet$1},Symbol.toStringTag,{value:"Module"})),require$$2=getAugmentedNamespace(index_browser);var alphabet$1=alphabet_1,random=randomByteBrowser,customRandom=require$$2.customRandom;function generate$1(u){for(var l=0,f,p="";!f;)p=p+customRandom(alphabet$1.get(),1,random)(),f=u<Math.pow(16,l+1),l++;return p}var generate_1=generate$1,generate=generate_1,REDUCE_TIME=1567752802062,version=7,counter,previousSeconds;function build(u){var l="",f=Math.floor((Date.now()-REDUCE_TIME)*.001);return f===previousSeconds?counter++:(counter=0,previousSeconds=f),l=l+generate(version),l=l+generate(u),counter>0&&(l=l+generate(counter)),l=l+generate(f),l}var build_1=build,alphabet=alphabet_1;function isShortId(u){if(!u||typeof u!="string"||u.length<6)return!1;var l=new RegExp("[^"+alphabet.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!l.test(u)}var isValid=isShortId;(function(u){var l=alphabet_1,f=build_1,p=isValid,m=0;function b(k){return l.seed(k),u.exports}function y(k){return m=k,u.exports}function w(k){return k!==void 0&&l.characters(k),l.shuffled()}function v(){return f(m)}u.exports=v,u.exports.generate=v,u.exports.seed=b,u.exports.worker=y,u.exports.characters=w,u.exports.isValid=p})(lib$6);var libExports=lib$6.exports,shortid=libExports;function create_fragment$26(u){let l;const f=u[6].default,p=create_slot(f,u,u[5],null);return{c(){p&&p.c()},m(m,b){p&&p.m(m,b),l=!0},p(m,[b]){p&&p.p&&(!l||b&32)&&update_slot_base(p,f,m,m[5],l?get_slot_changes(f,m[5],b,null):get_all_dirty_from_scope(m[5]),null)},i(m){l||(transition_in(p,m),l=!0)},o(m){transition_out(p,m),l=!1},d(m){p&&p.d(m)}}}function instance$24(u,l,f){let p,{$$slots:m={},$$scope:b}=l;const{ContextScopes:y}=getContext$1("sdk");let{data:w}=l,{actions:v}=l,{key:k}=l,{scope:S=y.Global}=l,B=getContext$1("context");const O=getContext$1("component");component_subscribe(u,O,Z=>f(10,p=Z));const R=k||p.id;S===y.Local&&(B=createContextStore(B),setContext("context",B));const U=shortid.generate();let $,X;const K=Z=>{const se=JSON.stringify(Z);se!==$&&(B.actions.provideData(R,Z),$=se)},J=Z=>{const se=JSON.stringify(Z);se!==X&&(X=se,Z==null||Z.forEach(({type:ie,callback:ce,metadata:pe})=>{B.actions.provideAction(R,ie,ce),ie===ActionTypes.RefreshDatasource&&pe!=null&&pe.dataSource&&dataSourceStore.actions.registerDataSource(pe.dataSource,U,ce)}))};return onDestroy(()=>{dataSourceStore.actions.unregisterInstance(U)}),u.$$set=Z=>{"data"in Z&&f(1,w=Z.data),"actions"in Z&&f(2,v=Z.actions),"key"in Z&&f(3,k=Z.key),"scope"in Z&&f(4,S=Z.scope),"$$scope"in Z&&f(5,b=Z.$$scope)},u.$$.update=()=>{u.$$.dirty&2&&K(w),u.$$.dirty&4&&J(v)},[O,w,v,k,S,b,m]}class Provider extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$24,create_fragment$26,safe_not_equal,{data:1,actions:2,key:3,scope:4})}}function create_if_block$1g(u){let l=u[1].props._id,f,p,m=create_key_block$c(u);return{c(){m.c(),f=empty$1()},m(b,y){m.m(b,y),insert(b,f,y),p=!0},p(b,y){y&2&&safe_not_equal(l,l=b[1].props._id)?(group_outros(),transition_out(m,1,1,noop$4),check_outros(),m=create_key_block$c(b),m.c(),transition_in(m,1),m.m(f.parentNode,f)):m.p(b,y)},i(b){p||(transition_in(m),p=!0)},o(b){transition_out(m),p=!1},d(b){b&&detach(f),m.d(b)}}}function create_default_slot$14(u){let l,f;return l=new Component({props:{isRoot:!0,instance:u[1].props}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&2&&(b.instance=p[1].props),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_key_block$c(u){let l,f;return l=new Provider({props:{key:"url",data:u[0],$$slots:{default:[create_default_slot$14]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&1&&(b.data=p[0]),m&258&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$25(u){var m;let l,f,p=u[2].routerLoaded&&((m=u[1])==null?void 0:m.props)&&create_if_block$1g(u);return{c(){p&&p.c(),l=empty$1()},m(b,y){p&&p.m(b,y),insert(b,l,y),f=!0},p(b,[y]){var w;b[2].routerLoaded&&((w=b[1])!=null&&w.props)?p?(p.p(b,y),y&6&&transition_in(p,1)):(p=create_if_block$1g(b),p.c(),transition_in(p,1),p.m(l.parentNode,l)):p&&(group_outros(),transition_out(p,1,1,()=>{p=null}),check_outros())},i(b){f||(transition_in(p),f=!0)},o(b){transition_out(p),f=!1},d(b){b&&detach(l),p&&p.d(b)}}}function instance$23(u,l,f){let p,m,b,y;component_subscribe(u,routeStore,B=>f(2,m=B)),component_subscribe(u,screenStore,B=>f(5,y=B));let{params:w={}}=l;const v=getContext$1("context"),k=memo();component_subscribe(u,k,B=>f(4,b=B));const S=(B,O)=>{if(B!=null&&B.length&&!get_store_value(builderStore).inBuilder){const R=enrichButtonActions(B,{...get_store_value(v),url:O});R!=null&&R()}};return onMount(()=>{m.routerLoaded||routeStore.actions.setRouterLoaded()}),u.$$set=B=>{"params"in B&&f(0,w=B.params)},u.$$.update=()=>{u.$$.dirty&32&&f(1,p=y.activeScreen),u.$$.dirty&2&&k.set(p==null?void 0:p.onLoad),u.$$.dirty&17&&S(b,w)},[w,p,m,k,b,y]}class Screen extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$23,create_fragment$25,safe_not_equal,{params:0})}}const Router_svelte_svelte_type_style_lang="";function create_key_block$b(u){let l,f,p,m,b,y;return f=new Router({props:{routes:u[0].routes}}),f.$on("routeLoading",u[4]),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","svelte-u3ivhz")},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[2].call(null,l,u[1].styles)),b=!0)},p(w,v){const k={};v&1&&(k.routes=w[0].routes),f.$set(k),p&&is_function(p.update)&&v&2&&p.update.call(null,w[1].styles)},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_fragment$24(u){let l=u[0].id,f,p,m=create_key_block$b(u);return{c(){m.c(),f=empty$1()},m(b,y){m.m(b,y),insert(b,f,y),p=!0},p(b,[y]){y&1&&safe_not_equal(l,l=b[0].id)?(group_outros(),transition_out(m,1,1,noop$4),check_outros(),m=create_key_block$b(b),m.c(),transition_in(m,1),m.m(f.parentNode,f)):m.p(b,y)},i(b){p||(transition_in(m),p=!0)},o(b){transition_out(m),p=!1},d(b){b&&detach(f),m.d(b)}}}function instance$22(u,l,f){let p,m,b,y;component_subscribe(u,querystring,O=>f(5,m=O)),component_subscribe(u,routeStore,O=>f(6,b=O));const{styleable:w}=getContext$1("sdk"),v=getContext$1("component");component_subscribe(u,v,O=>f(1,y=O)),setContext("screenslot",!0);const k=O=>{let R={};if(O){const U=new URLSearchParams(O);for(const[$,X]of U)R[$]=X}return R},S=O=>{let R={};return O.forEach(U=>{R[U.path]=Screen}),R["*"]=Screen,R},B=({detail:O})=>{routeStore.actions.setRouteParams(O.params||{}),routeStore.actions.setActiveRoute(O.route)};return onMount(()=>{const O=k(get_store_value(querystring));if(O.state)try{const R=JSON.parse(atob(O.state));stateStore.actions.initialise(R)}catch{}}),u.$$.update=()=>{u.$$.dirty&64&&f(0,p={routes:S(b.routes),id:b.routeSessionId}),u.$$.dirty&32&&routeStore.actions.setQueryParams(k(m))},[p,y,w,v,B,m,b]}class Router_1 extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$22,create_fragment$24,safe_not_equal,{})}}const spectrumGlobal="",spectrumMedium="",spectrumLarge="",spectrumDarkest="",spectrumDark="",spectrumLight="",spectrumLightest="",nord="",midnight="",indexVars$2="",Placeholder_svelte_svelte_type_style_lang="";function create_if_block$1f(u){var m;let l,f=(u[0]||((m=u[5])==null?void 0:m.name)||u[2].name||"Placeholder")+"",p;return{c(){l=element("div"),p=text$1(f),attr(l,"class","svelte-16hk7sb")},m(b,y){insert(b,l,y),append$2(l,p)},p(b,y){var w;y&5&&f!==(f=(b[0]||((w=b[5])==null?void 0:w.name)||b[2].name||"Placeholder")+"")&&set_data(p,f)},d(b){b&&detach(l)}}}function create_fragment$23(u){let l,f=u[1].inBuilder&&create_if_block$1f(u);return{c(){f&&f.c(),l=empty$1()},m(p,m){f&&f.m(p,m),insert(p,l,m)},p(p,[m]){p[1].inBuilder?f?f.p(p,m):(f=create_if_block$1f(p),f.c(),f.m(l.parentNode,l)):f&&(f.d(1),f=null)},i:noop$4,o:noop$4,d(p){p&&detach(l),f&&f.d(p)}}}function instance$21(u,l,f){let p,m;const{builderStore:b}=getContext$1("sdk");component_subscribe(u,b,k=>f(1,p=k));const y=getContext$1("component");component_subscribe(u,y,k=>f(2,m=k));const w=getContext$1("block");let{text:v=void 0}=l;return u.$$set=k=>{"text"in k&&f(0,v=k.text)},[v,p,m,b,y,w]}class Placeholder extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$21,create_fragment$23,safe_not_equal,{text:0})}}const GridContainer_svelte_svelte_type_style_lang="";function get_each_context$m(u,l,f){const p=u.slice();return p[31]=l[f],p}function get_each_context_1$3(u,l,f){const p=u.slice();return p[31]=l[f],p}function create_if_block_1$B(u){let l,f,p,m=ensure_array_like({length:u[2]}),b=[];for(let v=0;v<m.length;v+=1)b[v]=create_each_block_1$3(get_each_context_1$3(u,m,v));let y=ensure_array_like({length:GridColumns}),w=[];for(let v=0;v<y.length;v+=1)w[v]=create_each_block$m(get_each_context$m(u,y,v));return{c(){l=element("div");for(let v=0;v<b.length;v+=1)b[v].c();f=space(),p=element("div");for(let v=0;v<w.length;v+=1)w[v].c();attr(l,"class","underlay-h svelte-ch5mko"),attr(p,"class","underlay-v svelte-ch5mko")},m(v,k){insert(v,l,k);for(let S=0;S<b.length;S+=1)b[S]&&b[S].m(l,null);insert(v,f,k),insert(v,p,k);for(let S=0;S<w.length;S+=1)w[S]&&w[S].m(p,null)},p(v,k){if(k[0]&4){m=ensure_array_like({length:v[2]});let S;for(S=0;S<m.length;S+=1){const B=get_each_context_1$3(v,m,S);b[S]?b[S].p(B,k):(b[S]=create_each_block_1$3(),b[S].c(),b[S].m(l,null))}for(;S<b.length;S+=1)b[S].d(1);b.length=m.length}},d(v){v&&(detach(l),detach(f),detach(p)),destroy_each(b,v),destroy_each(w,v)}}}function create_each_block_1$3(u){let l;return{c(){l=element("div"),attr(l,"class","placeholder-h svelte-ch5mko")},m(f,p){insert(f,l,p)},p:noop$4,d(f){f&&detach(l)}}}function create_each_block$m(u){let l;return{c(){l=element("div"),attr(l,"class","placeholder-v svelte-ch5mko")},m(f,p){insert(f,l,p)},p:noop$4,d(f){f&&detach(l)}}}function create_if_block$1e(u){let l;const f=u[25].default,p=create_slot(f,u,u[24],null);return{c(){p&&p.c()},m(m,b){p&&p.m(m,b),l=!0},p(m,b){p&&p.p&&(!l||b[0]&16777216)&&update_slot_base(p,f,m,m[24],l?get_slot_changes(f,m[24],b,null):get_all_dirty_from_scope(m[24]),null)},i(m){l||(transition_in(p,m),l=!0)},o(m){transition_out(p,m),l=!1},d(m){p&&p.d(m)}}}function create_fragment$22(u){let l,f,p,m,b,y,w=u[5]&&create_if_block_1$B(u),v=u[7]&&create_if_block$1e(u);return{c(){l=element("div"),w&&w.c(),f=space(),v&&v.c(),attr(l,"class","grid svelte-ch5mko"),attr(l,"data-cols",GridColumns),attr(l,"data-col-size",u[1]),attr(l,"data-required-rows",u[4]),toggle_class(l,"mobile",u[3]),toggle_class(l,"clickable",!!u[0])},m(k,S){insert(k,l,S),w&&w.m(l,null),append$2(l,f),v&&v.m(l,null),u[26](l),m=!0,b||(y=[action_destroyer(p=u[10].call(null,l,u[8])),listen(l,"click",function(){is_function(u[0])&&u[0].apply(this,arguments)})],b=!0)},p(k,S){u=k,u[5]?w?w.p(u,S):(w=create_if_block_1$B(u),w.c(),w.m(l,f)):w&&(w.d(1),w=null),u[7]?v?(v.p(u,S),S[0]&128&&transition_in(v,1)):(v=create_if_block$1e(u),v.c(),transition_in(v,1),v.m(l,null)):v&&(group_outros(),transition_out(v,1,1,()=>{v=null}),check_outros()),(!m||S[0]&2)&&attr(l,"data-col-size",u[1]),(!m||S[0]&16)&&attr(l,"data-required-rows",u[4]),p&&is_function(p.update)&&S[0]&256&&p.update.call(null,u[8]),(!m||S[0]&8)&&toggle_class(l,"mobile",u[3]),(!m||S[0]&1)&&toggle_class(l,"clickable",!!u[0])},i(k){m||(transition_in(v),m=!0)},o(k){transition_out(v),m=!1},d(k){k&&detach(l),w&&w.d(),v&&v.d(),u[26](null),b=!1,run_all(y)}}}function instance$20(u,l,f){let p,m,b,y,w,v,k,S,B,O,R,U,$,{$$slots:X={},$$scope:K}=l,{onClick:J}=l;const Z=getContext$1("component");component_subscribe(u,Z,Ge=>f(20,B=Ge));const{styleable:se,builderStore:ie}=getContext$1("sdk");component_subscribe(u,ie,Ge=>f(23,U=Ge));const ce=getContext$1("context");component_subscribe(u,ce,Ge=>f(21,O=Ge));let pe,me,we,be=writable({});component_subscribe(u,be,Ge=>f(22,R=Ge));let de=!1,Te=memo({});component_subscribe(u,Te,Ge=>f(8,$=Ge));const Oe=(Ge,Ze,at)=>{const Pt=Ze?"mobileRowEnd":"desktopRowEnd";let _t=2;for(let gt of Object.keys(Ge))Ge[gt][Pt]>_t&&(_t=Ge[gt][Pt]);let He=_t-1;return at?Math.ceil((He+10)/10)*10:He},$e=Ge=>{be.update(Ze=>({...Ze,[Ge.dataset.id]:{desktopRowEnd:parseInt(Ge.dataset.gridDesktopRowEnd),mobileRowEnd:parseInt(Ge.dataset.gridMobileRowEnd)}}))},he=Ge=>{be.update(Ze=>(delete Ze[Ge.dataset.id],{...Ze}))},Fe=Ge=>{const Ze=new ResizeObserver(at=>{if(!(at!=null&&at[0]))return;const Pt=at[0].target;f(15,pe=Pt.clientWidth),f(16,me=Pt.clientHeight)});return Ze.observe(Ge),Ze};onMount(()=>{let Ge,Ze;return Ze=Fe(we),Ge=new MutationObserver(at=>{var Pt,_t,He,gt;for(let Tt of at){const{target:ht,type:bt,addedNodes:ct,removedNodes:lt}=Tt;ht===we?(_t=(Pt=ct[0])==null?void 0:Pt.classList)!=null&&_t.contains("component")?$e(ct[0]):(gt=(He=lt[0])==null?void 0:He.classList)!=null&>.contains("component")&&he(lt[0]):bt==="attributes"&&ht.parentNode===we&&ht.classList.contains("component")&&$e(ht)}}),Ge.observe(we,{childList:!0,attributes:!0,subtree:!0,attributeFilter:["data-grid-desktop-row-end","data-grid-mobile-row-end"]}),f(7,de=!0),()=>{Ge==null||Ge.disconnect(),Ze==null||Ze.disconnect()}});function Re(Ge){binding_callbacks[Ge?"unshift":"push"](()=>{we=Ge,f(6,we)})}return u.$$set=Ge=>{"onClick"in Ge&&f(0,J=Ge.onClick),"$$scope"in Ge&&f(24,K=Ge.$$scope)},u.$$.update=()=>{var Ge,Ze,at;u.$$.dirty[0]&8388608&&f(5,p=U.inBuilder),u.$$.dirty[0]&1048608&&f(19,m=B.isRoot&&p),u.$$.dirty[0]&2097152&&f(3,k=O.device.mobile),u.$$.dirty[0]&4718600&&f(4,b=Oe(R,k,m)),u.$$.dirty[0]&16&&f(17,y=b*GridRowHeight),u.$$.dirty[0]&65536&&f(18,w=Math.floor(me/GridRowHeight)),u.$$.dirty[0]&262160&&f(2,v=Math.max(b,w)),u.$$.dirty[0]&32768&&f(1,S=pe/GridColumns),u.$$.dirty[0]&1179654&&Te.set({...B.styles,normal:{...(Ge=B.styles)==null?void 0:Ge.normal,"--height":`${y}px`,"--min-height":((at=(Ze=B.styles)==null?void 0:Ze.normal)==null?void 0:at.height)||0,"--cols":GridColumns,"--rows":v,"--col-size":S,"--row-size":GridRowHeight}})},[J,S,v,k,b,p,we,de,$,Z,se,ie,ce,be,Te,pe,me,y,w,m,B,O,R,U,K,X,Re]}class GridContainer extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$20,create_fragment$22,safe_not_equal,{onClick:0},null,[-1,-1])}}const FlexContainer_svelte_svelte_type_style_lang="";function create_fragment$21(u){let l,f,p,m,b,y;const w=u[17].default,v=create_slot(w,u,u[16],null);return{c(){l=element("div"),v&&v.c(),attr(l,"class",f=null_to_empty(u[2])+" svelte-h3y7aq"),toggle_class(l,"clickable",!!u[1]),toggle_class(l,"wrap",u[0])},m(k,S){insert(k,l,S),v&&v.m(l,null),m=!0,b||(y=[action_destroyer(p=u[4].call(null,l,u[3].styles)),listen(l,"click",function(){is_function(u[1])&&u[1].apply(this,arguments)})],b=!0)},p(k,[S]){u=k,v&&v.p&&(!m||S&65536)&&update_slot_base(v,w,u,u[16],m?get_slot_changes(w,u[16],S,null):get_all_dirty_from_scope(u[16]),null),(!m||S&4&&f!==(f=null_to_empty(u[2])+" svelte-h3y7aq"))&&attr(l,"class",f),p&&is_function(p.update)&&S&8&&p.update.call(null,u[3].styles),(!m||S&6)&&toggle_class(l,"clickable",!!u[1]),(!m||S&5)&&toggle_class(l,"wrap",u[0])},i(k){m||(transition_in(v,k),m=!0)},o(k){transition_out(v,k),m=!1},d(k){k&&detach(l),v&&v.d(k),b=!1,run_all(y)}}}function instance$1$(u,l,f){let p,m,b,y,w,v,k,{$$slots:S={},$$scope:B}=l;const{styleable:O}=getContext$1("sdk"),R=getContext$1("component");component_subscribe(u,R,ie=>f(3,k=ie));let{direction:U}=l,{hAlign:$}=l,{vAlign:X}=l,{size:K}=l,{gap:J}=l,{wrap:Z}=l,{onClick:se}=l;return u.$$set=ie=>{"direction"in ie&&f(6,U=ie.direction),"hAlign"in ie&&f(7,$=ie.hAlign),"vAlign"in ie&&f(8,X=ie.vAlign),"size"in ie&&f(9,K=ie.size),"gap"in ie&&f(10,J=ie.gap),"wrap"in ie&&f(0,Z=ie.wrap),"onClick"in ie&&f(1,se=ie.onClick),"$$scope"in ie&&f(16,B=ie.$$scope)},u.$$.update=()=>{u.$$.dirty&64&&f(15,p=U?`flex-container direction-${U}`:""),u.$$.dirty&128&&f(14,m=$?`hAlign-${$}`:""),u.$$.dirty&256&&f(13,b=X?`vAlign-${X}`:""),u.$$.dirty&512&&f(12,y=K?`size-${K}`:""),u.$$.dirty&1024&&f(11,w=J?`gap-${J}`:""),u.$$.dirty&63488&&f(2,v=[p,m,b,y,w].join(" "))},[Z,se,v,k,O,R,U,$,X,K,J,w,y,b,m,p,B,S]}class FlexContainer extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1$,create_fragment$21,safe_not_equal,{direction:6,hAlign:7,vAlign:8,size:9,gap:10,wrap:0,onClick:1})}}function create_default_slot$13(u){let l;const f=u[3].default,p=create_slot(f,u,u[4],null);return{c(){p&&p.c()},m(m,b){p&&p.m(m,b),l=!0},p(m,b){p&&p.p&&(!l||b&16)&&update_slot_base(p,f,m,m[4],l?get_slot_changes(f,m[4],b,null):get_all_dirty_from_scope(m[4]),null)},i(m){l||(transition_in(p,m),l=!0)},o(m){transition_out(p,m),l=!1},d(m){p&&p.d(m)}}}function create_fragment$20(u){let l,f,p;const m=[u[1]];var b=u[0];function y(w,v){let k={$$slots:{default:[create_default_slot$13]},$$scope:{ctx:w}};for(let S=0;S<m.length;S+=1)k=assign(k,m[S]);return v!==void 0&&v&2&&(k=assign(k,get_spread_update(m,[get_spread_object(w[1])]))),{props:k}}return b&&(l=construct_svelte_component(b,y(u))),{c(){l&&create_component(l.$$.fragment),f=empty$1()},m(w,v){l&&mount_component(l,w,v),insert(w,f,v),p=!0},p(w,[v]){if(v&1&&b!==(b=w[0])){if(l){group_outros();const k=l;transition_out(k.$$.fragment,1,0,()=>{destroy_component(k,1)}),check_outros()}b?(l=construct_svelte_component(b,y(w,v)),create_component(l.$$.fragment),transition_in(l.$$.fragment,1),mount_component(l,f.parentNode,f)):l=null}else if(b){const k=v&2?get_spread_update(m,[get_spread_object(w[1])]):{};v&16&&(k.$$scope={dirty:v,ctx:w}),l.$set(k)}},i(w){p||(l&&transition_in(l.$$.fragment,w),p=!0)},o(w){l&&transition_out(l.$$.fragment,w),p=!1},d(w){w&&detach(f),l&&destroy_component(l,w)}}}function instance$1_(u,l,f){let p,{$$slots:m={},$$scope:b}=l,{layout:y="flex"}=l;return u.$$set=w=>{f(1,l=assign(assign({},l),exclude_internal_props(w))),"layout"in w&&f(2,y=w.layout),"$$scope"in w&&f(4,b=w.$$scope)},u.$$.update=()=>{u.$$.dirty&4&&f(0,p=y==="grid"?GridContainer:FlexContainer)},l=exclude_internal_props(l),[p,l,y,m,b]}let Container$8=class extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1_,create_fragment$20,safe_not_equal,{layout:2})}};const DataProvider_svelte_svelte_type_style_lang="";function create_else_block$j(u){let l,f,p;const m=u[19].default,b=create_slot(m,u,u[20],null);let y=u[0]&&u[2].supportsPagination&&create_if_block_1$A(u);return{c(){b&&b.c(),l=space(),y&&y.c(),f=empty$1()},m(w,v){b&&b.m(w,v),insert(w,l,v),y&&y.m(w,v),insert(w,f,v),p=!0},p(w,v){b&&b.p&&(!p||v&1048576)&&update_slot_base(b,m,w,w[20],p?get_slot_changes(m,w[20],v,null):get_all_dirty_from_scope(w[20]),null),w[0]&&w[2].supportsPagination?y?(y.p(w,v),v&5&&transition_in(y,1)):(y=create_if_block_1$A(w),y.c(),transition_in(y,1),y.m(f.parentNode,f)):y&&(group_outros(),transition_out(y,1,1,()=>{y=null}),check_outros())},i(w){p||(transition_in(b,w),transition_in(y),p=!0)},o(w){transition_out(b,w),transition_out(y),p=!1},d(w){w&&(detach(l),detach(f)),b&&b.d(w),y&&y.d(w)}}}function create_if_block$1d(u){let l,f,p;return f=new ProgressCircle({}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","loading svelte-1w67a05")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p:noop$4,i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_if_block_1$A(u){let l,f,p;return f=new Pagination$1({props:{page:u[2].pageNumber+1,hasPrevPage:u[2].hasPrevPage,hasNextPage:u[2].hasNextPage,goToPrevPage:u[1].prevPage,goToNextPage:u[1].nextPage}}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","pagination svelte-1w67a05")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p(m,b){const y={};b&4&&(y.page=m[2].pageNumber+1),b&4&&(y.hasPrevPage=m[2].hasPrevPage),b&4&&(y.hasNextPage=m[2].hasNextPage),b&2&&(y.goToPrevPage=m[1].prevPage),b&2&&(y.goToNextPage=m[1].nextPage),f.$set(y)},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_default_slot$12(u){let l,f,p,m;const b=[create_if_block$1d,create_else_block$j],y=[];function w(v,k){return v[2].loaded?1:0}return l=w(u),f=y[l]=b[l](u),{c(){f.c(),p=empty$1()},m(v,k){y[l].m(v,k),insert(v,p,k),m=!0},p(v,k){let S=l;l=w(v),l===S?y[l].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p))},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),y[l].d(v)}}}function create_fragment$1$(u){let l,f,p,m,b,y;return f=new u[7]({props:{actions:u[5],data:u[4],$$slots:{default:[create_default_slot$12]},$$scope:{ctx:u}}}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","container svelte-1w67a05")},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[6].call(null,l,u[3].styles)),b=!0)},p(w,[v]){const k={};v&32&&(k.actions=w[5]),v&16&&(k.data=w[4]),v&1048583&&(k.$$scope={dirty:v,ctx:w}),f.$set(k),p&&is_function(p.update)&&v&8&&p.update.call(null,w[3].styles)},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function instance$1Z(u,l,f){let p,m,b,y,w,v,k,S=noop$4,B=()=>(S(),S=subscribe(b,Ze=>f(2,k=Ze)),b),O;u.$$.on_destroy.push(()=>S());let{$$slots:R={},$$scope:U}=l,{dataSource:$}=l,{filter:X}=l,{sortColumn:K}=l,{sortOrder:J}=l,{limit:Z}=l,{paginate:se}=l,{autoRefresh:ie}=l;const{styleable:ce,Provider:pe,ActionTypes:me,API:we}=getContext$1("sdk"),be=getContext$1("component");component_subscribe(u,be,Ze=>f(3,O=Ze));let de,Te={};const Oe=Ze=>fetchData({API:we,datasource:Ze,options:{query:m,sortColumn:K,sortOrder:J,limit:Z,paginate:se}}),$e=Ze=>{if(!Ze)return Ze;let at={...Ze};return Object.entries(at).forEach(([Pt,_t])=>{_t.visible===!1&&delete at[Pt]}),at},he=(Ze,at)=>{!Ze||!at||f(15,Te={...Te,[Ze]:at})},Fe=Ze=>{if(!Ze)return;const at={...Te};delete at[Ze],f(15,Te=at)},Re=(Ze,at)=>{var _t,He;if(!Object.keys(at).length)return Ze;const Pt={[LogicalOperator.AND]:{conditions:[...Ze?[Ze]:[],...Object.values(at||{})]},onEmptyFilter:EmptyFilterOption.RETURN_NONE};return(((He=(_t=Pt[LogicalOperator.AND])==null?void 0:_t.conditions)==null?void 0:He.length)??0)>0?Pt:{}},Ge=Ze=>{clearInterval(de),Ze&&(de=setInterval(b.refresh,Math.max(1e4,Ze*1e3)))};return onDestroy(()=>{clearInterval(de)}),u.$$set=Ze=>{"dataSource"in Ze&&f(9,$=Ze.dataSource),"filter"in Ze&&f(10,X=Ze.filter),"sortColumn"in Ze&&f(11,K=Ze.sortColumn),"sortOrder"in Ze&&f(12,J=Ze.sortOrder),"limit"in Ze&&f(13,Z=Ze.limit),"paginate"in Ze&&f(0,se=Ze.paginate),"autoRefresh"in Ze&&f(14,ie=Ze.autoRefresh),"$$scope"in Ze&&f(20,U=Ze.$$scope)},u.$$.update=()=>{var Ze;u.$$.dirty&1024&&f(18,p=buildQuery$1(X)),u.$$.dirty&294912&&f(16,m=Re(p,Te)),u.$$.dirty&512&&B(f(1,b=Oe($))),u.$$.dirty&79875&&b.update({query:m,sortColumn:K,sortOrder:J,limit:Z,paginate:se}),u.$$.dirty&4&&f(17,y=$e(k.schema)),u.$$.dirty&16384&&Ge(ie),u.$$.dirty&514&&f(5,w=[{type:me.RefreshDatasource,callback:()=>b.refresh(),metadata:{dataSource:$}},{type:me.AddDataProviderQueryExtension,callback:he},{type:me.RemoveDataProviderQueryExtension,callback:Fe},{type:me.SetDataProviderSorting,callback:({column:at,order:Pt})=>{var He;let _t={};at&&(_t.sortColumn=at),Pt&&(_t.sortOrder=Pt),(He=Object.keys(_t))!=null&&He.length&&b.update(_t)}}]),u.$$.dirty&139788&&f(4,v={rows:k.rows,info:k.info,datasource:$||{},schema:y,rowsLength:k.rows.length,pageNumber:k.pageNumber+1,id:O==null?void 0:O.id,state:{query:k.query},limit:Z,primaryDisplay:(Ze=k.definition)==null?void 0:Ze.primaryDisplay,loaded:k.loaded})},[se,b,k,O,v,w,ce,pe,be,$,X,K,J,Z,ie,Te,m,y,p,R,U]}class DataProvider extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1Z,create_fragment$1$,safe_not_equal,{dataSource:9,filter:10,sortColumn:11,sortOrder:12,limit:13,paginate:0,autoRefresh:14})}}function create_fragment$1_(u){let l,f,p,m,b;return{c(){l=element("hr"),attr(l,"class",f="spectrum-Divider spectrum-Divider--"+(u[1]?"vertical":"horizontal")+" spectrum-Dialog-divider spectrum-Divider--size"+u[0])},m(y,w){insert(y,l,w),m||(b=action_destroyer(p=u[3].call(null,l,u[2].styles)),m=!0)},p(y,[w]){w&3&&f!==(f="spectrum-Divider spectrum-Divider--"+(y[1]?"vertical":"horizontal")+" spectrum-Dialog-divider spectrum-Divider--size"+y[0])&&attr(l,"class",f),p&&is_function(p.update)&&w&4&&p.update.call(null,y[2].styles)},i:noop$4,o:noop$4,d(y){y&&detach(l),m=!1,b()}}}function instance$1Y(u,l,f){let p;const{styleable:m}=getContext$1("sdk"),b=getContext$1("component");component_subscribe(u,b,v=>f(2,p=v));let{size:y="M"}=l,{vertical:w=!1}=l;return u.$$set=v=>{"size"in v&&f(0,y=v.size),"vertical"in v&&f(1,w=v.vertical)},[y,w,p,m,b]}class Divider extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1Y,create_fragment$1_,safe_not_equal,{size:0,vertical:1})}}const ScreenSlot_svelte_svelte_type_style_lang="";function create_fragment$1Z(u){let l,f,p,m;return{c(){l=element("div"),l.innerHTML=`<h1 class="svelte-ku38cm">Screen Slot</h1> <span class="svelte-ku38cm">The screens that you create will be displayed inside this box.
|
|
381
381
|
<br/>
|
|
382
|
-
This box is just a placeholder, to show you the position of screens.</span>`,attr(l,"class","svelte-ku38cm")},m(b,y){insert(b,l,y),p||(m=action_destroyer(f=u[1].call(null,l,{...u[0].styles,empty:!0})),p=!0)},p(b,[y]){f&&is_function(f.update)&&y&1&&f.update.call(null,{...b[0].styles,empty:!0})},i:noop$4,o:noop$4,d(b){b&&detach(l),p=!1,m()}}}function instance$1X(u,l,f){let p;const{styleable:m}=getContext$1("sdk"),b=getContext$1("component");return component_subscribe(u,b,y=>f(0,p=y)),[p,m,b]}class ScreenSlot extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1X,create_fragment$1Z,safe_not_equal,{})}}const Button_svelte_svelte_type_style_lang="";function create_if_block$1c(u){let l,f;return{c(){l=element("i"),attr(l,"class",f=u[4]+" "+u[1]+" svelte-1033xd6")},m(p,m){insert(p,l,m)},p(p,m){m&18&&f!==(f=p[4]+" "+p[1]+" svelte-1033xd6")&&attr(l,"class",f)},d(p){p&&detach(l)}}}function create_key_block$a(u){let l,f,p,m,b,y,w,v,k,S=u[4]&&create_if_block$1c(u);return{c(){l=element("button"),S&&S.c(),f=space(),p=text$1(u[12]),attr(l,"class",m=null_to_empty(`spectrum-Button spectrum-Button--size${u[1]} spectrum-Button--${u[2]} gap-${u[5]}`)+" svelte-1033xd6"),l.disabled=b=u[0]||u[10],attr(l,"contenteditable",y=u[8].editing&&!u[4]),toggle_class(l,"spectrum-Button--quiet",u[3]),toggle_class(l,"custom",u[11]),toggle_class(l,"active",u[6])},m(B,O){insert(B,l,O),S&&S.m(l,null),append$2(l,f),append$2(l,p),u[21](l),v||(k=[action_destroyer(w=u[13].call(null,l,u[8].styles)),listen(l,"click",u[17]),listen(l,"blur",function(){is_function(u[8].editing?u[16]:null)&&(u[8].editing?u[16]:null).apply(this,arguments)}),listen(l,"input",u[22])],v=!0)},p(B,O){u=B,u[4]?S?S.p(u,O):(S=create_if_block$1c(u),S.c(),S.m(l,f)):S&&(S.d(1),S=null),O&4096&&set_data_maybe_contenteditable(p,u[12],u[8].editing&&!u[4]),O&38&&m!==(m=null_to_empty(`spectrum-Button spectrum-Button--size${u[1]} spectrum-Button--${u[2]} gap-${u[5]}`)+" svelte-1033xd6")&&attr(l,"class",m),O&1025&&b!==(b=u[0]||u[10])&&(l.disabled=b),O&272&&y!==(y=u[8].editing&&!u[4])&&attr(l,"contenteditable",y),w&&is_function(w.update)&&O&256&&w.update.call(null,u[8].styles),O&46&&toggle_class(l,"spectrum-Button--quiet",u[3]),O&2086&&toggle_class(l,"custom",u[11]),O&102&&toggle_class(l,"active",u[6])},d(B){B&&detach(l),S&&S.d(),u[21](null),v=!1,run_all(k)}}}function create_fragment$1Y(u){let l=u[8].editing,f,p=create_key_block$a(u);return{c(){p.c(),f=empty$1()},m(m,b){p.m(m,b),insert(m,f,b)},p(m,[b]){b&256&&safe_not_equal(l,l=m[8].editing)?(p.d(1),p=create_key_block$a(m),p.c(),p.m(f.parentNode,f)):p.p(m,b)},i:noop$4,o:noop$4,d(m){m&&detach(f),p.d(m)}}}function instance$1W(u,l,f){let p,m,b,y;const{styleable:w,builderStore:v}=getContext$1("sdk");component_subscribe(u,v,de=>f(20,y=de));const k=getContext$1("component");component_subscribe(u,k,de=>f(8,b=de));let{disabled:S=!1}=l,{text:B=""}=l,{onClick:O}=l,{size:R="M"}=l,{type:U="cta"}=l,{quiet:$=!1}=l,{icon:X=null}=l,{gap:K="M"}=l,{active:J=!1}=l,Z,se=!1,ie=!1;const ce=(de,Te,Oe)=>Oe.editing?de||" ":de||Oe.name||"Placeholder text",pe=de=>{se&&v.actions.updateProp("text",de.target.textContent),f(9,se=!1)},me=async()=>{f(10,ie=!0),O&&await O(),f(10,ie=!1)};function we(de){binding_callbacks[de?"unshift":"push"](()=>{Z=de,f(7,Z)})}const be=()=>f(9,se=!0);return u.$$set=de=>{"disabled"in de&&f(0,S=de.disabled),"text"in de&&f(18,B=de.text),"onClick"in de&&f(19,O=de.onClick),"size"in de&&f(1,R=de.size),"type"in de&&f(2,U=de.type),"quiet"in de&&f(3,$=de.quiet),"icon"in de&&f(4,X=de.icon),"gap"in de&&f(5,K=de.gap),"active"in de&&f(6,J=de.active)},u.$$.update=()=>{var de,Te,Oe,$e;u.$$.dirty&384&&b.editing&&(Z==null||Z.focus()),u.$$.dirty&1310976&&f(12,p=ce(B,y,b)),u.$$.dirty&256&&f(11,m=((Te=(de=b.styles)==null?void 0:de.normal)==null?void 0:Te.background)||(($e=(Oe=b.styles)==null?void 0:Oe.normal)==null?void 0:$e["background-image"]))},[S,R,U,$,X,K,J,Z,b,se,ie,m,p,w,v,k,pe,me,B,O,y,we,be]}class Button extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1W,create_fragment$1Y,safe_not_equal,{disabled:0,text:18,onClick:19,size:1,type:2,quiet:3,icon:4,gap:5,active:6})}}function create_default_slot$11(u){let l;const f=u[14].default,p=create_slot(f,u,u[15],null);return{c(){p&&p.c()},m(m,b){p&&p.m(m,b),l=!0},p(m,b){p&&p.p&&(!l||b&32768)&&update_slot_base(p,f,m,m[15],l?get_slot_changes(f,m[15],b,null):get_all_dirty_from_scope(m[15]),null)},i(m){l||(transition_in(p,m),l=!0)},o(m){transition_out(p,m),l=!1},d(m){p&&p.d(m)}}}function create_fragment$1X(u){let l,f;return l=new Component({props:{instance:u[0],isBlock:!0,$$slots:{default:[create_default_slot$11]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,[m]){const b={};m&1&&(b.instance=p[0]),m&32768&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function instance_1$3(u,l,f){let p,m,b,y,w;component_subscribe(u,builderStore,pe=>f(12,y=pe));let{$$slots:v={},$$scope:k}=l,{type:S}=l,{props:B=void 0}=l,{styles:O=void 0}=l,{context:R=void 0}=l,{name:U=void 0}=l,{order:$=0}=l,{containsSlot:X=!1}=l,{id:K=void 0}=l;const J=getContext$1("component");component_subscribe(u,J,pe=>f(13,w=pe));const Z=getContext$1("block"),se=shortid.generate(),ie=pe=>pe?pe.startsWith("plugin/")?pe:`@budibase/standard-components/${pe}`:null,ce=(pe,me)=>pe||(me?(me.startsWith("plugin/")&&(me=me.split("plugin/")[1]),me[0].toUpperCase()+me.slice(1)):"New component");return onDestroy(()=>{m&&Z.unregisterComponent(K,p)}),u.$$set=pe=>{"type"in pe&&f(3,S=pe.type),"props"in pe&&f(4,B=pe.props),"styles"in pe&&f(5,O=pe.styles),"context"in pe&&f(6,R=pe.context),"name"in pe&&f(7,U=pe.name),"order"in pe&&f(8,$=pe.order),"containsSlot"in pe&&f(9,X=pe.containsSlot),"id"in pe&&f(2,K=pe.id),"$$scope"in pe&&f(15,k=pe.$$scope)},u.$$.update=()=>{u.$$.dirty&64&&f(2,K=`${Z.id}-${R??se}`),u.$$.dirty&8192&&f(10,p=w==null?void 0:w.id),u.$$.dirty&4096&&f(11,m=y.inBuilder),u.$$.dirty&700&&f(0,b={...B,_component:ie(S),_id:K,_instanceName:ce(U,S),_containsSlot:X,_styles:{...O,normal:(O==null?void 0:O.normal)||{}}}),u.$$.dirty&3333&&m&&Z.registerComponent(K,p,$??0,b)},[b,J,K,S,B,O,R,U,$,X,p,m,y,w,v,k]}class BlockComponent extends SvelteComponent{constructor(l){super(),init$1(this,l,instance_1$3,create_fragment$1X,safe_not_equal,{type:3,props:4,styles:5,context:6,name:7,order:8,containsSlot:9,id:2})}}const createBlockStore=()=>{const u=writable({}),l=(m,b)=>{u.update(y=>({...y,[m]:b}))},f=m=>{u.update(b=>(delete b[m],b))},p=m=>get_store_value(u)[m];return{subscribe:u.subscribe,actions:{registerBlock:l,unregisterBlock:f,getBlock:p}}},blockStore=createBlockStore();function create_fragment$1W(u){let l,f,p,m,b;const y=u[4].default,w=create_slot(y,u,u[3],null);return{c(){l=element("div"),w&&w.c()},m(v,k){insert(v,l,k),w&&w.m(l,null),p=!0,m||(b=action_destroyer(f=u[2].call(null,l,u[0].styles)),m=!0)},p(v,[k]){w&&w.p&&(!p||k&8)&&update_slot_base(w,y,v,v[3],p?get_slot_changes(y,v[3],k,null):get_all_dirty_from_scope(v[3]),null),f&&is_function(f.update)&&k&1&&f.update.call(null,v[0].styles)},i(v){p||(transition_in(w,v),p=!0)},o(v){transition_out(w,v),p=!1},d(v){v&&detach(l),w&&w.d(v),m=!1,b()}}}function instance$1V(u,l,f){let p,m;component_subscribe(u,builderStore,U=>f(6,m=U));let{$$slots:b={},$$scope:y}=l;const w=getContext$1("component");component_subscribe(u,w,U=>f(0,p=U));const{styleable:v}=getContext$1("sdk");let k={};const S=(U,$,X,K)=>{k[$]||(k[$]={}),k[$][U]={order:X,instance:K}},B=(U,$)=>{k[$]&&delete k[$][U]},O=()=>{var X,K,J,Z,se;const U=k[p.id]||{};let $=(X=Object.values(U)[0])==null?void 0:X.instance;$&&($._styles={...$._styles,normal:{...(K=$._styles)==null?void 0:K.normal,...(J=p.styles)==null?void 0:J.normal},custom:(((Z=$._styles)==null?void 0:Z.custom)||"")+(((se=p.styles)==null?void 0:se.custom)||"")},R($,k),builderStore.actions.ejectBlock(p.id,$))},R=(U,$)=>{let X=U._id;const K=Object.values($[X]||{});K.length&&(K.sort((J,Z)=>J.order<Z.order?-1:1),U._children=K.map(J=>J.instance),U._children.forEach(J=>{R(J,$)}))};return setContext("block",{id:p.id,name:p.name,registerComponent:S,unregisterComponent:B}),onMount(()=>{m.inBuilder&&blockStore.actions.registerBlock(p.id,{eject:O})}),onDestroy(()=>{m.inBuilder&&blockStore.actions.unregisterBlock(p.id)}),u.$$set=U=>{"$$scope"in U&&f(3,y=U.$$scope)},[p,w,v,y,b]}class Block extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1V,create_fragment$1W,safe_not_equal,{})}}function get_each_context$l(u,l,f){const p=u.slice();return p[12]=l[f].text,p[13]=l[f].type,p[14]=l[f].quiet,p[15]=l[f].disabled,p[16]=l[f].onClick,p[17]=l[f].size,p[18]=l[f].icon,p[6]=l[f].gap,p}function create_else_block$i(u){let l,f,p=ensure_array_like(u[0]),m=[];for(let y=0;y<p.length;y+=1)m[y]=create_each_block$l(get_each_context$l(u,p,y));const b=y=>transition_out(m[y],1,1,()=>{m[y]=null});return{c(){for(let y=0;y<m.length;y+=1)m[y].c();l=empty$1()},m(y,w){for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(y,w);insert(y,l,w),f=!0},p(y,w){if(w&1){p=ensure_array_like(y[0]);let v;for(v=0;v<p.length;v+=1){const k=get_each_context$l(y,p,v);m[v]?(m[v].p(k,w),transition_in(m[v],1)):(m[v]=create_each_block$l(k),m[v].c(),transition_in(m[v],1),m[v].m(l.parentNode,l))}for(group_outros(),v=p.length;v<m.length;v+=1)b(v);check_outros()}},i(y){if(!f){for(let w=0;w<p.length;w+=1)transition_in(m[w]);f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)transition_out(m[w]);f=!1},d(y){y&&detach(l),destroy_each(m,y)}}}function create_if_block$1b(u){let l,f;return l=new CollapsedButtonGroup({props:{text:u[5]||"Action",buttons:u[7]}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&32&&(b.text=p[5]||"Action"),m&128&&(b.buttons=p[7]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_each_block$l(u){let l,f;return l=new BlockComponent({props:{type:"button",props:{text:u[12]||"Button",onClick:u[16],type:u[13],quiet:u[14],disabled:u[15],icon:u[18],gap:u[6],size:u[17]||"M"}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&1&&(b.props={text:p[12]||"Button",onClick:p[16],type:p[13],quiet:p[14],disabled:p[15],icon:p[18],gap:p[6],size:p[17]||"M"}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot_1$u(u){let l,f,p,m;const b=[create_if_block$1b,create_else_block$i],y=[];function w(v,k){return v[4]?0:1}return l=w(u),f=y[l]=b[l](u),{c(){f.c(),p=empty$1()},m(v,k){y[l].m(v,k),insert(v,p,k),m=!0},p(v,k){let S=l;l=w(v),l===S?y[l].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p))},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),y[l].d(v)}}}function create_default_slot$10(u){let l,f;return l=new BlockComponent({props:{type:"container",props:{direction:u[1],hAlign:u[2],vAlign:u[3],gap:u[6],wrap:!0},styles:{normal:{height:"100%"}},$$slots:{default:[create_default_slot_1$u]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&78&&(b.props={direction:p[1],hAlign:p[2],vAlign:p[3],gap:p[6],wrap:!0}),m&2097329&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1V(u){let l,f;return l=new Block({props:{$$slots:{default:[create_default_slot$10]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,[m]){const b={};m&2097407&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function instance$1U(u,l,f){let p,m,{buttons:b=[]}=l,{direction:y="row"}=l,{hAlign:w="left"}=l,{vAlign:v="top"}=l,{gap:k="S"}=l,{collapsed:S=!1}=l,{collapsedText:B="Action"}=l;const{enrichButtonActions:O}=getContext$1("sdk"),R=getContext$1("context");component_subscribe(u,R,$=>f(9,m=$));const U=$=>$.map(X=>({...X,onClick:async()=>{const K=O(X.onClick,m);await(K==null?void 0:K())}}));return u.$$set=$=>{"buttons"in $&&f(0,b=$.buttons),"direction"in $&&f(1,y=$.direction),"hAlign"in $&&f(2,w=$.hAlign),"vAlign"in $&&f(3,v=$.vAlign),"gap"in $&&f(6,k=$.gap),"collapsed"in $&&f(4,S=$.collapsed),"collapsedText"in $&&f(5,B=$.collapsedText)},u.$$.update=()=>{u.$$.dirty&17&&f(7,p=S?U(b):null)},[b,y,w,v,S,B,k,p,R]}class ButtonGroup extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1U,create_fragment$1V,safe_not_equal,{buttons:0,direction:1,hAlign:2,vAlign:3,gap:6,collapsed:4,collapsedText:5})}}const Repeater_svelte_svelte_type_style_lang="";function get_each_context$k(u,l,f){const p=u.slice();return p[15]=l[f],p[17]=f,p}function create_if_block_2$m(u){let l,f,p;return{c(){l=element("div"),f=element("i"),p=text$1(u[0]),attr(f,"class","ri-list-check-2 svelte-1lkne36"),attr(l,"class","noRows svelte-1lkne36")},m(m,b){insert(m,l,b),append$2(l,f),append$2(l,p)},p(m,b){b&1&&set_data(p,m[0])},i:noop$4,o:noop$4,d(m){m&&detach(l)}}}function create_if_block_1$z(u){let l,f,p=ensure_array_like(u[7]),m=[];for(let y=0;y<p.length;y+=1)m[y]=create_each_block$k(get_each_context$k(u,p,y));const b=y=>transition_out(m[y],1,1,()=>{m[y]=null});return{c(){for(let y=0;y<m.length;y+=1)m[y].c();l=empty$1()},m(y,w){for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(y,w);insert(y,l,w),f=!0},p(y,w){if(w&8352){p=ensure_array_like(y[7]);let v;for(v=0;v<p.length;v+=1){const k=get_each_context$k(y,p,v);m[v]?(m[v].p(k,w),transition_in(m[v],1)):(m[v]=create_each_block$k(k),m[v].c(),transition_in(m[v],1),m[v].m(l.parentNode,l))}for(group_outros(),v=p.length;v<m.length;v+=1)b(v);check_outros()}},i(y){if(!f){for(let w=0;w<p.length;w+=1)transition_in(m[w]);f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)transition_out(m[w]);f=!1},d(y){y&&detach(l),destroy_each(m,y)}}}function create_if_block$1a(u){let l,f;return l=new Placeholder({}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p:noop$4,i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot_1$t(u){let l,f;const p=u[12].default,m=create_slot(p,u,u[13],null);return{c(){m&&m.c(),l=space()},m(b,y){m&&m.m(b,y),insert(b,l,y),f=!0},p(b,y){m&&m.p&&(!f||y&8192)&&update_slot_base(m,p,b,b[13],f?get_slot_changes(p,b[13],y,null):get_all_dirty_from_scope(b[13]),null)},i(b){f||(transition_in(m,b),f=!0)},o(b){transition_out(m,b),f=!1},d(b){b&&detach(l),m&&m.d(b)}}}function create_each_block$k(u){let l,f;return l=new u[9]({props:{data:{...u[15],index:u[17]},scope:u[5],$$slots:{default:[create_default_slot_1$t]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&128&&(b.data={...p[15],index:p[17]}),m&32&&(b.scope=p[5]),m&8192&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot$$(u){let l,f,p,m;const b=[create_if_block$1a,create_if_block_1$z,create_if_block_2$m],y=[];function w(v,k){return v[8].empty?0:v[7].length>0?1:v[6]&&v[0]?2:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,k){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function create_fragment$1U(u){let l,f;return l=new Container$8({props:{direction:u[1],hAlign:u[2],vAlign:u[3],gap:u[4],wrap:!0,$$slots:{default:[create_default_slot$$]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,[m]){const b={};m&2&&(b.direction=p[1]),m&4&&(b.hAlign=p[2]),m&8&&(b.vAlign=p[3]),m&16&&(b.gap=p[4]),m&8673&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function instance$1T(u,l,f){let p,m,b,{$$slots:y={},$$scope:w}=l;const{Provider:v,ContextScopes:k}=getContext$1("sdk"),S=getContext$1("component");component_subscribe(u,S,J=>f(8,b=J));let{dataProvider:B}=l,{noRowsMessage:O}=l,{direction:R}=l,{hAlign:U}=l,{vAlign:$}=l,{gap:X}=l,{scope:K=k.Local}=l;return u.$$set=J=>{"dataProvider"in J&&f(11,B=J.dataProvider),"noRowsMessage"in J&&f(0,O=J.noRowsMessage),"direction"in J&&f(1,R=J.direction),"hAlign"in J&&f(2,U=J.hAlign),"vAlign"in J&&f(3,$=J.vAlign),"gap"in J&&f(4,X=J.gap),"scope"in J&&f(5,K=J.scope),"$$scope"in J&&f(13,w=J.$$scope)},u.$$.update=()=>{u.$$.dirty&2048&&f(7,p=(B==null?void 0:B.rows)??[]),u.$$.dirty&2048&&f(6,m=(B==null?void 0:B.loaded)??!0)},[O,R,U,$,X,K,m,p,b,v,S,B,y,w]}class Repeater extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1T,create_fragment$1U,safe_not_equal,{dataProvider:11,noRowsMessage:0,direction:1,hAlign:2,vAlign:3,gap:4,scope:5})}}const nodes=[];let location$1;function checkActive(u){const l=u.pattern.test(location$1);toggleClasses(u,u.className,l),toggleClasses(u,u.inactiveClassName,!l)}function toggleClasses(u,l,f){(l||"").split(" ").forEach(p=>{p&&(u.node.classList.remove(p),f&&u.node.classList.add(p))})}loc.subscribe(u=>{location$1=u.location+(u.querystring?"?"+u.querystring:""),nodes.map(checkActive)});function active(u,l){if(l&&(typeof l=="string"||typeof l=="object"&&l instanceof RegExp)?l={path:l}:l=l||{},!l.path&&u.hasAttribute("href")&&(l.path=u.getAttribute("href"),l.path&&l.path.length>1&&l.path.charAt(0)=="#"&&(l.path=l.path.substring(1))),l.className||(l.className="active"),!l.path||typeof l.path=="string"&&(l.path.length<1||l.path.charAt(0)!="/"&&l.path.charAt(0)!="*"))throw Error('Invalid value for "path" argument');const{pattern:f}=typeof l.path=="string"?parse$5(l.path):{pattern:l.path},p={node:u,className:l.className,inactiveClassName:l.inactiveClassName,pattern:f};return nodes.push(p),checkActive(p),{destroy(){nodes.splice(nodes.indexOf(p),1)}}}const NavItem_svelte_svelte_type_style_lang="";function get_each_context$j(u,l,f){const p=u.slice();return p[23]=l[f],p}function create_else_block_1$5(u){let l=u[11],f,p,m=create_key_block$9(u);return{c(){m.c(),f=empty$1()},m(b,y){m.m(b,y),insert(b,f,y),p=!0},p(b,y){y&2048&&safe_not_equal(l,l=b[11])?(group_outros(),transition_out(m,1,1,noop$4),check_outros(),m=create_key_block$9(b),m.c(),transition_in(m,1),m.m(f.parentNode,f)):m.p(b,y)},i(b){p||(transition_in(m),p=!0)},o(b){transition_out(m),p=!1},d(b){b&&detach(f),m.d(b)}}}function create_if_block$19(u){let l,f,p,m;const b=[create_if_block_1$y,create_else_block$h],y=[];function w(v,k){return v[5]?0:1}return f=w(u),p=y[f]=b[f](u),{c(){l=element("div"),p.c(),attr(l,"class","link")},m(v,k){insert(v,l,k),y[f].m(l,null),m=!0},p(v,k){let S=f;f=w(v),f===S?y[f].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),p=y[f],p?p.p(v,k):(p=y[f]=b[f](v),p.c()),transition_in(p,1),p.m(l,null))},i(v){m||(transition_in(p),m=!0)},o(v){transition_out(p),m=!1},d(v){v&&detach(l),y[f].d()}}}function create_if_block_5$7(u){let l,f;return l=new Icon$1({props:{name:u[4],color:"var(--navTextColor)",size:"S"}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16&&(b.name=p[4]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_else_block_2$1(u){let l,f=u[23].text+"",p,m,b,y,w;return{c(){l=element("a"),p=text$1(f),m=space(),attr(l,"href",b=u[23].url),attr(l,"class","svelte-xz09vf")},m(v,k){insert(v,l,k),append$2(l,p),append$2(l,m),y||(w=listen(l,"click",u[14]),y=!0)},p(v,k){k&8&&f!==(f=v[23].text+"")&&set_data(p,f),k&8&&b!==(b=v[23].url)&&attr(l,"href",b)},d(v){v&&detach(l),y=!1,w()}}}function create_if_block_4$a(u){let l,f=u[23].text+"",p,m,b,y,w,v;return{c(){l=element("a"),p=text$1(f),m=space(),attr(l,"href",b="#"+u[23].url),attr(l,"class","sublink svelte-xz09vf"),toggle_class(l,"active",!1),toggle_class(l,"builderActive",u[10](u[23].url))},m(k,S){insert(k,l,S),append$2(l,p),append$2(l,m),w||(v=[listen(l,"click",u[14]),action_destroyer(y=active.call(null,l,u[23].url))],w=!0)},p(k,S){u=k,S&8&&f!==(f=u[23].text+"")&&set_data(p,f),S&8&&b!==(b="#"+u[23].url)&&attr(l,"href",b),y&&is_function(y.update)&&S&8&&y.update.call(null,u[23].url),S&1032&&toggle_class(l,"builderActive",u[10](u[23].url))},d(k){k&&detach(l),w=!1,run_all(v)}}}function create_each_block$j(u){let l;function f(b,y){return b[23].internalLink?create_if_block_4$a:create_else_block_2$1}let p=f(u),m=p(u);return{c(){m.c(),l=empty$1()},m(b,y){m.m(b,y),insert(b,l,y)},p(b,y){p===(p=f(b))&&m?m.p(b,y):(m.d(1),m=p(b),m&&(m.c(),m.m(l.parentNode,l)))},d(b){b&&detach(l),m.d(b)}}}function create_key_block$9(u){let l,f,p,m,b,y,w,v,k,S,B,O,R,U=u[4]&&create_if_block_5$7(u);w=new Icon$1({props:{name:u[12],color:"var(--navTextColor)",size:"S"}});let $=ensure_array_like(u[3]||[]),X=[];for(let K=0;K<$.length;K+=1)X[K]=create_each_block$j(get_each_context$j(u,$,K));return{c(){l=element("div"),f=element("div"),U&&U.c(),p=space(),m=element("span"),b=text$1(u[2]),y=space(),create_component(w.$$.fragment),v=space(),k=element("div"),S=element("div");for(let K=0;K<X.length;K+=1)X[K].c();attr(m,"class","svelte-xz09vf"),attr(f,"class","text svelte-xz09vf"),attr(S,"class","sublinks svelte-xz09vf"),attr(k,"class","sublinks-wrapper svelte-xz09vf"),attr(l,"class","dropdown svelte-xz09vf"),toggle_class(l,"left",u[8]),toggle_class(l,"expanded",u[9])},m(K,J){insert(K,l,J),append$2(l,f),U&&U.m(f,null),append$2(f,p),append$2(f,m),append$2(m,b),append$2(f,y),mount_component(w,f,null),append$2(l,v),append$2(l,k),append$2(k,S);for(let Z=0;Z<X.length;Z+=1)X[Z]&&X[Z].m(S,null);B=!0,O||(R=listen(f,"click",u[15]),O=!0)},p(K,J){K[4]?U?(U.p(K,J),J&16&&transition_in(U,1)):(U=create_if_block_5$7(K),U.c(),transition_in(U,1),U.m(f,p)):U&&(group_outros(),transition_out(U,1,1,()=>{U=null}),check_outros()),(!B||J&4)&&set_data(b,K[2]);const Z={};if(J&4096&&(Z.name=K[12]),w.$set(Z),J&17416){$=ensure_array_like(K[3]||[]);let se;for(se=0;se<$.length;se+=1){const ie=get_each_context$j(K,$,se);X[se]?X[se].p(ie,J):(X[se]=create_each_block$j(ie),X[se].c(),X[se].m(S,null))}for(;se<X.length;se+=1)X[se].d(1);X.length=$.length}(!B||J&256)&&toggle_class(l,"left",K[8]),(!B||J&512)&&toggle_class(l,"expanded",K[9])},i(K){B||(transition_in(U),transition_in(w.$$.fragment,K),B=!0)},o(K){transition_out(U),transition_out(w.$$.fragment,K),B=!1},d(K){K&&detach(l),U&&U.d(),destroy_component(w),destroy_each(X,K),O=!1,R()}}}function create_else_block$h(u){let l,f,p,m,b,y,w=u[4]&&create_if_block_3$d(u);return{c(){l=element("a"),w&&w.c(),f=space(),p=text$1(u[2]),attr(l,"href",u[1]),attr(l,"class","svelte-xz09vf")},m(v,k){insert(v,l,k),w&&w.m(l,null),append$2(l,f),append$2(l,p),m=!0,b||(y=listen(l,"click",u[14]),b=!0)},p(v,k){v[4]?w?(w.p(v,k),k&16&&transition_in(w,1)):(w=create_if_block_3$d(v),w.c(),transition_in(w,1),w.m(l,f)):w&&(group_outros(),transition_out(w,1,1,()=>{w=null}),check_outros()),(!m||k&4)&&set_data(p,v[2]),(!m||k&2)&&attr(l,"href",v[1])},i(v){m||(transition_in(w),m=!0)},o(v){transition_out(w),m=!1},d(v){v&&detach(l),w&&w.d(),b=!1,y()}}}function create_if_block_1$y(u){let l,f,p,m,b,y,w,v,k=u[4]&&create_if_block_2$l(u);return{c(){l=element("a"),k&&k.c(),f=space(),p=text$1(u[2]),attr(l,"href",m="#"+u[1]),attr(l,"style",u[6]),attr(l,"class","svelte-xz09vf"),toggle_class(l,"builderActive",u[13])},m(S,B){insert(S,l,B),k&&k.m(l,null),append$2(l,f),append$2(l,p),y=!0,w||(v=[listen(l,"click",u[14]),action_destroyer(b=active.call(null,l,u[1]))],w=!0)},p(S,B){S[4]?k?(k.p(S,B),B&16&&transition_in(k,1)):(k=create_if_block_2$l(S),k.c(),transition_in(k,1),k.m(l,f)):k&&(group_outros(),transition_out(k,1,1,()=>{k=null}),check_outros()),(!y||B&4)&&set_data(p,S[2]),(!y||B&2&&m!==(m="#"+S[1]))&&attr(l,"href",m),(!y||B&64)&&attr(l,"style",S[6]),b&&is_function(b.update)&&B&2&&b.update.call(null,S[1]),(!y||B&8192)&&toggle_class(l,"builderActive",S[13])},i(S){y||(transition_in(k),y=!0)},o(S){transition_out(k),y=!1},d(S){S&&detach(l),k&&k.d(),w=!1,run_all(v)}}}function create_if_block_3$d(u){let l,f;return l=new Icon$1({props:{name:u[4],color:"var(--navTextColor)",size:"S"}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16&&(b.name=p[4]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_if_block_2$l(u){let l,f;return l=new Icon$1({props:{name:u[4],color:"var(--navTextColor)",size:"S"}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16&&(b.name=p[4]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1T(u){let l,f,p,m;const b=[create_if_block$19,create_else_block_1$5],y=[];function w(v,k){return!v[0]||v[0]==="link"?0:1}return l=w(u),f=y[l]=b[l](u),{c(){f.c(),p=empty$1()},m(v,k){y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?y[l].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p))},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),y[l].d(v)}}}function instance$1S(u,l,f){let p,m,b,y,w,v,k,S=noop$4,B=()=>(S(),S=subscribe(pe,Te=>f(19,k=Te)),pe),O,R;component_subscribe(u,screenStore,Te=>f(20,O=Te)),component_subscribe(u,builderStore,Te=>f(21,R=Te)),u.$$.on_destroy.push(()=>S());let{type:U}=l,{url:$}=l,{text:X}=l,{subLinks:K}=l,{icon:J}=l,{internalLink:Z}=l,{customStyles:se}=l,{leftNav:ie=!1}=l,{mobile:ce=!1}=l,{navStateStore:pe}=l;B();const me=createEventDispatcher();let we;const be=()=>{me("clickLink"),f(11,we=Math.random())},de=()=>{w&&pe.update(Te=>({...Te,[X]:!Te[X]}))};return u.$$set=Te=>{"type"in Te&&f(0,U=Te.type),"url"in Te&&f(1,$=Te.url),"text"in Te&&f(2,X=Te.text),"subLinks"in Te&&f(3,K=Te.subLinks),"icon"in Te&&f(4,J=Te.icon),"internalLink"in Te&&f(5,Z=Te.internalLink),"customStyles"in Te&&f(6,se=Te.customStyles),"leftNav"in Te&&f(16,ie=Te.leftNav),"mobile"in Te&&f(17,ce=Te.mobile),"navStateStore"in Te&&B(f(7,pe=Te.navStateStore))},u.$$.update=()=>{u.$$.dirty&3145728&&f(10,p=Te=>{var Oe,$e;return R.inBuilder&&Te&&Te===(($e=(Oe=O.activeScreen)==null?void 0:Oe.routing)==null?void 0:$e.route)}),u.$$.dirty&1026&&f(13,m=p($)),u.$$.dirty&1032&&f(18,b=(K||[]).some(Te=>p(Te.url))),u.$$.dirty&786436&&f(9,y=!!k[X]||b),u.$$.dirty&196608&&f(8,w=ie||ce),u.$$.dirty&768&&f(12,v=!w||y?"caret-down":"caret-right")},[U,$,X,K,J,Z,se,pe,w,y,p,we,v,m,be,de,ie,ce,b,k,O,R]}class NavItem extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1S,create_fragment$1T,safe_not_equal,{type:0,url:1,text:2,subLinks:3,icon:4,internalLink:5,customStyles:6,leftNav:16,mobile:17,navStateStore:7})}}const UserMenu_svelte_svelte_type_style_lang="";function create_if_block$18(u){let l,f,p,m,b,y;l=new ActionMenu({props:{align:u[0]?"right":"left",$$slots:{control:[create_control_slot],default:[create_default_slot_2$i]},$$scope:{ctx:u}}});let w={$$slots:{default:[create_default_slot_1$s]},$$scope:{ctx:u}};p=new Modal({props:w}),u[19](p);let v={$$slots:{default:[create_default_slot$_]},$$scope:{ctx:u}};return b=new Modal({props:v}),u[21](b),{c(){create_component(l.$$.fragment),f=space(),create_component(p.$$.fragment),m=space(),create_component(b.$$.fragment)},m(k,S){mount_component(l,k,S),insert(k,f,S),mount_component(p,k,S),insert(k,m,S),mount_component(b,k,S),y=!0},p(k,S){const B={};S&1&&(B.align=k[0]?"right":"left"),S&16778237&&(B.$$scope={dirty:S,ctx:k}),l.$set(B);const O={};S&16777218&&(O.$$scope={dirty:S,ctx:k}),p.$set(O);const R={};S&16777220&&(R.$$scope={dirty:S,ctx:k}),b.$set(R)},i(k){y||(transition_in(l.$$.fragment,k),transition_in(p.$$.fragment,k),transition_in(b.$$.fragment,k),y=!0)},o(k){transition_out(l.$$.fragment,k),transition_out(p.$$.fragment,k),transition_out(b.$$.fragment,k),y=!1},d(k){k&&(detach(f),detach(m)),destroy_component(l,k),u[19](null),destroy_component(p,k),u[21](null),destroy_component(b,k)}}}function create_default_slot_6$5(u){let l;return{c(){l=text$1("My profile")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_if_block_2$k(u){let l,f;return l=new Item$1({props:{icon:"lock",$$slots:{default:[create_default_slot_5$7]},$$scope:{ctx:u}}}),l.$on("click",u[17]),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16777216&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot_5$7(u){let l;return{c(){l=text$1("Update password")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_default_slot_4$a(u){let l;return{c(){l=text$1("Go to portal")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_default_slot_3$e(u){let l;return{c(){l=text$1("Log out")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_default_slot_2$i(u){let l,f,p,m,b,y,w;l=new Item$1({props:{icon:"user-gear",$$slots:{default:[create_default_slot_6$5]},$$scope:{ctx:u}}}),l.$on("click",u[16]);let v=!u[8]&&create_if_block_2$k(u);return m=new Item$1({props:{icon:"squares-four",disabled:u[6],$$slots:{default:[create_default_slot_4$a]},$$scope:{ctx:u}}}),m.$on("click",u[14]),y=new Item$1({props:{icon:"sign-out",disabled:u[6],$$slots:{default:[create_default_slot_3$e]},$$scope:{ctx:u}}}),y.$on("click",u[10].actions.logOut),{c(){create_component(l.$$.fragment),f=space(),v&&v.c(),p=space(),create_component(m.$$.fragment),b=space(),create_component(y.$$.fragment)},m(k,S){mount_component(l,k,S),insert(k,f,S),v&&v.m(k,S),insert(k,p,S),mount_component(m,k,S),insert(k,b,S),mount_component(y,k,S),w=!0},p(k,S){const B={};S&16777216&&(B.$$scope={dirty:S,ctx:k}),l.$set(B),k[8]?v&&(group_outros(),transition_out(v,1,1,()=>{v=null}),check_outros()):v?(v.p(k,S),S&256&&transition_in(v,1)):(v=create_if_block_2$k(k),v.c(),transition_in(v,1),v.m(p.parentNode,p));const O={};S&64&&(O.disabled=k[6]),S&16777216&&(O.$$scope={dirty:S,ctx:k}),m.$set(O);const R={};S&64&&(R.disabled=k[6]),S&16777216&&(R.$$scope={dirty:S,ctx:k}),y.$set(R)},i(k){w||(transition_in(l.$$.fragment,k),transition_in(v),transition_in(m.$$.fragment,k),transition_in(y.$$.fragment,k),w=!0)},o(k){transition_out(l.$$.fragment,k),transition_out(v),transition_out(m.$$.fragment,k),transition_out(y.$$.fragment,k),w=!1},d(k){k&&(detach(f),detach(p),detach(b)),destroy_component(l,k),v&&v.d(k),destroy_component(m,k),destroy_component(y,k)}}}function create_if_block_1$x(u){let l,f,p;return{c(){l=element("div"),f=element("div"),p=text$1(u[9]),attr(f,"class","name svelte-1f32c0v"),attr(l,"class","text svelte-1f32c0v")},m(m,b){insert(m,l,b),append$2(l,f),append$2(f,p)},p(m,b){b&512&&set_data(p,m[9])},d(m){m&&detach(l)}}}function create_control_slot(u){let l,f,p,m,b,y;f=new UserAvatar({props:{user:u[5],size:"M",showTooltip:!1}});let w=!u[0]&&create_if_block_1$x(u);return b=new Icon$1({props:{size:"S",name:"caret-down",color:"var(--navTextColor)"}}),{c(){l=element("div"),create_component(f.$$.fragment),p=space(),w&&w.c(),m=space(),create_component(b.$$.fragment),attr(l,"class","container svelte-1f32c0v")},m(v,k){insert(v,l,k),mount_component(f,l,null),append$2(l,p),w&&w.m(l,null),append$2(l,m),mount_component(b,l,null),y=!0},p(v,k){const S={};k&32&&(S.user=v[5]),f.$set(S),v[0]?w&&(w.d(1),w=null):w?w.p(v,k):(w=create_if_block_1$x(v),w.c(),w.m(l,m))},i(v){y||(transition_in(f.$$.fragment,v),transition_in(b.$$.fragment,v),y=!0)},o(v){transition_out(f.$$.fragment,v),transition_out(b.$$.fragment,v),y=!1},d(v){v&&detach(l),destroy_component(f),w&&w.d(),destroy_component(b)}}}function create_default_slot_1$s(u){let l,f;return l=new ProfileModal({props:{API:API$1,user:u[1],notifySuccess:u[12].actions.success,notifyError:u[12].actions.error}}),l.$on("save",u[18]),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&2&&(b.user=p[1]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot$_(u){let l,f;return l=new ChangePasswordModal({props:{API:API$1,passwordMinLength:u[2].passwordMinLength,notifySuccess:u[12].actions.success,notifyError:u[12].actions.error}}),l.$on("save",u[20]),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&4&&(b.passwordMinLength=p[2].passwordMinLength),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1S(u){let l,f,p=u[1]&&create_if_block$18(u);return{c(){p&&p.c(),l=empty$1()},m(m,b){p&&p.m(m,b),insert(m,l,b),f=!0},p(m,[b]){m[1]?p?(p.p(m,b),b&2&&transition_in(p,1)):(p=create_if_block$18(m),p.c(),transition_in(p,1),p.m(l.parentNode,l)):p&&(group_outros(),transition_out(p,1,1,()=>{p=null}),check_outros())},i(m){f||(transition_in(p),f=!0)},o(m){transition_out(p),f=!1},d(m){m&&detach(l),p&&p.d(m)}}}function instance$1R(u,l,f){let p,m,b,y,w,v,k,S,B,{compact:O=!1}=l;const{authStore:R,environmentStore:U,notificationStore:$,appStore:X}=getContext$1("sdk");component_subscribe(u,R,de=>f(1,k=de)),component_subscribe(u,U,de=>f(2,B=de)),component_subscribe(u,X,de=>f(15,S=de));let K,J;const Z=de=>{if(!de)return"";if(de.firstName){let Te=de.firstName;return de.lastName&&(Te+=` ${de.lastName}`),Te}else return de.email},se=()=>{window.location.href=m?"/builder/portal/workspaces":"/builder/apps"},ie=()=>K==null?void 0:K.show(),ce=()=>{y?window.location.href=`${B.accountPortalUrl}/portal/account`:J==null||J.show()},pe=()=>R.actions.fetchUser();function me(de){binding_callbacks[de?"unshift":"push"](()=>{K=de,f(3,K)})}const we=()=>R.actions.logOut();function be(de){binding_callbacks[de?"unshift":"push"](()=>{J=de,f(4,J)})}return u.$$set=de=>{"compact"in de&&f(0,O=de.compact)},u.$$.update=()=>{u.$$.dirty&2&&f(9,p=Z(k)),u.$$.dirty&2&&(m=hasBuilderPermissions(k)),u.$$.dirty&2&&f(8,b=k!=null&&isSSOUser(k)),u.$$.dirty&6&&f(7,y=(k==null?void 0:k.accountPortalAccess)&&B.cloud),u.$$.dirty&32768&&f(6,w=S.embedded||S.inIframe),u.$$.dirty&2&&f(5,v=k)},[O,k,B,K,J,v,w,y,b,p,R,U,$,X,se,S,ie,ce,pe,me,we,be]}class UserMenu extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1R,create_fragment$1S,safe_not_equal,{compact:0})}}const Logo_svelte_svelte_type_style_lang="";function create_if_block$17(u){let l,f;function p(y,w){return w&38&&(l=null),l==null&&(l=!!(y[1]&&y[5](y[1])&&!y[2])),l?create_if_block_1$w:y[1]?create_if_block_2$j:create_else_block$g}let m=p(u,-1),b=m(u);return{c(){b.c(),f=empty$1()},m(y,w){b.m(y,w),insert(y,f,w)},p(y,w){m===(m=p(y,w))&&b?b.p(y,w):(b.d(1),b=m(y),b&&(b.c(),b.m(f.parentNode,f)))},d(y){y&&detach(f),b.d(y)}}}function create_else_block$g(u){let l,f;return{c(){l=element("img"),src_url_equal(l.src,f=u[0]||"/builder/bblogo.png")||attr(l,"src",f),attr(l,"alt",u[4]),attr(l,"class","svelte-17w40j6")},m(p,m){insert(p,l,m)},p(p,m){m&1&&!src_url_equal(l.src,f=p[0]||"/builder/bblogo.png")&&attr(l,"src",f),m&16&&attr(l,"alt",p[4])},d(p){p&&detach(l)}}}function create_if_block_2$j(u){let l,f,p,m,b;return{c(){l=element("a"),f=element("img"),src_url_equal(f.src,p=u[0]||"/builder/bblogo.png")||attr(f,"src",p),attr(f,"alt",u[4]),attr(f,"class","svelte-17w40j6"),attr(l,"target",m=u[2]?"_blank":"_self"),attr(l,"href",b=u[6](u[1],u[2]))},m(y,w){insert(y,l,w),append$2(l,f)},p(y,w){w&1&&!src_url_equal(f.src,p=y[0]||"/builder/bblogo.png")&&attr(f,"src",p),w&16&&attr(f,"alt",y[4]),w&4&&m!==(m=y[2]?"_blank":"_self")&&attr(l,"target",m),w&70&&b!==(b=y[6](y[1],y[2]))&&attr(l,"href",b)},d(y){y&&detach(l)}}}function create_if_block_1$w(u){let l,f,p,m,b,y;return{c(){l=element("a"),f=element("img"),src_url_equal(f.src,p=u[0]||"/builder/bblogo.png")||attr(f,"src",p),attr(f,"alt",u[4]),attr(f,"class","svelte-17w40j6"),attr(l,"href",m=u[6](u[1],u[2]))},m(w,v){insert(w,l,v),append$2(l,f),b||(y=action_destroyer(u[7].call(null,l)),b=!0)},p(w,v){v&1&&!src_url_equal(f.src,p=w[0]||"/builder/bblogo.png")&&attr(f,"src",p),v&16&&attr(f,"alt",w[4]),v&70&&m!==(m=w[6](w[1],w[2]))&&attr(l,"href",m)},d(w){w&&detach(l),b=!1,y()}}}function create_fragment$1R(u){let l,f=!u[3]&&create_if_block$17(u);return{c(){f&&f.c(),l=empty$1()},m(p,m){f&&f.m(p,m),insert(p,l,m)},p(p,[m]){p[3]?f&&(f.d(1),f=null):f?f.p(p,m):(f=create_if_block$17(p),f.c(),f.m(l.parentNode,l))},i:noop$4,o:noop$4,d(p){p&&detach(l),f&&f.d(p)}}}function instance$1Q(u,l,f){let{logoUrl:p}=l,{logoLinkUrl:m}=l,{openLogoLinkInNewTab:b}=l,{hideLogo:y=!1}=l,{title:w}=l,{isInternal:v}=l,{getSanitizedUrl:k}=l,{linkable:S}=l;return u.$$set=B=>{"logoUrl"in B&&f(0,p=B.logoUrl),"logoLinkUrl"in B&&f(1,m=B.logoLinkUrl),"openLogoLinkInNewTab"in B&&f(2,b=B.openLogoLinkInNewTab),"hideLogo"in B&&f(3,y=B.hideLogo),"title"in B&&f(4,w=B.title),"isInternal"in B&&f(5,v=B.isInternal),"getSanitizedUrl"in B&&f(6,k=B.getSanitizedUrl),"linkable"in B&&f(7,S=B.linkable)},[p,m,b,y,w,v,k,S]}class Logo extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1Q,create_fragment$1R,safe_not_equal,{logoUrl:0,logoLinkUrl:1,openLogoLinkInNewTab:2,hideLogo:3,title:4,isInternal:5,getSanitizedUrl:6,linkable:7})}}const getActiveConditions=u=>u!=null&&u.length?u.filter(l=>{l.valueType==="number"?(l.referenceValue=parseFloat(l.referenceValue),l.newValue=parseFloat(l.newValue)):l.valueType==="datetime"?(l.referenceValue&&(l.referenceValue=new Date(l.referenceValue).toISOString()),l.newValue&&(l.newValue=new Date(l.newValue).toISOString())):l.valueType==="boolean"&&(l.referenceValue=`${l.referenceValue}`.toLowerCase()==="true",l.newValue=`${l.newValue}`.toLowerCase()==="true");const f={...l,type:l.valueType,field:"newValue",value:l.referenceValue};let p=buildQuery$1([f]);return p.onEmptyFilter=EmptyFilterOption.RETURN_NONE,runQuery$1([f],p).length>0}):[],reduceConditionActions=u=>{let l={},f=null;return u==null||u.forEach(p=>{p.action==="show"?f=!0:p.action==="hide"?f=!1:p.setting&&(l[p.setting]=p.settingValue)}),{settingUpdates:l,visible:f}},Layout_svelte_svelte_type_style_lang="";function get_each_context$i(u,l,f){const p=u.slice();return p[63]=l[f],p}function create_if_block$16(u){let l,f,p,m,b,y,w,v,k,S,B,O,R,U,$,X,K,J,Z=u[24].length&&create_if_block_8$2(u),se=u[10]==="top"&&create_if_block_7$4(u),ie=!u[1]&&u[0]&&create_if_block_6$4(u),ce=!u[9]&&create_if_block_5$6(),pe=u[24].length&&create_if_block_3$c(u),me=!u[9]&&create_if_block_1$v(u);return{c(){var we;l=element("div"),f=element("div"),p=element("div"),m=element("div"),Z&&Z.c(),b=space(),y=element("div"),se&&se.c(),w=space(),ie&&ie.c(),v=space(),ce&&ce.c(),k=space(),S=element("div"),B=space(),pe&&pe.c(),O=space(),me&&me.c(),attr(y,"class","logo svelte-1r1yuqu"),attr(m,"class","nav-header svelte-1r1yuqu"),attr(S,"class","mobile-click-handler svelte-1r1yuqu"),toggle_class(S,"visible",u[16]),attr(p,"class",R="nav nav--"+u[23]+" size--"+u[22]+" svelte-1r1yuqu"),attr(f,"class",U="nav-wrapper "+u[17]+"-dom svelte-1r1yuqu"),attr(f,"style",u[20]),toggle_class(f,"sticky",u[5]),toggle_class(f,"hidden",(we=u[25].queryParams)==null?void 0:we.peek),toggle_class(f,"clickable",u[14].inBuilder),attr(l,"class",$="interactive component "+u[17]+" svelte-1r1yuqu"),attr(l,"data-id",u[17]),attr(l,"data-name","Navigation"),attr(l,"data-icon","eye")},m(we,be){insert(we,l,be),append$2(l,f),append$2(f,p),append$2(p,m),Z&&Z.m(m,null),append$2(m,b),append$2(m,y),se&&se.m(y,null),append$2(y,w),ie&&ie.m(y,null),append$2(m,v),ce&&ce.m(m,null),append$2(p,k),append$2(p,S),append$2(p,B),pe&&pe.m(p,null),append$2(p,O),me&&me.m(p,null),X=!0,K||(J=[listen(S,"click",u[49]),listen(f,"click",function(){is_function(u[14].inBuilder?u[29].actions.selectComponent(u[17]):null)&&(u[14].inBuilder?u[29].actions.selectComponent(u[17]):null).apply(this,arguments)})],K=!0)},p(we,be){var de;u=we,u[24].length?Z?(Z.p(u,be),be[0]&16777216&&transition_in(Z,1)):(Z=create_if_block_8$2(u),Z.c(),transition_in(Z,1),Z.m(m,b)):Z&&(group_outros(),transition_out(Z,1,1,()=>{Z=null}),check_outros()),u[10]==="top"?se?(se.p(u,be),be[0]&1024&&transition_in(se,1)):(se=create_if_block_7$4(u),se.c(),transition_in(se,1),se.m(y,w)):se&&(group_outros(),transition_out(se,1,1,()=>{se=null}),check_outros()),!u[1]&&u[0]?ie?(ie.p(u,be),be[0]&3&&transition_in(ie,1)):(ie=create_if_block_6$4(u),ie.c(),transition_in(ie,1),ie.m(y,null)):ie&&(group_outros(),transition_out(ie,1,1,()=>{ie=null}),check_outros()),u[9]?ce&&(group_outros(),transition_out(ce,1,1,()=>{ce=null}),check_outros()):ce?be[0]&512&&transition_in(ce,1):(ce=create_if_block_5$6(),ce.c(),transition_in(ce,1),ce.m(m,null)),(!X||be[0]&65536)&&toggle_class(S,"visible",u[16]),u[24].length?pe?(pe.p(u,be),be[0]&16777216&&transition_in(pe,1)):(pe=create_if_block_3$c(u),pe.c(),transition_in(pe,1),pe.m(p,O)):pe&&(group_outros(),transition_out(pe,1,1,()=>{pe=null}),check_outros()),u[9]?me&&(group_outros(),transition_out(me,1,1,()=>{me=null}),check_outros()):me?(me.p(u,be),be[0]&512&&transition_in(me,1)):(me=create_if_block_1$v(u),me.c(),transition_in(me,1),me.m(p,null)),(!X||be[0]&12582912&&R!==(R="nav nav--"+u[23]+" size--"+u[22]+" svelte-1r1yuqu"))&&attr(p,"class",R),(!X||be[0]&131072&&U!==(U="nav-wrapper "+u[17]+"-dom svelte-1r1yuqu"))&&attr(f,"class",U),(!X||be[0]&1048576)&&attr(f,"style",u[20]),(!X||be[0]&131104)&&toggle_class(f,"sticky",u[5]),(!X||be[0]&33685504)&&toggle_class(f,"hidden",(de=u[25].queryParams)==null?void 0:de.peek),(!X||be[0]&147456)&&toggle_class(f,"clickable",u[14].inBuilder),(!X||be[0]&131072&&$!==($="interactive component "+u[17]+" svelte-1r1yuqu"))&&attr(l,"class",$),(!X||be[0]&131072)&&attr(l,"data-id",u[17])},i(we){X||(transition_in(Z),transition_in(se),transition_in(ie),transition_in(ce),transition_in(pe),transition_in(me),X=!0)},o(we){transition_out(Z),transition_out(se),transition_out(ie),transition_out(ce),transition_out(pe),transition_out(me),X=!1},d(we){we&&detach(l),Z&&Z.d(),se&&se.d(),ie&&ie.d(),ce&&ce.d(),pe&&pe.d(),me&&me.d(),K=!1,run_all(J)}}}function create_if_block_8$2(u){let l,f,p;return f=new Icon$1({props:{hoverable:!0,name:"list",color:"var(--navTextColor)"}}),f.$on("click",u[48]),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","burger svelte-1r1yuqu")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p:noop$4,i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_if_block_7$4(u){let l,f;return l=new Logo({props:{logoUrl:u[2],logoLinkUrl:u[6],openLogoLinkInNewTab:u[7],hideLogo:u[3],title:u[0],linkable:u[28],isInternal:u[34],getSanitizedUrl:u[35]}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m[0]&4&&(b.logoUrl=p[2]),m[0]&64&&(b.logoLinkUrl=p[6]),m[0]&128&&(b.openLogoLinkInNewTab=p[7]),m[0]&8&&(b.hideLogo=p[3]),m[0]&1&&(b.title=p[0]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_if_block_6$4(u){let l,f;return l=new Heading$1({props:{size:u[11],textAlign:u[8],color:u[12],$$slots:{default:[create_default_slot$Z]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m[0]&2048&&(b.size=p[11]),m[0]&256&&(b.textAlign=p[8]),m[0]&4096&&(b.color=p[12]),m[0]&1|m[1]&1048576&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot$Z(u){let l;return{c(){l=text$1(u[0])},m(f,p){insert(f,l,p)},p(f,p){p[0]&1&&set_data(l,f[0])},d(f){f&&detach(l)}}}function create_if_block_5$6(u){let l,f,p;return f=new UserMenu({props:{compact:!0}}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","user top svelte-1r1yuqu")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_if_block_3$c(u){let l,f,p=ensure_array_like(u[24]),m=[];for(let y=0;y<p.length;y+=1)m[y]=create_each_block$i(get_each_context$i(u,p,y));const b=y=>transition_out(m[y],1,1,()=>{m[y]=null});return{c(){l=element("div");for(let y=0;y<m.length;y+=1)m[y].c();attr(l,"class","links svelte-1r1yuqu"),toggle_class(l,"visible",u[16])},m(y,w){insert(y,l,w);for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(l,null);f=!0},p(y,w){if(w[0]&16785424|w[1]&38){p=ensure_array_like(y[24]);let v;for(v=0;v<p.length;v+=1){const k=get_each_context$i(y,p,v);m[v]?(m[v].p(k,w),transition_in(m[v],1)):(m[v]=create_each_block$i(k),m[v].c(),transition_in(m[v],1),m[v].m(l,null))}for(group_outros(),v=p.length;v<m.length;v+=1)b(v);check_outros()}(!f||w[0]&65536)&&toggle_class(l,"visible",y[16])},i(y){if(!f){for(let w=0;w<p.length;w+=1)transition_in(m[w]);f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)transition_out(m[w]);f=!1},d(y){y&&detach(l),destroy_each(m,y)}}}function create_if_block_4$9(u){var p;let l,f;return l=new NavItem({props:{type:u[63].type,text:u[63].text,url:u[63].url,subLinks:u[63].subLinks,icon:u[63].icon,internalLink:u[63].internalLink,customStyles:(p=u[63]._styles)==null?void 0:p.custom,leftNav:u[4]==="Left",mobile:u[13],navStateStore:u[32]}}),l.$on("clickLink",u[36]),{c(){create_component(l.$$.fragment)},m(m,b){mount_component(l,m,b),f=!0},p(m,b){var w;const y={};b[0]&16777216&&(y.type=m[63].type),b[0]&16777216&&(y.text=m[63].text),b[0]&16777216&&(y.url=m[63].url),b[0]&16777216&&(y.subLinks=m[63].subLinks),b[0]&16777216&&(y.icon=m[63].icon),b[0]&16777216&&(y.internalLink=m[63].internalLink),b[0]&16777216&&(y.customStyles=(w=m[63]._styles)==null?void 0:w.custom),b[0]&16&&(y.leftNav=m[4]==="Left"),b[0]&8192&&(y.mobile=m[13]),l.$set(y)},i(m){f||(transition_in(l.$$.fragment,m),f=!0)},o(m){transition_out(l.$$.fragment,m),f=!1},d(m){destroy_component(l,m)}}}function create_each_block$i(u){let l=u[33](u[63]._conditions),f,p,m=l&&create_if_block_4$9(u);return{c(){m&&m.c(),f=empty$1()},m(b,y){m&&m.m(b,y),insert(b,f,y),p=!0},p(b,y){y[0]&16777216&&(l=b[33](b[63]._conditions)),l?m?(m.p(b,y),y[0]&16777216&&transition_in(m,1)):(m=create_if_block_4$9(b),m.c(),transition_in(m,1),m.m(f.parentNode,f)):m&&(group_outros(),transition_out(m,1,1,()=>{m=null}),check_outros())},i(b){p||(transition_in(m),p=!0)},o(b){transition_out(m),p=!1},d(b){b&&detach(f),m&&m.d(b)}}}function create_if_block_1$v(u){let l,f,p,m;f=new UserMenu({});let b=u[10]==="bottom"&&create_if_block_2$i(u);return{c(){l=element("div"),create_component(f.$$.fragment),p=space(),b&&b.c(),attr(l,"class","user left svelte-1r1yuqu")},m(y,w){insert(y,l,w),mount_component(f,l,null),append$2(l,p),b&&b.m(l,null),m=!0},p(y,w){y[10]==="bottom"?b?(b.p(y,w),w[0]&1024&&transition_in(b,1)):(b=create_if_block_2$i(y),b.c(),transition_in(b,1),b.m(l,null)):b&&(group_outros(),transition_out(b,1,1,()=>{b=null}),check_outros())},i(y){m||(transition_in(f.$$.fragment,y),transition_in(b),m=!0)},o(y){transition_out(f.$$.fragment,y),transition_out(b),m=!1},d(y){y&&detach(l),destroy_component(f),b&&b.d()}}}function create_if_block_2$i(u){let l,f,p;return f=new Logo({props:{logoUrl:u[2],logoLinkUrl:u[6],openLogoLinkInNewTab:u[7],hideLogo:u[3],title:u[0],linkable:u[28],isInternal:u[34],getSanitizedUrl:u[35]}}),{c(){l=element("div"),create_component(f.$$.fragment)},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p(m,b){const y={};b[0]&4&&(y.logoUrl=m[2]),b[0]&64&&(y.logoLinkUrl=m[6]),b[0]&128&&(y.openLogoLinkInNewTab=m[7]),b[0]&8&&(y.hideLogo=m[3]),b[0]&1&&(y.title=m[0]),f.$set(y)},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_fragment$1Q(u){let l,f,p,m,b,y,w,v,k,S,B,O,R,U,$,X,K,J=u[23]!=="none"&&create_if_block$16(u);const Z=u[47].default,se=create_slot(Z,u,u[51],null);return S=new Icon$1({props:{color:"var(--spectrum-global-color-gray-600)",name:"sidebar",hoverable:!0}}),S.$on("click",u[30].actions.close),{c(){l=element("div"),f=element("div"),J&&J.c(),p=space(),m=element("div"),b=element("div"),se&&se.c(),w=space(),v=element("div"),k=element("div"),create_component(S.$$.fragment),O=space(),R=element("div"),attr(b,"class",y="main size--"+u[21]+" svelte-1r1yuqu"),attr(m,"class","main-wrapper svelte-1r1yuqu"),attr(f,"class","screen-wrapper layout-body svelte-1r1yuqu"),attr(k,"class","side-panel-header svelte-1r1yuqu"),attr(v,"id","side-panel-container"),attr(v,"class","svelte-1r1yuqu"),toggle_class(v,"open",u[15].open),toggle_class(v,"builder",u[14].inBuilder),attr(R,"class","modal-container"),attr(l,"class",U="component layout layout--"+u[23]+" svelte-1r1yuqu"),attr(l,"data-id",u[18]),attr(l,"data-name","Screen"),attr(l,"data-icon","browser"),toggle_class(l,"desktop",!u[13]),toggle_class(l,"mobile",!!u[13])},m(ie,ce){insert(ie,l,ce),append$2(l,f),J&&J.m(f,null),append$2(f,p),append$2(f,m),append$2(m,b),se&&se.m(b,null),append$2(l,w),append$2(l,v),append$2(v,k),mount_component(S,k,null),append$2(l,O),append$2(l,R),$=!0,X||(K=[listen(m,"click",u[50]),action_destroyer(B=clickOutside.call(null,v,u[19]?u[30].actions.close:null))],X=!0)},p(ie,ce){ie[23]!=="none"?J?(J.p(ie,ce),ce[0]&8388608&&transition_in(J,1)):(J=create_if_block$16(ie),J.c(),transition_in(J,1),J.m(f,p)):J&&(group_outros(),transition_out(J,1,1,()=>{J=null}),check_outros()),se&&se.p&&(!$||ce[1]&1048576)&&update_slot_base(se,Z,ie,ie[51],$?get_slot_changes(Z,ie[51],ce,null):get_all_dirty_from_scope(ie[51]),null),(!$||ce[0]&2097152&&y!==(y="main size--"+ie[21]+" svelte-1r1yuqu"))&&attr(b,"class",y),B&&is_function(B.update)&&ce[0]&524288&&B.update.call(null,ie[19]?ie[30].actions.close:null),(!$||ce[0]&32768)&&toggle_class(v,"open",ie[15].open),(!$||ce[0]&16384)&&toggle_class(v,"builder",ie[14].inBuilder),(!$||ce[0]&8388608&&U!==(U="component layout layout--"+ie[23]+" svelte-1r1yuqu"))&&attr(l,"class",U),(!$||ce[0]&262144)&&attr(l,"data-id",ie[18]),(!$||ce[0]&8396800)&&toggle_class(l,"desktop",!ie[13]),(!$||ce[0]&8396800)&&toggle_class(l,"mobile",!!ie[13])},i(ie){$||(transition_in(J),transition_in(se,ie),transition_in(S.$$.fragment,ie),$=!0)},o(ie){transition_out(J),transition_out(se,ie),transition_out(S.$$.fragment,ie),$=!1},d(ie){ie&&detach(l),J&&J.d(),se&&se.d(ie),destroy_component(S),X=!1,run_all(K)}}}function instance$1P(u,l,f){let p,m,b,y,w,v,k,S,B,O,R,U,$,X,K,{$$slots:J={},$$scope:Z}=l;const se=getContext$1("sdk"),{routeStore:ie,roleStore:ce,linkable:pe,builderStore:me,sidePanelStore:we,modalStore:be}=se;component_subscribe(u,ie,Ht=>f(25,K=Ht)),component_subscribe(u,ce,Ht=>f(46,X=Ht)),component_subscribe(u,me,Ht=>f(14,R=Ht)),component_subscribe(u,we,Ht=>f(15,U=Ht));const de=getContext$1("context");component_subscribe(u,de,Ht=>f(45,$=Ht));const Te=writable({});let{title:Oe}=l,{hideTitle:$e=!1}=l,{logoUrl:he}=l,{hideLogo:Fe=!1}=l,{navigation:Re="Top"}=l,{sticky:Ge=!1}=l,{links:Ze}=l,{width:at="Large"}=l,{navBackground:Pt}=l,{navTextColor:_t}=l,{navWidth:He}=l,{pageWidth:gt}=l,{logoLinkUrl:Tt}=l,{logoHeight:ht}=l,{openLogoLinkInNewTab:bt}=l,{textAlign:ct}=l,{embedded:lt=!1}=l;const Et={Top:"top",Left:"left",None:"none"},ft={Max:"max",Large:"l",Medium:"m",Small:"s","Extra small":"xs"};let{logoPosition:It="top"}=l,{titleSize:zt="S"}=l,{titleColor:In}=l,_n=!1;const pn=writable({headerHeight:0});setContext("layout",pn);const fn=Ht=>{const Ot=kn(Ht.url);return{...Ht,internalLink:Ot,url:Ot?Ht.url:Hn(Ht.url)}},Bn=(Ht,Ot)=>Ht!=null&&Ht.length?Ht.filter(On=>{if(!On.text||On.type!=="sublinks"&&!On.url)return!1;const rn=On.roleId||Roles.BASIC;return Ot==null?void 0:Ot.find(Vt=>Vt===rn)}).map(On=>{var Vt;const rn=fn(On);return On.type==="sublinks"&&((Vt=On.subLinks)!=null&&Vt.length)&&(rn.subLinks=On.subLinks.filter(Nn=>Nn.text&&Nn.url).map(fn)),rn}):[];function Wt(Ht=[]){if(!(Ht!=null&&Ht.length))return!0;const Ot=getActiveConditions(Ht),{visible:On}=reduceConditionActions(Ot);return On??!Ht.some(Vt=>Vt.action==="show")}const kn=Ht=>Ht==null?void 0:Ht.startsWith("/"),Hn=Ht=>Ht!=null&&Ht.length?Ht.startsWith("http")?Ht:`http://${Ht}`:Ht,an=(Ht,Ot)=>Ht!=="Left"?0:Ot?"0px":"250px",ir=(Ht,Ot)=>Ot?!Ht||Ht==="None"?0:"61px":Ht==="Top"?"137px":"0px",un=(Ht,Ot,On,rn,Vt)=>{let Nn=`--width:${rn}px; --height:${Vt}px;`;return Ht&&(Nn+=`--navBackground:${Ht};`),Ot&&(Nn+=`--navTextColor:${Ot};`),Nn+=`--logoHeight:${On||24}px;`,Nn},mn=(Ht,Ot)=>kn(Ht)?Ot?`#${Ht}`:Ht:Hn(Ht),Rt=()=>{f(16,_n=!1),we.actions.close(),be.actions.close()},ot=()=>f(16,_n=!_n),mt=()=>f(16,_n=!1),en=()=>{R.inBuilder&&me.actions.selectComponent(S)};return u.$$set=Ht=>{"title"in Ht&&f(0,Oe=Ht.title),"hideTitle"in Ht&&f(1,$e=Ht.hideTitle),"logoUrl"in Ht&&f(2,he=Ht.logoUrl),"hideLogo"in Ht&&f(3,Fe=Ht.hideLogo),"navigation"in Ht&&f(4,Re=Ht.navigation),"sticky"in Ht&&f(5,Ge=Ht.sticky),"links"in Ht&&f(37,Ze=Ht.links),"width"in Ht&&f(38,at=Ht.width),"navBackground"in Ht&&f(39,Pt=Ht.navBackground),"navTextColor"in Ht&&f(40,_t=Ht.navTextColor),"navWidth"in Ht&&f(41,He=Ht.navWidth),"pageWidth"in Ht&&f(42,gt=Ht.pageWidth),"logoLinkUrl"in Ht&&f(6,Tt=Ht.logoLinkUrl),"logoHeight"in Ht&&f(43,ht=Ht.logoHeight),"openLogoLinkInNewTab"in Ht&&f(7,bt=Ht.openLogoLinkInNewTab),"textAlign"in Ht&&f(8,ct=Ht.textAlign),"embedded"in Ht&&f(9,lt=Ht.embedded),"logoPosition"in Ht&&f(10,It=Ht.logoPosition),"titleSize"in Ht&&f(11,zt=Ht.titleSize),"titleColor"in Ht&&f(12,In=Ht.titleColor),"$$scope"in Ht&&f(51,Z=Ht.$$scope)},u.$$.update=()=>{var Ht,Ot,On,rn;if(u.$$.dirty[1]&16384&&f(13,p=$.device.mobile),u.$$.dirty[0]&8208&&pn.set({screenXOffset:an(Re,p),screenYOffset:ir(Re,p)}),u.$$.dirty[1]&32832&&f(24,m=Bn(Ze,X)),u.$$.dirty[0]&16&&f(23,b=Et[Re]||Et.None),u.$$.dirty[1]&1152&&f(22,y=ft[He||at]||ft.Large),u.$$.dirty[1]&2176&&f(21,w=ft[gt||at]||ft.Large),u.$$.dirty[1]&21248&&f(20,v=un(Pt,_t,ht,$.device.width,$.device.height)),u.$$.dirty[0]&49152&&f(19,k=!R.inBuilder&&U.open&&!U.ignoreClicksOutside),u.$$.dirty[0]&16384&&f(18,S=R.inBuilder?`${(Ht=R.screen)==null?void 0:Ht._id}-screen`:"screen"),u.$$.dirty[0]&16384&&f(17,B=R.inBuilder?`${(Ot=R.screen)==null?void 0:Ot._id}-navigation`:"navigation"),u.$$.dirty[0]&16384&&f(44,O=R.inBuilder&&((On=R.selectedComponentId)==null?void 0:On.endsWith("-navigation"))),u.$$.dirty[1]&8192&&O){const Vt=(rn=document.getElementsByClassName("nav-wrapper"))==null?void 0:rn[0];Vt&&(Vt.style.scrollMargin="100px",Vt.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}},[Oe,$e,he,Fe,Re,Ge,Tt,bt,ct,lt,It,zt,In,p,R,U,_n,B,S,k,v,w,y,b,m,K,ie,ce,pe,me,we,de,Te,Wt,kn,mn,Rt,Ze,at,Pt,_t,He,gt,ht,O,$,X,J,ot,mt,en,Z]}class Layout extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1P,create_fragment$1Q,safe_not_equal,{title:0,hideTitle:1,logoUrl:2,hideLogo:3,navigation:4,sticky:5,links:37,width:38,navBackground:39,navTextColor:40,navWidth:41,pageWidth:42,logoLinkUrl:6,logoHeight:43,openLogoLinkInNewTab:7,textAlign:8,embedded:9,logoPosition:10,titleSize:11,titleColor:12},null,[-1,-1,-1])}}const Link_svelte_svelte_type_style_lang="";function create_if_block_1$u(u){let l;function f(b,y){return b[7]||b[0]?create_if_block_2$h:create_else_block$f}let p=f(u),m=p(u);return{c(){m.c(),l=empty$1()},m(b,y){m.m(b,y),insert(b,l,y)},p(b,y){p===(p=f(b))&&m?m.p(b,y):(m.d(1),m=p(b),m&&(m.c(),m.m(l.parentNode,l)))},d(b){b&&detach(l),m.d(b)}}}function create_if_block$15(u){let l,f,p,m,b,y;return{c(){l=element("div"),f=text$1(u[13]),attr(l,"contenteditable",""),attr(l,"class",p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23"),toggle_class(l,"bold",u[2]),toggle_class(l,"italic",u[3]),toggle_class(l,"underline",u[4])},m(w,v){insert(w,l,v),append$2(l,f),u[25](l),b||(y=[action_destroyer(m=u[17].call(null,l,u[11])),listen(l,"blur",function(){is_function(u[8].editing?u[21]:null)&&(u[8].editing?u[21]:null).apply(this,arguments)}),listen(l,"input",u[26])],b=!0)},p(w,v){u=w,v[0]&8192&&set_data_contenteditable(f,u[13]),v[0]&34&&p!==(p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23")&&attr(l,"class",p),m&&is_function(m.update)&&v[0]&2048&&m.update.call(null,u[11]),v[0]&38&&toggle_class(l,"bold",u[2]),v[0]&42&&toggle_class(l,"italic",u[3]),v[0]&50&&toggle_class(l,"underline",u[4])},d(w){w&&detach(l),u[25](null),b=!1,run_all(y)}}}function create_else_block$f(u){let l=u[12],f,p=create_key_block$8(u);return{c(){p.c(),f=empty$1()},m(m,b){p.m(m,b),insert(m,f,b)},p(m,b){b[0]&4096&&safe_not_equal(l,l=m[12])?(p.d(1),p=create_key_block$8(m),p.c(),p.m(f.parentNode,f)):p.p(m,b)},d(m){m&&detach(f),p.d(m)}}}function create_if_block_2$h(u){let l,f,p,m,b,y;return{c(){l=element("a"),f=text$1(u[13]),attr(l,"target",u[15]),attr(l,"href",u[12]),attr(l,"class",p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23"),toggle_class(l,"placeholder",u[14]),toggle_class(l,"bold",u[2]),toggle_class(l,"italic",u[3]),toggle_class(l,"underline",u[4])},m(w,v){insert(w,l,v),append$2(l,f),b||(y=action_destroyer(m=u[17].call(null,l,u[11])),b=!0)},p(w,v){v[0]&8192&&set_data(f,w[13]),v[0]&32768&&attr(l,"target",w[15]),v[0]&4096&&attr(l,"href",w[12]),v[0]&34&&p!==(p="align--"+(w[1]||"left")+" size--"+(w[5]||"M")+" svelte-1dqdd23")&&attr(l,"class",p),m&&is_function(m.update)&&v[0]&2048&&m.update.call(null,w[11]),v[0]&16418&&toggle_class(l,"placeholder",w[14]),v[0]&38&&toggle_class(l,"bold",w[2]),v[0]&42&&toggle_class(l,"italic",w[3]),v[0]&50&&toggle_class(l,"underline",w[4])},d(w){w&&detach(l),b=!1,y()}}}function create_key_block$8(u){let l,f,p,m,b,y;return{c(){l=element("a"),f=text$1(u[13]),attr(l,"href",u[12]),attr(l,"class",p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23"),toggle_class(l,"placeholder",u[14]),toggle_class(l,"bold",u[2]),toggle_class(l,"italic",u[3]),toggle_class(l,"underline",u[4])},m(w,v){insert(w,l,v),append$2(l,f),b||(y=[action_destroyer(u[16].call(null,l)),action_destroyer(m=u[17].call(null,l,u[11])),listen(l,"click",u[20])],b=!0)},p(w,v){v[0]&8192&&set_data(f,w[13]),v[0]&4096&&attr(l,"href",w[12]),v[0]&34&&p!==(p="align--"+(w[1]||"left")+" size--"+(w[5]||"M")+" svelte-1dqdd23")&&attr(l,"class",p),m&&is_function(m.update)&&v[0]&2048&&m.update.call(null,w[11]),v[0]&16418&&toggle_class(l,"placeholder",w[14]),v[0]&38&&toggle_class(l,"bold",w[2]),v[0]&42&&toggle_class(l,"italic",w[3]),v[0]&50&&toggle_class(l,"underline",w[4])},d(w){w&&detach(l),b=!1,run_all(y)}}}function create_fragment$1P(u){let l;function f(b,y){if(b[8].editing)return create_if_block$15;if(b[9].inBuilder||b[13])return create_if_block_1$u}let p=f(u),m=p&&p(u);return{c(){m&&m.c(),l=empty$1()},m(b,y){m&&m.m(b,y),insert(b,l,y)},p(b,y){p===(p=f(b))&&m?m.p(b,y):(m&&m.d(1),m=p&&p(b),m&&(m.c(),m.m(l.parentNode,l)))},i:noop$4,o:noop$4,d(b){b&&detach(l),m&&m.d(b)}}}function instance$1O(u,l,f){let p,m,b,y,w,v,k,S;const{linkable:B,styleable:O,builderStore:R,sidePanelStore:U,modalStore:$}=getContext$1("sdk");component_subscribe(u,R,Ze=>f(9,S=Ze));const X=getContext$1("component");component_subscribe(u,X,Ze=>f(8,k=Ze));let{url:K}=l,{text:J}=l,{openInNewTab:Z}=l,{color:se}=l,{align:ie}=l,{bold:ce}=l,{italic:pe}=l,{underline:me}=l,{size:we}=l,be,de=!1;const Te=()=>{U.actions.close(),$.actions.close()},Oe=(Ze,at,Pt)=>Ze?at?Ze:Z?`#${Ze}`:Ze:at||Pt?"#/":"/",$e=(Ze,at,Pt)=>!at.inBuilder||Pt.editing?Ze||"":Ze||Pt.name||"Placeholder text",he=(Ze,at)=>at?{...Ze,normal:{...Ze==null?void 0:Ze.normal,color:at}}:Ze,Fe=Ze=>{de&&R.actions.updateProp("text",Ze.target.textContent),f(10,de=!1)};function Re(Ze){binding_callbacks[Ze?"unshift":"push"](()=>{be=Ze,f(6,be)})}const Ge=()=>f(10,de=!0);return u.$$set=Ze=>{"url"in Ze&&f(22,K=Ze.url),"text"in Ze&&f(23,J=Ze.text),"openInNewTab"in Ze&&f(0,Z=Ze.openInNewTab),"color"in Ze&&f(24,se=Ze.color),"align"in Ze&&f(1,ie=Ze.align),"bold"in Ze&&f(2,ce=Ze.bold),"italic"in Ze&&f(3,pe=Ze.italic),"underline"in Ze&&f(4,me=Ze.underline),"size"in Ze&&f(5,we=Ze.size)},u.$$.update=()=>{u.$$.dirty[0]&320&&k.editing&&(be==null||be.focus()),u.$$.dirty[0]&4194304&&f(7,p=K&&typeof K=="string"&&!K.startsWith("/")),u.$$.dirty[0]&1&&f(15,m=Z?"_blank":"_self"),u.$$.dirty[0]&8389120&&f(14,b=S.inBuilder&&!J),u.$$.dirty[0]&8389376&&f(13,y=$e(J,S,k)),u.$$.dirty[0]&4194433&&f(12,w=Oe(K,p,Z)),u.$$.dirty[0]&16777472&&f(11,v=he(k.styles,se))},[Z,ie,ce,pe,me,we,be,p,k,S,de,v,w,y,b,m,B,O,R,X,Te,Fe,K,J,se,Re,Ge]}class Link extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1O,create_fragment$1P,safe_not_equal,{url:22,text:23,openInNewTab:0,color:24,align:1,bold:2,italic:3,underline:4,size:5},null,[-1,-1])}}const Image_svelte_svelte_type_style_lang="";function create_if_block_1$t(u){let l,f,p,m,b,y;return f=new Placeholder({}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","placeholder svelte-1d46lef")},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[3].call(null,l,{...u[1].styles,empty:!0})),b=!0)},p(w,v){p&&is_function(p.update)&&v&2&&p.update.call(null,{...w[1].styles,empty:!0})},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_if_block$14(u){let l,f,p,m,b,y;return{c(){l=element("img"),src_url_equal(l.src,f=u[0])||attr(l,"src",f),attr(l,"alt",p=u[1].name)},m(w,v){insert(w,l,v),b||(y=action_destroyer(m=u[3].call(null,l,u[1].styles)),b=!0)},p(w,v){v&1&&!src_url_equal(l.src,f=w[0])&&attr(l,"src",f),v&2&&p!==(p=w[1].name)&&attr(l,"alt",p),m&&is_function(m.update)&&v&2&&m.update.call(null,w[1].styles)},i:noop$4,o:noop$4,d(w){w&&detach(l),b=!1,y()}}}function create_fragment$1O(u){let l,f,p,m;const b=[create_if_block$14,create_if_block_1$t],y=[];function w(v,k){return v[0]?0:v[2].inBuilder?1:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function instance$1N(u,l,f){let p,m;const{styleable:b,builderStore:y}=getContext$1("sdk");component_subscribe(u,y,k=>f(2,m=k));const w=getContext$1("component");component_subscribe(u,w,k=>f(1,p=k));let{url:v}=l;return u.$$set=k=>{"url"in k&&f(0,v=k.url)},[v,p,m,b,y,w]}let Image$1=class extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1N,create_fragment$1O,safe_not_equal,{url:0})}};const Embed_svelte_svelte_type_style_lang="";function create_if_block_1$s(u){let l,f,p,m,b,y;return f=new Placeholder({}),{c(){l=element("div"),create_component(f.$$.fragment)},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[3].call(null,l,{...u[1].styles,empty:!0})),b=!0)},p(w,v){p&&is_function(p.update)&&v&2&&p.update.call(null,{...w[1].styles,empty:!0})},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_if_block$13(u){let l,f,p,m;return{c(){l=element("div"),attr(l,"class","embed svelte-nd6hd8")},m(b,y){insert(b,l,y),l.innerHTML=u[0],p||(m=action_destroyer(f=u[3].call(null,l,u[1].styles)),p=!0)},p(b,y){y&1&&(l.innerHTML=b[0]),f&&is_function(f.update)&&y&2&&f.update.call(null,b[1].styles)},i:noop$4,o:noop$4,d(b){b&&detach(l),p=!1,m()}}}function create_fragment$1N(u){let l,f,p,m;const b=[create_if_block$13,create_if_block_1$s],y=[];function w(v,k){return v[0]?0:v[2].inBuilder?1:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function instance$1M(u,l,f){let p,m;const{styleable:b,builderStore:y}=getContext$1("sdk");component_subscribe(u,y,k=>f(2,m=k));const w=getContext$1("component");component_subscribe(u,w,k=>f(1,p=k));let{embed:v}=l;return u.$$set=k=>{"embed"in k&&f(0,v=k.embed)},[v,p,m,b,y,w]}class Embed extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1M,create_fragment$1N,safe_not_equal,{embed:0})}}const Icon_svelte_svelte_type_style_lang="";function create_if_block_1$r(u){let l,f,p,m,b,y;return f=new Placeholder({}),{c(){l=element("div"),create_component(f.$$.fragment)},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[5].call(null,l,u[3])),b=!0)},p(w,v){p&&is_function(p.update)&&v&8&&p.update.call(null,w[3])},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_if_block$12(u){let l,f,p,m,b;return{c(){l=element("i"),attr(l,"class",f=u[0]+" "+u[1]+" svelte-1ghy1wa"),toggle_class(l,"hoverable",u[2]!=null)},m(y,w){insert(y,l,w),m||(b=[action_destroyer(p=u[5].call(null,l,u[3])),listen(l,"click",function(){is_function(u[2])&&u[2].apply(this,arguments)})],m=!0)},p(y,w){u=y,w&3&&f!==(f=u[0]+" "+u[1]+" svelte-1ghy1wa")&&attr(l,"class",f),p&&is_function(p.update)&&w&8&&p.update.call(null,u[3]),w&7&&toggle_class(l,"hoverable",u[2]!=null)},i:noop$4,o:noop$4,d(y){y&&detach(l),m=!1,run_all(b)}}}function create_fragment$1M(u){let l,f,p,m;const b=[create_if_block$12,create_if_block_1$r],y=[];function w(v,k){return v[0]?0:v[4].inBuilder?1:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function instance$1L(u,l,f){let p,m,b;const{styleable:y,builderStore:w}=getContext$1("sdk");component_subscribe(u,w,R=>f(4,b=R));const v=getContext$1("component");component_subscribe(u,v,R=>f(9,m=R));let{icon:k}=l,{size:S}=l,{color:B}=l,{onClick:O}=l;return u.$$set=R=>{"icon"in R&&f(0,k=R.icon),"size"in R&&f(1,S=R.size),"color"in R&&f(8,B=R.color),"onClick"in R&&f(2,O=R.onClick)},u.$$.update=()=>{u.$$.dirty&768&&f(3,p={...m.styles,normal:{...m.styles.normal,color:B||"var(--spectrum-global-color-gray-900)"}})},[k,S,O,p,b,y,w,v,B,m]}class Icon extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1L,create_fragment$1M,safe_not_equal,{icon:0,size:1,color:8,onClick:2})}}const BackgroundImage_svelte_svelte_type_style_lang="";function create_fragment$1L(u){let l,f,p,m,b,y;const w=u[7].default,v=create_slot(w,u,u[6],null);return{c(){l=element("div"),f=element("div"),v&&v.c(),attr(f,"class","inner svelte-1ovy8gu"),attr(f,"style",u[0]),attr(l,"class","outer svelte-1ovy8gu")},m(k,S){insert(k,l,S),append$2(l,f),v&&v.m(f,null),m=!0,b||(y=action_destroyer(p=u[2].call(null,l,u[1].styles)),b=!0)},p(k,[S]){v&&v.p&&(!m||S&64)&&update_slot_base(v,w,k,k[6],m?get_slot_changes(w,k[6],S,null):get_all_dirty_from_scope(k[6]),null),(!m||S&1)&&attr(f,"style",k[0]),p&&is_function(p.update)&&S&2&&p.update.call(null,k[1].styles)},i(k){m||(transition_in(v,k),m=!0)},o(k){transition_out(v,k),m=!1},d(k){k&&detach(l),v&&v.d(k),b=!1,y()}}}function instance$1K(u,l,f){let p,{$$slots:m={},$$scope:b}=l;const{styleable:y}=getContext$1("sdk"),w=getContext$1("component");component_subscribe(u,w,B=>f(1,p=B));let{url:v}=l,{position:k}=l,S="";return u.$$set=B=>{"url"in B&&f(4,v=B.url),"position"in B&&f(5,k=B.position),"$$scope"in B&&f(6,b=B.$$scope)},u.$$.update=()=>{u.$$.dirty&49&&(v&&f(0,S+=`background-image: url("${v}");`),k&&f(0,S+=`background-position: ${k};`))},[S,p,y,w,v,k,b,m]}class BackgroundImage extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1K,create_fragment$1L,safe_not_equal,{url:4,position:5})}}var utc$1={exports:{}};(function(u,l){(function(f,p){u.exports=p()})(commonjsGlobal$2,function(){var f="minute",p=/[+-]\d\d(?::?\d\d)?/g,m=/([+-]|\d\d)/g;return function(b,y,w){var v=y.prototype;w.utc=function($){var X={date:$,utc:!0,args:arguments};return new y(X)},v.utc=function($){var X=w(this.toDate(),{locale:this.$L,utc:!0});return $?X.add(this.utcOffset(),f):X},v.local=function(){return w(this.toDate(),{locale:this.$L,utc:!1})};var k=v.parse;v.parse=function($){$.utc&&(this.$u=!0),this.$utils().u($.$offset)||(this.$offset=$.$offset),k.call(this,$)};var S=v.init;v.init=function(){if(this.$u){var $=this.$d;this.$y=$.getUTCFullYear(),this.$M=$.getUTCMonth(),this.$D=$.getUTCDate(),this.$W=$.getUTCDay(),this.$H=$.getUTCHours(),this.$m=$.getUTCMinutes(),this.$s=$.getUTCSeconds(),this.$ms=$.getUTCMilliseconds()}else S.call(this)};var B=v.utcOffset;v.utcOffset=function($,X){var K=this.$utils().u;if(K($))return this.$u?0:K(this.$offset)?B.call(this):this.$offset;if(typeof $=="string"&&($=function(ie){ie===void 0&&(ie="");var ce=ie.match(p);if(!ce)return null;var pe=(""+ce[0]).match(m)||["-",0,0],me=pe[0],we=60*+pe[1]+ +pe[2];return we===0?0:me==="+"?we:-we}($),$===null))return this;var J=Math.abs($)<=16?60*$:$;if(J===0)return this.utc(X);var Z=this.clone();if(X)return Z.$offset=J,Z.$u=!1,Z;var se=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(Z=this.local().add(J+se,f)).$offset=J,Z.$x.$localOffset=se,Z};var O=v.format;v.format=function($){var X=$||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return O.call(this,X)},v.valueOf=function(){var $=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*$},v.isUTC=function(){return!!this.$u},v.toISOString=function(){return this.toDate().toISOString()},v.toString=function(){return this.toDate().toUTCString()};var R=v.toDate;v.toDate=function($){return $==="s"&&this.$offset?w(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():R.call(this)};var U=v.diff;v.diff=function($,X,K){if($&&this.$u===$.$u)return U.call(this,$,X,K);var J=this.local(),Z=w($).local();return U.call(J,Z,X,K)}}})})(utc$1);var utcExports=utc$1.exports;const utc=getDefaultExportFromCjs$1(utcExports);function create_fragment$1K(u){let l,f,p,m,b,y;return f=new Select_1({props:{placeholder:null,options:u[4],value:u[0]}}),f.$on("change",u[11]),{c(){l=element("div"),create_component(f.$$.fragment)},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[3].call(null,l,u[1].styles)),b=!0)},p(w,[v]){const k={};v&1&&(k.value=w[0]),f.$set(k),p&&is_function(p.update)&&v&2&&p.update.call(null,w[1].styles)},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function instance$1J(u,l,f){let p,m,b,y,w;dayjs.extend(utc);let{dataProvider:v}=l,{field:k}=l,{defaultValue:S}=l;const B=getContext$1("component");component_subscribe(u,B,Z=>f(1,w=Z));const{styleable:O,ActionTypes:R,getAction:U}=getContext$1("sdk"),$=["Last 1 day","Last 7 days","Last 30 days","Last 3 months","Last 6 months","Last 1 year"];let X=$.includes(S)?S:"Last 30 days";const K=(Z,se)=>{if(!Z||!se)return null;let ie=dayjs.utc().subtract(1,"year"),ce=dayjs.utc().add(1,"day");return se==="Last 1 day"?ie=dayjs.utc().subtract(1,"day"):se==="Last 7 days"?ie=dayjs.utc().subtract(7,"days"):se==="Last 30 days"?ie=dayjs.utc().subtract(30,"days"):se==="Last 3 months"?ie=dayjs.utc().subtract(3,"months"):se==="Last 6 months"&&(ie=dayjs.utc().subtract(6,"months")),{range:{[Z]:{low:ie.format(),high:ce.format()}}}};onDestroy(()=>{b==null||b(w.id)});const J=Z=>f(0,X=Z.detail);return u.$$set=Z=>{"dataProvider"in Z&&f(5,v=Z.dataProvider),"field"in Z&&f(6,k=Z.field),"defaultValue"in Z&&f(7,S=Z.defaultValue)},u.$$.update=()=>{u.$$.dirty&32&&f(10,p=v==null?void 0:v.id),u.$$.dirty&1024&&f(9,m=U(p,R.AddDataProviderQueryExtension)),u.$$.dirty&1024&&(b=U(p,R.RemoveDataProviderQueryExtension)),u.$$.dirty&65&&f(8,y=K(k,X)),u.$$.dirty&770&&(m==null||m(w.id,y))},[X,w,B,O,$,v,k,S,y,m,p,J]}class DateRangePicker extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1J,create_fragment$1K,safe_not_equal,{dataProvider:5,field:6,defaultValue:7})}}const CardStat_svelte_svelte_type_style_lang="";function create_fragment$1J(u){let l,f,p,m,b,y,w,v,k,S,B,O;return{c(){l=element("div"),f=element("p"),p=text$1(u[0]),m=space(),b=element("h3"),y=text$1(u[1]),w=space(),v=element("p"),k=text$1(u[2]),attr(f,"class","title svelte-13s6ero"),attr(b,"class","value svelte-13s6ero"),attr(v,"class","label svelte-13s6ero"),attr(l,"class","container svelte-13s6ero")},m(R,U){insert(R,l,U),append$2(l,f),append$2(f,p),append$2(l,m),append$2(l,b),append$2(b,y),append$2(l,w),append$2(l,v),append$2(v,k),B||(O=action_destroyer(S=u[4].call(null,l,u[3].styles)),B=!0)},p(R,[U]){U&1&&set_data(p,R[0]),U&2&&set_data(y,R[1]),U&4&&set_data(k,R[2]),S&&is_function(S.update)&&U&8&&S.update.call(null,R[3].styles)},i:noop$4,o:noop$4,d(R){R&&detach(l),B=!1,O()}}}function instance$1I(u,l,f){let p;const{styleable:m}=getContext$1("sdk"),b=getContext$1("component");component_subscribe(u,b,S=>f(3,p=S));const y="";let{title:w=""}=l,{value:v=""}=l,{label:k=""}=l;return u.$$set=S=>{"title"in S&&f(0,w=S.title),"value"in S&&f(1,v=S.value),"label"in S&&f(2,k=S.label)},[w,v,k,p,m,b,y]}class CardStat extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1I,create_fragment$1J,safe_not_equal,{className:6,title:0,value:1,label:2})}get className(){return this.$$.ctx[6]}}const indexVars$1="",SpectrumCard_svelte_svelte_type_style_lang="";function create_if_block_3$b(u){let l;return{c(){l=element("div"),attr(l,"class","spectrum-Card-coverPhoto svelte-1jgsopy"),set_style(l,"background-image","url("+u[3]+")")},m(f,p){insert(f,l,p)},p(f,p){p&8&&set_style(l,"background-image","url("+f[3]+")")},d(f){f&&detach(l)}}}function create_if_block_2$g(u){let l,f,p;return{c(){l=element("div"),f=element("div"),p=text$1(u[1]),attr(f,"class","spectrum-Card-subtitle spectrum-Detail spectrum-Detail--sizeS svelte-1jgsopy"),attr(l,"class","spectrum-Card-content")},m(m,b){insert(m,l,b),append$2(l,f),append$2(f,p)},p(m,b){b&2&&set_data(p,m[1])},d(m){m&&detach(l)}}}function create_if_block_1$q(u){let l,f;return{c(){l=element("div"),f=text$1(u[2]),attr(l,"class","spectrum-Card-footer svelte-1jgsopy")},m(p,m){insert(p,l,m),append$2(l,f)},p(p,m){m&4&&set_data(f,p[2])},d(p){p&&detach(l)}}}function create_if_block$11(u){let l,f,p;return f=new Button$1({props:{secondary:!0,$$slots:{default:[create_default_slot$Y]},$$scope:{ctx:u}}}),f.$on("click",function(){is_function(u[8])&&u[8].apply(this,arguments)}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","spectrum-Card-footer button-container svelte-1jgsopy")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p(m,b){u=m;const y={};b&32896&&(y.$$scope={dirty:b,ctx:u}),f.$set(y)},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_default_slot$Y(u){let l=(u[7]||"Click me")+"",f;return{c(){f=text$1(l)},m(p,m){insert(p,f,m)},p(p,m){m&128&&l!==(l=(p[7]||"Click me")+"")&&set_data(f,l)},d(p){p&&detach(f)}}}function create_fragment$1I(u){let l,f,p,m,b,y,w=(u[0]||"Card Title")+"",v,k,S,B,O,R,U,$,X=u[3]&&create_if_block_3$b(u),K=u[1]&&create_if_block_2$g(u),J=u[2]&&create_if_block_1$q(u),Z=u[6]&&create_if_block$11(u);return{c(){l=element("div"),X&&X.c(),f=space(),p=element("div"),m=element("div"),b=element("div"),y=element("div"),v=text$1(w),k=space(),K&&K.c(),S=space(),J&&J.c(),B=space(),Z&&Z.c(),attr(y,"class","spectrum-Card-title spectrum-Heading spectrum-Heading--sizeXS svelte-1jgsopy"),toggle_class(y,"link",u[4]),attr(b,"class","spectrum-Card-header"),attr(m,"class","spectrum-Card-body"),attr(p,"class","spectrum-Card-container svelte-1jgsopy"),attr(l,"class","spectrum-Card svelte-1jgsopy"),attr(l,"tabindex","0"),attr(l,"role","figure"),toggle_class(l,"horizontal",u[5]),toggle_class(l,"clickable",u[8]&&!u[6])},m(se,ie){insert(se,l,ie),X&&X.m(l,null),append$2(l,f),append$2(l,p),append$2(p,m),append$2(m,b),append$2(b,y),append$2(y,v),append$2(m,k),K&&K.m(m,null),append$2(p,S),J&&J.m(p,null),append$2(p,B),Z&&Z.m(p,null),R=!0,U||($=[listen(y,"click",u[12]),action_destroyer(O=u[10].call(null,l,u[9].styles)),listen(l,"click",function(){is_function(u[6]?null:u[8])&&(u[6]?null:u[8]).apply(this,arguments)})],U=!0)},p(se,[ie]){u=se,u[3]?X?X.p(u,ie):(X=create_if_block_3$b(u),X.c(),X.m(l,f)):X&&(X.d(1),X=null),(!R||ie&1)&&w!==(w=(u[0]||"Card Title")+"")&&set_data(v,w),(!R||ie&16)&&toggle_class(y,"link",u[4]),u[1]?K?K.p(u,ie):(K=create_if_block_2$g(u),K.c(),K.m(m,null)):K&&(K.d(1),K=null),u[2]?J?J.p(u,ie):(J=create_if_block_1$q(u),J.c(),J.m(p,B)):J&&(J.d(1),J=null),u[6]?Z?(Z.p(u,ie),ie&64&&transition_in(Z,1)):(Z=create_if_block$11(u),Z.c(),transition_in(Z,1),Z.m(p,null)):Z&&(group_outros(),transition_out(Z,1,1,()=>{Z=null}),check_outros()),O&&is_function(O.update)&&ie&512&&O.update.call(null,u[9].styles),(!R||ie&32)&&toggle_class(l,"horizontal",u[5]),(!R||ie&320)&&toggle_class(l,"clickable",u[8]&&!u[6])},i(se){R||(transition_in(Z),R=!0)},o(se){transition_out(Z),R=!1},d(se){se&&detach(l),X&&X.d(),K&&K.d(),J&&J.d(),Z&&Z.d(),U=!1,run_all($)}}}function instance$1H(u,l,f){let p,{title:m}=l,{subtitle:b}=l,{description:y}=l,{imageURL:w}=l,{linkURL:v}=l,{linkPeek:k}=l,{horizontal:S}=l,{showButton:B}=l,{buttonText:O}=l,{buttonOnClick:R}=l;const{styleable:U,routeStore:$}=getContext$1("sdk"),X=getContext$1("component");component_subscribe(u,X,J=>f(9,p=J));const K=J=>{if(!v)return!1;J.preventDefault(),J.stopPropagation(),$.actions.navigate(v,k)};return u.$$set=J=>{"title"in J&&f(0,m=J.title),"subtitle"in J&&f(1,b=J.subtitle),"description"in J&&f(2,y=J.description),"imageURL"in J&&f(3,w=J.imageURL),"linkURL"in J&&f(4,v=J.linkURL),"linkPeek"in J&&f(13,k=J.linkPeek),"horizontal"in J&&f(5,S=J.horizontal),"showButton"in J&&f(6,B=J.showButton),"buttonText"in J&&f(7,O=J.buttonText),"buttonOnClick"in J&&f(8,R=J.buttonOnClick)},[m,b,y,w,v,S,B,O,R,p,U,X,K,k]}class SpectrumCard extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1H,create_fragment$1I,safe_not_equal,{title:0,subtitle:1,description:2,imageURL:3,linkURL:4,linkPeek:13,horizontal:5,showButton:6,buttonText:7,buttonOnClick:8})}}const indexVars="",Tag_svelte_svelte_type_style_lang="";function create_if_block$10(u){let l,f;return l=new ClearButton({}),l.$on("click",function(){is_function(u[0])&&u[0].apply(this,arguments)}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){u=p},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1H(u){let l,f,p,m,b,y,w,v,k,S=u[1]&&create_if_block$10(u);return{c(){l=element("div"),f=element("span"),p=text$1(u[3]),m=space(),S&&S.c(),attr(f,"class","spectrum-Tag-label svelte-jml011"),attr(l,"class",b="spectrum-Tag spectrum-Tag--size"+u[2]+" svelte-jml011")},m(B,O){insert(B,l,O),append$2(l,f),append$2(f,p),append$2(l,m),S&&S.m(l,null),w=!0,v||(k=action_destroyer(y=u[6].call(null,l,u[4])),v=!0)},p(B,[O]){(!w||O&8)&&set_data(p,B[3]),B[1]?S?(S.p(B,O),O&2&&transition_in(S,1)):(S=create_if_block$10(B),S.c(),transition_in(S,1),S.m(l,null)):S&&(group_outros(),transition_out(S,1,1,()=>{S=null}),check_outros()),(!w||O&4&&b!==(b="spectrum-Tag spectrum-Tag--size"+B[2]+" svelte-jml011"))&&attr(l,"class",b),y&&is_function(y.update)&&O&16&&y.update.call(null,B[4])},i(B){w||(transition_in(S),w=!0)},o(B){transition_out(S),w=!1},d(B){B&&detach(l),S&&S.d(),v=!1,k()}}}function instance$1G(u,l,f){let p,m,b,y,{onClick:w}=l,{text:v=""}=l,{color:k}=l,{textColor:S}=l,{closable:B=!1}=l,{size:O="M"}=l;const R=getContext$1("component");component_subscribe(u,R,J=>f(11,b=J));const{styleable:U,builderStore:$}=getContext$1("sdk");component_subscribe(u,$,J=>f(12,y=J));const X=(J,Z,se)=>!Z.inBuilder||se.editing?J||" ":J||se.name||"Placeholder text",K=(J,Z,se)=>Z?{...J,normal:{...J==null?void 0:J.normal,"background-color":Z,"border-color":Z,color:se||"white","--spectrum-clearbutton-medium-icon-color":"white"}}:J;return u.$$set=J=>{"onClick"in J&&f(0,w=J.onClick),"text"in J&&f(8,v=J.text),"color"in J&&f(9,k=J.color),"textColor"in J&&f(10,S=J.textColor),"closable"in J&&f(1,B=J.closable),"size"in J&&f(2,O=J.size)},u.$$.update=()=>{u.$$.dirty&3584&&f(4,p=K(b.styles,k,S)),u.$$.dirty&6400&&f(3,m=X(v,y,b))},[w,B,O,m,p,R,U,$,v,k,S,b,y]}class Tag extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1G,create_fragment$1H,safe_not_equal,{onClick:0,text:8,color:9,textColor:10,closable:1,size:2})}}var leaflet$1={exports:{}};/* @preserve
|
|
382
|
+
This box is just a placeholder, to show you the position of screens.</span>`,attr(l,"class","svelte-ku38cm")},m(b,y){insert(b,l,y),p||(m=action_destroyer(f=u[1].call(null,l,{...u[0].styles,empty:!0})),p=!0)},p(b,[y]){f&&is_function(f.update)&&y&1&&f.update.call(null,{...b[0].styles,empty:!0})},i:noop$4,o:noop$4,d(b){b&&detach(l),p=!1,m()}}}function instance$1X(u,l,f){let p;const{styleable:m}=getContext$1("sdk"),b=getContext$1("component");return component_subscribe(u,b,y=>f(0,p=y)),[p,m,b]}class ScreenSlot extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1X,create_fragment$1Z,safe_not_equal,{})}}const Button_svelte_svelte_type_style_lang="";function create_if_block$1c(u){let l,f;return{c(){l=element("i"),attr(l,"class",f=u[4]+" "+u[1]+" svelte-1033xd6")},m(p,m){insert(p,l,m)},p(p,m){m&18&&f!==(f=p[4]+" "+p[1]+" svelte-1033xd6")&&attr(l,"class",f)},d(p){p&&detach(l)}}}function create_key_block$a(u){let l,f,p,m,b,y,w,v,k,S=u[4]&&create_if_block$1c(u);return{c(){l=element("button"),S&&S.c(),f=space(),p=text$1(u[12]),attr(l,"class",m=null_to_empty(`spectrum-Button spectrum-Button--size${u[1]} spectrum-Button--${u[2]} gap-${u[5]}`)+" svelte-1033xd6"),l.disabled=b=u[0]||u[10],attr(l,"contenteditable",y=u[8].editing&&!u[4]),toggle_class(l,"spectrum-Button--quiet",u[3]),toggle_class(l,"custom",u[11]),toggle_class(l,"active",u[6])},m(B,O){insert(B,l,O),S&&S.m(l,null),append$2(l,f),append$2(l,p),u[21](l),v||(k=[action_destroyer(w=u[13].call(null,l,u[8].styles)),listen(l,"click",u[17]),listen(l,"blur",function(){is_function(u[8].editing?u[16]:null)&&(u[8].editing?u[16]:null).apply(this,arguments)}),listen(l,"input",u[22])],v=!0)},p(B,O){u=B,u[4]?S?S.p(u,O):(S=create_if_block$1c(u),S.c(),S.m(l,f)):S&&(S.d(1),S=null),O&4096&&set_data_maybe_contenteditable(p,u[12],u[8].editing&&!u[4]),O&38&&m!==(m=null_to_empty(`spectrum-Button spectrum-Button--size${u[1]} spectrum-Button--${u[2]} gap-${u[5]}`)+" svelte-1033xd6")&&attr(l,"class",m),O&1025&&b!==(b=u[0]||u[10])&&(l.disabled=b),O&272&&y!==(y=u[8].editing&&!u[4])&&attr(l,"contenteditable",y),w&&is_function(w.update)&&O&256&&w.update.call(null,u[8].styles),O&46&&toggle_class(l,"spectrum-Button--quiet",u[3]),O&2086&&toggle_class(l,"custom",u[11]),O&102&&toggle_class(l,"active",u[6])},d(B){B&&detach(l),S&&S.d(),u[21](null),v=!1,run_all(k)}}}function create_fragment$1Y(u){let l=u[8].editing,f,p=create_key_block$a(u);return{c(){p.c(),f=empty$1()},m(m,b){p.m(m,b),insert(m,f,b)},p(m,[b]){b&256&&safe_not_equal(l,l=m[8].editing)?(p.d(1),p=create_key_block$a(m),p.c(),p.m(f.parentNode,f)):p.p(m,b)},i:noop$4,o:noop$4,d(m){m&&detach(f),p.d(m)}}}function instance$1W(u,l,f){let p,m,b,y;const{styleable:w,builderStore:v}=getContext$1("sdk");component_subscribe(u,v,de=>f(20,y=de));const k=getContext$1("component");component_subscribe(u,k,de=>f(8,b=de));let{disabled:S=!1}=l,{text:B=""}=l,{onClick:O}=l,{size:R="M"}=l,{type:U="cta"}=l,{quiet:$=!1}=l,{icon:X=null}=l,{gap:K="M"}=l,{active:J=!1}=l,Z,se=!1,ie=!1;const ce=(de,Te,Oe)=>Oe.editing?de||" ":de||Oe.name||"Placeholder text",pe=de=>{se&&v.actions.updateProp("text",de.target.textContent),f(9,se=!1)},me=async()=>{f(10,ie=!0),O&&await O(),f(10,ie=!1)};function we(de){binding_callbacks[de?"unshift":"push"](()=>{Z=de,f(7,Z)})}const be=()=>f(9,se=!0);return u.$$set=de=>{"disabled"in de&&f(0,S=de.disabled),"text"in de&&f(18,B=de.text),"onClick"in de&&f(19,O=de.onClick),"size"in de&&f(1,R=de.size),"type"in de&&f(2,U=de.type),"quiet"in de&&f(3,$=de.quiet),"icon"in de&&f(4,X=de.icon),"gap"in de&&f(5,K=de.gap),"active"in de&&f(6,J=de.active)},u.$$.update=()=>{var de,Te,Oe,$e;u.$$.dirty&384&&b.editing&&(Z==null||Z.focus()),u.$$.dirty&1310976&&f(12,p=ce(B,y,b)),u.$$.dirty&256&&f(11,m=((Te=(de=b.styles)==null?void 0:de.normal)==null?void 0:Te.background)||(($e=(Oe=b.styles)==null?void 0:Oe.normal)==null?void 0:$e["background-image"]))},[S,R,U,$,X,K,J,Z,b,se,ie,m,p,w,v,k,pe,me,B,O,y,we,be]}class Button extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1W,create_fragment$1Y,safe_not_equal,{disabled:0,text:18,onClick:19,size:1,type:2,quiet:3,icon:4,gap:5,active:6})}}function create_default_slot$11(u){let l;const f=u[14].default,p=create_slot(f,u,u[15],null);return{c(){p&&p.c()},m(m,b){p&&p.m(m,b),l=!0},p(m,b){p&&p.p&&(!l||b&32768)&&update_slot_base(p,f,m,m[15],l?get_slot_changes(f,m[15],b,null):get_all_dirty_from_scope(m[15]),null)},i(m){l||(transition_in(p,m),l=!0)},o(m){transition_out(p,m),l=!1},d(m){p&&p.d(m)}}}function create_fragment$1X(u){let l,f;return l=new Component({props:{instance:u[0],isBlock:!0,$$slots:{default:[create_default_slot$11]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,[m]){const b={};m&1&&(b.instance=p[0]),m&32768&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function instance_1$3(u,l,f){let p,m,b,y,w;component_subscribe(u,builderStore,pe=>f(12,y=pe));let{$$slots:v={},$$scope:k}=l,{type:S}=l,{props:B=void 0}=l,{styles:O=void 0}=l,{context:R=void 0}=l,{name:U=void 0}=l,{order:$=0}=l,{containsSlot:X=!1}=l,{id:K=void 0}=l;const J=getContext$1("component");component_subscribe(u,J,pe=>f(13,w=pe));const Z=getContext$1("block"),se=shortid.generate(),ie=pe=>pe?pe.startsWith("plugin/")?pe:`@budibase/standard-components/${pe}`:null,ce=(pe,me)=>pe||(me?(me.startsWith("plugin/")&&(me=me.split("plugin/")[1]),me[0].toUpperCase()+me.slice(1)):"New component");return onDestroy(()=>{m&&Z.unregisterComponent(K,p)}),u.$$set=pe=>{"type"in pe&&f(3,S=pe.type),"props"in pe&&f(4,B=pe.props),"styles"in pe&&f(5,O=pe.styles),"context"in pe&&f(6,R=pe.context),"name"in pe&&f(7,U=pe.name),"order"in pe&&f(8,$=pe.order),"containsSlot"in pe&&f(9,X=pe.containsSlot),"id"in pe&&f(2,K=pe.id),"$$scope"in pe&&f(15,k=pe.$$scope)},u.$$.update=()=>{u.$$.dirty&64&&f(2,K=`${Z.id}-${R??se}`),u.$$.dirty&8192&&f(10,p=w==null?void 0:w.id),u.$$.dirty&4096&&f(11,m=y.inBuilder),u.$$.dirty&700&&f(0,b={...B,_component:ie(S),_id:K,_instanceName:ce(U,S),_containsSlot:X,_styles:{...O,normal:(O==null?void 0:O.normal)||{}}}),u.$$.dirty&3333&&m&&Z.registerComponent(K,p,$??0,b)},[b,J,K,S,B,O,R,U,$,X,p,m,y,w,v,k]}class BlockComponent extends SvelteComponent{constructor(l){super(),init$1(this,l,instance_1$3,create_fragment$1X,safe_not_equal,{type:3,props:4,styles:5,context:6,name:7,order:8,containsSlot:9,id:2})}}const createBlockStore=()=>{const u=writable({}),l=(m,b)=>{u.update(y=>({...y,[m]:b}))},f=m=>{u.update(b=>(delete b[m],b))},p=m=>get_store_value(u)[m];return{subscribe:u.subscribe,actions:{registerBlock:l,unregisterBlock:f,getBlock:p}}},blockStore=createBlockStore();function create_fragment$1W(u){let l,f,p,m,b;const y=u[4].default,w=create_slot(y,u,u[3],null);return{c(){l=element("div"),w&&w.c()},m(v,k){insert(v,l,k),w&&w.m(l,null),p=!0,m||(b=action_destroyer(f=u[2].call(null,l,u[0].styles)),m=!0)},p(v,[k]){w&&w.p&&(!p||k&8)&&update_slot_base(w,y,v,v[3],p?get_slot_changes(y,v[3],k,null):get_all_dirty_from_scope(v[3]),null),f&&is_function(f.update)&&k&1&&f.update.call(null,v[0].styles)},i(v){p||(transition_in(w,v),p=!0)},o(v){transition_out(w,v),p=!1},d(v){v&&detach(l),w&&w.d(v),m=!1,b()}}}function instance$1V(u,l,f){let p,m;component_subscribe(u,builderStore,U=>f(6,m=U));let{$$slots:b={},$$scope:y}=l;const w=getContext$1("component");component_subscribe(u,w,U=>f(0,p=U));const{styleable:v}=getContext$1("sdk");let k={};const S=(U,$,X,K)=>{k[$]||(k[$]={}),k[$][U]={order:X,instance:K}},B=(U,$)=>{k[$]&&delete k[$][U]},O=()=>{var X,K,J,Z,se;const U=k[p.id]||{};let $=(X=Object.values(U)[0])==null?void 0:X.instance;$&&($._styles={...$._styles,normal:{...(K=$._styles)==null?void 0:K.normal,...(J=p.styles)==null?void 0:J.normal},custom:(((Z=$._styles)==null?void 0:Z.custom)||"")+(((se=p.styles)==null?void 0:se.custom)||"")},R($,k),builderStore.actions.ejectBlock(p.id,$))},R=(U,$)=>{let X=U._id;const K=Object.values($[X]||{});K.length&&(K.sort((J,Z)=>J.order<Z.order?-1:1),U._children=K.map(J=>J.instance),U._children.forEach(J=>{R(J,$)}))};return setContext("block",{id:p.id,name:p.name,registerComponent:S,unregisterComponent:B}),onMount(()=>{m.inBuilder&&blockStore.actions.registerBlock(p.id,{eject:O})}),onDestroy(()=>{m.inBuilder&&blockStore.actions.unregisterBlock(p.id)}),u.$$set=U=>{"$$scope"in U&&f(3,y=U.$$scope)},[p,w,v,y,b]}class Block extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1V,create_fragment$1W,safe_not_equal,{})}}function get_each_context$l(u,l,f){const p=u.slice();return p[12]=l[f].text,p[13]=l[f].type,p[14]=l[f].quiet,p[15]=l[f].disabled,p[16]=l[f].onClick,p[17]=l[f].size,p[18]=l[f].icon,p[6]=l[f].gap,p}function create_else_block$i(u){let l,f,p=ensure_array_like(u[0]),m=[];for(let y=0;y<p.length;y+=1)m[y]=create_each_block$l(get_each_context$l(u,p,y));const b=y=>transition_out(m[y],1,1,()=>{m[y]=null});return{c(){for(let y=0;y<m.length;y+=1)m[y].c();l=empty$1()},m(y,w){for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(y,w);insert(y,l,w),f=!0},p(y,w){if(w&1){p=ensure_array_like(y[0]);let v;for(v=0;v<p.length;v+=1){const k=get_each_context$l(y,p,v);m[v]?(m[v].p(k,w),transition_in(m[v],1)):(m[v]=create_each_block$l(k),m[v].c(),transition_in(m[v],1),m[v].m(l.parentNode,l))}for(group_outros(),v=p.length;v<m.length;v+=1)b(v);check_outros()}},i(y){if(!f){for(let w=0;w<p.length;w+=1)transition_in(m[w]);f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)transition_out(m[w]);f=!1},d(y){y&&detach(l),destroy_each(m,y)}}}function create_if_block$1b(u){let l,f;return l=new CollapsedButtonGroup({props:{text:u[5]||"Action",buttons:u[7]}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&32&&(b.text=p[5]||"Action"),m&128&&(b.buttons=p[7]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_each_block$l(u){let l,f;return l=new BlockComponent({props:{type:"button",props:{text:u[12]||"Button",onClick:u[16],type:u[13],quiet:u[14],disabled:u[15],icon:u[18],gap:u[6],size:u[17]||"M"}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&1&&(b.props={text:p[12]||"Button",onClick:p[16],type:p[13],quiet:p[14],disabled:p[15],icon:p[18],gap:p[6],size:p[17]||"M"}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot_1$u(u){let l,f,p,m;const b=[create_if_block$1b,create_else_block$i],y=[];function w(v,k){return v[4]?0:1}return l=w(u),f=y[l]=b[l](u),{c(){f.c(),p=empty$1()},m(v,k){y[l].m(v,k),insert(v,p,k),m=!0},p(v,k){let S=l;l=w(v),l===S?y[l].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p))},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),y[l].d(v)}}}function create_default_slot$10(u){let l,f;return l=new BlockComponent({props:{type:"container",props:{direction:u[1],hAlign:u[2],vAlign:u[3],gap:u[6],wrap:!0},styles:{normal:{height:"100%"}},$$slots:{default:[create_default_slot_1$u]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&78&&(b.props={direction:p[1],hAlign:p[2],vAlign:p[3],gap:p[6],wrap:!0}),m&2097329&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1V(u){let l,f;return l=new Block({props:{$$slots:{default:[create_default_slot$10]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,[m]){const b={};m&2097407&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function instance$1U(u,l,f){let p,m,{buttons:b=[]}=l,{direction:y="row"}=l,{hAlign:w="left"}=l,{vAlign:v="top"}=l,{gap:k="S"}=l,{collapsed:S=!1}=l,{collapsedText:B="Action"}=l;const{enrichButtonActions:O}=getContext$1("sdk"),R=getContext$1("context");component_subscribe(u,R,$=>f(9,m=$));const U=$=>$.map(X=>({...X,onClick:async()=>{const K=O(X.onClick,m);await(K==null?void 0:K())}}));return u.$$set=$=>{"buttons"in $&&f(0,b=$.buttons),"direction"in $&&f(1,y=$.direction),"hAlign"in $&&f(2,w=$.hAlign),"vAlign"in $&&f(3,v=$.vAlign),"gap"in $&&f(6,k=$.gap),"collapsed"in $&&f(4,S=$.collapsed),"collapsedText"in $&&f(5,B=$.collapsedText)},u.$$.update=()=>{u.$$.dirty&17&&f(7,p=S?U(b):null)},[b,y,w,v,S,B,k,p,R]}class ButtonGroup extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1U,create_fragment$1V,safe_not_equal,{buttons:0,direction:1,hAlign:2,vAlign:3,gap:6,collapsed:4,collapsedText:5})}}const Repeater_svelte_svelte_type_style_lang="";function get_each_context$k(u,l,f){const p=u.slice();return p[15]=l[f],p[17]=f,p}function create_if_block_2$m(u){let l,f,p;return{c(){l=element("div"),f=element("i"),p=text$1(u[0]),attr(f,"class","ri-list-check-2 svelte-1lkne36"),attr(l,"class","noRows svelte-1lkne36")},m(m,b){insert(m,l,b),append$2(l,f),append$2(l,p)},p(m,b){b&1&&set_data(p,m[0])},i:noop$4,o:noop$4,d(m){m&&detach(l)}}}function create_if_block_1$z(u){let l,f,p=ensure_array_like(u[7]),m=[];for(let y=0;y<p.length;y+=1)m[y]=create_each_block$k(get_each_context$k(u,p,y));const b=y=>transition_out(m[y],1,1,()=>{m[y]=null});return{c(){for(let y=0;y<m.length;y+=1)m[y].c();l=empty$1()},m(y,w){for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(y,w);insert(y,l,w),f=!0},p(y,w){if(w&8352){p=ensure_array_like(y[7]);let v;for(v=0;v<p.length;v+=1){const k=get_each_context$k(y,p,v);m[v]?(m[v].p(k,w),transition_in(m[v],1)):(m[v]=create_each_block$k(k),m[v].c(),transition_in(m[v],1),m[v].m(l.parentNode,l))}for(group_outros(),v=p.length;v<m.length;v+=1)b(v);check_outros()}},i(y){if(!f){for(let w=0;w<p.length;w+=1)transition_in(m[w]);f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)transition_out(m[w]);f=!1},d(y){y&&detach(l),destroy_each(m,y)}}}function create_if_block$1a(u){let l,f;return l=new Placeholder({}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p:noop$4,i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot_1$t(u){let l,f;const p=u[12].default,m=create_slot(p,u,u[13],null);return{c(){m&&m.c(),l=space()},m(b,y){m&&m.m(b,y),insert(b,l,y),f=!0},p(b,y){m&&m.p&&(!f||y&8192)&&update_slot_base(m,p,b,b[13],f?get_slot_changes(p,b[13],y,null):get_all_dirty_from_scope(b[13]),null)},i(b){f||(transition_in(m,b),f=!0)},o(b){transition_out(m,b),f=!1},d(b){b&&detach(l),m&&m.d(b)}}}function create_each_block$k(u){let l,f;return l=new u[9]({props:{data:{...u[15],index:u[17]},scope:u[5],$$slots:{default:[create_default_slot_1$t]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&128&&(b.data={...p[15],index:p[17]}),m&32&&(b.scope=p[5]),m&8192&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot$$(u){let l,f,p,m;const b=[create_if_block$1a,create_if_block_1$z,create_if_block_2$m],y=[];function w(v,k){return v[8].empty?0:v[7].length>0?1:v[6]&&v[0]?2:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,k){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function create_fragment$1U(u){let l,f;return l=new Container$8({props:{direction:u[1],hAlign:u[2],vAlign:u[3],gap:u[4],wrap:!0,$$slots:{default:[create_default_slot$$]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,[m]){const b={};m&2&&(b.direction=p[1]),m&4&&(b.hAlign=p[2]),m&8&&(b.vAlign=p[3]),m&16&&(b.gap=p[4]),m&8673&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function instance$1T(u,l,f){let p,m,b,{$$slots:y={},$$scope:w}=l;const{Provider:v,ContextScopes:k}=getContext$1("sdk"),S=getContext$1("component");component_subscribe(u,S,J=>f(8,b=J));let{dataProvider:B}=l,{noRowsMessage:O}=l,{direction:R}=l,{hAlign:U}=l,{vAlign:$}=l,{gap:X}=l,{scope:K=k.Local}=l;return u.$$set=J=>{"dataProvider"in J&&f(11,B=J.dataProvider),"noRowsMessage"in J&&f(0,O=J.noRowsMessage),"direction"in J&&f(1,R=J.direction),"hAlign"in J&&f(2,U=J.hAlign),"vAlign"in J&&f(3,$=J.vAlign),"gap"in J&&f(4,X=J.gap),"scope"in J&&f(5,K=J.scope),"$$scope"in J&&f(13,w=J.$$scope)},u.$$.update=()=>{u.$$.dirty&2048&&f(7,p=(B==null?void 0:B.rows)??[]),u.$$.dirty&2048&&f(6,m=(B==null?void 0:B.loaded)??!0)},[O,R,U,$,X,K,m,p,b,v,S,B,y,w]}class Repeater extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1T,create_fragment$1U,safe_not_equal,{dataProvider:11,noRowsMessage:0,direction:1,hAlign:2,vAlign:3,gap:4,scope:5})}}const nodes=[];let location$1;function checkActive(u){const l=u.pattern.test(location$1);toggleClasses(u,u.className,l),toggleClasses(u,u.inactiveClassName,!l)}function toggleClasses(u,l,f){(l||"").split(" ").forEach(p=>{p&&(u.node.classList.remove(p),f&&u.node.classList.add(p))})}loc.subscribe(u=>{location$1=u.location+(u.querystring?"?"+u.querystring:""),nodes.map(checkActive)});function active(u,l){if(l&&(typeof l=="string"||typeof l=="object"&&l instanceof RegExp)?l={path:l}:l=l||{},!l.path&&u.hasAttribute("href")&&(l.path=u.getAttribute("href"),l.path&&l.path.length>1&&l.path.charAt(0)=="#"&&(l.path=l.path.substring(1))),l.className||(l.className="active"),!l.path||typeof l.path=="string"&&(l.path.length<1||l.path.charAt(0)!="/"&&l.path.charAt(0)!="*"))throw Error('Invalid value for "path" argument');const{pattern:f}=typeof l.path=="string"?parse$5(l.path):{pattern:l.path},p={node:u,className:l.className,inactiveClassName:l.inactiveClassName,pattern:f};return nodes.push(p),checkActive(p),{destroy(){nodes.splice(nodes.indexOf(p),1)}}}const NavItem_svelte_svelte_type_style_lang="";function get_each_context$j(u,l,f){const p=u.slice();return p[23]=l[f],p}function create_else_block_1$5(u){let l=u[11],f,p,m=create_key_block$9(u);return{c(){m.c(),f=empty$1()},m(b,y){m.m(b,y),insert(b,f,y),p=!0},p(b,y){y&2048&&safe_not_equal(l,l=b[11])?(group_outros(),transition_out(m,1,1,noop$4),check_outros(),m=create_key_block$9(b),m.c(),transition_in(m,1),m.m(f.parentNode,f)):m.p(b,y)},i(b){p||(transition_in(m),p=!0)},o(b){transition_out(m),p=!1},d(b){b&&detach(f),m.d(b)}}}function create_if_block$19(u){let l,f,p,m;const b=[create_if_block_1$y,create_else_block$h],y=[];function w(v,k){return v[5]?0:1}return f=w(u),p=y[f]=b[f](u),{c(){l=element("div"),p.c(),attr(l,"class","link")},m(v,k){insert(v,l,k),y[f].m(l,null),m=!0},p(v,k){let S=f;f=w(v),f===S?y[f].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),p=y[f],p?p.p(v,k):(p=y[f]=b[f](v),p.c()),transition_in(p,1),p.m(l,null))},i(v){m||(transition_in(p),m=!0)},o(v){transition_out(p),m=!1},d(v){v&&detach(l),y[f].d()}}}function create_if_block_5$7(u){let l,f;return l=new Icon$1({props:{name:u[4],color:"var(--navTextColor)",size:"S"}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16&&(b.name=p[4]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_else_block_2$1(u){let l,f=u[23].text+"",p,m,b,y,w;return{c(){l=element("a"),p=text$1(f),m=space(),attr(l,"href",b=u[23].url),attr(l,"class","svelte-xz09vf")},m(v,k){insert(v,l,k),append$2(l,p),append$2(l,m),y||(w=listen(l,"click",u[14]),y=!0)},p(v,k){k&8&&f!==(f=v[23].text+"")&&set_data(p,f),k&8&&b!==(b=v[23].url)&&attr(l,"href",b)},d(v){v&&detach(l),y=!1,w()}}}function create_if_block_4$a(u){let l,f=u[23].text+"",p,m,b,y,w,v;return{c(){l=element("a"),p=text$1(f),m=space(),attr(l,"href",b="#"+u[23].url),attr(l,"class","sublink svelte-xz09vf"),toggle_class(l,"active",!1),toggle_class(l,"builderActive",u[10](u[23].url))},m(k,S){insert(k,l,S),append$2(l,p),append$2(l,m),w||(v=[listen(l,"click",u[14]),action_destroyer(y=active.call(null,l,u[23].url))],w=!0)},p(k,S){u=k,S&8&&f!==(f=u[23].text+"")&&set_data(p,f),S&8&&b!==(b="#"+u[23].url)&&attr(l,"href",b),y&&is_function(y.update)&&S&8&&y.update.call(null,u[23].url),S&1032&&toggle_class(l,"builderActive",u[10](u[23].url))},d(k){k&&detach(l),w=!1,run_all(v)}}}function create_each_block$j(u){let l;function f(b,y){return b[23].internalLink?create_if_block_4$a:create_else_block_2$1}let p=f(u),m=p(u);return{c(){m.c(),l=empty$1()},m(b,y){m.m(b,y),insert(b,l,y)},p(b,y){p===(p=f(b))&&m?m.p(b,y):(m.d(1),m=p(b),m&&(m.c(),m.m(l.parentNode,l)))},d(b){b&&detach(l),m.d(b)}}}function create_key_block$9(u){let l,f,p,m,b,y,w,v,k,S,B,O,R,U=u[4]&&create_if_block_5$7(u);w=new Icon$1({props:{name:u[12],color:"var(--navTextColor)",size:"S"}});let $=ensure_array_like(u[3]||[]),X=[];for(let K=0;K<$.length;K+=1)X[K]=create_each_block$j(get_each_context$j(u,$,K));return{c(){l=element("div"),f=element("div"),U&&U.c(),p=space(),m=element("span"),b=text$1(u[2]),y=space(),create_component(w.$$.fragment),v=space(),k=element("div"),S=element("div");for(let K=0;K<X.length;K+=1)X[K].c();attr(m,"class","svelte-xz09vf"),attr(f,"class","text svelte-xz09vf"),attr(S,"class","sublinks svelte-xz09vf"),attr(k,"class","sublinks-wrapper svelte-xz09vf"),attr(l,"class","dropdown svelte-xz09vf"),toggle_class(l,"left",u[8]),toggle_class(l,"expanded",u[9])},m(K,J){insert(K,l,J),append$2(l,f),U&&U.m(f,null),append$2(f,p),append$2(f,m),append$2(m,b),append$2(f,y),mount_component(w,f,null),append$2(l,v),append$2(l,k),append$2(k,S);for(let Z=0;Z<X.length;Z+=1)X[Z]&&X[Z].m(S,null);B=!0,O||(R=listen(f,"click",u[15]),O=!0)},p(K,J){K[4]?U?(U.p(K,J),J&16&&transition_in(U,1)):(U=create_if_block_5$7(K),U.c(),transition_in(U,1),U.m(f,p)):U&&(group_outros(),transition_out(U,1,1,()=>{U=null}),check_outros()),(!B||J&4)&&set_data(b,K[2]);const Z={};if(J&4096&&(Z.name=K[12]),w.$set(Z),J&17416){$=ensure_array_like(K[3]||[]);let se;for(se=0;se<$.length;se+=1){const ie=get_each_context$j(K,$,se);X[se]?X[se].p(ie,J):(X[se]=create_each_block$j(ie),X[se].c(),X[se].m(S,null))}for(;se<X.length;se+=1)X[se].d(1);X.length=$.length}(!B||J&256)&&toggle_class(l,"left",K[8]),(!B||J&512)&&toggle_class(l,"expanded",K[9])},i(K){B||(transition_in(U),transition_in(w.$$.fragment,K),B=!0)},o(K){transition_out(U),transition_out(w.$$.fragment,K),B=!1},d(K){K&&detach(l),U&&U.d(),destroy_component(w),destroy_each(X,K),O=!1,R()}}}function create_else_block$h(u){let l,f,p,m,b,y,w=u[4]&&create_if_block_3$d(u);return{c(){l=element("a"),w&&w.c(),f=space(),p=text$1(u[2]),attr(l,"href",u[1]),attr(l,"class","svelte-xz09vf")},m(v,k){insert(v,l,k),w&&w.m(l,null),append$2(l,f),append$2(l,p),m=!0,b||(y=listen(l,"click",u[14]),b=!0)},p(v,k){v[4]?w?(w.p(v,k),k&16&&transition_in(w,1)):(w=create_if_block_3$d(v),w.c(),transition_in(w,1),w.m(l,f)):w&&(group_outros(),transition_out(w,1,1,()=>{w=null}),check_outros()),(!m||k&4)&&set_data(p,v[2]),(!m||k&2)&&attr(l,"href",v[1])},i(v){m||(transition_in(w),m=!0)},o(v){transition_out(w),m=!1},d(v){v&&detach(l),w&&w.d(),b=!1,y()}}}function create_if_block_1$y(u){let l,f,p,m,b,y,w,v,k=u[4]&&create_if_block_2$l(u);return{c(){l=element("a"),k&&k.c(),f=space(),p=text$1(u[2]),attr(l,"href",m="#"+u[1]),attr(l,"style",u[6]),attr(l,"class","svelte-xz09vf"),toggle_class(l,"builderActive",u[13])},m(S,B){insert(S,l,B),k&&k.m(l,null),append$2(l,f),append$2(l,p),y=!0,w||(v=[listen(l,"click",u[14]),action_destroyer(b=active.call(null,l,u[1]))],w=!0)},p(S,B){S[4]?k?(k.p(S,B),B&16&&transition_in(k,1)):(k=create_if_block_2$l(S),k.c(),transition_in(k,1),k.m(l,f)):k&&(group_outros(),transition_out(k,1,1,()=>{k=null}),check_outros()),(!y||B&4)&&set_data(p,S[2]),(!y||B&2&&m!==(m="#"+S[1]))&&attr(l,"href",m),(!y||B&64)&&attr(l,"style",S[6]),b&&is_function(b.update)&&B&2&&b.update.call(null,S[1]),(!y||B&8192)&&toggle_class(l,"builderActive",S[13])},i(S){y||(transition_in(k),y=!0)},o(S){transition_out(k),y=!1},d(S){S&&detach(l),k&&k.d(),w=!1,run_all(v)}}}function create_if_block_3$d(u){let l,f;return l=new Icon$1({props:{name:u[4],color:"var(--navTextColor)",size:"S"}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16&&(b.name=p[4]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_if_block_2$l(u){let l,f;return l=new Icon$1({props:{name:u[4],color:"var(--navTextColor)",size:"S"}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16&&(b.name=p[4]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1T(u){let l,f,p,m;const b=[create_if_block$19,create_else_block_1$5],y=[];function w(v,k){return!v[0]||v[0]==="link"?0:1}return l=w(u),f=y[l]=b[l](u),{c(){f.c(),p=empty$1()},m(v,k){y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?y[l].p(v,k):(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros(),f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p))},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),y[l].d(v)}}}function instance$1S(u,l,f){let p,m,b,y,w,v,k,S=noop$4,B=()=>(S(),S=subscribe(pe,Te=>f(19,k=Te)),pe),O,R;component_subscribe(u,screenStore,Te=>f(20,O=Te)),component_subscribe(u,builderStore,Te=>f(21,R=Te)),u.$$.on_destroy.push(()=>S());let{type:U}=l,{url:$}=l,{text:X}=l,{subLinks:K}=l,{icon:J}=l,{internalLink:Z}=l,{customStyles:se}=l,{leftNav:ie=!1}=l,{mobile:ce=!1}=l,{navStateStore:pe}=l;B();const me=createEventDispatcher();let we;const be=()=>{me("clickLink"),f(11,we=Math.random())},de=()=>{w&&pe.update(Te=>({...Te,[X]:!Te[X]}))};return u.$$set=Te=>{"type"in Te&&f(0,U=Te.type),"url"in Te&&f(1,$=Te.url),"text"in Te&&f(2,X=Te.text),"subLinks"in Te&&f(3,K=Te.subLinks),"icon"in Te&&f(4,J=Te.icon),"internalLink"in Te&&f(5,Z=Te.internalLink),"customStyles"in Te&&f(6,se=Te.customStyles),"leftNav"in Te&&f(16,ie=Te.leftNav),"mobile"in Te&&f(17,ce=Te.mobile),"navStateStore"in Te&&B(f(7,pe=Te.navStateStore))},u.$$.update=()=>{u.$$.dirty&3145728&&f(10,p=Te=>{var Oe,$e;return R.inBuilder&&Te&&Te===(($e=(Oe=O.activeScreen)==null?void 0:Oe.routing)==null?void 0:$e.route)}),u.$$.dirty&1026&&f(13,m=p($)),u.$$.dirty&1032&&f(18,b=(K||[]).some(Te=>p(Te.url))),u.$$.dirty&786436&&f(9,y=!!k[X]||b),u.$$.dirty&196608&&f(8,w=ie||ce),u.$$.dirty&768&&f(12,v=!w||y?"caret-down":"caret-right")},[U,$,X,K,J,Z,se,pe,w,y,p,we,v,m,be,de,ie,ce,b,k,O,R]}class NavItem extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1S,create_fragment$1T,safe_not_equal,{type:0,url:1,text:2,subLinks:3,icon:4,internalLink:5,customStyles:6,leftNav:16,mobile:17,navStateStore:7})}}const UserMenu_svelte_svelte_type_style_lang="";function create_if_block$18(u){let l,f,p,m,b,y;l=new ActionMenu({props:{align:u[0]?"right":"left",$$slots:{control:[create_control_slot],default:[create_default_slot_2$i]},$$scope:{ctx:u}}});let w={$$slots:{default:[create_default_slot_1$s]},$$scope:{ctx:u}};p=new Modal({props:w}),u[19](p);let v={$$slots:{default:[create_default_slot$_]},$$scope:{ctx:u}};return b=new Modal({props:v}),u[21](b),{c(){create_component(l.$$.fragment),f=space(),create_component(p.$$.fragment),m=space(),create_component(b.$$.fragment)},m(k,S){mount_component(l,k,S),insert(k,f,S),mount_component(p,k,S),insert(k,m,S),mount_component(b,k,S),y=!0},p(k,S){const B={};S&1&&(B.align=k[0]?"right":"left"),S&16778237&&(B.$$scope={dirty:S,ctx:k}),l.$set(B);const O={};S&16777218&&(O.$$scope={dirty:S,ctx:k}),p.$set(O);const R={};S&16777220&&(R.$$scope={dirty:S,ctx:k}),b.$set(R)},i(k){y||(transition_in(l.$$.fragment,k),transition_in(p.$$.fragment,k),transition_in(b.$$.fragment,k),y=!0)},o(k){transition_out(l.$$.fragment,k),transition_out(p.$$.fragment,k),transition_out(b.$$.fragment,k),y=!1},d(k){k&&(detach(f),detach(m)),destroy_component(l,k),u[19](null),destroy_component(p,k),u[21](null),destroy_component(b,k)}}}function create_default_slot_6$5(u){let l;return{c(){l=text$1("My profile")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_if_block_2$k(u){let l,f;return l=new Item$1({props:{icon:"lock",$$slots:{default:[create_default_slot_5$7]},$$scope:{ctx:u}}}),l.$on("click",u[17]),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&16777216&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot_5$7(u){let l;return{c(){l=text$1("Update password")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_default_slot_4$a(u){let l;return{c(){l=text$1("Go to portal")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_default_slot_3$e(u){let l;return{c(){l=text$1("Log out")},m(f,p){insert(f,l,p)},d(f){f&&detach(l)}}}function create_default_slot_2$i(u){let l,f,p,m,b,y,w;l=new Item$1({props:{icon:"user-gear",$$slots:{default:[create_default_slot_6$5]},$$scope:{ctx:u}}}),l.$on("click",u[16]);let v=!u[8]&&create_if_block_2$k(u);return m=new Item$1({props:{icon:"squares-four",disabled:u[6],$$slots:{default:[create_default_slot_4$a]},$$scope:{ctx:u}}}),m.$on("click",u[14]),y=new Item$1({props:{icon:"sign-out",disabled:u[6],$$slots:{default:[create_default_slot_3$e]},$$scope:{ctx:u}}}),y.$on("click",u[10].actions.logOut),{c(){create_component(l.$$.fragment),f=space(),v&&v.c(),p=space(),create_component(m.$$.fragment),b=space(),create_component(y.$$.fragment)},m(k,S){mount_component(l,k,S),insert(k,f,S),v&&v.m(k,S),insert(k,p,S),mount_component(m,k,S),insert(k,b,S),mount_component(y,k,S),w=!0},p(k,S){const B={};S&16777216&&(B.$$scope={dirty:S,ctx:k}),l.$set(B),k[8]?v&&(group_outros(),transition_out(v,1,1,()=>{v=null}),check_outros()):v?(v.p(k,S),S&256&&transition_in(v,1)):(v=create_if_block_2$k(k),v.c(),transition_in(v,1),v.m(p.parentNode,p));const O={};S&64&&(O.disabled=k[6]),S&16777216&&(O.$$scope={dirty:S,ctx:k}),m.$set(O);const R={};S&64&&(R.disabled=k[6]),S&16777216&&(R.$$scope={dirty:S,ctx:k}),y.$set(R)},i(k){w||(transition_in(l.$$.fragment,k),transition_in(v),transition_in(m.$$.fragment,k),transition_in(y.$$.fragment,k),w=!0)},o(k){transition_out(l.$$.fragment,k),transition_out(v),transition_out(m.$$.fragment,k),transition_out(y.$$.fragment,k),w=!1},d(k){k&&(detach(f),detach(p),detach(b)),destroy_component(l,k),v&&v.d(k),destroy_component(m,k),destroy_component(y,k)}}}function create_if_block_1$x(u){let l,f,p;return{c(){l=element("div"),f=element("div"),p=text$1(u[9]),attr(f,"class","name svelte-1f32c0v"),attr(l,"class","text svelte-1f32c0v")},m(m,b){insert(m,l,b),append$2(l,f),append$2(f,p)},p(m,b){b&512&&set_data(p,m[9])},d(m){m&&detach(l)}}}function create_control_slot(u){let l,f,p,m,b,y;f=new UserAvatar({props:{user:u[5],size:"M",showTooltip:!1}});let w=!u[0]&&create_if_block_1$x(u);return b=new Icon$1({props:{size:"S",name:"caret-down",color:"var(--navTextColor)"}}),{c(){l=element("div"),create_component(f.$$.fragment),p=space(),w&&w.c(),m=space(),create_component(b.$$.fragment),attr(l,"class","container svelte-1f32c0v")},m(v,k){insert(v,l,k),mount_component(f,l,null),append$2(l,p),w&&w.m(l,null),append$2(l,m),mount_component(b,l,null),y=!0},p(v,k){const S={};k&32&&(S.user=v[5]),f.$set(S),v[0]?w&&(w.d(1),w=null):w?w.p(v,k):(w=create_if_block_1$x(v),w.c(),w.m(l,m))},i(v){y||(transition_in(f.$$.fragment,v),transition_in(b.$$.fragment,v),y=!0)},o(v){transition_out(f.$$.fragment,v),transition_out(b.$$.fragment,v),y=!1},d(v){v&&detach(l),destroy_component(f),w&&w.d(),destroy_component(b)}}}function create_default_slot_1$s(u){let l,f;return l=new ProfileModal({props:{API:API$1,user:u[1],notifySuccess:u[12].actions.success,notifyError:u[12].actions.error}}),l.$on("save",u[18]),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&2&&(b.user=p[1]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot$_(u){let l,f;return l=new ChangePasswordModal({props:{API:API$1,passwordMinLength:u[2].passwordMinLength,notifySuccess:u[12].actions.success,notifyError:u[12].actions.error}}),l.$on("save",u[20]),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m&4&&(b.passwordMinLength=p[2].passwordMinLength),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1S(u){let l,f,p=u[1]&&create_if_block$18(u);return{c(){p&&p.c(),l=empty$1()},m(m,b){p&&p.m(m,b),insert(m,l,b),f=!0},p(m,[b]){m[1]?p?(p.p(m,b),b&2&&transition_in(p,1)):(p=create_if_block$18(m),p.c(),transition_in(p,1),p.m(l.parentNode,l)):p&&(group_outros(),transition_out(p,1,1,()=>{p=null}),check_outros())},i(m){f||(transition_in(p),f=!0)},o(m){transition_out(p),f=!1},d(m){m&&detach(l),p&&p.d(m)}}}function instance$1R(u,l,f){let p,m,b,y,w,v,k,S,B,{compact:O=!1}=l;const{authStore:R,environmentStore:U,notificationStore:$,appStore:X}=getContext$1("sdk");component_subscribe(u,R,de=>f(1,k=de)),component_subscribe(u,U,de=>f(2,B=de)),component_subscribe(u,X,de=>f(15,S=de));let K,J;const Z=de=>{if(!de)return"";if(de.firstName){let Te=de.firstName;return de.lastName&&(Te+=` ${de.lastName}`),Te}else return de.email},se=()=>{window.location.href=m?"/builder/portal/workspaces":"/builder/apps"},ie=()=>K==null?void 0:K.show(),ce=()=>{y?window.location.href=`${B.accountPortalUrl}/portal/account`:J==null||J.show()},pe=()=>R.actions.fetchUser();function me(de){binding_callbacks[de?"unshift":"push"](()=>{K=de,f(3,K)})}const we=()=>R.actions.logOut();function be(de){binding_callbacks[de?"unshift":"push"](()=>{J=de,f(4,J)})}return u.$$set=de=>{"compact"in de&&f(0,O=de.compact)},u.$$.update=()=>{u.$$.dirty&2&&f(9,p=Z(k)),u.$$.dirty&2&&(m=hasBuilderPermissions(k)),u.$$.dirty&2&&f(8,b=k!=null&&isSSOUser(k)),u.$$.dirty&6&&f(7,y=(k==null?void 0:k.accountPortalAccess)&&B.cloud),u.$$.dirty&32768&&f(6,w=S.embedded||S.inIframe),u.$$.dirty&2&&f(5,v=k)},[O,k,B,K,J,v,w,y,b,p,R,U,$,X,se,S,ie,ce,pe,me,we,be]}class UserMenu extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1R,create_fragment$1S,safe_not_equal,{compact:0})}}const Logo_svelte_svelte_type_style_lang="";function create_if_block$17(u){let l,f;function p(y,w){return w&38&&(l=null),l==null&&(l=!!(y[1]&&y[5](y[1])&&!y[2])),l?create_if_block_1$w:y[1]?create_if_block_2$j:create_else_block$g}let m=p(u,-1),b=m(u);return{c(){b.c(),f=empty$1()},m(y,w){b.m(y,w),insert(y,f,w)},p(y,w){m===(m=p(y,w))&&b?b.p(y,w):(b.d(1),b=m(y),b&&(b.c(),b.m(f.parentNode,f)))},d(y){y&&detach(f),b.d(y)}}}function create_else_block$g(u){let l,f;return{c(){l=element("img"),src_url_equal(l.src,f=u[0]||"/builder/bblogo.png")||attr(l,"src",f),attr(l,"alt",u[4]),attr(l,"class","svelte-17w40j6")},m(p,m){insert(p,l,m)},p(p,m){m&1&&!src_url_equal(l.src,f=p[0]||"/builder/bblogo.png")&&attr(l,"src",f),m&16&&attr(l,"alt",p[4])},d(p){p&&detach(l)}}}function create_if_block_2$j(u){let l,f,p,m,b;return{c(){l=element("a"),f=element("img"),src_url_equal(f.src,p=u[0]||"/builder/bblogo.png")||attr(f,"src",p),attr(f,"alt",u[4]),attr(f,"class","svelte-17w40j6"),attr(l,"target",m=u[2]?"_blank":"_self"),attr(l,"href",b=u[6](u[1],u[2]))},m(y,w){insert(y,l,w),append$2(l,f)},p(y,w){w&1&&!src_url_equal(f.src,p=y[0]||"/builder/bblogo.png")&&attr(f,"src",p),w&16&&attr(f,"alt",y[4]),w&4&&m!==(m=y[2]?"_blank":"_self")&&attr(l,"target",m),w&70&&b!==(b=y[6](y[1],y[2]))&&attr(l,"href",b)},d(y){y&&detach(l)}}}function create_if_block_1$w(u){let l,f,p,m,b,y;return{c(){l=element("a"),f=element("img"),src_url_equal(f.src,p=u[0]||"/builder/bblogo.png")||attr(f,"src",p),attr(f,"alt",u[4]),attr(f,"class","svelte-17w40j6"),attr(l,"href",m=u[6](u[1],u[2]))},m(w,v){insert(w,l,v),append$2(l,f),b||(y=action_destroyer(u[7].call(null,l)),b=!0)},p(w,v){v&1&&!src_url_equal(f.src,p=w[0]||"/builder/bblogo.png")&&attr(f,"src",p),v&16&&attr(f,"alt",w[4]),v&70&&m!==(m=w[6](w[1],w[2]))&&attr(l,"href",m)},d(w){w&&detach(l),b=!1,y()}}}function create_fragment$1R(u){let l,f=!u[3]&&create_if_block$17(u);return{c(){f&&f.c(),l=empty$1()},m(p,m){f&&f.m(p,m),insert(p,l,m)},p(p,[m]){p[3]?f&&(f.d(1),f=null):f?f.p(p,m):(f=create_if_block$17(p),f.c(),f.m(l.parentNode,l))},i:noop$4,o:noop$4,d(p){p&&detach(l),f&&f.d(p)}}}function instance$1Q(u,l,f){let{logoUrl:p}=l,{logoLinkUrl:m}=l,{openLogoLinkInNewTab:b}=l,{hideLogo:y=!1}=l,{title:w}=l,{isInternal:v}=l,{getSanitizedUrl:k}=l,{linkable:S}=l;return u.$$set=B=>{"logoUrl"in B&&f(0,p=B.logoUrl),"logoLinkUrl"in B&&f(1,m=B.logoLinkUrl),"openLogoLinkInNewTab"in B&&f(2,b=B.openLogoLinkInNewTab),"hideLogo"in B&&f(3,y=B.hideLogo),"title"in B&&f(4,w=B.title),"isInternal"in B&&f(5,v=B.isInternal),"getSanitizedUrl"in B&&f(6,k=B.getSanitizedUrl),"linkable"in B&&f(7,S=B.linkable)},[p,m,b,y,w,v,k,S]}class Logo extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1Q,create_fragment$1R,safe_not_equal,{logoUrl:0,logoLinkUrl:1,openLogoLinkInNewTab:2,hideLogo:3,title:4,isInternal:5,getSanitizedUrl:6,linkable:7})}}const getActiveConditions=u=>u!=null&&u.length?u.filter(l=>{l.valueType==="number"?(l.referenceValue=parseFloat(l.referenceValue),l.newValue=parseFloat(l.newValue)):l.valueType==="datetime"?(l.referenceValue&&(l.referenceValue=new Date(l.referenceValue).toISOString()),l.newValue&&(l.newValue=new Date(l.newValue).toISOString())):l.valueType==="boolean"&&(l.referenceValue=`${l.referenceValue}`.toLowerCase()==="true",l.newValue=`${l.newValue}`.toLowerCase()==="true");const f={...l,type:l.valueType,field:"newValue",value:l.referenceValue};let p=buildQuery$1([f]);return p.onEmptyFilter=EmptyFilterOption.RETURN_NONE,runQuery$1([f],p).length>0}):[],reduceConditionActions=u=>{let l={},f=null;return u==null||u.forEach(p=>{p.action==="show"?f=!0:p.action==="hide"?f=!1:p.setting&&(l[p.setting]=p.settingValue)}),{settingUpdates:l,visible:f}},Layout_svelte_svelte_type_style_lang="";function get_each_context$i(u,l,f){const p=u.slice();return p[63]=l[f],p}function create_if_block$16(u){let l,f,p,m,b,y,w,v,k,S,B,O,R,U,$,X,K,J,Z=u[24].length&&create_if_block_8$2(u),se=u[10]==="top"&&create_if_block_7$4(u),ie=!u[1]&&u[0]&&create_if_block_6$4(u),ce=!u[9]&&create_if_block_5$6(),pe=u[24].length&&create_if_block_3$c(u),me=!u[9]&&create_if_block_1$v(u);return{c(){var we;l=element("div"),f=element("div"),p=element("div"),m=element("div"),Z&&Z.c(),b=space(),y=element("div"),se&&se.c(),w=space(),ie&&ie.c(),v=space(),ce&&ce.c(),k=space(),S=element("div"),B=space(),pe&&pe.c(),O=space(),me&&me.c(),attr(y,"class","logo svelte-1r1yuqu"),attr(m,"class","nav-header svelte-1r1yuqu"),attr(S,"class","mobile-click-handler svelte-1r1yuqu"),toggle_class(S,"visible",u[16]),attr(p,"class",R="nav nav--"+u[23]+" size--"+u[22]+" svelte-1r1yuqu"),attr(f,"class",U="nav-wrapper "+u[17]+"-dom svelte-1r1yuqu"),attr(f,"style",u[20]),toggle_class(f,"sticky",u[5]),toggle_class(f,"hidden",(we=u[25].queryParams)==null?void 0:we.peek),toggle_class(f,"clickable",u[14].inBuilder),attr(l,"class",$="interactive component "+u[17]+" svelte-1r1yuqu"),attr(l,"data-id",u[17]),attr(l,"data-name","Navigation"),attr(l,"data-icon","eye")},m(we,be){insert(we,l,be),append$2(l,f),append$2(f,p),append$2(p,m),Z&&Z.m(m,null),append$2(m,b),append$2(m,y),se&&se.m(y,null),append$2(y,w),ie&&ie.m(y,null),append$2(m,v),ce&&ce.m(m,null),append$2(p,k),append$2(p,S),append$2(p,B),pe&&pe.m(p,null),append$2(p,O),me&&me.m(p,null),X=!0,K||(J=[listen(S,"click",u[49]),listen(f,"click",function(){is_function(u[14].inBuilder?u[29].actions.selectComponent(u[17]):null)&&(u[14].inBuilder?u[29].actions.selectComponent(u[17]):null).apply(this,arguments)})],K=!0)},p(we,be){var de;u=we,u[24].length?Z?(Z.p(u,be),be[0]&16777216&&transition_in(Z,1)):(Z=create_if_block_8$2(u),Z.c(),transition_in(Z,1),Z.m(m,b)):Z&&(group_outros(),transition_out(Z,1,1,()=>{Z=null}),check_outros()),u[10]==="top"?se?(se.p(u,be),be[0]&1024&&transition_in(se,1)):(se=create_if_block_7$4(u),se.c(),transition_in(se,1),se.m(y,w)):se&&(group_outros(),transition_out(se,1,1,()=>{se=null}),check_outros()),!u[1]&&u[0]?ie?(ie.p(u,be),be[0]&3&&transition_in(ie,1)):(ie=create_if_block_6$4(u),ie.c(),transition_in(ie,1),ie.m(y,null)):ie&&(group_outros(),transition_out(ie,1,1,()=>{ie=null}),check_outros()),u[9]?ce&&(group_outros(),transition_out(ce,1,1,()=>{ce=null}),check_outros()):ce?be[0]&512&&transition_in(ce,1):(ce=create_if_block_5$6(),ce.c(),transition_in(ce,1),ce.m(m,null)),(!X||be[0]&65536)&&toggle_class(S,"visible",u[16]),u[24].length?pe?(pe.p(u,be),be[0]&16777216&&transition_in(pe,1)):(pe=create_if_block_3$c(u),pe.c(),transition_in(pe,1),pe.m(p,O)):pe&&(group_outros(),transition_out(pe,1,1,()=>{pe=null}),check_outros()),u[9]?me&&(group_outros(),transition_out(me,1,1,()=>{me=null}),check_outros()):me?(me.p(u,be),be[0]&512&&transition_in(me,1)):(me=create_if_block_1$v(u),me.c(),transition_in(me,1),me.m(p,null)),(!X||be[0]&12582912&&R!==(R="nav nav--"+u[23]+" size--"+u[22]+" svelte-1r1yuqu"))&&attr(p,"class",R),(!X||be[0]&131072&&U!==(U="nav-wrapper "+u[17]+"-dom svelte-1r1yuqu"))&&attr(f,"class",U),(!X||be[0]&1048576)&&attr(f,"style",u[20]),(!X||be[0]&131104)&&toggle_class(f,"sticky",u[5]),(!X||be[0]&33685504)&&toggle_class(f,"hidden",(de=u[25].queryParams)==null?void 0:de.peek),(!X||be[0]&147456)&&toggle_class(f,"clickable",u[14].inBuilder),(!X||be[0]&131072&&$!==($="interactive component "+u[17]+" svelte-1r1yuqu"))&&attr(l,"class",$),(!X||be[0]&131072)&&attr(l,"data-id",u[17])},i(we){X||(transition_in(Z),transition_in(se),transition_in(ie),transition_in(ce),transition_in(pe),transition_in(me),X=!0)},o(we){transition_out(Z),transition_out(se),transition_out(ie),transition_out(ce),transition_out(pe),transition_out(me),X=!1},d(we){we&&detach(l),Z&&Z.d(),se&&se.d(),ie&&ie.d(),ce&&ce.d(),pe&&pe.d(),me&&me.d(),K=!1,run_all(J)}}}function create_if_block_8$2(u){let l,f,p;return f=new Icon$1({props:{hoverable:!0,name:"list",color:"var(--navTextColor)"}}),f.$on("click",u[48]),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","burger svelte-1r1yuqu")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p:noop$4,i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_if_block_7$4(u){let l,f;return l=new Logo({props:{logoUrl:u[2],logoLinkUrl:u[6],openLogoLinkInNewTab:u[7],hideLogo:u[3],title:u[0],linkable:u[28],isInternal:u[34],getSanitizedUrl:u[35]}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m[0]&4&&(b.logoUrl=p[2]),m[0]&64&&(b.logoLinkUrl=p[6]),m[0]&128&&(b.openLogoLinkInNewTab=p[7]),m[0]&8&&(b.hideLogo=p[3]),m[0]&1&&(b.title=p[0]),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_if_block_6$4(u){let l,f;return l=new Heading$1({props:{size:u[11],textAlign:u[8],color:u[12],$$slots:{default:[create_default_slot$Z]},$$scope:{ctx:u}}}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){const b={};m[0]&2048&&(b.size=p[11]),m[0]&256&&(b.textAlign=p[8]),m[0]&4096&&(b.color=p[12]),m[0]&1|m[1]&1048576&&(b.$$scope={dirty:m,ctx:p}),l.$set(b)},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_default_slot$Z(u){let l;return{c(){l=text$1(u[0])},m(f,p){insert(f,l,p)},p(f,p){p[0]&1&&set_data(l,f[0])},d(f){f&&detach(l)}}}function create_if_block_5$6(u){let l,f,p;return f=new UserMenu({props:{compact:!0}}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","user top svelte-1r1yuqu")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_if_block_3$c(u){let l,f,p=ensure_array_like(u[24]),m=[];for(let y=0;y<p.length;y+=1)m[y]=create_each_block$i(get_each_context$i(u,p,y));const b=y=>transition_out(m[y],1,1,()=>{m[y]=null});return{c(){l=element("div");for(let y=0;y<m.length;y+=1)m[y].c();attr(l,"class","links svelte-1r1yuqu"),toggle_class(l,"visible",u[16])},m(y,w){insert(y,l,w);for(let v=0;v<m.length;v+=1)m[v]&&m[v].m(l,null);f=!0},p(y,w){if(w[0]&16785424|w[1]&38){p=ensure_array_like(y[24]);let v;for(v=0;v<p.length;v+=1){const k=get_each_context$i(y,p,v);m[v]?(m[v].p(k,w),transition_in(m[v],1)):(m[v]=create_each_block$i(k),m[v].c(),transition_in(m[v],1),m[v].m(l,null))}for(group_outros(),v=p.length;v<m.length;v+=1)b(v);check_outros()}(!f||w[0]&65536)&&toggle_class(l,"visible",y[16])},i(y){if(!f){for(let w=0;w<p.length;w+=1)transition_in(m[w]);f=!0}},o(y){m=m.filter(Boolean);for(let w=0;w<m.length;w+=1)transition_out(m[w]);f=!1},d(y){y&&detach(l),destroy_each(m,y)}}}function create_if_block_4$9(u){var p;let l,f;return l=new NavItem({props:{type:u[63].type,text:u[63].text,url:u[63].url,subLinks:u[63].subLinks,icon:u[63].icon,internalLink:u[63].internalLink,customStyles:(p=u[63]._styles)==null?void 0:p.custom,leftNav:u[4]==="Left",mobile:u[13],navStateStore:u[32]}}),l.$on("clickLink",u[36]),{c(){create_component(l.$$.fragment)},m(m,b){mount_component(l,m,b),f=!0},p(m,b){var w;const y={};b[0]&16777216&&(y.type=m[63].type),b[0]&16777216&&(y.text=m[63].text),b[0]&16777216&&(y.url=m[63].url),b[0]&16777216&&(y.subLinks=m[63].subLinks),b[0]&16777216&&(y.icon=m[63].icon),b[0]&16777216&&(y.internalLink=m[63].internalLink),b[0]&16777216&&(y.customStyles=(w=m[63]._styles)==null?void 0:w.custom),b[0]&16&&(y.leftNav=m[4]==="Left"),b[0]&8192&&(y.mobile=m[13]),l.$set(y)},i(m){f||(transition_in(l.$$.fragment,m),f=!0)},o(m){transition_out(l.$$.fragment,m),f=!1},d(m){destroy_component(l,m)}}}function create_each_block$i(u){let l=u[33](u[63]._conditions),f,p,m=l&&create_if_block_4$9(u);return{c(){m&&m.c(),f=empty$1()},m(b,y){m&&m.m(b,y),insert(b,f,y),p=!0},p(b,y){y[0]&16777216&&(l=b[33](b[63]._conditions)),l?m?(m.p(b,y),y[0]&16777216&&transition_in(m,1)):(m=create_if_block_4$9(b),m.c(),transition_in(m,1),m.m(f.parentNode,f)):m&&(group_outros(),transition_out(m,1,1,()=>{m=null}),check_outros())},i(b){p||(transition_in(m),p=!0)},o(b){transition_out(m),p=!1},d(b){b&&detach(f),m&&m.d(b)}}}function create_if_block_1$v(u){let l,f,p,m;f=new UserMenu({});let b=u[10]==="bottom"&&create_if_block_2$i(u);return{c(){l=element("div"),create_component(f.$$.fragment),p=space(),b&&b.c(),attr(l,"class","user left svelte-1r1yuqu")},m(y,w){insert(y,l,w),mount_component(f,l,null),append$2(l,p),b&&b.m(l,null),m=!0},p(y,w){y[10]==="bottom"?b?(b.p(y,w),w[0]&1024&&transition_in(b,1)):(b=create_if_block_2$i(y),b.c(),transition_in(b,1),b.m(l,null)):b&&(group_outros(),transition_out(b,1,1,()=>{b=null}),check_outros())},i(y){m||(transition_in(f.$$.fragment,y),transition_in(b),m=!0)},o(y){transition_out(f.$$.fragment,y),transition_out(b),m=!1},d(y){y&&detach(l),destroy_component(f),b&&b.d()}}}function create_if_block_2$i(u){let l,f,p;return f=new Logo({props:{logoUrl:u[2],logoLinkUrl:u[6],openLogoLinkInNewTab:u[7],hideLogo:u[3],title:u[0],linkable:u[28],isInternal:u[34],getSanitizedUrl:u[35]}}),{c(){l=element("div"),create_component(f.$$.fragment)},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p(m,b){const y={};b[0]&4&&(y.logoUrl=m[2]),b[0]&64&&(y.logoLinkUrl=m[6]),b[0]&128&&(y.openLogoLinkInNewTab=m[7]),b[0]&8&&(y.hideLogo=m[3]),b[0]&1&&(y.title=m[0]),f.$set(y)},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_fragment$1Q(u){let l,f,p,m,b,y,w,v,k,S,B,O,R,U,$,X,K,J=u[23]!=="none"&&create_if_block$16(u);const Z=u[47].default,se=create_slot(Z,u,u[51],null);return S=new Icon$1({props:{color:"var(--spectrum-global-color-gray-600)",name:"caret-line-right",hoverable:!0}}),S.$on("click",u[30].actions.close),{c(){l=element("div"),f=element("div"),J&&J.c(),p=space(),m=element("div"),b=element("div"),se&&se.c(),w=space(),v=element("div"),k=element("div"),create_component(S.$$.fragment),O=space(),R=element("div"),attr(b,"class",y="main size--"+u[21]+" svelte-1r1yuqu"),attr(m,"class","main-wrapper svelte-1r1yuqu"),attr(f,"class","screen-wrapper layout-body svelte-1r1yuqu"),attr(k,"class","side-panel-header svelte-1r1yuqu"),attr(v,"id","side-panel-container"),attr(v,"class","svelte-1r1yuqu"),toggle_class(v,"open",u[15].open),toggle_class(v,"builder",u[14].inBuilder),attr(R,"class","modal-container"),attr(l,"class",U="component layout layout--"+u[23]+" svelte-1r1yuqu"),attr(l,"data-id",u[18]),attr(l,"data-name","Screen"),attr(l,"data-icon","browser"),toggle_class(l,"desktop",!u[13]),toggle_class(l,"mobile",!!u[13])},m(ie,ce){insert(ie,l,ce),append$2(l,f),J&&J.m(f,null),append$2(f,p),append$2(f,m),append$2(m,b),se&&se.m(b,null),append$2(l,w),append$2(l,v),append$2(v,k),mount_component(S,k,null),append$2(l,O),append$2(l,R),$=!0,X||(K=[listen(m,"click",u[50]),action_destroyer(B=clickOutside.call(null,v,u[19]?u[30].actions.close:null))],X=!0)},p(ie,ce){ie[23]!=="none"?J?(J.p(ie,ce),ce[0]&8388608&&transition_in(J,1)):(J=create_if_block$16(ie),J.c(),transition_in(J,1),J.m(f,p)):J&&(group_outros(),transition_out(J,1,1,()=>{J=null}),check_outros()),se&&se.p&&(!$||ce[1]&1048576)&&update_slot_base(se,Z,ie,ie[51],$?get_slot_changes(Z,ie[51],ce,null):get_all_dirty_from_scope(ie[51]),null),(!$||ce[0]&2097152&&y!==(y="main size--"+ie[21]+" svelte-1r1yuqu"))&&attr(b,"class",y),B&&is_function(B.update)&&ce[0]&524288&&B.update.call(null,ie[19]?ie[30].actions.close:null),(!$||ce[0]&32768)&&toggle_class(v,"open",ie[15].open),(!$||ce[0]&16384)&&toggle_class(v,"builder",ie[14].inBuilder),(!$||ce[0]&8388608&&U!==(U="component layout layout--"+ie[23]+" svelte-1r1yuqu"))&&attr(l,"class",U),(!$||ce[0]&262144)&&attr(l,"data-id",ie[18]),(!$||ce[0]&8396800)&&toggle_class(l,"desktop",!ie[13]),(!$||ce[0]&8396800)&&toggle_class(l,"mobile",!!ie[13])},i(ie){$||(transition_in(J),transition_in(se,ie),transition_in(S.$$.fragment,ie),$=!0)},o(ie){transition_out(J),transition_out(se,ie),transition_out(S.$$.fragment,ie),$=!1},d(ie){ie&&detach(l),J&&J.d(),se&&se.d(ie),destroy_component(S),X=!1,run_all(K)}}}function instance$1P(u,l,f){let p,m,b,y,w,v,k,S,B,O,R,U,$,X,K,{$$slots:J={},$$scope:Z}=l;const se=getContext$1("sdk"),{routeStore:ie,roleStore:ce,linkable:pe,builderStore:me,sidePanelStore:we,modalStore:be}=se;component_subscribe(u,ie,Ht=>f(25,K=Ht)),component_subscribe(u,ce,Ht=>f(46,X=Ht)),component_subscribe(u,me,Ht=>f(14,R=Ht)),component_subscribe(u,we,Ht=>f(15,U=Ht));const de=getContext$1("context");component_subscribe(u,de,Ht=>f(45,$=Ht));const Te=writable({});let{title:Oe}=l,{hideTitle:$e=!1}=l,{logoUrl:he}=l,{hideLogo:Fe=!1}=l,{navigation:Re="Top"}=l,{sticky:Ge=!1}=l,{links:Ze}=l,{width:at="Large"}=l,{navBackground:Pt}=l,{navTextColor:_t}=l,{navWidth:He}=l,{pageWidth:gt}=l,{logoLinkUrl:Tt}=l,{logoHeight:ht}=l,{openLogoLinkInNewTab:bt}=l,{textAlign:ct}=l,{embedded:lt=!1}=l;const Et={Top:"top",Left:"left",None:"none"},ft={Max:"max",Large:"l",Medium:"m",Small:"s","Extra small":"xs"};let{logoPosition:It="top"}=l,{titleSize:zt="S"}=l,{titleColor:In}=l,_n=!1;const pn=writable({headerHeight:0});setContext("layout",pn);const fn=Ht=>{const Ot=kn(Ht.url);return{...Ht,internalLink:Ot,url:Ot?Ht.url:Hn(Ht.url)}},Bn=(Ht,Ot)=>Ht!=null&&Ht.length?Ht.filter(On=>{if(!On.text||On.type!=="sublinks"&&!On.url)return!1;const rn=On.roleId||Roles.BASIC;return Ot==null?void 0:Ot.find(Vt=>Vt===rn)}).map(On=>{var Vt;const rn=fn(On);return On.type==="sublinks"&&((Vt=On.subLinks)!=null&&Vt.length)&&(rn.subLinks=On.subLinks.filter(Nn=>Nn.text&&Nn.url).map(fn)),rn}):[];function Wt(Ht=[]){if(!(Ht!=null&&Ht.length))return!0;const Ot=getActiveConditions(Ht),{visible:On}=reduceConditionActions(Ot);return On??!Ht.some(Vt=>Vt.action==="show")}const kn=Ht=>Ht==null?void 0:Ht.startsWith("/"),Hn=Ht=>Ht!=null&&Ht.length?Ht.startsWith("http")?Ht:`http://${Ht}`:Ht,an=(Ht,Ot)=>Ht!=="Left"?0:Ot?"0px":"250px",ir=(Ht,Ot)=>Ot?!Ht||Ht==="None"?0:"61px":Ht==="Top"?"137px":"0px",un=(Ht,Ot,On,rn,Vt)=>{let Nn=`--width:${rn}px; --height:${Vt}px;`;return Ht&&(Nn+=`--navBackground:${Ht};`),Ot&&(Nn+=`--navTextColor:${Ot};`),Nn+=`--logoHeight:${On||24}px;`,Nn},mn=(Ht,Ot)=>kn(Ht)?Ot?`#${Ht}`:Ht:Hn(Ht),Rt=()=>{f(16,_n=!1),we.actions.close(),be.actions.close()},ot=()=>f(16,_n=!_n),mt=()=>f(16,_n=!1),en=()=>{R.inBuilder&&me.actions.selectComponent(S)};return u.$$set=Ht=>{"title"in Ht&&f(0,Oe=Ht.title),"hideTitle"in Ht&&f(1,$e=Ht.hideTitle),"logoUrl"in Ht&&f(2,he=Ht.logoUrl),"hideLogo"in Ht&&f(3,Fe=Ht.hideLogo),"navigation"in Ht&&f(4,Re=Ht.navigation),"sticky"in Ht&&f(5,Ge=Ht.sticky),"links"in Ht&&f(37,Ze=Ht.links),"width"in Ht&&f(38,at=Ht.width),"navBackground"in Ht&&f(39,Pt=Ht.navBackground),"navTextColor"in Ht&&f(40,_t=Ht.navTextColor),"navWidth"in Ht&&f(41,He=Ht.navWidth),"pageWidth"in Ht&&f(42,gt=Ht.pageWidth),"logoLinkUrl"in Ht&&f(6,Tt=Ht.logoLinkUrl),"logoHeight"in Ht&&f(43,ht=Ht.logoHeight),"openLogoLinkInNewTab"in Ht&&f(7,bt=Ht.openLogoLinkInNewTab),"textAlign"in Ht&&f(8,ct=Ht.textAlign),"embedded"in Ht&&f(9,lt=Ht.embedded),"logoPosition"in Ht&&f(10,It=Ht.logoPosition),"titleSize"in Ht&&f(11,zt=Ht.titleSize),"titleColor"in Ht&&f(12,In=Ht.titleColor),"$$scope"in Ht&&f(51,Z=Ht.$$scope)},u.$$.update=()=>{var Ht,Ot,On,rn;if(u.$$.dirty[1]&16384&&f(13,p=$.device.mobile),u.$$.dirty[0]&8208&&pn.set({screenXOffset:an(Re,p),screenYOffset:ir(Re,p)}),u.$$.dirty[1]&32832&&f(24,m=Bn(Ze,X)),u.$$.dirty[0]&16&&f(23,b=Et[Re]||Et.None),u.$$.dirty[1]&1152&&f(22,y=ft[He||at]||ft.Large),u.$$.dirty[1]&2176&&f(21,w=ft[gt||at]||ft.Large),u.$$.dirty[1]&21248&&f(20,v=un(Pt,_t,ht,$.device.width,$.device.height)),u.$$.dirty[0]&49152&&f(19,k=!R.inBuilder&&U.open&&!U.ignoreClicksOutside),u.$$.dirty[0]&16384&&f(18,S=R.inBuilder?`${(Ht=R.screen)==null?void 0:Ht._id}-screen`:"screen"),u.$$.dirty[0]&16384&&f(17,B=R.inBuilder?`${(Ot=R.screen)==null?void 0:Ot._id}-navigation`:"navigation"),u.$$.dirty[0]&16384&&f(44,O=R.inBuilder&&((On=R.selectedComponentId)==null?void 0:On.endsWith("-navigation"))),u.$$.dirty[1]&8192&&O){const Vt=(rn=document.getElementsByClassName("nav-wrapper"))==null?void 0:rn[0];Vt&&(Vt.style.scrollMargin="100px",Vt.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"}))}},[Oe,$e,he,Fe,Re,Ge,Tt,bt,ct,lt,It,zt,In,p,R,U,_n,B,S,k,v,w,y,b,m,K,ie,ce,pe,me,we,de,Te,Wt,kn,mn,Rt,Ze,at,Pt,_t,He,gt,ht,O,$,X,J,ot,mt,en,Z]}class Layout extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1P,create_fragment$1Q,safe_not_equal,{title:0,hideTitle:1,logoUrl:2,hideLogo:3,navigation:4,sticky:5,links:37,width:38,navBackground:39,navTextColor:40,navWidth:41,pageWidth:42,logoLinkUrl:6,logoHeight:43,openLogoLinkInNewTab:7,textAlign:8,embedded:9,logoPosition:10,titleSize:11,titleColor:12},null,[-1,-1,-1])}}const Link_svelte_svelte_type_style_lang="";function create_if_block_1$u(u){let l;function f(b,y){return b[7]||b[0]?create_if_block_2$h:create_else_block$f}let p=f(u),m=p(u);return{c(){m.c(),l=empty$1()},m(b,y){m.m(b,y),insert(b,l,y)},p(b,y){p===(p=f(b))&&m?m.p(b,y):(m.d(1),m=p(b),m&&(m.c(),m.m(l.parentNode,l)))},d(b){b&&detach(l),m.d(b)}}}function create_if_block$15(u){let l,f,p,m,b,y;return{c(){l=element("div"),f=text$1(u[13]),attr(l,"contenteditable",""),attr(l,"class",p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23"),toggle_class(l,"bold",u[2]),toggle_class(l,"italic",u[3]),toggle_class(l,"underline",u[4])},m(w,v){insert(w,l,v),append$2(l,f),u[25](l),b||(y=[action_destroyer(m=u[17].call(null,l,u[11])),listen(l,"blur",function(){is_function(u[8].editing?u[21]:null)&&(u[8].editing?u[21]:null).apply(this,arguments)}),listen(l,"input",u[26])],b=!0)},p(w,v){u=w,v[0]&8192&&set_data_contenteditable(f,u[13]),v[0]&34&&p!==(p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23")&&attr(l,"class",p),m&&is_function(m.update)&&v[0]&2048&&m.update.call(null,u[11]),v[0]&38&&toggle_class(l,"bold",u[2]),v[0]&42&&toggle_class(l,"italic",u[3]),v[0]&50&&toggle_class(l,"underline",u[4])},d(w){w&&detach(l),u[25](null),b=!1,run_all(y)}}}function create_else_block$f(u){let l=u[12],f,p=create_key_block$8(u);return{c(){p.c(),f=empty$1()},m(m,b){p.m(m,b),insert(m,f,b)},p(m,b){b[0]&4096&&safe_not_equal(l,l=m[12])?(p.d(1),p=create_key_block$8(m),p.c(),p.m(f.parentNode,f)):p.p(m,b)},d(m){m&&detach(f),p.d(m)}}}function create_if_block_2$h(u){let l,f,p,m,b,y;return{c(){l=element("a"),f=text$1(u[13]),attr(l,"target",u[15]),attr(l,"href",u[12]),attr(l,"class",p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23"),toggle_class(l,"placeholder",u[14]),toggle_class(l,"bold",u[2]),toggle_class(l,"italic",u[3]),toggle_class(l,"underline",u[4])},m(w,v){insert(w,l,v),append$2(l,f),b||(y=action_destroyer(m=u[17].call(null,l,u[11])),b=!0)},p(w,v){v[0]&8192&&set_data(f,w[13]),v[0]&32768&&attr(l,"target",w[15]),v[0]&4096&&attr(l,"href",w[12]),v[0]&34&&p!==(p="align--"+(w[1]||"left")+" size--"+(w[5]||"M")+" svelte-1dqdd23")&&attr(l,"class",p),m&&is_function(m.update)&&v[0]&2048&&m.update.call(null,w[11]),v[0]&16418&&toggle_class(l,"placeholder",w[14]),v[0]&38&&toggle_class(l,"bold",w[2]),v[0]&42&&toggle_class(l,"italic",w[3]),v[0]&50&&toggle_class(l,"underline",w[4])},d(w){w&&detach(l),b=!1,y()}}}function create_key_block$8(u){let l,f,p,m,b,y;return{c(){l=element("a"),f=text$1(u[13]),attr(l,"href",u[12]),attr(l,"class",p="align--"+(u[1]||"left")+" size--"+(u[5]||"M")+" svelte-1dqdd23"),toggle_class(l,"placeholder",u[14]),toggle_class(l,"bold",u[2]),toggle_class(l,"italic",u[3]),toggle_class(l,"underline",u[4])},m(w,v){insert(w,l,v),append$2(l,f),b||(y=[action_destroyer(u[16].call(null,l)),action_destroyer(m=u[17].call(null,l,u[11])),listen(l,"click",u[20])],b=!0)},p(w,v){v[0]&8192&&set_data(f,w[13]),v[0]&4096&&attr(l,"href",w[12]),v[0]&34&&p!==(p="align--"+(w[1]||"left")+" size--"+(w[5]||"M")+" svelte-1dqdd23")&&attr(l,"class",p),m&&is_function(m.update)&&v[0]&2048&&m.update.call(null,w[11]),v[0]&16418&&toggle_class(l,"placeholder",w[14]),v[0]&38&&toggle_class(l,"bold",w[2]),v[0]&42&&toggle_class(l,"italic",w[3]),v[0]&50&&toggle_class(l,"underline",w[4])},d(w){w&&detach(l),b=!1,run_all(y)}}}function create_fragment$1P(u){let l;function f(b,y){if(b[8].editing)return create_if_block$15;if(b[9].inBuilder||b[13])return create_if_block_1$u}let p=f(u),m=p&&p(u);return{c(){m&&m.c(),l=empty$1()},m(b,y){m&&m.m(b,y),insert(b,l,y)},p(b,y){p===(p=f(b))&&m?m.p(b,y):(m&&m.d(1),m=p&&p(b),m&&(m.c(),m.m(l.parentNode,l)))},i:noop$4,o:noop$4,d(b){b&&detach(l),m&&m.d(b)}}}function instance$1O(u,l,f){let p,m,b,y,w,v,k,S;const{linkable:B,styleable:O,builderStore:R,sidePanelStore:U,modalStore:$}=getContext$1("sdk");component_subscribe(u,R,Ze=>f(9,S=Ze));const X=getContext$1("component");component_subscribe(u,X,Ze=>f(8,k=Ze));let{url:K}=l,{text:J}=l,{openInNewTab:Z}=l,{color:se}=l,{align:ie}=l,{bold:ce}=l,{italic:pe}=l,{underline:me}=l,{size:we}=l,be,de=!1;const Te=()=>{U.actions.close(),$.actions.close()},Oe=(Ze,at,Pt)=>Ze?at?Ze:Z?`#${Ze}`:Ze:at||Pt?"#/":"/",$e=(Ze,at,Pt)=>!at.inBuilder||Pt.editing?Ze||"":Ze||Pt.name||"Placeholder text",he=(Ze,at)=>at?{...Ze,normal:{...Ze==null?void 0:Ze.normal,color:at}}:Ze,Fe=Ze=>{de&&R.actions.updateProp("text",Ze.target.textContent),f(10,de=!1)};function Re(Ze){binding_callbacks[Ze?"unshift":"push"](()=>{be=Ze,f(6,be)})}const Ge=()=>f(10,de=!0);return u.$$set=Ze=>{"url"in Ze&&f(22,K=Ze.url),"text"in Ze&&f(23,J=Ze.text),"openInNewTab"in Ze&&f(0,Z=Ze.openInNewTab),"color"in Ze&&f(24,se=Ze.color),"align"in Ze&&f(1,ie=Ze.align),"bold"in Ze&&f(2,ce=Ze.bold),"italic"in Ze&&f(3,pe=Ze.italic),"underline"in Ze&&f(4,me=Ze.underline),"size"in Ze&&f(5,we=Ze.size)},u.$$.update=()=>{u.$$.dirty[0]&320&&k.editing&&(be==null||be.focus()),u.$$.dirty[0]&4194304&&f(7,p=K&&typeof K=="string"&&!K.startsWith("/")),u.$$.dirty[0]&1&&f(15,m=Z?"_blank":"_self"),u.$$.dirty[0]&8389120&&f(14,b=S.inBuilder&&!J),u.$$.dirty[0]&8389376&&f(13,y=$e(J,S,k)),u.$$.dirty[0]&4194433&&f(12,w=Oe(K,p,Z)),u.$$.dirty[0]&16777472&&f(11,v=he(k.styles,se))},[Z,ie,ce,pe,me,we,be,p,k,S,de,v,w,y,b,m,B,O,R,X,Te,Fe,K,J,se,Re,Ge]}class Link extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1O,create_fragment$1P,safe_not_equal,{url:22,text:23,openInNewTab:0,color:24,align:1,bold:2,italic:3,underline:4,size:5},null,[-1,-1])}}const Image_svelte_svelte_type_style_lang="";function create_if_block_1$t(u){let l,f,p,m,b,y;return f=new Placeholder({}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","placeholder svelte-1d46lef")},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[3].call(null,l,{...u[1].styles,empty:!0})),b=!0)},p(w,v){p&&is_function(p.update)&&v&2&&p.update.call(null,{...w[1].styles,empty:!0})},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_if_block$14(u){let l,f,p,m,b,y;return{c(){l=element("img"),src_url_equal(l.src,f=u[0])||attr(l,"src",f),attr(l,"alt",p=u[1].name)},m(w,v){insert(w,l,v),b||(y=action_destroyer(m=u[3].call(null,l,u[1].styles)),b=!0)},p(w,v){v&1&&!src_url_equal(l.src,f=w[0])&&attr(l,"src",f),v&2&&p!==(p=w[1].name)&&attr(l,"alt",p),m&&is_function(m.update)&&v&2&&m.update.call(null,w[1].styles)},i:noop$4,o:noop$4,d(w){w&&detach(l),b=!1,y()}}}function create_fragment$1O(u){let l,f,p,m;const b=[create_if_block$14,create_if_block_1$t],y=[];function w(v,k){return v[0]?0:v[2].inBuilder?1:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function instance$1N(u,l,f){let p,m;const{styleable:b,builderStore:y}=getContext$1("sdk");component_subscribe(u,y,k=>f(2,m=k));const w=getContext$1("component");component_subscribe(u,w,k=>f(1,p=k));let{url:v}=l;return u.$$set=k=>{"url"in k&&f(0,v=k.url)},[v,p,m,b,y,w]}let Image$1=class extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1N,create_fragment$1O,safe_not_equal,{url:0})}};const Embed_svelte_svelte_type_style_lang="";function create_if_block_1$s(u){let l,f,p,m,b,y;return f=new Placeholder({}),{c(){l=element("div"),create_component(f.$$.fragment)},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[3].call(null,l,{...u[1].styles,empty:!0})),b=!0)},p(w,v){p&&is_function(p.update)&&v&2&&p.update.call(null,{...w[1].styles,empty:!0})},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_if_block$13(u){let l,f,p,m;return{c(){l=element("div"),attr(l,"class","embed svelte-nd6hd8")},m(b,y){insert(b,l,y),l.innerHTML=u[0],p||(m=action_destroyer(f=u[3].call(null,l,u[1].styles)),p=!0)},p(b,y){y&1&&(l.innerHTML=b[0]),f&&is_function(f.update)&&y&2&&f.update.call(null,b[1].styles)},i:noop$4,o:noop$4,d(b){b&&detach(l),p=!1,m()}}}function create_fragment$1N(u){let l,f,p,m;const b=[create_if_block$13,create_if_block_1$s],y=[];function w(v,k){return v[0]?0:v[2].inBuilder?1:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function instance$1M(u,l,f){let p,m;const{styleable:b,builderStore:y}=getContext$1("sdk");component_subscribe(u,y,k=>f(2,m=k));const w=getContext$1("component");component_subscribe(u,w,k=>f(1,p=k));let{embed:v}=l;return u.$$set=k=>{"embed"in k&&f(0,v=k.embed)},[v,p,m,b,y,w]}class Embed extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1M,create_fragment$1N,safe_not_equal,{embed:0})}}const Icon_svelte_svelte_type_style_lang="";function create_if_block_1$r(u){let l,f,p,m,b,y;return f=new Placeholder({}),{c(){l=element("div"),create_component(f.$$.fragment)},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[5].call(null,l,u[3])),b=!0)},p(w,v){p&&is_function(p.update)&&v&8&&p.update.call(null,w[3])},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function create_if_block$12(u){let l,f,p,m,b;return{c(){l=element("i"),attr(l,"class",f=u[0]+" "+u[1]+" svelte-1ghy1wa"),toggle_class(l,"hoverable",u[2]!=null)},m(y,w){insert(y,l,w),m||(b=[action_destroyer(p=u[5].call(null,l,u[3])),listen(l,"click",function(){is_function(u[2])&&u[2].apply(this,arguments)})],m=!0)},p(y,w){u=y,w&3&&f!==(f=u[0]+" "+u[1]+" svelte-1ghy1wa")&&attr(l,"class",f),p&&is_function(p.update)&&w&8&&p.update.call(null,u[3]),w&7&&toggle_class(l,"hoverable",u[2]!=null)},i:noop$4,o:noop$4,d(y){y&&detach(l),m=!1,run_all(b)}}}function create_fragment$1M(u){let l,f,p,m;const b=[create_if_block$12,create_if_block_1$r],y=[];function w(v,k){return v[0]?0:v[4].inBuilder?1:-1}return~(l=w(u))&&(f=y[l]=b[l](u)),{c(){f&&f.c(),p=empty$1()},m(v,k){~l&&y[l].m(v,k),insert(v,p,k),m=!0},p(v,[k]){let S=l;l=w(v),l===S?~l&&y[l].p(v,k):(f&&(group_outros(),transition_out(y[S],1,1,()=>{y[S]=null}),check_outros()),~l?(f=y[l],f?f.p(v,k):(f=y[l]=b[l](v),f.c()),transition_in(f,1),f.m(p.parentNode,p)):f=null)},i(v){m||(transition_in(f),m=!0)},o(v){transition_out(f),m=!1},d(v){v&&detach(p),~l&&y[l].d(v)}}}function instance$1L(u,l,f){let p,m,b;const{styleable:y,builderStore:w}=getContext$1("sdk");component_subscribe(u,w,R=>f(4,b=R));const v=getContext$1("component");component_subscribe(u,v,R=>f(9,m=R));let{icon:k}=l,{size:S}=l,{color:B}=l,{onClick:O}=l;return u.$$set=R=>{"icon"in R&&f(0,k=R.icon),"size"in R&&f(1,S=R.size),"color"in R&&f(8,B=R.color),"onClick"in R&&f(2,O=R.onClick)},u.$$.update=()=>{u.$$.dirty&768&&f(3,p={...m.styles,normal:{...m.styles.normal,color:B||"var(--spectrum-global-color-gray-900)"}})},[k,S,O,p,b,y,w,v,B,m]}class Icon extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1L,create_fragment$1M,safe_not_equal,{icon:0,size:1,color:8,onClick:2})}}const BackgroundImage_svelte_svelte_type_style_lang="";function create_fragment$1L(u){let l,f,p,m,b,y;const w=u[7].default,v=create_slot(w,u,u[6],null);return{c(){l=element("div"),f=element("div"),v&&v.c(),attr(f,"class","inner svelte-1ovy8gu"),attr(f,"style",u[0]),attr(l,"class","outer svelte-1ovy8gu")},m(k,S){insert(k,l,S),append$2(l,f),v&&v.m(f,null),m=!0,b||(y=action_destroyer(p=u[2].call(null,l,u[1].styles)),b=!0)},p(k,[S]){v&&v.p&&(!m||S&64)&&update_slot_base(v,w,k,k[6],m?get_slot_changes(w,k[6],S,null):get_all_dirty_from_scope(k[6]),null),(!m||S&1)&&attr(f,"style",k[0]),p&&is_function(p.update)&&S&2&&p.update.call(null,k[1].styles)},i(k){m||(transition_in(v,k),m=!0)},o(k){transition_out(v,k),m=!1},d(k){k&&detach(l),v&&v.d(k),b=!1,y()}}}function instance$1K(u,l,f){let p,{$$slots:m={},$$scope:b}=l;const{styleable:y}=getContext$1("sdk"),w=getContext$1("component");component_subscribe(u,w,B=>f(1,p=B));let{url:v}=l,{position:k}=l,S="";return u.$$set=B=>{"url"in B&&f(4,v=B.url),"position"in B&&f(5,k=B.position),"$$scope"in B&&f(6,b=B.$$scope)},u.$$.update=()=>{u.$$.dirty&49&&(v&&f(0,S+=`background-image: url("${v}");`),k&&f(0,S+=`background-position: ${k};`))},[S,p,y,w,v,k,b,m]}class BackgroundImage extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1K,create_fragment$1L,safe_not_equal,{url:4,position:5})}}var utc$1={exports:{}};(function(u,l){(function(f,p){u.exports=p()})(commonjsGlobal$2,function(){var f="minute",p=/[+-]\d\d(?::?\d\d)?/g,m=/([+-]|\d\d)/g;return function(b,y,w){var v=y.prototype;w.utc=function($){var X={date:$,utc:!0,args:arguments};return new y(X)},v.utc=function($){var X=w(this.toDate(),{locale:this.$L,utc:!0});return $?X.add(this.utcOffset(),f):X},v.local=function(){return w(this.toDate(),{locale:this.$L,utc:!1})};var k=v.parse;v.parse=function($){$.utc&&(this.$u=!0),this.$utils().u($.$offset)||(this.$offset=$.$offset),k.call(this,$)};var S=v.init;v.init=function(){if(this.$u){var $=this.$d;this.$y=$.getUTCFullYear(),this.$M=$.getUTCMonth(),this.$D=$.getUTCDate(),this.$W=$.getUTCDay(),this.$H=$.getUTCHours(),this.$m=$.getUTCMinutes(),this.$s=$.getUTCSeconds(),this.$ms=$.getUTCMilliseconds()}else S.call(this)};var B=v.utcOffset;v.utcOffset=function($,X){var K=this.$utils().u;if(K($))return this.$u?0:K(this.$offset)?B.call(this):this.$offset;if(typeof $=="string"&&($=function(ie){ie===void 0&&(ie="");var ce=ie.match(p);if(!ce)return null;var pe=(""+ce[0]).match(m)||["-",0,0],me=pe[0],we=60*+pe[1]+ +pe[2];return we===0?0:me==="+"?we:-we}($),$===null))return this;var J=Math.abs($)<=16?60*$:$;if(J===0)return this.utc(X);var Z=this.clone();if(X)return Z.$offset=J,Z.$u=!1,Z;var se=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(Z=this.local().add(J+se,f)).$offset=J,Z.$x.$localOffset=se,Z};var O=v.format;v.format=function($){var X=$||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return O.call(this,X)},v.valueOf=function(){var $=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*$},v.isUTC=function(){return!!this.$u},v.toISOString=function(){return this.toDate().toISOString()},v.toString=function(){return this.toDate().toUTCString()};var R=v.toDate;v.toDate=function($){return $==="s"&&this.$offset?w(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():R.call(this)};var U=v.diff;v.diff=function($,X,K){if($&&this.$u===$.$u)return U.call(this,$,X,K);var J=this.local(),Z=w($).local();return U.call(J,Z,X,K)}}})})(utc$1);var utcExports=utc$1.exports;const utc=getDefaultExportFromCjs$1(utcExports);function create_fragment$1K(u){let l,f,p,m,b,y;return f=new Select_1({props:{placeholder:null,options:u[4],value:u[0]}}),f.$on("change",u[11]),{c(){l=element("div"),create_component(f.$$.fragment)},m(w,v){insert(w,l,v),mount_component(f,l,null),m=!0,b||(y=action_destroyer(p=u[3].call(null,l,u[1].styles)),b=!0)},p(w,[v]){const k={};v&1&&(k.value=w[0]),f.$set(k),p&&is_function(p.update)&&v&2&&p.update.call(null,w[1].styles)},i(w){m||(transition_in(f.$$.fragment,w),m=!0)},o(w){transition_out(f.$$.fragment,w),m=!1},d(w){w&&detach(l),destroy_component(f),b=!1,y()}}}function instance$1J(u,l,f){let p,m,b,y,w;dayjs.extend(utc);let{dataProvider:v}=l,{field:k}=l,{defaultValue:S}=l;const B=getContext$1("component");component_subscribe(u,B,Z=>f(1,w=Z));const{styleable:O,ActionTypes:R,getAction:U}=getContext$1("sdk"),$=["Last 1 day","Last 7 days","Last 30 days","Last 3 months","Last 6 months","Last 1 year"];let X=$.includes(S)?S:"Last 30 days";const K=(Z,se)=>{if(!Z||!se)return null;let ie=dayjs.utc().subtract(1,"year"),ce=dayjs.utc().add(1,"day");return se==="Last 1 day"?ie=dayjs.utc().subtract(1,"day"):se==="Last 7 days"?ie=dayjs.utc().subtract(7,"days"):se==="Last 30 days"?ie=dayjs.utc().subtract(30,"days"):se==="Last 3 months"?ie=dayjs.utc().subtract(3,"months"):se==="Last 6 months"&&(ie=dayjs.utc().subtract(6,"months")),{range:{[Z]:{low:ie.format(),high:ce.format()}}}};onDestroy(()=>{b==null||b(w.id)});const J=Z=>f(0,X=Z.detail);return u.$$set=Z=>{"dataProvider"in Z&&f(5,v=Z.dataProvider),"field"in Z&&f(6,k=Z.field),"defaultValue"in Z&&f(7,S=Z.defaultValue)},u.$$.update=()=>{u.$$.dirty&32&&f(10,p=v==null?void 0:v.id),u.$$.dirty&1024&&f(9,m=U(p,R.AddDataProviderQueryExtension)),u.$$.dirty&1024&&(b=U(p,R.RemoveDataProviderQueryExtension)),u.$$.dirty&65&&f(8,y=K(k,X)),u.$$.dirty&770&&(m==null||m(w.id,y))},[X,w,B,O,$,v,k,S,y,m,p,J]}class DateRangePicker extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1J,create_fragment$1K,safe_not_equal,{dataProvider:5,field:6,defaultValue:7})}}const CardStat_svelte_svelte_type_style_lang="";function create_fragment$1J(u){let l,f,p,m,b,y,w,v,k,S,B,O;return{c(){l=element("div"),f=element("p"),p=text$1(u[0]),m=space(),b=element("h3"),y=text$1(u[1]),w=space(),v=element("p"),k=text$1(u[2]),attr(f,"class","title svelte-13s6ero"),attr(b,"class","value svelte-13s6ero"),attr(v,"class","label svelte-13s6ero"),attr(l,"class","container svelte-13s6ero")},m(R,U){insert(R,l,U),append$2(l,f),append$2(f,p),append$2(l,m),append$2(l,b),append$2(b,y),append$2(l,w),append$2(l,v),append$2(v,k),B||(O=action_destroyer(S=u[4].call(null,l,u[3].styles)),B=!0)},p(R,[U]){U&1&&set_data(p,R[0]),U&2&&set_data(y,R[1]),U&4&&set_data(k,R[2]),S&&is_function(S.update)&&U&8&&S.update.call(null,R[3].styles)},i:noop$4,o:noop$4,d(R){R&&detach(l),B=!1,O()}}}function instance$1I(u,l,f){let p;const{styleable:m}=getContext$1("sdk"),b=getContext$1("component");component_subscribe(u,b,S=>f(3,p=S));const y="";let{title:w=""}=l,{value:v=""}=l,{label:k=""}=l;return u.$$set=S=>{"title"in S&&f(0,w=S.title),"value"in S&&f(1,v=S.value),"label"in S&&f(2,k=S.label)},[w,v,k,p,m,b,y]}class CardStat extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1I,create_fragment$1J,safe_not_equal,{className:6,title:0,value:1,label:2})}get className(){return this.$$.ctx[6]}}const indexVars$1="",SpectrumCard_svelte_svelte_type_style_lang="";function create_if_block_3$b(u){let l;return{c(){l=element("div"),attr(l,"class","spectrum-Card-coverPhoto svelte-1jgsopy"),set_style(l,"background-image","url("+u[3]+")")},m(f,p){insert(f,l,p)},p(f,p){p&8&&set_style(l,"background-image","url("+f[3]+")")},d(f){f&&detach(l)}}}function create_if_block_2$g(u){let l,f,p;return{c(){l=element("div"),f=element("div"),p=text$1(u[1]),attr(f,"class","spectrum-Card-subtitle spectrum-Detail spectrum-Detail--sizeS svelte-1jgsopy"),attr(l,"class","spectrum-Card-content")},m(m,b){insert(m,l,b),append$2(l,f),append$2(f,p)},p(m,b){b&2&&set_data(p,m[1])},d(m){m&&detach(l)}}}function create_if_block_1$q(u){let l,f;return{c(){l=element("div"),f=text$1(u[2]),attr(l,"class","spectrum-Card-footer svelte-1jgsopy")},m(p,m){insert(p,l,m),append$2(l,f)},p(p,m){m&4&&set_data(f,p[2])},d(p){p&&detach(l)}}}function create_if_block$11(u){let l,f,p;return f=new Button$1({props:{secondary:!0,$$slots:{default:[create_default_slot$Y]},$$scope:{ctx:u}}}),f.$on("click",function(){is_function(u[8])&&u[8].apply(this,arguments)}),{c(){l=element("div"),create_component(f.$$.fragment),attr(l,"class","spectrum-Card-footer button-container svelte-1jgsopy")},m(m,b){insert(m,l,b),mount_component(f,l,null),p=!0},p(m,b){u=m;const y={};b&32896&&(y.$$scope={dirty:b,ctx:u}),f.$set(y)},i(m){p||(transition_in(f.$$.fragment,m),p=!0)},o(m){transition_out(f.$$.fragment,m),p=!1},d(m){m&&detach(l),destroy_component(f)}}}function create_default_slot$Y(u){let l=(u[7]||"Click me")+"",f;return{c(){f=text$1(l)},m(p,m){insert(p,f,m)},p(p,m){m&128&&l!==(l=(p[7]||"Click me")+"")&&set_data(f,l)},d(p){p&&detach(f)}}}function create_fragment$1I(u){let l,f,p,m,b,y,w=(u[0]||"Card Title")+"",v,k,S,B,O,R,U,$,X=u[3]&&create_if_block_3$b(u),K=u[1]&&create_if_block_2$g(u),J=u[2]&&create_if_block_1$q(u),Z=u[6]&&create_if_block$11(u);return{c(){l=element("div"),X&&X.c(),f=space(),p=element("div"),m=element("div"),b=element("div"),y=element("div"),v=text$1(w),k=space(),K&&K.c(),S=space(),J&&J.c(),B=space(),Z&&Z.c(),attr(y,"class","spectrum-Card-title spectrum-Heading spectrum-Heading--sizeXS svelte-1jgsopy"),toggle_class(y,"link",u[4]),attr(b,"class","spectrum-Card-header"),attr(m,"class","spectrum-Card-body"),attr(p,"class","spectrum-Card-container svelte-1jgsopy"),attr(l,"class","spectrum-Card svelte-1jgsopy"),attr(l,"tabindex","0"),attr(l,"role","figure"),toggle_class(l,"horizontal",u[5]),toggle_class(l,"clickable",u[8]&&!u[6])},m(se,ie){insert(se,l,ie),X&&X.m(l,null),append$2(l,f),append$2(l,p),append$2(p,m),append$2(m,b),append$2(b,y),append$2(y,v),append$2(m,k),K&&K.m(m,null),append$2(p,S),J&&J.m(p,null),append$2(p,B),Z&&Z.m(p,null),R=!0,U||($=[listen(y,"click",u[12]),action_destroyer(O=u[10].call(null,l,u[9].styles)),listen(l,"click",function(){is_function(u[6]?null:u[8])&&(u[6]?null:u[8]).apply(this,arguments)})],U=!0)},p(se,[ie]){u=se,u[3]?X?X.p(u,ie):(X=create_if_block_3$b(u),X.c(),X.m(l,f)):X&&(X.d(1),X=null),(!R||ie&1)&&w!==(w=(u[0]||"Card Title")+"")&&set_data(v,w),(!R||ie&16)&&toggle_class(y,"link",u[4]),u[1]?K?K.p(u,ie):(K=create_if_block_2$g(u),K.c(),K.m(m,null)):K&&(K.d(1),K=null),u[2]?J?J.p(u,ie):(J=create_if_block_1$q(u),J.c(),J.m(p,B)):J&&(J.d(1),J=null),u[6]?Z?(Z.p(u,ie),ie&64&&transition_in(Z,1)):(Z=create_if_block$11(u),Z.c(),transition_in(Z,1),Z.m(p,null)):Z&&(group_outros(),transition_out(Z,1,1,()=>{Z=null}),check_outros()),O&&is_function(O.update)&&ie&512&&O.update.call(null,u[9].styles),(!R||ie&32)&&toggle_class(l,"horizontal",u[5]),(!R||ie&320)&&toggle_class(l,"clickable",u[8]&&!u[6])},i(se){R||(transition_in(Z),R=!0)},o(se){transition_out(Z),R=!1},d(se){se&&detach(l),X&&X.d(),K&&K.d(),J&&J.d(),Z&&Z.d(),U=!1,run_all($)}}}function instance$1H(u,l,f){let p,{title:m}=l,{subtitle:b}=l,{description:y}=l,{imageURL:w}=l,{linkURL:v}=l,{linkPeek:k}=l,{horizontal:S}=l,{showButton:B}=l,{buttonText:O}=l,{buttonOnClick:R}=l;const{styleable:U,routeStore:$}=getContext$1("sdk"),X=getContext$1("component");component_subscribe(u,X,J=>f(9,p=J));const K=J=>{if(!v)return!1;J.preventDefault(),J.stopPropagation(),$.actions.navigate(v,k)};return u.$$set=J=>{"title"in J&&f(0,m=J.title),"subtitle"in J&&f(1,b=J.subtitle),"description"in J&&f(2,y=J.description),"imageURL"in J&&f(3,w=J.imageURL),"linkURL"in J&&f(4,v=J.linkURL),"linkPeek"in J&&f(13,k=J.linkPeek),"horizontal"in J&&f(5,S=J.horizontal),"showButton"in J&&f(6,B=J.showButton),"buttonText"in J&&f(7,O=J.buttonText),"buttonOnClick"in J&&f(8,R=J.buttonOnClick)},[m,b,y,w,v,S,B,O,R,p,U,X,K,k]}class SpectrumCard extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1H,create_fragment$1I,safe_not_equal,{title:0,subtitle:1,description:2,imageURL:3,linkURL:4,linkPeek:13,horizontal:5,showButton:6,buttonText:7,buttonOnClick:8})}}const indexVars="",Tag_svelte_svelte_type_style_lang="";function create_if_block$10(u){let l,f;return l=new ClearButton({}),l.$on("click",function(){is_function(u[0])&&u[0].apply(this,arguments)}),{c(){create_component(l.$$.fragment)},m(p,m){mount_component(l,p,m),f=!0},p(p,m){u=p},i(p){f||(transition_in(l.$$.fragment,p),f=!0)},o(p){transition_out(l.$$.fragment,p),f=!1},d(p){destroy_component(l,p)}}}function create_fragment$1H(u){let l,f,p,m,b,y,w,v,k,S=u[1]&&create_if_block$10(u);return{c(){l=element("div"),f=element("span"),p=text$1(u[3]),m=space(),S&&S.c(),attr(f,"class","spectrum-Tag-label svelte-jml011"),attr(l,"class",b="spectrum-Tag spectrum-Tag--size"+u[2]+" svelte-jml011")},m(B,O){insert(B,l,O),append$2(l,f),append$2(f,p),append$2(l,m),S&&S.m(l,null),w=!0,v||(k=action_destroyer(y=u[6].call(null,l,u[4])),v=!0)},p(B,[O]){(!w||O&8)&&set_data(p,B[3]),B[1]?S?(S.p(B,O),O&2&&transition_in(S,1)):(S=create_if_block$10(B),S.c(),transition_in(S,1),S.m(l,null)):S&&(group_outros(),transition_out(S,1,1,()=>{S=null}),check_outros()),(!w||O&4&&b!==(b="spectrum-Tag spectrum-Tag--size"+B[2]+" svelte-jml011"))&&attr(l,"class",b),y&&is_function(y.update)&&O&16&&y.update.call(null,B[4])},i(B){w||(transition_in(S),w=!0)},o(B){transition_out(S),w=!1},d(B){B&&detach(l),S&&S.d(),v=!1,k()}}}function instance$1G(u,l,f){let p,m,b,y,{onClick:w}=l,{text:v=""}=l,{color:k}=l,{textColor:S}=l,{closable:B=!1}=l,{size:O="M"}=l;const R=getContext$1("component");component_subscribe(u,R,J=>f(11,b=J));const{styleable:U,builderStore:$}=getContext$1("sdk");component_subscribe(u,$,J=>f(12,y=J));const X=(J,Z,se)=>!Z.inBuilder||se.editing?J||" ":J||se.name||"Placeholder text",K=(J,Z,se)=>Z?{...J,normal:{...J==null?void 0:J.normal,"background-color":Z,"border-color":Z,color:se||"white","--spectrum-clearbutton-medium-icon-color":"white"}}:J;return u.$$set=J=>{"onClick"in J&&f(0,w=J.onClick),"text"in J&&f(8,v=J.text),"color"in J&&f(9,k=J.color),"textColor"in J&&f(10,S=J.textColor),"closable"in J&&f(1,B=J.closable),"size"in J&&f(2,O=J.size)},u.$$.update=()=>{u.$$.dirty&3584&&f(4,p=K(b.styles,k,S)),u.$$.dirty&6400&&f(3,m=X(v,y,b))},[w,B,O,m,p,R,U,$,v,k,S,b,y]}class Tag extends SvelteComponent{constructor(l){super(),init$1(this,l,instance$1G,create_fragment$1H,safe_not_equal,{onClick:0,text:8,color:9,textColor:10,closable:1,size:2})}}var leaflet$1={exports:{}};/* @preserve
|
|
383
383
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
384
384
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
385
385
|
*/(function(u,l){(function(f,p){p(l)})(commonjsGlobal$2,function(f){function p(Q){for(var le,Se,Ke=1,vt=arguments.length;Ke<vt;Ke++)for(le in Se=arguments[Ke])Q[le]=Se[le];return Q}var m=Object.create||function(Q){return b.prototype=Q,new b};function b(){}function y(Q,le){var Se,Ke=Array.prototype.slice;return Q.bind?Q.bind.apply(Q,Ke.call(arguments,1)):(Se=Ke.call(arguments,2),function(){return Q.apply(le,Se.length?Se.concat(Ke.call(arguments)):arguments)})}var w=0;function v(Q){return"_leaflet_id"in Q||(Q._leaflet_id=++w),Q._leaflet_id}function k(Q,le,Se){var Ke,vt,Zt=function(){Ke=!1,vt&&(Rn.apply(Se,vt),vt=!1)},Rn=function(){Ke?vt=arguments:(Q.apply(Se,arguments),setTimeout(Zt,le),Ke=!0)};return Rn}function S(Q,vt,Se){var Ke=vt[1],vt=vt[0],Zt=Ke-vt;return Q===Ke&&Se?Q:((Q-vt)%Zt+Zt)%Zt+vt}function B(){return!1}function O(Q,le){return le===!1?Q:(le=Math.pow(10,le===void 0?6:le),Math.round(Q*le)/le)}function R(Q){return Q.trim?Q.trim():Q.replace(/^\s+|\s+$/g,"")}function U(Q){return R(Q).split(/\s+/)}function $(Q,le){for(var Se in Object.prototype.hasOwnProperty.call(Q,"options")||(Q.options=Q.options?m(Q.options):{}),le)Q.options[Se]=le[Se];return Q.options}function X(Q,le,Se){var Ke,vt=[];for(Ke in Q)vt.push(encodeURIComponent(Se?Ke.toUpperCase():Ke)+"="+encodeURIComponent(Q[Ke]));return(le&&le.indexOf("?")!==-1?"&":"?")+vt.join("&")}var K=/\{ *([\w_ -]+) *\}/g;function J(Q,le){return Q.replace(K,function(Se,Ke){if(Ke=le[Ke],Ke===void 0)throw new Error("No value provided for variable "+Se);return Ke=typeof Ke=="function"?Ke(le):Ke})}var Z=Array.isArray||function(Q){return Object.prototype.toString.call(Q)==="[object Array]"};function se(Q,le){for(var Se=0;Se<Q.length;Se++)if(Q[Se]===le)return Se;return-1}var ie="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function ce(Q){return window["webkit"+Q]||window["moz"+Q]||window["ms"+Q]}var pe=0;function me(Q){var le=+new Date,Se=Math.max(0,16-(le-pe));return pe=le+Se,window.setTimeout(Q,Se)}var we=window.requestAnimationFrame||ce("RequestAnimationFrame")||me,be=window.cancelAnimationFrame||ce("CancelAnimationFrame")||ce("CancelRequestAnimationFrame")||function(Q){window.clearTimeout(Q)};function de(Q,le,Se){if(!Se||we!==me)return we.call(window,y(Q,le));Q.call(le)}function Te(Q){Q&&be.call(window,Q)}var Oe={__proto__:null,extend:p,create:m,bind:y,get lastId(){return w},stamp:v,throttle:k,wrapNum:S,falseFn:B,formatNum:O,trim:R,splitWords:U,setOptions:$,getParamString:X,template:J,isArray:Z,indexOf:se,emptyImageUrl:ie,requestFn:we,cancelFn:be,requestAnimFrame:de,cancelAnimFrame:Te};function $e(){}$e.extend=function(Q){function le(){$(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}var Se,Ke=le.__super__=this.prototype,vt=m(Ke);for(Se in(vt.constructor=le).prototype=vt,this)Object.prototype.hasOwnProperty.call(this,Se)&&Se!=="prototype"&&Se!=="__super__"&&(le[Se]=this[Se]);if(Q.statics&&p(le,Q.statics),Q.includes){var Zt=Q.includes;if(typeof L<"u"&&L&&L.Mixin){Zt=Z(Zt)?Zt:[Zt];for(var Rn=0;Rn<Zt.length;Rn++)Zt[Rn]===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)}p.apply(null,[vt].concat(Q.includes))}return p(vt,Q),delete vt.statics,delete vt.includes,vt.options&&(vt.options=Ke.options?m(Ke.options):{},p(vt.options,Q.options)),vt._initHooks=[],vt.callInitHooks=function(){if(!this._initHooksCalled){Ke.callInitHooks&&Ke.callInitHooks.call(this),this._initHooksCalled=!0;for(var Cn=0,sr=vt._initHooks.length;Cn<sr;Cn++)vt._initHooks[Cn].call(this)}},le},$e.include=function(Q){var le=this.prototype.options;return p(this.prototype,Q),Q.options&&(this.prototype.options=le,this.mergeOptions(Q.options)),this},$e.mergeOptions=function(Q){return p(this.prototype.options,Q),this},$e.addInitHook=function(Q){var le=Array.prototype.slice.call(arguments,1),Se=typeof Q=="function"?Q:function(){this[Q].apply(this,le)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(Se),this};var he={on:function(Q,le,Se){if(typeof Q=="object")for(var Ke in Q)this._on(Ke,Q[Ke],le);else for(var vt=0,Zt=(Q=U(Q)).length;vt<Zt;vt++)this._on(Q[vt],le,Se);return this},off:function(Q,le,Se){if(arguments.length)if(typeof Q=="object")for(var Ke in Q)this._off(Ke,Q[Ke],le);else{Q=U(Q);for(var vt=arguments.length===1,Zt=0,Rn=Q.length;Zt<Rn;Zt++)vt?this._off(Q[Zt]):this._off(Q[Zt],le,Se)}else delete this._events;return this},_on:function(Q,le,Se,Ke){typeof le!="function"?console.warn("wrong listener type: "+typeof le):this._listens(Q,le,Se)===!1&&(le={fn:le,ctx:Se=Se===this?void 0:Se},Ke&&(le.once=!0),this._events=this._events||{},this._events[Q]=this._events[Q]||[],this._events[Q].push(le))},_off:function(Q,le,Se){var Ke,vt,Zt;if(this._events&&(Ke=this._events[Q]))if(arguments.length===1){if(this._firingCount)for(vt=0,Zt=Ke.length;vt<Zt;vt++)Ke[vt].fn=B;delete this._events[Q]}else typeof le!="function"?console.warn("wrong listener type: "+typeof le):(le=this._listens(Q,le,Se))!==!1&&(Se=Ke[le],this._firingCount&&(Se.fn=B,this._events[Q]=Ke=Ke.slice()),Ke.splice(le,1))},fire:function(Q,le,Se){if(this.listens(Q,Se)){var Ke=p({},le,{type:Q,target:this,sourceTarget:le&&le.sourceTarget||this});if(this._events){var vt=this._events[Q];if(vt){this._firingCount=this._firingCount+1||1;for(var Zt=0,Rn=vt.length;Zt<Rn;Zt++){var Cn=vt[Zt],sr=Cn.fn;Cn.once&&this.off(Q,sr,Cn.ctx),sr.call(Cn.ctx||this,Ke)}this._firingCount--}}Se&&this._propagateEvent(Ke)}return this},listens:function(Q,le,Se,Ke){typeof Q!="string"&&console.warn('"string" type argument expected');var vt=le,Zt=(typeof le!="function"&&(Ke=!!le,Se=vt=void 0),this._events&&this._events[Q]);if(Zt&&Zt.length&&this._listens(Q,vt,Se)!==!1)return!0;if(Ke){for(var Rn in this._eventParents)if(this._eventParents[Rn].listens(Q,le,Se,Ke))return!0}return!1},_listens:function(Q,le,Se){if(this._events){var Ke=this._events[Q]||[];if(!le)return!!Ke.length;Se===this&&(Se=void 0);for(var vt=0,Zt=Ke.length;vt<Zt;vt++)if(Ke[vt].fn===le&&Ke[vt].ctx===Se)return vt}return!1},once:function(Q,le,Se){if(typeof Q=="object")for(var Ke in Q)this._on(Ke,Q[Ke],le,!0);else for(var vt=0,Zt=(Q=U(Q)).length;vt<Zt;vt++)this._on(Q[vt],le,Se,!0);return this},addEventParent:function(Q){return this._eventParents=this._eventParents||{},this._eventParents[v(Q)]=Q,this},removeEventParent:function(Q){return this._eventParents&&delete this._eventParents[v(Q)],this},_propagateEvent:function(Q){for(var le in this._eventParents)this._eventParents[le].fire(Q.type,p({layer:Q.target,propagatedFrom:Q.target},Q),!0)}},Fe=(he.addEventListener=he.on,he.removeEventListener=he.clearAllEventListeners=he.off,he.addOneTimeEventListener=he.once,he.fireEvent=he.fire,he.hasEventListeners=he.listens,$e.extend(he));function Re(Q,le,Se){this.x=Se?Math.round(Q):Q,this.y=Se?Math.round(le):le}var Ge=Math.trunc||function(Q){return 0<Q?Math.floor(Q):Math.ceil(Q)};function Ze(Q,le,Se){return Q instanceof Re?Q:Z(Q)?new Re(Q[0],Q[1]):Q==null?Q:typeof Q=="object"&&"x"in Q&&"y"in Q?new Re(Q.x,Q.y):new Re(Q,le,Se)}function at(Q,le){if(Q)for(var Se=le?[Q,le]:Q,Ke=0,vt=Se.length;Ke<vt;Ke++)this.extend(Se[Ke])}function Pt(Q,le){return!Q||Q instanceof at?Q:new at(Q,le)}function _t(Q,le){if(Q)for(var Se=le?[Q,le]:Q,Ke=0,vt=Se.length;Ke<vt;Ke++)this.extend(Se[Ke])}function He(Q,le){return Q instanceof _t?Q:new _t(Q,le)}function gt(Q,le,Se){if(isNaN(Q)||isNaN(le))throw new Error("Invalid LatLng object: ("+Q+", "+le+")");this.lat=+Q,this.lng=+le,Se!==void 0&&(this.alt=+Se)}function Tt(Q,le,Se){return Q instanceof gt?Q:Z(Q)&&typeof Q[0]!="object"?Q.length===3?new gt(Q[0],Q[1],Q[2]):Q.length===2?new gt(Q[0],Q[1]):null:Q==null?Q:typeof Q=="object"&&"lat"in Q?new gt(Q.lat,"lng"in Q?Q.lng:Q.lon,Q.alt):le===void 0?null:new gt(Q,le,Se)}Re.prototype={clone:function(){return new Re(this.x,this.y)},add:function(Q){return this.clone()._add(Ze(Q))},_add:function(Q){return this.x+=Q.x,this.y+=Q.y,this},subtract:function(Q){return this.clone()._subtract(Ze(Q))},_subtract:function(Q){return this.x-=Q.x,this.y-=Q.y,this},divideBy:function(Q){return this.clone()._divideBy(Q)},_divideBy:function(Q){return this.x/=Q,this.y/=Q,this},multiplyBy:function(Q){return this.clone()._multiplyBy(Q)},_multiplyBy:function(Q){return this.x*=Q,this.y*=Q,this},scaleBy:function(Q){return new Re(this.x*Q.x,this.y*Q.y)},unscaleBy:function(Q){return new Re(this.x/Q.x,this.y/Q.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=Ge(this.x),this.y=Ge(this.y),this},distanceTo:function(Se){var le=(Se=Ze(Se)).x-this.x,Se=Se.y-this.y;return Math.sqrt(le*le+Se*Se)},equals:function(Q){return(Q=Ze(Q)).x===this.x&&Q.y===this.y},contains:function(Q){return Q=Ze(Q),Math.abs(Q.x)<=Math.abs(this.x)&&Math.abs(Q.y)<=Math.abs(this.y)},toString:function(){return"Point("+O(this.x)+", "+O(this.y)+")"}},at.prototype={extend:function(Q){var le,Se;if(Q){if(Q instanceof Re||typeof Q[0]=="number"||"x"in Q)le=Se=Ze(Q);else if(le=(Q=Pt(Q)).min,Se=Q.max,!le||!Se)return this;this.min||this.max?(this.min.x=Math.min(le.x,this.min.x),this.max.x=Math.max(Se.x,this.max.x),this.min.y=Math.min(le.y,this.min.y),this.max.y=Math.max(Se.y,this.max.y)):(this.min=le.clone(),this.max=Se.clone())}return this},getCenter:function(Q){return Ze((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,Q)},getBottomLeft:function(){return Ze(this.min.x,this.max.y)},getTopRight:function(){return Ze(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(Q){var le,Se;return(Q=(typeof Q[0]=="number"||Q instanceof Re?Ze:Pt)(Q))instanceof at?(le=Q.min,Se=Q.max):le=Se=Q,le.x>=this.min.x&&Se.x<=this.max.x&&le.y>=this.min.y&&Se.y<=this.max.y},intersects:function(Zt){Zt=Pt(Zt);var le=this.min,Se=this.max,Ke=Zt.min,Zt=Zt.max,vt=Zt.x>=le.x&&Ke.x<=Se.x,Zt=Zt.y>=le.y&&Ke.y<=Se.y;return vt&&Zt},overlaps:function(Zt){Zt=Pt(Zt);var le=this.min,Se=this.max,Ke=Zt.min,Zt=Zt.max,vt=Zt.x>le.x&&Ke.x<Se.x,Zt=Zt.y>le.y&&Ke.y<Se.y;return vt&&Zt},isValid:function(){return!(!this.min||!this.max)},pad:function(vt){var le=this.min,Se=this.max,Ke=Math.abs(le.x-Se.x)*vt,vt=Math.abs(le.y-Se.y)*vt;return Pt(Ze(le.x-Ke,le.y-vt),Ze(Se.x+Ke,Se.y+vt))},equals:function(Q){return!!Q&&(Q=Pt(Q),this.min.equals(Q.getTopLeft())&&this.max.equals(Q.getBottomRight()))}},_t.prototype={extend:function(Q){var le,Se,Ke=this._southWest,vt=this._northEast;if(Q instanceof gt)Se=le=Q;else{if(!(Q instanceof _t))return Q?this.extend(Tt(Q)||He(Q)):this;if(le=Q._southWest,Se=Q._northEast,!le||!Se)return this}return Ke||vt?(Ke.lat=Math.min(le.lat,Ke.lat),Ke.lng=Math.min(le.lng,Ke.lng),vt.lat=Math.max(Se.lat,vt.lat),vt.lng=Math.max(Se.lng,vt.lng)):(this._southWest=new gt(le.lat,le.lng),this._northEast=new gt(Se.lat,Se.lng)),this},pad:function(vt){var le=this._southWest,Se=this._northEast,Ke=Math.abs(le.lat-Se.lat)*vt,vt=Math.abs(le.lng-Se.lng)*vt;return new _t(new gt(le.lat-Ke,le.lng-vt),new gt(Se.lat+Ke,Se.lng+vt))},getCenter:function(){return new gt((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 gt(this.getNorth(),this.getWest())},getSouthEast:function(){return new gt(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(Q){Q=(typeof Q[0]=="number"||Q instanceof gt||"lat"in Q?Tt:He)(Q);var le,Se,Ke=this._southWest,vt=this._northEast;return Q instanceof _t?(le=Q.getSouthWest(),Se=Q.getNorthEast()):le=Se=Q,le.lat>=Ke.lat&&Se.lat<=vt.lat&&le.lng>=Ke.lng&&Se.lng<=vt.lng},intersects:function(Zt){Zt=He(Zt);var le=this._southWest,Se=this._northEast,Ke=Zt.getSouthWest(),Zt=Zt.getNorthEast(),vt=Zt.lat>=le.lat&&Ke.lat<=Se.lat,Zt=Zt.lng>=le.lng&&Ke.lng<=Se.lng;return vt&&Zt},overlaps:function(Zt){Zt=He(Zt);var le=this._southWest,Se=this._northEast,Ke=Zt.getSouthWest(),Zt=Zt.getNorthEast(),vt=Zt.lat>le.lat&&Ke.lat<Se.lat,Zt=Zt.lng>le.lng&&Ke.lng<Se.lng;return vt&&Zt},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(Q,le){return!!Q&&(Q=He(Q),this._southWest.equals(Q.getSouthWest(),le)&&this._northEast.equals(Q.getNorthEast(),le))},isValid:function(){return!(!this._southWest||!this._northEast)}};var ht={latLngToPoint:function(Q,le){return Q=this.projection.project(Q),le=this.scale(le),this.transformation._transform(Q,le)},pointToLatLng:function(Q,le){return le=this.scale(le),Q=this.transformation.untransform(Q,le),this.projection.unproject(Q)},project:function(Q){return this.projection.project(Q)},unproject:function(Q){return this.projection.unproject(Q)},scale:function(Q){return 256*Math.pow(2,Q)},zoom:function(Q){return Math.log(Q/256)/Math.LN2},getProjectedBounds:function(Q){var le;return this.infinite?null:(le=this.projection.bounds,Q=this.scale(Q),new at(this.transformation.transform(le.min,Q),this.transformation.transform(le.max,Q)))},infinite:!(gt.prototype={equals:function(Q,le){return!!Q&&(Q=Tt(Q),Math.max(Math.abs(this.lat-Q.lat),Math.abs(this.lng-Q.lng))<=(le===void 0?1e-9:le))},toString:function(Q){return"LatLng("+O(this.lat,Q)+", "+O(this.lng,Q)+")"},distanceTo:function(Q){return bt.distance(this,Tt(Q))},wrap:function(){return bt.wrapLatLng(this)},toBounds:function(le){var le=180*le/40075017,Se=le/Math.cos(Math.PI/180*this.lat);return He([this.lat-le,this.lng-Se],[this.lat+le,this.lng+Se])},clone:function(){return new gt(this.lat,this.lng,this.alt)}}),wrapLatLng:function(Q){var le=this.wrapLng?S(Q.lng,this.wrapLng,!0):Q.lng;return new gt(this.wrapLat?S(Q.lat,this.wrapLat,!0):Q.lat,le,Q.alt)},wrapLatLngBounds:function(Q){var Ke=Q.getCenter(),le=this.wrapLatLng(Ke),Se=Ke.lat-le.lat,Ke=Ke.lng-le.lng;return Se==0&&Ke==0?Q:(le=Q.getSouthWest(),Q=Q.getNorthEast(),new _t(new gt(le.lat-Se,le.lng-Ke),new gt(Q.lat-Se,Q.lng-Ke)))}},bt=p({},ht,{wrapLng:[-180,180],R:6371e3,distance:function(Rn,Zt){var Cn=Math.PI/180,Se=Rn.lat*Cn,Ke=Zt.lat*Cn,vt=Math.sin((Zt.lat-Rn.lat)*Cn/2),Zt=Math.sin((Zt.lng-Rn.lng)*Cn/2),Rn=vt*vt+Math.cos(Se)*Math.cos(Ke)*Zt*Zt,Cn=2*Math.atan2(Math.sqrt(Rn),Math.sqrt(1-Rn));return this.R*Cn}}),ct=6378137,ct={R:ct,MAX_LATITUDE:85.0511287798,project:function(Q){var le=Math.PI/180,Se=this.MAX_LATITUDE,Se=Math.max(Math.min(Se,Q.lat),-Se),Se=Math.sin(Se*le);return new Re(this.R*Q.lng*le,this.R*Math.log((1+Se)/(1-Se))/2)},unproject:function(Q){var le=180/Math.PI;return new gt((2*Math.atan(Math.exp(Q.y/this.R))-Math.PI/2)*le,Q.x*le/this.R)},bounds:new at([-(ct=ct*Math.PI),-ct],[ct,ct])};function lt(Q,le,Se,Ke){Z(Q)?(this._a=Q[0],this._b=Q[1],this._c=Q[2],this._d=Q[3]):(this._a=Q,this._b=le,this._c=Se,this._d=Ke)}function Et(Q,le,Se,Ke){return new lt(Q,le,Se,Ke)}lt.prototype={transform:function(Q,le){return this._transform(Q.clone(),le)},_transform:function(Q,le){return Q.x=(le=le||1)*(this._a*Q.x+this._b),Q.y=le*(this._c*Q.y+this._d),Q},untransform:function(Q,le){return new Re((Q.x/(le=le||1)-this._b)/this._a,(Q.y/le-this._d)/this._c)}};var ft=p({},bt,{code:"EPSG:3857",projection:ct,transformation:Et(ft=.5/(Math.PI*ct.R),.5,-ft,.5)}),It=p({},ft,{code:"EPSG:900913"});function zt(Q){return document.createElementNS("http://www.w3.org/2000/svg",Q)}function In(Q,le){for(var Se,Ke,vt,Zt,Rn="",Cn=0,sr=Q.length;Cn<sr;Cn++){for(Se=0,Ke=(vt=Q[Cn]).length;Se<Ke;Se++)Rn+=(Se?"L":"M")+(Zt=vt[Se]).x+" "+Zt.y;Rn+=le?mt.svg?"z":"x":""}return Rn||"M0 0"}var ri=document.documentElement.style,_n="ActiveXObject"in window,Ye=_n&&!document.addEventListener,Xn="msLaunchUri"in navigator&&!("documentMode"in document),ur=ot("webkit"),Xr=ot("android"),Sn=ot("android 2")||ot("android 3"),xn=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),xn=Xr&&ot("Google")&&xn<537&&!("AudioNode"in window),Qn=!!window.opera,Jn=!Xn&&ot("chrome"),pn=ot("gecko")&&!ur&&!Qn&&!_n,nr=!Jn&&ot("safari"),Br=ot("phantom"),Er="OTransition"in ri,fn=navigator.platform.indexOf("Win")===0,oo=_n&&"transition"in ri,vo="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Sn,ri="MozPerspective"in ri,Co=!window.L_DISABLE_3D&&(oo||vo||ri)&&!Er&&!Br,Wi=typeof orientation<"u"||ot("mobile"),Ro=Wi&&ur,Oi=Wi&&vo,go=!window.PointerEvent&&window.MSPointerEvent,Zi=!(!window.PointerEvent&&!go),Bn="ontouchstart"in window||!!window.TouchEvent,Wt=!window.L_NO_TOUCH&&(Bn||Zi),kn=Wi&&Qn,Hn=Wi&&pn,an=1<(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI),ir=function(){var Q=!1;try{var le=Object.defineProperty({},"passive",{get:function(){Q=!0}});window.addEventListener("testPassiveEventSupport",B,le),window.removeEventListener("testPassiveEventSupport",B,le)}catch{}return Q}(),un=!!document.createElement("canvas").getContext,mn=!(!document.createElementNS||!zt("svg").createSVGRect),Rt=!!mn&&((Rt=document.createElement("div")).innerHTML="<svg/>",(Rt.firstChild&&Rt.firstChild.namespaceURI)==="http://www.w3.org/2000/svg");function ot(Q){return 0<=navigator.userAgent.toLowerCase().indexOf(Q)}var mt={ie:_n,ielt9:Ye,edge:Xn,webkit:ur,android:Xr,android23:Sn,androidStock:xn,opera:Qn,chrome:Jn,gecko:pn,safari:nr,phantom:Br,opera12:Er,win:fn,ie3d:oo,webkit3d:vo,gecko3d:ri,any3d:Co,mobile:Wi,mobileWebkit:Ro,mobileWebkit3d:Oi,msPointer:go,pointer:Zi,touch:Wt,touchNative:Bn,mobileOpera:kn,mobileGecko:Hn,retina:an,passiveEvents:ir,canvas:un,svg:mn,vml:!mn&&function(){try{var Q=document.createElement("div"),le=(Q.innerHTML='<v:shape adj="1"/>',Q.firstChild);return le.style.behavior="url(#default#VML)",le&&typeof le.adj=="object"}catch{return!1}}(),inlineSvg:Rt,mac:navigator.platform.indexOf("Mac")===0,linux:navigator.platform.indexOf("Linux")===0},en=mt.msPointer?"MSPointerDown":"pointerdown",Ht=mt.msPointer?"MSPointerMove":"pointermove",Ot=mt.msPointer?"MSPointerUp":"pointerup",On=mt.msPointer?"MSPointerCancel":"pointercancel",rn={touchstart:en,touchmove:Ht,touchend:Ot,touchcancel:On},Vt={touchstart:function(Q,le){le.MSPOINTER_TYPE_TOUCH&&le.pointerType===le.MSPOINTER_TYPE_TOUCH&&Le(le),Zn(Q,le)},touchmove:Zn,touchend:Zn,touchcancel:Zn},Nn={},Yn=!1;function Vn(Q,le,Se){return le!=="touchstart"||Yn||(document.addEventListener(en,_r,!0),document.addEventListener(Ht,qn,!0),document.addEventListener(Ot,ni,!0),document.addEventListener(On,ni,!0),Yn=!0),Vt[le]?(Se=Vt[le].bind(this,Se),Q.addEventListener(rn[le],Se,!1),Se):(console.warn("wrong event specified:",le),B)}function _r(Q){Nn[Q.pointerId]=Q}function qn(Q){Nn[Q.pointerId]&&(Nn[Q.pointerId]=Q)}function ni(Q){delete Nn[Q.pointerId]}function Zn(Q,le){if(le.pointerType!==(le.MSPOINTER_TYPE_MOUSE||"mouse")){for(var Se in le.touches=[],Nn)le.touches.push(Nn[Se]);le.changedTouches=[le],Q(le)}}var Ur=200;function Hr(Q,le){Q.addEventListener("dblclick",le);var Se,Ke=0;function vt(Zt){var Rn;Zt.detail!==1?Se=Zt.detail:Zt.pointerType==="mouse"||Zt.sourceCapabilities&&!Zt.sourceCapabilities.firesTouchEvents||(Rn=Pe(Zt)).some(function(Cn){return Cn instanceof HTMLLabelElement&&Cn.attributes.for})&&!Rn.some(function(Cn){return Cn instanceof HTMLInputElement||Cn instanceof HTMLSelectElement})||((Rn=Date.now())-Ke<=Ur?++Se===2&&le(function(Cn){var sr,xt,F={};for(xt in Cn)sr=Cn[xt],F[xt]=sr&&sr.bind?sr.bind(Cn):sr;return(Cn=F).type="dblclick",F.detail=2,F.isTrusted=!1,F._simulated=!0,F}(Zt)):Se=1,Ke=Rn)}return Q.addEventListener("click",vt),{dblclick:le,simDblclick:vt}}var Je,Ct,Dt,Ve,Qe,Xe,je=yn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),nt=yn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),rt=nt==="webkitTransition"||nt==="OTransition"?nt+"End":"transitionend";function At(Q){return typeof Q=="string"?document.getElementById(Q):Q}function kt(Q,le){var Se=Q.style[le]||Q.currentStyle&&Q.currentStyle[le];return(Se=Se&&Se!=="auto"||!document.defaultView?Se:(Q=document.defaultView.getComputedStyle(Q,null))?Q[le]:null)==="auto"?null:Se}function st(Q,le,Se){return Q=document.createElement(Q),Q.className=le||"",Se&&Se.appendChild(Q),Q}function ut(Q){var le=Q.parentNode;le&&le.removeChild(Q)}function yt(Q){for(;Q.firstChild;)Q.removeChild(Q.firstChild)}function Ft(Q){var le=Q.parentNode;le&&le.lastChild!==Q&&le.appendChild(Q)}function Ut(Q){var le=Q.parentNode;le&&le.firstChild!==Q&&le.insertBefore(Q,le.firstChild)}function Qt(Q,le){return Q.classList!==void 0?Q.classList.contains(le):0<(Q=An(Q)).length&&new RegExp("(^|\\s)"+le+"(\\s|$)").test(Q)}function Gt(Q,le){var Se;if(Q.classList!==void 0)for(var Ke=U(le),vt=0,Zt=Ke.length;vt<Zt;vt++)Q.classList.add(Ke[vt]);else Qt(Q,le)||dn(Q,((Se=An(Q))?Se+" ":"")+le)}function Kt(Q,le){Q.classList!==void 0?Q.classList.remove(le):dn(Q,R((" "+An(Q)+" ").replace(" "+le+" "," ")))}function dn(Q,le){Q.className.baseVal===void 0?Q.className=le:Q.className.baseVal=le}function An(Q){return(Q=Q.correspondingElement?Q.correspondingElement:Q).className.baseVal===void 0?Q.className:Q.className.baseVal}function En(Q,le){if("opacity"in Q.style)Q.style.opacity=le;else if("filter"in Q.style){var Se=!1,Ke="DXImageTransform.Microsoft.Alpha";try{Se=Q.filters.item(Ke)}catch{if(le===1)return}le=Math.round(100*le),Se?(Se.Enabled=le!==100,Se.Opacity=le):Q.style.filter+=" progid:"+Ke+"(opacity="+le+")"}}function yn(Q){for(var le=document.documentElement.style,Se=0;Se<Q.length;Se++)if(Q[Se]in le)return Q[Se];return!1}function cn(Q,le,Se){le=le||new Re(0,0),Q.style[je]=(mt.ie3d?"translate("+le.x+"px,"+le.y+"px)":"translate3d("+le.x+"px,"+le.y+"px,0)")+(Se?" scale("+Se+")":"")}function Lt(Q,le){Q._leaflet_pos=le,mt.any3d?cn(Q,le):(Q.style.left=le.x+"px",Q.style.top=le.y+"px")}function nn(Q){return Q._leaflet_pos||new Re(0,0)}function ln(){H(window,"dragstart",Le)}function et(){q(window,"dragstart",Le)}function E(Q){for(;Q.tabIndex===-1;)Q=Q.parentNode;Q.style&&(T(),Xe=(Qe=Q).style.outlineStyle,Q.style.outlineStyle="none",H(window,"keydown",T))}function T(){Qe&&(Qe.style.outlineStyle=Xe,Xe=Qe=void 0,q(window,"keydown",T))}function P(Q){for(;!((Q=Q.parentNode).offsetWidth&&Q.offsetHeight||Q===document.body););return Q}function M(Q){var le=Q.getBoundingClientRect();return{x:le.width/Q.offsetWidth||1,y:le.height/Q.offsetHeight||1,boundingClientRect:le}}Ve="onselectstart"in document?(Dt=function(){H(window,"selectstart",Le)},function(){q(window,"selectstart",Le)}):(Ct=yn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),Dt=function(){var Q;Ct&&(Q=document.documentElement.style,Je=Q[Ct],Q[Ct]="none")},function(){Ct&&(document.documentElement.style[Ct]=Je,Je=void 0)}),_n={__proto__:null,TRANSFORM:je,TRANSITION:nt,TRANSITION_END:rt,get:At,getStyle:kt,create:st,remove:ut,empty:yt,toFront:Ft,toBack:Ut,hasClass:Qt,addClass:Gt,removeClass:Kt,setClass:dn,getClass:An,setOpacity:En,testProp:yn,setTransform:cn,setPosition:Lt,getPosition:nn,get disableTextSelection(){return Dt},get enableTextSelection(){return Ve},disableImageDrag:ln,enableImageDrag:et,preventOutline:E,restoreOutline:T,getSizedParentNode:P,getScale:M};function H(Q,le,Se,Ke){if(le&&typeof le=="object")for(var vt in le)ve(Q,vt,le[vt],Se);else for(var Zt=0,Rn=(le=U(le)).length;Zt<Rn;Zt++)ve(Q,le[Zt],Se,Ke);return this}var z="_leaflet_events";function q(Q,le,Se,Ke){if(arguments.length===1)ee(Q),delete Q[z];else if(le&&typeof le=="object")for(var vt in le)_e(Q,vt,le[vt],Se);else if(le=U(le),arguments.length===2)ee(Q,function(Cn){return se(le,Cn)!==-1});else for(var Zt=0,Rn=le.length;Zt<Rn;Zt++)_e(Q,le[Zt],Se,Ke);return this}function ee(Q,le){for(var Se in Q[z]){var Ke=Se.split(/\d/)[0];le&&!le(Ke)||_e(Q,Ke,null,null,Se)}}var ue={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function ve(Q,le,Se,Ke){var vt,Zt,Rn=le+v(Se)+(Ke?"_"+v(Ke):"");Q[z]&&Q[z][Rn]||(Zt=vt=function(Cn){return Se.call(Ke||Q,Cn||window.event)},!mt.touchNative&&mt.pointer&&le.indexOf("touch")===0?vt=Vn(Q,le,vt):mt.touch&&le==="dblclick"?vt=Hr(Q,vt):"addEventListener"in Q?le==="touchstart"||le==="touchmove"||le==="wheel"||le==="mousewheel"?Q.addEventListener(ue[le]||le,vt,!!mt.passiveEvents&&{passive:!1}):le==="mouseenter"||le==="mouseleave"?Q.addEventListener(ue[le],vt=function(Cn){Cn=Cn||window.event,qe(Q,Cn)&&Zt(Cn)},!1):Q.addEventListener(le,Zt,!1):Q.attachEvent("on"+le,vt),Q[z]=Q[z]||{},Q[z][Rn]=vt)}function _e(Q,le,Cn,Ke,vt){vt=vt||le+v(Cn)+(Ke?"_"+v(Ke):"");var Zt,Rn,Cn=Q[z]&&Q[z][vt];Cn&&(!mt.touchNative&&mt.pointer&&le.indexOf("touch")===0?(Ke=Q,Rn=Cn,rn[Zt=le]?Ke.removeEventListener(rn[Zt],Rn,!1):console.warn("wrong event specified:",Zt)):mt.touch&&le==="dblclick"?(Ke=Cn,(Rn=Q).removeEventListener("dblclick",Ke.dblclick),Rn.removeEventListener("click",Ke.simDblclick)):"removeEventListener"in Q?Q.removeEventListener(ue[le]||le,Cn,!1):Q.detachEvent("on"+le,Cn),Q[z][vt]=null)}function Ce(Q){return Q.stopPropagation?Q.stopPropagation():Q.originalEvent?Q.originalEvent._stopped=!0:Q.cancelBubble=!0,this}function Ie(Q){return ve(Q,"wheel",Ce),this}function Be(Q){return H(Q,"mousedown touchstart dblclick contextmenu",Ce),Q._leaflet_disable_click=!0,this}function Le(Q){return Q.preventDefault?Q.preventDefault():Q.returnValue=!1,this}function xe(Q){return Le(Q),Ce(Q),this}function Pe(Q){if(Q.composedPath)return Q.composedPath();for(var le=[],Se=Q.target;Se;)le.push(Se),Se=Se.parentNode;return le}function We(Q,le){var Se,Ke;return le?(Ke=(Se=M(le)).boundingClientRect,new Re((Q.clientX-Ke.left)/Se.x-le.clientLeft,(Q.clientY-Ke.top)/Se.y-le.clientTop)):new Re(Q.clientX,Q.clientY)}var oe=mt.linux&&mt.chrome?window.devicePixelRatio:mt.mac?3*window.devicePixelRatio:0<window.devicePixelRatio?2*window.devicePixelRatio:1;function Ee(Q){return mt.edge?Q.wheelDeltaY/2:Q.deltaY&&Q.deltaMode===0?-Q.deltaY/oe:Q.deltaY&&Q.deltaMode===1?20*-Q.deltaY:Q.deltaY&&Q.deltaMode===2?60*-Q.deltaY:Q.deltaX||Q.deltaZ?0:Q.wheelDelta?(Q.wheelDeltaY||Q.wheelDelta)/2:Q.detail&&Math.abs(Q.detail)<32765?20*-Q.detail:Q.detail?Q.detail/-32765*60:0}function qe(Q,le){var Se=le.relatedTarget;if(!Se)return!0;try{for(;Se&&Se!==Q;)Se=Se.parentNode}catch{return!1}return Se!==Q}var Ye={__proto__:null,on:H,off:q,stopPropagation:Ce,disableScrollPropagation:Ie,disableClickPropagation:Be,preventDefault:Le,stop:xe,getPropagationPath:Pe,getMousePosition:We,getWheelDelta:Ee,isExternalTarget:qe,addListener:H,removeListener:q},Ne=Fe.extend({run:function(Q,le,Se,Ke){this.stop(),this._el=Q,this._inProgress=!0,this._duration=Se||.25,this._easeOutPower=1/Math.max(Ke||.5,.2),this._startPos=nn(Q),this._offset=le.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=de(this._animate,this),this._step()},_step:function(Q){var le=+new Date-this._startTime,Se=1e3*this._duration;le<Se?this._runFrame(this._easeOut(le/Se),Q):(this._runFrame(1),this._complete())},_runFrame:function(Q,le){Q=this._startPos.add(this._offset.multiplyBy(Q)),le&&Q._round(),Lt(this._el,Q),this.fire("step")},_complete:function(){Te(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(Q){return 1-Math.pow(1-Q,this._easeOutPower)}}),dt=Fe.extend({options:{crs:ft,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(Q,le){le=$(this,le),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(Q),this._initLayout(),this._onResize=y(this._onResize,this),this._initEvents(),le.maxBounds&&this.setMaxBounds(le.maxBounds),le.zoom!==void 0&&(this._zoom=this._limitZoom(le.zoom)),le.center&&le.zoom!==void 0&&this.setView(Tt(le.center),le.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=nt&&mt.any3d&&!mt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),H(this._proxy,rt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(Q,le,Se){return le=le===void 0?this._zoom:this._limitZoom(le),Q=this._limitCenter(Tt(Q),le,this.options.maxBounds),Se=Se||{},this._stop(),this._loaded&&!Se.reset&&Se!==!0&&(Se.animate!==void 0&&(Se.zoom=p({animate:Se.animate},Se.zoom),Se.pan=p({animate:Se.animate,duration:Se.duration},Se.pan)),this._zoom!==le?this._tryAnimatedZoom&&this._tryAnimatedZoom(Q,le,Se.zoom):this._tryAnimatedPan(Q,Se.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(Q,le,Se.pan&&Se.pan.noMoveStart),this)},setZoom:function(Q,le){return this._loaded?this.setView(this.getCenter(),Q,{zoom:le}):(this._zoom=Q,this)},zoomIn:function(Q,le){return Q=Q||(mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+Q,le)},zoomOut:function(Q,le){return Q=Q||(mt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-Q,le)},setZoomAround:function(vt,le,Se){var Zt=this.getZoomScale(le),Ke=this.getSize().divideBy(2),vt=(vt instanceof Re?vt:this.latLngToContainerPoint(vt)).subtract(Ke).multiplyBy(1-1/Zt),Zt=this.containerPointToLatLng(Ke.add(vt));return this.setView(Zt,le,{zoom:Se})},_getBoundsCenterZoom:function(Q,le){le=le||{},Q=Q.getBounds?Q.getBounds():He(Q);var Se=Ze(le.paddingTopLeft||le.padding||[0,0]),Ke=Ze(le.paddingBottomRight||le.padding||[0,0]),vt=this.getBoundsZoom(Q,!1,Se.add(Ke));return(vt=typeof le.maxZoom=="number"?Math.min(le.maxZoom,vt):vt)===1/0?{center:Q.getCenter(),zoom:vt}:(le=Ke.subtract(Se).divideBy(2),Ke=this.project(Q.getSouthWest(),vt),Se=this.project(Q.getNorthEast(),vt),{center:this.unproject(Ke.add(Se).divideBy(2).add(le),vt),zoom:vt})},fitBounds:function(Q,le){if((Q=He(Q)).isValid())return Q=this._getBoundsCenterZoom(Q,le),this.setView(Q.center,Q.zoom,le);throw new Error("Bounds are not valid.")},fitWorld:function(Q){return this.fitBounds([[-90,-180],[90,180]],Q)},panTo:function(Q,le){return this.setView(Q,this._zoom,{pan:le})},panBy:function(Q,le){var Se;return le=le||{},(Q=Ze(Q).round()).x||Q.y?(le.animate===!0||this.getSize().contains(Q)?(this._panAnim||(this._panAnim=new Ne,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),le.noMoveStart||this.fire("movestart"),le.animate!==!1?(Gt(this._mapPane,"leaflet-pan-anim"),Se=this._getMapPanePos().subtract(Q).round(),this._panAnim.run(this._mapPane,Se,le.duration||.25,le.easeLinearity)):(this._rawPanBy(Q),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(Q)),this.getZoom()),this):this.fire("moveend")},flyTo:function(Q,le,Se){if((Se=Se||{}).animate===!1||!mt.any3d)return this.setView(Q,le,Se);this._stop();var Ke=this.project(this.getCenter()),vt=this.project(Q),Zt=this.getSize(),Rn=this._zoom,Cn=(Q=Tt(Q),le=le===void 0?Rn:le,Math.max(Zt.x,Zt.y)),sr=Cn*this.getZoomScale(Rn,le),xt=vt.distanceTo(Ke)||1,F=1.42,N=F*F;function W(Mt){return Mt=(sr*sr-Cn*Cn+(Mt?-1:1)*N*N*xt*xt)/(2*(Mt?sr:Cn)*N*xt),Mt=Math.sqrt(Mt*Mt+1)-Mt,Mt<1e-9?-18:Math.log(Mt)}function Y(Mt){return(Math.exp(Mt)-Math.exp(-Mt))/2}function te(Mt){return(Math.exp(Mt)+Math.exp(-Mt))/2}var fe=W(0);function ke(Mt){return Cn*(te(fe)*(Y(Mt=fe+F*Mt)/te(Mt))-Y(fe))/N}var De=Date.now(),ze=(W(1)-fe)/F,wt=Se.duration?1e3*Se.duration:1e3*ze*.8;return this._moveStart(!0,Se.noMoveStart),(function Mt(){var qt=(Date.now()-De)/wt,gn=(1-Math.pow(1-qt,1.5))*ze;qt<=1?(this._flyToFrame=de(Mt,this),this._move(this.unproject(Ke.add(vt.subtract(Ke).multiplyBy(ke(gn)/xt)),Rn),this.getScaleZoom(Cn/(qt=gn,Cn*(te(fe)/te(fe+F*qt))),Rn),{flyTo:!0})):this._move(Q,le)._moveEnd(!0)}).call(this),this},flyToBounds:function(Q,le){return Q=this._getBoundsCenterZoom(Q,le),this.flyTo(Q.center,Q.zoom,le)},setMaxBounds:function(Q){return Q=He(Q),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),Q.isValid()?(this.options.maxBounds=Q,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(Q){var le=this.options.minZoom;return this.options.minZoom=Q,this._loaded&&le!==Q&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(Q):this},setMaxZoom:function(Q){var le=this.options.maxZoom;return this.options.maxZoom=Q,this._loaded&&le!==Q&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(Q):this},panInsideBounds:function(Ke,le){this._enforcingBounds=!0;var Se=this.getCenter(),Ke=this._limitCenter(Se,this._zoom,He(Ke));return Se.equals(Ke)||this.panTo(Ke,le),this._enforcingBounds=!1,this},panInside:function(vt,le){var Zt=Ze((le=le||{}).paddingTopLeft||le.padding||[0,0]),Se=Ze(le.paddingBottomRight||le.padding||[0,0]),Ke=this.project(this.getCenter()),vt=this.project(vt),Rn=this.getPixelBounds(),Zt=Pt([Rn.min.add(Zt),Rn.max.subtract(Se)]),Rn=Zt.getSize();return Zt.contains(vt)||(this._enforcingBounds=!0,Se=vt.subtract(Zt.getCenter()),Zt=Zt.extend(vt).getSize().subtract(Rn),Ke.x+=Se.x<0?-Zt.x:Zt.x,Ke.y+=Se.y<0?-Zt.y:Zt.y,this.panTo(this.unproject(Ke),le),this._enforcingBounds=!1),this},invalidateSize:function(Q){if(!this._loaded)return this;Q=p({animate:!1,pan:!0},Q===!0?{animate:!0}:Q);var le=this.getSize(),Se=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),vt=le.divideBy(2).round(),Ke=Se.divideBy(2).round(),vt=vt.subtract(Ke);return vt.x||vt.y?(Q.animate&&Q.pan?this.panBy(vt):(Q.pan&&this._rawPanBy(vt),this.fire("move"),Q.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(y(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:le,newSize:Se})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(Q){var le,Se;return Q=this._locateOptions=p({timeout:1e4,watch:!1},Q),"geolocation"in navigator?(le=y(this._handleGeolocationResponse,this),Se=y(this._handleGeolocationError,this),Q.watch?this._locationWatchId=navigator.geolocation.watchPosition(le,Se,Q):navigator.geolocation.getCurrentPosition(le,Se,Q)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(Q){var le;this._container._leaflet_id&&(le=Q.code,Q=Q.message||(le===1?"permission denied":le===2?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:le,message:"Geolocation error: "+Q+"."}))},_handleGeolocationResponse:function(Q){if(this._container._leaflet_id){var le,Se,Ke=new gt(Q.coords.latitude,Q.coords.longitude),vt=Ke.toBounds(2*Q.coords.accuracy),Zt=this._locateOptions,Rn=(Zt.setView&&(le=this.getBoundsZoom(vt),this.setView(Ke,Zt.maxZoom?Math.min(le,Zt.maxZoom):le)),{latlng:Ke,bounds:vt,timestamp:Q.timestamp});for(Se in Q.coords)typeof Q.coords[Se]=="number"&&(Rn[Se]=Q.coords[Se]);this.fire("locationfound",Rn)}},addHandler:function(Q,le){return le&&(le=this[Q]=new le(this),this._handlers.push(le),this.options[Q]&&le.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}for(var Q in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),ut(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Te(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[Q].remove();for(Q in this._panes)ut(this._panes[Q]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(Q,le){return le=st("div","leaflet-pane"+(Q?" leaflet-"+Q.replace("Pane","")+"-pane":""),le||this._mapPane),Q&&(this._panes[Q]=le),le},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var Q=this.getPixelBounds();return new _t(this.unproject(Q.getBottomLeft()),this.unproject(Q.getTopRight()))},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(sr,le,Cn){sr=He(sr),Cn=Ze(Cn||[0,0]);var xt=this.getZoom()||0,Ke=this.getMinZoom(),vt=this.getMaxZoom(),Zt=sr.getNorthWest(),sr=sr.getSouthEast(),Cn=this.getSize().subtract(Cn),sr=Pt(this.project(sr,xt),this.project(Zt,xt)).getSize(),Zt=mt.any3d?this.options.zoomSnap:1,Rn=Cn.x/sr.x,Cn=Cn.y/sr.y,sr=le?Math.max(Rn,Cn):Math.min(Rn,Cn),xt=this.getScaleZoom(sr,xt);return Zt&&(xt=Math.round(xt/(Zt/100))*(Zt/100),xt=le?Math.ceil(xt/Zt)*Zt:Math.floor(xt/Zt)*Zt),Math.max(Ke,Math.min(vt,xt))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new Re(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(Q,le){return Q=this._getTopLeftPoint(Q,le),new at(Q,Q.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(Q){return this.options.crs.getProjectedBounds(Q===void 0?this.getZoom():Q)},getPane:function(Q){return typeof Q=="string"?this._panes[Q]:Q},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(Q,le){var Se=this.options.crs;return le=le===void 0?this._zoom:le,Se.scale(Q)/Se.scale(le)},getScaleZoom:function(Ke,le){var Se=this.options.crs,Ke=(le=le===void 0?this._zoom:le,Se.zoom(Ke*Se.scale(le)));return isNaN(Ke)?1/0:Ke},project:function(Q,le){return le=le===void 0?this._zoom:le,this.options.crs.latLngToPoint(Tt(Q),le)},unproject:function(Q,le){return le=le===void 0?this._zoom:le,this.options.crs.pointToLatLng(Ze(Q),le)},layerPointToLatLng:function(Q){return Q=Ze(Q).add(this.getPixelOrigin()),this.unproject(Q)},latLngToLayerPoint:function(Q){return this.project(Tt(Q))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(Q){return this.options.crs.wrapLatLng(Tt(Q))},wrapLatLngBounds:function(Q){return this.options.crs.wrapLatLngBounds(He(Q))},distance:function(Q,le){return this.options.crs.distance(Tt(Q),Tt(le))},containerPointToLayerPoint:function(Q){return Ze(Q).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(Q){return Ze(Q).add(this._getMapPanePos())},containerPointToLatLng:function(Q){return Q=this.containerPointToLayerPoint(Ze(Q)),this.layerPointToLatLng(Q)},latLngToContainerPoint:function(Q){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Tt(Q)))},mouseEventToContainerPoint:function(Q){return We(Q,this._container)},mouseEventToLayerPoint:function(Q){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(Q))},mouseEventToLatLng:function(Q){return this.layerPointToLatLng(this.mouseEventToLayerPoint(Q))},_initContainer:function(Q){if(Q=this._container=At(Q),!Q)throw new Error("Map container not found.");if(Q._leaflet_id)throw new Error("Map container is already initialized.");H(Q,"scroll",this._onScroll,this),this._containerId=v(Q)},_initLayout:function(){var Q=this._container,le=(this._fadeAnimated=this.options.fadeAnimation&&mt.any3d,Gt(Q,"leaflet-container"+(mt.touch?" leaflet-touch":"")+(mt.retina?" leaflet-retina":"")+(mt.ielt9?" leaflet-oldie":"")+(mt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),kt(Q,"position"));le!=="absolute"&&le!=="relative"&&le!=="fixed"&&le!=="sticky"&&(Q.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var Q=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Lt(this._mapPane,new Re(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Gt(Q.markerPane,"leaflet-zoom-hide"),Gt(Q.shadowPane,"leaflet-zoom-hide"))},_resetView:function(Q,le,Se){Lt(this._mapPane,new Re(0,0));var Ke=!this._loaded,vt=(this._loaded=!0,le=this._limitZoom(le),this.fire("viewprereset"),this._zoom!==le);this._moveStart(vt,Se)._move(Q,le)._moveEnd(vt),this.fire("viewreset"),Ke&&this.fire("load")},_moveStart:function(Q,le){return Q&&this.fire("zoomstart"),le||this.fire("movestart"),this},_move:function(Q,le,Se,Ke){le===void 0&&(le=this._zoom);var vt=this._zoom!==le;return this._zoom=le,this._lastCenter=Q,this._pixelOrigin=this._getNewPixelOrigin(Q),Ke?Se&&Se.pinch&&this.fire("zoom",Se):((vt||Se&&Se.pinch)&&this.fire("zoom",Se),this.fire("move",Se)),this},_moveEnd:function(Q){return Q&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Te(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(Q){Lt(this._mapPane,this._getMapPanePos().subtract(Q))},_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(Q){this._targets={};var le=Q?q:H;le((this._targets[v(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&le(window,"resize",this._onResize,this),mt.any3d&&this.options.transform3DLimit&&(Q?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Te(this._resizeRequest),this._resizeRequest=de(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var Q=this._getMapPanePos();Math.max(Math.abs(Q.x),Math.abs(Q.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(Q,le){for(var Se,Ke=[],vt=le==="mouseout"||le==="mouseover",Zt=Q.target||Q.srcElement,Rn=!1;Zt;){if((Se=this._targets[v(Zt)])&&(le==="click"||le==="preclick")&&this._draggableMoved(Se)){Rn=!0;break}if(Se&&Se.listens(le,!0)&&(vt&&!qe(Zt,Q)||(Ke.push(Se),vt))||Zt===this._container)break;Zt=Zt.parentNode}return Ke=Ke.length||Rn||vt||!this.listens(le,!0)?Ke:[this]},_isClickDisabled:function(Q){for(;Q&&Q!==this._container;){if(Q._leaflet_disable_click)return!0;Q=Q.parentNode}},_handleDOMEvent:function(Q){var le,Se=Q.target||Q.srcElement;!this._loaded||Se._leaflet_disable_events||Q.type==="click"&&this._isClickDisabled(Se)||((le=Q.type)==="mousedown"&&E(Se),this._fireDOMEvent(Q,le))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(Q,le,Se){Q.type==="click"&&((Cn=p({},Q)).type="preclick",this._fireDOMEvent(Cn,Cn.type,Se));var Ke=this._findEventTargets(Q,le);if(Se){for(var vt=[],Zt=0;Zt<Se.length;Zt++)Se[Zt].listens(le,!0)&&vt.push(Se[Zt]);Ke=vt.concat(Ke)}if(Ke.length){le==="contextmenu"&&Le(Q);var Rn,Cn=Ke[0],sr={originalEvent:Q};for(Q.type!=="keypress"&&Q.type!=="keydown"&&Q.type!=="keyup"&&(Rn=Cn.getLatLng&&(!Cn._radius||Cn._radius<=10),sr.containerPoint=Rn?this.latLngToContainerPoint(Cn.getLatLng()):this.mouseEventToContainerPoint(Q),sr.layerPoint=this.containerPointToLayerPoint(sr.containerPoint),sr.latlng=Rn?Cn.getLatLng():this.layerPointToLatLng(sr.layerPoint)),Zt=0;Zt<Ke.length;Zt++)if(Ke[Zt].fire(le,sr,!0),sr.originalEvent._stopped||Ke[Zt].options.bubblingMouseEvents===!1&&se(this._mouseEvents,le)!==-1)return}},_draggableMoved:function(Q){return(Q=Q.dragging&&Q.dragging.enabled()?Q:this).dragging&&Q.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var Q=0,le=this._handlers.length;Q<le;Q++)this._handlers[Q].disable()},whenReady:function(Q,le){return this._loaded?Q.call(le||this,{target:this}):this.on("load",Q,le),this},_getMapPanePos:function(){return nn(this._mapPane)||new Re(0,0)},_moved:function(){var Q=this._getMapPanePos();return Q&&!Q.equals([0,0])},_getTopLeftPoint:function(Q,le){return(Q&&le!==void 0?this._getNewPixelOrigin(Q,le):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(Q,le){var Se=this.getSize()._divideBy(2);return this.project(Q,le)._subtract(Se)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(Q,le,Se){return Se=this._getNewPixelOrigin(Se,le),this.project(Q,le)._subtract(Se)},_latLngBoundsToNewLayerBounds:function(Q,le,Se){return Se=this._getNewPixelOrigin(Se,le),Pt([this.project(Q.getSouthWest(),le)._subtract(Se),this.project(Q.getNorthWest(),le)._subtract(Se),this.project(Q.getSouthEast(),le)._subtract(Se),this.project(Q.getNorthEast(),le)._subtract(Se)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(Q){return this.latLngToLayerPoint(Q).subtract(this._getCenterLayerPoint())},_limitCenter:function(Q,le,Se){var Ke,vt;return!Se||(Ke=this.project(Q,le),vt=this.getSize().divideBy(2),vt=new at(Ke.subtract(vt),Ke.add(vt)),vt=this._getBoundsOffset(vt,Se,le),Math.abs(vt.x)<=1&&Math.abs(vt.y)<=1)?Q:this.unproject(Ke.add(vt),le)},_limitOffset:function(Q,le){var Se;return le?(Se=new at((Se=this.getPixelBounds()).min.add(Q),Se.max.add(Q)),Q.add(this._getBoundsOffset(Se,le))):Q},_getBoundsOffset:function(Q,le,Se){return le=Pt(this.project(le.getNorthEast(),Se),this.project(le.getSouthWest(),Se)),Se=le.min.subtract(Q.min),le=le.max.subtract(Q.max),new Re(this._rebound(Se.x,-le.x),this._rebound(Se.y,-le.y))},_rebound:function(Q,le){return 0<Q+le?Math.round(Q-le)/2:Math.max(0,Math.ceil(Q))-Math.max(0,Math.floor(le))},_limitZoom:function(Q){var le=this.getMinZoom(),Se=this.getMaxZoom(),Ke=mt.any3d?this.options.zoomSnap:1;return Ke&&(Q=Math.round(Q/Ke)*Ke),Math.max(le,Math.min(Se,Q))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Kt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(Q,le){return Q=this._getCenterOffset(Q)._trunc(),!((le&&le.animate)!==!0&&!this.getSize().contains(Q))&&(this.panBy(Q,le),!0)},_createAnimProxy:function(){var Q=this._proxy=st("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(Q),this.on("zoomanim",function(le){var Se=je,Ke=this._proxy.style[Se];cn(this._proxy,this.project(le.center,le.zoom),this.getZoomScale(le.zoom,1)),Ke===this._proxy.style[Se]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ut(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var Q=this.getCenter(),le=this.getZoom();cn(this._proxy,this.project(Q,le),this.getZoomScale(le,1))},_catchTransitionEnd:function(Q){this._animatingZoom&&0<=Q.propertyName.indexOf("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(Q,le,Se){if(!this._animatingZoom){if(Se=Se||{},!this._zoomAnimated||Se.animate===!1||this._nothingToAnimate()||Math.abs(le-this._zoom)>this.options.zoomAnimationThreshold)return!1;var Ke=this.getZoomScale(le),Ke=this._getCenterOffset(Q)._divideBy(1-1/Ke);if(Se.animate!==!0&&!this.getSize().contains(Ke))return!1;de(function(){this._moveStart(!0,Se.noMoveStart||!1)._animateZoom(Q,le,!0)},this)}return!0},_animateZoom:function(Q,le,Se,Ke){this._mapPane&&(Se&&(this._animatingZoom=!0,this._animateToCenter=Q,this._animateToZoom=le,Gt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:Q,zoom:le,noUpdate:Ke}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(y(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Kt(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 Yt(Q){return new Xt(Q)}var Xt=$e.extend({options:{position:"topright"},initialize:function(Q){$(this,Q)},getPosition:function(){return this.options.position},setPosition:function(Q){var le=this._map;return le&&le.removeControl(this),this.options.position=Q,le&&le.addControl(this),this},getContainer:function(){return this._container},addTo:function(Ke){this.remove(),this._map=Ke;var le=this._container=this.onAdd(Ke),Se=this.getPosition(),Ke=Ke._controlCorners[Se];return Gt(le,"leaflet-control"),Se.indexOf("bottom")!==-1?Ke.insertBefore(le,Ke.firstChild):Ke.appendChild(le),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(ut(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(Q){this._map&&Q&&0<Q.screenX&&0<Q.screenY&&this._map.getContainer().focus()}}),wn=(dt.include({addControl:function(Q){return Q.addTo(this),this},removeControl:function(Q){return Q.remove(),this},_initControlPos:function(){var Q=this._controlCorners={},le="leaflet-",Se=this._controlContainer=st("div",le+"control-container",this._container);function Ke(vt,Zt){Q[vt+Zt]=st("div",le+vt+" "+le+Zt,Se)}Ke("top","left"),Ke("top","right"),Ke("bottom","left"),Ke("bottom","right")},_clearControlPos:function(){for(var Q in this._controlCorners)ut(this._controlCorners[Q]);ut(this._controlContainer),delete this._controlCorners,delete this._controlContainer}}),Xt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(Q,le,Se,Ke){return Se<Ke?-1:Ke<Se?1:0}},initialize:function(Q,le,Se){for(var Ke in $(this,Se),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,Q)this._addLayer(Q[Ke],Ke);for(Ke in le)this._addLayer(le[Ke],Ke,!0)},onAdd:function(Q){this._initLayout(),this._update(),(this._map=Q).on("zoomend",this._checkDisabledLayers,this);for(var le=0;le<this._layers.length;le++)this._layers[le].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(Q){return Xt.prototype.addTo.call(this,Q),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var Q=0;Q<this._layers.length;Q++)this._layers[Q].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(Q,le){return this._addLayer(Q,le),this._map?this._update():this},addOverlay:function(Q,le){return this._addLayer(Q,le,!0),this._map?this._update():this},removeLayer:function(Q){return Q.off("add remove",this._onLayerChange,this),Q=this._getLayer(v(Q)),Q&&this._layers.splice(this._layers.indexOf(Q),1),this._map?this._update():this},expand:function(){Gt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var Q=this._map.getSize().y-(this._container.offsetTop+50);return Q<this._section.clientHeight?(Gt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=Q+"px"):Kt(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Kt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var Q="leaflet-control-layers",le=this._container=st("div",Q),Se=this.options.collapsed,Ke=(le.setAttribute("aria-haspopup",!0),Be(le),Ie(le),this._section=st("section",Q+"-list")),vt=(Se&&(this._map.on("click",this.collapse,this),H(le,{mouseenter:this._expandSafely,mouseleave:this.collapse},this)),this._layersLink=st("a",Q+"-toggle",le));vt.href="#",vt.title="Layers",vt.setAttribute("role","button"),H(vt,{keydown:function(Zt){Zt.keyCode===13&&this._expandSafely()},click:function(Zt){Le(Zt),this._expandSafely()}},this),Se||this.expand(),this._baseLayersList=st("div",Q+"-base",Ke),this._separator=st("div",Q+"-separator",Ke),this._overlaysList=st("div",Q+"-overlays",Ke),le.appendChild(Ke)},_getLayer:function(Q){for(var le=0;le<this._layers.length;le++)if(this._layers[le]&&v(this._layers[le].layer)===Q)return this._layers[le]},_addLayer:function(Q,le,Se){this._map&&Q.on("add remove",this._onLayerChange,this),this._layers.push({layer:Q,name:le,overlay:Se}),this.options.sortLayers&&this._layers.sort(y(function(Ke,vt){return this.options.sortFunction(Ke.layer,vt.layer,Ke.name,vt.name)},this)),this.options.autoZIndex&&Q.setZIndex&&(this._lastZIndex++,Q.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(this._container){yt(this._baseLayersList),yt(this._overlaysList),this._layerControlInputs=[];for(var Q,le,Se,Ke=0,vt=0;vt<this._layers.length;vt++)Se=this._layers[vt],this._addItem(Se),le=le||Se.overlay,Q=Q||!Se.overlay,Ke+=Se.overlay?0:1;this.options.hideSingleBase&&(this._baseLayersList.style.display=(Q=Q&&1<Ke)?"":"none"),this._separator.style.display=le&&Q?"":"none"}return this},_onLayerChange:function(Se){this._handlingClick||this._update();var le=this._getLayer(v(Se.target)),Se=le.overlay?Se.type==="add"?"overlayadd":"overlayremove":Se.type==="add"?"baselayerchange":null;Se&&this._map.fire(Se,le)},_createRadioElement:function(Q,le){return Q='<input type="radio" class="leaflet-control-layers-selector" name="'+Q+'"'+(le?' checked="checked"':"")+"/>",le=document.createElement("div"),le.innerHTML=Q,le.firstChild},_addItem:function(Q){var le,Se=document.createElement("label"),Ke=this._map.hasLayer(Q.layer),Ke=(Q.overlay?((le=document.createElement("input")).type="checkbox",le.className="leaflet-control-layers-selector",le.defaultChecked=Ke):le=this._createRadioElement("leaflet-base-layers_"+v(this),Ke),this._layerControlInputs.push(le),le.layerId=v(Q.layer),H(le,"click",this._onInputClick,this),document.createElement("span")),vt=(Ke.innerHTML=" "+Q.name,document.createElement("span"));return Se.appendChild(vt),vt.appendChild(le),vt.appendChild(Ke),(Q.overlay?this._overlaysList:this._baseLayersList).appendChild(Se),this._checkDisabledLayers(),Se},_onInputClick:function(){if(!this._preventClick){var Q,le,Se=this._layerControlInputs,Ke=[],vt=[];this._handlingClick=!0;for(var Zt=Se.length-1;0<=Zt;Zt--)Q=Se[Zt],le=this._getLayer(Q.layerId).layer,Q.checked?Ke.push(le):Q.checked||vt.push(le);for(Zt=0;Zt<vt.length;Zt++)this._map.hasLayer(vt[Zt])&&this._map.removeLayer(vt[Zt]);for(Zt=0;Zt<Ke.length;Zt++)this._map.hasLayer(Ke[Zt])||this._map.addLayer(Ke[Zt]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var Q,le,Se=this._layerControlInputs,Ke=this._map.getZoom(),vt=Se.length-1;0<=vt;vt--)Q=Se[vt],le=this._getLayer(Q.layerId).layer,Q.disabled=le.options.minZoom!==void 0&&Ke<le.options.minZoom||le.options.maxZoom!==void 0&&Ke>le.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var Q=this._section,le=(this._preventClick=!0,H(Q,"click",Le),this.expand(),this);setTimeout(function(){q(Q,"click",Le),le._preventClick=!1})}})),tn=Xt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(Q){var le="leaflet-control-zoom",Se=st("div",le+" leaflet-bar"),Ke=this.options;return this._zoomInButton=this._createButton(Ke.zoomInText,Ke.zoomInTitle,le+"-in",Se,this._zoomIn),this._zoomOutButton=this._createButton(Ke.zoomOutText,Ke.zoomOutTitle,le+"-out",Se,this._zoomOut),this._updateDisabled(),Q.on("zoomend zoomlevelschange",this._updateDisabled,this),Se},onRemove:function(Q){Q.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(Q){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(Q.shiftKey?3:1))},_zoomOut:function(Q){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(Q.shiftKey?3:1))},_createButton:function(Q,le,Se,Ke,vt){return Se=st("a",Se,Ke),Se.innerHTML=Q,Se.href="#",Se.title=le,Se.setAttribute("role","button"),Se.setAttribute("aria-label",le),Be(Se),H(Se,"click",xe),H(Se,"click",vt,this),H(Se,"click",this._refocusOnMap,this),Se},_updateDisabled:function(){var Q=this._map,le="leaflet-disabled";Kt(this._zoomInButton,le),Kt(this._zoomOutButton,le),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&Q._zoom!==Q.getMinZoom()||(Gt(this._zoomOutButton,le),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&Q._zoom!==Q.getMaxZoom()||(Gt(this._zoomInButton,le),this._zoomInButton.setAttribute("aria-disabled","true"))}}),Un=(dt.mergeOptions({zoomControl:!0}),dt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tn,this.addControl(this.zoomControl))}),Xt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(Q){var le="leaflet-control-scale",Se=st("div",le),Ke=this.options;return this._addScales(Ke,le+"-line",Se),Q.on(Ke.updateWhenIdle?"moveend":"move",this._update,this),Q.whenReady(this._update,this),Se},onRemove:function(Q){Q.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(Q,le,Se){Q.metric&&(this._mScale=st("div",le,Se)),Q.imperial&&(this._iScale=st("div",le,Se))},_update:function(){var le=this._map,Q=le.getSize().y/2,le=le.distance(le.containerPointToLatLng([0,Q]),le.containerPointToLatLng([this.options.maxWidth,Q]));this._updateScales(le)},_updateScales:function(Q){this.options.metric&&Q&&this._updateMetric(Q),this.options.imperial&&Q&&this._updateImperial(Q)},_updateMetric:function(Q){var le=this._getRoundNum(Q);this._updateScale(this._mScale,le<1e3?le+" m":le/1e3+" km",le/Q)},_updateImperial:function(Ke){var le,Se,Ke=3.2808399*Ke;5280<Ke?(Se=this._getRoundNum(le=Ke/5280),this._updateScale(this._iScale,Se+" mi",Se/le)):(Se=this._getRoundNum(Ke),this._updateScale(this._iScale,Se+" ft",Se/Ke))},_updateScale:function(Q,le,Se){Q.style.width=Math.round(this.options.maxWidth*Se)+"px",Q.innerHTML=le},_getRoundNum:function(Se){var le=Math.pow(10,(Math.floor(Se)+"").length-1),Se=Se/le;return le*(Se=10<=Se?10:5<=Se?5:3<=Se?3:2<=Se?2:1)}})),Tn=Xt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(mt.inlineSvg?'<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> ':"")+"Leaflet</a>"},initialize:function(Q){$(this,Q),this._attributions={}},onAdd:function(Q){for(var le in(Q.attributionControl=this)._container=st("div","leaflet-control-attribution"),Be(this._container),Q._layers)Q._layers[le].getAttribution&&this.addAttribution(Q._layers[le].getAttribution());return this._update(),Q.on("layeradd",this._addAttribution,this),this._container},onRemove:function(Q){Q.off("layeradd",this._addAttribution,this)},_addAttribution:function(Q){Q.layer.getAttribution&&(this.addAttribution(Q.layer.getAttribution()),Q.layer.once("remove",function(){this.removeAttribution(Q.layer.getAttribution())},this))},setPrefix:function(Q){return this.options.prefix=Q,this._update(),this},addAttribution:function(Q){return Q&&(this._attributions[Q]||(this._attributions[Q]=0),this._attributions[Q]++,this._update()),this},removeAttribution:function(Q){return Q&&this._attributions[Q]&&(this._attributions[Q]--,this._update()),this},_update:function(){if(this._map){var Q,le=[];for(Q in this._attributions)this._attributions[Q]&&le.push(Q);var Se=[];this.options.prefix&&Se.push(this.options.prefix),le.length&&Se.push(le.join(", ")),this._container.innerHTML=Se.join(' <span aria-hidden="true">|</span> ')}}}),Xn=(dt.mergeOptions({attributionControl:!0}),dt.addInitHook(function(){this.options.attributionControl&&new Tn().addTo(this)}),Xt.Layers=wn,Xt.Zoom=tn,Xt.Scale=Un,Xt.Attribution=Tn,Yt.layers=function(Q,le,Se){return new wn(Q,le,Se)},Yt.zoom=function(Q){return new tn(Q)},Yt.scale=function(Q){return new Un(Q)},Yt.attribution=function(Q){return new Tn(Q)},$e.extend({initialize:function(Q){this._map=Q},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),ur=(Xn.addTo=function(Q,le){return Q.addHandler(le,this),this},{Events:he}),ar=mt.touch?"touchstart mousedown":"mousedown",pr=Fe.extend({options:{clickTolerance:3},initialize:function(Q,le,Se,Ke){$(this,Ke),this._element=Q,this._dragStartTarget=le||Q,this._preventOutline=Se},enable:function(){this._enabled||(H(this._dragStartTarget,ar,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(pr._dragging===this&&this.finishDrag(!0),q(this._dragStartTarget,ar,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(Q){var le,Se;this._enabled&&(this._moved=!1,Qt(this._element,"leaflet-zoom-anim")||(Q.touches&&Q.touches.length!==1?pr._dragging===this&&this.finishDrag():pr._dragging||Q.shiftKey||Q.which!==1&&Q.button!==1&&!Q.touches||((pr._dragging=this)._preventOutline&&E(this._element),ln(),Dt(),this._moving||(this.fire("down"),Se=Q.touches?Q.touches[0]:Q,le=P(this._element),this._startPoint=new Re(Se.clientX,Se.clientY),this._startPos=nn(this._element),this._parentScale=M(le),Se=Q.type==="mousedown",H(document,Se?"mousemove":"touchmove",this._onMove,this),H(document,Se?"mouseup":"touchend touchcancel",this._onUp,this)))))},_onMove:function(Q){var le;this._enabled&&(Q.touches&&1<Q.touches.length?this._moved=!0:!(le=new Re((le=Q.touches&&Q.touches.length===1?Q.touches[0]:Q).clientX,le.clientY)._subtract(this._startPoint)).x&&!le.y||Math.abs(le.x)+Math.abs(le.y)<this.options.clickTolerance||(le.x/=this._parentScale.x,le.y/=this._parentScale.y,Le(Q),this._moved||(this.fire("dragstart"),this._moved=!0,Gt(document.body,"leaflet-dragging"),this._lastTarget=Q.target||Q.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Gt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(le),this._moving=!0,this._lastEvent=Q,this._updatePosition()))},_updatePosition:function(){var Q={originalEvent:this._lastEvent};this.fire("predrag",Q),Lt(this._element,this._newPos),this.fire("drag",Q)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(Q){Kt(document.body,"leaflet-dragging"),this._lastTarget&&(Kt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),q(document,"mousemove touchmove",this._onMove,this),q(document,"mouseup touchend touchcancel",this._onUp,this),et(),Ve();var le=this._moved&&this._moving;this._moving=!1,pr._dragging=!1,le&&this.fire("dragend",{noInertia:Q,distance:this._newPos.distanceTo(this._startPos)})}});function Sr(Q,le,Se){for(var Ke,vt,Zt,Rn,Cn,sr,xt,F=[1,4,2,8],N=0,W=Q.length;N<W;N++)Q[N]._code=$r(Q[N],le);for(Zt=0;Zt<4;Zt++){for(sr=F[Zt],Ke=[],N=0,vt=(W=Q.length)-1;N<W;vt=N++)Rn=Q[N],Cn=Q[vt],Rn._code&sr?Cn._code&sr||((xt=kr(Cn,Rn,sr,le,Se))._code=$r(xt,le),Ke.push(xt)):(Cn._code&sr&&((xt=kr(Cn,Rn,sr,le,Se))._code=$r(xt,le),Ke.push(xt)),Ke.push(Rn));Q=Ke}return Q}function gr(Q,le){var Se,Ke,vt,Zt,Rn,Cn,sr;if(!Q||Q.length===0)throw new Error("latlngs not passed");Jt(Q)||(console.warn("latlngs are not flat! Only the first ring will be used"),Q=Q[0]);for(var xt=Tt([0,0]),F=He(Q),N=(F.getNorthWest().distanceTo(F.getSouthWest())*F.getNorthEast().distanceTo(F.getNorthWest())<1700&&(xt=vr(Q)),Q.length),W=[],Y=0;Y<N;Y++){var te=Tt(Q[Y]);W.push(le.project(Tt([te.lat-xt.lat,te.lng-xt.lng])))}for(Y=Rn=Cn=sr=0,Se=N-1;Y<N;Se=Y++)Ke=W[Y],vt=W[Se],Zt=Ke.y*vt.x-vt.y*Ke.x,Cn+=(Ke.x+vt.x)*Zt,sr+=(Ke.y+vt.y)*Zt,Rn+=3*Zt;return F=Rn===0?W[0]:[Cn/Rn,sr/Rn],F=le.unproject(Ze(F)),Tt([F.lat+xt.lat,F.lng+xt.lng])}function vr(Q){for(var le=0,Se=0,Ke=0,vt=0;vt<Q.length;vt++){var Zt=Tt(Q[vt]);le+=Zt.lat,Se+=Zt.lng,Ke++}return Tt([le/Ke,Se/Ke])}var Or,Xr={__proto__:null,clipPolygon:Sr,polygonCenter:gr,centroid:vr};function Ar(Q,le){if(le&&Q.length){var Se=Q=function(Cn,sr){for(var xt=[Cn[0]],F=1,N=0,W=Cn.length;F<W;F++)(function(Y,ke){var fe=ke.x-Y.x,ke=ke.y-Y.y;return fe*fe+ke*ke})(Cn[F],Cn[N])>sr&&(xt.push(Cn[F]),N=F);return N<W-1&&xt.push(Cn[W-1]),xt}(Q,le=le*le),Ke=Se.length,vt=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(Ke);vt[0]=vt[Ke-1]=1,function Cn(sr,xt,F,N,W){var Y,te,fe,ke=0;for(te=N+1;te<=W-1;te++)fe=oi(sr[te],sr[N],sr[W],!0),ke<fe&&(Y=te,ke=fe);F<ke&&(xt[Y]=1,Cn(sr,xt,F,N,Y),Cn(sr,xt,F,Y,W))}(Se,vt,le,0,Ke-1);var Zt,Rn=[];for(Zt=0;Zt<Ke;Zt++)vt[Zt]&&Rn.push(Se[Zt]);return Rn}return Q.slice()}function Cr(Q,le,Se){return Math.sqrt(oi(Q,le,Se,!0))}function ti(Q,le,Se,Ke,vt){var Zt,Rn,Cn,sr=Ke?Or:$r(Q,Se),xt=$r(le,Se);for(Or=xt;;){if(!(sr|xt))return[Q,le];if(sr&xt)return!1;Cn=$r(Rn=kr(Q,le,Zt=sr||xt,Se,vt),Se),Zt===sr?(Q=Rn,sr=Cn):(le=Rn,xt=Cn)}}function kr(Q,sr,Se,F,vt){var Zt,Rn,Cn=sr.x-Q.x,sr=sr.y-Q.y,xt=F.min,F=F.max;return 8&Se?(Zt=Q.x+Cn*(F.y-Q.y)/sr,Rn=F.y):4&Se?(Zt=Q.x+Cn*(xt.y-Q.y)/sr,Rn=xt.y):2&Se?(Zt=F.x,Rn=Q.y+sr*(F.x-Q.x)/Cn):1&Se&&(Zt=xt.x,Rn=Q.y+sr*(xt.x-Q.x)/Cn),new Re(Zt,Rn,vt)}function $r(Q,le){var Se=0;return Q.x<le.min.x?Se|=1:Q.x>le.max.x&&(Se|=2),Q.y<le.min.y?Se|=4:Q.y>le.max.y&&(Se|=8),Se}function oi(Q,Zt,Se,Ke){var vt=Zt.x,Zt=Zt.y,Rn=Se.x-vt,Cn=Se.y-Zt,sr=Rn*Rn+Cn*Cn;return 0<sr&&(1<(sr=((Q.x-vt)*Rn+(Q.y-Zt)*Cn)/sr)?(vt=Se.x,Zt=Se.y):0<sr&&(vt+=Rn*sr,Zt+=Cn*sr)),Rn=Q.x-vt,Cn=Q.y-Zt,Ke?Rn*Rn+Cn*Cn:new Re(vt,Zt)}function Jt(Q){return!Z(Q[0])||typeof Q[0][0]!="object"&&Q[0][0]!==void 0}function Ln(Q){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Jt(Q)}function Gn(Q,le){var Se,Ke,vt,Zt,Rn,Cn;if(!Q||Q.length===0)throw new Error("latlngs not passed");Jt(Q)||(console.warn("latlngs are not flat! Only the first ring will be used"),Q=Q[0]);for(var sr=Tt([0,0]),xt=He(Q),F=(xt.getNorthWest().distanceTo(xt.getSouthWest())*xt.getNorthEast().distanceTo(xt.getNorthWest())<1700&&(sr=vr(Q)),Q.length),N=[],W=0;W<F;W++){var Y=Tt(Q[W]);N.push(le.project(Tt([Y.lat-sr.lat,Y.lng-sr.lng])))}for(Se=W=0;W<F-1;W++)Se+=N[W].distanceTo(N[W+1])/2;if(Se===0)Cn=N[0];else for(Ke=W=0;W<F-1;W++)if(vt=N[W],Zt=N[W+1],Se<(Ke+=Rn=vt.distanceTo(Zt))){Cn=[Zt.x-(Rn=(Ke-Se)/Rn)*(Zt.x-vt.x),Zt.y-Rn*(Zt.y-vt.y)];break}return xt=le.unproject(Ze(Cn)),Tt([xt.lat+sr.lat,xt.lng+sr.lng])}var Sn={__proto__:null,simplify:Ar,pointToSegmentDistance:Cr,closestPointOnSegment:function(Q,le,Se){return oi(Q,le,Se)},clipSegment:ti,_getEdgeIntersection:kr,_getBitCode:$r,_sqClosestPointOnSegment:oi,isFlat:Jt,_flat:Ln,polylineCenter:Gn},xn={project:function(Q){return new Re(Q.lng,Q.lat)},unproject:function(Q){return new gt(Q.y,Q.x)},bounds:new at([-180,-90],[180,90])},Qn={R:6378137,R_MINOR:6356752314245179e-9,bounds:new at([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(Q){var le=Math.PI/180,Se=this.R,Zt=Q.lat*le,Ke=this.R_MINOR/Se,Ke=Math.sqrt(1-Ke*Ke),vt=Ke*Math.sin(Zt),vt=Math.tan(Math.PI/4-Zt/2)/Math.pow((1-vt)/(1+vt),Ke/2),Zt=-Se*Math.log(Math.max(vt,1e-10));return new Re(Q.lng*le*Se,Zt)},unproject:function(Q){for(var le,Se=180/Math.PI,Ke=this.R,vt=this.R_MINOR/Ke,Zt=Math.sqrt(1-vt*vt),Rn=Math.exp(-Q.y/Ke),Cn=Math.PI/2-2*Math.atan(Rn),sr=0,xt=.1;sr<15&&1e-7<Math.abs(xt);sr++)le=Zt*Math.sin(Cn),le=Math.pow((1-le)/(1+le),Zt/2),Cn+=xt=Math.PI/2-2*Math.atan(Rn*le)-Cn;return new gt(Cn*Se,Q.x*Se/Ke)}},Jn={__proto__:null,LonLat:xn,Mercator:Qn,SphericalMercator:ct},nr=p({},bt,{code:"EPSG:3395",projection:Qn,transformation:Et(pn=.5/(Math.PI*Qn.R),.5,-pn,.5)}),cr=p({},bt,{code:"EPSG:4326",projection:xn,transformation:Et(1/180,1,-1/180,.5)}),Br=p({},ht,{projection:xn,transformation:Et(1,0,-1,0),scale:function(Q){return Math.pow(2,Q)},zoom:function(Q){return Math.log(Q)/Math.LN2},distance:function(Q,Ke){var Se=Ke.lng-Q.lng,Ke=Ke.lat-Q.lat;return Math.sqrt(Se*Se+Ke*Ke)},infinite:!0}),Er=(ht.Earth=bt,ht.EPSG3395=nr,ht.EPSG3857=ft,ht.EPSG900913=It,ht.EPSG4326=cr,ht.Simple=Br,Fe.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(Q){return Q.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(Q){return Q&&Q.removeLayer(this),this},getPane:function(Q){return this._map.getPane(Q?this.options[Q]||Q:this.options.pane)},addInteractiveTarget:function(Q){return this._map._targets[v(Q)]=this},removeInteractiveTarget:function(Q){return delete this._map._targets[v(Q)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(Q){var le,Se=Q.target;Se.hasLayer(this)&&(this._map=Se,this._zoomAnimated=Se._zoomAnimated,this.getEvents&&(le=this.getEvents(),Se.on(le,this),this.once("remove",function(){Se.off(le,this)},this)),this.onAdd(Se),this.fire("add"),Se.fire("layeradd",{layer:this}))}})),Rr=(dt.include({addLayer:function(Q){var le;if(Q._layerAdd)return le=v(Q),this._layers[le]||((this._layers[le]=Q)._mapToAdd=this,Q.beforeAdd&&Q.beforeAdd(this),this.whenReady(Q._layerAdd,Q)),this;throw new Error("The provided object is not a Layer.")},removeLayer:function(Q){var le=v(Q);return this._layers[le]&&(this._loaded&&Q.onRemove(this),delete this._layers[le],this._loaded&&(this.fire("layerremove",{layer:Q}),Q.fire("remove")),Q._map=Q._mapToAdd=null),this},hasLayer:function(Q){return v(Q)in this._layers},eachLayer:function(Q,le){for(var Se in this._layers)Q.call(le,this._layers[Se]);return this},_addLayers:function(Q){for(var le=0,Se=(Q=Q?Z(Q)?Q:[Q]:[]).length;le<Se;le++)this.addLayer(Q[le])},_addZoomLimit:function(Q){isNaN(Q.options.maxZoom)&&isNaN(Q.options.minZoom)||(this._zoomBoundLayers[v(Q)]=Q,this._updateZoomLevels())},_removeZoomLimit:function(Q){Q=v(Q),this._zoomBoundLayers[Q]&&(delete this._zoomBoundLayers[Q],this._updateZoomLevels())},_updateZoomLevels:function(){var Q,le=1/0,Se=-1/0,Ke=this._getZoomSpan();for(Q in this._zoomBoundLayers)var vt=this._zoomBoundLayers[Q].options,le=vt.minZoom===void 0?le:Math.min(le,vt.minZoom),Se=vt.maxZoom===void 0?Se:Math.max(Se,vt.maxZoom);this._layersMaxZoom=Se===-1/0?void 0:Se,this._layersMinZoom=le===1/0?void 0:le,Ke!==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)}}),Er.extend({initialize:function(Q,le){var Se,Ke;if($(this,le),this._layers={},Q)for(Se=0,Ke=Q.length;Se<Ke;Se++)this.addLayer(Q[Se])},addLayer:function(Q){var le=this.getLayerId(Q);return this._layers[le]=Q,this._map&&this._map.addLayer(Q),this},removeLayer:function(Q){return Q=Q in this._layers?Q:this.getLayerId(Q),this._map&&this._layers[Q]&&this._map.removeLayer(this._layers[Q]),delete this._layers[Q],this},hasLayer:function(Q){return(typeof Q=="number"?Q:this.getLayerId(Q))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(Q){var le,Se,Ke=Array.prototype.slice.call(arguments,1);for(le in this._layers)(Se=this._layers[le])[Q]&&Se[Q].apply(Se,Ke);return this},onAdd:function(Q){this.eachLayer(Q.addLayer,Q)},onRemove:function(Q){this.eachLayer(Q.removeLayer,Q)},eachLayer:function(Q,le){for(var Se in this._layers)Q.call(le,this._layers[Se]);return this},getLayer:function(Q){return this._layers[Q]},getLayers:function(){var Q=[];return this.eachLayer(Q.push,Q),Q},setZIndex:function(Q){return this.invoke("setZIndex",Q)},getLayerId:v})),qr=Rr.extend({addLayer:function(Q){return this.hasLayer(Q)?this:(Q.addEventParent(this),Rr.prototype.addLayer.call(this,Q),this.fire("layeradd",{layer:Q}))},removeLayer:function(Q){return this.hasLayer(Q)?((Q=Q in this._layers?this._layers[Q]:Q).removeEventParent(this),Rr.prototype.removeLayer.call(this,Q),this.fire("layerremove",{layer:Q})):this},setStyle:function(Q){return this.invoke("setStyle",Q)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var Q,le=new _t;for(Q in this._layers){var Se=this._layers[Q];le.extend(Se.getBounds?Se.getBounds():Se.getLatLng())}return le}}),Jr=$e.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(Q){$(this,Q)},createIcon:function(Q){return this._createIcon("icon",Q)},createShadow:function(Q){return this._createIcon("shadow",Q)},_createIcon:function(Q,le){var Se=this._getIconUrl(Q);if(Se)return Se=this._createImg(Se,le&&le.tagName==="IMG"?le:null),this._setIconStyles(Se,Q),!this.options.crossOrigin&&this.options.crossOrigin!==""||(Se.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),Se;if(Q==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles:function(Q,le){var Se=this.options,Ke=Se[le+"Size"],Ke=Ze(Ke=typeof Ke=="number"?[Ke,Ke]:Ke),vt=Ze(le==="shadow"&&Se.shadowAnchor||Se.iconAnchor||Ke&&Ke.divideBy(2,!0));Q.className="leaflet-marker-"+le+" "+(Se.className||""),vt&&(Q.style.marginLeft=-vt.x+"px",Q.style.marginTop=-vt.y+"px"),Ke&&(Q.style.width=Ke.x+"px",Q.style.height=Ke.y+"px")},_createImg:function(Q,le){return(le=le||document.createElement("img")).src=Q,le},_getIconUrl:function(Q){return mt.retina&&this.options[Q+"RetinaUrl"]||this.options[Q+"Url"]}}),Ci=Jr.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(Q){return typeof Ci.imagePath!="string"&&(Ci.imagePath=this._detectIconPath()),(this.options.imagePath||Ci.imagePath)+Jr.prototype._getIconUrl.call(this,Q)},_stripUrl:function(Q){function le(Se,Ke,vt){return(Ke=Ke.exec(Se))&&Ke[vt]}return(Q=le(Q,/^url\((['"])?(.+)\1\)$/,2))&&le(Q,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var Q=st("div","leaflet-default-icon-path",document.body),le=kt(Q,"background-image")||kt(Q,"backgroundImage");return document.body.removeChild(Q),(le=this._stripUrl(le))?le:(Q=document.querySelector('link[href$="leaflet.css"]'))?Q.href.substring(0,Q.href.length-11-1):""}}),zi=Xn.extend({initialize:function(Q){this._marker=Q},addHooks:function(){var Q=this._marker._icon;this._draggable||(this._draggable=new pr(Q,Q,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Gt(Q,"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&&Kt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(Q){var le=this._marker,Se=le._map,Ke=this._marker.options.autoPanSpeed,vt=this._marker.options.autoPanPadding,Zt=nn(le._icon),Rn=Se.getPixelBounds(),Cn=Se.getPixelOrigin(),Cn=Pt(Rn.min._subtract(Cn).add(vt),Rn.max._subtract(Cn).subtract(vt));Cn.contains(Zt)||(vt=Ze((Math.max(Cn.max.x,Zt.x)-Cn.max.x)/(Rn.max.x-Cn.max.x)-(Math.min(Cn.min.x,Zt.x)-Cn.min.x)/(Rn.min.x-Cn.min.x),(Math.max(Cn.max.y,Zt.y)-Cn.max.y)/(Rn.max.y-Cn.max.y)-(Math.min(Cn.min.y,Zt.y)-Cn.min.y)/(Rn.min.y-Cn.min.y)).multiplyBy(Ke),Se.panBy(vt,{animate:!1}),this._draggable._newPos._add(vt),this._draggable._startPos._add(vt),Lt(le._icon,this._draggable._newPos),this._onDrag(Q),this._panRequest=de(this._adjustPan.bind(this,Q)))},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(Q){this._marker.options.autoPan&&(Te(this._panRequest),this._panRequest=de(this._adjustPan.bind(this,Q)))},_onDrag:function(Q){var le=this._marker,Se=le._shadow,Ke=nn(le._icon),vt=le._map.layerPointToLatLng(Ke);Se&&Lt(Se,Ke),le._latlng=vt,Q.latlng=vt,Q.oldLatLng=this._oldLatLng,le.fire("move",Q).fire("drag",Q)},_onDragEnd:function(Q){Te(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",Q)}}),Ii=Er.extend({options:{icon:new Ci,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(Q,le){$(this,le),this._latlng=Tt(Q)},onAdd:function(Q){this._zoomAnimated=this._zoomAnimated&&Q.options.markerZoomAnimation,this._zoomAnimated&&Q.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(Q){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&Q.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(Q){var le=this._latlng;return this._latlng=Tt(Q),this.update(),this.fire("move",{oldLatLng:le,latlng:this._latlng})},setZIndexOffset:function(Q){return this.options.zIndexOffset=Q,this.update()},getIcon:function(){return this.options.icon},setIcon:function(Q){return this.options.icon=Q,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){var Q;return this._icon&&this._map&&(Q=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(Q)),this},_initIcon:function(){var Q=this.options,le="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),Ke=Q.icon.createIcon(this._icon),Se=!1,Ke=(Ke!==this._icon&&(this._icon&&this._removeIcon(),Se=!0,Q.title&&(Ke.title=Q.title),Ke.tagName==="IMG"&&(Ke.alt=Q.alt||"")),Gt(Ke,le),Q.keyboard&&(Ke.tabIndex="0",Ke.setAttribute("role","button")),this._icon=Ke,Q.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&H(Ke,"focus",this._panOnFocus,this),Q.icon.createShadow(this._shadow)),vt=!1;Ke!==this._shadow&&(this._removeShadow(),vt=!0),Ke&&(Gt(Ke,le),Ke.alt=""),this._shadow=Ke,Q.opacity<1&&this._updateOpacity(),Se&&this.getPane().appendChild(this._icon),this._initInteraction(),Ke&&vt&&this.getPane(Q.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&q(this._icon,"focus",this._panOnFocus,this),ut(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ut(this._shadow),this._shadow=null},_setPos:function(Q){this._icon&&Lt(this._icon,Q),this._shadow&&Lt(this._shadow,Q),this._zIndex=Q.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(Q){this._icon&&(this._icon.style.zIndex=this._zIndex+Q)},_animateZoom:function(Q){Q=this._map._latLngToNewLayerPoint(this._latlng,Q.zoom,Q.center).round(),this._setPos(Q)},_initInteraction:function(){var Q;this.options.interactive&&(Gt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),zi&&(Q=this.options.draggable,this.dragging&&(Q=this.dragging.enabled(),this.dragging.disable()),this.dragging=new zi(this),Q&&this.dragging.enable()))},setOpacity:function(Q){return this.options.opacity=Q,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var Q=this.options.opacity;this._icon&&En(this._icon,Q),this._shadow&&En(this._shadow,Q)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var Q,le,Se=this._map;Se&&(Q=(le=this.options.icon.options).iconSize?Ze(le.iconSize):Ze(0,0),le=le.iconAnchor?Ze(le.iconAnchor):Ze(0,0),Se.panInside(this._latlng,{paddingTopLeft:le,paddingBottomRight:Q.subtract(le)}))},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),ai=Er.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(Q){this._renderer=Q.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(Q){return $(this,Q),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&Q&&Object.prototype.hasOwnProperty.call(Q,"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)}}),di=ai.extend({options:{fill:!0,radius:10},initialize:function(Q,le){$(this,le),this._latlng=Tt(Q),this._radius=this.options.radius},setLatLng:function(Q){var le=this._latlng;return this._latlng=Tt(Q),this.redraw(),this.fire("move",{oldLatLng:le,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(Q){return this.options.radius=this._radius=Q,this.redraw()},getRadius:function(){return this._radius},setStyle:function(Q){var le=Q&&Q.radius||this._radius;return ai.prototype.setStyle.call(this,Q),this.setRadius(le),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var Se=this._radius,Q=this._radiusY||Se,le=this._clickTolerance(),Se=[Se+le,Q+le];this._pxBounds=new at(this._point.subtract(Se),this._point.add(Se))},_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(Q){return Q.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Bi=di.extend({initialize:function(Q,le,Se){if($(this,le=typeof le=="number"?p({},Se,{radius:le}):le),this._latlng=Tt(Q),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(Q){return this._mRadius=Q,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var Q=[this._radius,this._radiusY||this._radius];return new _t(this._map.layerPointToLatLng(this._point.subtract(Q)),this._map.layerPointToLatLng(this._point.add(Q)))},setStyle:ai.prototype.setStyle,_project:function(){var Q,le,Se,Ke,vt,Zt=this._latlng.lng,Rn=this._latlng.lat,Cn=this._map,sr=Cn.options.crs;sr.distance===bt.distance?(Ke=Math.PI/180,vt=this._mRadius/bt.R/Ke,Q=Cn.project([Rn+vt,Zt]),le=Cn.project([Rn-vt,Zt]),le=Q.add(le).divideBy(2),Se=Cn.unproject(le).lat,Ke=Math.acos((Math.cos(vt*Ke)-Math.sin(Rn*Ke)*Math.sin(Se*Ke))/(Math.cos(Rn*Ke)*Math.cos(Se*Ke)))/Ke,!isNaN(Ke)&&Ke!==0||(Ke=vt/Math.cos(Math.PI/180*Rn)),this._point=le.subtract(Cn.getPixelOrigin()),this._radius=isNaN(Ke)?0:le.x-Cn.project([Se,Zt-Ke]).x,this._radiusY=le.y-Q.y):(vt=sr.unproject(sr.project(this._latlng).subtract([this._mRadius,0])),this._point=Cn.latLngToLayerPoint(this._latlng),this._radius=this._point.x-Cn.latLngToLayerPoint(vt).x),this._updateBounds()}}),gi=ai.extend({options:{smoothFactor:1,noClip:!1},initialize:function(Q,le){$(this,le),this._setLatLngs(Q)},getLatLngs:function(){return this._latlngs},setLatLngs:function(Q){return this._setLatLngs(Q),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(Q){for(var le=1/0,Se=null,Ke=oi,vt=0,Zt=this._parts.length;vt<Zt;vt++)for(var Rn=this._parts[vt],Cn=1,sr=Rn.length;Cn<sr;Cn++){var xt,F,N=Ke(Q,xt=Rn[Cn-1],F=Rn[Cn],!0);N<le&&(le=N,Se=Ke(Q,xt,F))}return Se&&(Se.distance=Math.sqrt(le)),Se},getCenter:function(){if(this._map)return Gn(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},getBounds:function(){return this._bounds},addLatLng:function(Q,le){return le=le||this._defaultShape(),Q=Tt(Q),le.push(Q),this._bounds.extend(Q),this.redraw()},_setLatLngs:function(Q){this._bounds=new _t,this._latlngs=this._convertLatLngs(Q)},_defaultShape:function(){return Jt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(Q){for(var le=[],Se=Jt(Q),Ke=0,vt=Q.length;Ke<vt;Ke++)Se?(le[Ke]=Tt(Q[Ke]),this._bounds.extend(le[Ke])):le[Ke]=this._convertLatLngs(Q[Ke]);return le},_project:function(){var Q=new at;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,Q),this._bounds.isValid()&&Q.isValid()&&(this._rawPxBounds=Q,this._updateBounds())},_updateBounds:function(){var Q=this._clickTolerance(),Q=new Re(Q,Q);this._rawPxBounds&&(this._pxBounds=new at([this._rawPxBounds.min.subtract(Q),this._rawPxBounds.max.add(Q)]))},_projectLatlngs:function(Q,le,Se){var Ke,vt,Zt=Q[0]instanceof gt,Rn=Q.length;if(Zt){for(vt=[],Ke=0;Ke<Rn;Ke++)vt[Ke]=this._map.latLngToLayerPoint(Q[Ke]),Se.extend(vt[Ke]);le.push(vt)}else for(Ke=0;Ke<Rn;Ke++)this._projectLatlngs(Q[Ke],le,Se)},_clipPoints:function(){var Q=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(Q))if(this.options.noClip)this._parts=this._rings;else for(var le,Se,Ke,vt,Zt=this._parts,Rn=0,Cn=0,sr=this._rings.length;Rn<sr;Rn++)for(le=0,Se=(vt=this._rings[Rn]).length;le<Se-1;le++)(Ke=ti(vt[le],vt[le+1],Q,le,!0))&&(Zt[Cn]=Zt[Cn]||[],Zt[Cn].push(Ke[0]),Ke[1]===vt[le+1]&&le!==Se-2||(Zt[Cn].push(Ke[1]),Cn++))},_simplifyPoints:function(){for(var Q=this._parts,le=this.options.smoothFactor,Se=0,Ke=Q.length;Se<Ke;Se++)Q[Se]=Ar(Q[Se],le)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(Q,le){var Se,Ke,vt,Zt,Rn,Cn,sr=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(Q)){for(Se=0,Zt=this._parts.length;Se<Zt;Se++)for(Ke=0,vt=(Rn=(Cn=this._parts[Se]).length)-1;Ke<Rn;vt=Ke++)if((le||Ke!==0)&&Cr(Q,Cn[vt],Cn[Ke])<=sr)return!0}return!1}});gi._flat=Ln;var Gi=gi.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(this._map)return gr(this._defaultShape(),this._map.options.crs);throw new Error("Must add layer to map before using getCenter()")},_convertLatLngs:function(le){var le=gi.prototype._convertLatLngs.call(this,le),Se=le.length;return 2<=Se&&le[0]instanceof gt&&le[0].equals(le[Se-1])&&le.pop(),le},_setLatLngs:function(Q){gi.prototype._setLatLngs.call(this,Q),Jt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return(Jt(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints:function(){var le=this._renderer._bounds,Q=this.options.weight,Q=new Re(Q,Q),le=new at(le.min.subtract(Q),le.max.add(Q));if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(le))if(this.options.noClip)this._parts=this._rings;else for(var Se,Ke=0,vt=this._rings.length;Ke<vt;Ke++)(Se=Sr(this._rings[Ke],le,!0)).length&&this._parts.push(Se)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(Q){var le,Se,Ke,vt,Zt,Rn,Cn,sr,xt=!1;if(!this._pxBounds||!this._pxBounds.contains(Q))return!1;for(vt=0,Cn=this._parts.length;vt<Cn;vt++)for(Zt=0,Rn=(sr=(le=this._parts[vt]).length)-1;Zt<sr;Rn=Zt++)Se=le[Zt],Ke=le[Rn],Se.y>Q.y!=Ke.y>Q.y&&Q.x<(Ke.x-Se.x)*(Q.y-Se.y)/(Ke.y-Se.y)+Se.x&&(xt=!xt);return xt||gi.prototype._containsPoint.call(this,Q,!0)}}),jn=qr.extend({initialize:function(Q,le){$(this,le),this._layers={},Q&&this.addData(Q)},addData:function(Q){var le,Se,Ke,vt=Z(Q)?Q:Q.features;if(vt){for(le=0,Se=vt.length;le<Se;le++)((Ke=vt[le]).geometries||Ke.geometry||Ke.features||Ke.coordinates)&&this.addData(Ke);return this}var Zt,Rn=this.options;return(!Rn.filter||Rn.filter(Q))&&(Zt=Kr(Q,Rn))?(Zt.feature=Oo(Q),Zt.defaultOptions=Zt.options,this.resetStyle(Zt),Rn.onEachFeature&&Rn.onEachFeature(Q,Zt),this.addLayer(Zt)):this},resetStyle:function(Q){return Q===void 0?this.eachLayer(this.resetStyle,this):(Q.options=p({},Q.defaultOptions),this._setLayerStyle(Q,this.options.style),this)},setStyle:function(Q){return this.eachLayer(function(le){this._setLayerStyle(le,Q)},this)},_setLayerStyle:function(Q,le){Q.setStyle&&(typeof le=="function"&&(le=le(Q.feature)),Q.setStyle(le))}});function Kr(Q,le){var Se,Ke,vt,Zt,Rn=Q.type==="Feature"?Q.geometry:Q,Cn=Rn?Rn.coordinates:null,sr=[],xt=le&&le.pointToLayer,F=le&&le.coordsToLatLng||_o;if(!Cn&&!Rn)return null;switch(Rn.type){case"Point":return xi(xt,Q,Se=F(Cn),le);case"MultiPoint":for(vt=0,Zt=Cn.length;vt<Zt;vt++)Se=F(Cn[vt]),sr.push(xi(xt,Q,Se,le));return new qr(sr);case"LineString":case"MultiLineString":return Ke=bo(Cn,Rn.type==="LineString"?0:1,F),new gi(Ke,le);case"Polygon":case"MultiPolygon":return Ke=bo(Cn,Rn.type==="Polygon"?1:2,F),new Gi(Ke,le);case"GeometryCollection":for(vt=0,Zt=Rn.geometries.length;vt<Zt;vt++){var N=Kr({geometry:Rn.geometries[vt],type:"Feature",properties:Q.properties},le);N&&sr.push(N)}return new qr(sr);case"FeatureCollection":for(vt=0,Zt=Rn.features.length;vt<Zt;vt++){var W=Kr(Rn.features[vt],le);W&&sr.push(W)}return new qr(sr);default:throw new Error("Invalid GeoJSON object.")}}function xi(Q,le,Se,Ke){return Q?Q(le,Se):new Ii(Se,Ke&&Ke.markersInheritOptions&&Ke)}function _o(Q){return new gt(Q[1],Q[0],Q[2])}function bo(Q,le,Se){for(var Ke,vt=[],Zt=0,Rn=Q.length;Zt<Rn;Zt++)Ke=le?bo(Q[Zt],le-1,Se):(Se||_o)(Q[Zt]),vt.push(Ke);return vt}function ji(Q,le){return(Q=Tt(Q)).alt!==void 0?[O(Q.lng,le),O(Q.lat,le),O(Q.alt,le)]:[O(Q.lng,le),O(Q.lat,le)]}function Uo(Q,le,Se,Ke){for(var vt=[],Zt=0,Rn=Q.length;Zt<Rn;Zt++)vt.push(le?Uo(Q[Zt],Jt(Q[Zt])?0:le-1,Se,Ke):ji(Q[Zt],Ke));return!le&&Se&&0<vt.length&&vt.push(vt[0].slice()),vt}function yo(Q,le){return Q.feature?p({},Q.feature,{geometry:le}):Oo(le)}function Oo(Q){return Q.type==="Feature"||Q.type==="FeatureCollection"?Q:{type:"Feature",properties:{},geometry:Q}}fn={toGeoJSON:function(Q){return yo(this,{type:"Point",coordinates:ji(this.getLatLng(),Q)})}};function yi(Q,le){return new jn(Q,le)}Ii.include(fn),Bi.include(fn),di.include(fn),gi.include({toGeoJSON:function(Q){var le=!Jt(this._latlngs);return yo(this,{type:(le?"Multi":"")+"LineString",coordinates:Uo(this._latlngs,le?1:0,!1,Q)})}}),Gi.include({toGeoJSON:function(Ke){var le=!Jt(this._latlngs),Se=le&&!Jt(this._latlngs[0]),Ke=Uo(this._latlngs,Se?2:le?1:0,!0,Ke);return yo(this,{type:(Se?"Multi":"")+"Polygon",coordinates:Ke=le?Ke:[Ke]})}}),Rr.include({toMultiPoint:function(Q){var le=[];return this.eachLayer(function(Se){le.push(Se.toGeoJSON(Q).geometry.coordinates)}),yo(this,{type:"MultiPoint",coordinates:le})},toGeoJSON:function(Q){var le,Se,Ke=this.feature&&this.feature.geometry&&this.feature.geometry.type;return Ke==="MultiPoint"?this.toMultiPoint(Q):(le=Ke==="GeometryCollection",Se=[],this.eachLayer(function(vt){vt.toGeoJSON&&(vt=vt.toGeoJSON(Q),le?Se.push(vt.geometry):(vt=Oo(vt)).type==="FeatureCollection"?Se.push.apply(Se,vt.features):Se.push(vt))}),le?yo(this,{geometries:Se,type:"GeometryCollection"}):{type:"FeatureCollection",features:Se})}});var oo=yi,mi=Er.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(Q,le,Se){this._url=Q,this._bounds=He(le),$(this,Se)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Gt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ut(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(Q){return this.options.opacity=Q,this._image&&this._updateOpacity(),this},setStyle:function(Q){return Q.opacity&&this.setOpacity(Q.opacity),this},bringToFront:function(){return this._map&&Ft(this._image),this},bringToBack:function(){return this._map&&Ut(this._image),this},setUrl:function(Q){return this._url=Q,this._image&&(this._image.src=Q),this},setBounds:function(Q){return this._bounds=He(Q),this._map&&this._reset(),this},getEvents:function(){var Q={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(Q.zoomanim=this._animateZoom),Q},setZIndex:function(Q){return this.options.zIndex=Q,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var Q=this._url.tagName==="IMG",le=this._image=Q?this._url:st("img");Gt(le,"leaflet-image-layer"),this._zoomAnimated&&Gt(le,"leaflet-zoom-animated"),this.options.className&&Gt(le,this.options.className),le.onselectstart=B,le.onmousemove=B,le.onload=y(this.fire,this,"load"),le.onerror=y(this._overlayOnError,this,"error"),!this.options.crossOrigin&&this.options.crossOrigin!==""||(le.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),Q?this._url=le.src:(le.src=this._url,le.alt=this.options.alt)},_animateZoom:function(Se){var le=this._map.getZoomScale(Se.zoom),Se=this._map._latLngBoundsToNewLayerBounds(this._bounds,Se.zoom,Se.center).min;cn(this._image,Se,le)},_reset:function(){var Q=this._image,le=new at(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),Se=le.getSize();Lt(Q,le.min),Q.style.width=Se.x+"px",Q.style.height=Se.y+"px"},_updateOpacity:function(){En(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 Q=this.options.errorOverlayUrl;Q&&this._url!==Q&&(this._url=Q,this._image.src=Q)},getCenter:function(){return this._bounds.getCenter()}}),Xo=mi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var Q=this._url.tagName==="VIDEO",le=this._image=Q?this._url:st("video");if(Gt(le,"leaflet-image-layer"),this._zoomAnimated&&Gt(le,"leaflet-zoom-animated"),this.options.className&&Gt(le,this.options.className),le.onselectstart=B,le.onmousemove=B,le.onloadeddata=y(this.fire,this,"load"),Q){for(var Se=le.getElementsByTagName("source"),Ke=[],vt=0;vt<Se.length;vt++)Ke.push(Se[vt].src);this._url=0<Se.length?Ke:[le.src]}else{Z(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(le.style,"objectFit")&&(le.style.objectFit="fill"),le.autoplay=!!this.options.autoplay,le.loop=!!this.options.loop,le.muted=!!this.options.muted,le.playsInline=!!this.options.playsInline;for(var Zt=0;Zt<this._url.length;Zt++){var Rn=st("source");Rn.src=this._url[Zt],le.appendChild(Rn)}}}}),Eo=mi.extend({_initImage:function(){var Q=this._image=this._url;Gt(Q,"leaflet-image-layer"),this._zoomAnimated&&Gt(Q,"leaflet-zoom-animated"),this.options.className&&Gt(Q,this.options.className),Q.onselectstart=B,Q.onmousemove=B}}),ii=Er.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(Q,le){Q&&(Q instanceof gt||Z(Q))?(this._latlng=Tt(Q),$(this,le)):($(this,Q),this._source=le),this.options.content&&(this._content=this.options.content)},openOn:function(Q){return(Q=arguments.length?Q:this._source._map).hasLayer(this)||Q.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(Q){return this._map?this.close():(arguments.length?this._source=Q:Q=this._source,this._prepareOpen(),this.openOn(Q._map)),this},onAdd:function(Q){this._zoomAnimated=Q._zoomAnimated,this._container||this._initLayout(),Q._fadeAnimated&&En(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),Q._fadeAnimated&&En(this._container,1),this.bringToFront(),this.options.interactive&&(Gt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(Q){Q._fadeAnimated?(En(this._container,0),this._removeTimeout=setTimeout(y(ut,void 0,this._container),200)):ut(this._container),this.options.interactive&&(Kt(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(Q){return this._latlng=Tt(Q),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(Q){return this._content=Q,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 Q={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(Q.zoomanim=this._animateZoom),Q},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ft(this._container),this},bringToBack:function(){return this._map&&Ut(this._container),this},_prepareOpen:function(Q){if(!(Se=this._source)._map)return!1;if(Se instanceof qr){var le,Se=null,Ke=this._source._layers;for(le in Ke)if(Ke[le]._map){Se=Ke[le];break}if(!Se)return!1;this._source=Se}if(!Q)if(Se.getCenter)Q=Se.getCenter();else if(Se.getLatLng)Q=Se.getLatLng();else{if(!Se.getBounds)throw new Error("Unable to get source layer LatLng.");Q=Se.getBounds().getCenter()}return this.setLatLng(Q),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var Q=this._contentNode,le=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof le=="string")Q.innerHTML=le;else{for(;Q.hasChildNodes();)Q.removeChild(Q.firstChild);Q.appendChild(le)}this.fire("contentupdate")}},_updatePosition:function(){var Q,le,Se;this._map&&(le=this._map.latLngToLayerPoint(this._latlng),Q=Ze(this.options.offset),Se=this._getAnchor(),this._zoomAnimated?Lt(this._container,le.add(Se)):Q=Q.add(le).add(Se),le=this._containerBottom=-Q.y,Se=this._containerLeft=-Math.round(this._containerWidth/2)+Q.x,this._container.style.bottom=le+"px",this._container.style.left=Se+"px")},_getAnchor:function(){return[0,0]}}),zr=(dt.include({_initOverlay:function(Q,le,Se,Ke){var vt=le;return vt instanceof Q||(vt=new Q(Ke).setContent(le)),Se&&vt.setLatLng(Se),vt}}),Er.include({_initOverlay:function(Q,le,Se,Ke){var vt=Se;return vt instanceof Q?($(vt,Ke),vt._source=this):(vt=le&&!Ke?le:new Q(Ke,this)).setContent(Se),vt}}),ii.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(Q){return!(Q=arguments.length?Q:this._source._map).hasLayer(this)&&Q._popup&&Q._popup.options.autoClose&&Q.removeLayer(Q._popup),Q._popup=this,ii.prototype.openOn.call(this,Q)},onAdd:function(Q){ii.prototype.onAdd.call(this,Q),Q.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ai||this._source.on("preclick",Ce))},onRemove:function(Q){ii.prototype.onRemove.call(this,Q),Q.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ai||this._source.off("preclick",Ce))},getEvents:function(){var Q=ii.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(Q.preclick=this.close),this.options.keepInView&&(Q.moveend=this._adjustPan),Q},_initLayout:function(){var Q="leaflet-popup",le=this._container=st("div",Q+" "+(this.options.className||"")+" leaflet-zoom-animated"),Se=this._wrapper=st("div",Q+"-content-wrapper",le);this._contentNode=st("div",Q+"-content",Se),Be(le),Ie(this._contentNode),H(le,"contextmenu",Ce),this._tipContainer=st("div",Q+"-tip-container",le),this._tip=st("div",Q+"-tip",this._tipContainer),this.options.closeButton&&((Se=this._closeButton=st("a",Q+"-close-button",le)).setAttribute("role","button"),Se.setAttribute("aria-label","Close popup"),Se.href="#close",Se.innerHTML='<span aria-hidden="true">×</span>',H(Se,"click",function(Ke){Le(Ke),this.close()},this))},_updateLayout:function(){var Q=this._contentNode,le=Q.style,Se=(le.width="",le.whiteSpace="nowrap",Q.offsetWidth),Se=Math.min(Se,this.options.maxWidth),Se=(Se=Math.max(Se,this.options.minWidth),le.width=Se+1+"px",le.whiteSpace="",le.height="",Q.offsetHeight),Ke=this.options.maxHeight,vt="leaflet-popup-scrolled";(Ke&&Ke<Se?(le.height=Ke+"px",Gt):Kt)(Q,vt),this._containerWidth=this._container.offsetWidth},_animateZoom:function(le){var le=this._map._latLngToNewLayerPoint(this._latlng,le.zoom,le.center),Se=this._getAnchor();Lt(this._container,le.add(Se))},_adjustPan:function(){var Q,le,Se,Ke,vt,Zt,Rn,Cn;this.options.autoPan&&(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning?this._autopanning=!1:(Q=this._map,le=parseInt(kt(this._container,"marginBottom"),10)||0,le=this._container.offsetHeight+le,Cn=this._containerWidth,(Se=new Re(this._containerLeft,-le-this._containerBottom))._add(nn(this._container)),Se=Q.layerPointToContainerPoint(Se),vt=Ze(this.options.autoPanPadding),Ke=Ze(this.options.autoPanPaddingTopLeft||vt),vt=Ze(this.options.autoPanPaddingBottomRight||vt),Zt=Q.getSize(),Rn=0,Se.x+Cn+vt.x>Zt.x&&(Rn=Se.x+Cn-Zt.x+vt.x),Se.x-Rn-Ke.x<(Cn=0)&&(Rn=Se.x-Ke.x),Se.y+le+vt.y>Zt.y&&(Cn=Se.y+le-Zt.y+vt.y),Se.y-Cn-Ke.y<0&&(Cn=Se.y-Ke.y),(Rn||Cn)&&(this.options.keepInView&&(this._autopanning=!0),Q.fire("autopanstart").panBy([Rn,Cn]))))},_getAnchor:function(){return Ze(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Vi=(dt.mergeOptions({closePopupOnClick:!0}),dt.include({openPopup:function(Q,le,Se){return this._initOverlay(zr,Q,le,Se).openOn(this),this},closePopup:function(Q){return(Q=arguments.length?Q:this._popup)&&Q.close(),this}}),Er.include({bindPopup:function(Q,le){return this._popup=this._initOverlay(zr,this._popup,Q,le),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(Q){return this._popup&&(this instanceof qr||(this._popup._source=this),this._popup._prepareOpen(Q||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()},setPopupContent:function(Q){return this._popup&&this._popup.setContent(Q),this},getPopup:function(){return this._popup},_openPopup:function(Q){var le;this._popup&&this._map&&(xe(Q),le=Q.layer||Q.target,this._popup._source!==le||le instanceof ai?(this._popup._source=le,this.openPopup(Q.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(Q.latlng))},_movePopup:function(Q){this._popup.setLatLng(Q.latlng)},_onKeyPress:function(Q){Q.originalEvent.keyCode===13&&this._openPopup(Q)}}),ii.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(Q){ii.prototype.onAdd.call(this,Q),this.setOpacity(this.options.opacity),Q.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(Q){ii.prototype.onRemove.call(this,Q),Q.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var Q=ii.prototype.getEvents.call(this);return this.options.permanent||(Q.preclick=this.close),Q},_initLayout:function(){var Q="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=st("div",Q),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+v(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(Q){var le,xt=this._map,Se=this._container,Ke=xt.latLngToContainerPoint(xt.getCenter()),xt=xt.layerPointToContainerPoint(Q),vt=this.options.direction,Zt=Se.offsetWidth,Rn=Se.offsetHeight,Cn=Ze(this.options.offset),sr=this._getAnchor(),xt=vt==="top"?(le=Zt/2,Rn):vt==="bottom"?(le=Zt/2,0):(le=vt==="center"?Zt/2:vt==="right"?0:vt==="left"?Zt:xt.x<Ke.x?(vt="right",0):(vt="left",Zt+2*(Cn.x+sr.x)),Rn/2);Q=Q.subtract(Ze(le,xt,!0)).add(Cn).add(sr),Kt(Se,"leaflet-tooltip-right"),Kt(Se,"leaflet-tooltip-left"),Kt(Se,"leaflet-tooltip-top"),Kt(Se,"leaflet-tooltip-bottom"),Gt(Se,"leaflet-tooltip-"+vt),Lt(Se,Q)},_updatePosition:function(){var Q=this._map.latLngToLayerPoint(this._latlng);this._setPosition(Q)},setOpacity:function(Q){this.options.opacity=Q,this._container&&En(this._container,Q)},_animateZoom:function(Q){Q=this._map._latLngToNewLayerPoint(this._latlng,Q.zoom,Q.center),this._setPosition(Q)},_getAnchor:function(){return Ze(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}})),ci=(dt.include({openTooltip:function(Q,le,Se){return this._initOverlay(Vi,Q,le,Se).openOn(this),this},closeTooltip:function(Q){return Q.close(),this}}),Er.include({bindTooltip:function(Q,le){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Vi,this._tooltip,Q,le),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(Q){var le,Se;!Q&&this._tooltipHandlersAdded||(le=Q?"off":"on",Se={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?Se.add=this._openTooltip:(Se.mouseover=this._openTooltip,Se.mouseout=this.closeTooltip,Se.click=this._openTooltip,this._map?this._addFocusListeners():Se.add=this._addFocusListeners),this._tooltip.options.sticky&&(Se.mousemove=this._moveTooltip),this[le](Se),this._tooltipHandlersAdded=!Q)},openTooltip:function(Q){return this._tooltip&&(this instanceof qr||(this._tooltip._source=this),this._tooltip._prepareOpen(Q)&&(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(Q){return this._tooltip&&this._tooltip.setContent(Q),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(Q){var le=typeof Q.getElement=="function"&&Q.getElement();le&&(H(le,"focus",function(){this._tooltip._source=Q,this.openTooltip()},this),H(le,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(Q){Q=typeof Q.getElement=="function"&&Q.getElement(),Q&&Q.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(Q){var le;this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag?(this._openOnceFlag=!0,(le=this)._map.once("moveend",function(){le._openOnceFlag=!1,le._openTooltip(Q)})):(this._tooltip._source=Q.layer||Q.target,this.openTooltip(this._tooltip.options.sticky?Q.latlng:void 0)))},_moveTooltip:function(Q){var le=Q.latlng;this._tooltip.options.sticky&&Q.originalEvent&&(Q=this._map.mouseEventToContainerPoint(Q.originalEvent),Q=this._map.containerPointToLayerPoint(Q),le=this._map.layerPointToLatLng(Q)),this._tooltip.setLatLng(le)}}),Jr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(le){var le=le&&le.tagName==="DIV"?le:document.createElement("div"),Se=this.options;return Se.html instanceof Element?(yt(le),le.appendChild(Se.html)):le.innerHTML=Se.html!==!1?Se.html:"",Se.bgPos&&(Se=Ze(Se.bgPos),le.style.backgroundPosition=-Se.x+"px "+-Se.y+"px"),this._setIconStyles(le,"icon"),le},createShadow:function(){return null}}));Jr.Default=Ci;var Pi=Er.extend({options:{tileSize:256,opacity:1,updateWhenIdle:mt.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(Q){$(this,Q)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(Q){Q._addZoomLimit(this)},onRemove:function(Q){this._removeAllTiles(),ut(this._container),Q._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ft(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Ut(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(Q){return this.options.opacity=Q,this._updateOpacity(),this},setZIndex:function(Q){return this.options.zIndex=Q,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){var Q;return this._map&&(this._removeAllTiles(),(Q=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=Q,this._updateLevels()),this._update()),this},getEvents:function(){var Q={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=k(this._onMoveEnd,this.options.updateInterval,this)),Q.move=this._onMove),this._zoomAnimated&&(Q.zoomanim=this._animateZoom),Q},createTile:function(){return document.createElement("div")},getTileSize:function(){var Q=this.options.tileSize;return Q instanceof Re?Q:new Re(Q,Q)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(Q){for(var le,Se=this.getPane().children,Ke=-Q(-1/0,1/0),vt=0,Zt=Se.length;vt<Zt;vt++)le=Se[vt].style.zIndex,Se[vt]!==this._container&&le&&(Ke=Q(Ke,+le));isFinite(Ke)&&(this.options.zIndex=Ke+Q(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!mt.ielt9){En(this._container,this.options.opacity);var Q,le=+new Date,Se=!1,Ke=!1;for(Q in this._tiles){var vt,Zt=this._tiles[Q];Zt.current&&Zt.loaded&&(vt=Math.min(1,(le-Zt.loaded)/200),En(Zt.el,vt),vt<1?Se=!0:(Zt.active?Ke=!0:this._onOpaqueTile(Zt),Zt.active=!0))}Ke&&!this._noPrune&&this._pruneTiles(),Se&&(Te(this._fadeFrame),this._fadeFrame=de(this._updateOpacity,this))}},_onOpaqueTile:B,_initContainer:function(){this._container||(this._container=st("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var Q=this._tileZoom,le=this.options.maxZoom;if(Q!==void 0){for(var Se in this._levels)Se=Number(Se),this._levels[Se].el.children.length||Se===Q?(this._levels[Se].el.style.zIndex=le-Math.abs(Q-Se),this._onUpdateLevel(Se)):(ut(this._levels[Se].el),this._removeTilesAtZoom(Se),this._onRemoveLevel(Se),delete this._levels[Se]);var Ke=this._levels[Q],vt=this._map;return Ke||((Ke=this._levels[Q]={}).el=st("div","leaflet-tile-container leaflet-zoom-animated",this._container),Ke.el.style.zIndex=le,Ke.origin=vt.project(vt.unproject(vt.getPixelOrigin()),Q).round(),Ke.zoom=Q,this._setZoomTransform(Ke,vt.getCenter(),vt.getZoom()),B(Ke.el.offsetWidth),this._onCreateLevel(Ke)),this._level=Ke}},_onUpdateLevel:B,_onRemoveLevel:B,_onCreateLevel:B,_pruneTiles:function(){if(this._map){var Q,le,Se,Ke=this._map.getZoom();if(Ke>this.options.maxZoom||Ke<this.options.minZoom)this._removeAllTiles();else{for(Q in this._tiles)(Se=this._tiles[Q]).retain=Se.current;for(Q in this._tiles)(Se=this._tiles[Q]).current&&!Se.active&&(le=Se.coords,this._retainParent(le.x,le.y,le.z,le.z-5)||this._retainChildren(le.x,le.y,le.z,le.z+2));for(Q in this._tiles)this._tiles[Q].retain||this._removeTile(Q)}}},_removeTilesAtZoom:function(Q){for(var le in this._tiles)this._tiles[le].coords.z===Q&&this._removeTile(le)},_removeAllTiles:function(){for(var Q in this._tiles)this._removeTile(Q)},_invalidateAll:function(){for(var Q in this._levels)ut(this._levels[Q].el),this._onRemoveLevel(Number(Q)),delete this._levels[Q];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(vt,Zt,Rn,Ke){var vt=Math.floor(vt/2),Zt=Math.floor(Zt/2),Rn=Rn-1,Cn=new Re(+vt,+Zt),Cn=(Cn.z=Rn,this._tileCoordsToKey(Cn)),Cn=this._tiles[Cn];return Cn&&Cn.active?Cn.retain=!0:(Cn&&Cn.loaded&&(Cn.retain=!0),Ke<Rn&&this._retainParent(vt,Zt,Rn,Ke))},_retainChildren:function(Q,le,Se,Ke){for(var vt=2*Q;vt<2*Q+2;vt++)for(var Zt=2*le;Zt<2*le+2;Zt++){var Rn=new Re(vt,Zt),Rn=(Rn.z=Se+1,this._tileCoordsToKey(Rn)),Rn=this._tiles[Rn];Rn&&Rn.active?Rn.retain=!0:(Rn&&Rn.loaded&&(Rn.retain=!0),Se+1<Ke&&this._retainChildren(vt,Zt,Se+1,Ke))}},_resetView:function(Q){Q=Q&&(Q.pinch||Q.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),Q,Q)},_animateZoom:function(Q){this._setView(Q.center,Q.zoom,!0,Q.noUpdate)},_clampZoom:function(Q){var le=this.options;return le.minNativeZoom!==void 0&&Q<le.minNativeZoom?le.minNativeZoom:le.maxNativeZoom!==void 0&&le.maxNativeZoom<Q?le.maxNativeZoom:Q},_setView:function(Q,le,Se,Ke){var vt=Math.round(le),vt=this.options.maxZoom!==void 0&&vt>this.options.maxZoom||this.options.minZoom!==void 0&&vt<this.options.minZoom?void 0:this._clampZoom(vt),Zt=this.options.updateWhenZooming&&vt!==this._tileZoom;Ke&&!Zt||(this._tileZoom=vt,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),vt!==void 0&&this._update(Q),Se||this._pruneTiles(),this._noPrune=!!Se),this._setZoomTransforms(Q,le)},_setZoomTransforms:function(Q,le){for(var Se in this._levels)this._setZoomTransform(this._levels[Se],Q,le)},_setZoomTransform:function(Q,vt,Se){var Ke=this._map.getZoomScale(Se,Q.zoom),vt=Q.origin.multiplyBy(Ke).subtract(this._map._getNewPixelOrigin(vt,Se)).round();mt.any3d?cn(Q.el,vt,Ke):Lt(Q.el,vt)},_resetGrid:function(){var Q=this._map,le=Q.options.crs,Se=this._tileSize=this.getTileSize(),Ke=this._tileZoom,vt=this._map.getPixelWorldBounds(this._tileZoom);vt&&(this._globalTileRange=this._pxBoundsToTileRange(vt)),this._wrapX=le.wrapLng&&!this.options.noWrap&&[Math.floor(Q.project([0,le.wrapLng[0]],Ke).x/Se.x),Math.ceil(Q.project([0,le.wrapLng[1]],Ke).x/Se.y)],this._wrapY=le.wrapLat&&!this.options.noWrap&&[Math.floor(Q.project([le.wrapLat[0],0],Ke).y/Se.x),Math.ceil(Q.project([le.wrapLat[1],0],Ke).y/Se.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(Se){var Ke=this._map,le=Ke._animatingZoom?Math.max(Ke._animateToZoom,Ke.getZoom()):Ke.getZoom(),le=Ke.getZoomScale(le,this._tileZoom),Se=Ke.project(Se,this._tileZoom).floor(),Ke=Ke.getSize().divideBy(2*le);return new at(Se.subtract(Ke),Se.add(Ke))},_update:function(Q){var le=this._map;if(le){var Se=this._clampZoom(le.getZoom());if(Q===void 0&&(Q=le.getCenter()),this._tileZoom!==void 0){var Ke,le=this._getTiledPixelBounds(Q),vt=this._pxBoundsToTileRange(le),Zt=vt.getCenter(),Rn=[],le=this.options.keepBuffer,Cn=new at(vt.getBottomLeft().subtract([le,-le]),vt.getTopRight().add([le,-le]));if(!(isFinite(vt.min.x)&&isFinite(vt.min.y)&&isFinite(vt.max.x)&&isFinite(vt.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(Ke in this._tiles){var sr=this._tiles[Ke].coords;sr.z===this._tileZoom&&Cn.contains(new Re(sr.x,sr.y))||(this._tiles[Ke].current=!1)}if(1<Math.abs(Se-this._tileZoom))this._setView(Q,Se);else{for(var xt=vt.min.y;xt<=vt.max.y;xt++)for(var F=vt.min.x;F<=vt.max.x;F++){var N,W=new Re(F,xt);W.z=this._tileZoom,this._isValidTile(W)&&((N=this._tiles[this._tileCoordsToKey(W)])?N.current=!0:Rn.push(W))}if(Rn.sort(function(fe,ke){return fe.distanceTo(Zt)-ke.distanceTo(Zt)}),Rn.length!==0){this._loading||(this._loading=!0,this.fire("loading"));for(var Y=document.createDocumentFragment(),F=0;F<Rn.length;F++)this._addTile(Rn[F],Y);this._level.el.appendChild(Y)}}}}},_isValidTile:function(Q){var le=this._map.options.crs;if(!le.infinite){var Se=this._globalTileRange;if(!le.wrapLng&&(Q.x<Se.min.x||Q.x>Se.max.x)||!le.wrapLat&&(Q.y<Se.min.y||Q.y>Se.max.y))return!1}return!this.options.bounds||(le=this._tileCoordsToBounds(Q),He(this.options.bounds).overlaps(le))},_keyToBounds:function(Q){return this._tileCoordsToBounds(this._keyToTileCoords(Q))},_tileCoordsToNwSe:function(Q){var le=this._map,Ke=this.getTileSize(),Se=Q.scaleBy(Ke),Ke=Se.add(Ke);return[le.unproject(Se,Q.z),le.unproject(Ke,Q.z)]},_tileCoordsToBounds:function(Q){return Q=this._tileCoordsToNwSe(Q),Q=new _t(Q[0],Q[1]),Q=this.options.noWrap?Q:this._map.wrapLatLngBounds(Q)},_tileCoordsToKey:function(Q){return Q.x+":"+Q.y+":"+Q.z},_keyToTileCoords:function(le){var le=le.split(":"),Se=new Re(+le[0],+le[1]);return Se.z=+le[2],Se},_removeTile:function(Q){var le=this._tiles[Q];le&&(ut(le.el),delete this._tiles[Q],this.fire("tileunload",{tile:le.el,coords:this._keyToTileCoords(Q)}))},_initTile:function(Q){Gt(Q,"leaflet-tile");var le=this.getTileSize();Q.style.width=le.x+"px",Q.style.height=le.y+"px",Q.onselectstart=B,Q.onmousemove=B,mt.ielt9&&this.options.opacity<1&&En(Q,this.options.opacity)},_addTile:function(Q,le){var Se=this._getTilePos(Q),Ke=this._tileCoordsToKey(Q),vt=this.createTile(this._wrapCoords(Q),y(this._tileReady,this,Q));this._initTile(vt),this.createTile.length<2&&de(y(this._tileReady,this,Q,null,vt)),Lt(vt,Se),this._tiles[Ke]={el:vt,coords:Q,current:!0},le.appendChild(vt),this.fire("tileloadstart",{tile:vt,coords:Q})},_tileReady:function(Q,le,Se){le&&this.fire("tileerror",{error:le,tile:Se,coords:Q});var Ke=this._tileCoordsToKey(Q);(Se=this._tiles[Ke])&&(Se.loaded=+new Date,this._map._fadeAnimated?(En(Se.el,0),Te(this._fadeFrame),this._fadeFrame=de(this._updateOpacity,this)):(Se.active=!0,this._pruneTiles()),le||(Gt(Se.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:Se.el,coords:Q})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),mt.ielt9||!this._map._fadeAnimated?de(this._pruneTiles,this):setTimeout(y(this._pruneTiles,this),250)))},_getTilePos:function(Q){return Q.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(Q){var le=new Re(this._wrapX?S(Q.x,this._wrapX):Q.x,this._wrapY?S(Q.y,this._wrapY):Q.y);return le.z=Q.z,le},_pxBoundsToTileRange:function(Q){var le=this.getTileSize();return new at(Q.min.unscaleBy(le).floor(),Q.max.unscaleBy(le).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var Q in this._tiles)if(!this._tiles[Q].loaded)return!1;return!0}}),po=Pi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(Q,le){this._url=Q,(le=$(this,le)).detectRetina&&mt.retina&&0<le.maxZoom?(le.tileSize=Math.floor(le.tileSize/2),le.zoomReverse?(le.zoomOffset--,le.minZoom=Math.min(le.maxZoom,le.minZoom+1)):(le.zoomOffset++,le.maxZoom=Math.max(le.minZoom,le.maxZoom-1)),le.minZoom=Math.max(0,le.minZoom)):le.zoomReverse?le.minZoom=Math.min(le.maxZoom,le.minZoom):le.maxZoom=Math.max(le.minZoom,le.maxZoom),typeof le.subdomains=="string"&&(le.subdomains=le.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(Q,le){return this._url===Q&&le===void 0&&(le=!0),this._url=Q,le||this.redraw(),this},createTile:function(Q,le){var Se=document.createElement("img");return H(Se,"load",y(this._tileOnLoad,this,le,Se)),H(Se,"error",y(this._tileOnError,this,le,Se)),!this.options.crossOrigin&&this.options.crossOrigin!==""||(Se.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(Se.referrerPolicy=this.options.referrerPolicy),Se.alt="",Se.src=this.getTileUrl(Q),Se},getTileUrl:function(Q){var le={r:mt.retina?"@2x":"",s:this._getSubdomain(Q),x:Q.x,y:Q.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(Q=this._globalTileRange.max.y-Q.y,this.options.tms&&(le.y=Q),le["-y"]=Q),J(this._url,p(le,this.options))},_tileOnLoad:function(Q,le){mt.ielt9?setTimeout(y(Q,this,null,le),0):Q(null,le)},_tileOnError:function(Q,le,Se){var Ke=this.options.errorTileUrl;Ke&&le.getAttribute("src")!==Ke&&(le.src=Ke),Q(Se,le)},_onTileRemove:function(Q){Q.tile.onload=null},_getZoomForUrl:function(){var Q=this._tileZoom,le=this.options.maxZoom;return(Q=this.options.zoomReverse?le-Q:Q)+this.options.zoomOffset},_getSubdomain:function(Q){return Q=Math.abs(Q.x+Q.y)%this.options.subdomains.length,this.options.subdomains[Q]},_abortLoading:function(){var Q,le,Se;for(Q in this._tiles)this._tiles[Q].coords.z!==this._tileZoom&&((Se=this._tiles[Q].el).onload=B,Se.onerror=B,Se.complete||(Se.src=ie,le=this._tiles[Q].coords,ut(Se),delete this._tiles[Q],this.fire("tileabort",{tile:Se,coords:le})))},_removeTile:function(Q){var le=this._tiles[Q];if(le)return le.el.setAttribute("src",ie),Pi.prototype._removeTile.call(this,Q)},_tileReady:function(Q,le,Se){if(this._map&&(!Se||Se.getAttribute("src")!==ie))return Pi.prototype._tileReady.call(this,Q,le,Se)}});function Fo(Q,le){return new po(Q,le)}var Fr=po.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(vt,le){this._url=vt;var Se,Ke=p({},this.defaultWmsParams);for(Se in le)Se in this.options||(Ke[Se]=le[Se]);var vt=(le=$(this,le)).detectRetina&&mt.retina?2:1,Zt=this.getTileSize();Ke.width=Zt.x*vt,Ke.height=Zt.y*vt,this.wmsParams=Ke},onAdd:function(Q){this._crs=this.options.crs||Q.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var le=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[le]=this._crs.code,po.prototype.onAdd.call(this,Q)},getTileUrl:function(Q){var le=this._tileCoordsToNwSe(Q),Se=this._crs,Se=Pt(Se.project(le[0]),Se.project(le[1])),le=Se.min,Se=Se.max,le=(1.3<=this._wmsVersion&&this._crs===cr?[le.y,le.x,Se.y,Se.x]:[le.x,le.y,Se.x,Se.y]).join(","),Se=po.prototype.getTileUrl.call(this,Q);return Se+X(this.wmsParams,Se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+le},setParams:function(Q,le){return p(this.wmsParams,Q),le||this.redraw(),this}});po.WMS=Fr,Fo.wms=function(Q,le){return new Fr(Q,le)};var eo=Er.extend({options:{padding:.1},initialize:function(Q){$(this,Q),v(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Gt(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 Q={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(Q.zoomanim=this._onAnimZoom),Q},_onAnimZoom:function(Q){this._updateTransform(Q.center,Q.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(Q,le){var Se=this._map.getZoomScale(le,this._zoom),vt=this._map.getSize().multiplyBy(.5+this.options.padding),Ke=this._map.project(this._center,le),vt=vt.multiplyBy(-Se).add(Ke).subtract(this._map._getNewPixelOrigin(Q,le));mt.any3d?cn(this._container,vt,Se):Lt(this._container,vt)},_reset:function(){for(var Q in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[Q]._reset()},_onZoomEnd:function(){for(var Q in this._layers)this._layers[Q]._project()},_updatePaths:function(){for(var Q in this._layers)this._layers[Q]._update()},_update:function(){var Q=this.options.padding,le=this._map.getSize(),Se=this._map.containerPointToLayerPoint(le.multiplyBy(-Q)).round();this._bounds=new at(Se,Se.add(le.multiplyBy(1+2*Q)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Qo=eo.extend({options:{tolerance:0},getEvents:function(){var Q=eo.prototype.getEvents.call(this);return Q.viewprereset=this._onViewPreReset,Q},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){eo.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var Q=this._container=document.createElement("canvas");H(Q,"mousemove",this._onMouseMove,this),H(Q,"click dblclick mousedown mouseup contextmenu",this._onClick,this),H(Q,"mouseout",this._handleMouseOut,this),Q._leaflet_disable_events=!0,this._ctx=Q.getContext("2d")},_destroyContainer:function(){Te(this._redrawRequest),delete this._ctx,ut(this._container),q(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var Q in this._redrawBounds=null,this._layers)this._layers[Q]._update();this._redraw()}},_update:function(){var Q,le,Se,Ke;this._map._animatingZoom&&this._bounds||(eo.prototype._update.call(this),Q=this._bounds,le=this._container,Se=Q.getSize(),Ke=mt.retina?2:1,Lt(le,Q.min),le.width=Ke*Se.x,le.height=Ke*Se.y,le.style.width=Se.x+"px",le.style.height=Se.y+"px",mt.retina&&this._ctx.scale(2,2),this._ctx.translate(-Q.min.x,-Q.min.y),this.fire("update"))},_reset:function(){eo.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(Q){this._updateDashArray(Q),Q=(this._layers[v(Q)]=Q)._order={layer:Q,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=Q),this._drawLast=Q,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(Q){this._requestRedraw(Q)},_removePath:function(Q){var Se=Q._order,le=Se.next,Se=Se.prev;le?le.prev=Se:this._drawLast=Se,Se?Se.next=le:this._drawFirst=le,delete Q._order,delete this._layers[v(Q)],this._requestRedraw(Q)},_updatePath:function(Q){this._extendRedrawBounds(Q),Q._project(),Q._update(),this._requestRedraw(Q)},_updateStyle:function(Q){this._updateDashArray(Q),this._requestRedraw(Q)},_updateDashArray:function(Q){if(typeof Q.options.dashArray=="string"){for(var le,Se=Q.options.dashArray.split(/[, ]+/),Ke=[],vt=0;vt<Se.length;vt++){if(le=Number(Se[vt]),isNaN(le))return;Ke.push(le)}Q.options._dashArray=Ke}else Q.options._dashArray=Q.options.dashArray},_requestRedraw:function(Q){this._map&&(this._extendRedrawBounds(Q),this._redrawRequest=this._redrawRequest||de(this._redraw,this))},_extendRedrawBounds:function(Q){var le;Q._pxBounds&&(le=(Q.options.weight||0)+1,this._redrawBounds=this._redrawBounds||new at,this._redrawBounds.extend(Q._pxBounds.min.subtract([le,le])),this._redrawBounds.extend(Q._pxBounds.max.add([le,le])))},_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 Q,le=this._redrawBounds;le?(Q=le.getSize(),this._ctx.clearRect(le.min.x,le.min.y,Q.x,Q.y)):(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 Q,le,Se=this._redrawBounds;this._ctx.save(),Se&&(le=Se.getSize(),this._ctx.beginPath(),this._ctx.rect(Se.min.x,Se.min.y,le.x,le.y),this._ctx.clip()),this._drawing=!0;for(var Ke=this._drawFirst;Ke;Ke=Ke.next)Q=Ke.layer,(!Se||Q._pxBounds&&Q._pxBounds.intersects(Se))&&Q._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(Q,le){if(this._drawing){var Se,Ke,vt,Zt,Rn=Q._parts,Cn=Rn.length,sr=this._ctx;if(Cn){for(sr.beginPath(),Se=0;Se<Cn;Se++){for(Ke=0,vt=Rn[Se].length;Ke<vt;Ke++)Zt=Rn[Se][Ke],sr[Ke?"lineTo":"moveTo"](Zt.x,Zt.y);le&&sr.closePath()}this._fillStroke(sr,Q)}}},_updateCircle:function(Q){var le,Se,Ke,vt;this._drawing&&!Q._empty()&&(le=Q._point,Se=this._ctx,Ke=Math.max(Math.round(Q._radius),1),(vt=(Math.max(Math.round(Q._radiusY),1)||Ke)/Ke)!=1&&(Se.save(),Se.scale(1,vt)),Se.beginPath(),Se.arc(le.x,le.y/vt,Ke,0,2*Math.PI,!1),vt!=1&&Se.restore(),this._fillStroke(Se,Q))},_fillStroke:function(Q,le){var Se=le.options;Se.fill&&(Q.globalAlpha=Se.fillOpacity,Q.fillStyle=Se.fillColor||Se.color,Q.fill(Se.fillRule||"evenodd")),Se.stroke&&Se.weight!==0&&(Q.setLineDash&&Q.setLineDash(le.options&&le.options._dashArray||[]),Q.globalAlpha=Se.opacity,Q.lineWidth=Se.weight,Q.strokeStyle=Se.color,Q.lineCap=Se.lineCap,Q.lineJoin=Se.lineJoin,Q.stroke())},_onClick:function(Q){for(var le,Se,Ke=this._map.mouseEventToLayerPoint(Q),vt=this._drawFirst;vt;vt=vt.next)(le=vt.layer).options.interactive&&le._containsPoint(Ke)&&((Q.type==="click"||Q.type==="preclick")&&this._map._draggableMoved(le)||(Se=le));this._fireEvent(!!Se&&[Se],Q)},_onMouseMove:function(Q){var le;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(le=this._map.mouseEventToLayerPoint(Q),this._handleMouseHover(Q,le))},_handleMouseOut:function(Q){var le=this._hoveredLayer;le&&(Kt(this._container,"leaflet-interactive"),this._fireEvent([le],Q,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(Q,le){if(!this._mouseHoverThrottled){for(var Se,Ke,vt=this._drawFirst;vt;vt=vt.next)(Se=vt.layer).options.interactive&&Se._containsPoint(le)&&(Ke=Se);Ke!==this._hoveredLayer&&(this._handleMouseOut(Q),Ke&&(Gt(this._container,"leaflet-interactive"),this._fireEvent([Ke],Q,"mouseover"),this._hoveredLayer=Ke)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],Q),this._mouseHoverThrottled=!0,setTimeout(y(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(Q,le,Se){this._map._fireDOMEvent(le,Se||le.type,Q)},_bringToFront:function(Q){var le,Se,Ke=Q._order;Ke&&(le=Ke.next,Se=Ke.prev,le&&((le.prev=Se)?Se.next=le:le&&(this._drawFirst=le),Ke.prev=this._drawLast,(this._drawLast.next=Ke).next=null,this._drawLast=Ke,this._requestRedraw(Q)))},_bringToBack:function(Q){var le,Se,Ke=Q._order;Ke&&(le=Ke.next,(Se=Ke.prev)&&((Se.next=le)?le.prev=Se:Se&&(this._drawLast=Se),Ke.prev=null,Ke.next=this._drawFirst,this._drawFirst.prev=Ke,this._drawFirst=Ke,this._requestRedraw(Q)))}});function Ao(Q){return mt.canvas?new Qo(Q):null}var Lo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(Q){return document.createElement("<lvml:"+Q+' class="lvml">')}}catch{}return function(Q){return document.createElement("<"+Q+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),vo={_initContainer:function(){this._container=st("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(eo.prototype._update.call(this),this.fire("update"))},_initPath:function(Q){var le=Q._container=Lo("shape");Gt(le,"leaflet-vml-shape "+(this.options.className||"")),le.coordsize="1 1",Q._path=Lo("path"),le.appendChild(Q._path),this._updateStyle(Q),this._layers[v(Q)]=Q},_addPath:function(Q){var le=Q._container;this._container.appendChild(le),Q.options.interactive&&Q.addInteractiveTarget(le)},_removePath:function(Q){var le=Q._container;ut(le),Q.removeInteractiveTarget(le),delete this._layers[v(Q)]},_updateStyle:function(Q){var le=Q._stroke,Se=Q._fill,Ke=Q.options,vt=Q._container;vt.stroked=!!Ke.stroke,vt.filled=!!Ke.fill,Ke.stroke?(le=le||(Q._stroke=Lo("stroke")),vt.appendChild(le),le.weight=Ke.weight+"px",le.color=Ke.color,le.opacity=Ke.opacity,Ke.dashArray?le.dashStyle=Z(Ke.dashArray)?Ke.dashArray.join(" "):Ke.dashArray.replace(/( *, *)/g," "):le.dashStyle="",le.endcap=Ke.lineCap.replace("butt","flat"),le.joinstyle=Ke.lineJoin):le&&(vt.removeChild(le),Q._stroke=null),Ke.fill?(Se=Se||(Q._fill=Lo("fill")),vt.appendChild(Se),Se.color=Ke.fillColor||Ke.color,Se.opacity=Ke.fillOpacity):Se&&(vt.removeChild(Se),Q._fill=null)},_updateCircle:function(Q){var le=Q._point.round(),Se=Math.round(Q._radius),Ke=Math.round(Q._radiusY||Se);this._setPath(Q,Q._empty()?"M0 0":"AL "+le.x+","+le.y+" "+Se+","+Ke+" 0,23592600")},_setPath:function(Q,le){Q._path.v=le},_bringToFront:function(Q){Ft(Q._container)},_bringToBack:function(Q){Ut(Q._container)}},Yo=mt.vml?Lo:zt,vi=eo.extend({_initContainer:function(){this._container=Yo("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Yo("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ut(this._container),q(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var Q,le,Se;this._map._animatingZoom&&this._bounds||(eo.prototype._update.call(this),le=(Q=this._bounds).getSize(),Se=this._container,this._svgSize&&this._svgSize.equals(le)||(this._svgSize=le,Se.setAttribute("width",le.x),Se.setAttribute("height",le.y)),Lt(Se,Q.min),Se.setAttribute("viewBox",[Q.min.x,Q.min.y,le.x,le.y].join(" ")),this.fire("update"))},_initPath:function(Q){var le=Q._path=Yo("path");Q.options.className&&Gt(le,Q.options.className),Q.options.interactive&&Gt(le,"leaflet-interactive"),this._updateStyle(Q),this._layers[v(Q)]=Q},_addPath:function(Q){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(Q._path),Q.addInteractiveTarget(Q._path)},_removePath:function(Q){ut(Q._path),Q.removeInteractiveTarget(Q._path),delete this._layers[v(Q)]},_updatePath:function(Q){Q._project(),Q._update()},_updateStyle:function(Se){var le=Se._path,Se=Se.options;le&&(Se.stroke?(le.setAttribute("stroke",Se.color),le.setAttribute("stroke-opacity",Se.opacity),le.setAttribute("stroke-width",Se.weight),le.setAttribute("stroke-linecap",Se.lineCap),le.setAttribute("stroke-linejoin",Se.lineJoin),Se.dashArray?le.setAttribute("stroke-dasharray",Se.dashArray):le.removeAttribute("stroke-dasharray"),Se.dashOffset?le.setAttribute("stroke-dashoffset",Se.dashOffset):le.removeAttribute("stroke-dashoffset")):le.setAttribute("stroke","none"),Se.fill?(le.setAttribute("fill",Se.fillColor||Se.color),le.setAttribute("fill-opacity",Se.fillOpacity),le.setAttribute("fill-rule",Se.fillRule||"evenodd")):le.setAttribute("fill","none"))},_updatePoly:function(Q,le){this._setPath(Q,In(Q._parts,le))},_updateCircle:function(Q){var Ke=Q._point,le=Math.max(Math.round(Q._radius),1),Se="a"+le+","+(Math.max(Math.round(Q._radiusY),1)||le)+" 0 1,0 ",Ke=Q._empty()?"M0 0":"M"+(Ke.x-le)+","+Ke.y+Se+2*le+",0 "+Se+2*-le+",0 ";this._setPath(Q,Ke)},_setPath:function(Q,le){Q._path.setAttribute("d",le)},_bringToFront:function(Q){Ft(Q._path)},_bringToBack:function(Q){Ut(Q._path)}});function Mi(Q){return mt.svg||mt.vml?new vi(Q):null}mt.vml&&vi.include(vo),dt.include({getRenderer:function(Q){return Q=(Q=Q.options.renderer||this._getPaneRenderer(Q.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer()),this.hasLayer(Q)||this.addLayer(Q),Q},_getPaneRenderer:function(Q){var le;return Q!=="overlayPane"&&Q!==void 0&&((le=this._paneRenderers[Q])===void 0&&(le=this._createRenderer({pane:Q}),this._paneRenderers[Q]=le),le)},_createRenderer:function(Q){return this.options.preferCanvas&&Ao(Q)||Mi(Q)}});var wo=Gi.extend({initialize:function(Q,le){Gi.prototype.initialize.call(this,this._boundsToLatLngs(Q),le)},setBounds:function(Q){return this.setLatLngs(this._boundsToLatLngs(Q))},_boundsToLatLngs:function(Q){return[(Q=He(Q)).getSouthWest(),Q.getNorthWest(),Q.getNorthEast(),Q.getSouthEast()]}});vi.create=Yo,vi.pointsToPath=In,jn.geometryToLayer=Kr,jn.coordsToLatLng=_o,jn.coordsToLatLngs=bo,jn.latLngToCoords=ji,jn.latLngsToCoords=Uo,jn.getFeature=yo,jn.asFeature=Oo,dt.mergeOptions({boxZoom:!0});var ri=Xn.extend({initialize:function(Q){this._map=Q,this._container=Q._container,this._pane=Q._panes.overlayPane,this._resetStateTimeout=0,Q.on("unload",this._destroy,this)},addHooks:function(){H(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){q(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ut(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(Q){if(!Q.shiftKey||Q.which!==1&&Q.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Dt(),ln(),this._startPoint=this._map.mouseEventToContainerPoint(Q),H(document,{contextmenu:xe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(le){this._moved||(this._moved=!0,this._box=st("div","leaflet-zoom-box",this._container),Gt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(le);var le=new at(this._point,this._startPoint),Se=le.getSize();Lt(this._box,le.min),this._box.style.width=Se.x+"px",this._box.style.height=Se.y+"px"},_finish:function(){this._moved&&(ut(this._box),Kt(this._container,"leaflet-crosshair")),Ve(),et(),q(document,{contextmenu:xe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(Q){Q.which!==1&&Q.button!==1||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(y(this._resetState,this),0),Q=new _t(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(Q).fire("boxzoomend",{boxZoomBounds:Q})))},_onKeyDown:function(Q){Q.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),Co=(dt.addInitHook("addHandler","boxZoom",ri),dt.mergeOptions({doubleClickZoom:!0}),Xn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(Q){var le=this._map,Ke=le.getZoom(),Se=le.options.zoomDelta,Ke=Q.originalEvent.shiftKey?Ke-Se:Ke+Se;le.options.doubleClickZoom==="center"?le.setZoom(Ke):le.setZoomAround(Q.containerPoint,Ke)}})),Wi=(dt.addInitHook("addHandler","doubleClickZoom",Co),dt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),Xn.extend({addHooks:function(){var Q;this._draggable||(Q=this._map,this._draggable=new pr(Q._mapPane,Q._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),Q.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),Q.on("zoomend",this._onZoomEnd,this),Q.whenReady(this._onZoomEnd,this))),Gt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Kt(this._map._container,"leaflet-grab"),Kt(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 Q,le=this._map;le._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(Q=He(this._map.options.maxBounds),this._offsetLimit=Pt(this._map.latLngToContainerPoint(Q.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(Q.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,le.fire("movestart").fire("dragstart"),le.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(Q){var le,Se;this._map.options.inertia&&(le=this._lastTime=+new Date,Se=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(Se),this._times.push(le),this._prunePositions(le)),this._map.fire("move",Q).fire("drag",Q)},_prunePositions:function(Q){for(;1<this._positions.length&&50<Q-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var Q=this._map.getSize().divideBy(2),le=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=le.subtract(Q).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(Q,le){return Q-(Q-le)*this._viscosity},_onPreDragLimit:function(){var Q,le;this._viscosity&&this._offsetLimit&&(Q=this._draggable._newPos.subtract(this._draggable._startPos),le=this._offsetLimit,Q.x<le.min.x&&(Q.x=this._viscousLimit(Q.x,le.min.x)),Q.y<le.min.y&&(Q.y=this._viscousLimit(Q.y,le.min.y)),Q.x>le.max.x&&(Q.x=this._viscousLimit(Q.x,le.max.x)),Q.y>le.max.y&&(Q.y=this._viscousLimit(Q.y,le.max.y)),this._draggable._newPos=this._draggable._startPos.add(Q))},_onPreDragWrap:function(){var vt=this._worldWidth,Q=Math.round(vt/2),le=this._initialWorldOffset,Ke=this._draggable._newPos.x,Se=(Ke-Q+le)%vt+Q-le,Ke=(Ke+Q+le)%vt-Q-le,vt=Math.abs(Se+le)<Math.abs(Ke+le)?Se:Ke;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=vt},_onDragEnd:function(Q){var le,Se,Ke,vt,Zt=this._map,Rn=Zt.options,Cn=!Rn.inertia||Q.noInertia||this._times.length<2;Zt.fire("dragend",Q),!Cn&&(this._prunePositions(+new Date),Q=this._lastPos.subtract(this._positions[0]),Cn=(this._lastTime-this._times[0])/1e3,le=Rn.easeLinearity,Cn=(Q=Q.multiplyBy(le/Cn)).distanceTo([0,0]),Se=Math.min(Rn.inertiaMaxSpeed,Cn),Q=Q.multiplyBy(Se/Cn),Ke=Se/(Rn.inertiaDeceleration*le),(vt=Q.multiplyBy(-Ke/2).round()).x||vt.y)?(vt=Zt._limitOffset(vt,Zt.options.maxBounds),de(function(){Zt.panBy(vt,{duration:Ke,easeLinearity:le,noMoveStart:!0,animate:!0})})):Zt.fire("moveend")}})),Ro=(dt.addInitHook("addHandler","dragging",Wi),dt.mergeOptions({keyboard:!0,keyboardPanDelta:80}),Xn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(Q){this._map=Q,this._setPanDelta(Q.options.keyboardPanDelta),this._setZoomDelta(Q.options.zoomDelta)},addHooks:function(){var Q=this._map._container;Q.tabIndex<=0&&(Q.tabIndex="0"),H(Q,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),q(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(){var Q,le,Se;this._focused||(Se=document.body,Q=document.documentElement,le=Se.scrollTop||Q.scrollTop,Se=Se.scrollLeft||Q.scrollLeft,this._map._container.focus(),window.scrollTo(Se,le))},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(Q){for(var le=this._panKeys={},Se=this.keyCodes,Ke=0,vt=Se.left.length;Ke<vt;Ke++)le[Se.left[Ke]]=[-1*Q,0];for(Ke=0,vt=Se.right.length;Ke<vt;Ke++)le[Se.right[Ke]]=[Q,0];for(Ke=0,vt=Se.down.length;Ke<vt;Ke++)le[Se.down[Ke]]=[0,Q];for(Ke=0,vt=Se.up.length;Ke<vt;Ke++)le[Se.up[Ke]]=[0,-1*Q]},_setZoomDelta:function(Q){for(var le=this._zoomKeys={},Se=this.keyCodes,Ke=0,vt=Se.zoomIn.length;Ke<vt;Ke++)le[Se.zoomIn[Ke]]=Q;for(Ke=0,vt=Se.zoomOut.length;Ke<vt;Ke++)le[Se.zoomOut[Ke]]=-Q},_addHooks:function(){H(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){q(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(Q){if(!(Q.altKey||Q.ctrlKey||Q.metaKey)){var le,Se,Ke=Q.keyCode,vt=this._map;if(Ke in this._panKeys)vt._panAnim&&vt._panAnim._inProgress||(Se=this._panKeys[Ke],Q.shiftKey&&(Se=Ze(Se).multiplyBy(3)),vt.options.maxBounds&&(Se=vt._limitOffset(Ze(Se),vt.options.maxBounds)),vt.options.worldCopyJump?(le=vt.wrapLatLng(vt.unproject(vt.project(vt.getCenter()).add(Se))),vt.panTo(le)):vt.panBy(Se));else if(Ke in this._zoomKeys)vt.setZoom(vt.getZoom()+(Q.shiftKey?3:1)*this._zoomKeys[Ke]);else{if(Ke!==27||!vt._popup||!vt._popup.options.closeOnEscapeKey)return;vt.closePopup()}xe(Q)}}})),Oi=(dt.addInitHook("addHandler","keyboard",Ro),dt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),Xn.extend({addHooks:function(){H(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){q(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(Q){var Se=Ee(Q),le=this._map.options.wheelDebounceTime,Se=(this._delta+=Se,this._lastMousePos=this._map.mouseEventToContainerPoint(Q),this._startTime||(this._startTime=+new Date),Math.max(le-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(y(this._performZoom,this),Se),xe(Q)},_performZoom:function(){var Q=this._map,le=Q.getZoom(),Se=this._map.options.zoomSnap||0,Ke=(Q._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),Ke=4*Math.log(2/(1+Math.exp(-Math.abs(Ke))))/Math.LN2,Se=Se?Math.ceil(Ke/Se)*Se:Ke,Ke=Q._limitZoom(le+(0<this._delta?Se:-Se))-le;this._delta=0,this._startTime=null,Ke&&(Q.options.scrollWheelZoom==="center"?Q.setZoom(le+Ke):Q.setZoomAround(this._lastMousePos,le+Ke))}})),go=(dt.addInitHook("addHandler","scrollWheelZoom",Oi),dt.mergeOptions({tapHold:mt.touchNative&&mt.safari&&mt.mobile,tapTolerance:15}),Xn.extend({addHooks:function(){H(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){q(this._map._container,"touchstart",this._onDown,this)},_onDown:function(Q){var le;clearTimeout(this._holdTimeout),Q.touches.length===1&&(le=Q.touches[0],this._startPos=this._newPos=new Re(le.clientX,le.clientY),this._holdTimeout=setTimeout(y(function(){this._cancel(),this._isTapValid()&&(H(document,"touchend",Le),H(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",le))},this),600),H(document,"touchend touchcancel contextmenu",this._cancel,this),H(document,"touchmove",this._onMove,this))},_cancelClickPrevent:function Q(){q(document,"touchend",Le),q(document,"touchend touchcancel",Q)},_cancel:function(){clearTimeout(this._holdTimeout),q(document,"touchend touchcancel contextmenu",this._cancel,this),q(document,"touchmove",this._onMove,this)},_onMove:function(Q){Q=Q.touches[0],this._newPos=new Re(Q.clientX,Q.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(Q,le){Q=new MouseEvent(Q,{bubbles:!0,cancelable:!0,view:window,screenX:le.screenX,screenY:le.screenY,clientX:le.clientX,clientY:le.clientY}),Q._simulated=!0,le.target.dispatchEvent(Q)}})),Zi=(dt.addInitHook("addHandler","tapHold",go),dt.mergeOptions({touchZoom:mt.touch,bounceAtZoomLimits:!0}),Xn.extend({addHooks:function(){Gt(this._map._container,"leaflet-touch-zoom"),H(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Kt(this._map._container,"leaflet-touch-zoom"),q(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(Q){var le,Se,Ke=this._map;!Q.touches||Q.touches.length!==2||Ke._animatingZoom||this._zooming||(le=Ke.mouseEventToContainerPoint(Q.touches[0]),Se=Ke.mouseEventToContainerPoint(Q.touches[1]),this._centerPoint=Ke.getSize()._divideBy(2),this._startLatLng=Ke.containerPointToLatLng(this._centerPoint),Ke.options.touchZoom!=="center"&&(this._pinchStartLatLng=Ke.containerPointToLatLng(le.add(Se)._divideBy(2))),this._startDist=le.distanceTo(Se),this._startZoom=Ke.getZoom(),this._moved=!1,this._zooming=!0,Ke._stop(),H(document,"touchmove",this._onTouchMove,this),H(document,"touchend touchcancel",this._onTouchEnd,this),Le(Q))},_onTouchMove:function(Q){if(Q.touches&&Q.touches.length===2&&this._zooming){var le=this._map,Se=le.mouseEventToContainerPoint(Q.touches[0]),Ke=le.mouseEventToContainerPoint(Q.touches[1]),vt=Se.distanceTo(Ke)/this._startDist;if(this._zoom=le.getScaleZoom(vt,this._startZoom),!le.options.bounceAtZoomLimits&&(this._zoom<le.getMinZoom()&&vt<1||this._zoom>le.getMaxZoom()&&1<vt)&&(this._zoom=le._limitZoom(this._zoom)),le.options.touchZoom==="center"){if(this._center=this._startLatLng,vt==1)return}else{if(Se=Se._add(Ke)._divideBy(2)._subtract(this._centerPoint),vt==1&&Se.x===0&&Se.y===0)return;this._center=le.unproject(le.project(this._pinchStartLatLng,this._zoom).subtract(Se),this._zoom)}this._moved||(le._moveStart(!0,!1),this._moved=!0),Te(this._animRequest),Ke=y(le._move,le,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=de(Ke,this,!0),Le(Q)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,Te(this._animRequest),q(document,"touchmove",this._onTouchMove,this),q(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))):this._zooming=!1}})),Da=(dt.addInitHook("addHandler","touchZoom",Zi),dt.BoxZoom=ri,dt.DoubleClickZoom=Co,dt.Drag=Wi,dt.Keyboard=Ro,dt.ScrollWheelZoom=Oi,dt.TapHold=go,dt.TouchZoom=Zi,f.Bounds=at,f.Browser=mt,f.CRS=ht,f.Canvas=Qo,f.Circle=Bi,f.CircleMarker=di,f.Class=$e,f.Control=Xt,f.DivIcon=ci,f.DivOverlay=ii,f.DomEvent=Ye,f.DomUtil=_n,f.Draggable=pr,f.Evented=Fe,f.FeatureGroup=qr,f.GeoJSON=jn,f.GridLayer=Pi,f.Handler=Xn,f.Icon=Jr,f.ImageOverlay=mi,f.LatLng=gt,f.LatLngBounds=_t,f.Layer=Er,f.LayerGroup=Rr,f.LineUtil=Sn,f.Map=dt,f.Marker=Ii,f.Mixin=ur,f.Path=ai,f.Point=Re,f.PolyUtil=Xr,f.Polygon=Gi,f.Polyline=gi,f.Popup=zr,f.PosAnimation=Ne,f.Projection=Jn,f.Rectangle=wo,f.Renderer=eo,f.SVG=vi,f.SVGOverlay=Eo,f.TileLayer=po,f.Tooltip=Vi,f.Transformation=lt,f.Util=Oe,f.VideoOverlay=Xo,f.bind=y,f.bounds=Pt,f.canvas=Ao,f.circle=function(Q,le,Se){return new Bi(Q,le,Se)},f.circleMarker=function(Q,le){return new di(Q,le)},f.control=Yt,f.divIcon=function(Q){return new ci(Q)},f.extend=p,f.featureGroup=function(Q,le){return new qr(Q,le)},f.geoJSON=yi,f.geoJson=oo,f.gridLayer=function(Q){return new Pi(Q)},f.icon=function(Q){return new Jr(Q)},f.imageOverlay=function(Q,le,Se){return new mi(Q,le,Se)},f.latLng=Tt,f.latLngBounds=He,f.layerGroup=function(Q,le){return new Rr(Q,le)},f.map=function(Q,le){return new dt(Q,le)},f.marker=function(Q,le){return new Ii(Q,le)},f.point=Ze,f.polygon=function(Q,le){return new Gi(Q,le)},f.polyline=function(Q,le){return new gi(Q,le)},f.popup=function(Q,le){return new zr(Q,le)},f.rectangle=function(Q,le){return new wo(Q,le)},f.setOptions=$,f.stamp=v,f.svg=Mi,f.svgOverlay=function(Q,le,Se){return new Eo(Q,le,Se)},f.tileLayer=Fo,f.tooltip=function(Q,le){return new Vi(Q,le)},f.transformation=Et,f.version="1.9.4",f.videoOverlay=function(Q,le,Se){return new Xo(Q,le,Se)},window.L);f.noConflict=function(){return window.L=Da,this},window.L=f})})(leaflet$1,leaflet$1.exports);var leafletExports=leaflet$1.exports;const L$1=getDefaultExportFromCjs$1(leafletExports);var lib$5={},Parser$3={},Tokenizer={},decode={},decodeDataHtml={};Object.defineProperty(decodeDataHtml,"__esModule",{value:!0}),decodeDataHtml.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(u){return u.charCodeAt(0)}));var decodeDataXml={};Object.defineProperty(decodeDataXml,"__esModule",{value:!0}),decodeDataXml.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(u){return u.charCodeAt(0)}));var decode_codepoint={};(function(u){var l;Object.defineProperty(u,"__esModule",{value:!0}),u.replaceCodePoint=u.fromCodePoint=void 0;var f=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);u.fromCodePoint=(l=String.fromCodePoint)!==null&&l!==void 0?l:function(b){var y="";return b>65535&&(b-=65536,y+=String.fromCharCode(b>>>10&1023|55296),b=56320|b&1023),y+=String.fromCharCode(b),y};function p(b){var y;return b>=55296&&b<=57343||b>1114111?65533:(y=f.get(b))!==null&&y!==void 0?y:b}u.replaceCodePoint=p;function m(b){return(0,u.fromCodePoint)(p(b))}u.default=m})(decode_codepoint),function(u){var l=commonjsGlobal$2&&commonjsGlobal$2.__createBinding||(Object.create?function(de,Te,Oe,$e){$e===void 0&&($e=Oe);var he=Object.getOwnPropertyDescriptor(Te,Oe);(!he||("get"in he?!Te.__esModule:he.writable||he.configurable))&&(he={enumerable:!0,get:function(){return Te[Oe]}}),Object.defineProperty(de,$e,he)}:function(de,Te,Oe,$e){$e===void 0&&($e=Oe),de[$e]=Te[Oe]}),f=commonjsGlobal$2&&commonjsGlobal$2.__setModuleDefault||(Object.create?function(de,Te){Object.defineProperty(de,"default",{enumerable:!0,value:Te})}:function(de,Te){de.default=Te}),p=commonjsGlobal$2&&commonjsGlobal$2.__importStar||function(de){if(de&&de.__esModule)return de;var Te={};if(de!=null)for(var Oe in de)Oe!=="default"&&Object.prototype.hasOwnProperty.call(de,Oe)&&l(Te,de,Oe);return f(Te,de),Te},m=commonjsGlobal$2&&commonjsGlobal$2.__importDefault||function(de){return de&&de.__esModule?de:{default:de}};Object.defineProperty(u,"__esModule",{value:!0}),u.decodeXML=u.decodeHTMLStrict=u.decodeHTMLAttribute=u.decodeHTML=u.determineBranch=u.EntityDecoder=u.DecodingMode=u.BinTrieFlags=u.fromCodePoint=u.replaceCodePoint=u.decodeCodePoint=u.xmlDecodeTree=u.htmlDecodeTree=void 0;var b=m(decodeDataHtml);u.htmlDecodeTree=b.default;var y=m(decodeDataXml);u.xmlDecodeTree=y.default;var w=p(decode_codepoint);u.decodeCodePoint=w.default;var v=decode_codepoint;Object.defineProperty(u,"replaceCodePoint",{enumerable:!0,get:function(){return v.replaceCodePoint}}),Object.defineProperty(u,"fromCodePoint",{enumerable:!0,get:function(){return v.fromCodePoint}});var k;(function(de){de[de.NUM=35]="NUM",de[de.SEMI=59]="SEMI",de[de.EQUALS=61]="EQUALS",de[de.ZERO=48]="ZERO",de[de.NINE=57]="NINE",de[de.LOWER_A=97]="LOWER_A",de[de.LOWER_F=102]="LOWER_F",de[de.LOWER_X=120]="LOWER_X",de[de.LOWER_Z=122]="LOWER_Z",de[de.UPPER_A=65]="UPPER_A",de[de.UPPER_F=70]="UPPER_F",de[de.UPPER_Z=90]="UPPER_Z"})(k||(k={}));var S=32,B;(function(de){de[de.VALUE_LENGTH=49152]="VALUE_LENGTH",de[de.BRANCH_LENGTH=16256]="BRANCH_LENGTH",de[de.JUMP_TABLE=127]="JUMP_TABLE"})(B=u.BinTrieFlags||(u.BinTrieFlags={}));function O(de){return de>=k.ZERO&&de<=k.NINE}function R(de){return de>=k.UPPER_A&&de<=k.UPPER_F||de>=k.LOWER_A&&de<=k.LOWER_F}function U(de){return de>=k.UPPER_A&&de<=k.UPPER_Z||de>=k.LOWER_A&&de<=k.LOWER_Z||O(de)}function $(de){return de===k.EQUALS||U(de)}var X;(function(de){de[de.EntityStart=0]="EntityStart",de[de.NumericStart=1]="NumericStart",de[de.NumericDecimal=2]="NumericDecimal",de[de.NumericHex=3]="NumericHex",de[de.NamedEntity=4]="NamedEntity"})(X||(X={}));var K;(function(de){de[de.Legacy=0]="Legacy",de[de.Strict=1]="Strict",de[de.Attribute=2]="Attribute"})(K=u.DecodingMode||(u.DecodingMode={}));var J=function(){function de(Te,Oe,$e){this.decodeTree=Te,this.emitCodePoint=Oe,this.errors=$e,this.state=X.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=K.Strict}return de.prototype.startEntity=function(Te){this.decodeMode=Te,this.state=X.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},de.prototype.write=function(Te,Oe){switch(this.state){case X.EntityStart:return Te.charCodeAt(Oe)===k.NUM?(this.state=X.NumericStart,this.consumed+=1,this.stateNumericStart(Te,Oe+1)):(this.state=X.NamedEntity,this.stateNamedEntity(Te,Oe));case X.NumericStart:return this.stateNumericStart(Te,Oe);case X.NumericDecimal:return this.stateNumericDecimal(Te,Oe);case X.NumericHex:return this.stateNumericHex(Te,Oe);case X.NamedEntity:return this.stateNamedEntity(Te,Oe)}},de.prototype.stateNumericStart=function(Te,Oe){return Oe>=Te.length?-1:(Te.charCodeAt(Oe)|S)===k.LOWER_X?(this.state=X.NumericHex,this.consumed+=1,this.stateNumericHex(Te,Oe+1)):(this.state=X.NumericDecimal,this.stateNumericDecimal(Te,Oe))},de.prototype.addToNumericResult=function(Te,Oe,$e,he){if(Oe!==$e){var Fe=$e-Oe;this.result=this.result*Math.pow(he,Fe)+parseInt(Te.substr(Oe,Fe),he),this.consumed+=Fe}},de.prototype.stateNumericHex=function(Te,Oe){for(var $e=Oe;Oe<Te.length;){var he=Te.charCodeAt(Oe);if(O(he)||R(he))Oe+=1;else return this.addToNumericResult(Te,$e,Oe,16),this.emitNumericEntity(he,3)}return this.addToNumericResult(Te,$e,Oe,16),-1},de.prototype.stateNumericDecimal=function(Te,Oe){for(var $e=Oe;Oe<Te.length;){var he=Te.charCodeAt(Oe);if(O(he))Oe+=1;else return this.addToNumericResult(Te,$e,Oe,10),this.emitNumericEntity(he,2)}return this.addToNumericResult(Te,$e,Oe,10),-1},de.prototype.emitNumericEntity=function(Te,Oe){var $e;if(this.consumed<=Oe)return($e=this.errors)===null||$e===void 0||$e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(Te===k.SEMI)this.consumed+=1;else if(this.decodeMode===K.Strict)return 0;return this.emitCodePoint((0,w.replaceCodePoint)(this.result),this.consumed),this.errors&&(Te!==k.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},de.prototype.stateNamedEntity=function(Te,Oe){for(var $e=this.decodeTree,he=$e[this.treeIndex],Fe=(he&B.VALUE_LENGTH)>>14;Oe<Te.length;Oe++,this.excess++){var Re=Te.charCodeAt(Oe);if(this.treeIndex=se($e,he,this.treeIndex+Math.max(1,Fe),Re),this.treeIndex<0)return this.result===0||this.decodeMode===K.Attribute&&(Fe===0||$(Re))?0:this.emitNotTerminatedNamedEntity();if(he=$e[this.treeIndex],Fe=(he&B.VALUE_LENGTH)>>14,Fe!==0){if(Re===k.SEMI)return this.emitNamedEntityData(this.treeIndex,Fe,this.consumed+this.excess);this.decodeMode!==K.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},de.prototype.emitNotTerminatedNamedEntity=function(){var Te,Oe=this,$e=Oe.result,he=Oe.decodeTree,Fe=(he[$e]&B.VALUE_LENGTH)>>14;return this.emitNamedEntityData($e,Fe,this.consumed),(Te=this.errors)===null||Te===void 0||Te.missingSemicolonAfterCharacterReference(),this.consumed},de.prototype.emitNamedEntityData=function(Te,Oe,$e){var he=this.decodeTree;return this.emitCodePoint(Oe===1?he[Te]&~B.VALUE_LENGTH:he[Te+1],$e),Oe===3&&this.emitCodePoint(he[Te+2],$e),$e},de.prototype.end=function(){var Te;switch(this.state){case X.NamedEntity:return this.result!==0&&(this.decodeMode!==K.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case X.NumericDecimal:return this.emitNumericEntity(0,2);case X.NumericHex:return this.emitNumericEntity(0,3);case X.NumericStart:return(Te=this.errors)===null||Te===void 0||Te.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case X.EntityStart:return 0}},de}();u.EntityDecoder=J;function Z(de){var Te="",Oe=new J(de,function($e){return Te+=(0,w.fromCodePoint)($e)});return function(he,Fe){for(var Re=0,Ge=0;(Ge=he.indexOf("&",Ge))>=0;){Te+=he.slice(Re,Ge),Oe.startEntity(Fe);var Ze=Oe.write(he,Ge+1);if(Ze<0){Re=Ge+Oe.end();break}Re=Ge+Ze,Ge=Ze===0?Re+1:Re}var at=Te+he.slice(Re);return Te="",at}}function se(de,Te,Oe,$e){var he=(Te&B.BRANCH_LENGTH)>>7,Fe=Te&B.JUMP_TABLE;if(he===0)return Fe!==0&&$e===Fe?Oe:-1;if(Fe){var Re=$e-Fe;return Re<0||Re>=he?-1:de[Oe+Re]-1}for(var Ge=Oe,Ze=Ge+he-1;Ge<=Ze;){var at=Ge+Ze>>>1,Pt=de[at];if(Pt<$e)Ge=at+1;else if(Pt>$e)Ze=at-1;else return de[at+he]}return-1}u.determineBranch=se;var ie=Z(b.default),ce=Z(y.default);function pe(de,Te){return Te===void 0&&(Te=K.Legacy),ie(de,Te)}u.decodeHTML=pe;function me(de){return ie(de,K.Attribute)}u.decodeHTMLAttribute=me;function we(de){return ie(de,K.Strict)}u.decodeHTMLStrict=we;function be(de){return ce(de,K.Strict)}u.decodeXML=be}(decode),function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.QuoteType=void 0;var l=decode,f;(function(O){O[O.Tab=9]="Tab",O[O.NewLine=10]="NewLine",O[O.FormFeed=12]="FormFeed",O[O.CarriageReturn=13]="CarriageReturn",O[O.Space=32]="Space",O[O.ExclamationMark=33]="ExclamationMark",O[O.Number=35]="Number",O[O.Amp=38]="Amp",O[O.SingleQuote=39]="SingleQuote",O[O.DoubleQuote=34]="DoubleQuote",O[O.Dash=45]="Dash",O[O.Slash=47]="Slash",O[O.Zero=48]="Zero",O[O.Nine=57]="Nine",O[O.Semi=59]="Semi",O[O.Lt=60]="Lt",O[O.Eq=61]="Eq",O[O.Gt=62]="Gt",O[O.Questionmark=63]="Questionmark",O[O.UpperA=65]="UpperA",O[O.LowerA=97]="LowerA",O[O.UpperF=70]="UpperF",O[O.LowerF=102]="LowerF",O[O.UpperZ=90]="UpperZ",O[O.LowerZ=122]="LowerZ",O[O.LowerX=120]="LowerX",O[O.OpeningSquareBracket=91]="OpeningSquareBracket"})(f||(f={}));var p;(function(O){O[O.Text=1]="Text",O[O.BeforeTagName=2]="BeforeTagName",O[O.InTagName=3]="InTagName",O[O.InSelfClosingTag=4]="InSelfClosingTag",O[O.BeforeClosingTagName=5]="BeforeClosingTagName",O[O.InClosingTagName=6]="InClosingTagName",O[O.AfterClosingTagName=7]="AfterClosingTagName",O[O.BeforeAttributeName=8]="BeforeAttributeName",O[O.InAttributeName=9]="InAttributeName",O[O.AfterAttributeName=10]="AfterAttributeName",O[O.BeforeAttributeValue=11]="BeforeAttributeValue",O[O.InAttributeValueDq=12]="InAttributeValueDq",O[O.InAttributeValueSq=13]="InAttributeValueSq",O[O.InAttributeValueNq=14]="InAttributeValueNq",O[O.BeforeDeclaration=15]="BeforeDeclaration",O[O.InDeclaration=16]="InDeclaration",O[O.InProcessingInstruction=17]="InProcessingInstruction",O[O.BeforeComment=18]="BeforeComment",O[O.CDATASequence=19]="CDATASequence",O[O.InSpecialComment=20]="InSpecialComment",O[O.InCommentLike=21]="InCommentLike",O[O.BeforeSpecialS=22]="BeforeSpecialS",O[O.SpecialStartSequence=23]="SpecialStartSequence",O[O.InSpecialTag=24]="InSpecialTag",O[O.BeforeEntity=25]="BeforeEntity",O[O.BeforeNumericEntity=26]="BeforeNumericEntity",O[O.InNamedEntity=27]="InNamedEntity",O[O.InNumericEntity=28]="InNumericEntity",O[O.InHexEntity=29]="InHexEntity"})(p||(p={}));function m(O){return O===f.Space||O===f.NewLine||O===f.Tab||O===f.FormFeed||O===f.CarriageReturn}function b(O){return O===f.Slash||O===f.Gt||m(O)}function y(O){return O>=f.Zero&&O<=f.Nine}function w(O){return O>=f.LowerA&&O<=f.LowerZ||O>=f.UpperA&&O<=f.UpperZ}function v(O){return O>=f.UpperA&&O<=f.UpperF||O>=f.LowerA&&O<=f.LowerF}var k;(function(O){O[O.NoValue=0]="NoValue",O[O.Unquoted=1]="Unquoted",O[O.Single=2]="Single",O[O.Double=3]="Double"})(k=u.QuoteType||(u.QuoteType={}));var S={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},B=function(){function O(R,U){var $=R.xmlMode,X=$===void 0?!1:$,K=R.decodeEntities,J=K===void 0?!0:K;this.cbs=U,this.state=p.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=p.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=X,this.decodeEntities=J,this.entityTrie=X?l.xmlDecodeTree:l.htmlDecodeTree}return O.prototype.reset=function(){this.state=p.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=p.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},O.prototype.write=function(R){this.offset+=this.buffer.length,this.buffer=R,this.parse()},O.prototype.end=function(){this.running&&this.finish()},O.prototype.pause=function(){this.running=!1},O.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},O.prototype.getIndex=function(){return this.index},O.prototype.getSectionStart=function(){return this.sectionStart},O.prototype.stateText=function(R){R===f.Lt||!this.decodeEntities&&this.fastForwardTo(f.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=p.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&R===f.Amp&&(this.state=p.BeforeEntity)},O.prototype.stateSpecialStartSequence=function(R){var U=this.sequenceIndex===this.currentSequence.length,$=U?b(R):(R|32)===this.currentSequence[this.sequenceIndex];if(!$)this.isSpecial=!1;else if(!U){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=p.InTagName,this.stateInTagName(R)},O.prototype.stateInSpecialTag=function(R){if(this.sequenceIndex===this.currentSequence.length){if(R===f.Gt||m(R)){var U=this.index-this.currentSequence.length;if(this.sectionStart<U){var $=this.index;this.index=U,this.cbs.ontext(this.sectionStart,U),this.index=$}this.isSpecial=!1,this.sectionStart=U+2,this.stateInClosingTagName(R);return}this.sequenceIndex=0}(R|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===S.TitleEnd?this.decodeEntities&&R===f.Amp&&(this.state=p.BeforeEntity):this.fastForwardTo(f.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(R===f.Lt)},O.prototype.stateCDATASequence=function(R){R===S.Cdata[this.sequenceIndex]?++this.sequenceIndex===S.Cdata.length&&(this.state=p.InCommentLike,this.currentSequence=S.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=p.InDeclaration,this.stateInDeclaration(R))},O.prototype.fastForwardTo=function(R){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===R)return!0;return this.index=this.buffer.length+this.offset-1,!1},O.prototype.stateInCommentLike=function(R){R===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===S.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=p.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):R!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},O.prototype.isTagStartChar=function(R){return this.xmlMode?!b(R):w(R)},O.prototype.startSpecial=function(R,U){this.isSpecial=!0,this.currentSequence=R,this.sequenceIndex=U,this.state=p.SpecialStartSequence},O.prototype.stateBeforeTagName=function(R){if(R===f.ExclamationMark)this.state=p.BeforeDeclaration,this.sectionStart=this.index+1;else if(R===f.Questionmark)this.state=p.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(R)){var U=R|32;this.sectionStart=this.index,!this.xmlMode&&U===S.TitleEnd[2]?this.startSpecial(S.TitleEnd,3):this.state=!this.xmlMode&&U===S.ScriptEnd[2]?p.BeforeSpecialS:p.InTagName}else R===f.Slash?this.state=p.BeforeClosingTagName:(this.state=p.Text,this.stateText(R))},O.prototype.stateInTagName=function(R){b(R)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(R))},O.prototype.stateBeforeClosingTagName=function(R){m(R)||(R===f.Gt?this.state=p.Text:(this.state=this.isTagStartChar(R)?p.InClosingTagName:p.InSpecialComment,this.sectionStart=this.index))},O.prototype.stateInClosingTagName=function(R){(R===f.Gt||m(R))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=p.AfterClosingTagName,this.stateAfterClosingTagName(R))},O.prototype.stateAfterClosingTagName=function(R){(R===f.Gt||this.fastForwardTo(f.Gt))&&(this.state=p.Text,this.baseState=p.Text,this.sectionStart=this.index+1)},O.prototype.stateBeforeAttributeName=function(R){R===f.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=p.InSpecialTag,this.sequenceIndex=0):this.state=p.Text,this.baseState=this.state,this.sectionStart=this.index+1):R===f.Slash?this.state=p.InSelfClosingTag:m(R)||(this.state=p.InAttributeName,this.sectionStart=this.index)},O.prototype.stateInSelfClosingTag=function(R){R===f.Gt?(this.cbs.onselfclosingtag(this.index),this.state=p.Text,this.baseState=p.Text,this.sectionStart=this.index+1,this.isSpecial=!1):m(R)||(this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(R))},O.prototype.stateInAttributeName=function(R){(R===f.Eq||b(R))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=p.AfterAttributeName,this.stateAfterAttributeName(R))},O.prototype.stateAfterAttributeName=function(R){R===f.Eq?this.state=p.BeforeAttributeValue:R===f.Slash||R===f.Gt?(this.cbs.onattribend(k.NoValue,this.index),this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(R)):m(R)||(this.cbs.onattribend(k.NoValue,this.index),this.state=p.InAttributeName,this.sectionStart=this.index)},O.prototype.stateBeforeAttributeValue=function(R){R===f.DoubleQuote?(this.state=p.InAttributeValueDq,this.sectionStart=this.index+1):R===f.SingleQuote?(this.state=p.InAttributeValueSq,this.sectionStart=this.index+1):m(R)||(this.sectionStart=this.index,this.state=p.InAttributeValueNq,this.stateInAttributeValueNoQuotes(R))},O.prototype.handleInAttributeValue=function(R,U){R===U||!this.decodeEntities&&this.fastForwardTo(U)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(U===f.DoubleQuote?k.Double:k.Single,this.index),this.state=p.BeforeAttributeName):this.decodeEntities&&R===f.Amp&&(this.baseState=this.state,this.state=p.BeforeEntity)},O.prototype.stateInAttributeValueDoubleQuotes=function(R){this.handleInAttributeValue(R,f.DoubleQuote)},O.prototype.stateInAttributeValueSingleQuotes=function(R){this.handleInAttributeValue(R,f.SingleQuote)},O.prototype.stateInAttributeValueNoQuotes=function(R){m(R)||R===f.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(k.Unquoted,this.index),this.state=p.BeforeAttributeName,this.stateBeforeAttributeName(R)):this.decodeEntities&&R===f.Amp&&(this.baseState=this.state,this.state=p.BeforeEntity)},O.prototype.stateBeforeDeclaration=function(R){R===f.OpeningSquareBracket?(this.state=p.CDATASequence,this.sequenceIndex=0):this.state=R===f.Dash?p.BeforeComment:p.InDeclaration},O.prototype.stateInDeclaration=function(R){(R===f.Gt||this.fastForwardTo(f.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=p.Text,this.sectionStart=this.index+1)},O.prototype.stateInProcessingInstruction=function(R){(R===f.Gt||this.fastForwardTo(f.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=p.Text,this.sectionStart=this.index+1)},O.prototype.stateBeforeComment=function(R){R===f.Dash?(this.state=p.InCommentLike,this.currentSequence=S.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=p.InDeclaration},O.prototype.stateInSpecialComment=function(R){(R===f.Gt||this.fastForwardTo(f.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=p.Text,this.sectionStart=this.index+1)},O.prototype.stateBeforeSpecialS=function(R){var U=R|32;U===S.ScriptEnd[3]?this.startSpecial(S.ScriptEnd,4):U===S.StyleEnd[3]?this.startSpecial(S.StyleEnd,4):(this.state=p.InTagName,this.stateInTagName(R))},O.prototype.stateBeforeEntity=function(R){this.entityExcess=1,this.entityResult=0,R===f.Number?this.state=p.BeforeNumericEntity:R===f.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=p.InNamedEntity,this.stateInNamedEntity(R))},O.prototype.stateInNamedEntity=function(R){if(this.entityExcess+=1,this.trieIndex=(0,l.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,R),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var U=this.trieCurrent&l.BinTrieFlags.VALUE_LENGTH;if(U){var $=(U>>14)-1;if(!this.allowLegacyEntity()&&R!==f.Semi)this.trieIndex+=$;else{var X=this.index-this.entityExcess+1;X>this.sectionStart&&this.emitPartial(this.sectionStart,X),this.entityResult=this.trieIndex,this.trieIndex+=$,this.entityExcess=0,this.sectionStart=this.index+1,$===0&&this.emitNamedEntity()}}},O.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var R=(this.entityTrie[this.entityResult]&l.BinTrieFlags.VALUE_LENGTH)>>14;switch(R){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~l.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},O.prototype.stateBeforeNumericEntity=function(R){(R|32)===f.LowerX?(this.entityExcess++,this.state=p.InHexEntity):(this.state=p.InNumericEntity,this.stateInNumericEntity(R))},O.prototype.emitNumericEntity=function(R){var U=this.index-this.entityExcess-1,$=U+2+ +(this.state===p.InHexEntity);$!==this.index&&(U>this.sectionStart&&this.emitPartial(this.sectionStart,U),this.sectionStart=this.index+Number(R),this.emitCodePoint((0,l.replaceCodePoint)(this.entityResult))),this.state=this.baseState},O.prototype.stateInNumericEntity=function(R){R===f.Semi?this.emitNumericEntity(!0):y(R)?(this.entityResult=this.entityResult*10+(R-f.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},O.prototype.stateInHexEntity=function(R){R===f.Semi?this.emitNumericEntity(!0):y(R)?(this.entityResult=this.entityResult*16+(R-f.Zero),this.entityExcess++):v(R)?(this.entityResult=this.entityResult*16+((R|32)-f.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},O.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===p.Text||this.baseState===p.InSpecialTag)},O.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===p.Text||this.state===p.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===p.InAttributeValueDq||this.state===p.InAttributeValueSq||this.state===p.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},O.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},O.prototype.parse=function(){for(;this.shouldContinue();){var R=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case p.Text:{this.stateText(R);break}case p.SpecialStartSequence:{this.stateSpecialStartSequence(R);break}case p.InSpecialTag:{this.stateInSpecialTag(R);break}case p.CDATASequence:{this.stateCDATASequence(R);break}case p.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(R);break}case p.InAttributeName:{this.stateInAttributeName(R);break}case p.InCommentLike:{this.stateInCommentLike(R);break}case p.InSpecialComment:{this.stateInSpecialComment(R);break}case p.BeforeAttributeName:{this.stateBeforeAttributeName(R);break}case p.InTagName:{this.stateInTagName(R);break}case p.InClosingTagName:{this.stateInClosingTagName(R);break}case p.BeforeTagName:{this.stateBeforeTagName(R);break}case p.AfterAttributeName:{this.stateAfterAttributeName(R);break}case p.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(R);break}case p.BeforeAttributeValue:{this.stateBeforeAttributeValue(R);break}case p.BeforeClosingTagName:{this.stateBeforeClosingTagName(R);break}case p.AfterClosingTagName:{this.stateAfterClosingTagName(R);break}case p.BeforeSpecialS:{this.stateBeforeSpecialS(R);break}case p.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(R);break}case p.InSelfClosingTag:{this.stateInSelfClosingTag(R);break}case p.InDeclaration:{this.stateInDeclaration(R);break}case p.BeforeDeclaration:{this.stateBeforeDeclaration(R);break}case p.BeforeComment:{this.stateBeforeComment(R);break}case p.InProcessingInstruction:{this.stateInProcessingInstruction(R);break}case p.InNamedEntity:{this.stateInNamedEntity(R);break}case p.BeforeEntity:{this.stateBeforeEntity(R);break}case p.InHexEntity:{this.stateInHexEntity(R);break}case p.InNumericEntity:{this.stateInNumericEntity(R);break}default:this.stateBeforeNumericEntity(R)}this.index++}this.cleanup()},O.prototype.finish=function(){this.state===p.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},O.prototype.handleTrailingData=function(){var R=this.buffer.length+this.offset;this.state===p.InCommentLike?this.currentSequence===S.CdataEnd?this.cbs.oncdata(this.sectionStart,R,0):this.cbs.oncomment(this.sectionStart,R,0):this.state===p.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===p.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===p.InTagName||this.state===p.BeforeAttributeName||this.state===p.BeforeAttributeValue||this.state===p.AfterAttributeName||this.state===p.InAttributeName||this.state===p.InAttributeValueSq||this.state===p.InAttributeValueDq||this.state===p.InAttributeValueNq||this.state===p.InClosingTagName||this.cbs.ontext(this.sectionStart,R)},O.prototype.emitPartial=function(R,U){this.baseState!==p.Text&&this.baseState!==p.InSpecialTag?this.cbs.onattribdata(R,U):this.cbs.ontext(R,U)},O.prototype.emitCodePoint=function(R){this.baseState!==p.Text&&this.baseState!==p.InSpecialTag?this.cbs.onattribentity(R):this.cbs.ontextentity(R)},O}();u.default=B}(Tokenizer);var __createBinding$1=commonjsGlobal$2&&commonjsGlobal$2.__createBinding||(Object.create?function(u,l,f,p){p===void 0&&(p=f);var m=Object.getOwnPropertyDescriptor(l,f);(!m||("get"in m?!l.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(u,p,m)}:function(u,l,f,p){p===void 0&&(p=f),u[p]=l[f]}),__setModuleDefault$1=commonjsGlobal$2&&commonjsGlobal$2.__setModuleDefault||(Object.create?function(u,l){Object.defineProperty(u,"default",{enumerable:!0,value:l})}:function(u,l){u.default=l}),__importStar$1=commonjsGlobal$2&&commonjsGlobal$2.__importStar||function(u){if(u&&u.__esModule)return u;var l={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&__createBinding$1(l,u,f);return __setModuleDefault$1(l,u),l};Object.defineProperty(Parser$3,"__esModule",{value:!0}),Parser$3.Parser=void 0;var Tokenizer_js_1=__importStar$1(Tokenizer),decode_js_1=decode,formTags=new Set(["input","option","optgroup","select","button","datalist","textarea"]),pTag=new Set(["p"]),tableSectionTags=new Set(["thead","tbody"]),ddtTags=new Set(["dd","dt"]),rtpTags=new Set(["rt","rp"]),openImpliesClose=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",pTag],["h1",pTag],["h2",pTag],["h3",pTag],["h4",pTag],["h5",pTag],["h6",pTag],["select",formTags],["input",formTags],["output",formTags],["button",formTags],["datalist",formTags],["textarea",formTags],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",ddtTags],["dt",ddtTags],["address",pTag],["article",pTag],["aside",pTag],["blockquote",pTag],["details",pTag],["div",pTag],["dl",pTag],["fieldset",pTag],["figcaption",pTag],["figure",pTag],["footer",pTag],["form",pTag],["header",pTag],["hr",pTag],["main",pTag],["nav",pTag],["ol",pTag],["pre",pTag],["section",pTag],["table",pTag],["ul",pTag],["rt",rtpTags],["rp",rtpTags],["tbody",tableSectionTags],["tfoot",tableSectionTags]]),voidElements=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),foreignContextElements=new Set(["math","svg"]),htmlIntegrationElements=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),reNameEnd=/\s|\//,Parser$2=function(){function u(l,f){f===void 0&&(f={});var p,m,b,y,w;this.options=f,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=l??{},this.lowerCaseTagNames=(p=f.lowerCaseTags)!==null&&p!==void 0?p:!f.xmlMode,this.lowerCaseAttributeNames=(m=f.lowerCaseAttributeNames)!==null&&m!==void 0?m:!f.xmlMode,this.tokenizer=new((b=f.Tokenizer)!==null&&b!==void 0?b:Tokenizer_js_1.default)(this.options,this),(w=(y=this.cbs).onparserinit)===null||w===void 0||w.call(y,this)}return u.prototype.ontext=function(l,f){var p,m,b=this.getSlice(l,f);this.endIndex=f-1,(m=(p=this.cbs).ontext)===null||m===void 0||m.call(p,b),this.startIndex=f},u.prototype.ontextentity=function(l){var f,p,m=this.tokenizer.getSectionStart();this.endIndex=m-1,(p=(f=this.cbs).ontext)===null||p===void 0||p.call(f,(0,decode_js_1.fromCodePoint)(l)),this.startIndex=m},u.prototype.isVoidElement=function(l){return!this.options.xmlMode&&voidElements.has(l)},u.prototype.onopentagname=function(l,f){this.endIndex=f;var p=this.getSlice(l,f);this.lowerCaseTagNames&&(p=p.toLowerCase()),this.emitOpenTag(p)},u.prototype.emitOpenTag=function(l){var f,p,m,b;this.openTagStart=this.startIndex,this.tagname=l;var y=!this.options.xmlMode&&openImpliesClose.get(l);if(y)for(;this.stack.length>0&&y.has(this.stack[this.stack.length-1]);){var w=this.stack.pop();(p=(f=this.cbs).onclosetag)===null||p===void 0||p.call(f,w,!0)}this.isVoidElement(l)||(this.stack.push(l),foreignContextElements.has(l)?this.foreignContext.push(!0):htmlIntegrationElements.has(l)&&this.foreignContext.push(!1)),(b=(m=this.cbs).onopentagname)===null||b===void 0||b.call(m,l),this.cbs.onopentag&&(this.attribs={})},u.prototype.endOpenTag=function(l){var f,p;this.startIndex=this.openTagStart,this.attribs&&((p=(f=this.cbs).onopentag)===null||p===void 0||p.call(f,this.tagname,this.attribs,l),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},u.prototype.onopentagend=function(l){this.endIndex=l,this.endOpenTag(!1),this.startIndex=l+1},u.prototype.onclosetag=function(l,f){var p,m,b,y,w,v;this.endIndex=f;var k=this.getSlice(l,f);if(this.lowerCaseTagNames&&(k=k.toLowerCase()),(foreignContextElements.has(k)||htmlIntegrationElements.has(k))&&this.foreignContext.pop(),this.isVoidElement(k))!this.options.xmlMode&&k==="br"&&((m=(p=this.cbs).onopentagname)===null||m===void 0||m.call(p,"br"),(y=(b=this.cbs).onopentag)===null||y===void 0||y.call(b,"br",{},!0),(v=(w=this.cbs).onclosetag)===null||v===void 0||v.call(w,"br",!1));else{var S=this.stack.lastIndexOf(k);if(S!==-1)if(this.cbs.onclosetag)for(var B=this.stack.length-S;B--;)this.cbs.onclosetag(this.stack.pop(),B!==0);else this.stack.length=S;else!this.options.xmlMode&&k==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=f+1},u.prototype.onselfclosingtag=function(l){this.endIndex=l,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=l+1):this.onopentagend(l)},u.prototype.closeCurrentTag=function(l){var f,p,m=this.tagname;this.endOpenTag(l),this.stack[this.stack.length-1]===m&&((p=(f=this.cbs).onclosetag)===null||p===void 0||p.call(f,m,!l),this.stack.pop())},u.prototype.onattribname=function(l,f){this.startIndex=l;var p=this.getSlice(l,f);this.attribname=this.lowerCaseAttributeNames?p.toLowerCase():p},u.prototype.onattribdata=function(l,f){this.attribvalue+=this.getSlice(l,f)},u.prototype.onattribentity=function(l){this.attribvalue+=(0,decode_js_1.fromCodePoint)(l)},u.prototype.onattribend=function(l,f){var p,m;this.endIndex=f,(m=(p=this.cbs).onattribute)===null||m===void 0||m.call(p,this.attribname,this.attribvalue,l===Tokenizer_js_1.QuoteType.Double?'"':l===Tokenizer_js_1.QuoteType.Single?"'":l===Tokenizer_js_1.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},u.prototype.getInstructionName=function(l){var f=l.search(reNameEnd),p=f<0?l:l.substr(0,f);return this.lowerCaseTagNames&&(p=p.toLowerCase()),p},u.prototype.ondeclaration=function(l,f){this.endIndex=f;var p=this.getSlice(l,f);if(this.cbs.onprocessinginstruction){var m=this.getInstructionName(p);this.cbs.onprocessinginstruction("!".concat(m),"!".concat(p))}this.startIndex=f+1},u.prototype.onprocessinginstruction=function(l,f){this.endIndex=f;var p=this.getSlice(l,f);if(this.cbs.onprocessinginstruction){var m=this.getInstructionName(p);this.cbs.onprocessinginstruction("?".concat(m),"?".concat(p))}this.startIndex=f+1},u.prototype.oncomment=function(l,f,p){var m,b,y,w;this.endIndex=f,(b=(m=this.cbs).oncomment)===null||b===void 0||b.call(m,this.getSlice(l,f-p)),(w=(y=this.cbs).oncommentend)===null||w===void 0||w.call(y),this.startIndex=f+1},u.prototype.oncdata=function(l,f,p){var m,b,y,w,v,k,S,B,O,R;this.endIndex=f;var U=this.getSlice(l,f-p);this.options.xmlMode||this.options.recognizeCDATA?((b=(m=this.cbs).oncdatastart)===null||b===void 0||b.call(m),(w=(y=this.cbs).ontext)===null||w===void 0||w.call(y,U),(k=(v=this.cbs).oncdataend)===null||k===void 0||k.call(v)):((B=(S=this.cbs).oncomment)===null||B===void 0||B.call(S,"[CDATA[".concat(U,"]]")),(R=(O=this.cbs).oncommentend)===null||R===void 0||R.call(O)),this.startIndex=f+1},u.prototype.onend=function(){var l,f;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var p=this.stack.length;p>0;this.cbs.onclosetag(this.stack[--p],!0));}(f=(l=this.cbs).onend)===null||f===void 0||f.call(l)},u.prototype.reset=function(){var l,f,p,m;(f=(l=this.cbs).onreset)===null||f===void 0||f.call(l),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(m=(p=this.cbs).onparserinit)===null||m===void 0||m.call(p,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},u.prototype.parseComplete=function(l){this.reset(),this.end(l)},u.prototype.getSlice=function(l,f){for(;l-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var p=this.buffers[0].slice(l-this.bufferOffset,f-this.bufferOffset);f-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),p+=this.buffers[0].slice(0,f-this.bufferOffset);return p},u.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},u.prototype.write=function(l){var f,p;if(this.ended){(p=(f=this.cbs).onerror)===null||p===void 0||p.call(f,new Error(".write() after done!"));return}this.buffers.push(l),this.tokenizer.running&&(this.tokenizer.write(l),this.writeIndex++)},u.prototype.end=function(l){var f,p;if(this.ended){(p=(f=this.cbs).onerror)===null||p===void 0||p.call(f,new Error(".end() after done!"));return}l&&this.write(l),this.ended=!0,this.tokenizer.end()},u.prototype.pause=function(){this.tokenizer.pause()},u.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},u.prototype.parseChunk=function(l){this.write(l)},u.prototype.done=function(l){this.end(l)},u}();Parser$3.Parser=Parser$2;var lib$4={},lib$3={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Doctype=u.CDATA=u.Tag=u.Style=u.Script=u.Comment=u.Directive=u.Text=u.Root=u.isTag=u.ElementType=void 0;var l;(function(p){p.Root="root",p.Text="text",p.Directive="directive",p.Comment="comment",p.Script="script",p.Style="style",p.Tag="tag",p.CDATA="cdata",p.Doctype="doctype"})(l=u.ElementType||(u.ElementType={}));function f(p){return p.type===l.Tag||p.type===l.Script||p.type===l.Style}u.isTag=f,u.Root=l.Root,u.Text=l.Text,u.Directive=l.Directive,u.Comment=l.Comment,u.Script=l.Script,u.Style=l.Style,u.Tag=l.Tag,u.CDATA=l.CDATA,u.Doctype=l.Doctype})(lib$3);var node$1={},__extends$2=commonjsGlobal$2&&commonjsGlobal$2.__extends||function(){var u=function(l,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(p[b]=m[b])},u(l,f)};return function(l,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");u(l,f);function p(){this.constructor=l}l.prototype=f===null?Object.create(f):(p.prototype=f.prototype,new p)}}(),__assign$1=commonjsGlobal$2&&commonjsGlobal$2.__assign||function(){return __assign$1=Object.assign||function(u){for(var l,f=1,p=arguments.length;f<p;f++){l=arguments[f];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(u[m]=l[m])}return u},__assign$1.apply(this,arguments)};Object.defineProperty(node$1,"__esModule",{value:!0}),node$1.cloneNode=node$1.hasChildren=node$1.isDocument=node$1.isDirective=node$1.isComment=node$1.isText=node$1.isCDATA=node$1.isTag=node$1.Element=node$1.Document=node$1.CDATA=node$1.NodeWithChildren=node$1.ProcessingInstruction=node$1.Comment=node$1.Text=node$1.DataNode=node$1.Node=void 0;var domelementtype_1$1=lib$3,Node$6=function(){function u(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(u.prototype,"parentNode",{get:function(){return this.parent},set:function(l){this.parent=l},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"previousSibling",{get:function(){return this.prev},set:function(l){this.prev=l},enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"nextSibling",{get:function(){return this.next},set:function(l){this.next=l},enumerable:!1,configurable:!0}),u.prototype.cloneNode=function(l){return l===void 0&&(l=!1),cloneNode$2(this,l)},u}();node$1.Node=Node$6;var DataNode=function(u){__extends$2(l,u);function l(f){var p=u.call(this)||this;return p.data=f,p}return Object.defineProperty(l.prototype,"nodeValue",{get:function(){return this.data},set:function(f){this.data=f},enumerable:!1,configurable:!0}),l}(Node$6);node$1.DataNode=DataNode;var Text$2=function(u){__extends$2(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=domelementtype_1$1.ElementType.Text,f}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),l}(DataNode);node$1.Text=Text$2;var Comment$5=function(u){__extends$2(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=domelementtype_1$1.ElementType.Comment,f}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),l}(DataNode);node$1.Comment=Comment$5;var ProcessingInstruction=function(u){__extends$2(l,u);function l(f,p){var m=u.call(this,p)||this;return m.name=f,m.type=domelementtype_1$1.ElementType.Directive,m}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),l}(DataNode);node$1.ProcessingInstruction=ProcessingInstruction;var NodeWithChildren=function(u){__extends$2(l,u);function l(f){var p=u.call(this)||this;return p.children=f,p}return Object.defineProperty(l.prototype,"firstChild",{get:function(){var f;return(f=this.children[0])!==null&&f!==void 0?f:null},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"childNodes",{get:function(){return this.children},set:function(f){this.children=f},enumerable:!1,configurable:!0}),l}(Node$6);node$1.NodeWithChildren=NodeWithChildren;var CDATA=function(u){__extends$2(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=domelementtype_1$1.ElementType.CDATA,f}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),l}(NodeWithChildren);node$1.CDATA=CDATA;var Document$4=function(u){__extends$2(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=domelementtype_1$1.ElementType.Root,f}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),l}(NodeWithChildren);node$1.Document=Document$4;var Element$1=function(u){__extends$2(l,u);function l(f,p,m,b){m===void 0&&(m=[]),b===void 0&&(b=f==="script"?domelementtype_1$1.ElementType.Script:f==="style"?domelementtype_1$1.ElementType.Style:domelementtype_1$1.ElementType.Tag);var y=u.call(this,m)||this;return y.name=f,y.attribs=p,y.type=b,y}return Object.defineProperty(l.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"tagName",{get:function(){return this.name},set:function(f){this.name=f},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"attributes",{get:function(){var f=this;return Object.keys(this.attribs).map(function(p){var m,b;return{name:p,value:f.attribs[p],namespace:(m=f["x-attribsNamespace"])===null||m===void 0?void 0:m[p],prefix:(b=f["x-attribsPrefix"])===null||b===void 0?void 0:b[p]}})},enumerable:!1,configurable:!0}),l}(NodeWithChildren);node$1.Element=Element$1;function isTag(u){return(0,domelementtype_1$1.isTag)(u)}node$1.isTag=isTag;function isCDATA(u){return u.type===domelementtype_1$1.ElementType.CDATA}node$1.isCDATA=isCDATA;function isText(u){return u.type===domelementtype_1$1.ElementType.Text}node$1.isText=isText;function isComment(u){return u.type===domelementtype_1$1.ElementType.Comment}node$1.isComment=isComment;function isDirective(u){return u.type===domelementtype_1$1.ElementType.Directive}node$1.isDirective=isDirective;function isDocument(u){return u.type===domelementtype_1$1.ElementType.Root}node$1.isDocument=isDocument;function hasChildren(u){return Object.prototype.hasOwnProperty.call(u,"children")}node$1.hasChildren=hasChildren;function cloneNode$2(u,l){l===void 0&&(l=!1);var f;if(isText(u))f=new Text$2(u.data);else if(isComment(u))f=new Comment$5(u.data);else if(isTag(u)){var p=l?cloneChildren(u.children):[],m=new Element$1(u.name,__assign$1({},u.attribs),p);p.forEach(function(v){return v.parent=m}),u.namespace!=null&&(m.namespace=u.namespace),u["x-attribsNamespace"]&&(m["x-attribsNamespace"]=__assign$1({},u["x-attribsNamespace"])),u["x-attribsPrefix"]&&(m["x-attribsPrefix"]=__assign$1({},u["x-attribsPrefix"])),f=m}else if(isCDATA(u)){var p=l?cloneChildren(u.children):[],b=new CDATA(p);p.forEach(function(k){return k.parent=b}),f=b}else if(isDocument(u)){var p=l?cloneChildren(u.children):[],y=new Document$4(p);p.forEach(function(k){return k.parent=y}),u["x-mode"]&&(y["x-mode"]=u["x-mode"]),f=y}else if(isDirective(u)){var w=new ProcessingInstruction(u.name,u.data);u["x-name"]!=null&&(w["x-name"]=u["x-name"],w["x-publicId"]=u["x-publicId"],w["x-systemId"]=u["x-systemId"]),f=w}else throw new Error("Not implemented yet: ".concat(u.type));return f.startIndex=u.startIndex,f.endIndex=u.endIndex,u.sourceCodeLocation!=null&&(f.sourceCodeLocation=u.sourceCodeLocation),f}node$1.cloneNode=cloneNode$2;function cloneChildren(u){for(var l=u.map(function(p){return cloneNode$2(p,!0)}),f=1;f<l.length;f++)l[f].prev=l[f-1],l[f-1].next=l[f];return l}(function(u){var l=commonjsGlobal$2&&commonjsGlobal$2.__createBinding||(Object.create?function(w,v,k,S){S===void 0&&(S=k);var B=Object.getOwnPropertyDescriptor(v,k);(!B||("get"in B?!v.__esModule:B.writable||B.configurable))&&(B={enumerable:!0,get:function(){return v[k]}}),Object.defineProperty(w,S,B)}:function(w,v,k,S){S===void 0&&(S=k),w[S]=v[k]}),f=commonjsGlobal$2&&commonjsGlobal$2.__exportStar||function(w,v){for(var k in w)k!=="default"&&!Object.prototype.hasOwnProperty.call(v,k)&&l(v,w,k)};Object.defineProperty(u,"__esModule",{value:!0}),u.DomHandler=void 0;var p=lib$3,m=node$1;f(node$1,u);var b={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},y=function(){function w(v,k,S){this.dom=[],this.root=new m.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof k=="function"&&(S=k,k=b),typeof v=="object"&&(k=v,v=void 0),this.callback=v??null,this.options=k??b,this.elementCB=S??null}return w.prototype.onparserinit=function(v){this.parser=v},w.prototype.onreset=function(){this.dom=[],this.root=new m.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},w.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},w.prototype.onerror=function(v){this.handleCallback(v)},w.prototype.onclosetag=function(){this.lastNode=null;var v=this.tagStack.pop();this.options.withEndIndices&&(v.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(v)},w.prototype.onopentag=function(v,k){var S=this.options.xmlMode?p.ElementType.Tag:void 0,B=new m.Element(v,k,void 0,S);this.addNode(B),this.tagStack.push(B)},w.prototype.ontext=function(v){var k=this.lastNode;if(k&&k.type===p.ElementType.Text)k.data+=v,this.options.withEndIndices&&(k.endIndex=this.parser.endIndex);else{var S=new m.Text(v);this.addNode(S),this.lastNode=S}},w.prototype.oncomment=function(v){if(this.lastNode&&this.lastNode.type===p.ElementType.Comment){this.lastNode.data+=v;return}var k=new m.Comment(v);this.addNode(k),this.lastNode=k},w.prototype.oncommentend=function(){this.lastNode=null},w.prototype.oncdatastart=function(){var v=new m.Text(""),k=new m.CDATA([v]);this.addNode(k),v.parent=k,this.lastNode=v},w.prototype.oncdataend=function(){this.lastNode=null},w.prototype.onprocessinginstruction=function(v,k){var S=new m.ProcessingInstruction(v,k);this.addNode(S)},w.prototype.handleCallback=function(v){if(typeof this.callback=="function")this.callback(v,this.dom);else if(v)throw v},w.prototype.addNode=function(v){var k=this.tagStack[this.tagStack.length-1],S=k.children[k.children.length-1];this.options.withStartIndices&&(v.startIndex=this.parser.startIndex),this.options.withEndIndices&&(v.endIndex=this.parser.endIndex),k.children.push(v),S&&(v.prev=S,S.next=v),v.parent=k,this.lastNode=null},w}();u.DomHandler=y,u.default=y})(lib$4);var lib$2={},stringify$5={},lib$1={},lib={},encode$2={},encodeHtml={};Object.defineProperty(encodeHtml,"__esModule",{value:!0});function restoreDiff(u){for(var l=1;l<u.length;l++)u[l][0]+=u[l-1][0]+1;return u}encodeHtml.default=new Map(restoreDiff([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(restoreDiff([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(restoreDiff([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(restoreDiff([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var _escape={};(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.escapeText=u.escapeAttribute=u.escapeUTF8=u.escape=u.encodeXML=u.getCodePoint=u.xmlReplacer=void 0,u.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var l=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);u.getCodePoint=String.prototype.codePointAt!=null?function(m,b){return m.codePointAt(b)}:function(m,b){return(m.charCodeAt(b)&64512)===55296?(m.charCodeAt(b)-55296)*1024+m.charCodeAt(b+1)-56320+65536:m.charCodeAt(b)};function f(m){for(var b="",y=0,w;(w=u.xmlReplacer.exec(m))!==null;){var v=w.index,k=m.charCodeAt(v),S=l.get(k);S!==void 0?(b+=m.substring(y,v)+S,y=v+1):(b+="".concat(m.substring(y,v),"&#x").concat((0,u.getCodePoint)(m,v).toString(16),";"),y=u.xmlReplacer.lastIndex+=+((k&64512)===55296))}return b+m.substr(y)}u.encodeXML=f,u.escape=f;function p(m,b){return function(w){for(var v,k=0,S="";v=m.exec(w);)k!==v.index&&(S+=w.substring(k,v.index)),S+=b.get(v[0].charCodeAt(0)),k=v.index+1;return S+w.substring(k)}}u.escapeUTF8=p(/[&<>'"]/g,l),u.escapeAttribute=p(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),u.escapeText=p(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(_escape);var __importDefault$1=commonjsGlobal$2&&commonjsGlobal$2.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(encode$2,"__esModule",{value:!0}),encode$2.encodeNonAsciiHTML=encode$2.encodeHTML=void 0;var encode_html_js_1=__importDefault$1(encodeHtml),escape_js_1=_escape,htmlReplacer=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function encodeHTML(u){return encodeHTMLTrieRe(htmlReplacer,u)}encode$2.encodeHTML=encodeHTML;function encodeNonAsciiHTML(u){return encodeHTMLTrieRe(escape_js_1.xmlReplacer,u)}encode$2.encodeNonAsciiHTML=encodeNonAsciiHTML;function encodeHTMLTrieRe(u,l){for(var f="",p=0,m;(m=u.exec(l))!==null;){var b=m.index;f+=l.substring(p,b);var y=l.charCodeAt(b),w=encode_html_js_1.default.get(y);if(typeof w=="object"){if(b+1<l.length){var v=l.charCodeAt(b+1),k=typeof w.n=="number"?w.n===v?w.o:void 0:w.n.get(v);if(k!==void 0){f+=k,p=u.lastIndex+=1;continue}}w=w.v}if(w!==void 0)f+=w,p=b+1;else{var S=(0,escape_js_1.getCodePoint)(l,b);f+="&#x".concat(S.toString(16),";"),p=u.lastIndex+=+(S!==y)}}return f+l.substr(p)}(function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.decodeXMLStrict=u.decodeHTML5Strict=u.decodeHTML4Strict=u.decodeHTML5=u.decodeHTML4=u.decodeHTMLAttribute=u.decodeHTMLStrict=u.decodeHTML=u.decodeXML=u.DecodingMode=u.EntityDecoder=u.encodeHTML5=u.encodeHTML4=u.encodeNonAsciiHTML=u.encodeHTML=u.escapeText=u.escapeAttribute=u.escapeUTF8=u.escape=u.encodeXML=u.encode=u.decodeStrict=u.decode=u.EncodingMode=u.EntityLevel=void 0;var l=decode,f=encode$2,p=_escape,m;(function(O){O[O.XML=0]="XML",O[O.HTML=1]="HTML"})(m=u.EntityLevel||(u.EntityLevel={}));var b;(function(O){O[O.UTF8=0]="UTF8",O[O.ASCII=1]="ASCII",O[O.Extensive=2]="Extensive",O[O.Attribute=3]="Attribute",O[O.Text=4]="Text"})(b=u.EncodingMode||(u.EncodingMode={}));function y(O,R){R===void 0&&(R=m.XML);var U=typeof R=="number"?R:R.level;if(U===m.HTML){var $=typeof R=="object"?R.mode:void 0;return(0,l.decodeHTML)(O,$)}return(0,l.decodeXML)(O)}u.decode=y;function w(O,R){var U;R===void 0&&(R=m.XML);var $=typeof R=="number"?{level:R}:R;return(U=$.mode)!==null&&U!==void 0||($.mode=l.DecodingMode.Strict),y(O,$)}u.decodeStrict=w;function v(O,R){R===void 0&&(R=m.XML);var U=typeof R=="number"?{level:R}:R;return U.mode===b.UTF8?(0,p.escapeUTF8)(O):U.mode===b.Attribute?(0,p.escapeAttribute)(O):U.mode===b.Text?(0,p.escapeText)(O):U.level===m.HTML?U.mode===b.ASCII?(0,f.encodeNonAsciiHTML)(O):(0,f.encodeHTML)(O):(0,p.encodeXML)(O)}u.encode=v;var k=_escape;Object.defineProperty(u,"encodeXML",{enumerable:!0,get:function(){return k.encodeXML}}),Object.defineProperty(u,"escape",{enumerable:!0,get:function(){return k.escape}}),Object.defineProperty(u,"escapeUTF8",{enumerable:!0,get:function(){return k.escapeUTF8}}),Object.defineProperty(u,"escapeAttribute",{enumerable:!0,get:function(){return k.escapeAttribute}}),Object.defineProperty(u,"escapeText",{enumerable:!0,get:function(){return k.escapeText}});var S=encode$2;Object.defineProperty(u,"encodeHTML",{enumerable:!0,get:function(){return S.encodeHTML}}),Object.defineProperty(u,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return S.encodeNonAsciiHTML}}),Object.defineProperty(u,"encodeHTML4",{enumerable:!0,get:function(){return S.encodeHTML}}),Object.defineProperty(u,"encodeHTML5",{enumerable:!0,get:function(){return S.encodeHTML}});var B=decode;Object.defineProperty(u,"EntityDecoder",{enumerable:!0,get:function(){return B.EntityDecoder}}),Object.defineProperty(u,"DecodingMode",{enumerable:!0,get:function(){return B.DecodingMode}}),Object.defineProperty(u,"decodeXML",{enumerable:!0,get:function(){return B.decodeXML}}),Object.defineProperty(u,"decodeHTML",{enumerable:!0,get:function(){return B.decodeHTML}}),Object.defineProperty(u,"decodeHTMLStrict",{enumerable:!0,get:function(){return B.decodeHTMLStrict}}),Object.defineProperty(u,"decodeHTMLAttribute",{enumerable:!0,get:function(){return B.decodeHTMLAttribute}}),Object.defineProperty(u,"decodeHTML4",{enumerable:!0,get:function(){return B.decodeHTML}}),Object.defineProperty(u,"decodeHTML5",{enumerable:!0,get:function(){return B.decodeHTML}}),Object.defineProperty(u,"decodeHTML4Strict",{enumerable:!0,get:function(){return B.decodeHTMLStrict}}),Object.defineProperty(u,"decodeHTML5Strict",{enumerable:!0,get:function(){return B.decodeHTMLStrict}}),Object.defineProperty(u,"decodeXMLStrict",{enumerable:!0,get:function(){return B.decodeXML}})})(lib);var foreignNames={};Object.defineProperty(foreignNames,"__esModule",{value:!0}),foreignNames.attributeNames=foreignNames.elementNames=void 0,foreignNames.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(u){return[u.toLowerCase(),u]})),foreignNames.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(u){return[u.toLowerCase(),u]}));var __assign=commonjsGlobal$2&&commonjsGlobal$2.__assign||function(){return __assign=Object.assign||function(u){for(var l,f=1,p=arguments.length;f<p;f++){l=arguments[f];for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&(u[m]=l[m])}return u},__assign.apply(this,arguments)},__createBinding=commonjsGlobal$2&&commonjsGlobal$2.__createBinding||(Object.create?function(u,l,f,p){p===void 0&&(p=f);var m=Object.getOwnPropertyDescriptor(l,f);(!m||("get"in m?!l.__esModule:m.writable||m.configurable))&&(m={enumerable:!0,get:function(){return l[f]}}),Object.defineProperty(u,p,m)}:function(u,l,f,p){p===void 0&&(p=f),u[p]=l[f]}),__setModuleDefault=commonjsGlobal$2&&commonjsGlobal$2.__setModuleDefault||(Object.create?function(u,l){Object.defineProperty(u,"default",{enumerable:!0,value:l})}:function(u,l){u.default=l}),__importStar=commonjsGlobal$2&&commonjsGlobal$2.__importStar||function(u){if(u&&u.__esModule)return u;var l={};if(u!=null)for(var f in u)f!=="default"&&Object.prototype.hasOwnProperty.call(u,f)&&__createBinding(l,u,f);return __setModuleDefault(l,u),l};Object.defineProperty(lib$1,"__esModule",{value:!0}),lib$1.render=void 0;var ElementType=__importStar(lib$3),entities_1=lib,foreignNames_js_1=foreignNames,unencodedElements=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function replaceQuotes(u){return u.replace(/"/g,""")}function formatAttributes(u,l){var f;if(u){var p=((f=l.encodeEntities)!==null&&f!==void 0?f:l.decodeEntities)===!1?replaceQuotes:l.xmlMode||l.encodeEntities!=="utf8"?entities_1.encodeXML:entities_1.escapeAttribute;return Object.keys(u).map(function(m){var b,y,w=(b=u[m])!==null&&b!==void 0?b:"";return l.xmlMode==="foreign"&&(m=(y=foreignNames_js_1.attributeNames.get(m))!==null&&y!==void 0?y:m),!l.emptyAttrs&&!l.xmlMode&&w===""?m:"".concat(m,'="').concat(p(w),'"')}).join(" ")}}var singleTag=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function render$1(u,l){l===void 0&&(l={});for(var f=("length"in u)?u:[u],p="",m=0;m<f.length;m++)p+=renderNode(f[m],l);return p}lib$1.render=render$1,lib$1.default=render$1;function renderNode(u,l){switch(u.type){case ElementType.Root:return render$1(u.children,l);case ElementType.Doctype:case ElementType.Directive:return renderDirective(u);case ElementType.Comment:return renderComment(u);case ElementType.CDATA:return renderCdata(u);case ElementType.Script:case ElementType.Style:case ElementType.Tag:return renderTag(u,l);case ElementType.Text:return renderText(u,l)}}var foreignModeIntegrationPoints=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),foreignElements=new Set(["svg","math"]);function renderTag(u,l){var f;l.xmlMode==="foreign"&&(u.name=(f=foreignNames_js_1.elementNames.get(u.name))!==null&&f!==void 0?f:u.name,u.parent&&foreignModeIntegrationPoints.has(u.parent.name)&&(l=__assign(__assign({},l),{xmlMode:!1}))),!l.xmlMode&&foreignElements.has(u.name)&&(l=__assign(__assign({},l),{xmlMode:"foreign"}));var p="<".concat(u.name),m=formatAttributes(u.attribs,l);return m&&(p+=" ".concat(m)),u.children.length===0&&(l.xmlMode?l.selfClosingTags!==!1:l.selfClosingTags&&singleTag.has(u.name))?(l.xmlMode||(p+=" "),p+="/>"):(p+=">",u.children.length>0&&(p+=render$1(u.children,l)),(l.xmlMode||!singleTag.has(u.name))&&(p+="</".concat(u.name,">"))),p}function renderDirective(u){return"<".concat(u.data,">")}function renderText(u,l){var f,p=u.data||"";return((f=l.encodeEntities)!==null&&f!==void 0?f:l.decodeEntities)!==!1&&!(!l.xmlMode&&u.parent&&unencodedElements.has(u.parent.name))&&(p=l.xmlMode||l.encodeEntities!=="utf8"?(0,entities_1.encodeXML)(p):(0,entities_1.escapeText)(p)),p}function renderCdata(u){return"<![CDATA[".concat(u.children[0].data,"]]>")}function renderComment(u){return"<!--".concat(u.data,"-->")}var __importDefault=commonjsGlobal$2&&commonjsGlobal$2.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(stringify$5,"__esModule",{value:!0}),stringify$5.getOuterHTML=getOuterHTML,stringify$5.getInnerHTML=getInnerHTML,stringify$5.getText=getText,stringify$5.textContent=textContent,stringify$5.innerText=innerText;var domhandler_1$4=lib$4,dom_serializer_1=__importDefault(lib$1),domelementtype_1=lib$3;function getOuterHTML(u,l){return(0,dom_serializer_1.default)(u,l)}function getInnerHTML(u,l){return(0,domhandler_1$4.hasChildren)(u)?u.children.map(function(f){return getOuterHTML(f,l)}).join(""):""}function getText(u){return Array.isArray(u)?u.map(getText).join(""):(0,domhandler_1$4.isTag)(u)?u.name==="br"?`
|