@phila/phila-ui-map-core 1.1.0-beta.13 → 1.1.0-beta.14
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/CyclomediaButton-BbVI4hsl.js +4 -0
- package/dist/{CyclomediaButton-DfzBEAvd.cjs → CyclomediaButton-DC62eWPu.cjs} +1 -1
- package/dist/{CyclomediaCameraIcon-0UloRUd6.js → CyclomediaCameraIcon-DE9n1rqc.js} +1 -1
- package/dist/{CyclomediaCameraIcon-DE6-fuiX.cjs → CyclomediaCameraIcon-hCjhfN8e.cjs} +1 -1
- package/dist/{CyclomediaRecordingsLayer-ZT6rVet1.cjs → CyclomediaRecordingsLayer-DtKS1prS.cjs} +1 -1
- package/dist/CyclomediaRecordingsLayer-sMMoxqYv.js +4 -0
- package/dist/{CyclomediaViewcone-C_7gGAY7.cjs → CyclomediaViewcone-DiVLRK0O.cjs} +1 -1
- package/dist/{CyclomediaViewcone-CQ6f74iJ.js → CyclomediaViewcone-zGIvLA4y.js} +1 -1
- package/dist/PictometryButton-0pLvBgdw.js +4 -0
- package/dist/{PictometryButton-htTcpha4.cjs → PictometryButton-CDRBjosX.cjs} +1 -1
- package/dist/{PictometryPanel-CjeUN5FT.cjs → PictometryPanel-CHEYonH5.cjs} +2 -2
- package/dist/{PictometryPanel-D34QJJC_.js → PictometryPanel-Eji6FPOJ.js} +2 -2
- package/dist/assets/phila-ui-map-core.css +1 -1
- package/dist/components.js +1 -1
- package/dist/components.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/dist/CyclomediaButton-yEAZmZx2.js +0 -4
- package/dist/CyclomediaRecordingsLayer-CHB_-hnR.js +0 -4
- package/dist/PictometryButton-Cj_BSMV7.js +0 -4
|
@@ -554,11 +554,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
554
554
|
}`;function css(){var Mt=DEFAULT_CSS_PREFIX,V=DEFAULT_REPLACEMENT_CLASS,O=config.cssPrefix,G=config.replacementClass,X=baseStyles;if(O!==Mt||G!==V){var Y=new RegExp("\\.".concat(Mt,"\\-"),"g"),ge=new RegExp("\\--".concat(Mt,"\\-"),"g"),we=new RegExp("\\.".concat(V),"g");X=X.replace(Y,".".concat(O,"-")).replace(ge,"--".concat(O,"-")).replace(we,".".concat(G))}return X}var _cssInserted=!1;function ensureCss(){config.autoAddCss&&!_cssInserted&&(insertCss(css()),_cssInserted=!0)}var InjectCSS={mixout:function(){return{dom:{css,insertCss:ensureCss}}},hooks:function(){return{beforeDOMElementCreation:function(){ensureCss()},beforeI2svg:function(){ensureCss()}}}},w$2=WINDOW||{};w$2[NAMESPACE_IDENTIFIER]||(w$2[NAMESPACE_IDENTIFIER]={});w$2[NAMESPACE_IDENTIFIER].styles||(w$2[NAMESPACE_IDENTIFIER].styles={});w$2[NAMESPACE_IDENTIFIER].hooks||(w$2[NAMESPACE_IDENTIFIER].hooks={});w$2[NAMESPACE_IDENTIFIER].shims||(w$2[NAMESPACE_IDENTIFIER].shims=[]);var namespace=w$2[NAMESPACE_IDENTIFIER],functions=[],_listener=function(){DOCUMENT.removeEventListener("DOMContentLoaded",_listener),loaded=1,functions.map(function(V){return V()})},loaded=!1;IS_DOM&&(loaded=(DOCUMENT.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(DOCUMENT.readyState),loaded||DOCUMENT.addEventListener("DOMContentLoaded",_listener));function domready(Mt){IS_DOM&&(loaded?setTimeout(Mt,0):functions.push(Mt))}function toHtml(Mt){var V=Mt.tag,O=Mt.attributes,G=O===void 0?{}:O,X=Mt.children,Y=X===void 0?[]:X;return typeof Mt=="string"?htmlEscape(Mt):"<".concat(V," ").concat(joinAttributes(G),">").concat(Y.map(toHtml).join(""),"</").concat(V,">")}function iconFromMapping(Mt,V,O){if(Mt&&Mt[V]&&Mt[V][O])return{prefix:V,iconName:O,icon:Mt[V][O]}}var reduce=function(V,O,G,X){var Y=Object.keys(V),ge=Y.length,we=O,fe,Me,ee;for(G===void 0?(fe=1,ee=V[Y[0]]):(fe=0,ee=G);fe<ge;fe++)Me=Y[fe],ee=we(ee,V[Me],Me,V);return ee};function toHex(Mt){return _toConsumableArray$2(Mt).length!==1?null:Mt.codePointAt(0).toString(16)}function normalizeIcons(Mt){return Object.keys(Mt).reduce(function(V,O){var G=Mt[O],X=!!G.icon;return X?V[G.iconName]=G.icon:V[O]=G,V},{})}function defineIcons(Mt,V){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},G=O.skipHooks,X=G===void 0?!1:G,Y=normalizeIcons(V);typeof namespace.hooks.addPack=="function"&&!X?namespace.hooks.addPack(Mt,normalizeIcons(V)):namespace.styles[Mt]=_objectSpread2$2(_objectSpread2$2({},namespace.styles[Mt]||{}),Y),Mt==="fas"&&defineIcons("fa",V)}var styles=namespace.styles,shims=namespace.shims,FAMILY_NAMES=Object.keys(PREFIX_TO_LONG_STYLE),PREFIXES_FOR_FAMILY=FAMILY_NAMES.reduce(function(Mt,V){return Mt[V]=Object.keys(PREFIX_TO_LONG_STYLE[V]),Mt},{}),_defaultUsablePrefix=null,_byUnicode={},_byLigature={},_byOldName={},_byOldUnicode={},_byAlias={};function isReserved(Mt){return~RESERVED_CLASSES.indexOf(Mt)}function getIconName(Mt,V){var O=V.split("-"),G=O[0],X=O.slice(1).join("-");return G===Mt&&X!==""&&!isReserved(X)?X:null}var build=function(){var V=function(Y){return reduce(styles,function(ge,we,fe){return ge[fe]=reduce(we,Y,{}),ge},{})};_byUnicode=V(function(X,Y,ge){if(Y[3]&&(X[Y[3]]=ge),Y[2]){var we=Y[2].filter(function(fe){return typeof fe=="number"});we.forEach(function(fe){X[fe.toString(16)]=ge})}return X}),_byLigature=V(function(X,Y,ge){if(X[ge]=ge,Y[2]){var we=Y[2].filter(function(fe){return typeof fe=="string"});we.forEach(function(fe){X[fe]=ge})}return X}),_byAlias=V(function(X,Y,ge){var we=Y[2];return X[ge]=ge,we.forEach(function(fe){X[fe]=ge}),X});var O="far"in styles||config.autoFetchSvg,G=reduce(shims,function(X,Y){var ge=Y[0],we=Y[1],fe=Y[2];return we==="far"&&!O&&(we="fas"),typeof ge=="string"&&(X.names[ge]={prefix:we,iconName:fe}),typeof ge=="number"&&(X.unicodes[ge.toString(16)]={prefix:we,iconName:fe}),X},{names:{},unicodes:{}});_byOldName=G.names,_byOldUnicode=G.unicodes,_defaultUsablePrefix=getCanonicalPrefix(config.styleDefault,{family:config.familyDefault})};onChange(function(Mt){_defaultUsablePrefix=getCanonicalPrefix(Mt.styleDefault,{family:config.familyDefault})});build();function byUnicode(Mt,V){return(_byUnicode[Mt]||{})[V]}function byLigature(Mt,V){return(_byLigature[Mt]||{})[V]}function byAlias(Mt,V){return(_byAlias[Mt]||{})[V]}function byOldName(Mt){return _byOldName[Mt]||{prefix:null,iconName:null}}function byOldUnicode(Mt){var V=_byOldUnicode[Mt],O=byUnicode("fas",Mt);return V||(O?{prefix:"fas",iconName:O}:null)||{prefix:null,iconName:null}}function getDefaultUsablePrefix(){return _defaultUsablePrefix}var emptyCanonicalIcon=function(){return{prefix:null,iconName:null,rest:[]}};function getFamilyId(Mt){var V=i,O=FAMILY_NAMES.reduce(function(G,X){return G[X]="".concat(config.cssPrefix,"-").concat(X),G},{});return rt$1.forEach(function(G){(Mt.includes(O[G])||Mt.some(function(X){return PREFIXES_FOR_FAMILY[G].includes(X)}))&&(V=G)}),V}function getCanonicalPrefix(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=V.family,G=O===void 0?i:O,X=PREFIX_TO_STYLE[G][Mt];if(G===t&&!Mt)return"fad";var Y=STYLE_TO_PREFIX[G][Mt]||STYLE_TO_PREFIX[G][X],ge=Mt in namespace.styles?Mt:null,we=Y||ge||null;return we}function moveNonFaClassesToRest(Mt){var V=[],O=null;return Mt.forEach(function(G){var X=getIconName(config.cssPrefix,G);X?O=X:G&&V.push(G)}),{iconName:O,rest:V}}function sortedUniqueValues(Mt){return Mt.sort().filter(function(V,O,G){return G.indexOf(V)===O})}var _faCombinedClasses=Zt$1.concat(Yt);function getCanonicalIcon(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=V.skipLookups,G=O===void 0?!1:O,X=null,Y=sortedUniqueValues(Mt.filter(function(Te){return _faCombinedClasses.includes(Te)})),ge=sortedUniqueValues(Mt.filter(function(Te){return!_faCombinedClasses.includes(Te)})),we=Y.filter(function(Te){return X=Te,!Q.includes(Te)}),fe=_slicedToArray(we,1),Me=fe[0],ee=Me===void 0?null:Me,he=getFamilyId(Y),me=_objectSpread2$2(_objectSpread2$2({},moveNonFaClassesToRest(ge)),{},{prefix:getCanonicalPrefix(ee,{family:he})});return _objectSpread2$2(_objectSpread2$2(_objectSpread2$2({},me),getDefaultCanonicalPrefix({values:Mt,family:he,styles,config,canonical:me,givenPrefix:X})),applyShimAndAlias(G,X,me))}function applyShimAndAlias(Mt,V,O){var G=O.prefix,X=O.iconName;if(Mt||!G||!X)return{prefix:G,iconName:X};var Y=V==="fa"?byOldName(X):{},ge=byAlias(G,X);return X=Y.iconName||ge||X,G=Y.prefix||G,G==="far"&&!styles.far&&styles.fas&&!config.autoFetchSvg&&(G="fas"),{prefix:G,iconName:X}}var newCanonicalFamilies=rt$1.filter(function(Mt){return Mt!==i||Mt!==t}),newCanonicalStyles=Object.keys(Ht$1).filter(function(Mt){return Mt!==i}).map(function(Mt){return Object.keys(Ht$1[Mt])}).flat();function getDefaultCanonicalPrefix(Mt){var V=Mt.values,O=Mt.family,G=Mt.canonical,X=Mt.givenPrefix,Y=X===void 0?"":X,ge=Mt.styles,we=ge===void 0?{}:ge,fe=Mt.config,Me=fe===void 0?{}:fe,ee=O===t,he=V.includes("fa-duotone")||V.includes("fad"),me=Me.familyDefault==="duotone",Te=G.prefix==="fad"||G.prefix==="fa-duotone";if(!ee&&(he||me||Te)&&(G.prefix="fad"),(V.includes("fa-brands")||V.includes("fab"))&&(G.prefix="fab"),!G.prefix&&newCanonicalFamilies.includes(O)){var Oe=Object.keys(we).find(function(Ne){return newCanonicalStyles.includes(Ne)});if(Oe||Me.autoFetchSvg){var Pe=Ut.get(O).defaultShortPrefixId;G.prefix=Pe,G.iconName=byAlias(G.prefix,G.iconName)||G.iconName}}return(G.prefix==="fa"||Y==="fa")&&(G.prefix=getDefaultUsablePrefix()||"fas"),G}var Library=(function(){function Mt(){_classCallCheck(this,Mt),this.definitions={}}return _createClass(Mt,[{key:"add",value:function(){for(var O=this,G=arguments.length,X=new Array(G),Y=0;Y<G;Y++)X[Y]=arguments[Y];var ge=X.reduce(this._pullDefinitions,{});Object.keys(ge).forEach(function(we){O.definitions[we]=_objectSpread2$2(_objectSpread2$2({},O.definitions[we]||{}),ge[we]),defineIcons(we,ge[we]);var fe=PREFIX_TO_LONG_STYLE[i][we];fe&&defineIcons(fe,ge[we]),build()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(O,G){var X=G.prefix&&G.iconName&&G.icon?{0:G}:G;return Object.keys(X).map(function(Y){var ge=X[Y],we=ge.prefix,fe=ge.iconName,Me=ge.icon,ee=Me[2];O[we]||(O[we]={}),ee.length>0&&ee.forEach(function(he){typeof he=="string"&&(O[we][he]=Me)}),O[we][fe]=Me}),O}}])})(),_plugins=[],_hooks={},providers={},defaultProviderKeys=Object.keys(providers);function registerPlugins(Mt,V){var O=V.mixoutsTo;return _plugins=Mt,_hooks={},Object.keys(providers).forEach(function(G){defaultProviderKeys.indexOf(G)===-1&&delete providers[G]}),_plugins.forEach(function(G){var X=G.mixout?G.mixout():{};if(Object.keys(X).forEach(function(ge){typeof X[ge]=="function"&&(O[ge]=X[ge]),_typeof$2(X[ge])==="object"&&Object.keys(X[ge]).forEach(function(we){O[ge]||(O[ge]={}),O[ge][we]=X[ge][we]})}),G.hooks){var Y=G.hooks();Object.keys(Y).forEach(function(ge){_hooks[ge]||(_hooks[ge]=[]),_hooks[ge].push(Y[ge])})}G.provides&&G.provides(providers)}),O}function chainHooks(Mt,V){for(var O=arguments.length,G=new Array(O>2?O-2:0),X=2;X<O;X++)G[X-2]=arguments[X];var Y=_hooks[Mt]||[];return Y.forEach(function(ge){V=ge.apply(null,[V].concat(G))}),V}function callHooks(Mt){for(var V=arguments.length,O=new Array(V>1?V-1:0),G=1;G<V;G++)O[G-1]=arguments[G];var X=_hooks[Mt]||[];X.forEach(function(Y){Y.apply(null,O)})}function callProvided(){var Mt=arguments[0],V=Array.prototype.slice.call(arguments,1);return providers[Mt]?providers[Mt].apply(null,V):void 0}function findIconDefinition(Mt){Mt.prefix==="fa"&&(Mt.prefix="fas");var V=Mt.iconName,O=Mt.prefix||getDefaultUsablePrefix();if(V)return V=byAlias(O,V)||V,iconFromMapping(library.definitions,O,V)||iconFromMapping(namespace.styles,O,V)}var library=new Library,noAuto=function(){config.autoReplaceSvg=!1,config.observeMutations=!1,callHooks("noAuto")},dom={i2svg:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return IS_DOM?(callHooks("beforeI2svg",V),callProvided("pseudoElements2svg",V),callProvided("i2svg",V)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=V.autoReplaceSvgRoot;config.autoReplaceSvg===!1&&(config.autoReplaceSvg=!0),config.observeMutations=!0,domready(function(){autoReplace({autoReplaceSvgRoot:O}),callHooks("watch",V)})}},parse={icon:function(V){if(V===null)return null;if(_typeof$2(V)==="object"&&V.prefix&&V.iconName)return{prefix:V.prefix,iconName:byAlias(V.prefix,V.iconName)||V.iconName};if(Array.isArray(V)&&V.length===2){var O=V[1].indexOf("fa-")===0?V[1].slice(3):V[1],G=getCanonicalPrefix(V[0]);return{prefix:G,iconName:byAlias(G,O)||O}}if(typeof V=="string"&&(V.indexOf("".concat(config.cssPrefix,"-"))>-1||V.match(ICON_SELECTION_SYNTAX_PATTERN))){var X=getCanonicalIcon(V.split(" "),{skipLookups:!0});return{prefix:X.prefix||getDefaultUsablePrefix(),iconName:byAlias(X.prefix,X.iconName)||X.iconName}}if(typeof V=="string"){var Y=getDefaultUsablePrefix();return{prefix:Y,iconName:byAlias(Y,V)||V}}}},api={noAuto,config,dom,parse,library,findIconDefinition,toHtml},autoReplace=function(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=V.autoReplaceSvgRoot,G=O===void 0?DOCUMENT:O;(Object.keys(namespace.styles).length>0||config.autoFetchSvg)&&IS_DOM&&config.autoReplaceSvg&&api.dom.i2svg({node:G})};function domVariants(Mt,V){return Object.defineProperty(Mt,"abstract",{get:V}),Object.defineProperty(Mt,"html",{get:function(){return Mt.abstract.map(function(G){return toHtml(G)})}}),Object.defineProperty(Mt,"node",{get:function(){if(IS_DOM){var G=DOCUMENT.createElement("div");return G.innerHTML=Mt.html,G.children}}}),Mt}function asIcon(Mt){var V=Mt.children,O=Mt.main,G=Mt.mask,X=Mt.attributes,Y=Mt.styles,ge=Mt.transform;if(transformIsMeaningful(ge)&&O.found&&!G.found){var we=O.width,fe=O.height,Me={x:we/fe/2,y:.5};X.style=joinStyles(_objectSpread2$2(_objectSpread2$2({},Y),{},{"transform-origin":"".concat(Me.x+ge.x/16,"em ").concat(Me.y+ge.y/16,"em")}))}return[{tag:"svg",attributes:X,children:V}]}function asSymbol(Mt){var V=Mt.prefix,O=Mt.iconName,G=Mt.children,X=Mt.attributes,Y=Mt.symbol,ge=Y===!0?"".concat(V,"-").concat(config.cssPrefix,"-").concat(O):Y;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_objectSpread2$2(_objectSpread2$2({},X),{},{id:ge}),children:G}]}]}function isLabeled(Mt){var V=["aria-label","aria-labelledby","title","role"];return V.some(function(O){return O in Mt})}function makeInlineSvgAbstract(Mt){var V=Mt.icons,O=V.main,G=V.mask,X=Mt.prefix,Y=Mt.iconName,ge=Mt.transform,we=Mt.symbol,fe=Mt.maskId,Me=Mt.extra,ee=Mt.watchable,he=ee===void 0?!1:ee,me=G.found?G:O,Te=me.width,Oe=me.height,Pe=[config.replacementClass,Y?"".concat(config.cssPrefix,"-").concat(Y):""].filter(function(jt){return Me.classes.indexOf(jt)===-1}).filter(function(jt){return jt!==""||!!jt}).concat(Me.classes).join(" "),Ne={children:[],attributes:_objectSpread2$2(_objectSpread2$2({},Me.attributes),{},{"data-prefix":X,"data-icon":Y,class:Pe,role:Me.attributes.role||"img",viewBox:"0 0 ".concat(Te," ").concat(Oe)})};!isLabeled(Me.attributes)&&!Me.attributes["aria-hidden"]&&(Ne.attributes["aria-hidden"]="true"),he&&(Ne.attributes[DATA_FA_I2SVG]="");var Le=_objectSpread2$2(_objectSpread2$2({},Ne),{},{prefix:X,iconName:Y,main:O,mask:G,maskId:fe,transform:ge,symbol:we,styles:_objectSpread2$2({},Me.styles)}),De=G.found&&O.found?callProvided("generateAbstractMask",Le)||{children:[],attributes:{}}:callProvided("generateAbstractIcon",Le)||{children:[],attributes:{}},bt=De.children,wt=De.attributes;return Le.children=bt,Le.attributes=wt,we?asSymbol(Le):asIcon(Le)}function makeLayersTextAbstract(Mt){var V=Mt.content,O=Mt.width,G=Mt.height,X=Mt.transform,Y=Mt.extra,ge=Mt.watchable,we=ge===void 0?!1:ge,fe=_objectSpread2$2(_objectSpread2$2({},Y.attributes),{},{class:Y.classes.join(" ")});we&&(fe[DATA_FA_I2SVG]="");var Me=_objectSpread2$2({},Y.styles);transformIsMeaningful(X)&&(Me.transform=transformForCss({transform:X,width:O,height:G}),Me["-webkit-transform"]=Me.transform);var ee=joinStyles(Me);ee.length>0&&(fe.style=ee);var he=[];return he.push({tag:"span",attributes:fe,children:[V]}),he}function makeLayersCounterAbstract(Mt){var V=Mt.content,O=Mt.extra,G=_objectSpread2$2(_objectSpread2$2({},O.attributes),{},{class:O.classes.join(" ")}),X=joinStyles(O.styles);X.length>0&&(G.style=X);var Y=[];return Y.push({tag:"span",attributes:G,children:[V]}),Y}var styles$1=namespace.styles;function asFoundIcon(Mt){var V=Mt[0],O=Mt[1],G=Mt.slice(4),X=_slicedToArray(G,1),Y=X[0],ge=null;return Array.isArray(Y)?ge={tag:"g",attributes:{class:"".concat(config.cssPrefix,"-").concat(DUOTONE_CLASSES.GROUP)},children:[{tag:"path",attributes:{class:"".concat(config.cssPrefix,"-").concat(DUOTONE_CLASSES.SECONDARY),fill:"currentColor",d:Y[0]}},{tag:"path",attributes:{class:"".concat(config.cssPrefix,"-").concat(DUOTONE_CLASSES.PRIMARY),fill:"currentColor",d:Y[1]}}]}:ge={tag:"path",attributes:{fill:"currentColor",d:Y}},{found:!0,width:V,height:O,icon:ge}}var missingIconResolutionMixin={found:!1,width:512,height:512};function maybeNotifyMissing(Mt,V){!PRODUCTION$2&&config.showMissingIcons}function findIcon(Mt,V){var O=V;return V==="fa"&&config.styleDefault!==null&&(V=getDefaultUsablePrefix()),new Promise(function(G,X){if(O==="fa"){var Y=byOldName(Mt)||{};Mt=Y.iconName||Mt,V=Y.prefix||V}if(Mt&&V&&styles$1[V]&&styles$1[V][Mt]){var ge=styles$1[V][Mt];return G(asFoundIcon(ge))}maybeNotifyMissing(Mt,V),G(_objectSpread2$2(_objectSpread2$2({},missingIconResolutionMixin),{},{icon:config.showMissingIcons&&Mt?callProvided("missingIconAbstract")||{}:{}}))})}var noop$1=function(){},p$2=config.measurePerformance&&PERFORMANCE&&PERFORMANCE.mark&&PERFORMANCE.measure?PERFORMANCE:{mark:noop$1,measure:noop$1},preamble='FA "7.1.0"',begin=function(V){return p$2.mark("".concat(preamble," ").concat(V," begins")),function(){return end(V)}},end=function(V){p$2.mark("".concat(preamble," ").concat(V," ends")),p$2.measure("".concat(preamble," ").concat(V),"".concat(preamble," ").concat(V," begins"),"".concat(preamble," ").concat(V," ends"))},perf={begin,end},noop$2=function(){};function isWatched(Mt){var V=Mt.getAttribute?Mt.getAttribute(DATA_FA_I2SVG):null;return typeof V=="string"}function hasPrefixAndIcon(Mt){var V=Mt.getAttribute?Mt.getAttribute(DATA_PREFIX):null,O=Mt.getAttribute?Mt.getAttribute(DATA_ICON):null;return V&&O}function hasBeenReplaced(Mt){return Mt&&Mt.classList&&Mt.classList.contains&&Mt.classList.contains(config.replacementClass)}function getMutator(){if(config.autoReplaceSvg===!0)return mutators.replace;var Mt=mutators[config.autoReplaceSvg];return Mt||mutators.replace}function createElementNS(Mt){return DOCUMENT.createElementNS("http://www.w3.org/2000/svg",Mt)}function createElement(Mt){return DOCUMENT.createElement(Mt)}function convertSVG(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=V.ceFn,G=O===void 0?Mt.tag==="svg"?createElementNS:createElement:O;if(typeof Mt=="string")return DOCUMENT.createTextNode(Mt);var X=G(Mt.tag);Object.keys(Mt.attributes||[]).forEach(function(ge){X.setAttribute(ge,Mt.attributes[ge])});var Y=Mt.children||[];return Y.forEach(function(ge){X.appendChild(convertSVG(ge,{ceFn:G}))}),X}function nodeAsComment(Mt){var V=" ".concat(Mt.outerHTML," ");return V="".concat(V,"Font Awesome fontawesome.com "),V}var mutators={replace:function(V){var O=V[0];if(O.parentNode)if(V[1].forEach(function(X){O.parentNode.insertBefore(convertSVG(X),O)}),O.getAttribute(DATA_FA_I2SVG)===null&&config.keepOriginalSource){var G=DOCUMENT.createComment(nodeAsComment(O));O.parentNode.replaceChild(G,O)}else O.remove()},nest:function(V){var O=V[0],G=V[1];if(~classArray(O).indexOf(config.replacementClass))return mutators.replace(V);var X=new RegExp("".concat(config.cssPrefix,"-.*"));if(delete G[0].attributes.id,G[0].attributes.class){var Y=G[0].attributes.class.split(" ").reduce(function(we,fe){return fe===config.replacementClass||fe.match(X)?we.toSvg.push(fe):we.toNode.push(fe),we},{toNode:[],toSvg:[]});G[0].attributes.class=Y.toSvg.join(" "),Y.toNode.length===0?O.removeAttribute("class"):O.setAttribute("class",Y.toNode.join(" "))}var ge=G.map(function(we){return toHtml(we)}).join(`
|
|
555
555
|
`);O.setAttribute(DATA_FA_I2SVG,""),O.innerHTML=ge}};function performOperationSync(Mt){Mt()}function perform(Mt,V){var O=typeof V=="function"?V:noop$2;if(Mt.length===0)O();else{var G=performOperationSync;config.mutateApproach===MUTATION_APPROACH_ASYNC&&(G=WINDOW.requestAnimationFrame||performOperationSync),G(function(){var X=getMutator(),Y=perf.begin("mutate");Mt.map(X),Y(),O()})}}var disabled=!1;function disableObservation(){disabled=!0}function enableObservation(){disabled=!1}var mo=null;function observe(Mt){if(MUTATION_OBSERVER&&config.observeMutations){var V=Mt.treeCallback,O=V===void 0?noop$2:V,G=Mt.nodeCallback,X=G===void 0?noop$2:G,Y=Mt.pseudoElementsCallback,ge=Y===void 0?noop$2:Y,we=Mt.observeMutationsRoot,fe=we===void 0?DOCUMENT:we;mo=new MUTATION_OBSERVER(function(Me){if(!disabled){var ee=getDefaultUsablePrefix();toArray(Me).forEach(function(he){if(he.type==="childList"&&he.addedNodes.length>0&&!isWatched(he.addedNodes[0])&&(config.searchPseudoElements&&ge(he.target),O(he.target)),he.type==="attributes"&&he.target.parentNode&&config.searchPseudoElements&&ge([he.target],!0),he.type==="attributes"&&isWatched(he.target)&&~ATTRIBUTES_WATCHED_FOR_MUTATION.indexOf(he.attributeName))if(he.attributeName==="class"&&hasPrefixAndIcon(he.target)){var me=getCanonicalIcon(classArray(he.target)),Te=me.prefix,Oe=me.iconName;he.target.setAttribute(DATA_PREFIX,Te||ee),Oe&&he.target.setAttribute(DATA_ICON,Oe)}else hasBeenReplaced(he.target)&&X(he.target)})}}),IS_DOM&&mo.observe(fe,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function disconnect(){mo&&mo.disconnect()}function styleParser(Mt){var V=Mt.getAttribute("style"),O=[];return V&&(O=V.split(";").reduce(function(G,X){var Y=X.split(":"),ge=Y[0],we=Y.slice(1);return ge&&we.length>0&&(G[ge]=we.join(":").trim()),G},{})),O}function classParser(Mt){var V=Mt.getAttribute("data-prefix"),O=Mt.getAttribute("data-icon"),G=Mt.innerText!==void 0?Mt.innerText.trim():"",X=getCanonicalIcon(classArray(Mt));return X.prefix||(X.prefix=getDefaultUsablePrefix()),V&&O&&(X.prefix=V,X.iconName=O),X.iconName&&X.prefix||(X.prefix&&G.length>0&&(X.iconName=byLigature(X.prefix,Mt.innerText)||byUnicode(X.prefix,toHex(Mt.innerText))),!X.iconName&&config.autoFetchSvg&&Mt.firstChild&&Mt.firstChild.nodeType===Node.TEXT_NODE&&(X.iconName=Mt.firstChild.data)),X}function attributesParser(Mt){var V=toArray(Mt.attributes).reduce(function(O,G){return O.name!=="class"&&O.name!=="style"&&(O[G.name]=G.value),O},{});return V}function blankMeta(){return{iconName:null,prefix:null,transform:meaninglessTransform,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function parseMeta(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},O=classParser(Mt),G=O.iconName,X=O.prefix,Y=O.rest,ge=attributesParser(Mt),we=chainHooks("parseNodeAttributes",{},Mt),fe=V.styleParser?styleParser(Mt):[];return _objectSpread2$2({iconName:G,prefix:X,transform:meaninglessTransform,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:Y,styles:fe,attributes:ge}},we)}var styles$2=namespace.styles;function generateMutation(Mt){var V=config.autoReplaceSvg==="nest"?parseMeta(Mt,{styleParser:!1}):parseMeta(Mt);return~V.extra.classes.indexOf(LAYERS_TEXT_CLASSNAME)?callProvided("generateLayersText",Mt,V):callProvided("generateSvgReplacementMutation",Mt,V)}function getKnownPrefixes(){return[].concat(_toConsumableArray$2(Yt),_toConsumableArray$2(Zt$1))}function onTree(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!IS_DOM)return Promise.resolve();var O=DOCUMENT.documentElement.classList,G=function(he){return O.add("".concat(HTML_CLASS_I2SVG_BASE_CLASS,"-").concat(he))},X=function(he){return O.remove("".concat(HTML_CLASS_I2SVG_BASE_CLASS,"-").concat(he))},Y=config.autoFetchSvg?getKnownPrefixes():Q.concat(Object.keys(styles$2));Y.includes("fa")||Y.push("fa");var ge=[".".concat(LAYERS_TEXT_CLASSNAME,":not([").concat(DATA_FA_I2SVG,"])")].concat(Y.map(function(ee){return".".concat(ee,":not([").concat(DATA_FA_I2SVG,"])")})).join(", ");if(ge.length===0)return Promise.resolve();var we=[];try{we=toArray(Mt.querySelectorAll(ge))}catch{}if(we.length>0)G("pending"),X("complete");else return Promise.resolve();var fe=perf.begin("onTree"),Me=we.reduce(function(ee,he){try{var me=generateMutation(he);me&&ee.push(me)}catch(Te){PRODUCTION$2||Te.name}return ee},[]);return new Promise(function(ee,he){Promise.all(Me).then(function(me){perform(me,function(){G("active"),G("complete"),X("pending"),typeof V=="function"&&V(),fe(),ee()})}).catch(function(me){fe(),he(me)})})}function onNode(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;generateMutation(Mt).then(function(O){O&&perform([O],V)})}function resolveIcons(Mt){return function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=(V||{}).icon?V:findIconDefinition(V||{}),X=O.mask;return X&&(X=(X||{}).icon?X:findIconDefinition(X||{})),Mt(G,_objectSpread2$2(_objectSpread2$2({},O),{},{mask:X}))}}var render=function(V){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=O.transform,X=G===void 0?meaninglessTransform:G,Y=O.symbol,ge=Y===void 0?!1:Y,we=O.mask,fe=we===void 0?null:we,Me=O.maskId,ee=Me===void 0?null:Me,he=O.classes,me=he===void 0?[]:he,Te=O.attributes,Oe=Te===void 0?{}:Te,Pe=O.styles,Ne=Pe===void 0?{}:Pe;if(V){var Le=V.prefix,De=V.iconName,bt=V.icon;return domVariants(_objectSpread2$2({type:"icon"},V),function(){return callHooks("beforeDOMElementCreation",{iconDefinition:V,params:O}),makeInlineSvgAbstract({icons:{main:asFoundIcon(bt),mask:fe?asFoundIcon(fe.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Le,iconName:De,transform:_objectSpread2$2(_objectSpread2$2({},meaninglessTransform),X),symbol:ge,maskId:ee,extra:{attributes:Oe,styles:Ne,classes:me}})})}},ReplaceElements={mixout:function(){return{icon:resolveIcons(render)}},hooks:function(){return{mutationObserverCallbacks:function(O){return O.treeCallback=onTree,O.nodeCallback=onNode,O}}},provides:function(V){V.i2svg=function(O){var G=O.node,X=G===void 0?DOCUMENT:G,Y=O.callback,ge=Y===void 0?function(){}:Y;return onTree(X,ge)},V.generateSvgReplacementMutation=function(O,G){var X=G.iconName,Y=G.prefix,ge=G.transform,we=G.symbol,fe=G.mask,Me=G.maskId,ee=G.extra;return new Promise(function(he,me){Promise.all([findIcon(X,Y),fe.iconName?findIcon(fe.iconName,fe.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(Te){var Oe=_slicedToArray(Te,2),Pe=Oe[0],Ne=Oe[1];he([O,makeInlineSvgAbstract({icons:{main:Pe,mask:Ne},prefix:Y,iconName:X,transform:ge,symbol:we,maskId:Me,extra:ee,watchable:!0})])}).catch(me)})},V.generateAbstractIcon=function(O){var G=O.children,X=O.attributes,Y=O.main,ge=O.transform,we=O.styles,fe=joinStyles(we);fe.length>0&&(X.style=fe);var Me;return transformIsMeaningful(ge)&&(Me=callProvided("generateAbstractTransformGrouping",{main:Y,transform:ge,containerWidth:Y.width,iconWidth:Y.width})),G.push(Me||Y.icon),{children:G,attributes:X}}}},Layers={mixout:function(){return{layer:function(O){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=G.classes,Y=X===void 0?[]:X;return domVariants({type:"layer"},function(){callHooks("beforeDOMElementCreation",{assembler:O,params:G});var ge=[];return O(function(we){Array.isArray(we)?we.map(function(fe){ge=ge.concat(fe.abstract)}):ge=ge.concat(we.abstract)}),[{tag:"span",attributes:{class:["".concat(config.cssPrefix,"-layers")].concat(_toConsumableArray$2(Y)).join(" ")},children:ge}]})}}}},LayersCounter={mixout:function(){return{counter:function(O){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};G.title;var X=G.classes,Y=X===void 0?[]:X,ge=G.attributes,we=ge===void 0?{}:ge,fe=G.styles,Me=fe===void 0?{}:fe;return domVariants({type:"counter",content:O},function(){return callHooks("beforeDOMElementCreation",{content:O,params:G}),makeLayersCounterAbstract({content:O.toString(),extra:{attributes:we,styles:Me,classes:["".concat(config.cssPrefix,"-layers-counter")].concat(_toConsumableArray$2(Y))}})})}}}},LayersText={mixout:function(){return{text:function(O){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},X=G.transform,Y=X===void 0?meaninglessTransform:X,ge=G.classes,we=ge===void 0?[]:ge,fe=G.attributes,Me=fe===void 0?{}:fe,ee=G.styles,he=ee===void 0?{}:ee;return domVariants({type:"text",content:O},function(){return callHooks("beforeDOMElementCreation",{content:O,params:G}),makeLayersTextAbstract({content:O,transform:_objectSpread2$2(_objectSpread2$2({},meaninglessTransform),Y),extra:{attributes:Me,styles:he,classes:["".concat(config.cssPrefix,"-layers-text")].concat(_toConsumableArray$2(we))}})})}}},provides:function(V){V.generateLayersText=function(O,G){var X=G.transform,Y=G.extra,ge=null,we=null;if(IS_IE){var fe=parseInt(getComputedStyle(O).fontSize,10),Me=O.getBoundingClientRect();ge=Me.width/fe,we=Me.height/fe}return Promise.resolve([O,makeLayersTextAbstract({content:O.innerHTML,width:ge,height:we,transform:X,extra:Y,watchable:!0})])}}},CLEAN_CONTENT_PATTERN=new RegExp('"',"ug"),SECONDARY_UNICODE_RANGE=[1105920,1112319],_FONT_FAMILY_WEIGHT_TO_PREFIX=_objectSpread2$2(_objectSpread2$2(_objectSpread2$2(_objectSpread2$2({},{FontAwesome:{normal:"fas",400:"fas"}}),Ct$1),ro),dl),FONT_FAMILY_WEIGHT_TO_PREFIX=Object.keys(_FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function(Mt,V){return Mt[V.toLowerCase()]=_FONT_FAMILY_WEIGHT_TO_PREFIX[V],Mt},{}),FONT_FAMILY_WEIGHT_FALLBACK=Object.keys(FONT_FAMILY_WEIGHT_TO_PREFIX).reduce(function(Mt,V){var O=FONT_FAMILY_WEIGHT_TO_PREFIX[V];return Mt[V]=O[900]||_toConsumableArray$2(Object.entries(O))[0][1],Mt},{});function hexValueFromContent(Mt){var V=Mt.replace(CLEAN_CONTENT_PATTERN,"");return toHex(_toConsumableArray$2(V)[0]||"")}function isSecondaryLayer(Mt){var V=Mt.getPropertyValue("font-feature-settings").includes("ss01"),O=Mt.getPropertyValue("content"),G=O.replace(CLEAN_CONTENT_PATTERN,""),X=G.codePointAt(0),Y=X>=SECONDARY_UNICODE_RANGE[0]&&X<=SECONDARY_UNICODE_RANGE[1],ge=G.length===2?G[0]===G[1]:!1;return Y||ge||V}function getPrefix(Mt,V){var O=Mt.replace(/^['"]|['"]$/g,"").toLowerCase(),G=parseInt(V),X=isNaN(G)?"normal":G;return(FONT_FAMILY_WEIGHT_TO_PREFIX[O]||{})[X]||FONT_FAMILY_WEIGHT_FALLBACK[O]}function replaceForPosition(Mt,V){var O="".concat(DATA_FA_PSEUDO_ELEMENT_PENDING).concat(V.replace(":","-"));return new Promise(function(G,X){if(Mt.getAttribute(O)!==null)return G();var Y=toArray(Mt.children),ge=Y.filter(function(Tt){return Tt.getAttribute(DATA_FA_PSEUDO_ELEMENT)===V})[0],we=WINDOW.getComputedStyle(Mt,V),fe=we.getPropertyValue("font-family"),Me=fe.match(FONT_FAMILY_PATTERN),ee=we.getPropertyValue("font-weight"),he=we.getPropertyValue("content");if(ge&&!Me)return Mt.removeChild(ge),G();if(Me&&he!=="none"&&he!==""){var me=we.getPropertyValue("content"),Te=getPrefix(fe,ee),Oe=hexValueFromContent(me),Pe=Me[0].startsWith("FontAwesome"),Ne=isSecondaryLayer(we),Le=byUnicode(Te,Oe),De=Le;if(Pe){var bt=byOldUnicode(Oe);bt.iconName&&bt.prefix&&(Le=bt.iconName,Te=bt.prefix)}if(Le&&!Ne&&(!ge||ge.getAttribute(DATA_PREFIX)!==Te||ge.getAttribute(DATA_ICON)!==De)){Mt.setAttribute(O,De),ge&&Mt.removeChild(ge);var wt=blankMeta(),jt=wt.extra;jt.attributes[DATA_FA_PSEUDO_ELEMENT]=V,findIcon(Le,Te).then(function(Tt){var St=makeInlineSvgAbstract(_objectSpread2$2(_objectSpread2$2({},wt),{},{icons:{main:Tt,mask:emptyCanonicalIcon()},prefix:Te,iconName:De,extra:jt,watchable:!0})),Ot=DOCUMENT.createElementNS("http://www.w3.org/2000/svg","svg");V==="::before"?Mt.insertBefore(Ot,Mt.firstChild):Mt.appendChild(Ot),Ot.outerHTML=St.map(function(It){return toHtml(It)}).join(`
|
|
556
556
|
`),Mt.removeAttribute(O),G()}).catch(X)}else G()}else G()})}function replace(Mt){return Promise.all([replaceForPosition(Mt,"::before"),replaceForPosition(Mt,"::after")])}function processable(Mt){return Mt.parentNode!==document.head&&!~TAGNAMES_TO_SKIP_FOR_PSEUDOELEMENTS.indexOf(Mt.tagName.toUpperCase())&&!Mt.getAttribute(DATA_FA_PSEUDO_ELEMENT)&&(!Mt.parentNode||Mt.parentNode.tagName!=="svg")}var hasPseudoElement=function(V){return!!V&&PSEUDO_ELEMENTS.some(function(O){return V.includes(O)})},parseCSSRuleForPseudos=function(V){if(!V)return[];var O=new Set,G=V.split(/,(?![^()]*\))/).map(function(fe){return fe.trim()});G=G.flatMap(function(fe){return fe.includes("(")?fe:fe.split(",").map(function(Me){return Me.trim()})});var X=_createForOfIteratorHelper(G),Y;try{for(X.s();!(Y=X.n()).done;){var ge=Y.value;if(hasPseudoElement(ge)){var we=PSEUDO_ELEMENTS.reduce(function(fe,Me){return fe.replace(Me,"")},ge);we!==""&&we!=="*"&&O.add(we)}}}catch(fe){X.e(fe)}finally{X.f()}return O};function searchPseudoElements(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(IS_DOM){var O;if(V)O=Mt;else if(config.searchPseudoElementsFullScan)O=Mt.querySelectorAll("*");else{var G=new Set,X=_createForOfIteratorHelper(document.styleSheets),Y;try{for(X.s();!(Y=X.n()).done;){var ge=Y.value;try{var we=_createForOfIteratorHelper(ge.cssRules),fe;try{for(we.s();!(fe=we.n()).done;){var Me=fe.value,ee=parseCSSRuleForPseudos(Me.selectorText),he=_createForOfIteratorHelper(ee),me;try{for(he.s();!(me=he.n()).done;){var Te=me.value;G.add(Te)}}catch(Pe){he.e(Pe)}finally{he.f()}}}catch(Pe){we.e(Pe)}finally{we.f()}}catch{config.searchPseudoElementsWarnings}}}catch(Pe){X.e(Pe)}finally{X.f()}if(!G.size)return;var Oe=Array.from(G).join(", ");try{O=Mt.querySelectorAll(Oe)}catch{}}return new Promise(function(Pe,Ne){var Le=toArray(O).filter(processable).map(replace),De=perf.begin("searchPseudoElements");disableObservation(),Promise.all(Le).then(function(){De(),enableObservation(),Pe()}).catch(function(){De(),enableObservation(),Ne()})})}}var PseudoElements={hooks:function(){return{mutationObserverCallbacks:function(O){return O.pseudoElementsCallback=searchPseudoElements,O}}},provides:function(V){V.pseudoElements2svg=function(O){var G=O.node,X=G===void 0?DOCUMENT:G;config.searchPseudoElements&&searchPseudoElements(X)}}},_unwatched=!1,MutationObserver$1={mixout:function(){return{dom:{unwatch:function(){disableObservation(),_unwatched=!0}}}},hooks:function(){return{bootstrap:function(){observe(chainHooks("mutationObserverCallbacks",{}))},noAuto:function(){disconnect()},watch:function(O){var G=O.observeMutationsRoot;_unwatched?enableObservation():observe(chainHooks("mutationObserverCallbacks",{observeMutationsRoot:G}))}}}},parseTransformString=function(V){var O={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return V.toLowerCase().split(" ").reduce(function(G,X){var Y=X.toLowerCase().split("-"),ge=Y[0],we=Y.slice(1).join("-");if(ge&&we==="h")return G.flipX=!0,G;if(ge&&we==="v")return G.flipY=!0,G;if(we=parseFloat(we),isNaN(we))return G;switch(ge){case"grow":G.size=G.size+we;break;case"shrink":G.size=G.size-we;break;case"left":G.x=G.x-we;break;case"right":G.x=G.x+we;break;case"up":G.y=G.y-we;break;case"down":G.y=G.y+we;break;case"rotate":G.rotate=G.rotate+we;break}return G},O)},PowerTransforms={mixout:function(){return{parse:{transform:function(O){return parseTransformString(O)}}}},hooks:function(){return{parseNodeAttributes:function(O,G){var X=G.getAttribute("data-fa-transform");return X&&(O.transform=parseTransformString(X)),O}}},provides:function(V){V.generateAbstractTransformGrouping=function(O){var G=O.main,X=O.transform,Y=O.containerWidth,ge=O.iconWidth,we={transform:"translate(".concat(Y/2," 256)")},fe="translate(".concat(X.x*32,", ").concat(X.y*32,") "),Me="scale(".concat(X.size/16*(X.flipX?-1:1),", ").concat(X.size/16*(X.flipY?-1:1),") "),ee="rotate(".concat(X.rotate," 0 0)"),he={transform:"".concat(fe," ").concat(Me," ").concat(ee)},me={transform:"translate(".concat(ge/2*-1," -256)")},Te={outer:we,inner:he,path:me};return{tag:"g",attributes:_objectSpread2$2({},Te.outer),children:[{tag:"g",attributes:_objectSpread2$2({},Te.inner),children:[{tag:G.icon.tag,children:G.icon.children,attributes:_objectSpread2$2(_objectSpread2$2({},G.icon.attributes),Te.path)}]}]}}}},ALL_SPACE={x:0,y:0,width:"100%",height:"100%"};function fillBlack(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Mt.attributes&&(Mt.attributes.fill||V)&&(Mt.attributes.fill="black"),Mt}function deGroup(Mt){return Mt.tag==="g"?Mt.children:[Mt]}var Masks={hooks:function(){return{parseNodeAttributes:function(O,G){var X=G.getAttribute("data-fa-mask"),Y=X?getCanonicalIcon(X.split(" ").map(function(ge){return ge.trim()})):emptyCanonicalIcon();return Y.prefix||(Y.prefix=getDefaultUsablePrefix()),O.mask=Y,O.maskId=G.getAttribute("data-fa-mask-id"),O}}},provides:function(V){V.generateAbstractMask=function(O){var G=O.children,X=O.attributes,Y=O.main,ge=O.mask,we=O.maskId,fe=O.transform,Me=Y.width,ee=Y.icon,he=ge.width,me=ge.icon,Te=transformForSvg({transform:fe,containerWidth:he,iconWidth:Me}),Oe={tag:"rect",attributes:_objectSpread2$2(_objectSpread2$2({},ALL_SPACE),{},{fill:"white"})},Pe=ee.children?{children:ee.children.map(fillBlack)}:{},Ne={tag:"g",attributes:_objectSpread2$2({},Te.inner),children:[fillBlack(_objectSpread2$2({tag:ee.tag,attributes:_objectSpread2$2(_objectSpread2$2({},ee.attributes),Te.path)},Pe))]},Le={tag:"g",attributes:_objectSpread2$2({},Te.outer),children:[Ne]},De="mask-".concat(we||nextUniqueId()),bt="clip-".concat(we||nextUniqueId()),wt={tag:"mask",attributes:_objectSpread2$2(_objectSpread2$2({},ALL_SPACE),{},{id:De,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[Oe,Le]},jt={tag:"defs",children:[{tag:"clipPath",attributes:{id:bt},children:deGroup(me)},wt]};return G.push(jt,{tag:"rect",attributes:_objectSpread2$2({fill:"currentColor","clip-path":"url(#".concat(bt,")"),mask:"url(#".concat(De,")")},ALL_SPACE)}),{children:G,attributes:X}}}},MissingIconIndicator={provides:function(V){var O=!1;WINDOW.matchMedia&&(O=WINDOW.matchMedia("(prefers-reduced-motion: reduce)").matches),V.missingIconAbstract=function(){var G=[],X={fill:"currentColor"},Y={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};G.push({tag:"path",attributes:_objectSpread2$2(_objectSpread2$2({},X),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var ge=_objectSpread2$2(_objectSpread2$2({},Y),{},{attributeName:"opacity"}),we={tag:"circle",attributes:_objectSpread2$2(_objectSpread2$2({},X),{},{cx:"256",cy:"364",r:"28"}),children:[]};return O||we.children.push({tag:"animate",attributes:_objectSpread2$2(_objectSpread2$2({},Y),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_objectSpread2$2(_objectSpread2$2({},ge),{},{values:"1;0;1;1;0;1;"})}),G.push(we),G.push({tag:"path",attributes:_objectSpread2$2(_objectSpread2$2({},X),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:O?[]:[{tag:"animate",attributes:_objectSpread2$2(_objectSpread2$2({},ge),{},{values:"1;0;0;0;0;1;"})}]}),O||G.push({tag:"path",attributes:_objectSpread2$2(_objectSpread2$2({},X),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_objectSpread2$2(_objectSpread2$2({},ge),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:G}}}},SvgSymbols={hooks:function(){return{parseNodeAttributes:function(O,G){var X=G.getAttribute("data-fa-symbol"),Y=X===null?!1:X===""?!0:X;return O.symbol=Y,O}}}},plugins=[InjectCSS,ReplaceElements,Layers,LayersCounter,LayersText,PseudoElements,MutationObserver$1,PowerTransforms,Masks,MissingIconIndicator,SvgSymbols];registerPlugins(plugins,{mixoutsTo:api});api.noAuto;var config$1=api.config;api.library;api.dom;var parse$1=api.parse;api.findIconDefinition;api.toHtml;var icon=api.icon;api.layer;var text=api.text;api.counter;function _arrayLikeToArray$1(Mt,V){(V==null||V>Mt.length)&&(V=Mt.length);for(var O=0,G=Array(V);O<V;O++)G[O]=Mt[O];return G}function _arrayWithoutHoles$1(Mt){if(Array.isArray(Mt))return _arrayLikeToArray$1(Mt)}function _defineProperty$1(Mt,V,O){return(V=_toPropertyKey$1(V))in Mt?Object.defineProperty(Mt,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):Mt[V]=O,Mt}function _iterableToArray$1(Mt){if(typeof Symbol<"u"&&Mt[Symbol.iterator]!=null||Mt["@@iterator"]!=null)return Array.from(Mt)}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
557
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys$1(Mt,V){var O=Object.keys(Mt);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Mt);V&&(G=G.filter(function(X){return Object.getOwnPropertyDescriptor(Mt,X).enumerable})),O.push.apply(O,G)}return O}function _objectSpread2$1(Mt){for(var V=1;V<arguments.length;V++){var O=arguments[V]!=null?arguments[V]:{};V%2?ownKeys$1(Object(O),!0).forEach(function(G){_defineProperty$1(Mt,G,O[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mt,Object.getOwnPropertyDescriptors(O)):ownKeys$1(Object(O)).forEach(function(G){Object.defineProperty(Mt,G,Object.getOwnPropertyDescriptor(O,G))})}return Mt}function _objectWithoutProperties$1(Mt,V){if(Mt==null)return{};var O,G,X=_objectWithoutPropertiesLoose$1(Mt,V);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(Mt);for(G=0;G<Y.length;G++)O=Y[G],V.indexOf(O)===-1&&{}.propertyIsEnumerable.call(Mt,O)&&(X[O]=Mt[O])}return X}function _objectWithoutPropertiesLoose$1(Mt,V){if(Mt==null)return{};var O={};for(var G in Mt)if({}.hasOwnProperty.call(Mt,G)){if(V.indexOf(G)!==-1)continue;O[G]=Mt[G]}return O}function _toConsumableArray$1(Mt){return _arrayWithoutHoles$1(Mt)||_iterableToArray$1(Mt)||_unsupportedIterableToArray$1(Mt)||_nonIterableSpread$1()}function _toPrimitive$1(Mt,V){if(typeof Mt!="object"||!Mt)return Mt;var O=Mt[Symbol.toPrimitive];if(O!==void 0){var G=O.call(Mt,V);if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(Mt)}function _toPropertyKey$1(Mt){var V=_toPrimitive$1(Mt,"string");return typeof V=="symbol"?V:V+""}function _typeof$1(Mt){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_typeof$1(Mt)}function _unsupportedIterableToArray$1(Mt,V){if(Mt){if(typeof Mt=="string")return _arrayLikeToArray$1(Mt,V);var O={}.toString.call(Mt).slice(8,-1);return O==="Object"&&Mt.constructor&&(O=Mt.constructor.name),O==="Map"||O==="Set"?Array.from(Mt):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?_arrayLikeToArray$1(Mt,V):void 0}}function objectWithKey$1(Mt,V){return Array.isArray(V)&&V.length>0||!Array.isArray(V)&&V?_defineProperty$1({},Mt,V):{}}function classList$1(Mt){var V,O=(V={"fa-spin":Mt.spin,"fa-pulse":Mt.pulse,"fa-fw":Mt.fixedWidth,"fa-border":Mt.border,"fa-li":Mt.listItem,"fa-inverse":Mt.inverse,"fa-flip":Mt.flip===!0,"fa-flip-horizontal":Mt.flip==="horizontal"||Mt.flip==="both","fa-flip-vertical":Mt.flip==="vertical"||Mt.flip==="both"},_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(V,"fa-".concat(Mt.size),Mt.size!==null),"fa-rotate-".concat(Mt.rotation),Mt.rotation!==null),"fa-rotate-by",Mt.rotateBy),"fa-pull-".concat(Mt.pull),Mt.pull!==null),"fa-swap-opacity",Mt.swapOpacity),"fa-bounce",Mt.bounce),"fa-shake",Mt.shake),"fa-beat",Mt.beat),"fa-fade",Mt.fade),"fa-beat-fade",Mt.beatFade),_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(V,"fa-flash",Mt.flash),"fa-spin-pulse",Mt.spinPulse),"fa-spin-reverse",Mt.spinReverse),"fa-width-auto",Mt.widthAuto));return Object.keys(O).map(function(G){return O[G]?G:null}).filter(function(G){return G})}var commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},humps$1$1={exports:{}};(function(Mt){(function(V){var O=function(Le,De,bt){if(!Me(De)||he(De)||me(De)||Te(De)||fe(De))return De;var wt,jt=0,Tt=0;if(ee(De))for(wt=[],Tt=De.length;jt<Tt;jt++)wt.push(O(Le,De[jt],bt));else{wt={};for(var St in De)Object.prototype.hasOwnProperty.call(De,St)&&(wt[Le(St,bt)]=O(Le,De[St],bt))}return wt},G=function(Le,De){De=De||{};var bt=De.separator||"_",wt=De.split||/(?=[A-Z])/;return Le.split(wt).join(bt)},X=function(Le){return Oe(Le)?Le:(Le=Le.replace(/[\-_\s]+(.)?/g,function(De,bt){return bt?bt.toUpperCase():""}),Le.substr(0,1).toLowerCase()+Le.substr(1))},Y=function(Le){var De=X(Le);return De.substr(0,1).toUpperCase()+De.substr(1)},ge=function(Le,De){return G(Le,De).toLowerCase()},we=Object.prototype.toString,fe=function(Le){return typeof Le=="function"},Me=function(Le){return Le===Object(Le)},ee=function(Le){return we.call(Le)=="[object Array]"},he=function(Le){return we.call(Le)=="[object Date]"},me=function(Le){return we.call(Le)=="[object RegExp]"},Te=function(Le){return we.call(Le)=="[object Boolean]"},Oe=function(Le){return Le=Le-0,Le===Le},Pe=function(Le,De){var bt=De&&"process"in De?De.process:De;return typeof bt!="function"?Le:function(wt,jt){return bt(wt,Le,jt)}},Ne={camelize:X,decamelize:ge,pascalize:Y,depascalize:ge,camelizeKeys:function(Le,De){return O(Pe(X,De),Le)},decamelizeKeys:function(Le,De){return O(Pe(ge,De),Le,De)},pascalizeKeys:function(Le,De){return O(Pe(Y,De),Le)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};Mt.exports?Mt.exports=Ne:V.humps=Ne})(commonjsGlobal$2)})(humps$1$1);var humps$2=humps$1$1.exports,_excluded$1=["class","style"];function styleToObject$1(Mt){return Mt.split(";").map(function(V){return V.trim()}).filter(function(V){return V}).reduce(function(V,O){var G=O.indexOf(":"),X=humps$2.camelize(O.slice(0,G)),Y=O.slice(G+1).trim();return V[X]=Y,V},{})}function classToObject$1(Mt){return Mt.split(/\s+/).reduce(function(V,O){return V[O]=!0,V},{})}function convert$1(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof Mt=="string")return Mt;var G=(Mt.children||[]).map(function(fe){return convert$1(fe)}),X=Object.keys(Mt.attributes||{}).reduce(function(fe,Me){var ee=Mt.attributes[Me];switch(Me){case"class":fe.class=classToObject$1(ee);break;case"style":fe.style=styleToObject$1(ee);break;default:fe.attrs[Me]=ee}return fe},{attrs:{},class:{},style:{}});O.class;var Y=O.style,ge=Y===void 0?{}:Y,we=_objectWithoutProperties$1(O,_excluded$1);return vue.h(Mt.tag,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},V),{},{class:X.class,style:_objectSpread2$1(_objectSpread2$1({},X.style),ge)},X.attrs),we),G)}var PRODUCTION$1=!1;try{PRODUCTION$1=process.env.NODE_ENV==="production"}catch{}function log$1(){if(!PRODUCTION$1&&console&&typeof console.error=="function"){var Mt;(Mt=console).error.apply(Mt,arguments)}}function normalizeIconArgs$1(Mt){if(Mt&&_typeof$1(Mt)==="object"&&Mt.prefix&&Mt.iconName&&Mt.icon)return Mt;if(parse$1.icon)return parse$1.icon(Mt);if(Mt===null)return null;if(_typeof$1(Mt)==="object"&&Mt.prefix&&Mt.iconName)return Mt;if(Array.isArray(Mt)&&Mt.length===2)return{prefix:Mt[0],iconName:Mt[1]};if(typeof Mt=="string")return{prefix:"fas",iconName:Mt}}var FontAwesomeIcon$1=vue.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(V){return[!0,!1,"horizontal","vertical","both"].indexOf(V)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(V){return["right","left"].indexOf(V)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(V){return[90,180,270].indexOf(Number.parseInt(V,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(V){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(V)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(V,O){var G=O.attrs,X=vue.computed(function(){return normalizeIconArgs$1(V.icon)}),Y=vue.computed(function(){return objectWithKey$1("classes",classList$1(V))}),ge=vue.computed(function(){return objectWithKey$1("transform",typeof V.transform=="string"?parse$1.transform(V.transform):V.transform)}),we=vue.computed(function(){return objectWithKey$1("mask",normalizeIconArgs$1(V.mask))}),fe=vue.computed(function(){var ee=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},Y.value),ge.value),we.value),{},{symbol:V.symbol,maskId:V.maskId});return ee.title=V.title,ee.titleId=V.titleId,icon(X.value,ee)});vue.watch(fe,function(ee){if(!ee)return log$1("Could not find one or more icon(s)",X.value,we.value)},{immediate:!0});var Me=vue.computed(function(){return fe.value?convert$1(fe.value.abstract[0],{},G):null});return function(){return Me.value}}});vue.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(V,O){var G=O.slots,X=config$1.familyPrefix,Y=vue.computed(function(){return["".concat(X,"-layers")].concat(_toConsumableArray$1(V.fixedWidth?["".concat(X,"-fw")]:[]))});return function(){return vue.h("div",{class:Y.value},G.default?G.default():[])}}});vue.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(V){return["bottom-left","bottom-right","top-left","top-right"].indexOf(V)>-1}}},setup:function(V,O){var G=O.attrs,X=config$1.familyPrefix,Y=vue.computed(function(){return objectWithKey$1("classes",[].concat(_toConsumableArray$1(V.counter?["".concat(X,"-layers-counter")]:[]),_toConsumableArray$1(V.position?["".concat(X,"-layers-").concat(V.position)]:[])))}),ge=vue.computed(function(){return objectWithKey$1("transform",typeof V.transform=="string"?parse$1.transform(V.transform):V.transform)}),we=vue.computed(function(){var Me=text(V.value.toString(),_objectSpread2$1(_objectSpread2$1({},ge.value),Y.value)),ee=Me.abstract;return V.counter&&(ee[0].attributes.class=ee[0].attributes.class.replace("fa-layers-text","")),ee[0]}),fe=vue.computed(function(){return convert$1(we.value,{},G)});return function(){return fe.value}}});function ve$1(...Mt){return Mt.filter(Boolean).join(" ")}vue.ref("");vue.reactive({validateOnBlur:!1,validateOnInput:!1,validateOnChange:!1,validateOnMount:!1,required:!1,isValid:!0,errors:[]});const $=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},be$1=["innerHTML"],Be=["src","alt"],Ce=vue.defineComponent({__name:"Icon",props:{className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{},variant:{default:"default"},size:{default:"small"},inline:{type:Boolean},shadow:{type:Boolean},decorative:{type:Boolean},ariaLabel:{default:void 0}},setup(Mt){const V=Mt,O=vue.computed(()=>ve$1("phila-icon",V.size&&`phila-icon--${V.size}`,V.inline&&"phila-icon--inline",V.variant&&V.variant!=="default"&&`phila-icon--${V.variant}`,V.shadow&&"phila-icon--shadow",V.className)),G=vue.computed(()=>V.decorative?{"aria-hidden":!0}:{"aria-label":V.ariaLabel,role:"img"});return(X,Y)=>(vue.openBlock(),vue.createElementBlock("span",vue.mergeProps({class:O.value},G.value),[V.iconDefinition?(vue.openBlock(),vue.createBlock(vue.unref(FontAwesomeIcon$1),{key:0,icon:V.iconDefinition},null,8,["icon"])):V.iconClass?(vue.openBlock(),vue.createElementBlock("i",{key:1,class:vue.normalizeClass(`fa fa-${V.iconClass}`)},null,2)):V.svgRaw?(vue.openBlock(),vue.createElementBlock("span",{key:2,class:"phila-icon__svg",innerHTML:V.svgRaw},null,8,be$1)):V.src?(vue.openBlock(),vue.createElementBlock("img",{key:3,src:V.src,alt:V.decorative?"":V.ariaLabel||"Icon"},null,8,Be)):vue.createCommentVNode("",!0)],16))}}),F$2=$(Ce,[["__scopeId","data-v-1fe4be50"]]),ke={key:1},Re=vue.defineComponent({__name:"ActionContent",props:{iconRight:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},inline:{type:Boolean},text:{default:void 0},size:{default:void 0},shadow:{type:Boolean},iconSize:{default:void 0},iconDefinition:{},iconClass:{},src:{},svgRaw:{},variant:{}},setup(Mt){const V=Mt,O=vue.computed(()=>V.iconDefinition||V.iconClass||V.src||V.svgRaw),G=Y=>{if(Y.iconOnly)switch(Y.size){case"small":return"extra-small";case"extra-small":return"xxsmall";default:return Y.size||"medium"}else switch(Y.size){case"small":case"extra-small":return"xxsmall";default:return"extra-small"}},X=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,svgRaw:V.svgRaw,size:V.iconSize??G(V),decorative:!0,class:"icon",inline:V.inline??!V.iconOnly,shadow:V.shadow}));return(Y,ge)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[O.value&&!V.iconRight?(vue.openBlock(),vue.createBlock(F$2,vue.normalizeProps(vue.mergeProps({key:0},X.value)),null,16)):vue.createCommentVNode("",!0),V.iconOnly?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",ke,[vue.renderSlot(Y.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])])),O.value&&V.iconRight?(vue.openBlock(),vue.createBlock(F$2,vue.normalizeProps(vue.mergeProps({key:2},X.value)),null,16)):vue.createCommentVNode("",!0)],64))}}),P$1=Mt=>"to"in Mt&&Mt.to!==void 0;function Ie(){const Mt=vue.inject("router",null),V=vue.computed(()=>Mt!==null);return{router:Mt,hasRouter:V}}const Ee=vue.defineComponent({__name:"BaseLink",props:{to:{},href:{},target:{},rel:{},disabled:{type:Boolean},ariaLabel:{},className:{}},setup(Mt){const V=Mt,{hasRouter:O}=Ie(),G=vue.computed(()=>P$1(V)&&O.value?vue.resolveComponent("RouterLink"):"a"),X=vue.computed(()=>P$1(V)?{to:V.disabled?void 0:V.to,...V.disabled&&{"aria-disabled":"true"},...V.ariaLabel&&{"aria-label":V.ariaLabel}}:{href:V.disabled?void 0:V.href,...V.target&&{target:V.target},...V.rel&&{rel:V.rel},...V.disabled&&{"aria-disabled":"true"},...V.ariaLabel&&{"aria-label":V.ariaLabel}});return(Y,ge)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(G.value),vue.mergeProps({class:Mt.className},X.value),{default:vue.withCtx(()=>[vue.renderSlot(Y.$slots,"default")]),_:3},16,["class"]))}});vue.ref({});vue.ref();vue.ref(null);var Ue={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},ze=Ue;const je=["disabled"],qe=vue.defineComponent({inheritAttrs:!1,__name:"PhlButton",props:{href:{},to:{},target:{},rel:{},disabled:{type:Boolean,default:!1},clickTarget:{},variant:{default:"primary"},size:{default:"medium"},iconOnly:{type:Boolean,default:!1},iconRight:{type:Boolean},text:{},className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{}},setup(Mt){const V=Mt,O=ge=>"href"in ge&&ge.href!==void 0||"to"in ge&&ge.to!==void 0,G=vue.computed(()=>ve$1("phila-button",`phila-button--${V.variant}`,V.size&&`is-${V.size}`,V.iconOnly&&"icon-button",V.iconOnly&&V.variant==="standard"&&"icon-button--standard",V.className)),X=vue.computed(()=>O(V)?"to"in V&&V.to!==void 0?{to:V.to,disabled:V.disabled,className:G.value}:{href:V.href,target:V.target,rel:V.rel,disabled:V.disabled,className:G.value}:{}),Y=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,iconRight:V.iconRight,iconOnly:V.iconOnly,text:V.text,size:V.size}));return(ge,we)=>O(V)?(vue.openBlock(),vue.createBlock(vue.unref(Ee),vue.mergeProps({key:0},{...X.value,...ge.$attrs},{role:"button"}),{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)]),_:3},16)):(vue.openBlock(),vue.createElementBlock("button",vue.mergeProps({key:1,type:"button",disabled:V.disabled,class:G.value},ge.$attrs),[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)],16,je))}});var He={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Ke=He,Ge={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},$e=Ge;function P(Mt){return typeof Mt=="string"||Mt instanceof String}function ve(Mt){var V;return typeof Mt=="object"&&Mt!=null&&(Mt==null||(V=Mt.constructor)==null?void 0:V.name)==="Object"}function Ae(Mt,V){return Array.isArray(V)?Ae(Mt,(O,G)=>V.includes(G)):Object.entries(Mt).reduce((O,G)=>{let[X,Y]=G;return V(Y,X)&&(O[X]=Y),O},{})}const d={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Ye(Mt){switch(Mt){case d.LEFT:return d.FORCE_LEFT;case d.RIGHT:return d.FORCE_RIGHT;default:return Mt}}function oe$1(Mt){return Mt.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function te(Mt,V){if(V===Mt)return!0;const O=Array.isArray(V),G=Array.isArray(Mt);let X;if(O&&G){if(V.length!=Mt.length)return!1;for(X=0;X<V.length;X++)if(!te(V[X],Mt[X]))return!1;return!0}if(O!=G)return!1;if(V&&Mt&&typeof V=="object"&&typeof Mt=="object"){const Y=V instanceof Date,ge=Mt instanceof Date;if(Y&&ge)return V.getTime()==Mt.getTime();if(Y!=ge)return!1;const we=V instanceof RegExp,fe=Mt instanceof RegExp;if(we&&fe)return V.toString()==Mt.toString();if(we!=fe)return!1;const Me=Object.keys(V);for(X=0;X<Me.length;X++)if(!Object.prototype.hasOwnProperty.call(Mt,Me[X]))return!1;for(X=0;X<Me.length;X++)if(!te(Mt[Me[X]],V[Me[X]]))return!1;return!0}else if(V&&Mt&&typeof V=="function"&&typeof Mt=="function")return V.toString()===Mt.toString();return!1}class Ze{constructor(V){for(Object.assign(this,V);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?d.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?d.RIGHT:d.LEFT}}function p(Mt,V){return new p.InputMask(Mt,V)}function Fe(Mt){if(Mt==null)throw new Error("mask property should be defined");return Mt instanceof RegExp?p.MaskedRegExp:P(Mt)?p.MaskedPattern:Mt===Date?p.MaskedDate:Mt===Number?p.MaskedNumber:Array.isArray(Mt)||Mt===Array?p.MaskedDynamic:p.Masked&&Mt.prototype instanceof p.Masked?Mt:p.Masked&&Mt instanceof p.Masked?Mt.constructor:Mt instanceof Function?p.MaskedFunction:p.Masked}function Z(Mt){if(!Mt)throw new Error("Options in not defined");if(p.Masked){if(Mt.prototype instanceof p.Masked)return{mask:Mt};const{mask:V=void 0,...O}=Mt instanceof p.Masked?{mask:Mt}:ve(Mt)&&Mt.mask instanceof p.Masked?Mt:{};if(V){const G=V.mask;return{...Ae(V,(X,Y)=>!Y.startsWith("_")),mask:V.constructor,_mask:G,...O}}}return ve(Mt)?{...Mt}:{mask:Mt}}function M(Mt){if(p.Masked&&Mt instanceof p.Masked)return Mt;const V=Z(Mt),O=Fe(V.mask);if(!O)throw new Error("Masked class is not found for provided mask "+V.mask+", appropriate module needs to be imported manually before creating mask.");return V.mask===O&&delete V.mask,V._mask&&(V.mask=V._mask,delete V._mask),new O(V)}p.createMask=M;class pe{get selectionStart(){let V;try{V=this._unsafeSelectionStart}catch{}return V??this.value.length}get selectionEnd(){let V;try{V=this._unsafeSelectionEnd}catch{}return V??this.value.length}select(V,O){if(!(V==null||O==null||V===this.selectionStart&&O===this.selectionEnd))try{this._unsafeSelect(V,O)}catch{}}get isActive(){return!1}}p.MaskElement=pe;const _e=90,Xe=89;let ie$1=class extends pe{constructor(V){super(),this.input=V,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var V,O,G;return(V=(O=(G=this.input).getRootNode)==null?void 0:O.call(G))!=null?V:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(V){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",V.drop),this.input.addEventListener("click",V.click),this.input.addEventListener("focus",V.focus),this.input.addEventListener("blur",V.commit),this._handlers=V}_onKeydown(V){if(this._handlers.redo&&(V.keyCode===_e&&V.shiftKey&&(V.metaKey||V.ctrlKey)||V.keyCode===Xe&&V.ctrlKey))return V.preventDefault(),this._handlers.redo(V);if(this._handlers.undo&&V.keyCode===_e&&(V.metaKey||V.ctrlKey))return V.preventDefault(),this._handlers.undo(V);V.isComposing||this._handlers.selectionChange(V)}_onBeforeinput(V){if(V.inputType==="historyUndo"&&this._handlers.undo)return V.preventDefault(),this._handlers.undo(V);if(V.inputType==="historyRedo"&&this._handlers.redo)return V.preventDefault(),this._handlers.redo(V)}_onCompositionEnd(V){this._handlers.input(V)}_onInput(V){V.isComposing||this._handlers.input(V)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};p.HTMLMaskElement=ie$1;class We extends ie$1{constructor(V){super(V),this.input=V}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(V,O){this.input.setSelectionRange(V,O)}get value(){return this.input.value}set value(V){this.input.value=V}}p.HTMLMaskElement=ie$1;class xe extends ie$1{get _unsafeSelectionStart(){const V=this.rootElement,O=V.getSelection&&V.getSelection(),G=O&&O.anchorOffset,X=O&&O.focusOffset;return X==null||G==null||G<X?G:X}get _unsafeSelectionEnd(){const V=this.rootElement,O=V.getSelection&&V.getSelection(),G=O&&O.anchorOffset,X=O&&O.focusOffset;return X==null||G==null||G>X?G:X}_unsafeSelect(V,O){if(!this.rootElement.createRange)return;const G=this.rootElement.createRange();G.setStart(this.input.firstChild||this.input,V),G.setEnd(this.input.lastChild||this.input,O);const X=this.rootElement,Y=X.getSelection&&X.getSelection();Y&&(Y.removeAllRanges(),Y.addRange(G))}get value(){return this.input.textContent||""}set value(V){this.input.textContent=V}}p.HTMLContenteditableMaskElement=xe;let ae$1=class DT{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(V){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(V),this.states.length>DT.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(V){return this.currentIndex=Math.min(Math.max(this.currentIndex+V,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};ae$1.MAX_LENGTH=100;class Je{constructor(V,O){this.el=V instanceof pe?V:V.isContentEditable&&V.tagName!=="INPUT"&&V.tagName!=="TEXTAREA"?new xe(V):new We(V),this.masked=M(O),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new ae$1,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(V){var O;return V==null||((O=this.masked)==null?void 0:O.maskEquals(V))}get mask(){return this.masked.mask}set mask(V){if(this.maskEquals(V))return;if(!(V instanceof p.Masked)&&this.masked.constructor===Fe(V)){this.masked.updateOptions({mask:V});return}const O=V instanceof p.Masked?V:M({mask:V});O.unmaskedValue=this.masked.unmaskedValue,this.masked=O}get value(){return this._value}set value(V){this.value!==V&&(this.masked.value=V,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(V){this.unmaskedValue!==V&&(this.masked.unmaskedValue=V,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(V){this.rawInputValue!==V&&(this.masked.rawInputValue=V,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(V){this.masked.typedValueEquals(V)||(this.masked.typedValue=V,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(V,O){const G=this._listeners[V];G&&G.forEach(X=>X(O))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(V){!this.el||!this.el.isActive||(this.el.select(V,V),this._saveSelection())}_saveSelection(){this.displayValue,this.el.value,this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(V){const O=this.masked.unmaskedValue,G=this.masked.value,X=this.masked.rawInputValue,Y=this.displayValue,ge=this.unmaskedValue!==O||this.value!==G||this._rawInputValue!==X;this._unmaskedValue=O,this._value=G,this._rawInputValue=X,this.el.value!==Y&&(this.el.value=Y),V==="auto"?this.alignCursor():V!=null&&(this.cursorPos=V),ge&&this._fireChangeEvents(),!this._historyChanging&&(ge||this.history.isEmpty)&&this.history.push({unmaskedValue:O,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(V){const{mask:O,...G}=V,X=!this.maskEquals(O),Y=this.masked.optionsIsChanged(G);X&&(this.mask=O),Y&&this.masked.updateOptions(G),(X||Y)&&this.updateControl()}updateCursor(V){V!=null&&(this.cursorPos=V,this._delayUpdateCursor(V))}_delayUpdateCursor(V){this._abortUpdateCursor(),this._changingCursorPos=V,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,d.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(V,O){return this._listeners[V]||(this._listeners[V]=[]),this._listeners[V].push(O),this}off(V,O){if(!this._listeners[V])return this;if(!O)return delete this._listeners[V],this;const G=this._listeners[V].indexOf(O);return G>=0&&this._listeners[V].splice(G,1),this}_onInput(V){this._inputEvent=V,this._abortUpdateCursor();const O=new Ze({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),G=this.masked.rawInputValue,X=this.masked.splice(O.startChangePos,O.removed.length,O.inserted,O.removeDirection,{input:!0,raw:!0}).offset,Y=G===this.masked.rawInputValue?O.removeDirection:d.NONE;let ge=this.masked.nearestInputPos(O.startChangePos+X,Y);Y!==d.NONE&&(ge=this.masked.nearestInputPos(ge,d.NONE)),this.updateControl(ge),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(V){V.preventDefault(),V.stopPropagation()}_onFocus(V){this.alignCursorFriendly()}_onClick(V){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(V){V&&(this._historyChanging=!0,this.unmaskedValue=V.unmaskedValue,this.el.select(V.selection.start,V.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}p.InputMask=Je;class g{static normalize(V){return Array.isArray(V)?V:[V,new g]}constructor(V){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},V)}aggregate(V){return this.inserted+=V.inserted,this.rawInserted+=V.rawInserted,this.tailShift+=V.tailShift,this.skip=this.skip||V.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(V){return this.inserted===V.inserted&&this.tailShift===V.tailShift&&this.rawInserted===V.rawInserted&&this.skip===V.skip}}p.ChangeDetails=g;class D{constructor(V,O,G){V===void 0&&(V=""),O===void 0&&(O=0),this.value=V,this.from=O,this.stop=G}toString(){return this.value}extend(V){this.value+=String(V)}appendTo(V){return V.append(this.toString(),{tail:!0}).aggregate(V._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(V){Object.assign(this,V)}unshift(V){if(!this.value.length||V!=null&&this.from>=V)return"";const O=this.value[0];return this.value=this.value.slice(1),O}shift(){if(!this.value.length)return"";const V=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),V}}let F$1=class j1{constructor(V){this._value="",this._update({...j1.DEFAULTS,...V}),this._initialized=!0}updateOptions(V){this.optionsIsChanged(V)&&this.withValueRefresh(this._update.bind(this,V))}_update(V){Object.assign(this,V)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(V){this._value=V._value}reset(){this._value=""}get value(){return this._value}set value(V){this.resolve(V,{input:!0})}resolve(V,O){O===void 0&&(O={input:!0}),this.reset(),this.append(V,O,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(V){this.resolve(V,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(V){this.format?this.value=this.format(V,this):this.unmaskedValue=String(V)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(V){this.resolve(V,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(V,O){return V}totalInputPositions(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),Math.min(this.displayValue.length,O-V)}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),this.displayValue.slice(V,O)}extractTail(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),new D(this.extractInput(V,O),V)}appendTail(V){return P(V)&&(V=new D(String(V))),V.appendTo(this)}_appendCharRaw(V,O){return V?(this._value+=V,new g({inserted:V,rawInserted:V})):new g}_appendChar(V,O,G){O===void 0&&(O={});const X=this.state;let Y;if([V,Y]=this.doPrepareChar(V,O),V&&(Y=Y.aggregate(this._appendCharRaw(V,O)),!Y.rawInserted&&this.autofix==="pad")){const ge=this.state;this.state=X;let we=this.pad(O);const fe=this._appendCharRaw(V,O);we=we.aggregate(fe),fe.rawInserted||we.equals(Y)?Y=we:this.state=ge}if(Y.inserted){let ge,we=this.doValidate(O)!==!1;if(we&&G!=null){const fe=this.state;if(this.overwrite===!0){ge=G.state;for(let ee=0;ee<Y.rawInserted.length;++ee)G.unshift(this.displayValue.length-Y.tailShift)}let Me=this.appendTail(G);if(we=Me.rawInserted.length===G.toString().length,!(we&&Me.inserted)&&this.overwrite==="shift"){this.state=fe,ge=G.state;for(let ee=0;ee<Y.rawInserted.length;++ee)G.shift();Me=this.appendTail(G),we=Me.rawInserted.length===G.toString().length}we&&Me.inserted&&(this.state=fe)}we||(Y=new g,this.state=X,G&&ge&&(G.state=ge))}return Y}_appendPlaceholder(){return new g}_appendEager(){return new g}append(V,O,G){if(!P(V))throw new Error("value should be string");const X=P(G)?new D(String(G)):G;O!=null&&O.tail&&(O._beforeTailState=this.state);let Y;[V,Y]=this.doPrepare(V,O);for(let ge=0;ge<V.length;++ge){const we=this._appendChar(V[ge],O,X);if(!we.rawInserted&&!this.doSkipInvalid(V[ge],O,X))break;Y.aggregate(we)}return(this.eager===!0||this.eager==="append")&&O!=null&&O.input&&V&&Y.aggregate(this._appendEager()),X!=null&&(Y.tailShift+=this.appendTail(X).tailShift),Y}remove(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),this._value=this.displayValue.slice(0,V)+this.displayValue.slice(O),new g}withValueRefresh(V){if(this._refreshing||!this._initialized)return V();this._refreshing=!0;const O=this.rawInputValue,G=this.value,X=V();return this.rawInputValue=O,this.value&&this.value!==G&&G.indexOf(this.value)===0&&(this.append(G.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,X}runIsolated(V){if(this._isolated||!this._initialized)return V(this);this._isolated=!0;const O=this.state,G=V(this);return this.state=O,delete this._isolated,G}doSkipInvalid(V,O,G){return!!this.skipInvalid}doPrepare(V,O){return O===void 0&&(O={}),g.normalize(this.prepare?this.prepare(V,this,O):V)}doPrepareChar(V,O){return O===void 0&&(O={}),g.normalize(this.prepareChar?this.prepareChar(V,this,O):V)}doValidate(V){return(!this.validate||this.validate(this.value,this,V))&&(!this.parent||this.parent.doValidate(V))}doCommit(){this.commit&&this.commit(this.value,this)}splice(V,O,G,X,Y){G===void 0&&(G=""),X===void 0&&(X=d.NONE),Y===void 0&&(Y={input:!0});const ge=V+O,we=this.extractTail(ge),fe=this.eager===!0||this.eager==="remove";let Me;fe&&(X=Ye(X),Me=this.extractInput(0,ge,{raw:!0}));let ee=V;const he=new g;if(X!==d.NONE&&(ee=this.nearestInputPos(V,O>1&&V!==0&&!fe?d.NONE:X),he.tailShift=ee-V),he.aggregate(this.remove(ee)),fe&&X!==d.NONE&&Me===this.rawInputValue)if(X===d.FORCE_LEFT){let me;for(;Me===this.rawInputValue&&(me=this.displayValue.length);)he.aggregate(new g({tailShift:-1})).aggregate(this.remove(me-1))}else X===d.FORCE_RIGHT&&we.unshift();return he.aggregate(this.append(G,Y,we))}maskEquals(V){return this.mask===V}optionsIsChanged(V){return!te(this,V)}typedValueEquals(V){const O=this.typedValue;return V===O||j1.EMPTY_VALUES.includes(V)&&j1.EMPTY_VALUES.includes(O)||(this.format?this.format(V,this)===this.format(this.typedValue,this):!1)}pad(V){return new g}};F$1.DEFAULTS={skipInvalid:!0};F$1.EMPTY_VALUES=[void 0,null,""];p.Masked=F$1;class L{constructor(V,O){V===void 0&&(V=[]),O===void 0&&(O=0),this.chunks=V,this.from=O}toString(){return this.chunks.map(String).join("")}extend(V){if(!String(V))return;V=P(V)?new D(String(V)):V;const O=this.chunks[this.chunks.length-1],G=O&&(O.stop===V.stop||V.stop==null)&&V.from===O.from+O.toString().length;if(V instanceof D)G?O.extend(V.toString()):this.chunks.push(V);else if(V instanceof L){if(V.stop==null){let X;for(;V.chunks.length&&V.chunks[0].stop==null;)X=V.chunks.shift(),X.from+=V.from,this.extend(X)}V.toString()&&(V.stop=V.blockIndex,this.chunks.push(V))}}appendTo(V){if(!(V instanceof p.MaskedPattern))return new D(this.toString()).appendTo(V);const O=new g;for(let G=0;G<this.chunks.length;++G){const X=this.chunks[G],Y=V._mapPosToBlock(V.displayValue.length),ge=X.stop;let we;if(ge!=null&&(!Y||Y.index<=ge)&&((X instanceof L||V._stops.indexOf(ge)>=0)&&O.aggregate(V._appendPlaceholder(ge)),we=X instanceof L&&V._blocks[ge]),we){const fe=we.appendTail(X);O.aggregate(fe);const Me=X.toString().slice(fe.rawInserted.length);Me&&O.aggregate(V.append(Me,{tail:!0}))}else O.aggregate(V.append(X.toString(),{tail:!0}))}return O}get state(){return{chunks:this.chunks.map(V=>V.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(V){const{chunks:O,...G}=V;Object.assign(this,G),this.chunks=O.map(X=>{const Y="chunks"in X?new L:new D;return Y.state=X,Y})}unshift(V){if(!this.chunks.length||V!=null&&this.from>=V)return"";const O=V!=null?V-this.from:V;let G=0;for(;G<this.chunks.length;){const X=this.chunks[G],Y=X.unshift(O);if(X.toString()){if(!Y)break;++G}else this.chunks.splice(G,1);if(Y)return Y}return""}shift(){if(!this.chunks.length)return"";let V=this.chunks.length-1;for(;0<=V;){const O=this.chunks[V],G=O.shift();if(O.toString()){if(!G)break;--V}else this.chunks.splice(V,1);if(G)return G}return""}}class Qe{constructor(V,O){this.masked=V,this._log=[];const{offset:G,index:X}=V._mapPosToBlock(O)||(O<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=G,this.index=X,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(V){Object.assign(this,V)}pushState(){this._log.push(this.state)}popState(){const V=this._log.pop();return V&&(this.state=V),V}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(V){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((O=this.block)==null?void 0:O.displayValue.length)||0){var O;if(V())return this.ok=!0}return this.ok=!1}_pushRight(V){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(V())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,d.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,d.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,d.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,d.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,d.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,d.NONE),!0})}}class ye{constructor(V){Object.assign(this,V),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(V,O){return V===void 0&&(V=0),O===void 0&&(O=this._value.length),this._value=this._value.slice(0,V)+this._value.slice(O),this._value||(this._isRawInput=!1),new g}nearestInputPos(V,O){O===void 0&&(O=d.NONE);const G=0,X=this._value.length;switch(O){case d.LEFT:case d.FORCE_LEFT:return G;case d.NONE:case d.RIGHT:case d.FORCE_RIGHT:default:return X}}totalInputPositions(V,O){return V===void 0&&(V=0),O===void 0&&(O=this._value.length),this._isRawInput?O-V:0}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this._value.length),G===void 0&&(G={}),G.raw&&this._isRawInput&&this._value.slice(V,O)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(V,O){if(O===void 0&&(O={}),this.isFilled)return new g;const G=this.eager===!0||this.eager==="append",X=this.char===V&&(this.isUnmasking||O.input||O.raw)&&(!O.raw||!G)&&!O.tail,Y=new g({inserted:this.char,rawInserted:X?this.char:""});return this._value=this.char,this._isRawInput=X&&(O.raw||O.input),Y}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const V=new g;return this.isFilled||(this._value=V.inserted=this.char),V}extractTail(){return new D("")}appendTail(V){return P(V)&&(V=new D(String(V))),V.appendTo(this)}append(V,O,G){const X=this._appendChar(V[0],O);return G!=null&&(X.tailShift+=this.appendTail(G).tailShift),X}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(V){this._value=V._value,this._isRawInput=!!V._rawInputValue}pad(V){return this._appendPlaceholder()}}let se$1=class{constructor(V){const{parent:O,isOptional:G,placeholderChar:X,displayChar:Y,lazy:ge,eager:we,...fe}=V;this.masked=M(fe),Object.assign(this,{parent:O,isOptional:G,placeholderChar:X,displayChar:Y,lazy:ge,eager:we})}reset(){this.isFilled=!1,this.masked.reset()}remove(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.value.length),V===0&&O>=1?(this.isFilled=!1,this.masked.remove(V,O)):new g}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(V,O){if(O===void 0&&(O={}),this.isFilled)return new g;const G=this.masked.state;let X=this.masked._appendChar(V,this.currentMaskFlags(O));return X.inserted&&this.doValidate(O)===!1&&(X=new g,this.masked.state=G),!X.inserted&&!this.isOptional&&!this.lazy&&!O.input&&(X.inserted=this.placeholderChar),X.skip=!X.inserted&&!this.isOptional,this.isFilled=!!X.inserted,X}append(V,O,G){return this.masked.append(V,this.currentMaskFlags(O),G)}_appendPlaceholder(){return this.isFilled||this.isOptional?new g:(this.isFilled=!0,new g({inserted:this.placeholderChar}))}_appendEager(){return new g}extractTail(V,O){return this.masked.extractTail(V,O)}appendTail(V){return this.masked.appendTail(V)}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this.value.length),this.masked.extractInput(V,O,G)}nearestInputPos(V,O){O===void 0&&(O=d.NONE);const G=0,X=this.value.length,Y=Math.min(Math.max(V,G),X);switch(O){case d.LEFT:case d.FORCE_LEFT:return this.isComplete?Y:G;case d.RIGHT:case d.FORCE_RIGHT:return this.isComplete?Y:X;case d.NONE:default:return Y}}totalInputPositions(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.value.length),this.value.slice(V,O).length}doValidate(V){return this.masked.doValidate(this.currentMaskFlags(V))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(V)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(V){this.masked.state=V.masked,this.isFilled=V.isFilled}currentMaskFlags(V){var O;return{...V,_beforeTailState:(V==null||(O=V._beforeTailState)==null?void 0:O.masked)||V?._beforeTailState}}pad(V){return new g}};se$1.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class et extends F$1{updateOptions(V){super.updateOptions(V)}_update(V){const O=V.mask;O&&(V.validate=G=>G.search(O)>=0),super._update(V)}}p.MaskedRegExp=et;class x extends F$1{constructor(V){super({...x.DEFAULTS,...V,definitions:Object.assign({},se$1.DEFAULT_DEFINITIONS,V?.definitions)})}updateOptions(V){super.updateOptions(V)}_update(V){V.definitions=Object.assign({},this.definitions,V.definitions),super._update(V),this._rebuildMask()}_rebuildMask(){const V=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const O=this.mask;if(!O||!V)return;let G=!1,X=!1;for(let Y=0;Y<O.length;++Y){if(this.blocks){const Me=O.slice(Y),ee=Object.keys(this.blocks).filter(me=>Me.indexOf(me)===0);ee.sort((me,Te)=>Te.length-me.length);const he=ee[0];if(he){const{expose:me,repeat:Te,...Oe}=Z(this.blocks[he]),Pe={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...Oe,repeat:Te,parent:this},Ne=Te!=null?new p.RepeatBlock(Pe):M(Pe);Ne&&(this._blocks.push(Ne),me&&(this.exposeBlock=Ne),this._maskedBlocks[he]||(this._maskedBlocks[he]=[]),this._maskedBlocks[he].push(this._blocks.length-1)),Y+=he.length-1;continue}}let ge=O[Y],we=ge in V;if(ge===x.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(ge==="{"||ge==="}"){G=!G;continue}if(ge==="["||ge==="]"){X=!X;continue}if(ge===x.ESCAPE_CHAR){if(++Y,ge=O[Y],!ge)break;we=!1}const fe=we?new se$1({isOptional:X,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Z(V[ge]),parent:this}):new ye({char:ge,eager:this.eager,isUnmasking:G});this._blocks.push(fe)}}get state(){return{...super.state,_blocks:this._blocks.map(V=>V.state)}}set state(V){if(!V){this.reset();return}const{_blocks:O,...G}=V;this._blocks.forEach((X,Y)=>X.state=O[Y]),super.state=G}reset(){super.reset(),this._blocks.forEach(V=>V.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(V=>V.isComplete)}get isFilled(){return this._blocks.every(V=>V.isFilled)}get isFixed(){return this._blocks.every(V=>V.isFixed)}get isOptional(){return this._blocks.every(V=>V.isOptional)}doCommit(){this._blocks.forEach(V=>V.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((V,O)=>V+=O.unmaskedValue,"")}set unmaskedValue(V){if(this.exposeBlock){const O=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=V,this.appendTail(O),this.doCommit()}else super.unmaskedValue=V}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((V,O)=>V+=O.value,"")}set value(V){if(this.exposeBlock){const O=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=V,this.appendTail(O),this.doCommit()}else super.value=V}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(V){if(this.exposeBlock){const O=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=V,this.appendTail(O),this.doCommit()}else super.typedValue=V}get displayValue(){return this._blocks.reduce((V,O)=>V+=O.displayValue,"")}appendTail(V){return super.appendTail(V).aggregate(this._appendPlaceholder())}_appendEager(){var V;const O=new g;let G=(V=this._mapPosToBlock(this.displayValue.length))==null?void 0:V.index;if(G==null)return O;this._blocks[G].isFilled&&++G;for(let X=G;X<this._blocks.length;++X){const Y=this._blocks[X]._appendEager();if(!Y.inserted)break;O.aggregate(Y)}return O}_appendCharRaw(V,O){O===void 0&&(O={});const G=this._mapPosToBlock(this.displayValue.length),X=new g;if(!G)return X;for(let ge=G.index,we;we=this._blocks[ge];++ge){var Y;const fe=we._appendChar(V,{...O,_beforeTailState:(Y=O._beforeTailState)==null||(Y=Y._blocks)==null?void 0:Y[ge]});if(X.aggregate(fe),fe.consumed)break}return X}extractTail(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);const G=new L;return V===O||this._forEachBlocksInRange(V,O,(X,Y,ge,we)=>{const fe=X.extractTail(ge,we);fe.stop=this._findStopBefore(Y),fe.from=this._blockStartPos(Y),fe instanceof L&&(fe.blockIndex=Y),G.extend(fe)}),G}extractInput(V,O,G){if(V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),G===void 0&&(G={}),V===O)return"";let X="";return this._forEachBlocksInRange(V,O,(Y,ge,we,fe)=>{X+=Y.extractInput(we,fe,G)}),X}_findStopBefore(V){let O;for(let G=0;G<this._stops.length;++G){const X=this._stops[G];if(X<=V)O=X;else break}return O}_appendPlaceholder(V){const O=new g;if(this.lazy&&V==null)return O;const G=this._mapPosToBlock(this.displayValue.length);if(!G)return O;const X=G.index,Y=V??this._blocks.length;return this._blocks.slice(X,Y).forEach(ge=>{if(!ge.lazy||V!=null){var we;O.aggregate(ge._appendPlaceholder((we=ge._blocks)==null?void 0:we.length))}}),O}_mapPosToBlock(V){let O="";for(let G=0;G<this._blocks.length;++G){const X=this._blocks[G],Y=O.length;if(O+=X.displayValue,V<=O.length)return{index:G,offset:V-Y}}}_blockStartPos(V){return this._blocks.slice(0,V).reduce((O,G)=>O+=G.displayValue.length,0)}_forEachBlocksInRange(V,O,G){O===void 0&&(O=this.displayValue.length);const X=this._mapPosToBlock(V);if(X){const Y=this._mapPosToBlock(O),ge=Y&&X.index===Y.index,we=X.offset,fe=Y&&ge?Y.offset:this._blocks[X.index].displayValue.length;if(G(this._blocks[X.index],X.index,we,fe),Y&&!ge){for(let Me=X.index+1;Me<Y.index;++Me)G(this._blocks[Me],Me,0,this._blocks[Me].displayValue.length);G(this._blocks[Y.index],Y.index,0,Y.offset)}}}remove(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);const G=super.remove(V,O);return this._forEachBlocksInRange(V,O,(X,Y,ge,we)=>{G.aggregate(X.remove(ge,we))}),G}nearestInputPos(V,O){if(O===void 0&&(O=d.NONE),!this._blocks.length)return 0;const G=new Qe(this,V);if(O===d.NONE)return G.pushRightBeforeInput()||(G.popState(),G.pushLeftBeforeInput())?G.pos:this.displayValue.length;if(O===d.LEFT||O===d.FORCE_LEFT){if(O===d.LEFT){if(G.pushRightBeforeFilled(),G.ok&&G.pos===V)return V;G.popState()}if(G.pushLeftBeforeInput(),G.pushLeftBeforeRequired(),G.pushLeftBeforeFilled(),O===d.LEFT){if(G.pushRightBeforeInput(),G.pushRightBeforeRequired(),G.ok&&G.pos<=V||(G.popState(),G.ok&&G.pos<=V))return G.pos;G.popState()}return G.ok?G.pos:O===d.FORCE_LEFT?0:(G.popState(),G.ok||(G.popState(),G.ok)?G.pos:0)}return O===d.RIGHT||O===d.FORCE_RIGHT?(G.pushRightBeforeInput(),G.pushRightBeforeRequired(),G.pushRightBeforeFilled()?G.pos:O===d.FORCE_RIGHT?this.displayValue.length:(G.popState(),G.ok||(G.popState(),G.ok)?G.pos:this.nearestInputPos(V,d.LEFT))):V}totalInputPositions(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);let G=0;return this._forEachBlocksInRange(V,O,(X,Y,ge,we)=>{G+=X.totalInputPositions(ge,we)}),G}maskedBlock(V){return this.maskedBlocks(V)[0]}maskedBlocks(V){const O=this._maskedBlocks[V];return O?O.map(G=>this._blocks[G]):[]}pad(V){const O=new g;return this._forEachBlocksInRange(0,this.displayValue.length,G=>O.aggregate(G.pad(V))),O}}x.DEFAULTS={...F$1.DEFAULTS,lazy:!0,placeholderChar:"_"};x.STOP_CHAR="`";x.ESCAPE_CHAR="\\";x.InputDefinition=se$1;x.FixedDefinition=ye;p.MaskedPattern=x;class W extends x{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(V){super(V)}updateOptions(V){super.updateOptions(V)}_update(V){const{to:O=this.to||0,from:G=this.from||0,maxLength:X=this.maxLength||0,autofix:Y=this.autofix,...ge}=V;this.to=O,this.from=G,this.maxLength=Math.max(String(O).length,X),this.autofix=Y;const we=String(this.from).padStart(this.maxLength,"0"),fe=String(this.to).padStart(this.maxLength,"0");let Me=0;for(;Me<fe.length&&fe[Me]===we[Me];)++Me;ge.mask=fe.slice(0,Me).replace(/0/g,"\\0")+"0".repeat(this.maxLength-Me),super._update(ge)}get isComplete(){return super.isComplete&&!!this.value}boundaries(V){let O="",G="";const[,X,Y]=V.match(/^(\D*)(\d*)(\D*)/)||[];return Y&&(O="0".repeat(X.length)+Y,G="9".repeat(X.length)+Y),O=O.padEnd(this.maxLength,"0"),G=G.padEnd(this.maxLength,"9"),[O,G]}doPrepareChar(V,O){O===void 0&&(O={});let G;return[V,G]=super.doPrepareChar(V.replace(/\D/g,""),O),V||(G.skip=!this.isComplete),[V,G]}_appendCharRaw(V,O){if(O===void 0&&(O={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(V,O);const G=String(this.from).padStart(this.maxLength,"0"),X=String(this.to).padStart(this.maxLength,"0"),[Y,ge]=this.boundaries(this.value+V);return Number(ge)<this.from?super._appendCharRaw(G[this.value.length],O):Number(Y)>this.to?!O.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(G[this.value.length],O).aggregate(this._appendCharRaw(V,O)):super._appendCharRaw(X[this.value.length],O):super._appendCharRaw(V,O)}doValidate(V){const O=this.value;if(O.search(/[^0]/)===-1&&O.length<=this._matchFrom)return!0;const[G,X]=this.boundaries(O);return this.from<=Number(X)&&Number(G)<=this.to&&super.doValidate(V)}pad(V){const O=new g;if(this.value.length===this.maxLength)return O;const G=this.value,X=this.maxLength-this.value.length;if(X){this.reset();for(let Y=0;Y<X;++Y)O.aggregate(super._appendCharRaw("0",V));G.split("").forEach(Y=>this._appendCharRaw(Y))}return O}}p.MaskedRange=W;const tt="d{.}`m{.}`Y";let I$1=class Ew extends x{static extractPatternOptions(V){const{mask:O,pattern:G,...X}=V;return{...X,mask:P(O)?O:G}}constructor(V){super(Ew.extractPatternOptions({...Ew.DEFAULTS,...V}))}updateOptions(V){super.updateOptions(V)}_update(V){const{mask:O,pattern:G,blocks:X,...Y}={...Ew.DEFAULTS,...V},ge=Object.assign({},Ew.GET_DEFAULT_BLOCKS());V.min&&(ge.Y.from=V.min.getFullYear()),V.max&&(ge.Y.to=V.max.getFullYear()),V.min&&V.max&&ge.Y.from===ge.Y.to&&(ge.m.from=V.min.getMonth()+1,ge.m.to=V.max.getMonth()+1,ge.m.from===ge.m.to&&(ge.d.from=V.min.getDate(),ge.d.to=V.max.getDate())),Object.assign(ge,this.blocks,X),super._update({...Y,mask:P(O)?O:G,blocks:ge})}doValidate(V){const O=this.date;return super.doValidate(V)&&(!this.isComplete||this.isDateExist(this.value)&&O!=null&&(this.min==null||this.min<=O)&&(this.max==null||O<=this.max))}isDateExist(V){return this.format(this.parse(V,this),this).indexOf(V)>=0}get date(){return this.typedValue}set date(V){this.typedValue=V}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(V){super.typedValue=V}maskEquals(V){return V===Date||super.maskEquals(V)}optionsIsChanged(V){return super.optionsIsChanged(Ew.extractPatternOptions(V))}};I$1.GET_DEFAULT_BLOCKS=()=>({d:{mask:W,from:1,to:31,maxLength:2},m:{mask:W,from:1,to:12,maxLength:2},Y:{mask:W,from:1900,to:9999}});I$1.DEFAULTS={...x.DEFAULTS,mask:Date,pattern:tt,format:(Mt,V)=>{if(!Mt)return"";const O=String(Mt.getDate()).padStart(2,"0"),G=String(Mt.getMonth()+1).padStart(2,"0"),X=Mt.getFullYear();return[O,G,X].join(".")},parse:(Mt,V)=>{const[O,G,X]=Mt.split(".").map(Number);return new Date(X,G-1,O)}};p.MaskedDate=I$1;let ne$1=class FT extends F$1{constructor(V){super({...FT.DEFAULTS,...V}),this.currentMask=void 0}updateOptions(V){super.updateOptions(V)}_update(V){super._update(V),"mask"in V&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(V.mask)?V.mask.map(O=>{const{expose:G,...X}=Z(O),Y=M({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...X});return G&&(this.exposeMask=Y),Y}):[])}_appendCharRaw(V,O){O===void 0&&(O={});const G=this._applyDispatch(V,O);return this.currentMask&&G.aggregate(this.currentMask._appendChar(V,this.currentMaskFlags(O))),G}_applyDispatch(V,O,G){V===void 0&&(V=""),O===void 0&&(O={}),G===void 0&&(G="");const X=O.tail&&O._beforeTailState!=null?O._beforeTailState._value:this.value,Y=this.rawInputValue,ge=O.tail&&O._beforeTailState!=null?O._beforeTailState._rawInputValue:Y,we=Y.slice(ge.length),fe=this.currentMask,Me=new g,ee=fe?.state;return this.currentMask=this.doDispatch(V,{...O},G),this.currentMask&&(this.currentMask!==fe?(this.currentMask.reset(),ge&&(this.currentMask.append(ge,{raw:!0}),Me.tailShift=this.currentMask.value.length-X.length),we&&(Me.tailShift+=this.currentMask.append(we,{raw:!0,tail:!0}).tailShift)):ee&&(this.currentMask.state=ee)),Me}_appendPlaceholder(){const V=this._applyDispatch();return this.currentMask&&V.aggregate(this.currentMask._appendPlaceholder()),V}_appendEager(){const V=this._applyDispatch();return this.currentMask&&V.aggregate(this.currentMask._appendEager()),V}appendTail(V){const O=new g;return V&&O.aggregate(this._applyDispatch("",{},V)),O.aggregate(this.currentMask?this.currentMask.appendTail(V):super.appendTail(V))}currentMaskFlags(V){var O,G;return{...V,_beforeTailState:((O=V._beforeTailState)==null?void 0:O.currentMaskRef)===this.currentMask&&((G=V._beforeTailState)==null?void 0:G.currentMask)||V._beforeTailState}}doDispatch(V,O,G){return O===void 0&&(O={}),G===void 0&&(G=""),this.dispatch(V,this,O,G)}doValidate(V){return super.doValidate(V)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(V)))}doPrepare(V,O){O===void 0&&(O={});let[G,X]=super.doPrepare(V,O);if(this.currentMask){let Y;[G,Y]=super.doPrepare(G,this.currentMaskFlags(O)),X=X.aggregate(Y)}return[G,X]}doPrepareChar(V,O){O===void 0&&(O={});let[G,X]=super.doPrepareChar(V,O);if(this.currentMask){let Y;[G,Y]=super.doPrepareChar(G,this.currentMaskFlags(O)),X=X.aggregate(Y)}return[G,X]}reset(){var V;(V=this.currentMask)==null||V.reset(),this.compiledMasks.forEach(O=>O.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(V){this.exposeMask?(this.exposeMask.value=V,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=V}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(V){this.exposeMask?(this.exposeMask.unmaskedValue=V,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=V}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(V){if(this.exposeMask){this.exposeMask.typedValue=V,this.currentMask=this.exposeMask,this._applyDispatch();return}let O=String(V);this.currentMask&&(this.currentMask.typedValue=V,O=this.currentMask.unmaskedValue),this.unmaskedValue=O}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var V;return!!((V=this.currentMask)!=null&&V.isComplete)}get isFilled(){var V;return!!((V=this.currentMask)!=null&&V.isFilled)}remove(V,O){const G=new g;return this.currentMask&&G.aggregate(this.currentMask.remove(V,O)).aggregate(this._applyDispatch()),G}get state(){var V;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(O=>O.state),currentMaskRef:this.currentMask,currentMask:(V=this.currentMask)==null?void 0:V.state}}set state(V){const{compiledMasks:O,currentMaskRef:G,currentMask:X,...Y}=V;O&&this.compiledMasks.forEach((ge,we)=>ge.state=O[we]),G!=null&&(this.currentMask=G,this.currentMask.state=X),super.state=Y}extractInput(V,O,G){return this.currentMask?this.currentMask.extractInput(V,O,G):""}extractTail(V,O){return this.currentMask?this.currentMask.extractTail(V,O):super.extractTail(V,O)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(V,O){return this.currentMask?this.currentMask.nearestInputPos(V,O):super.nearestInputPos(V,O)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(V){this._overwrite=V}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(V){this._eager=V}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(V){this._skipInvalid=V}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(V){this._autofix=V}maskEquals(V){return Array.isArray(V)?this.compiledMasks.every((O,G)=>{if(!V[G])return;const{mask:X,...Y}=V[G];return te(O,Y)&&O.maskEquals(X)}):super.maskEquals(V)}typedValueEquals(V){var O;return!!((O=this.currentMask)!=null&&O.typedValueEquals(V))}};ne$1.DEFAULTS={...F$1.DEFAULTS,dispatch:(Mt,V,O,G)=>{if(!V.compiledMasks.length)return;const X=V.rawInputValue,Y=V.compiledMasks.map((ge,we)=>{const fe=V.currentMask===ge,Me=fe?ge.displayValue.length:ge.nearestInputPos(ge.displayValue.length,d.FORCE_LEFT);return ge.rawInputValue!==X?(ge.reset(),ge.append(X,{raw:!0})):fe||ge.remove(Me),ge.append(Mt,V.currentMaskFlags(O)),ge.appendTail(G),{index:we,weight:ge.rawInputValue.length,totalInputPositions:ge.totalInputPositions(0,Math.max(Me,ge.nearestInputPos(ge.displayValue.length,d.FORCE_LEFT)))}});return Y.sort((ge,we)=>we.weight-ge.weight||we.totalInputPositions-ge.totalInputPositions),V.compiledMasks[Y[0].index]}};p.MaskedDynamic=ne$1;class ue extends x{constructor(V){super({...ue.DEFAULTS,...V})}updateOptions(V){super.updateOptions(V)}_update(V){const{enum:O,...G}=V;if(O){const X=O.map(we=>we.length),Y=Math.min(...X),ge=Math.max(...X)-Y;G.mask="*".repeat(Y),ge&&(G.mask+="["+"*".repeat(ge)+"]"),this.enum=O}super._update(G)}_appendCharRaw(V,O){O===void 0&&(O={});const G=Math.min(this.nearestInputPos(0,d.FORCE_RIGHT),this.value.length),X=this.enum.filter(Y=>this.matchValue(Y,this.unmaskedValue+V,G));if(X.length){X.length===1&&this._forEachBlocksInRange(0,this.value.length,(ge,we)=>{const fe=X[0][we];we>=this.value.length||fe===ge.value||(ge.reset(),ge._appendChar(fe,O))});const Y=super._appendCharRaw(X[0][this.value.length],O);return X.length===1&&X[0].slice(this.unmaskedValue.length).split("").forEach(ge=>Y.aggregate(super._appendCharRaw(ge))),Y}return new g({skip:!this.isComplete})}extractTail(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),new D("",V)}remove(V,O){if(V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),V===O)return new g;const G=Math.min(super.nearestInputPos(0,d.FORCE_RIGHT),this.value.length);let X;for(X=V;X>=0&&!(this.enum.filter(ge=>this.matchValue(ge,this.value.slice(G,X),G)).length>1);--X);const Y=super.remove(X,O);return Y.tailShift+=X-V,Y}get isComplete(){return this.enum.indexOf(this.value)>=0}}ue.DEFAULTS={...x.DEFAULTS,matchValue:(Mt,V,O)=>Mt.indexOf(V,O)===O};p.MaskedEnum=ue;class st extends F$1{updateOptions(V){super.updateOptions(V)}_update(V){super._update({...V,validate:V.mask})}}p.MaskedFunction=st;var be;class S extends F$1{constructor(V){super({...S.DEFAULTS,...V})}updateOptions(V){super.updateOptions(V)}_update(V){super._update(V),this._updateRegExps()}_updateRegExps(){const V="^"+(this.allowNegative?"[+|\\-]?":""),O="\\d*",G=(this.scale?"("+oe$1(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(V+O+G),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(oe$1).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(oe$1(this.thousandsSeparator),"g")}_removeThousandsSeparators(V){return V.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(V){const O=V.split(this.radix);return O[0]=O[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),O.join(this.radix)}doPrepareChar(V,O){O===void 0&&(O={});const[G,X]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(O.input&&O.raw||!O.input&&!O.raw)?V.replace(this._mapToRadixRegExp,this.radix):V),O);return V&&!G&&(X.skip=!0),G&&!this.allowPositive&&!this.value&&G!=="-"&&X.aggregate(this._appendChar("-")),[G,X]}_separatorsCount(V,O){O===void 0&&(O=!1);let G=0;for(let X=0;X<V;++X)this._value.indexOf(this.thousandsSeparator,X)===X&&(++G,O&&(V+=this.thousandsSeparator.length));return G}_separatorsCountFromSlice(V){return V===void 0&&(V=this._value),this._separatorsCount(this._removeThousandsSeparators(V).length,!0)}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),[V,O]=this._adjustRangeWithSeparators(V,O),this._removeThousandsSeparators(super.extractInput(V,O,G))}_appendCharRaw(V,O){O===void 0&&(O={});const G=O.tail&&O._beforeTailState?O._beforeTailState._value:this._value,X=this._separatorsCountFromSlice(G);this._value=this._removeThousandsSeparators(this.value);const Y=this._value;this._value+=V;const ge=this.number;let we=!isNaN(ge),fe=!1;if(we){let me;this.min!=null&&this.min<0&&this.number<this.min&&(me=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(me=this.max),me!=null&&(this.autofix?(this._value=this.format(me,this).replace(S.UNMASKED_RADIX,this.radix),fe||(fe=Y===this._value&&!O.tail)):we=!1),we&&(we=!!this._value.match(this._numberRegExp))}let Me;we?Me=new g({inserted:this._value.slice(Y.length),rawInserted:fe?"":V,skip:fe}):(this._value=Y,Me=new g),this._value=this._insertThousandsSeparators(this._value);const ee=O.tail&&O._beforeTailState?O._beforeTailState._value:this._value,he=this._separatorsCountFromSlice(ee);return Me.tailShift+=(he-X)*this.thousandsSeparator.length,Me}_findSeparatorAround(V){if(this.thousandsSeparator){const O=V-this.thousandsSeparator.length+1,G=this.value.indexOf(this.thousandsSeparator,O);if(G<=V)return G}return-1}_adjustRangeWithSeparators(V,O){const G=this._findSeparatorAround(V);G>=0&&(V=G);const X=this._findSeparatorAround(O);return X>=0&&(O=X+this.thousandsSeparator.length),[V,O]}remove(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),[V,O]=this._adjustRangeWithSeparators(V,O);const G=this.value.slice(0,V),X=this.value.slice(O),Y=this._separatorsCount(G.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(G+X));const ge=this._separatorsCountFromSlice(G);return new g({tailShift:(ge-Y)*this.thousandsSeparator.length})}nearestInputPos(V,O){if(!this.thousandsSeparator)return V;switch(O){case d.NONE:case d.LEFT:case d.FORCE_LEFT:{const G=this._findSeparatorAround(V-1);if(G>=0){const X=G+this.thousandsSeparator.length;if(V<X||this.value.length<=X||O===d.FORCE_LEFT)return G}break}case d.RIGHT:case d.FORCE_RIGHT:{const G=this._findSeparatorAround(V);if(G>=0)return G+this.thousandsSeparator.length}}return V}doCommit(){if(this.value){const V=this.number;let O=V;this.min!=null&&(O=Math.max(O,this.min)),this.max!=null&&(O=Math.min(O,this.max)),O!==V&&(this.unmaskedValue=this.format(O,this));let G=this.value;this.normalizeZeros&&(G=this._normalizeZeros(G)),this.padFractionalZeros&&this.scale>0&&(G=this._padFractionalZeros(G)),this._value=G}super.doCommit()}_normalizeZeros(V){const O=this._removeThousandsSeparators(V).split(this.radix);return O[0]=O[0].replace(/^(\D*)(0*)(\d*)/,(G,X,Y,ge)=>X+ge),V.length&&!/\d$/.test(O[0])&&(O[0]=O[0]+"0"),O.length>1&&(O[1]=O[1].replace(/0*$/,""),O[1].length||(O.length=1)),this._insertThousandsSeparators(O.join(this.radix))}_padFractionalZeros(V){if(!V)return V;const O=V.split(this.radix);return O.length<2&&O.push(""),O[1]=O[1].padEnd(this.scale,"0"),O.join(this.radix)}doSkipInvalid(V,O,G){O===void 0&&(O={});const X=this.scale===0&&V!==this.thousandsSeparator&&(V===this.radix||V===S.UNMASKED_RADIX||this.mapToRadix.includes(V));return super.doSkipInvalid(V,O,G)&&!X}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,S.UNMASKED_RADIX)}set unmaskedValue(V){super.unmaskedValue=V}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(V){this.rawInputValue=this.format(V,this).replace(S.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(V){this.typedValue=V}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(V){return(super.typedValueEquals(V)||S.EMPTY_VALUES.includes(V)&&S.EMPTY_VALUES.includes(this.typedValue))&&!(V===0&&this.value==="")}}be=S;S.UNMASKED_RADIX=".";S.EMPTY_VALUES=[...F$1.EMPTY_VALUES,0];S.DEFAULTS={...F$1.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[be.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:Mt=>Mt.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};p.MaskedNumber=S;const de={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Se(Mt,V,O){V===void 0&&(V=de.MASKED),O===void 0&&(O=de.MASKED);const G=M(Mt);return X=>G.runIsolated(Y=>(Y[V]=X,Y[O]))}function it(Mt,V,O,G){return Se(V,O,G)(Mt)}p.PIPE_TYPE=de;p.createPipe=Se;p.pipe=it;class at extends x{get repeatFrom(){var V;return(V=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?V:0}get repeatTo(){var V;return(V=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?V:1/0}constructor(V){super(V)}updateOptions(V){super.updateOptions(V)}_update(V){var O,G,X;const{repeat:Y,...ge}=Z(V);this._blockOpts=Object.assign({},this._blockOpts,ge);const we=M(this._blockOpts);this.repeat=(O=(G=Y??we.repeat)!=null?G:this.repeat)!=null?O:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((X=this._blocks)==null?void 0:X.length)||0,this.repeatFrom)),blocks:{m:we},eager:we.eager,overwrite:we.overwrite,skipInvalid:we.skipInvalid,lazy:we.lazy,placeholderChar:we.placeholderChar,displayChar:we.displayChar})}_allocateBlock(V){if(V<this._blocks.length)return this._blocks[V];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(M(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(V,O){O===void 0&&(O={});const G=new g;for(let fe=(X=(Y=this._mapPosToBlock(this.displayValue.length))==null?void 0:Y.index)!=null?X:Math.max(this._blocks.length-1,0),Me,ee;Me=(ge=this._blocks[fe])!=null?ge:ee=!ee&&this._allocateBlock(fe);++fe){var X,Y,ge,we;const he=Me._appendChar(V,{...O,_beforeTailState:(we=O._beforeTailState)==null||(we=we._blocks)==null?void 0:we[fe]});if(he.skip&&ee){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(G.aggregate(he),he.consumed)break}return G}_trimEmptyTail(V,O){var G,X;V===void 0&&(V=0);const Y=Math.max(((G=this._mapPosToBlock(V))==null?void 0:G.index)||0,this.repeatFrom,0);let ge;O!=null&&(ge=(X=this._mapPosToBlock(O))==null?void 0:X.index),ge==null&&(ge=this._blocks.length-1);let we=0;for(let fe=ge;Y<=fe&&!this._blocks[fe].unmaskedValue;--fe,++we);we&&(this._blocks.splice(ge-we+1,we),this.mask=this.mask.slice(we))}reset(){super.reset(),this._trimEmptyTail()}remove(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);const G=super.remove(V,O);return this._trimEmptyTail(V,O),G}totalInputPositions(V,O){return V===void 0&&(V=0),O==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(V,O)}get state(){return super.state}set state(V){this._blocks.length=V._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=V}}p.RepeatBlock=at;try{globalThis.IMask=p}catch{}var nt={mask:void 0,prepare:Function,prepareChar:Function,validate:Function,commit:Function,overwrite:{type:Boolean,required:!1,default:void 0},eager:{required:!1,default:void 0,validator:Mt=>["append","remove"].includes(Mt)||typeof Mt=="boolean"},skipInvalid:{type:Boolean,required:!1,default:void 0},placeholderChar:String,displayChar:String,lazy:{type:Boolean,required:!1,default:void 0},definitions:Object,blocks:Object,enum:Array,maxLength:Number,from:Number,to:Number,pattern:String,format:Function,parse:Function,autofix:{required:!1,default:void 0,validator:Mt=>Mt==="pad"||typeof Mt=="boolean"},radix:String,thousandsSeparator:String,mapToRadix:Array,scale:Number,normalizeZeros:{type:Boolean,required:!1,default:void 0},padFractionalZeros:{type:Boolean,required:!1,default:void 0},min:[Number,Date],max:[Number,Date],dispatch:Function};function ut(Mt,V){let{emit:O,onAccept:G,onComplete:X,defaultValue:Y,defaultUnmaskedValue:ge,defaultTypedValue:we}=V===void 0?{}:V;const fe=vue.isRef(Mt)?Mt:vue.ref(Mt),Me=vue.ref(),ee=vue.ref(),he=vue.ref(""),me=vue.ref(""),Te=vue.ref();let Oe,Pe=he.value,Ne=me.value,Le=Te.value;function De(){Le=Te.value=ee.value.typedValue,Ne=me.value=ee.value.unmaskedValue,Pe=he.value=ee.value.value}function bt(Nt){De(),O&&(O("accept",he.value,Nt),O("accept:masked",he.value,Nt),O("accept:typed",Te.value,Nt),O("accept:unmasked",me.value,Nt)),G?.(Nt)}function wt(Nt){O&&(O("complete",ee.value.value,Nt),O("complete:masked",ee.value.value,Nt),O("complete:typed",ee.value.typedValue,Nt),O("complete:unmasked",ee.value.unmaskedValue,Nt)),X?.(Nt)}const jt=()=>{!ee.value||me.value===void 0||(Ne!==me.value&&(ee.value.unmaskedValue=me.value,ee.value.unmaskedValue!==me.value&&bt()),Ne=void 0)};vue.watch(me,jt);const Tt=()=>{!ee.value||he.value===void 0||(Pe!==he.value&&(ee.value.value=he.value,ee.value.value!==he.value&&bt()),Pe=void 0)};vue.watch(he,Tt);const St=()=>{!ee.value||Te.value===void 0||(Le!==Te.value&&(ee.value.typedValue=Te.value,ee.value.masked.typedValueEquals(Te.value)||bt()),Le=void 0)};vue.watch(Te,St);function Ot(){Oe=Me.value;const Nt=fe.value;!Oe||!(Nt!=null&&Nt.mask)||(ee.value=p(Oe,Nt),Y!==void 0&&(he.value=Y),ge!==void 0&&(me.value=ge),we!==void 0&&(Te.value=we),jt(),Tt(),St(),De(),ee.value.on("accept",bt).on("complete",wt))}function It(){var Nt;(Nt=ee.value)==null||Nt.destroy(),ee.value=void 0}return vue.onMounted(Ot),vue.onUnmounted(It),vue.watch([Me,fe],()=>{const Nt=Me.value,Lt=fe.value;(!(Lt!=null&&Lt.mask)||Nt!==Oe)&&It(),Nt&&(ee.value?ee.value.updateOptions(Lt):Ot())}),{el:Me,mask:vue.readonly(ee),masked:he,unmasked:me,typed:Te}}function rt(Mt,V){return Mt={...Mt},Object.keys(Mt).forEach(O=>{(Mt[O]===void 0||V.includes(O))&&delete Mt[O]}),Mt}const lt=["typed","unmasked","value","modelValue"];var ot=vue.defineComponent({name:"imask-input",inheritAttrs:!1,props:{modelValue:String,value:String,unmasked:String,typed:{validator:()=>!0},...nt},emits:["update:modelValue","update:masked","update:value","update:unmasked","update:typed","accept","accept:value","accept:masked","accept:unmasked","accept:typed","complete","complete:value","complete:masked","complete:unmasked","complete:typed"],setup(Mt,V){let{attrs:O,emit:G}=V;const{el:X,mask:Y,masked:ge,unmasked:we,typed:fe}=ut(rt(Mt,lt),{emit:G,onAccept:Te=>{const Oe=ge.value;G("accept:value",Oe,Te),G("update:value",Oe,Te),G("update:masked",Oe,Te),G("update:modelValue",Oe,Te),G("update:unmasked",we.value,Te),G("update:typed",fe.value,Te)},onComplete:Te=>{G("complete:value",ge.value,Te)}}),Me=vue.toRef(Mt,"value"),ee=vue.toRef(Mt,"modelValue"),he=vue.toRef(Mt,"unmasked"),me=vue.toRef(Mt,"typed");return ge.value=ee.value||Me.value||"",we.value=he.value||"",fe.value=me.value,vue.watch(Me,Te=>ge.value=Te),vue.watch(ee,Te=>ge.value=Te),vue.watch(he,Te=>we.value=Te),vue.watch(me,Te=>fe.value=Te),()=>{const Te={...O,value:Mt.value!=null?Mt.value:Mt.modelValue!=null?Mt.modelValue:Y.value?Y.value.displayValue:"",ref:X};return Mt.mask||(Te.onInput=Oe=>{G("update:modelValue",Oe.target.value),G("update:value",Oe.target.value)}),vue.h("input",Te)}}}),ht=ot;const dt=["for"],pt={class:"state-layer"},ct={class:"content"},mt={class:"input-text-container"},gt=["id","placeholder","aria-label"],ft={key:1,class:"has-text-body-small phila-supporting-text"},kt={key:2,class:"has-text-body-small phila-error-text"},vt=vue.defineComponent({inheritAttrs:!1,__name:"TextField",props:{modelValue:{default:void 0},className:{default:""},label:{default:""},id:{default:`phila-text-field-${Math.random().toString(36).substring(2,9)}`},imaskProps:{default:void 0},supportingText:{default:""},placeholder:{default:""},leadingIcon:{default:""},trailingIcon:{default:""},error:{default(){return[]}}},emits:["update:modelValue","complete"],setup(Mt,{expose:V,emit:O}){const G=vue.useAttrs(),X=Mt,Y=vue.computed(()=>typeof X.error=="string"?X.error:X.error[0]),ge=vue.toRef(X,"id"),we=O,fe=vue.ref(""),Me=vue.computed({get:()=>X.modelValue!==void 0?X.modelValue:fe.value,set:Pe=>{we("update:modelValue",Pe),fe.value=Pe}}),ee=vue.computed(()=>{const Pe=["default-class"];return G.disabled!=null&&Pe.push("phila-input--disabled"),Y.value&&Pe.push("phila-input--error"),G.required!=null&&Pe.push("phila-input--required"),ve$1(...Pe)}),he=vue.computed(()=>{const Pe=[];return Me.value!==""&&Pe.push("phila-text-field--filled"),X.className&&Pe.push(X.className),ve$1(...Pe)}),me=vue.computed(()=>{if(!(X.label||G["aria-label"]))return X.placeholder||void 0}),Te=vue.ref(null),Oe=Pe=>{Pe.target.closest("button")||Te.value?.focus()};return V({inputRef:Te}),(Pe,Ne)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["phila-input",ee.value])},[X.label?(vue.openBlock(),vue.createElementBlock("label",{key:0,for:ge.value,class:"has-text-label-small phila-label"},vue.toDisplayString(X.label),9,dt)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["phila-text-field",he.value]),onClick:vue.withModifiers(Oe,["prevent"])},[vue.createElementVNode("div",pt,[X.leadingIcon?(vue.openBlock(),vue.createBlock(vue.unref(F$2),{key:0,"icon-class":X.leadingIcon,inline:"",decorative:""},null,8,["icon-class"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",ct,[vue.createElementVNode("div",mt,[X.imaskProps?.mask?(vue.openBlock(),vue.createBlock(vue.unref(ht),vue.mergeProps({key:0},{...vue.unref(G),...X.imaskProps},{id:ge.value,modelValue:Me.value,"onUpdate:modelValue":Ne[0]||(Ne[0]=Le=>Me.value=Le),class:"phila-text-field-input has-text-body-default",placeholder:X.placeholder,onComplete:Ne[1]||(Ne[1]=()=>we("complete",fe.value))}),null,16,["id","modelValue","placeholder"])):vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",vue.mergeProps({key:1,id:ge.value,ref_key:"inputRef",ref:Te},vue.unref(G),{"onUpdate:modelValue":Ne[2]||(Ne[2]=Le=>Me.value=Le),class:"phila-text-field-input has-text-body-default",placeholder:X.placeholder,"aria-label":me.value}),null,16,gt)),[[vue.vModelDynamic,Me.value]])])]),Me.value!=""?(vue.openBlock(),vue.createBlock(vue.unref(qe),{key:1,variant:"standard",size:"small","icon-only":"","icon-definition":vue.unref($e),onClick:Ne[3]||(Ne[3]=Le=>Me.value="")},null,8,["icon-definition"])):vue.createCommentVNode("",!0),X.trailingIcon?(vue.openBlock(),vue.createBlock(vue.unref(F$2),{key:2,size:"small","icon-class":X.trailingIcon,inline:"",decorative:""},null,8,["icon-class"])):vue.createCommentVNode("",!0),vue.renderSlot(Pe.$slots,"trailing-action")])],2),X.supportingText?(vue.openBlock(),vue.createElementBlock("div",ft,vue.toDisplayString(X.supportingText),1)):vue.createCommentVNode("",!0),Y.value?(vue.openBlock(),vue.createElementBlock("div",kt,[vue.createVNode(vue.unref(F$2),{"icon-definition":vue.unref(Ke),size:"small",inline:"",decorative:""},null,8,["icon-definition"]),vue.createTextVNode(" "+vue.toDisplayString(Y.value),1)])):vue.createCommentVNode("",!0)],2))}}),_t=["disabled"],Ct=vue.defineComponent({inheritAttrs:!1,__name:"PhlButton",props:{href:{},to:{},target:{},rel:{},disabled:{type:Boolean,default:!1},clickTarget:{},variant:{default:"primary"},size:{default:"medium"},iconOnly:{type:Boolean,default:!1},iconRight:{type:Boolean},text:{},className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{}},setup(Mt){const V=Mt,O=ge=>"href"in ge&&ge.href!==void 0||"to"in ge&&ge.to!==void 0,G=vue.computed(()=>ve$1("phila-button",`phila-button--${V.variant}`,V.size&&`is-${V.size}`,V.iconOnly&&"icon-button",V.iconOnly&&V.variant==="standard"&&"icon-button--standard",V.className)),X=vue.computed(()=>O(V)?"to"in V&&V.to!==void 0?{to:V.to,disabled:V.disabled,className:G.value}:{href:V.href,target:V.target,rel:V.rel,disabled:V.disabled,className:G.value}:{}),Y=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,iconRight:V.iconRight,iconOnly:V.iconOnly,text:V.text,size:V.size}));return(ge,we)=>O(V)?(vue.openBlock(),vue.createBlock(vue.unref(Ee),vue.mergeProps({key:0},{...X.value,...ge.$attrs},{role:"button"}),{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)]),_:3},16)):(vue.openBlock(),vue.createElementBlock("button",vue.mergeProps({key:1,type:"button",disabled:V.disabled,class:G.value},ge.$attrs),[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)],16,_t))}}),Et={key:0,class:"search-suggestions-anchor"},At=["onClick"],Ft=vue.defineComponent({__name:"SearchSuggestions",props:{suggestions:{}},emits:["select","dismiss"],setup(Mt,{expose:V,emit:O}){const G=Mt,X=O,Y=vue.ref(-1),ge=vue.ref(null);vue.watch(()=>G.suggestions,()=>{Y.value=-1});function we(ee){ge.value?.querySelectorAll(".search-suggestion")?.[ee]?.focus()}function fe(){G.suggestions.length&&(Y.value=0,we(0))}function Me(ee){switch(ee.key){case"ArrowDown":{ee.preventDefault();const he=Math.min(Y.value+1,G.suggestions.length-1);Y.value=he,we(he);break}case"ArrowUp":{ee.preventDefault(),Y.value<=0?(Y.value=-1,X("dismiss")):(Y.value-=1,we(Y.value));break}case"Enter":{ee.preventDefault(),Y.value>=0&&X("select",G.suggestions[Y.value]);break}case"Escape":{ee.preventDefault(),X("dismiss");break}}}return V({focusFirst:fe}),(ee,he)=>Mt.suggestions.length?(vue.openBlock(),vue.createElementBlock("div",Et,[vue.createElementVNode("ul",{ref_key:"listRef",ref:ge,class:"search-suggestions",role:"listbox",onKeydown:Me},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Mt.suggestions,(me,Te)=>(vue.openBlock(),vue.createElementBlock("li",{key:me,class:vue.normalizeClass(["search-suggestion",{"search-suggestion--active":Te===Y.value}]),role:"option",tabindex:"-1",onClick:Oe=>X("select",me)},vue.toDisplayString(me),11,At))),128))],544)])):vue.createCommentVNode("",!0)}}),xt=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},yt=xt(Ft,[["__scopeId","data-v-0d4f5bed"]]),Vt=vue.defineComponent({inheritAttrs:!1,__name:"Search",props:{modelValue:{default:void 0},placeholder:{default:"Search by title or keyword"},suggestions:{default:()=>[]},className:{}},emits:["update:modelValue","search","select","dismiss"],setup(Mt,{expose:V,emit:O}){const G=vue.useAttrs(),X=Mt,Y=O,ge=vue.ref(null),we=vue.ref(null),fe=vue.computed({get:()=>X.modelValue,set:Ne=>Y("update:modelValue",Ne)}),Me=vue.computed(()=>G["aria-label"]),ee=vue.computed(()=>Object.fromEntries(Object.entries(G).filter(([Ne])=>Ne!=="aria-label"))),he=vue.computed(()=>ve$1("default-class",X.className));function me(){ge.value?.inputRef?.focus()}function Te(Ne){Ne.key==="ArrowDown"&&X.suggestions.length>0&&Ne.target instanceof HTMLInputElement&&(Ne.preventDefault(),we.value?.focusFirst())}function Oe(Ne){Y("update:modelValue",Ne),Y("select",Ne)}function Pe(){Y("dismiss"),me()}return V({focus:me}),(Ne,Le)=>(vue.openBlock(),vue.createElementBlock("div",vue.mergeProps({class:["search",he.value]},ee.value,{onKeydown:Te}),[vue.createVNode(vue.unref(vt),{ref_key:"textFieldRef",ref:ge,modelValue:fe.value,"onUpdate:modelValue":Le[1]||(Le[1]=De=>fe.value=De),"class-name":"phila-text-field--search",placeholder:Mt.placeholder,"aria-label":Me.value,onKeydown:Le[2]||(Le[2]=vue.withKeys(De=>Y("search"),["enter"]))},{"trailing-action":vue.withCtx(()=>[vue.createVNode(vue.unref(Ct),{variant:"standard",size:"small","icon-only":"","icon-definition":vue.unref(ze),"aria-label":"Search","class-name":"phila-button--search",onClick:Le[0]||(Le[0]=De=>Y("search"))},null,8,["icon-definition"])]),_:1},8,["modelValue","placeholder","aria-label"]),X.suggestions.length>0?(vue.openBlock(),vue.createBlock(yt,{key:0,ref_key:"suggestionsRef",ref:we,suggestions:X.suggestions,onSelect:Oe,onDismiss:Pe},null,8,["suggestions"])):vue.createCommentVNode("",!0)],16))}}),_hoisted_1$f=["aria-busy"],_hoisted_2$8={key:0,role:"alert",class:"map-search-error"},_hoisted_3$7={"aria-live":"polite",class:"sr-only"},_hoisted_4$4={key:0},_sfc_main$q=vue.defineComponent({__name:"MapSearchControl",props:{position:{default:"top-left"},placeholder:{default:"Search for an address"},geocode:{type:Boolean,default:!0},centerOnResult:{type:Boolean,default:!0},searchZoom:{default:17},teleportTo:{default:void 0},autocomplete:{type:Boolean,default:!1}},emits:["search","result","error"],setup(Mt,{expose:V,emit:O}){const G=Mt,X=O,Y=vue.inject("map"),ge=vue.ref(""),we=vue.ref(!1),fe=vue.ref(null),Me=vue.ref(null),ee=vue.ref(null),he=G.autocomplete?useMapControl.useAisAddressSuggestions(ge):null,me=vue.computed(()=>he?he.searchSuggestions.value:[]),Te=async()=>{const bt=ge.value.trim();if(X("search",bt),!!bt&&G.geocode){we.value=!0,fe.value=null;try{const jt=await(await fetch(`https://api.phila.gov/ais/v1/search/${encodeURIComponent(bt)}?include_units=false`)).json();if(jt.features&&jt.features.length>0){const Tt=jt.features[0];if(X("result",Tt),G.centerOnResult&&Y?.value&&Tt.geometry?.coordinates){const[St,Ot]=Tt.geometry.coordinates;Y.value.setCenter([St,Ot]),Y.value.setZoom(G.searchZoom)}}else fe.value="No results found",X("error",fe.value)}catch(wt){fe.value=wt instanceof Error?wt.message:"Failed to geocode address",X("error",fe.value)}finally{we.value=!1}}};function Oe(bt){he&&(ge.value=bt,he.dismissSuggestions(),Te())}function Pe(){he&&he.hideSuggestions()}function Ne(bt){!he||he.searchSuggestions.value.length===0||Me.value&&!Me.value.contains(bt.target)&&he.hideSuggestions()}vue.onMounted(()=>{he&&document.addEventListener("mousedown",Ne)}),vue.onBeforeUnmount(()=>{he&&document.removeEventListener("mousedown",Ne)});const Le=vue.inject("controlCorners",{}),De=vue.computed(()=>G.teleportTo?G.teleportTo:Le[G.position??"top-left"]?.value??null);return V({loading:we,error:fe,searchQuery:ge}),(bt,wt)=>De.value?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:De.value},[vue.createElementVNode("div",{ref_key:"containerRef",ref:Me,class:"maplibregl-ctrl map-search-control",role:"search","aria-label":"Search for an address","aria-busy":we.value},[vue.createVNode(vue.unref(Vt),{ref_key:"searchRef",ref:ee,modelValue:ge.value,"onUpdate:modelValue":wt[0]||(wt[0]=jt=>ge.value=jt),placeholder:G.placeholder,suggestions:me.value,"aria-label":"Search the map",onSearch:Te,onSelect:Oe,onDismiss:Pe},null,8,["modelValue","placeholder","suggestions"]),fe.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,"⚠ "+vue.toDisplayString(fe.value),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$7,[we.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$4,"Searching...")):vue.createCommentVNode("",!0)])],8,_hoisted_1$f)],8,["to"])):vue.createCommentVNode("",!0)}});function _arrayLikeToArray(Mt,V){(V==null||V>Mt.length)&&(V=Mt.length);for(var O=0,G=Array(V);O<V;O++)G[O]=Mt[O];return G}function _arrayWithoutHoles(Mt){if(Array.isArray(Mt))return _arrayLikeToArray(Mt)}function _defineProperty(Mt,V,O){return(V=_toPropertyKey(V))in Mt?Object.defineProperty(Mt,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):Mt[V]=O,Mt}function _iterableToArray(Mt){if(typeof Symbol<"u"&&Mt[Symbol.iterator]!=null||Mt["@@iterator"]!=null)return Array.from(Mt)}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
557
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys$1(Mt,V){var O=Object.keys(Mt);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Mt);V&&(G=G.filter(function(X){return Object.getOwnPropertyDescriptor(Mt,X).enumerable})),O.push.apply(O,G)}return O}function _objectSpread2$1(Mt){for(var V=1;V<arguments.length;V++){var O=arguments[V]!=null?arguments[V]:{};V%2?ownKeys$1(Object(O),!0).forEach(function(G){_defineProperty$1(Mt,G,O[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mt,Object.getOwnPropertyDescriptors(O)):ownKeys$1(Object(O)).forEach(function(G){Object.defineProperty(Mt,G,Object.getOwnPropertyDescriptor(O,G))})}return Mt}function _objectWithoutProperties$1(Mt,V){if(Mt==null)return{};var O,G,X=_objectWithoutPropertiesLoose$1(Mt,V);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(Mt);for(G=0;G<Y.length;G++)O=Y[G],V.indexOf(O)===-1&&{}.propertyIsEnumerable.call(Mt,O)&&(X[O]=Mt[O])}return X}function _objectWithoutPropertiesLoose$1(Mt,V){if(Mt==null)return{};var O={};for(var G in Mt)if({}.hasOwnProperty.call(Mt,G)){if(V.indexOf(G)!==-1)continue;O[G]=Mt[G]}return O}function _toConsumableArray$1(Mt){return _arrayWithoutHoles$1(Mt)||_iterableToArray$1(Mt)||_unsupportedIterableToArray$1(Mt)||_nonIterableSpread$1()}function _toPrimitive$1(Mt,V){if(typeof Mt!="object"||!Mt)return Mt;var O=Mt[Symbol.toPrimitive];if(O!==void 0){var G=O.call(Mt,V);if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(Mt)}function _toPropertyKey$1(Mt){var V=_toPrimitive$1(Mt,"string");return typeof V=="symbol"?V:V+""}function _typeof$1(Mt){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_typeof$1(Mt)}function _unsupportedIterableToArray$1(Mt,V){if(Mt){if(typeof Mt=="string")return _arrayLikeToArray$1(Mt,V);var O={}.toString.call(Mt).slice(8,-1);return O==="Object"&&Mt.constructor&&(O=Mt.constructor.name),O==="Map"||O==="Set"?Array.from(Mt):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?_arrayLikeToArray$1(Mt,V):void 0}}function objectWithKey$1(Mt,V){return Array.isArray(V)&&V.length>0||!Array.isArray(V)&&V?_defineProperty$1({},Mt,V):{}}function classList$1(Mt){var V,O=(V={"fa-spin":Mt.spin,"fa-pulse":Mt.pulse,"fa-fw":Mt.fixedWidth,"fa-border":Mt.border,"fa-li":Mt.listItem,"fa-inverse":Mt.inverse,"fa-flip":Mt.flip===!0,"fa-flip-horizontal":Mt.flip==="horizontal"||Mt.flip==="both","fa-flip-vertical":Mt.flip==="vertical"||Mt.flip==="both"},_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(V,"fa-".concat(Mt.size),Mt.size!==null),"fa-rotate-".concat(Mt.rotation),Mt.rotation!==null),"fa-rotate-by",Mt.rotateBy),"fa-pull-".concat(Mt.pull),Mt.pull!==null),"fa-swap-opacity",Mt.swapOpacity),"fa-bounce",Mt.bounce),"fa-shake",Mt.shake),"fa-beat",Mt.beat),"fa-fade",Mt.fade),"fa-beat-fade",Mt.beatFade),_defineProperty$1(_defineProperty$1(_defineProperty$1(_defineProperty$1(V,"fa-flash",Mt.flash),"fa-spin-pulse",Mt.spinPulse),"fa-spin-reverse",Mt.spinReverse),"fa-width-auto",Mt.widthAuto));return Object.keys(O).map(function(G){return O[G]?G:null}).filter(function(G){return G})}var commonjsGlobal$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},humps$1$1={exports:{}};(function(Mt){(function(V){var O=function(Le,De,bt){if(!Me(De)||he(De)||me(De)||Te(De)||fe(De))return De;var wt,jt=0,Tt=0;if(ee(De))for(wt=[],Tt=De.length;jt<Tt;jt++)wt.push(O(Le,De[jt],bt));else{wt={};for(var St in De)Object.prototype.hasOwnProperty.call(De,St)&&(wt[Le(St,bt)]=O(Le,De[St],bt))}return wt},G=function(Le,De){De=De||{};var bt=De.separator||"_",wt=De.split||/(?=[A-Z])/;return Le.split(wt).join(bt)},X=function(Le){return Oe(Le)?Le:(Le=Le.replace(/[\-_\s]+(.)?/g,function(De,bt){return bt?bt.toUpperCase():""}),Le.substr(0,1).toLowerCase()+Le.substr(1))},Y=function(Le){var De=X(Le);return De.substr(0,1).toUpperCase()+De.substr(1)},ge=function(Le,De){return G(Le,De).toLowerCase()},we=Object.prototype.toString,fe=function(Le){return typeof Le=="function"},Me=function(Le){return Le===Object(Le)},ee=function(Le){return we.call(Le)=="[object Array]"},he=function(Le){return we.call(Le)=="[object Date]"},me=function(Le){return we.call(Le)=="[object RegExp]"},Te=function(Le){return we.call(Le)=="[object Boolean]"},Oe=function(Le){return Le=Le-0,Le===Le},Pe=function(Le,De){var bt=De&&"process"in De?De.process:De;return typeof bt!="function"?Le:function(wt,jt){return bt(wt,Le,jt)}},Ne={camelize:X,decamelize:ge,pascalize:Y,depascalize:ge,camelizeKeys:function(Le,De){return O(Pe(X,De),Le)},decamelizeKeys:function(Le,De){return O(Pe(ge,De),Le,De)},pascalizeKeys:function(Le,De){return O(Pe(Y,De),Le)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};Mt.exports?Mt.exports=Ne:V.humps=Ne})(commonjsGlobal$2)})(humps$1$1);var humps$2=humps$1$1.exports,_excluded$1=["class","style"];function styleToObject$1(Mt){return Mt.split(";").map(function(V){return V.trim()}).filter(function(V){return V}).reduce(function(V,O){var G=O.indexOf(":"),X=humps$2.camelize(O.slice(0,G)),Y=O.slice(G+1).trim();return V[X]=Y,V},{})}function classToObject$1(Mt){return Mt.split(/\s+/).reduce(function(V,O){return V[O]=!0,V},{})}function convert$1(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof Mt=="string")return Mt;var G=(Mt.children||[]).map(function(fe){return convert$1(fe)}),X=Object.keys(Mt.attributes||{}).reduce(function(fe,Me){var ee=Mt.attributes[Me];switch(Me){case"class":fe.class=classToObject$1(ee);break;case"style":fe.style=styleToObject$1(ee);break;default:fe.attrs[Me]=ee}return fe},{attrs:{},class:{},style:{}});O.class;var Y=O.style,ge=Y===void 0?{}:Y,we=_objectWithoutProperties$1(O,_excluded$1);return vue.h(Mt.tag,_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},V),{},{class:X.class,style:_objectSpread2$1(_objectSpread2$1({},X.style),ge)},X.attrs),we),G)}var PRODUCTION$1=!1;try{PRODUCTION$1=process.env.NODE_ENV==="production"}catch{}function log$1(){if(!PRODUCTION$1&&console&&typeof console.error=="function"){var Mt;(Mt=console).error.apply(Mt,arguments)}}function normalizeIconArgs$1(Mt){if(Mt&&_typeof$1(Mt)==="object"&&Mt.prefix&&Mt.iconName&&Mt.icon)return Mt;if(parse$1.icon)return parse$1.icon(Mt);if(Mt===null)return null;if(_typeof$1(Mt)==="object"&&Mt.prefix&&Mt.iconName)return Mt;if(Array.isArray(Mt)&&Mt.length===2)return{prefix:Mt[0],iconName:Mt[1]};if(typeof Mt=="string")return{prefix:"fas",iconName:Mt}}var FontAwesomeIcon$1=vue.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(V){return[!0,!1,"horizontal","vertical","both"].indexOf(V)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(V){return["right","left"].indexOf(V)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(V){return[90,180,270].indexOf(Number.parseInt(V,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(V){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(V)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(V,O){var G=O.attrs,X=vue.computed(function(){return normalizeIconArgs$1(V.icon)}),Y=vue.computed(function(){return objectWithKey$1("classes",classList$1(V))}),ge=vue.computed(function(){return objectWithKey$1("transform",typeof V.transform=="string"?parse$1.transform(V.transform):V.transform)}),we=vue.computed(function(){return objectWithKey$1("mask",normalizeIconArgs$1(V.mask))}),fe=vue.computed(function(){var ee=_objectSpread2$1(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({},Y.value),ge.value),we.value),{},{symbol:V.symbol,maskId:V.maskId});return ee.title=V.title,ee.titleId=V.titleId,icon(X.value,ee)});vue.watch(fe,function(ee){if(!ee)return log$1("Could not find one or more icon(s)",X.value,we.value)},{immediate:!0});var Me=vue.computed(function(){return fe.value?convert$1(fe.value.abstract[0],{},G):null});return function(){return Me.value}}});vue.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(V,O){var G=O.slots,X=config$1.familyPrefix,Y=vue.computed(function(){return["".concat(X,"-layers")].concat(_toConsumableArray$1(V.fixedWidth?["".concat(X,"-fw")]:[]))});return function(){return vue.h("div",{class:Y.value},G.default?G.default():[])}}});vue.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(V){return["bottom-left","bottom-right","top-left","top-right"].indexOf(V)>-1}}},setup:function(V,O){var G=O.attrs,X=config$1.familyPrefix,Y=vue.computed(function(){return objectWithKey$1("classes",[].concat(_toConsumableArray$1(V.counter?["".concat(X,"-layers-counter")]:[]),_toConsumableArray$1(V.position?["".concat(X,"-layers-").concat(V.position)]:[])))}),ge=vue.computed(function(){return objectWithKey$1("transform",typeof V.transform=="string"?parse$1.transform(V.transform):V.transform)}),we=vue.computed(function(){var Me=text(V.value.toString(),_objectSpread2$1(_objectSpread2$1({},ge.value),Y.value)),ee=Me.abstract;return V.counter&&(ee[0].attributes.class=ee[0].attributes.class.replace("fa-layers-text","")),ee[0]}),fe=vue.computed(function(){return convert$1(we.value,{},G)});return function(){return fe.value}}});function ve$1(...Mt){return Mt.filter(Boolean).join(" ")}vue.ref("");vue.reactive({validateOnBlur:!1,validateOnInput:!1,validateOnChange:!1,validateOnMount:!1,required:!1,isValid:!0,errors:[]});const $=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},be$1=["innerHTML"],Be=["src","alt"],Ce=vue.defineComponent({__name:"Icon",props:{className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{},variant:{default:"default"},size:{default:"small"},inline:{type:Boolean},shadow:{type:Boolean},decorative:{type:Boolean},ariaLabel:{default:void 0}},setup(Mt){const V=Mt,O=vue.computed(()=>ve$1("phila-icon",V.size&&`phila-icon--${V.size}`,V.inline&&"phila-icon--inline",V.variant&&V.variant!=="default"&&`phila-icon--${V.variant}`,V.shadow&&"phila-icon--shadow",V.className)),G=vue.computed(()=>V.decorative?{"aria-hidden":!0}:{"aria-label":V.ariaLabel,role:"img"});return(X,Y)=>(vue.openBlock(),vue.createElementBlock("span",vue.mergeProps({class:O.value},G.value),[V.iconDefinition?(vue.openBlock(),vue.createBlock(vue.unref(FontAwesomeIcon$1),{key:0,icon:V.iconDefinition},null,8,["icon"])):V.iconClass?(vue.openBlock(),vue.createElementBlock("i",{key:1,class:vue.normalizeClass(`fa fa-${V.iconClass}`)},null,2)):V.svgRaw?(vue.openBlock(),vue.createElementBlock("span",{key:2,class:"phila-icon__svg",innerHTML:V.svgRaw},null,8,be$1)):V.src?(vue.openBlock(),vue.createElementBlock("img",{key:3,src:V.src,alt:V.decorative?"":V.ariaLabel||"Icon"},null,8,Be)):vue.createCommentVNode("",!0)],16))}}),F$2=$(Ce,[["__scopeId","data-v-1fe4be50"]]),ke={key:1},Re=vue.defineComponent({__name:"ActionContent",props:{iconRight:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1},inline:{type:Boolean},text:{default:void 0},size:{default:void 0},shadow:{type:Boolean},iconSize:{default:void 0},iconDefinition:{},iconClass:{},src:{},svgRaw:{},variant:{}},setup(Mt){const V=Mt,O=vue.computed(()=>V.iconDefinition||V.iconClass||V.src||V.svgRaw),G=Y=>{if(Y.iconOnly)switch(Y.size){case"small":return"extra-small";case"extra-small":return"xxsmall";default:return Y.size||"medium"}else switch(Y.size){case"small":case"extra-small":return"xxsmall";default:return"extra-small"}},X=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,svgRaw:V.svgRaw,size:V.iconSize??G(V),decorative:!0,class:"icon",inline:V.inline??!V.iconOnly,shadow:V.shadow}));return(Y,ge)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,[O.value&&!V.iconRight?(vue.openBlock(),vue.createBlock(F$2,vue.normalizeProps(vue.mergeProps({key:0},X.value)),null,16)):vue.createCommentVNode("",!0),V.iconOnly?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("span",ke,[vue.renderSlot(Y.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])])),O.value&&V.iconRight?(vue.openBlock(),vue.createBlock(F$2,vue.normalizeProps(vue.mergeProps({key:2},X.value)),null,16)):vue.createCommentVNode("",!0)],64))}}),P$1=Mt=>"to"in Mt&&Mt.to!==void 0;function Ie(){const Mt=vue.inject("router",null),V=vue.computed(()=>Mt!==null);return{router:Mt,hasRouter:V}}const Ee=vue.defineComponent({__name:"BaseLink",props:{to:{},href:{},target:{},rel:{},disabled:{type:Boolean},ariaLabel:{},className:{}},setup(Mt){const V=Mt,{hasRouter:O}=Ie(),G=vue.computed(()=>P$1(V)&&O.value?vue.resolveComponent("RouterLink"):"a"),X=vue.computed(()=>P$1(V)?{to:V.disabled?void 0:V.to,...V.disabled&&{"aria-disabled":"true"},...V.ariaLabel&&{"aria-label":V.ariaLabel}}:{href:V.disabled?void 0:V.href,...V.target&&{target:V.target},...V.rel&&{rel:V.rel},...V.disabled&&{"aria-disabled":"true"},...V.ariaLabel&&{"aria-label":V.ariaLabel}});return(Y,ge)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(G.value),vue.mergeProps({class:Mt.className},X.value),{default:vue.withCtx(()=>[vue.renderSlot(Y.$slots,"default")]),_:3},16,["class"]))}});vue.ref({});vue.ref();vue.ref(null);var Ue={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},ze=Ue;const je=["disabled"],qe=vue.defineComponent({inheritAttrs:!1,__name:"PhlButton",props:{href:{},to:{},target:{},rel:{},disabled:{type:Boolean,default:!1},clickTarget:{},variant:{default:"primary"},size:{default:"medium"},iconOnly:{type:Boolean,default:!1},iconRight:{type:Boolean},text:{},className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{}},setup(Mt){const V=Mt,O=ge=>"href"in ge&&ge.href!==void 0||"to"in ge&&ge.to!==void 0,G=vue.computed(()=>ve$1("phila-button",`phila-button--${V.variant}`,V.size&&`is-${V.size}`,V.iconOnly&&"icon-button",V.iconOnly&&V.variant==="standard"&&"icon-button--standard",V.className)),X=vue.computed(()=>O(V)?"to"in V&&V.to!==void 0?{to:V.to,disabled:V.disabled,className:G.value}:{href:V.href,target:V.target,rel:V.rel,disabled:V.disabled,className:G.value}:{}),Y=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,iconRight:V.iconRight,iconOnly:V.iconOnly,text:V.text,size:V.size}));return(ge,we)=>O(V)?(vue.openBlock(),vue.createBlock(vue.unref(Ee),vue.mergeProps({key:0},{...X.value,...ge.$attrs},{role:"button"}),{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)]),_:3},16)):(vue.openBlock(),vue.createElementBlock("button",vue.mergeProps({key:1,type:"button",disabled:V.disabled,class:G.value},ge.$attrs),[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)],16,je))}});var He={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Ke=He,Ge={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},$e=Ge;function P(Mt){return typeof Mt=="string"||Mt instanceof String}function ve(Mt){var V;return typeof Mt=="object"&&Mt!=null&&(Mt==null||(V=Mt.constructor)==null?void 0:V.name)==="Object"}function Ae(Mt,V){return Array.isArray(V)?Ae(Mt,(O,G)=>V.includes(G)):Object.entries(Mt).reduce((O,G)=>{let[X,Y]=G;return V(Y,X)&&(O[X]=Y),O},{})}const d={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Ye(Mt){switch(Mt){case d.LEFT:return d.FORCE_LEFT;case d.RIGHT:return d.FORCE_RIGHT;default:return Mt}}function oe$1(Mt){return Mt.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function te(Mt,V){if(V===Mt)return!0;const O=Array.isArray(V),G=Array.isArray(Mt);let X;if(O&&G){if(V.length!=Mt.length)return!1;for(X=0;X<V.length;X++)if(!te(V[X],Mt[X]))return!1;return!0}if(O!=G)return!1;if(V&&Mt&&typeof V=="object"&&typeof Mt=="object"){const Y=V instanceof Date,ge=Mt instanceof Date;if(Y&&ge)return V.getTime()==Mt.getTime();if(Y!=ge)return!1;const we=V instanceof RegExp,fe=Mt instanceof RegExp;if(we&&fe)return V.toString()==Mt.toString();if(we!=fe)return!1;const Me=Object.keys(V);for(X=0;X<Me.length;X++)if(!Object.prototype.hasOwnProperty.call(Mt,Me[X]))return!1;for(X=0;X<Me.length;X++)if(!te(Mt[Me[X]],V[Me[X]]))return!1;return!0}else if(V&&Mt&&typeof V=="function"&&typeof Mt=="function")return V.toString()===Mt.toString();return!1}class Ze{constructor(V){for(Object.assign(this,V);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?d.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?d.RIGHT:d.LEFT}}function p(Mt,V){return new p.InputMask(Mt,V)}function Fe(Mt){if(Mt==null)throw new Error("mask property should be defined");return Mt instanceof RegExp?p.MaskedRegExp:P(Mt)?p.MaskedPattern:Mt===Date?p.MaskedDate:Mt===Number?p.MaskedNumber:Array.isArray(Mt)||Mt===Array?p.MaskedDynamic:p.Masked&&Mt.prototype instanceof p.Masked?Mt:p.Masked&&Mt instanceof p.Masked?Mt.constructor:Mt instanceof Function?p.MaskedFunction:p.Masked}function Z(Mt){if(!Mt)throw new Error("Options in not defined");if(p.Masked){if(Mt.prototype instanceof p.Masked)return{mask:Mt};const{mask:V=void 0,...O}=Mt instanceof p.Masked?{mask:Mt}:ve(Mt)&&Mt.mask instanceof p.Masked?Mt:{};if(V){const G=V.mask;return{...Ae(V,(X,Y)=>!Y.startsWith("_")),mask:V.constructor,_mask:G,...O}}}return ve(Mt)?{...Mt}:{mask:Mt}}function M(Mt){if(p.Masked&&Mt instanceof p.Masked)return Mt;const V=Z(Mt),O=Fe(V.mask);if(!O)throw new Error("Masked class is not found for provided mask "+V.mask+", appropriate module needs to be imported manually before creating mask.");return V.mask===O&&delete V.mask,V._mask&&(V.mask=V._mask,delete V._mask),new O(V)}p.createMask=M;class pe{get selectionStart(){let V;try{V=this._unsafeSelectionStart}catch{}return V??this.value.length}get selectionEnd(){let V;try{V=this._unsafeSelectionEnd}catch{}return V??this.value.length}select(V,O){if(!(V==null||O==null||V===this.selectionStart&&O===this.selectionEnd))try{this._unsafeSelect(V,O)}catch{}}get isActive(){return!1}}p.MaskElement=pe;const _e=90,Xe=89;let ie$1=class extends pe{constructor(V){super(),this.input=V,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var V,O,G;return(V=(O=(G=this.input).getRootNode)==null?void 0:O.call(G))!=null?V:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(V){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",V.drop),this.input.addEventListener("click",V.click),this.input.addEventListener("focus",V.focus),this.input.addEventListener("blur",V.commit),this._handlers=V}_onKeydown(V){if(this._handlers.redo&&(V.keyCode===_e&&V.shiftKey&&(V.metaKey||V.ctrlKey)||V.keyCode===Xe&&V.ctrlKey))return V.preventDefault(),this._handlers.redo(V);if(this._handlers.undo&&V.keyCode===_e&&(V.metaKey||V.ctrlKey))return V.preventDefault(),this._handlers.undo(V);V.isComposing||this._handlers.selectionChange(V)}_onBeforeinput(V){if(V.inputType==="historyUndo"&&this._handlers.undo)return V.preventDefault(),this._handlers.undo(V);if(V.inputType==="historyRedo"&&this._handlers.redo)return V.preventDefault(),this._handlers.redo(V)}_onCompositionEnd(V){this._handlers.input(V)}_onInput(V){V.isComposing||this._handlers.input(V)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}};p.HTMLMaskElement=ie$1;class We extends ie$1{constructor(V){super(V),this.input=V}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(V,O){this.input.setSelectionRange(V,O)}get value(){return this.input.value}set value(V){this.input.value=V}}p.HTMLMaskElement=ie$1;class xe extends ie$1{get _unsafeSelectionStart(){const V=this.rootElement,O=V.getSelection&&V.getSelection(),G=O&&O.anchorOffset,X=O&&O.focusOffset;return X==null||G==null||G<X?G:X}get _unsafeSelectionEnd(){const V=this.rootElement,O=V.getSelection&&V.getSelection(),G=O&&O.anchorOffset,X=O&&O.focusOffset;return X==null||G==null||G>X?G:X}_unsafeSelect(V,O){if(!this.rootElement.createRange)return;const G=this.rootElement.createRange();G.setStart(this.input.firstChild||this.input,V),G.setEnd(this.input.lastChild||this.input,O);const X=this.rootElement,Y=X.getSelection&&X.getSelection();Y&&(Y.removeAllRanges(),Y.addRange(G))}get value(){return this.input.textContent||""}set value(V){this.input.textContent=V}}p.HTMLContenteditableMaskElement=xe;let ae$1=class DT{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(V){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(V),this.states.length>DT.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(V){return this.currentIndex=Math.min(Math.max(this.currentIndex+V,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}};ae$1.MAX_LENGTH=100;class Je{constructor(V,O){this.el=V instanceof pe?V:V.isContentEditable&&V.tagName!=="INPUT"&&V.tagName!=="TEXTAREA"?new xe(V):new We(V),this.masked=M(O),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new ae$1,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(V){var O;return V==null||((O=this.masked)==null?void 0:O.maskEquals(V))}get mask(){return this.masked.mask}set mask(V){if(this.maskEquals(V))return;if(!(V instanceof p.Masked)&&this.masked.constructor===Fe(V)){this.masked.updateOptions({mask:V});return}const O=V instanceof p.Masked?V:M({mask:V});O.unmaskedValue=this.masked.unmaskedValue,this.masked=O}get value(){return this._value}set value(V){this.value!==V&&(this.masked.value=V,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(V){this.unmaskedValue!==V&&(this.masked.unmaskedValue=V,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(V){this.rawInputValue!==V&&(this.masked.rawInputValue=V,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(V){this.masked.typedValueEquals(V)||(this.masked.typedValue=V,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(V,O){const G=this._listeners[V];G&&G.forEach(X=>X(O))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(V){!this.el||!this.el.isActive||(this.el.select(V,V),this._saveSelection())}_saveSelection(){this.displayValue,this.el.value,this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(V){const O=this.masked.unmaskedValue,G=this.masked.value,X=this.masked.rawInputValue,Y=this.displayValue,ge=this.unmaskedValue!==O||this.value!==G||this._rawInputValue!==X;this._unmaskedValue=O,this._value=G,this._rawInputValue=X,this.el.value!==Y&&(this.el.value=Y),V==="auto"?this.alignCursor():V!=null&&(this.cursorPos=V),ge&&this._fireChangeEvents(),!this._historyChanging&&(ge||this.history.isEmpty)&&this.history.push({unmaskedValue:O,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(V){const{mask:O,...G}=V,X=!this.maskEquals(O),Y=this.masked.optionsIsChanged(G);X&&(this.mask=O),Y&&this.masked.updateOptions(G),(X||Y)&&this.updateControl()}updateCursor(V){V!=null&&(this.cursorPos=V,this._delayUpdateCursor(V))}_delayUpdateCursor(V){this._abortUpdateCursor(),this._changingCursorPos=V,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,d.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(V,O){return this._listeners[V]||(this._listeners[V]=[]),this._listeners[V].push(O),this}off(V,O){if(!this._listeners[V])return this;if(!O)return delete this._listeners[V],this;const G=this._listeners[V].indexOf(O);return G>=0&&this._listeners[V].splice(G,1),this}_onInput(V){this._inputEvent=V,this._abortUpdateCursor();const O=new Ze({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),G=this.masked.rawInputValue,X=this.masked.splice(O.startChangePos,O.removed.length,O.inserted,O.removeDirection,{input:!0,raw:!0}).offset,Y=G===this.masked.rawInputValue?O.removeDirection:d.NONE;let ge=this.masked.nearestInputPos(O.startChangePos+X,Y);Y!==d.NONE&&(ge=this.masked.nearestInputPos(ge,d.NONE)),this.updateControl(ge),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(V){V.preventDefault(),V.stopPropagation()}_onFocus(V){this.alignCursorFriendly()}_onClick(V){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(V){V&&(this._historyChanging=!0,this.unmaskedValue=V.unmaskedValue,this.el.select(V.selection.start,V.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}p.InputMask=Je;class g{static normalize(V){return Array.isArray(V)?V:[V,new g]}constructor(V){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},V)}aggregate(V){return this.inserted+=V.inserted,this.rawInserted+=V.rawInserted,this.tailShift+=V.tailShift,this.skip=this.skip||V.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(V){return this.inserted===V.inserted&&this.tailShift===V.tailShift&&this.rawInserted===V.rawInserted&&this.skip===V.skip}}p.ChangeDetails=g;class D{constructor(V,O,G){V===void 0&&(V=""),O===void 0&&(O=0),this.value=V,this.from=O,this.stop=G}toString(){return this.value}extend(V){this.value+=String(V)}appendTo(V){return V.append(this.toString(),{tail:!0}).aggregate(V._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(V){Object.assign(this,V)}unshift(V){if(!this.value.length||V!=null&&this.from>=V)return"";const O=this.value[0];return this.value=this.value.slice(1),O}shift(){if(!this.value.length)return"";const V=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),V}}let F$1=class j1{constructor(V){this._value="",this._update({...j1.DEFAULTS,...V}),this._initialized=!0}updateOptions(V){this.optionsIsChanged(V)&&this.withValueRefresh(this._update.bind(this,V))}_update(V){Object.assign(this,V)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(V){this._value=V._value}reset(){this._value=""}get value(){return this._value}set value(V){this.resolve(V,{input:!0})}resolve(V,O){O===void 0&&(O={input:!0}),this.reset(),this.append(V,O,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(V){this.resolve(V,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(V){this.format?this.value=this.format(V,this):this.unmaskedValue=String(V)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(V){this.resolve(V,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(V,O){return V}totalInputPositions(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),Math.min(this.displayValue.length,O-V)}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),this.displayValue.slice(V,O)}extractTail(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),new D(this.extractInput(V,O),V)}appendTail(V){return P(V)&&(V=new D(String(V))),V.appendTo(this)}_appendCharRaw(V,O){return V?(this._value+=V,new g({inserted:V,rawInserted:V})):new g}_appendChar(V,O,G){O===void 0&&(O={});const X=this.state;let Y;if([V,Y]=this.doPrepareChar(V,O),V&&(Y=Y.aggregate(this._appendCharRaw(V,O)),!Y.rawInserted&&this.autofix==="pad")){const ge=this.state;this.state=X;let we=this.pad(O);const fe=this._appendCharRaw(V,O);we=we.aggregate(fe),fe.rawInserted||we.equals(Y)?Y=we:this.state=ge}if(Y.inserted){let ge,we=this.doValidate(O)!==!1;if(we&&G!=null){const fe=this.state;if(this.overwrite===!0){ge=G.state;for(let ee=0;ee<Y.rawInserted.length;++ee)G.unshift(this.displayValue.length-Y.tailShift)}let Me=this.appendTail(G);if(we=Me.rawInserted.length===G.toString().length,!(we&&Me.inserted)&&this.overwrite==="shift"){this.state=fe,ge=G.state;for(let ee=0;ee<Y.rawInserted.length;++ee)G.shift();Me=this.appendTail(G),we=Me.rawInserted.length===G.toString().length}we&&Me.inserted&&(this.state=fe)}we||(Y=new g,this.state=X,G&&ge&&(G.state=ge))}return Y}_appendPlaceholder(){return new g}_appendEager(){return new g}append(V,O,G){if(!P(V))throw new Error("value should be string");const X=P(G)?new D(String(G)):G;O!=null&&O.tail&&(O._beforeTailState=this.state);let Y;[V,Y]=this.doPrepare(V,O);for(let ge=0;ge<V.length;++ge){const we=this._appendChar(V[ge],O,X);if(!we.rawInserted&&!this.doSkipInvalid(V[ge],O,X))break;Y.aggregate(we)}return(this.eager===!0||this.eager==="append")&&O!=null&&O.input&&V&&Y.aggregate(this._appendEager()),X!=null&&(Y.tailShift+=this.appendTail(X).tailShift),Y}remove(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),this._value=this.displayValue.slice(0,V)+this.displayValue.slice(O),new g}withValueRefresh(V){if(this._refreshing||!this._initialized)return V();this._refreshing=!0;const O=this.rawInputValue,G=this.value,X=V();return this.rawInputValue=O,this.value&&this.value!==G&&G.indexOf(this.value)===0&&(this.append(G.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,X}runIsolated(V){if(this._isolated||!this._initialized)return V(this);this._isolated=!0;const O=this.state,G=V(this);return this.state=O,delete this._isolated,G}doSkipInvalid(V,O,G){return!!this.skipInvalid}doPrepare(V,O){return O===void 0&&(O={}),g.normalize(this.prepare?this.prepare(V,this,O):V)}doPrepareChar(V,O){return O===void 0&&(O={}),g.normalize(this.prepareChar?this.prepareChar(V,this,O):V)}doValidate(V){return(!this.validate||this.validate(this.value,this,V))&&(!this.parent||this.parent.doValidate(V))}doCommit(){this.commit&&this.commit(this.value,this)}splice(V,O,G,X,Y){G===void 0&&(G=""),X===void 0&&(X=d.NONE),Y===void 0&&(Y={input:!0});const ge=V+O,we=this.extractTail(ge),fe=this.eager===!0||this.eager==="remove";let Me;fe&&(X=Ye(X),Me=this.extractInput(0,ge,{raw:!0}));let ee=V;const he=new g;if(X!==d.NONE&&(ee=this.nearestInputPos(V,O>1&&V!==0&&!fe?d.NONE:X),he.tailShift=ee-V),he.aggregate(this.remove(ee)),fe&&X!==d.NONE&&Me===this.rawInputValue)if(X===d.FORCE_LEFT){let me;for(;Me===this.rawInputValue&&(me=this.displayValue.length);)he.aggregate(new g({tailShift:-1})).aggregate(this.remove(me-1))}else X===d.FORCE_RIGHT&&we.unshift();return he.aggregate(this.append(G,Y,we))}maskEquals(V){return this.mask===V}optionsIsChanged(V){return!te(this,V)}typedValueEquals(V){const O=this.typedValue;return V===O||j1.EMPTY_VALUES.includes(V)&&j1.EMPTY_VALUES.includes(O)||(this.format?this.format(V,this)===this.format(this.typedValue,this):!1)}pad(V){return new g}};F$1.DEFAULTS={skipInvalid:!0};F$1.EMPTY_VALUES=[void 0,null,""];p.Masked=F$1;class L{constructor(V,O){V===void 0&&(V=[]),O===void 0&&(O=0),this.chunks=V,this.from=O}toString(){return this.chunks.map(String).join("")}extend(V){if(!String(V))return;V=P(V)?new D(String(V)):V;const O=this.chunks[this.chunks.length-1],G=O&&(O.stop===V.stop||V.stop==null)&&V.from===O.from+O.toString().length;if(V instanceof D)G?O.extend(V.toString()):this.chunks.push(V);else if(V instanceof L){if(V.stop==null){let X;for(;V.chunks.length&&V.chunks[0].stop==null;)X=V.chunks.shift(),X.from+=V.from,this.extend(X)}V.toString()&&(V.stop=V.blockIndex,this.chunks.push(V))}}appendTo(V){if(!(V instanceof p.MaskedPattern))return new D(this.toString()).appendTo(V);const O=new g;for(let G=0;G<this.chunks.length;++G){const X=this.chunks[G],Y=V._mapPosToBlock(V.displayValue.length),ge=X.stop;let we;if(ge!=null&&(!Y||Y.index<=ge)&&((X instanceof L||V._stops.indexOf(ge)>=0)&&O.aggregate(V._appendPlaceholder(ge)),we=X instanceof L&&V._blocks[ge]),we){const fe=we.appendTail(X);O.aggregate(fe);const Me=X.toString().slice(fe.rawInserted.length);Me&&O.aggregate(V.append(Me,{tail:!0}))}else O.aggregate(V.append(X.toString(),{tail:!0}))}return O}get state(){return{chunks:this.chunks.map(V=>V.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(V){const{chunks:O,...G}=V;Object.assign(this,G),this.chunks=O.map(X=>{const Y="chunks"in X?new L:new D;return Y.state=X,Y})}unshift(V){if(!this.chunks.length||V!=null&&this.from>=V)return"";const O=V!=null?V-this.from:V;let G=0;for(;G<this.chunks.length;){const X=this.chunks[G],Y=X.unshift(O);if(X.toString()){if(!Y)break;++G}else this.chunks.splice(G,1);if(Y)return Y}return""}shift(){if(!this.chunks.length)return"";let V=this.chunks.length-1;for(;0<=V;){const O=this.chunks[V],G=O.shift();if(O.toString()){if(!G)break;--V}else this.chunks.splice(V,1);if(G)return G}return""}}class Qe{constructor(V,O){this.masked=V,this._log=[];const{offset:G,index:X}=V._mapPosToBlock(O)||(O<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=G,this.index=X,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(V){Object.assign(this,V)}pushState(){this._log.push(this.state)}popState(){const V=this._log.pop();return V&&(this.state=V),V}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(V){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((O=this.block)==null?void 0:O.displayValue.length)||0){var O;if(V())return this.ok=!0}return this.ok=!1}_pushRight(V){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(V())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,d.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,d.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,d.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,d.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,d.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,d.NONE),!0})}}class ye{constructor(V){Object.assign(this,V),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(V,O){return V===void 0&&(V=0),O===void 0&&(O=this._value.length),this._value=this._value.slice(0,V)+this._value.slice(O),this._value||(this._isRawInput=!1),new g}nearestInputPos(V,O){O===void 0&&(O=d.NONE);const G=0,X=this._value.length;switch(O){case d.LEFT:case d.FORCE_LEFT:return G;case d.NONE:case d.RIGHT:case d.FORCE_RIGHT:default:return X}}totalInputPositions(V,O){return V===void 0&&(V=0),O===void 0&&(O=this._value.length),this._isRawInput?O-V:0}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this._value.length),G===void 0&&(G={}),G.raw&&this._isRawInput&&this._value.slice(V,O)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(V,O){if(O===void 0&&(O={}),this.isFilled)return new g;const G=this.eager===!0||this.eager==="append",X=this.char===V&&(this.isUnmasking||O.input||O.raw)&&(!O.raw||!G)&&!O.tail,Y=new g({inserted:this.char,rawInserted:X?this.char:""});return this._value=this.char,this._isRawInput=X&&(O.raw||O.input),Y}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const V=new g;return this.isFilled||(this._value=V.inserted=this.char),V}extractTail(){return new D("")}appendTail(V){return P(V)&&(V=new D(String(V))),V.appendTo(this)}append(V,O,G){const X=this._appendChar(V[0],O);return G!=null&&(X.tailShift+=this.appendTail(G).tailShift),X}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(V){this._value=V._value,this._isRawInput=!!V._rawInputValue}pad(V){return this._appendPlaceholder()}}let se$1=class{constructor(V){const{parent:O,isOptional:G,placeholderChar:X,displayChar:Y,lazy:ge,eager:we,...fe}=V;this.masked=M(fe),Object.assign(this,{parent:O,isOptional:G,placeholderChar:X,displayChar:Y,lazy:ge,eager:we})}reset(){this.isFilled=!1,this.masked.reset()}remove(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.value.length),V===0&&O>=1?(this.isFilled=!1,this.masked.remove(V,O)):new g}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(V,O){if(O===void 0&&(O={}),this.isFilled)return new g;const G=this.masked.state;let X=this.masked._appendChar(V,this.currentMaskFlags(O));return X.inserted&&this.doValidate(O)===!1&&(X=new g,this.masked.state=G),!X.inserted&&!this.isOptional&&!this.lazy&&!O.input&&(X.inserted=this.placeholderChar),X.skip=!X.inserted&&!this.isOptional,this.isFilled=!!X.inserted,X}append(V,O,G){return this.masked.append(V,this.currentMaskFlags(O),G)}_appendPlaceholder(){return this.isFilled||this.isOptional?new g:(this.isFilled=!0,new g({inserted:this.placeholderChar}))}_appendEager(){return new g}extractTail(V,O){return this.masked.extractTail(V,O)}appendTail(V){return this.masked.appendTail(V)}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this.value.length),this.masked.extractInput(V,O,G)}nearestInputPos(V,O){O===void 0&&(O=d.NONE);const G=0,X=this.value.length,Y=Math.min(Math.max(V,G),X);switch(O){case d.LEFT:case d.FORCE_LEFT:return this.isComplete?Y:G;case d.RIGHT:case d.FORCE_RIGHT:return this.isComplete?Y:X;case d.NONE:default:return Y}}totalInputPositions(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.value.length),this.value.slice(V,O).length}doValidate(V){return this.masked.doValidate(this.currentMaskFlags(V))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(V)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(V){this.masked.state=V.masked,this.isFilled=V.isFilled}currentMaskFlags(V){var O;return{...V,_beforeTailState:(V==null||(O=V._beforeTailState)==null?void 0:O.masked)||V?._beforeTailState}}pad(V){return new g}};se$1.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class et extends F$1{updateOptions(V){super.updateOptions(V)}_update(V){const O=V.mask;O&&(V.validate=G=>G.search(O)>=0),super._update(V)}}p.MaskedRegExp=et;class x extends F$1{constructor(V){super({...x.DEFAULTS,...V,definitions:Object.assign({},se$1.DEFAULT_DEFINITIONS,V?.definitions)})}updateOptions(V){super.updateOptions(V)}_update(V){V.definitions=Object.assign({},this.definitions,V.definitions),super._update(V),this._rebuildMask()}_rebuildMask(){const V=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const O=this.mask;if(!O||!V)return;let G=!1,X=!1;for(let Y=0;Y<O.length;++Y){if(this.blocks){const Me=O.slice(Y),ee=Object.keys(this.blocks).filter(me=>Me.indexOf(me)===0);ee.sort((me,Te)=>Te.length-me.length);const he=ee[0];if(he){const{expose:me,repeat:Te,...Oe}=Z(this.blocks[he]),Pe={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...Oe,repeat:Te,parent:this},Ne=Te!=null?new p.RepeatBlock(Pe):M(Pe);Ne&&(this._blocks.push(Ne),me&&(this.exposeBlock=Ne),this._maskedBlocks[he]||(this._maskedBlocks[he]=[]),this._maskedBlocks[he].push(this._blocks.length-1)),Y+=he.length-1;continue}}let ge=O[Y],we=ge in V;if(ge===x.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(ge==="{"||ge==="}"){G=!G;continue}if(ge==="["||ge==="]"){X=!X;continue}if(ge===x.ESCAPE_CHAR){if(++Y,ge=O[Y],!ge)break;we=!1}const fe=we?new se$1({isOptional:X,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...Z(V[ge]),parent:this}):new ye({char:ge,eager:this.eager,isUnmasking:G});this._blocks.push(fe)}}get state(){return{...super.state,_blocks:this._blocks.map(V=>V.state)}}set state(V){if(!V){this.reset();return}const{_blocks:O,...G}=V;this._blocks.forEach((X,Y)=>X.state=O[Y]),super.state=G}reset(){super.reset(),this._blocks.forEach(V=>V.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(V=>V.isComplete)}get isFilled(){return this._blocks.every(V=>V.isFilled)}get isFixed(){return this._blocks.every(V=>V.isFixed)}get isOptional(){return this._blocks.every(V=>V.isOptional)}doCommit(){this._blocks.forEach(V=>V.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((V,O)=>V+=O.unmaskedValue,"")}set unmaskedValue(V){if(this.exposeBlock){const O=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=V,this.appendTail(O),this.doCommit()}else super.unmaskedValue=V}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((V,O)=>V+=O.value,"")}set value(V){if(this.exposeBlock){const O=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=V,this.appendTail(O),this.doCommit()}else super.value=V}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(V){if(this.exposeBlock){const O=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=V,this.appendTail(O),this.doCommit()}else super.typedValue=V}get displayValue(){return this._blocks.reduce((V,O)=>V+=O.displayValue,"")}appendTail(V){return super.appendTail(V).aggregate(this._appendPlaceholder())}_appendEager(){var V;const O=new g;let G=(V=this._mapPosToBlock(this.displayValue.length))==null?void 0:V.index;if(G==null)return O;this._blocks[G].isFilled&&++G;for(let X=G;X<this._blocks.length;++X){const Y=this._blocks[X]._appendEager();if(!Y.inserted)break;O.aggregate(Y)}return O}_appendCharRaw(V,O){O===void 0&&(O={});const G=this._mapPosToBlock(this.displayValue.length),X=new g;if(!G)return X;for(let ge=G.index,we;we=this._blocks[ge];++ge){var Y;const fe=we._appendChar(V,{...O,_beforeTailState:(Y=O._beforeTailState)==null||(Y=Y._blocks)==null?void 0:Y[ge]});if(X.aggregate(fe),fe.consumed)break}return X}extractTail(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);const G=new L;return V===O||this._forEachBlocksInRange(V,O,(X,Y,ge,we)=>{const fe=X.extractTail(ge,we);fe.stop=this._findStopBefore(Y),fe.from=this._blockStartPos(Y),fe instanceof L&&(fe.blockIndex=Y),G.extend(fe)}),G}extractInput(V,O,G){if(V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),G===void 0&&(G={}),V===O)return"";let X="";return this._forEachBlocksInRange(V,O,(Y,ge,we,fe)=>{X+=Y.extractInput(we,fe,G)}),X}_findStopBefore(V){let O;for(let G=0;G<this._stops.length;++G){const X=this._stops[G];if(X<=V)O=X;else break}return O}_appendPlaceholder(V){const O=new g;if(this.lazy&&V==null)return O;const G=this._mapPosToBlock(this.displayValue.length);if(!G)return O;const X=G.index,Y=V??this._blocks.length;return this._blocks.slice(X,Y).forEach(ge=>{if(!ge.lazy||V!=null){var we;O.aggregate(ge._appendPlaceholder((we=ge._blocks)==null?void 0:we.length))}}),O}_mapPosToBlock(V){let O="";for(let G=0;G<this._blocks.length;++G){const X=this._blocks[G],Y=O.length;if(O+=X.displayValue,V<=O.length)return{index:G,offset:V-Y}}}_blockStartPos(V){return this._blocks.slice(0,V).reduce((O,G)=>O+=G.displayValue.length,0)}_forEachBlocksInRange(V,O,G){O===void 0&&(O=this.displayValue.length);const X=this._mapPosToBlock(V);if(X){const Y=this._mapPosToBlock(O),ge=Y&&X.index===Y.index,we=X.offset,fe=Y&&ge?Y.offset:this._blocks[X.index].displayValue.length;if(G(this._blocks[X.index],X.index,we,fe),Y&&!ge){for(let Me=X.index+1;Me<Y.index;++Me)G(this._blocks[Me],Me,0,this._blocks[Me].displayValue.length);G(this._blocks[Y.index],Y.index,0,Y.offset)}}}remove(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);const G=super.remove(V,O);return this._forEachBlocksInRange(V,O,(X,Y,ge,we)=>{G.aggregate(X.remove(ge,we))}),G}nearestInputPos(V,O){if(O===void 0&&(O=d.NONE),!this._blocks.length)return 0;const G=new Qe(this,V);if(O===d.NONE)return G.pushRightBeforeInput()||(G.popState(),G.pushLeftBeforeInput())?G.pos:this.displayValue.length;if(O===d.LEFT||O===d.FORCE_LEFT){if(O===d.LEFT){if(G.pushRightBeforeFilled(),G.ok&&G.pos===V)return V;G.popState()}if(G.pushLeftBeforeInput(),G.pushLeftBeforeRequired(),G.pushLeftBeforeFilled(),O===d.LEFT){if(G.pushRightBeforeInput(),G.pushRightBeforeRequired(),G.ok&&G.pos<=V||(G.popState(),G.ok&&G.pos<=V))return G.pos;G.popState()}return G.ok?G.pos:O===d.FORCE_LEFT?0:(G.popState(),G.ok||(G.popState(),G.ok)?G.pos:0)}return O===d.RIGHT||O===d.FORCE_RIGHT?(G.pushRightBeforeInput(),G.pushRightBeforeRequired(),G.pushRightBeforeFilled()?G.pos:O===d.FORCE_RIGHT?this.displayValue.length:(G.popState(),G.ok||(G.popState(),G.ok)?G.pos:this.nearestInputPos(V,d.LEFT))):V}totalInputPositions(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);let G=0;return this._forEachBlocksInRange(V,O,(X,Y,ge,we)=>{G+=X.totalInputPositions(ge,we)}),G}maskedBlock(V){return this.maskedBlocks(V)[0]}maskedBlocks(V){const O=this._maskedBlocks[V];return O?O.map(G=>this._blocks[G]):[]}pad(V){const O=new g;return this._forEachBlocksInRange(0,this.displayValue.length,G=>O.aggregate(G.pad(V))),O}}x.DEFAULTS={...F$1.DEFAULTS,lazy:!0,placeholderChar:"_"};x.STOP_CHAR="`";x.ESCAPE_CHAR="\\";x.InputDefinition=se$1;x.FixedDefinition=ye;p.MaskedPattern=x;class W extends x{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(V){super(V)}updateOptions(V){super.updateOptions(V)}_update(V){const{to:O=this.to||0,from:G=this.from||0,maxLength:X=this.maxLength||0,autofix:Y=this.autofix,...ge}=V;this.to=O,this.from=G,this.maxLength=Math.max(String(O).length,X),this.autofix=Y;const we=String(this.from).padStart(this.maxLength,"0"),fe=String(this.to).padStart(this.maxLength,"0");let Me=0;for(;Me<fe.length&&fe[Me]===we[Me];)++Me;ge.mask=fe.slice(0,Me).replace(/0/g,"\\0")+"0".repeat(this.maxLength-Me),super._update(ge)}get isComplete(){return super.isComplete&&!!this.value}boundaries(V){let O="",G="";const[,X,Y]=V.match(/^(\D*)(\d*)(\D*)/)||[];return Y&&(O="0".repeat(X.length)+Y,G="9".repeat(X.length)+Y),O=O.padEnd(this.maxLength,"0"),G=G.padEnd(this.maxLength,"9"),[O,G]}doPrepareChar(V,O){O===void 0&&(O={});let G;return[V,G]=super.doPrepareChar(V.replace(/\D/g,""),O),V||(G.skip=!this.isComplete),[V,G]}_appendCharRaw(V,O){if(O===void 0&&(O={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(V,O);const G=String(this.from).padStart(this.maxLength,"0"),X=String(this.to).padStart(this.maxLength,"0"),[Y,ge]=this.boundaries(this.value+V);return Number(ge)<this.from?super._appendCharRaw(G[this.value.length],O):Number(Y)>this.to?!O.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(G[this.value.length],O).aggregate(this._appendCharRaw(V,O)):super._appendCharRaw(X[this.value.length],O):super._appendCharRaw(V,O)}doValidate(V){const O=this.value;if(O.search(/[^0]/)===-1&&O.length<=this._matchFrom)return!0;const[G,X]=this.boundaries(O);return this.from<=Number(X)&&Number(G)<=this.to&&super.doValidate(V)}pad(V){const O=new g;if(this.value.length===this.maxLength)return O;const G=this.value,X=this.maxLength-this.value.length;if(X){this.reset();for(let Y=0;Y<X;++Y)O.aggregate(super._appendCharRaw("0",V));G.split("").forEach(Y=>this._appendCharRaw(Y))}return O}}p.MaskedRange=W;const tt="d{.}`m{.}`Y";let I$1=class Ew extends x{static extractPatternOptions(V){const{mask:O,pattern:G,...X}=V;return{...X,mask:P(O)?O:G}}constructor(V){super(Ew.extractPatternOptions({...Ew.DEFAULTS,...V}))}updateOptions(V){super.updateOptions(V)}_update(V){const{mask:O,pattern:G,blocks:X,...Y}={...Ew.DEFAULTS,...V},ge=Object.assign({},Ew.GET_DEFAULT_BLOCKS());V.min&&(ge.Y.from=V.min.getFullYear()),V.max&&(ge.Y.to=V.max.getFullYear()),V.min&&V.max&&ge.Y.from===ge.Y.to&&(ge.m.from=V.min.getMonth()+1,ge.m.to=V.max.getMonth()+1,ge.m.from===ge.m.to&&(ge.d.from=V.min.getDate(),ge.d.to=V.max.getDate())),Object.assign(ge,this.blocks,X),super._update({...Y,mask:P(O)?O:G,blocks:ge})}doValidate(V){const O=this.date;return super.doValidate(V)&&(!this.isComplete||this.isDateExist(this.value)&&O!=null&&(this.min==null||this.min<=O)&&(this.max==null||O<=this.max))}isDateExist(V){return this.format(this.parse(V,this),this).indexOf(V)>=0}get date(){return this.typedValue}set date(V){this.typedValue=V}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(V){super.typedValue=V}maskEquals(V){return V===Date||super.maskEquals(V)}optionsIsChanged(V){return super.optionsIsChanged(Ew.extractPatternOptions(V))}};I$1.GET_DEFAULT_BLOCKS=()=>({d:{mask:W,from:1,to:31,maxLength:2},m:{mask:W,from:1,to:12,maxLength:2},Y:{mask:W,from:1900,to:9999}});I$1.DEFAULTS={...x.DEFAULTS,mask:Date,pattern:tt,format:(Mt,V)=>{if(!Mt)return"";const O=String(Mt.getDate()).padStart(2,"0"),G=String(Mt.getMonth()+1).padStart(2,"0"),X=Mt.getFullYear();return[O,G,X].join(".")},parse:(Mt,V)=>{const[O,G,X]=Mt.split(".").map(Number);return new Date(X,G-1,O)}};p.MaskedDate=I$1;let ne$1=class FT extends F$1{constructor(V){super({...FT.DEFAULTS,...V}),this.currentMask=void 0}updateOptions(V){super.updateOptions(V)}_update(V){super._update(V),"mask"in V&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(V.mask)?V.mask.map(O=>{const{expose:G,...X}=Z(O),Y=M({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...X});return G&&(this.exposeMask=Y),Y}):[])}_appendCharRaw(V,O){O===void 0&&(O={});const G=this._applyDispatch(V,O);return this.currentMask&&G.aggregate(this.currentMask._appendChar(V,this.currentMaskFlags(O))),G}_applyDispatch(V,O,G){V===void 0&&(V=""),O===void 0&&(O={}),G===void 0&&(G="");const X=O.tail&&O._beforeTailState!=null?O._beforeTailState._value:this.value,Y=this.rawInputValue,ge=O.tail&&O._beforeTailState!=null?O._beforeTailState._rawInputValue:Y,we=Y.slice(ge.length),fe=this.currentMask,Me=new g,ee=fe?.state;return this.currentMask=this.doDispatch(V,{...O},G),this.currentMask&&(this.currentMask!==fe?(this.currentMask.reset(),ge&&(this.currentMask.append(ge,{raw:!0}),Me.tailShift=this.currentMask.value.length-X.length),we&&(Me.tailShift+=this.currentMask.append(we,{raw:!0,tail:!0}).tailShift)):ee&&(this.currentMask.state=ee)),Me}_appendPlaceholder(){const V=this._applyDispatch();return this.currentMask&&V.aggregate(this.currentMask._appendPlaceholder()),V}_appendEager(){const V=this._applyDispatch();return this.currentMask&&V.aggregate(this.currentMask._appendEager()),V}appendTail(V){const O=new g;return V&&O.aggregate(this._applyDispatch("",{},V)),O.aggregate(this.currentMask?this.currentMask.appendTail(V):super.appendTail(V))}currentMaskFlags(V){var O,G;return{...V,_beforeTailState:((O=V._beforeTailState)==null?void 0:O.currentMaskRef)===this.currentMask&&((G=V._beforeTailState)==null?void 0:G.currentMask)||V._beforeTailState}}doDispatch(V,O,G){return O===void 0&&(O={}),G===void 0&&(G=""),this.dispatch(V,this,O,G)}doValidate(V){return super.doValidate(V)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(V)))}doPrepare(V,O){O===void 0&&(O={});let[G,X]=super.doPrepare(V,O);if(this.currentMask){let Y;[G,Y]=super.doPrepare(G,this.currentMaskFlags(O)),X=X.aggregate(Y)}return[G,X]}doPrepareChar(V,O){O===void 0&&(O={});let[G,X]=super.doPrepareChar(V,O);if(this.currentMask){let Y;[G,Y]=super.doPrepareChar(G,this.currentMaskFlags(O)),X=X.aggregate(Y)}return[G,X]}reset(){var V;(V=this.currentMask)==null||V.reset(),this.compiledMasks.forEach(O=>O.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(V){this.exposeMask?(this.exposeMask.value=V,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=V}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(V){this.exposeMask?(this.exposeMask.unmaskedValue=V,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=V}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(V){if(this.exposeMask){this.exposeMask.typedValue=V,this.currentMask=this.exposeMask,this._applyDispatch();return}let O=String(V);this.currentMask&&(this.currentMask.typedValue=V,O=this.currentMask.unmaskedValue),this.unmaskedValue=O}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var V;return!!((V=this.currentMask)!=null&&V.isComplete)}get isFilled(){var V;return!!((V=this.currentMask)!=null&&V.isFilled)}remove(V,O){const G=new g;return this.currentMask&&G.aggregate(this.currentMask.remove(V,O)).aggregate(this._applyDispatch()),G}get state(){var V;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(O=>O.state),currentMaskRef:this.currentMask,currentMask:(V=this.currentMask)==null?void 0:V.state}}set state(V){const{compiledMasks:O,currentMaskRef:G,currentMask:X,...Y}=V;O&&this.compiledMasks.forEach((ge,we)=>ge.state=O[we]),G!=null&&(this.currentMask=G,this.currentMask.state=X),super.state=Y}extractInput(V,O,G){return this.currentMask?this.currentMask.extractInput(V,O,G):""}extractTail(V,O){return this.currentMask?this.currentMask.extractTail(V,O):super.extractTail(V,O)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(V,O){return this.currentMask?this.currentMask.nearestInputPos(V,O):super.nearestInputPos(V,O)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(V){this._overwrite=V}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(V){this._eager=V}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(V){this._skipInvalid=V}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(V){this._autofix=V}maskEquals(V){return Array.isArray(V)?this.compiledMasks.every((O,G)=>{if(!V[G])return;const{mask:X,...Y}=V[G];return te(O,Y)&&O.maskEquals(X)}):super.maskEquals(V)}typedValueEquals(V){var O;return!!((O=this.currentMask)!=null&&O.typedValueEquals(V))}};ne$1.DEFAULTS={...F$1.DEFAULTS,dispatch:(Mt,V,O,G)=>{if(!V.compiledMasks.length)return;const X=V.rawInputValue,Y=V.compiledMasks.map((ge,we)=>{const fe=V.currentMask===ge,Me=fe?ge.displayValue.length:ge.nearestInputPos(ge.displayValue.length,d.FORCE_LEFT);return ge.rawInputValue!==X?(ge.reset(),ge.append(X,{raw:!0})):fe||ge.remove(Me),ge.append(Mt,V.currentMaskFlags(O)),ge.appendTail(G),{index:we,weight:ge.rawInputValue.length,totalInputPositions:ge.totalInputPositions(0,Math.max(Me,ge.nearestInputPos(ge.displayValue.length,d.FORCE_LEFT)))}});return Y.sort((ge,we)=>we.weight-ge.weight||we.totalInputPositions-ge.totalInputPositions),V.compiledMasks[Y[0].index]}};p.MaskedDynamic=ne$1;class ue extends x{constructor(V){super({...ue.DEFAULTS,...V})}updateOptions(V){super.updateOptions(V)}_update(V){const{enum:O,...G}=V;if(O){const X=O.map(we=>we.length),Y=Math.min(...X),ge=Math.max(...X)-Y;G.mask="*".repeat(Y),ge&&(G.mask+="["+"*".repeat(ge)+"]"),this.enum=O}super._update(G)}_appendCharRaw(V,O){O===void 0&&(O={});const G=Math.min(this.nearestInputPos(0,d.FORCE_RIGHT),this.value.length),X=this.enum.filter(Y=>this.matchValue(Y,this.unmaskedValue+V,G));if(X.length){X.length===1&&this._forEachBlocksInRange(0,this.value.length,(ge,we)=>{const fe=X[0][we];we>=this.value.length||fe===ge.value||(ge.reset(),ge._appendChar(fe,O))});const Y=super._appendCharRaw(X[0][this.value.length],O);return X.length===1&&X[0].slice(this.unmaskedValue.length).split("").forEach(ge=>Y.aggregate(super._appendCharRaw(ge))),Y}return new g({skip:!this.isComplete})}extractTail(V,O){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),new D("",V)}remove(V,O){if(V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),V===O)return new g;const G=Math.min(super.nearestInputPos(0,d.FORCE_RIGHT),this.value.length);let X;for(X=V;X>=0&&!(this.enum.filter(ge=>this.matchValue(ge,this.value.slice(G,X),G)).length>1);--X);const Y=super.remove(X,O);return Y.tailShift+=X-V,Y}get isComplete(){return this.enum.indexOf(this.value)>=0}}ue.DEFAULTS={...x.DEFAULTS,matchValue:(Mt,V,O)=>Mt.indexOf(V,O)===O};p.MaskedEnum=ue;class st extends F$1{updateOptions(V){super.updateOptions(V)}_update(V){super._update({...V,validate:V.mask})}}p.MaskedFunction=st;var be;class S extends F$1{constructor(V){super({...S.DEFAULTS,...V})}updateOptions(V){super.updateOptions(V)}_update(V){super._update(V),this._updateRegExps()}_updateRegExps(){const V="^"+(this.allowNegative?"[+|\\-]?":""),O="\\d*",G=(this.scale?"("+oe$1(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(V+O+G),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(oe$1).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp(oe$1(this.thousandsSeparator),"g")}_removeThousandsSeparators(V){return V.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(V){const O=V.split(this.radix);return O[0]=O[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),O.join(this.radix)}doPrepareChar(V,O){O===void 0&&(O={});const[G,X]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(O.input&&O.raw||!O.input&&!O.raw)?V.replace(this._mapToRadixRegExp,this.radix):V),O);return V&&!G&&(X.skip=!0),G&&!this.allowPositive&&!this.value&&G!=="-"&&X.aggregate(this._appendChar("-")),[G,X]}_separatorsCount(V,O){O===void 0&&(O=!1);let G=0;for(let X=0;X<V;++X)this._value.indexOf(this.thousandsSeparator,X)===X&&(++G,O&&(V+=this.thousandsSeparator.length));return G}_separatorsCountFromSlice(V){return V===void 0&&(V=this._value),this._separatorsCount(this._removeThousandsSeparators(V).length,!0)}extractInput(V,O,G){return V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),[V,O]=this._adjustRangeWithSeparators(V,O),this._removeThousandsSeparators(super.extractInput(V,O,G))}_appendCharRaw(V,O){O===void 0&&(O={});const G=O.tail&&O._beforeTailState?O._beforeTailState._value:this._value,X=this._separatorsCountFromSlice(G);this._value=this._removeThousandsSeparators(this.value);const Y=this._value;this._value+=V;const ge=this.number;let we=!isNaN(ge),fe=!1;if(we){let me;this.min!=null&&this.min<0&&this.number<this.min&&(me=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(me=this.max),me!=null&&(this.autofix?(this._value=this.format(me,this).replace(S.UNMASKED_RADIX,this.radix),fe||(fe=Y===this._value&&!O.tail)):we=!1),we&&(we=!!this._value.match(this._numberRegExp))}let Me;we?Me=new g({inserted:this._value.slice(Y.length),rawInserted:fe?"":V,skip:fe}):(this._value=Y,Me=new g),this._value=this._insertThousandsSeparators(this._value);const ee=O.tail&&O._beforeTailState?O._beforeTailState._value:this._value,he=this._separatorsCountFromSlice(ee);return Me.tailShift+=(he-X)*this.thousandsSeparator.length,Me}_findSeparatorAround(V){if(this.thousandsSeparator){const O=V-this.thousandsSeparator.length+1,G=this.value.indexOf(this.thousandsSeparator,O);if(G<=V)return G}return-1}_adjustRangeWithSeparators(V,O){const G=this._findSeparatorAround(V);G>=0&&(V=G);const X=this._findSeparatorAround(O);return X>=0&&(O=X+this.thousandsSeparator.length),[V,O]}remove(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length),[V,O]=this._adjustRangeWithSeparators(V,O);const G=this.value.slice(0,V),X=this.value.slice(O),Y=this._separatorsCount(G.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(G+X));const ge=this._separatorsCountFromSlice(G);return new g({tailShift:(ge-Y)*this.thousandsSeparator.length})}nearestInputPos(V,O){if(!this.thousandsSeparator)return V;switch(O){case d.NONE:case d.LEFT:case d.FORCE_LEFT:{const G=this._findSeparatorAround(V-1);if(G>=0){const X=G+this.thousandsSeparator.length;if(V<X||this.value.length<=X||O===d.FORCE_LEFT)return G}break}case d.RIGHT:case d.FORCE_RIGHT:{const G=this._findSeparatorAround(V);if(G>=0)return G+this.thousandsSeparator.length}}return V}doCommit(){if(this.value){const V=this.number;let O=V;this.min!=null&&(O=Math.max(O,this.min)),this.max!=null&&(O=Math.min(O,this.max)),O!==V&&(this.unmaskedValue=this.format(O,this));let G=this.value;this.normalizeZeros&&(G=this._normalizeZeros(G)),this.padFractionalZeros&&this.scale>0&&(G=this._padFractionalZeros(G)),this._value=G}super.doCommit()}_normalizeZeros(V){const O=this._removeThousandsSeparators(V).split(this.radix);return O[0]=O[0].replace(/^(\D*)(0*)(\d*)/,(G,X,Y,ge)=>X+ge),V.length&&!/\d$/.test(O[0])&&(O[0]=O[0]+"0"),O.length>1&&(O[1]=O[1].replace(/0*$/,""),O[1].length||(O.length=1)),this._insertThousandsSeparators(O.join(this.radix))}_padFractionalZeros(V){if(!V)return V;const O=V.split(this.radix);return O.length<2&&O.push(""),O[1]=O[1].padEnd(this.scale,"0"),O.join(this.radix)}doSkipInvalid(V,O,G){O===void 0&&(O={});const X=this.scale===0&&V!==this.thousandsSeparator&&(V===this.radix||V===S.UNMASKED_RADIX||this.mapToRadix.includes(V));return super.doSkipInvalid(V,O,G)&&!X}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,S.UNMASKED_RADIX)}set unmaskedValue(V){super.unmaskedValue=V}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(V){this.rawInputValue=this.format(V,this).replace(S.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(V){this.typedValue=V}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(V){return(super.typedValueEquals(V)||S.EMPTY_VALUES.includes(V)&&S.EMPTY_VALUES.includes(this.typedValue))&&!(V===0&&this.value==="")}}be=S;S.UNMASKED_RADIX=".";S.EMPTY_VALUES=[...F$1.EMPTY_VALUES,0];S.DEFAULTS={...F$1.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[be.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:Mt=>Mt.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};p.MaskedNumber=S;const de={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function Se(Mt,V,O){V===void 0&&(V=de.MASKED),O===void 0&&(O=de.MASKED);const G=M(Mt);return X=>G.runIsolated(Y=>(Y[V]=X,Y[O]))}function it(Mt,V,O,G){return Se(V,O,G)(Mt)}p.PIPE_TYPE=de;p.createPipe=Se;p.pipe=it;class at extends x{get repeatFrom(){var V;return(V=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?V:0}get repeatTo(){var V;return(V=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?V:1/0}constructor(V){super(V)}updateOptions(V){super.updateOptions(V)}_update(V){var O,G,X;const{repeat:Y,...ge}=Z(V);this._blockOpts=Object.assign({},this._blockOpts,ge);const we=M(this._blockOpts);this.repeat=(O=(G=Y??we.repeat)!=null?G:this.repeat)!=null?O:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((X=this._blocks)==null?void 0:X.length)||0,this.repeatFrom)),blocks:{m:we},eager:we.eager,overwrite:we.overwrite,skipInvalid:we.skipInvalid,lazy:we.lazy,placeholderChar:we.placeholderChar,displayChar:we.displayChar})}_allocateBlock(V){if(V<this._blocks.length)return this._blocks[V];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(M(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(V,O){O===void 0&&(O={});const G=new g;for(let fe=(X=(Y=this._mapPosToBlock(this.displayValue.length))==null?void 0:Y.index)!=null?X:Math.max(this._blocks.length-1,0),Me,ee;Me=(ge=this._blocks[fe])!=null?ge:ee=!ee&&this._allocateBlock(fe);++fe){var X,Y,ge,we;const he=Me._appendChar(V,{...O,_beforeTailState:(we=O._beforeTailState)==null||(we=we._blocks)==null?void 0:we[fe]});if(he.skip&&ee){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(G.aggregate(he),he.consumed)break}return G}_trimEmptyTail(V,O){var G,X;V===void 0&&(V=0);const Y=Math.max(((G=this._mapPosToBlock(V))==null?void 0:G.index)||0,this.repeatFrom,0);let ge;O!=null&&(ge=(X=this._mapPosToBlock(O))==null?void 0:X.index),ge==null&&(ge=this._blocks.length-1);let we=0;for(let fe=ge;Y<=fe&&!this._blocks[fe].unmaskedValue;--fe,++we);we&&(this._blocks.splice(ge-we+1,we),this.mask=this.mask.slice(we))}reset(){super.reset(),this._trimEmptyTail()}remove(V,O){V===void 0&&(V=0),O===void 0&&(O=this.displayValue.length);const G=super.remove(V,O);return this._trimEmptyTail(V,O),G}totalInputPositions(V,O){return V===void 0&&(V=0),O==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(V,O)}get state(){return super.state}set state(V){this._blocks.length=V._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=V}}p.RepeatBlock=at;try{globalThis.IMask=p}catch{}var nt={mask:void 0,prepare:Function,prepareChar:Function,validate:Function,commit:Function,overwrite:{type:Boolean,required:!1,default:void 0},eager:{required:!1,default:void 0,validator:Mt=>["append","remove"].includes(Mt)||typeof Mt=="boolean"},skipInvalid:{type:Boolean,required:!1,default:void 0},placeholderChar:String,displayChar:String,lazy:{type:Boolean,required:!1,default:void 0},definitions:Object,blocks:Object,enum:Array,maxLength:Number,from:Number,to:Number,pattern:String,format:Function,parse:Function,autofix:{required:!1,default:void 0,validator:Mt=>Mt==="pad"||typeof Mt=="boolean"},radix:String,thousandsSeparator:String,mapToRadix:Array,scale:Number,normalizeZeros:{type:Boolean,required:!1,default:void 0},padFractionalZeros:{type:Boolean,required:!1,default:void 0},min:[Number,Date],max:[Number,Date],dispatch:Function};function ut(Mt,V){let{emit:O,onAccept:G,onComplete:X,defaultValue:Y,defaultUnmaskedValue:ge,defaultTypedValue:we}=V===void 0?{}:V;const fe=vue.isRef(Mt)?Mt:vue.ref(Mt),Me=vue.ref(),ee=vue.ref(),he=vue.ref(""),me=vue.ref(""),Te=vue.ref();let Oe,Pe=he.value,Ne=me.value,Le=Te.value;function De(){Le=Te.value=ee.value.typedValue,Ne=me.value=ee.value.unmaskedValue,Pe=he.value=ee.value.value}function bt(Nt){De(),O&&(O("accept",he.value,Nt),O("accept:masked",he.value,Nt),O("accept:typed",Te.value,Nt),O("accept:unmasked",me.value,Nt)),G?.(Nt)}function wt(Nt){O&&(O("complete",ee.value.value,Nt),O("complete:masked",ee.value.value,Nt),O("complete:typed",ee.value.typedValue,Nt),O("complete:unmasked",ee.value.unmaskedValue,Nt)),X?.(Nt)}const jt=()=>{!ee.value||me.value===void 0||(Ne!==me.value&&(ee.value.unmaskedValue=me.value,ee.value.unmaskedValue!==me.value&&bt()),Ne=void 0)};vue.watch(me,jt);const Tt=()=>{!ee.value||he.value===void 0||(Pe!==he.value&&(ee.value.value=he.value,ee.value.value!==he.value&&bt()),Pe=void 0)};vue.watch(he,Tt);const St=()=>{!ee.value||Te.value===void 0||(Le!==Te.value&&(ee.value.typedValue=Te.value,ee.value.masked.typedValueEquals(Te.value)||bt()),Le=void 0)};vue.watch(Te,St);function Ot(){Oe=Me.value;const Nt=fe.value;!Oe||!(Nt!=null&&Nt.mask)||(ee.value=p(Oe,Nt),Y!==void 0&&(he.value=Y),ge!==void 0&&(me.value=ge),we!==void 0&&(Te.value=we),jt(),Tt(),St(),De(),ee.value.on("accept",bt).on("complete",wt))}function It(){var Nt;(Nt=ee.value)==null||Nt.destroy(),ee.value=void 0}return vue.onMounted(Ot),vue.onUnmounted(It),vue.watch([Me,fe],()=>{const Nt=Me.value,Lt=fe.value;(!(Lt!=null&&Lt.mask)||Nt!==Oe)&&It(),Nt&&(ee.value?ee.value.updateOptions(Lt):Ot())}),{el:Me,mask:vue.readonly(ee),masked:he,unmasked:me,typed:Te}}function rt(Mt,V){return Mt={...Mt},Object.keys(Mt).forEach(O=>{(Mt[O]===void 0||V.includes(O))&&delete Mt[O]}),Mt}const lt=["typed","unmasked","value","modelValue"];var ot=vue.defineComponent({name:"imask-input",inheritAttrs:!1,props:{modelValue:String,value:String,unmasked:String,typed:{validator:()=>!0},...nt},emits:["update:modelValue","update:masked","update:value","update:unmasked","update:typed","accept","accept:value","accept:masked","accept:unmasked","accept:typed","complete","complete:value","complete:masked","complete:unmasked","complete:typed"],setup(Mt,V){let{attrs:O,emit:G}=V;const{el:X,mask:Y,masked:ge,unmasked:we,typed:fe}=ut(rt(Mt,lt),{emit:G,onAccept:Te=>{const Oe=ge.value;G("accept:value",Oe,Te),G("update:value",Oe,Te),G("update:masked",Oe,Te),G("update:modelValue",Oe,Te),G("update:unmasked",we.value,Te),G("update:typed",fe.value,Te)},onComplete:Te=>{G("complete:value",ge.value,Te)}}),Me=vue.toRef(Mt,"value"),ee=vue.toRef(Mt,"modelValue"),he=vue.toRef(Mt,"unmasked"),me=vue.toRef(Mt,"typed");return ge.value=ee.value||Me.value||"",we.value=he.value||"",fe.value=me.value,vue.watch(Me,Te=>ge.value=Te),vue.watch(ee,Te=>ge.value=Te),vue.watch(he,Te=>we.value=Te),vue.watch(me,Te=>fe.value=Te),()=>{const Te={...O,value:Mt.value!=null?Mt.value:Mt.modelValue!=null?Mt.modelValue:Y.value?Y.value.displayValue:"",ref:X};return Mt.mask||(Te.onInput=Oe=>{G("update:modelValue",Oe.target.value),G("update:value",Oe.target.value)}),vue.h("input",Te)}}}),ht=ot;const dt=["for"],pt={class:"state-layer"},ct={class:"content"},mt={class:"input-text-container"},gt=["id","placeholder","aria-label"],ft={key:1,class:"has-text-body-small phila-supporting-text"},kt={key:2,class:"has-text-body-small phila-error-text"},vt=vue.defineComponent({inheritAttrs:!1,__name:"TextField",props:{modelValue:{default:void 0},className:{default:""},label:{default:""},id:{default:`phila-text-field-${Math.random().toString(36).substring(2,9)}`},imaskProps:{default:void 0},supportingText:{default:""},placeholder:{default:""},leadingIcon:{default:""},trailingIcon:{default:""},error:{default(){return[]}}},emits:["update:modelValue","complete"],setup(Mt,{expose:V,emit:O}){const G=vue.useAttrs(),X=Mt,Y=vue.computed(()=>typeof X.error=="string"?X.error:X.error[0]),ge=vue.toRef(X,"id"),we=O,fe=vue.ref(""),Me=vue.computed({get:()=>X.modelValue!==void 0?X.modelValue:fe.value,set:Pe=>{we("update:modelValue",Pe),fe.value=Pe}}),ee=vue.computed(()=>{const Pe=["default-class"];return G.disabled!=null&&Pe.push("phila-input--disabled"),Y.value&&Pe.push("phila-input--error"),G.required!=null&&Pe.push("phila-input--required"),ve$1(...Pe)}),he=vue.computed(()=>{const Pe=[];return Me.value!==""&&Pe.push("phila-text-field--filled"),X.className&&Pe.push(X.className),ve$1(...Pe)}),me=vue.computed(()=>{if(!(X.label||G["aria-label"]))return X.placeholder||void 0}),Te=vue.ref(null),Oe=Pe=>{Pe.target.closest("button")||Te.value?.focus()};return V({inputRef:Te}),(Pe,Ne)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["phila-input",ee.value])},[X.label?(vue.openBlock(),vue.createElementBlock("label",{key:0,for:ge.value,class:"has-text-label-small phila-label"},vue.toDisplayString(X.label),9,dt)):vue.createCommentVNode("",!0),vue.createElementVNode("div",{class:vue.normalizeClass(["phila-text-field",he.value]),onClick:vue.withModifiers(Oe,["prevent"])},[vue.createElementVNode("div",pt,[X.leadingIcon?(vue.openBlock(),vue.createBlock(vue.unref(F$2),{key:0,"icon-class":X.leadingIcon,inline:"",decorative:""},null,8,["icon-class"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",ct,[vue.createElementVNode("div",mt,[X.imaskProps?.mask?(vue.openBlock(),vue.createBlock(vue.unref(ht),vue.mergeProps({key:0},{...vue.unref(G),...X.imaskProps},{id:ge.value,modelValue:Me.value,"onUpdate:modelValue":Ne[0]||(Ne[0]=Le=>Me.value=Le),class:"phila-text-field-input has-text-body-default",placeholder:X.placeholder,onComplete:Ne[1]||(Ne[1]=()=>we("complete",fe.value))}),null,16,["id","modelValue","placeholder"])):vue.withDirectives((vue.openBlock(),vue.createElementBlock("input",vue.mergeProps({key:1,id:ge.value,ref_key:"inputRef",ref:Te},vue.unref(G),{"onUpdate:modelValue":Ne[2]||(Ne[2]=Le=>Me.value=Le),class:"phila-text-field-input has-text-body-default",placeholder:X.placeholder,"aria-label":me.value}),null,16,gt)),[[vue.vModelDynamic,Me.value]])])]),Me.value!=""?(vue.openBlock(),vue.createBlock(vue.unref(qe),{key:1,variant:"standard",size:"small","icon-only":"","icon-definition":vue.unref($e),onClick:Ne[3]||(Ne[3]=Le=>Me.value="")},null,8,["icon-definition"])):vue.createCommentVNode("",!0),X.trailingIcon?(vue.openBlock(),vue.createBlock(vue.unref(F$2),{key:2,size:"small","icon-class":X.trailingIcon,inline:"",decorative:""},null,8,["icon-class"])):vue.createCommentVNode("",!0),vue.renderSlot(Pe.$slots,"trailing-action")])],2),X.supportingText?(vue.openBlock(),vue.createElementBlock("div",ft,vue.toDisplayString(X.supportingText),1)):vue.createCommentVNode("",!0),Y.value?(vue.openBlock(),vue.createElementBlock("div",kt,[vue.createVNode(vue.unref(F$2),{"icon-definition":vue.unref(Ke),size:"small",inline:"",decorative:""},null,8,["icon-definition"]),vue.createTextVNode(" "+vue.toDisplayString(Y.value),1)])):vue.createCommentVNode("",!0)],2))}}),_t=["disabled"],Ct=vue.defineComponent({inheritAttrs:!1,__name:"PhlButton",props:{href:{},to:{},target:{},rel:{},disabled:{type:Boolean,default:!1},clickTarget:{},variant:{default:"primary"},size:{default:"medium"},iconOnly:{type:Boolean,default:!1},iconRight:{type:Boolean},text:{},className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{}},setup(Mt){const V=Mt,O=ge=>"href"in ge&&ge.href!==void 0||"to"in ge&&ge.to!==void 0,G=vue.computed(()=>ve$1("phila-button",`phila-button--${V.variant}`,V.size&&`is-${V.size}`,V.iconOnly&&"icon-button",V.iconOnly&&V.variant==="standard"&&"icon-button--standard",V.className)),X=vue.computed(()=>O(V)?"to"in V&&V.to!==void 0?{to:V.to,disabled:V.disabled,className:G.value}:{href:V.href,target:V.target,rel:V.rel,disabled:V.disabled,className:G.value}:{}),Y=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,iconRight:V.iconRight,iconOnly:V.iconOnly,text:V.text,size:V.size}));return(ge,we)=>O(V)?(vue.openBlock(),vue.createBlock(vue.unref(Ee),vue.mergeProps({key:0},{...X.value,...ge.$attrs},{role:"button"}),{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)]),_:3},16)):(vue.openBlock(),vue.createElementBlock("button",vue.mergeProps({key:1,type:"button",disabled:V.disabled,class:G.value},ge.$attrs),[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)],16,_t))}}),Et={key:0,class:"search-suggestions-anchor"},At=["onClick"],Ft=vue.defineComponent({__name:"SearchSuggestions",props:{suggestions:{}},emits:["select","dismiss"],setup(Mt,{expose:V,emit:O}){const G=Mt,X=O,Y=vue.ref(-1),ge=vue.ref(null);vue.watch(()=>G.suggestions,()=>{Y.value=-1});function we(ee){ge.value?.querySelectorAll(".search-suggestion")?.[ee]?.focus()}function fe(){G.suggestions.length&&(Y.value=0,we(0))}function Me(ee){switch(ee.key){case"ArrowDown":{ee.preventDefault();const he=Math.min(Y.value+1,G.suggestions.length-1);Y.value=he,we(he);break}case"ArrowUp":{ee.preventDefault(),Y.value<=0?(Y.value=-1,X("dismiss")):(Y.value-=1,we(Y.value));break}case"Enter":{ee.preventDefault(),Y.value>=0&&X("select",G.suggestions[Y.value]);break}case"Escape":{ee.preventDefault(),X("dismiss");break}}}return V({focusFirst:fe}),(ee,he)=>Mt.suggestions.length?(vue.openBlock(),vue.createElementBlock("div",Et,[vue.createElementVNode("ul",{ref_key:"listRef",ref:ge,class:"search-suggestions",role:"listbox",onKeydown:Me},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Mt.suggestions,(me,Te)=>(vue.openBlock(),vue.createElementBlock("li",{key:me,class:vue.normalizeClass(["search-suggestion",{"search-suggestion--active":Te===Y.value}]),role:"option",tabindex:"-1",onClick:Oe=>X("select",me)},vue.toDisplayString(me),11,At))),128))],544)])):vue.createCommentVNode("",!0)}}),xt=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},yt=xt(Ft,[["__scopeId","data-v-79ffafa6"]]),Vt=vue.defineComponent({inheritAttrs:!1,__name:"Search",props:{modelValue:{default:void 0},placeholder:{default:"Search by title or keyword"},suggestions:{default:()=>[]},className:{}},emits:["update:modelValue","search","select","dismiss"],setup(Mt,{expose:V,emit:O}){const G=vue.useAttrs(),X=Mt,Y=O,ge=vue.ref(null),we=vue.ref(null),fe=vue.computed({get:()=>X.modelValue,set:Ne=>Y("update:modelValue",Ne)}),Me=vue.computed(()=>G["aria-label"]),ee=vue.computed(()=>Object.fromEntries(Object.entries(G).filter(([Ne])=>Ne!=="aria-label"))),he=vue.computed(()=>ve$1("default-class",X.className));function me(){ge.value?.inputRef?.focus()}function Te(Ne){Ne.key==="ArrowDown"&&X.suggestions.length>0&&Ne.target instanceof HTMLInputElement&&(Ne.preventDefault(),we.value?.focusFirst())}function Oe(Ne){Y("update:modelValue",Ne),Y("select",Ne)}function Pe(){Y("dismiss"),me()}return V({focus:me}),(Ne,Le)=>(vue.openBlock(),vue.createElementBlock("div",vue.mergeProps({class:["search",he.value]},ee.value,{onKeydown:Te}),[vue.createVNode(vue.unref(vt),{ref_key:"textFieldRef",ref:ge,modelValue:fe.value,"onUpdate:modelValue":Le[1]||(Le[1]=De=>fe.value=De),"class-name":"phila-text-field--search",placeholder:Mt.placeholder,"aria-label":Me.value,onKeydown:Le[2]||(Le[2]=vue.withKeys(De=>Y("search"),["enter"]))},{"trailing-action":vue.withCtx(()=>[vue.createVNode(vue.unref(Ct),{variant:"standard",size:"small","icon-only":"","icon-definition":vue.unref(ze),"aria-label":"Search","class-name":"phila-button--search",onClick:Le[0]||(Le[0]=De=>Y("search"))},null,8,["icon-definition"])]),_:1},8,["modelValue","placeholder","aria-label"]),X.suggestions.length>0?(vue.openBlock(),vue.createBlock(yt,{key:0,ref_key:"suggestionsRef",ref:we,suggestions:X.suggestions,onSelect:Oe,onDismiss:Pe},null,8,["suggestions"])):vue.createCommentVNode("",!0)],16))}}),_hoisted_1$f=["aria-busy"],_hoisted_2$8={key:0,role:"alert",class:"map-search-error"},_hoisted_3$7={"aria-live":"polite",class:"sr-only"},_hoisted_4$4={key:0},_sfc_main$q=vue.defineComponent({__name:"MapSearchControl",props:{position:{default:"top-left"},placeholder:{default:"Search for an address"},geocode:{type:Boolean,default:!0},centerOnResult:{type:Boolean,default:!0},searchZoom:{default:17},teleportTo:{default:void 0},autocomplete:{type:Boolean,default:!1}},emits:["search","result","error"],setup(Mt,{expose:V,emit:O}){const G=Mt,X=O,Y=vue.inject("map"),ge=vue.ref(""),we=vue.ref(!1),fe=vue.ref(null),Me=vue.ref(null),ee=vue.ref(null),he=G.autocomplete?useMapControl.useAisAddressSuggestions(ge):null,me=vue.computed(()=>he?he.searchSuggestions.value:[]),Te=async()=>{const bt=ge.value.trim();if(X("search",bt),!!bt&&G.geocode){we.value=!0,fe.value=null;try{const jt=await(await fetch(`https://api.phila.gov/ais/v1/search/${encodeURIComponent(bt)}?include_units=false`)).json();if(jt.features&&jt.features.length>0){const Tt=jt.features[0];if(X("result",Tt),G.centerOnResult&&Y?.value&&Tt.geometry?.coordinates){const[St,Ot]=Tt.geometry.coordinates;Y.value.setCenter([St,Ot]),Y.value.setZoom(G.searchZoom)}}else fe.value="No results found",X("error",fe.value)}catch(wt){fe.value=wt instanceof Error?wt.message:"Failed to geocode address",X("error",fe.value)}finally{we.value=!1}}};function Oe(bt){he&&(ge.value=bt,he.dismissSuggestions(),Te())}function Pe(){he&&he.hideSuggestions()}function Ne(bt){!he||he.searchSuggestions.value.length===0||Me.value&&!Me.value.contains(bt.target)&&he.hideSuggestions()}vue.onMounted(()=>{he&&document.addEventListener("mousedown",Ne)}),vue.onBeforeUnmount(()=>{he&&document.removeEventListener("mousedown",Ne)});const Le=vue.inject("controlCorners",{}),De=vue.computed(()=>G.teleportTo?G.teleportTo:Le[G.position??"top-left"]?.value??null);return V({loading:we,error:fe,searchQuery:ge}),(bt,wt)=>De.value?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:De.value},[vue.createElementVNode("div",{ref_key:"containerRef",ref:Me,class:"maplibregl-ctrl map-search-control",role:"search","aria-label":"Search for an address","aria-busy":we.value},[vue.createVNode(vue.unref(Vt),{ref_key:"searchRef",ref:ee,modelValue:ge.value,"onUpdate:modelValue":wt[0]||(wt[0]=jt=>ge.value=jt),placeholder:G.placeholder,suggestions:me.value,"aria-label":"Search the map",onSearch:Te,onSelect:Oe,onDismiss:Pe},null,8,["modelValue","placeholder","suggestions"]),fe.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$8,"⚠ "+vue.toDisplayString(fe.value),1)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_3$7,[we.value?(vue.openBlock(),vue.createElementBlock("span",_hoisted_4$4,"Searching...")):vue.createCommentVNode("",!0)])],8,_hoisted_1$f)],8,["to"])):vue.createCommentVNode("",!0)}});function _arrayLikeToArray(Mt,V){(V==null||V>Mt.length)&&(V=Mt.length);for(var O=0,G=Array(V);O<V;O++)G[O]=Mt[O];return G}function _arrayWithoutHoles(Mt){if(Array.isArray(Mt))return _arrayLikeToArray(Mt)}function _defineProperty(Mt,V,O){return(V=_toPropertyKey(V))in Mt?Object.defineProperty(Mt,V,{value:O,enumerable:!0,configurable:!0,writable:!0}):Mt[V]=O,Mt}function _iterableToArray(Mt){if(typeof Symbol<"u"&&Mt[Symbol.iterator]!=null||Mt["@@iterator"]!=null)return Array.from(Mt)}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
558
558
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(Mt,V){var O=Object.keys(Mt);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(Mt);V&&(G=G.filter(function(X){return Object.getOwnPropertyDescriptor(Mt,X).enumerable})),O.push.apply(O,G)}return O}function _objectSpread2(Mt){for(var V=1;V<arguments.length;V++){var O=arguments[V]!=null?arguments[V]:{};V%2?ownKeys(Object(O),!0).forEach(function(G){_defineProperty(Mt,G,O[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Mt,Object.getOwnPropertyDescriptors(O)):ownKeys(Object(O)).forEach(function(G){Object.defineProperty(Mt,G,Object.getOwnPropertyDescriptor(O,G))})}return Mt}function _objectWithoutProperties(Mt,V){if(Mt==null)return{};var O,G,X=_objectWithoutPropertiesLoose(Mt,V);if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(Mt);for(G=0;G<Y.length;G++)O=Y[G],V.indexOf(O)===-1&&{}.propertyIsEnumerable.call(Mt,O)&&(X[O]=Mt[O])}return X}function _objectWithoutPropertiesLoose(Mt,V){if(Mt==null)return{};var O={};for(var G in Mt)if({}.hasOwnProperty.call(Mt,G)){if(V.indexOf(G)!==-1)continue;O[G]=Mt[G]}return O}function _toConsumableArray(Mt){return _arrayWithoutHoles(Mt)||_iterableToArray(Mt)||_unsupportedIterableToArray(Mt)||_nonIterableSpread()}function _toPrimitive(Mt,V){if(typeof Mt!="object"||!Mt)return Mt;var O=Mt[Symbol.toPrimitive];if(O!==void 0){var G=O.call(Mt,V);if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(Mt)}function _toPropertyKey(Mt){var V=_toPrimitive(Mt,"string");return typeof V=="symbol"?V:V+""}function _typeof(Mt){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},_typeof(Mt)}function _unsupportedIterableToArray(Mt,V){if(Mt){if(typeof Mt=="string")return _arrayLikeToArray(Mt,V);var O={}.toString.call(Mt).slice(8,-1);return O==="Object"&&Mt.constructor&&(O=Mt.constructor.name),O==="Map"||O==="Set"?Array.from(Mt):O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O)?_arrayLikeToArray(Mt,V):void 0}}function objectWithKey(Mt,V){return Array.isArray(V)&&V.length>0||!Array.isArray(V)&&V?_defineProperty({},Mt,V):{}}function classList(Mt){var V,O=(V={"fa-spin":Mt.spin,"fa-pulse":Mt.pulse,"fa-fw":Mt.fixedWidth,"fa-border":Mt.border,"fa-li":Mt.listItem,"fa-inverse":Mt.inverse,"fa-flip":Mt.flip===!0,"fa-flip-horizontal":Mt.flip==="horizontal"||Mt.flip==="both","fa-flip-vertical":Mt.flip==="vertical"||Mt.flip==="both"},_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(V,"fa-".concat(Mt.size),Mt.size!==null),"fa-rotate-".concat(Mt.rotation),Mt.rotation!==null),"fa-rotate-by",Mt.rotateBy),"fa-pull-".concat(Mt.pull),Mt.pull!==null),"fa-swap-opacity",Mt.swapOpacity),"fa-bounce",Mt.bounce),"fa-shake",Mt.shake),"fa-beat",Mt.beat),"fa-fade",Mt.fade),"fa-beat-fade",Mt.beatFade),_defineProperty(_defineProperty(_defineProperty(_defineProperty(V,"fa-flash",Mt.flash),"fa-spin-pulse",Mt.spinPulse),"fa-spin-reverse",Mt.spinReverse),"fa-width-auto",Mt.widthAuto));return Object.keys(O).map(function(G){return O[G]?G:null}).filter(function(G){return G})}var commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},humps$1={exports:{}};(function(Mt){(function(V){var O=function(Le,De,bt){if(!Me(De)||he(De)||me(De)||Te(De)||fe(De))return De;var wt,jt=0,Tt=0;if(ee(De))for(wt=[],Tt=De.length;jt<Tt;jt++)wt.push(O(Le,De[jt],bt));else{wt={};for(var St in De)Object.prototype.hasOwnProperty.call(De,St)&&(wt[Le(St,bt)]=O(Le,De[St],bt))}return wt},G=function(Le,De){De=De||{};var bt=De.separator||"_",wt=De.split||/(?=[A-Z])/;return Le.split(wt).join(bt)},X=function(Le){return Oe(Le)?Le:(Le=Le.replace(/[\-_\s]+(.)?/g,function(De,bt){return bt?bt.toUpperCase():""}),Le.substr(0,1).toLowerCase()+Le.substr(1))},Y=function(Le){var De=X(Le);return De.substr(0,1).toUpperCase()+De.substr(1)},ge=function(Le,De){return G(Le,De).toLowerCase()},we=Object.prototype.toString,fe=function(Le){return typeof Le=="function"},Me=function(Le){return Le===Object(Le)},ee=function(Le){return we.call(Le)=="[object Array]"},he=function(Le){return we.call(Le)=="[object Date]"},me=function(Le){return we.call(Le)=="[object RegExp]"},Te=function(Le){return we.call(Le)=="[object Boolean]"},Oe=function(Le){return Le=Le-0,Le===Le},Pe=function(Le,De){var bt=De&&"process"in De?De.process:De;return typeof bt!="function"?Le:function(wt,jt){return bt(wt,Le,jt)}},Ne={camelize:X,decamelize:ge,pascalize:Y,depascalize:ge,camelizeKeys:function(Le,De){return O(Pe(X,De),Le)},decamelizeKeys:function(Le,De){return O(Pe(ge,De),Le,De)},pascalizeKeys:function(Le,De){return O(Pe(Y,De),Le)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};Mt.exports?Mt.exports=Ne:V.humps=Ne})(commonjsGlobal$1)})(humps$1);var humps=humps$1.exports,_excluded=["class","style"];function styleToObject(Mt){return Mt.split(";").map(function(V){return V.trim()}).filter(function(V){return V}).reduce(function(V,O){var G=O.indexOf(":"),X=humps.camelize(O.slice(0,G)),Y=O.slice(G+1).trim();return V[X]=Y,V},{})}function classToObject(Mt){return Mt.split(/\s+/).reduce(function(V,O){return V[O]=!0,V},{})}function convert(Mt){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof Mt=="string")return Mt;var G=(Mt.children||[]).map(function(fe){return convert(fe)}),X=Object.keys(Mt.attributes||{}).reduce(function(fe,Me){var ee=Mt.attributes[Me];switch(Me){case"class":fe.class=classToObject(ee);break;case"style":fe.style=styleToObject(ee);break;default:fe.attrs[Me]=ee}return fe},{attrs:{},class:{},style:{}});O.class;var Y=O.style,ge=Y===void 0?{}:Y,we=_objectWithoutProperties(O,_excluded);return vue.h(Mt.tag,_objectSpread2(_objectSpread2(_objectSpread2({},V),{},{class:X.class,style:_objectSpread2(_objectSpread2({},X.style),ge)},X.attrs),we),G)}var PRODUCTION=!1;try{PRODUCTION=process.env.NODE_ENV==="production"}catch{}function log(){if(!PRODUCTION&&console&&typeof console.error=="function"){var Mt;(Mt=console).error.apply(Mt,arguments)}}function normalizeIconArgs(Mt){if(Mt&&_typeof(Mt)==="object"&&Mt.prefix&&Mt.iconName&&Mt.icon)return Mt;if(parse$1.icon)return parse$1.icon(Mt);if(Mt===null)return null;if(_typeof(Mt)==="object"&&Mt.prefix&&Mt.iconName)return Mt;if(Array.isArray(Mt)&&Mt.length===2)return{prefix:Mt[0],iconName:Mt[1]};if(typeof Mt=="string")return{prefix:"fas",iconName:Mt}}var FontAwesomeIcon=vue.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(V){return[!0,!1,"horizontal","vertical","both"].indexOf(V)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(V){return["right","left"].indexOf(V)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(V){return[90,180,270].indexOf(Number.parseInt(V,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(V){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(V)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(V,O){var G=O.attrs,X=vue.computed(function(){return normalizeIconArgs(V.icon)}),Y=vue.computed(function(){return objectWithKey("classes",classList(V))}),ge=vue.computed(function(){return objectWithKey("transform",typeof V.transform=="string"?parse$1.transform(V.transform):V.transform)}),we=vue.computed(function(){return objectWithKey("mask",normalizeIconArgs(V.mask))}),fe=vue.computed(function(){var ee=_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({},Y.value),ge.value),we.value),{},{symbol:V.symbol,maskId:V.maskId});return ee.title=V.title,ee.titleId=V.titleId,icon(X.value,ee)});vue.watch(fe,function(ee){if(!ee)return log("Could not find one or more icon(s)",X.value,we.value)},{immediate:!0});var Me=vue.computed(function(){return fe.value?convert(fe.value.abstract[0],{},G):null});return function(){return Me.value}}});vue.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(V,O){var G=O.slots,X=config$1.familyPrefix,Y=vue.computed(function(){return["".concat(X,"-layers")].concat(_toConsumableArray(V.fixedWidth?["".concat(X,"-fw")]:[]))});return function(){return vue.h("div",{class:Y.value},G.default?G.default():[])}}});vue.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(V){return["bottom-left","bottom-right","top-left","top-right"].indexOf(V)>-1}}},setup:function(V,O){var G=O.attrs,X=config$1.familyPrefix,Y=vue.computed(function(){return objectWithKey("classes",[].concat(_toConsumableArray(V.counter?["".concat(X,"-layers-counter")]:[]),_toConsumableArray(V.position?["".concat(X,"-layers-").concat(V.position)]:[])))}),ge=vue.computed(function(){return objectWithKey("transform",typeof V.transform=="string"?parse$1.transform(V.transform):V.transform)}),we=vue.computed(function(){var Me=text(V.value.toString(),_objectSpread2(_objectSpread2({},ge.value),Y.value)),ee=Me.abstract;return V.counter&&(ee[0].attributes.class=ee[0].attributes.class.replace("fa-layers-text","")),ee[0]}),fe=vue.computed(function(){return convert(we.value,{},G)});return function(){return fe.value}}});const _hoisted_1$e=["title","aria-label","aria-pressed"],_sfc_main$p=vue.defineComponent({inheritAttrs:!1,__name:"MapButton",props:{icon:{default:void 0},image:{default:""},imagePadding:{default:0},position:{default:"top-right"},title:{default:""},iconSize:{default:18},toggleable:{type:Boolean,default:!1},active:{type:Boolean,default:!1},activeColor:{default:"#ffcc80"},teleportTo:{default:void 0},className:{}},emits:["click"],setup(Mt,{emit:V}){const O=Mt,G=V,X=vue.useSlots(),Y=vue.inject("controlCorners",{}),ge=vue.computed(()=>O.teleportTo?O.teleportTo:Y[O.position??"top-right"]?.value??null),we=()=>{G("click")},fe=vue.computed(()=>!!X.default),Me=vue.computed(()=>O.position?.includes("right")),ee=vue.computed(()=>{const he={};return O.image&&(he.backgroundImage=`url("${O.image}")`,he.backgroundPosition="center",he.backgroundRepeat="no-repeat",O.imagePadding>0?(he.backgroundSize="contain",he.backgroundOrigin="content-box",he.padding=`${O.imagePadding}px`):(he.backgroundSize="cover",he.width=`${O.iconSize}px`,he.height=`${O.iconSize}px`)),O.toggleable&&O.active&&(he.backgroundColor=O.activeColor),he});return vue.onMounted(()=>{}),(he,me)=>ge.value?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:ge.value},[vue.createElementVNode("div",{class:vue.normalizeClass(["maplibregl-ctrl",[fe.value?"map-button-wrapper":"maplibregl-ctrl-group",he.$attrs.class]])},[Me.value?vue.renderSlot(he.$slots,"default",{key:0}):vue.createCommentVNode("",!0),vue.createElementVNode("button",{class:vue.normalizeClass(["map-button",{"has-image":O.image}]),type:"button",title:O.title,"aria-label":O.title,"aria-pressed":O.toggleable?String(O.active):void 0,style:vue.normalizeStyle(ee.value),onClick:we},[O.icon&&!O.image?(vue.openBlock(),vue.createBlock(vue.unref(FontAwesomeIcon),{key:0,icon:O.icon,style:vue.normalizeStyle({fontSize:`${O.iconSize}px`}),"aria-hidden":"true"},null,8,["icon","style"])):vue.createCommentVNode("",!0)],14,_hoisted_1$e),Me.value?vue.createCommentVNode("",!0):vue.renderSlot(he.$slots,"default",{key:1})],2)],8,["to"])):vue.createCommentVNode("",!0)}});var faUpRightFromSquare={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},faChevronUp={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},faChevronDown={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},faLocationCrosshairs={prefix:"fas",iconName:"location-crosshairs",icon:[576,512,["location"],"f601","M288-16c17.7 0 32 14.3 32 32l0 18.3c98.1 14 175.7 91.6 189.7 189.7l18.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-18.3 0c-14 98.1-91.6 175.7-189.7 189.7l0 18.3c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-18.3C157.9 463.7 80.3 386.1 66.3 288L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l18.3 0C80.3 125.9 157.9 48.3 256 34.3L256 16c0-17.7 14.3-32 32-32zM128 256a160 160 0 1 0 320 0 160 160 0 1 0 -320 0zm160-96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]};const _hoisted_1$d=["title","aria-expanded"],_hoisted_2$7={class:"dropdown-label"},_hoisted_3$6=["aria-checked","tabindex","onClick"],_sfc_main$o=vue.defineComponent({__name:"BasemapDropdown",props:{options:{},position:{default:"top-right"},selectedIndex:{default:0},useAsControl:{type:Boolean,default:!0},isDropUp:{type:Boolean,default:!1},teleportTo:{default:void 0}},emits:["select"],setup(Mt,{expose:V,emit:O}){const G=vue.inject("handleBasemapChange",null),X=Mt,Y=O,ge=vue.ref(!1),we=vue.ref(X.selectedIndex),fe=vue.ref(-1),Me=vue.ref(null),ee=vue.ref(null),he=vue.ref([]),me=vue.computed(()=>X.options[we.value]),Te=vue.computed(()=>X.useAsControl?X.position?.includes("bottom")||!1:X.isDropUp),Oe=vue.inject("controlCorners",{}),Pe=vue.computed(()=>X.useAsControl?X.teleportTo?X.teleportTo:Oe[X.position??"top-right"]?.value??null:null);function Ne(){ge.value=!ge.value,ge.value?(fe.value=we.value,vue.nextTick(()=>De(fe.value))):fe.value=-1}function Le(){ge.value=!1,fe.value=-1,ee.value?.focus()}function De(Ot){he.value[Ot]?.focus()}function bt(Ot){(Ot.key==="ArrowDown"||Ot.key==="ArrowUp")&&(Ot.preventDefault(),ge.value||(ge.value=!0,fe.value=we.value,vue.nextTick(()=>De(fe.value))))}function wt(Ot){switch(Ot.key){case"Escape":Ot.preventDefault(),Le();break;case"ArrowDown":Ot.preventDefault(),fe.value=(fe.value+1)%X.options.length,De(fe.value);break;case"ArrowUp":Ot.preventDefault(),fe.value=(fe.value-1+X.options.length)%X.options.length,De(fe.value);break;case"Home":Ot.preventDefault(),fe.value=0,De(fe.value);break;case"End":Ot.preventDefault(),fe.value=X.options.length-1,De(fe.value);break;case"Tab":Le();break}}function jt(Ot,It){Ot&&(he.value[It]=Ot)}function Tt(Ot,It){if(we.value=It,ge.value=!1,fe.value=-1,ee.value?.focus(),Y("select",Ot,It),G){const Nt={showImagery:!0,imageryUrl:Ot.imageryUrl,imageryLabelsUrl:Ot.imageryLabelsUrl,showLabels:Ot.showLabels??!0};G(Nt)}}function St(Ot){Me.value&&!Me.value.contains(Ot.target)&&(ge.value=!1,fe.value=-1)}return vue.onMounted(()=>{if(document.addEventListener("click",St),G&&X.options.length>0){const Ot=X.options[we.value];if(Ot){const It={showImagery:!0,imageryUrl:Ot.imageryUrl,imageryLabelsUrl:Ot.imageryLabelsUrl,showLabels:Ot.showLabels??!0};G(It)}}}),vue.onBeforeUnmount(()=>{document.removeEventListener("click",St)}),V({isOpen:ge,selectedIndex:we,selectedOption:me,toggleDropdown:Ne,closeDropdown:Le}),(Ot,It)=>(vue.openBlock(),vue.createBlock(vue.Teleport,{to:Pe.value??"body",disabled:!Pe.value},[vue.createElementVNode("div",{ref_key:"containerRef",ref:Me,class:vue.normalizeClass(["basemap-dropdown-control-wrapper",{"maplibregl-ctrl":Mt.useAsControl,"drop-up":Te.value,"standalone-control":Mt.useAsControl,"embedded-control":!Mt.useAsControl}])},[vue.createElementVNode("button",{ref_key:"toggleRef",ref:ee,class:"basemap-dropdown-toggle",title:me.value?.label||"Select basemap","aria-expanded":ge.value,"aria-haspopup":"true",onClick:vue.withModifiers(Ne,["stop"]),onKeydown:bt},[vue.createElementVNode("span",_hoisted_2$7,vue.toDisplayString(me.value?.label||"Select"),1),vue.createVNode(vue.unref(FontAwesomeIcon),{icon:Te.value?vue.unref(faChevronUp):vue.unref(faChevronDown),class:vue.normalizeClass(["dropdown-icon",{open:ge.value}]),"aria-hidden":"true"},null,8,["icon","class"])],40,_hoisted_1$d),ge.value?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"basemap-dropdown-menu",role:"menu",onKeydown:wt},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Mt.options,(Nt,Lt)=>(vue.openBlock(),vue.createElementBlock("button",{key:Lt,ref_for:!0,ref:Dt=>jt(Dt,Lt),role:"menuitemradio","aria-checked":Lt===we.value,tabindex:Lt===fe.value?0:-1,class:vue.normalizeClass(["basemap-dropdown-item",{selected:Lt===we.value}]),onClick:vue.withModifiers(Dt=>Tt(Nt,Lt),["stop"])},vue.toDisplayString(Nt.label),11,_hoisted_3$6))),128))],32)):vue.createCommentVNode("",!0)],2)],8,["to","disabled"]))}}),defaultImageryIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAxNjoxMTowOSAxNDo0MTowMzVIv04AABSySURBVFhH1Vnpb1zXfT0zb/Z9Hw5nSIqbuJO2RK22bEm2YsuS03hNEydu4wRo+6Ft2qZBULgtg34p2iCJUaAB/KVoGzhwUiiIlchJ7MiKaslaSMkSKVIkxXU4M5x937eed9V/wgNcDERdvnfv757fWS4Vz515vv3is/tRbwBNhQLBcALi024in8nA4zTh8o1lvPNfP0Aqk+U8Jb731n9iqNuB/z53SUwd73NieGQQ711cwLF9vVhaDuKjK3fw9g//Bls7YVyZW0WjXhdzm+U8Hj+yH2/+418jHktCqVDymQ00uYBkMgqXqwPFYlHMbbcBnU4vRiIRg9vTAemZp4/O6DRKKNVGVGsNtFstqFUSGnyIVm9Apa7gRvQ4d/4iHixvIBrZhVGrRKVcxMRgB8YGfDgw2Q+TRoHNzRCG9vbCYLbg9FMHMTHUjSvXbiFXaaJYyPOZdQQ6nXjxc4fQVkrw+bgASQmb1YJmo4p6vQWr1YpCoSgWq9VqoVaroVRyDc0W/IEApD/7xpdnbGYN8iUutJXH4soaMpk0FNz5bjiMrWAYuVwCyXQBwd0k4ukSMrkiBno70Wq1oZTUyJSaKFWBoweGoVUBfrserXYZUquKieEuFEs1VEoFGHQqHDs0CpPJhsX7rDqLUmNl7y0so8yqdvi80Oq0SKfSonAGrR4Gk4nvATcmwe32QDp6YHKmUqnAYnVje3MDiegumtUKqo0WF9KAk5MS6RzKpQoPSQkjq66QtLi7sIAHmxGsbUWgRh39fjMy2TwCPhdMFj3CsTxmF6PYjmS4KQk9nTb4PHZYTXpWqwqPy4JGtcBRRrNWQqlcQSgcQTaTR6VaQ5VDkgjRjVVIag1mZ+fgsJmh+PY3v9F2O21IFbg4LauXf4gflVKJrr1T0Nh78N4vf4kHS/eh4Dm5fAGYjQZsbW9ipM/3cC6acDjNGPQ7CS0lQjsJjI71o8aNn7+0zP9Vs2LyhsHnl2Fm5boCDn7rYGePaNUSYWGAXqtBgZV2u91ibrZQZg9ZcPH3s/B0dMDmcLBkn7GP9MzJx2asdjurpMDt+fuw2x2AQoXV9RB3bcTBg/sR33mARq2KIpvH7fahVClBq2ziK6+cxPBgF7weFxvECJdND41CgtGkw52lICLhHZSbatQaTVSyCXH886u7eHy6n+yxi91YFMtrW0imSkCrjmy2gJ3dHOaXt7GyHsaNu+tYuL9FDLeQCm7CKDUhvfz5p2eyuTLcDhOy+QLUGg3YoBjqDyAcimLh9hyPSiFAf2xfN/RGO/IFYo8dPzLQLTqb3ASLUUcmrCJNKmw02ri1FILMPsW6DtliDslEihutQa0z4oXTR3Hs8BQOTk+gVi6g3lLhkbFe0luZc6rYDkYEtcnNWuezJEmFAnS4txqFtKe/b6bc4iKJT7/TwF2nUK/VCfoKak2gVCqxaVTQsAG8Xg8UxPbkUCcGOwyIcG6WCwx0uJDNlRDcCuLQo8MIJzJYYCUzxSqqxG+r1UQ0lUW12YaTp6lUqVHhw9c2g0gkixge7kc8keU7KAY8IZfLA4/bhbk7yzw9B7744rMYG+7m3CwUr3/9T9rlYhkarZqNpkC33yKwYjGokM9V0GqyY1kFjdSCzdMJk82LVjkDRS3NCmrE3Dbh1Gy3sBbKseJN6A1kkcUNWG0OJGtKZGMRHNk/LOauBlN8bkkwgXxqNfK8QSchn03BZjIQhnpS58PGH9zjRSJbxb//8Lv4/g9+hEKJVDk9PT4jwyCZjKNQrmGdD9wOpxGKFqHTy7u1UQhs0HOoVDpoeKSFbJI/M8FMrGpI7kqVBiajHm6rBv3dXvJ1GiubCaiNZqhISflUCo8/NsYNGPlME+wOG5xkJpvdzIUWCIsK+vs6BSvIIvG1F6YxPRYgtJowm82QFC3ML62jmMtD8Z1v/2V7YXkLa9th+F1GjOztEbvL5CukmBYKlQY8dg1G+9xwuHxcNCuiN1JKS+TmmphrMOiEjraa5O9ajZhXs+IKfDAbRC7PlzTyePOvvirm5sjnFy7dpTgVie0idtZ38drLT6BEiMRCYbg8HnS47WLu7J17KHEda2tBvPTqWZh0akhPHX9sptWsI5HKkSsbbCqzwNfWTgxqZQsOsxJHHu1Dg52qVSnh9/lI/E3cX9lEi3irUKmMRi25VIkWWVJLUalRdCLsfAXBoqUPUJABrtyYxyez97AZjNFQNOD32qmePHpu9NknJylOBcLBianxEago/XoWIRojBBolPHH8MNLJHOLxFBTPnH2xbdQrSFMtgVt/p0vsrkpsuVwu7ERicBBXTpOEm8sJ6FldMwuq4oMuza6KuUWeQqDDiS4ONUUg4ONp2EzweNy4fX+HI8iNsYP5UdNg1aolYr2BFo9cr9ei06HH2KCPp1PH0PAo9hAe8uc7M2/jm18/gw56iDLhauQmFGc+/0K7v8eB9Y1t6NUtuKwmMblSreO1L50FT4FU0+IGGvj9DUo3q7L64AEcbiebIiDmKpUavPfhVcquDsPdTkhKFU+kCRWNjZLsolar2CM5MbfU5M+Ieb1Gi1gsTom2ooOUGkvmyeMGDPdS2s1WMVdS1OnUjCjXlQh0++DzuqF48vjp9jv/8V2c+8Vv4GVF46mMmKxSttGuV4W7ikZDPFwKgtmFYCSBS1fmYHY4SfR5MTeWoofw2FBjhSLRJMXFBgfpa6zfi42dFFKpBDn1ob0c6rHDyaLMbhRJg9uwWSw4Od3LgjQRz5RprEo4cWhIzPXYLeIELl5f5bpIaWzIz540Hzk8PfPCc8fgdNjRS3XboiRLtJYnP3ccRx47jFwmh1vzy2wei6C9fLlK9ngoJjIqJZWK3rgGv8cCJSmu3pQQTpYw3mNDd4eN3FnDJmlydSMiGkvBRi1WKScag8DlSycnKSYm3Ly9RqWsYJJ2NBzNIp0tIppI49qN2zy5MhuYjEXjJI1NPTLzk5+eZwMUoKTNsxFHVouWnV0TqlYtpnD+Vx+jxCOTjVw6V8A2GYQWmCmiSa5sUY6pVj1uSnuZCkmPSxbo7+nC9L4xSLU8yhQwm90KHxWxk00dj2dhsXugJ+zGRrrxweW7pEYNNGQamc9bCp3w2etkFDthUSGakoSLmUZfOnRoekamo81QHllWIxJNMSYlsRtN4Nbcp5TcHH2FD26nC7WWkosu0TNHoDKZUaJC1tnpsvk+cXgEU+x0p4nKFk/gjTe+jEcmBnDx0jWYZZ6W6U8jYT2UpNFpodHmCdWKmBz0infmifFMoYr1rTi/ywKzBr2GAtItTkdGL8WUC56emJkYCsCgaSG4LZuOsnBNKtKPXJVGmz5DqRfmGTQn4ViWbsyEXeq6yDH8OCmpBoMaq1sx0fF1OjutVMfla/N4+90PcWSylxRpZiNSJfn8EmlQxyDgMLRh5ncwEic86qwkXVmhBIuF7+Lp2ll1OXHcfxAiddZFEaU/fOHUjFmvwqMTe9FQAEemh7G33y/Mxm5oF0uLK2hU8rBQil0OC21fiLzPvKfTIBGnM2Pljh8eo3EyYnSoB/HwLvTE91o0Q9O/BrteDQW5u804VeZLdTz2aPZhD7zC8GsmqX/w8aIwRHI/NOgxTCYjKwrYaW+XVoPYjadRpILyEYQt06yVlZQjSjKdpT8Ni/HJHBuNHJrn8YRjaUpqHcv0qMp2XZibHHlTRfMij0K+BANTSI2Y/vmHd7C0ucviK1DnCyTKdJGVm6N4yMNPHMuL1XPDv758Gz85/wkbUGKzNhmxsiBNk8eVYugpAi+fOQqz3U1rO4RJ2gbpC88/NaNlMq2wec69f42/VESIYVOS2sgVa9i7p4O7VUClM2B+JSKUL1elIc8TEg+RRS9toYh4uJkW3FQ7D/3A4uIm7agDNS58qJfYtujQwRgVSdD56UwigMbzdW5ID6vZCCtPwihvmk2rZVSS7W6O/dPit8Oiwp6Al7ZAhNBHZmRwR+hh3//oU6SpZDF28b7RbhHf5agd4ktqTQ06XHom2hi0BhMKDItNJbMalzwx7MeN+U189+1f4dShYWLQyEVpcXBqAG46svVwhkyhYFGA5ZUtPkvCl75wFINdTjjNWp4SBJXJaupwOalajPYyRLQGPKA5UivoSegoO92Eylv/+mb71p1V9PUFCP4o/cRDj6tgZby0ll0dVpz73QJxZSVjFMkSVEICTKvW8jQKYu5JWkcfm2qL4fOjuXU8NtVDDrbzd1149W9/hJefnhYUKX8yWTmBS/jnmTd4ihq4eQpNwrLO2JXjqb1z7jKu314Scxvlh0lIpdajTf722A2QuroCM01KQIXxRaWmEScOm4SHkiZmargHW+TCtVCaDqzCmM40S59QpngU5auAWgtNUk2ZsWad9jRKXJvJo0a9DgfHe0XKeJJNnODGYvQSZb6jWm0j4PdilFTZt3ccLrefXtsKf88k7nx6A7cJpXicvoMFe/Nbr2OevjoaSwiGiBEFnz1pDuwZmJHTQTpb5k6y3AlFg3R1YHIQa1S0GBVGvu2xmPR0cGVhgkwWK0wGphA2opkCUpeFgHtv8lv21Hv8LnJyhAk5KC5abFTOLJtZltcWT6jL70SKVb9w4X2arvfhdVohtUv83TouXryJ7kAHXZwNX/vKWazM38Pw+BTWGEzzhIh09rkTMytru3hktItewCgymXzTYqVQlMkGBSYE+egrTL5yem2TCRq1CspUKSWlFYomKU0HFZvCZLJAodKSBjOIZWukSobZWhspZkOqj2jQSlMBH93cbjiI0ycPIJWI44//6FWcv/BbLtQNg6pGgTGzf8ykQIegNjnErm6GkaM7lHr7BmZkg+KgZiuVEnZ2IsQzlYpgOXF0EsMDARjpifU6JeNTP4b6fNR7RndWyEA+1mpU2D+6h91uEKn7/nKIoVLLw2N6oTWUKapBSZc3oqAPrhQreHS0E/vH+8kM7A0yw4/feQ+jAz5x8adnAa7OztM/p3Dp45u4dXcF5UJOBAA5vCp7uztFmJSvQ5OZLCZH+sV45eXTospTUxPkSGCCJl/VLIqLut5OB8Uix2ThFMNCRaoxXYfoCWQHl6AZ0pHHdao6jow4sa/PDLOyJEbAqxHRKk4PHSH0LDYnRgb94rIlQQ/yi99cYZjViVEtFoT/uH5nDQvzK9xoF1SLD8LidrBKiZFz/4nDkwLcY3sD5F0nbpLylhkCd7ZjVCMF2aGNNP2AipQUdeyKuXaTGh4raY1z5BwnZ77e/iG8+PQUvvdv7+AxMkV3V5eYu7kVRCQUh2uoQ5h1ObWc++0N6Oc3cOTgKGLslxGyk/wxJHIYGZ3A6dMejI/14Y2/+BdIzz//NCFREhfZFpqYHBcja/f/XPgE756/iJt3HxDHZaTyNSGXMp0qKMctLqqLmFOR9f/09efhcTtwiWanQrjKlzAjAROPPIMsT62TfHz91jJ2wnGBzUMHpkTQXaLU+506mChOzxwbx9WFHRqdsLCyQQqJ7CnevXBVaMPCnVviDlvxi3d/1P7xzz/Cwv0Q6jxQr/NhpvvCU0eQoPddXAnBx5/J4fTW4gZjE5uMGG3SiZATxFyPjf9u1NHT6cZOokSrWKbXbWJiYgSpSBAm+UIl8f83+zyZp04cFr+fYTiQsTk+0kflTOPNt36GHpsC4cTD6FWokfaZwuXwWaCo6HX0yaVySVxWO6kiKjZdPFkQgxJCmBCPJHy/z4pHh2lB1XU2INMupXQjGqfpl5NvAx0dnXR6Otx+QC9bpBegaTKazYhFo5RxPTcjK5ZZDNl7+5mqu/f049WvfgXPnT0FnbkDagN9RLkINZmor9srRgcLdWC8B6cO74XXyvW1a7Kx56pVNDGMRWadCmoGPXnIl9myKZLxOLq3Dz/75WXcW47C7vZwAU1YeIwmo0qM/WM+PPP4KIryNTy5tNVuIJXO0Z/kcO1eGFfvhHB1fkcMGQrn2Vj/e/U6fvaTn2JtZR3NYgR0uHCSfWTfYqd7lMdwtxsP1iIkgyKMdHcKenTp77/1jRm9Ur7BYUPRoFgtJpoXEzm0ijilkHMwRdrSsOIxkr/XZSdG60woCRx5ZAB2zv3dx/NYJ08yotGFVUlnakwM+WG3uRBwKFHOpZlOimjz//KVJraDYczRL0yO7cU7P72AnVAUF6/Ok7Or6PJYxfVAm5pvoil77nNHBfd7HUZmy43PoDQ/f+rojE6+rfHa8Gi/Bz10Z/JlSDqbIZ8S2zYjnb8ei/fX+W3HAMPm7XtbhEUNxw/QSvIYGwo1SR9sIAVyNPxPHRzApdtbODLuR4LNJrs8n9/NY6YfjhYYJs24e3+Njs6K2VsLOHtqGmtkjNGRAcx+uoxqQ0ImXxV4TzE5y6ZHhqf8JwrJZPPMlBhLljejfGEbq9tpuq4S/YCb2t1EX8CBU0fHMUd60ygaOPkE5TSVQZGBMcNAGtxN4c+//hLuLS4jmWMTNusUFgt6u7uE7LaJqfmlTcquV6QTBZvKqK5BQ7aQmF7kO+ROlwlxSvngQBd+/cEN+Q8AKNI3jLGAaaaZM88exyc373FOBdJrXzwz88ThfTh96hj+6fs/RqfXRDQ3iOGy+HNWloB///IdknyVL1fh7nKQfK1DLyt94tAIhvs6sbW1gXJdhaUN+W94koj/iVhM/G1NluhosshqMW5xca+89Hl6DwumR/3i7kE2OWOjg0wySVKqDdVSHsd4coM9XnSTTVb4zNdePYO788twOmiSzj57YmZrK0TOa4rj6PYS9FQHJ43z6nYKTz8xgddfPEk/UKcht2Hv0AA26ZzCkTSu3FrH3MIWN7FLBeQByibbqSfLtJkOzLh2d0uYfA8jVJ5+Rc58f/cP38bt2VksMXnsJpJ47vRJbjhMR5jlhnK4PLsGb4cXBTZnmao6OLgHczdncef+NjykT2WK5H2PofH9D6/RU5iwna6JsbhJXyDfA/AYr3/6gIuQMD4+Co1Gja+99gfiWsBt14vRRpWOLAcNq5tkIg5nW7i0lERba0KyJmGVuG0p6SE41uavY3nxHsYmRzAxOYlz5y9RAyw8yRLFoU4n2MbRg+NiTDHJ12j6n3x8HxxGCU6rHv8HbrssNLqaNqUAAAAASUVORK5CYII=",defaultBasemapIcon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAkoSURBVFhHhdgJc1NHEgfw0W0bX2CMORxSSZHK9/86u1WEG4PNYWwsH7K0/WuptSJLatuZzHszPd3/PueJzr9e/3vWG3Vb0S/3fmmD3qAdnx237Y3tNj4bt2/fvrVer9em02nb3t5OvtlslvPGxkY7Ojpq3W63bW1t5frV1VW7ubnJ/X6/3x4+fNjG43H79OlTrnU6nZx/RnTs7e0lL77uH4fP2tO9p+1g56DtbOy096fv2+3tbdvf3G+j3iifgTCjVeGUX19f52ww5Pv37/kMqOEZTSaTVP7/yJnhcJhzAnzz5k07/nDcLr9dtuHtsB1sHCSY2+kc0O7Obtvc3Gz37t3L2R5FBPDq5eXlUjmBhj38pQw5NxqN8vmfCL9IlDNQ5/Xr1xkrmzVTdvfu3bazs9O+X4VHOv0I+7B1ewvvBStQvX6vnZ+fpxeFNA2LASTPCfWjR48S2Nu3b9Mg59BqJIroxru2tta+fv2aYP8HoIMA3t+73wZrg/bi5EXrdXuBKayLP2CH/WGGf3drN8ERhCqc1oAz7+7u5ppIra+v59qqrlWyfufOnZzlrP3O2dnZrEDZKG/s399v4+m4HX87ngNcCEXT2TRBHt49TMWACbUC4iFh5QnAV8NaqWAuPd4rbcwKJDAlTwJ8+fJlAkTmwWCQQw6dnJ+0s/HZ0kNFAG6vbbe9zb0EWMSIMlZhOUcOhQpIlTNGqOkouQUOYOH98uXLEnTXAUIJtyA08gpdTa7a7fdpm17/WH14R4PR0iOIDArN9bwacrwVoYuLiwxhOCdzjQHW6zyjHjx40A4ODlr38ePH7fDwsJn39/ezMOQB6nV6ra1H9vXDwqhqYCjxN+qP0mICf0arAJ0pR9SotfIiWUBzEOAi8+HDh9YJ188qrFz/M5rcTtKbxvnleRvfjNufD/9MT5+eni69WASAcFZFnpycJCBgDHrsOYu8l0HOCrEZdd6/fz+D2kIBVHneDYcG/UFw5tYPtJrkQujdM3KOHPsAlrcBtXb//v0EUmStikwKlP7Ox48fE6CDxah3WaPMbFCYYBeerivvZ1QViE91A0iuNUQOD7p1ao1+FYwPmdOocHNWcVkmWeWixLUGnLVVA7QRRtxObtvR6VHrB+i1KJrsj5Gb3c7fqj7OTG4iTa7nsgAvwz3bN548edLevXu3BE1PhpjFVfasc4tUJ0cO8IR3QAnFc/T1qF3czMNRBuQc8odx8wBcoA39FFVK0FlOUCBSAsCShfImgR7ZUMUYX716tQQNkFGAGaHS3319164n1/8N0zT6YFyH5hywRiHnc/xFRrXf939vnz9/zr5YDqnGXl9D5DGCtzvxMBNrLyxxHTl4fHycSldJ80XA4Xv+8XnyJsD4b3IW93B34c2FEzr9yMW18HyAjJu6/br3a7saXyVAIDgHP5kAVoGglB2hyzZT3ilySBgAZwDwrHV4e2s7PxSeHz9v/d681yXA8/mHgvY5vV2AXAA1z0bT9uzRs/blc9wU0VcZnPkZehgszADCQn96Mz4MZwqCcqR7p2tDEdcL7SoRSMDlzWWGuPIqPXQRlTqIlFjvpDe78dwdxTPgYX9/o9+e3nvaIu9TrrCmt4OAFXpgVyndtooYUAUS7Se/lHV0iaup1qcVkntLCu9NLyOPRboTCuOxtxHghrGw8OIsHl2PCIhyCEfQC3CByygsRtf/KsSeES85UNZVrhAg1MitUvwJwnPMimQOdL43m8yBTyfz65GnS1flX/LF7L2ea6QHuVeCar6YirGUmOUhgIxBCZDmoigOYZwFkOnV4s7OSl7whGf91lFE+p02RaersNqNuQYH0duJdjI3IUiLkXcu6WJADiOe1KDx/HXyVwIsntuLyLNheCaep1eR3NpL3Hrm6XWcX5u13w5+a6dfTrMY5J9BFkAlB9GDpFN4e36BA4GZ93jUgQptEdByh2e21+PenE6WXznTOD+9iXs5cjH8liFNtOGxnKOWfJGLArmq1V2sYBSH/PZsDTB4VHYniiCe5/H3ycW6aieG0FqrdR5UMJo5gPmVcxM/M6fRihbzdKwpBy7g4knYB5v97IF+m9BXHqPXHVzfiMg+SgwF0IsWo2qrQHjWsxAAV2FR3d55fDQc5fNgOM9NpMI15eubaP5hgJZ0dyNybrTVXr1+9UNB8ibHSCtga70oP/k9UCZxMRLwd3KYy/EwAijCV3/kMEYeSxGeHw7isk8vzqm+nlflk+GD2c1CTqWVIR06Ee/l9yAGQsxGWVN7qpwh+CmRK4B6B4jQ+v2sd1pzFq8oOCvXCmDpkTY+vRjojBlPfriGoLzqlDyySShlANQAwkdmAcFTQ/6w1jplhNc/hyAgeEZLKWfUOtB05+d9rDOYLGv5vehrxmE/UiBOtwZj5V61gnovBVWNQFV4kHyyrxicw4fsC71UKIDOAkIuWYgewJwldwlQ81TmdbiI4FLOOzzjsFFhK6sNIHw7ah0AGAhPpUPpIFdUihfZI9fA34nP8eCbLT8WWYAKFPLsAB53tNDVfs3WhJBCXvJOgX3AAbAuXbxbt8bjq+lQVHI7EYr8YNWLSjkCVHhZVPmDrz40V4kwQ3GocnJ4EZGDX3XLXzIBR8CSq68CXfltILrzN4lDhBSDuYqjLOUZuWGtQlQzYgQeIRYJihUPIkMH0CFWz4oKg8jF772MBzjz9cWLFzOho9gC6zBWjhFEAQF62GpLWSXvwkWBkDmDnAdeEQLirGFfD6WPB0sPIqNw5M9OACkHsBRjxujd0Ez9q2cBt0eoPQqF1K9B7yq49pGZB6WHaDmPT0rwqvMla5UYlh6sRHVYzhi5uTjEu67BqPhUvEp4WCu08qy8QKlzPF5rFXJErq7gtw+ZeAzyih9PAtRi6g5GBbA86Irj5cyJECA/KDcIw6OfuUXqFxtjedse7wFcxlkDnEFam/VyCPK+XAslMx6oAiDISPQLD9YtU/cofsqNsrhCxyPkFDnPOJdAASwZUoJXOaQ8CJTzDLCeOagA5FAp8U4wZmDLADzWKgRFeBVBVXAZV3s8pRAAq7OUW2eQZ3rNolM4zJ1I0hnE1bcIUPpCBZhD1Xx5rJSUpZVrACK5jP4JYK0pEO8+HioS9IlS8ezv77f/AInIHJK+SU/cAAAAAElFTkSuQmCC",imageryLabelsUrl="https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_Labels/MapServer/tile/{z}/{y}/{x}",imageryLabelsSource={tiles:[imageryLabelsUrl],type:"raster",tileSize:256},imageryParcelOutlinesSource={tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/PWDParcel_ImageryOverlay/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},imagerySources={2025:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2025_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2024:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2024_1in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2023:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2023/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2022:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2022_2in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2020:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2020_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2019:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2019_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2018:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2018_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2017:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2017_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2016:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2016_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2015:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2015_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2012:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2012_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2010:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2010_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2008:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2008_3in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},2004:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2004_6in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1996:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_1996_6in/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1962:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/HistoricLandUse_1962/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1942:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/HistoricLandUse_1942/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1910:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/HistoricBromleyAtlas_1910/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1895:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/HistoricBromleyAtlas_1895/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1875:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/HistoricGMHopkinsAtlas_1875/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},1860:{tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/HistoricHexamerLocherAtlas_1860/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256}},defaultBasemapSource={tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityBasemap/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},defaultLabelsSource={tiles:["https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityBasemap_Labels/MapServer/tile/{z}/{y}/{x}"],type:"raster",tileSize:256},defaultImageryOptions=[{label:"2025",year:"2025",imageryUrl:imagerySources[2025].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2024",year:"2024",imageryUrl:imagerySources[2024].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2023",year:"2023",imageryUrl:imagerySources[2023].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2022",year:"2022",imageryUrl:imagerySources[2022].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2020",year:"2020",imageryUrl:imagerySources[2020].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2019",year:"2019",imageryUrl:imagerySources[2019].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2018",year:"2018",imageryUrl:imagerySources[2018].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2017",year:"2017",imageryUrl:imagerySources[2017].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2016",year:"2016",imageryUrl:imagerySources[2016].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2015",year:"2015",imageryUrl:imagerySources[2015].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2012",year:"2012",imageryUrl:imagerySources[2012].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2010",year:"2010",imageryUrl:imagerySources[2010].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2008",year:"2008",imageryUrl:imagerySources[2008].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"2004",year:"2004",imageryUrl:imagerySources[2004].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"1996",year:"1996",imageryUrl:imagerySources[1996].tiles[0],imageryLabelsUrl,showLabels:!0},{label:"1962",year:"1962",imageryUrl:imagerySources[1962].tiles[0],imageryLabelsUrl:null,showLabels:!1},{label:"1942",year:"1942",imageryUrl:imagerySources[1942].tiles[0],imageryLabelsUrl:null,showLabels:!1},{label:"1910",year:"1910",imageryUrl:imagerySources[1910].tiles[0],imageryLabelsUrl:null,showLabels:!1},{label:"1895",year:"1895",imageryUrl:imagerySources[1895].tiles[0],imageryLabelsUrl:null,showLabels:!1},{label:"1875",year:"1875",imageryUrl:imagerySources[1875].tiles[0],imageryLabelsUrl:null,showLabels:!1},{label:"1860",year:"1860",imageryUrl:imagerySources[1860].tiles[0],imageryLabelsUrl:null,showLabels:!1}],_sfc_main$n=vue.defineComponent({__name:"BasemapToggle",props:{position:{default:"top-right"},imageryUrl:{default:"https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_2024_1in/MapServer/tile/{z}/{y}/{x}"},imageryLabelsUrl:{default:"https://tiles.arcgis.com/tiles/fLeGjb7u4uXqeF9q/arcgis/rest/services/CityImagery_Labels/MapServer/tile/{z}/{y}/{x}"},iconImage:{},basemapImage:{},title:{default:"Toggle Imagery"},iconSize:{default:29},showDropdown:{type:Boolean,default:!1},dropdownOptions:{default:()=>defaultImageryOptions},teleportTo:{default:void 0},className:{}},emits:["change"],setup(Mt,{emit:V}){const O=vue.inject("handleBasemapChange",null),G=Mt,X=V,Y=vue.ref(!1),ge=vue.ref(G.imageryUrl),we=vue.ref(G.imageryLabelsUrl??null),fe=vue.ref(G.dropdownOptions?.[0]?.showLabels??!0),Me=vue.ref(0),ee=vue.ref(G.iconImage??defaultImageryIcon);function he(){Y.value=!Y.value;let Te;Y.value?(ee.value=G.basemapImage??defaultBasemapIcon,Te={showImagery:!0,imageryUrl:ge.value,imageryLabelsUrl:we.value,showLabels:fe.value}):(ee.value=G.iconImage??defaultImageryIcon,Te={showImagery:!1,imageryUrl:null,imageryLabelsUrl:null,showLabels:!0}),X("change",Te),O&&O(Te)}function me(Te,Oe){if(Me.value=Oe,ge.value=Te.imageryUrl,we.value=Te.imageryLabelsUrl,fe.value=Te.showLabels??!0,Y.value){const Pe={showImagery:!0,imageryUrl:Te.imageryUrl,imageryLabelsUrl:Te.imageryLabelsUrl,showLabels:Te.showLabels??!0};X("change",Pe),O&&O(Pe)}}return(Te,Oe)=>(vue.openBlock(),vue.createBlock(_sfc_main$p,{image:ee.value,position:G.position,"teleport-to":G.teleportTo,title:G.title,"icon-size":G.iconSize,onClick:he},{default:vue.withCtx(()=>[Mt.showDropdown&&Mt.dropdownOptions.length>0&&Y.value?(vue.openBlock(),vue.createBlock(_sfc_main$o,{key:0,options:Mt.dropdownOptions,"selected-index":Me.value,"use-as-control":!1,"is-drop-up":Mt.position?.includes("bottom"),onSelect:me},null,8,["options","selected-index","is-drop-up"])):vue.createCommentVNode("",!0)]),_:1},8,["image","position","teleport-to","title","icon-size"]))}}),_sfc_main$m=vue.defineComponent({__name:"MapNavigationControl",props:{position:{default:"top-right"},className:{}},setup(Mt){const V=Mt;return useMapControl.useMapControl(V,()=>new maplibregl.NavigationControl),(O,G)=>vue.renderSlot(O.$slots,"default")}}),_sfc_main$l=vue.defineComponent({__name:"GeolocationButton",props:{position:{default:"top-right"},icon:{},iconSize:{default:18},title:{default:"Show my location"},trackUser:{type:Boolean,default:!1},markerColor:{default:"#4285F4"},teleportTo:{default:void 0},className:{}},emits:["located","error"],setup(Mt,{emit:V}){const O=Mt,G=O.icon||faLocationCrosshairs,X=V,Y=vue.inject("map"),ge=vue.ref(!1),we=vue.ref(!1);let fe=null,Me=null;const ee=(Ne,Le)=>{if(!Y?.value)return;const De=document.createElement("div");De.className="geolocation-marker",De.setAttribute("role","img"),De.setAttribute("aria-label","Your location"),De.innerHTML=`
|
|
559
559
|
<div class="geolocation-marker-dot"></div>
|
|
560
560
|
<div class="geolocation-marker-pulse"></div>
|
|
561
|
-
`,fe=new maplibregl.Marker({element:De}).setLngLat([Ne,Le]).addTo(Y.value)},he=(Ne,Le)=>{fe?fe.setLngLat([Ne,Le]):ee(Ne,Le)},me=()=>{fe&&(fe.remove(),fe=null)},Te=()=>{Me!==null&&(navigator.geolocation.clearWatch(Me),Me=null),we.value=!1},Oe=(Ne,Le=!1)=>{if(!Y?.value)return;const{longitude:De,latitude:bt,accuracy:wt}=Ne.coords;Le&&(Y.value.setCenter([De,bt]),Y.value.setZoom(16)),he(De,bt),X("located",{longitude:De,latitude:bt,accuracy:wt}),ge.value=!1},Pe=()=>{if(!Y?.value||!navigator.geolocation){X("error",new Error("Geolocation not supported"));return}if(we.value){Te(),me();return}if(ge.value=!0,O.trackUser){we.value=!0;let Ne=!0;Me=navigator.geolocation.watchPosition(Le=>{Oe(Le,Ne),Ne=!1},Le=>{X("error",Le),ge.value=!1,Te()},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})}else navigator.geolocation.getCurrentPosition(Ne=>{Oe(Ne,!0)},Ne=>{X("error",Ne),ge.value=!1},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})};return vue.onBeforeUnmount(()=>{Te(),me()}),(Ne,Le)=>(vue.openBlock(),vue.createBlock(_sfc_main$p,{icon:vue.unref(G),position:O.position,"teleport-to":O.teleportTo,title:O.title,"icon-size":O.iconSize,onClick:Pe},null,8,["icon","position","teleport-to","title","icon-size"]))}}),_hoisted_1$c=["aria-label"],BASEMAP_CEILING_ID="basemap-ceiling",_sfc_main$k=vue.defineComponent({__name:"Map",props:{center:{default:()=>[-75.163613,39.952372]},zoom:{default:16},style:{default:()=>({version:8,sources:{},layers:[]})},minZoom:{default:0},maxZoom:{default:22},pitch:{default:0},bearing:{default:0},basemapUrl:{},labelsUrl:{},basemapChangeControls:{},navigationControls:{},geolocationControl:{},mapSearchControl:{},noDefaultTileLayers:{type:Boolean,default:!1},basemapBeforeId:{default:void 0},toolPanelLayout:{default:"vertical"},toolPanelSplitRatio:{default:50},cyclomediaConfig:{},enableCyclomedia:{type:Boolean,default:!1},cyclomediaButtonPosition:{default:"top-right"},pictometryCredentials:{},enablePictometry:{type:Boolean,default:!1},pictometryButtonPosition:{default:"top-right"},ariaLabel:{default:"Interactive map"},className:{}},emits:["load","click","move","moveend","zoom","searchResult"],setup(Mt,{expose:V,emit:O}){const G=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaButton-DfzBEAvd.cjs"))),X=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>CyclomediaPanel$1)),Y=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaRecordingsLayer-ZT6rVet1.cjs"))),ge=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaCameraIcon-DE6-fuiX.cjs"))),we=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaViewcone-C_7gGAY7.cjs"))),fe=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PictometryButton-htTcpha4.cjs"))),Me=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>PictometryPanel$1)),ee=Mt,he=O,me=vue.ref(null),Te=vue.ref(null),Oe=vue.ref(!1),Pe=vue.ref(ee.center),Ne=vue.ref(ee.zoom),Le=vue.ref(ee.pitch),De=vue.ref(ee.bearing),bt=vue.ref(null),wt=vue.ref(!1),jt=vue.ref(defaultImageryOptions[0]?.imageryUrl||null),Tt=vue.ref(defaultImageryOptions[0]?.imageryLabelsUrl||null),St=vue.ref(defaultImageryOptions[0]?.showLabels??!0),Ot=vue.ref(!1),It=vue.ref(null),Nt=vue.ref(!1),Lt=vue.ref(!1),Dt=vue.ref(null);function Gt(ar,mr){It.value=ar,ar==="cyclomedia"?(Nt.value||(Dt.value=mr,Nt.value=!0),Ot.value=!0):ar==="pictometry"&&(Lt.value||(Dt.value=mr,Lt.value=!0))}function Kt(){It.value=null,Dt.value=null,Ot.value=!1}function $t(ar){ar.active?Gt(ar.tool,ar.location):Kt()}function Xt(ar){$t({tool:"cyclomedia",...ar})}function en(ar){$t({tool:"pictometry",...ar})}const Bt=vue.ref(null),tn=vue.ref(0),an=vue.ref(80);function un(ar){Bt.value=[ar.lng,ar.lat],tn.value=ar.yaw??0,an.value=ar.hFov??80}function fn(ar){It.value!=="cyclomedia"?Gt("cyclomedia",ar):Dt.value={lng:ar.lng,lat:ar.lat}}function on(ar){const mr=ar.lonLat.lon,sr=ar.lonLat.lat;(Dt.value?.lng!==mr||Dt.value?.lat!==sr)&&(Dt.value={lng:mr,lat:sr})}function cn(ar){return{type:"raster",tiles:[ar.includes("{z}")?ar:`${ar}tile/{z}/{y}/{x}`],tileSize:256}}const yn=vue.computed(()=>wt.value&&jt.value?cn(jt.value):ee.basemapUrl?cn(ee.basemapUrl):defaultBasemapSource),Mn=vue.computed(()=>wt.value?St.value&&Tt.value?cn(Tt.value):null:ee.labelsUrl!==void 0?ee.labelsUrl===null?null:cn(ee.labelsUrl):defaultLabelsSource);function dn(ar){wt.value=ar.showImagery,jt.value=ar.imageryUrl,Tt.value=ar.imageryLabelsUrl,St.value=ar.showLabels}function wn(ar){const[mr,sr]=ar.geometry.coordinates;Dt.value={lng:mr,lat:sr},he("searchResult",ar)}const Dn=vue.computed(()=>ee.basemapBeforeId||BASEMAP_CEILING_ID),xn=vue.computed(()=>It.value!==null),gn=vue.computed(()=>({"layout-vertical":ee.toolPanelLayout==="vertical","layout-horizontal":ee.toolPanelLayout==="horizontal"})),mn=vue.computed(()=>{if(!xn.value)return{width:"100%",height:"100%"};const mr=`${ee.toolPanelSplitRatio??50}%`;return ee.toolPanelLayout==="vertical"?{width:"100%",height:mr}:{width:mr,height:"100%"}}),Pn=vue.computed(()=>{const mr=`${100-(ee.toolPanelSplitRatio??50)}%`;return ee.toolPanelLayout==="vertical"?{width:"100%",height:mr}:{width:mr,height:"100%"}});vue.provide("map",Te),vue.provide("cyclomediaConfig",ee.cyclomediaConfig||null),vue.provide("pictometryCredentials",ee.pictometryCredentials||null),vue.provide("toolLocation",Dt),vue.provide("isLoaded",Oe),vue.provide("handleBasemapChange",dn);const Fn=vue.ref(!1);vue.provide("isDrawing",Fn);const Wn=vue.ref(new Set),Qn=ar=>{Wn.value.add(ar)};vue.provide("registerClickableLayer",Qn);const Xn=ar=>{Wn.value.delete(ar)};vue.provide("unregisterClickableLayer",Xn),vue.provide("cyclomediaActive",Ot),vue.provide("activeTool",It),vue.provide("toolLocation",Dt),vue.provide("handleToolToggle",$t);const In=vue.ref(null),Kn=vue.ref(null),Un=vue.ref(null),Yn=vue.ref(null);return vue.provide("controlCorners",{"top-left":In,"top-right":Kn,"bottom-left":Un,"bottom-right":Yn}),vue.onMounted(()=>{me.value&&(Te.value=new maplibregl.Map({container:me.value,style:ee.style,center:ee.center,zoom:ee.zoom,minZoom:ee.minZoom,maxZoom:ee.maxZoom,pitch:ee.pitch,bearing:ee.bearing,attributionControl:!1}),Te.value.on("load",()=>{Oe.value=!0,Te.value&&he("load",Te.value)}),Te.value.on("click",ar=>{if(!Fn.value){if(Wn.value.size>0&&Te.value){const mr=Array.from(Wn.value).filter(sr=>Te.value?.getLayer(sr));if(mr.length>0){const rr=[[ar.point.x-10,ar.point.y-10],[ar.point.x+10,ar.point.y+10]];if(Te.value.queryRenderedFeatures(rr,{layers:mr}).length>0)return}}he("click",ar)}}),Te.value.on("move",()=>{Te.value&&(Pe.value=Te.value.getCenter(),Ne.value=Te.value.getZoom(),he("move",{center:Te.value.getCenter(),zoom:Te.value.getZoom()}))}),Te.value.on("moveend",()=>{if(Te.value){const ar=Te.value.getBounds();bt.value={west:ar.getWest(),south:ar.getSouth(),east:ar.getEast(),north:ar.getNorth()},he("moveend",{center:Te.value.getCenter(),zoom:Te.value.getZoom(),bounds:bt.value})}}),Te.value.on("zoom",()=>{Te.value&&(Ne.value=Te.value.getZoom(),he("zoom",Te.value.getZoom()))}),Te.value.on("pitch",()=>{Te.value&&(Le.value=Te.value.getPitch())}),Te.value.on("rotate",()=>{Te.value&&(De.value=Te.value.getBearing())}))}),vue.watch(()=>ee.center,ar=>{Te.value&&ar&&(Te.value.setCenter(ar),Pe.value=ar)}),vue.watch(()=>ee.zoom,ar=>{Te.value&&ar!==void 0&&(Te.value.setZoom(ar),Ne.value=ar)}),vue.watch(()=>ee.pitch,ar=>{Te.value&&ar!==void 0&&(Te.value.setPitch(ar),Le.value=ar)}),vue.watch(()=>ee.bearing,ar=>{Te.value&&ar!==void 0&&(Te.value.setBearing(ar),De.value=ar)}),vue.watch(()=>ee.style,ar=>{Te.value&&ar&&Te.value.setStyle(ar)}),vue.watch(()=>ee.minZoom,ar=>{Te.value&&ar!==void 0&&Te.value.setMinZoom(ar)}),vue.watch(()=>ee.maxZoom,ar=>{Te.value&&ar!==void 0&&Te.value.setMaxZoom(ar)}),vue.onBeforeUnmount(()=>{Oe.value=!1,Te.value&&Te.value.remove()}),V({map:Te,isLoaded:Oe,currentCenter:Pe,currentZoom:Ne,currentPitch:Le,currentBearing:De,currentBounds:bt,activeTool:It,toolLocation:Dt,cyclomediaActive:Ot}),(ar,mr)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["map-wrapper",gn.value])},[vue.createElementVNode("div",{ref_key:"mapContainer",ref:me,class:"map-container",style:vue.normalizeStyle(mn.value),role:"region","aria-label":Mt.ariaLabel||void 0},[vue.createElementVNode("a",{href:"#",class:"map-keyboard-instructions",onClick:mr[0]||(mr[0]=vue.withModifiers(()=>{},["prevent"]))}," Use arrow keys to pan the map. Press + or - to zoom. Press Tab to exit. "),Mt.noDefaultTileLayers?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:0,id:"basemap",source:yn.value,"before-id":"basemap-labels"},null,8,["source"])),!Mt.noDefaultTileLayers&&Mn.value?(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:1,id:"basemap-labels",source:Mn.value,"before-id":Dn.value},null,8,["source","before-id"])):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$r,{id:BASEMAP_CEILING_ID}),It.value==="cyclomedia"?(vue.openBlock(),vue.createBlock(vue.unref(Y),{key:2,visible:!0,"min-zoom":17,onRecordingClick:fn})):vue.createCommentVNode("",!0),Mt.enableCyclomedia&&It.value==="cyclomedia"&&Bt.value?(vue.openBlock(),vue.createBlock(vue.unref(we),{key:3,position:Bt.value,yaw:tn.value,"h-fov":an.value,"icon-size":.5},null,8,["position","yaw","h-fov"])):vue.createCommentVNode("",!0),Mt.enableCyclomedia&&It.value==="cyclomedia"&&Bt.value?(vue.openBlock(),vue.createBlock(vue.unref(ge),{key:4,position:Bt.value,yaw:tn.value,"icon-size":.09},null,8,["position","yaw"])):vue.createCommentVNode("",!0),Mt.navigationControls?(vue.openBlock(),vue.createBlock(_sfc_main$m,{key:5,position:Mt.navigationControls.position},null,8,["position"])):vue.createCommentVNode("",!0),Mt.geolocationControl?(vue.openBlock(),vue.createBlock(_sfc_main$l,{key:6,position:Mt.geolocationControl.position},null,8,["position"])):vue.createCommentVNode("",!0),Mt.mapSearchControl?(vue.openBlock(),vue.createBlock(_sfc_main$q,{key:7,position:Mt.mapSearchControl.position,placeholder:Mt.mapSearchControl.placeholder??"Search for an address",autocomplete:Mt.mapSearchControl.autocomplete??!1,onResult:wn},null,8,["position","placeholder","autocomplete"])):vue.createCommentVNode("",!0),Mt.basemapChangeControls?.toggle?(vue.openBlock(),vue.createBlock(_sfc_main$n,{key:8,position:Mt.basemapChangeControls.position,"show-dropdown":Mt.basemapChangeControls.dropdown,onChange:dn},null,8,["position","show-dropdown"])):vue.createCommentVNode("",!0),Mt.enableCyclomedia?(vue.openBlock(),vue.createBlock(vue.unref(G),{key:9,position:Mt.cyclomediaButtonPosition,active:It.value==="cyclomedia",onToggle:Xt},null,8,["position","active"])):vue.createCommentVNode("",!0),Mt.enablePictometry?(vue.openBlock(),vue.createBlock(vue.unref(fe),{key:10,position:Mt.pictometryButtonPosition,active:It.value==="pictometry",onToggle:en},null,8,["position","active"])):vue.createCommentVNode("",!0),vue.renderSlot(ar.$slots,"default",{},void 0,!0),vue.createElementVNode("div",{ref_key:"cornerTopLeft",ref:In,class:"map-controls map-controls-top-left"},null,512),vue.createElementVNode("div",{ref_key:"cornerTopRight",ref:Kn,class:"map-controls map-controls-top-right"},null,512),vue.createElementVNode("div",{ref_key:"cornerBottomLeft",ref:Un,class:"map-controls map-controls-bottom-left"},null,512),vue.createElementVNode("div",{ref_key:"cornerBottomRight",ref:Yn,class:"map-controls map-controls-bottom-right"},null,512)],12,_hoisted_1$c),vue.withDirectives(vue.createElementVNode("div",{class:"tool-panel-container",style:vue.normalizeStyle(Pn.value),role:"region","aria-label":"Cyclomedia street view"},[Nt.value?(vue.openBlock(),vue.createBlock(vue.unref(X),{key:0,"auto-open":!0,"pop-out-enabled":!0,onViewChange:un})):vue.createCommentVNode("",!0)],4),[[vue.vShow,It.value==="cyclomedia"]]),vue.withDirectives(vue.createElementVNode("div",{class:"tool-panel-container",style:vue.normalizeStyle(Pn.value),role:"region","aria-label":"Pictometry oblique imagery"},[Lt.value?(vue.openBlock(),vue.createBlock(vue.unref(Me),{key:0,"auto-open":!0,"pop-out-enabled":!0,onViewChange:on})):vue.createCommentVNode("",!0)],4),[[vue.vShow,It.value==="pictometry"]])],2))}}),_export_sfc=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},Map$1=_export_sfc(_sfc_main$k,[["__scopeId","data-v-87c2959a"]]),_sfc_main$j=vue.defineComponent({__name:"MapMarker",props:{lngLat:{},color:{default:"#FF0000"},popup:{default:void 0},draggable:{type:Boolean,default:!1},rotation:{default:0},offset:{default:void 0},icon:{default:void 0},iconSize:{default:24},iconColor:{default:void 0},ariaLabel:{default:void 0},zIndex:{default:void 0},className:{}},emits:["dragstart","drag","dragend"],setup(Mt,{emit:V}){const O=Mt,G=V,X=vue.useSlots(),Y=vue.ref(null),ge=vue.inject("map"),we=vue.inject("isLoaded");let fe=null;const Me=()=>{if(!ge||!ge.value||!O.lngLat)return;ee();const he={draggable:O.draggable};if(X.default){const Te=document.createElement("div");Y.value=Te,he.element=Te,he.anchor="bottom"}else if(O.icon){const Te=document.createElement("div");Te.className="custom-marker",Te.innerHTML=`<i class="${O.icon}" style="font-size: ${O.iconSize}px; color: ${O.iconColor||O.color};"></i>`,he.element=Te}else he.color=O.color;if(O.rotation&&(he.rotation=O.rotation),O.offset&&(he.offset=O.offset),fe=new maplibregl.Marker(he).setLngLat(O.lngLat),O.popup){const Te=new maplibregl.Popup().setHTML(O.popup);fe.setPopup(Te)}fe.addTo(ge.value);const me=fe.getElement();O.ariaLabel?(me.setAttribute("role","img"),me.setAttribute("aria-label",O.ariaLabel)):me.setAttribute("aria-hidden","true"),O.zIndex!=null&&(me.style.zIndex=String(O.zIndex)),O.draggable&&fe&&(fe.on("dragstart",()=>fe&&G("dragstart",fe.getLngLat())),fe.on("drag",()=>fe&&G("drag",fe.getLngLat())),fe.on("dragend",()=>fe&&G("dragend",fe.getLngLat())))},ee=()=>{fe&&(fe.remove(),fe=null),Y.value=null};return vue.watch(()=>O.zIndex,he=>{if(!fe)return;const me=fe.getElement();he!=null?me.style.zIndex=String(he):me.style.zIndex=""}),vue.watch(()=>O.lngLat,he=>{he&&fe?fe.setLngLat(he):he&&!fe&&ge?.value&&we?.value?Me():!he&&fe&&ee()},{deep:!0}),vue.watch(()=>we?.value,async he=>{he&&ge?.value&&O.lngLat&&(await vue.nextTick(),Me())},{immediate:!0}),vue.onBeforeUnmount(()=>{ee()}),(he,me)=>Y.value&&he.$slots.default?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:Y.value},[vue.renderSlot(he.$slots,"default")],8,["to"])):vue.createCommentVNode("",!0)}}),_hoisted_1$b=["role","aria-label","aria-hidden"],_hoisted_2$6=["role","aria-label","aria-hidden"],_hoisted_3$5={class:"icon-circle"},_hoisted_4$3={class:"pin-icon"},_hoisted_5$2={key:0,class:"pin-text"},_sfc_main$i=vue.defineComponent({__name:"MapIconTextPin",props:{icon:{},text:{default:void 0},colorTheme:{default:"dark-primary"},color:{default:void 0},size:{default:"large"},zoom:{default:void 0},selected:{type:Boolean,default:!1},visited:{type:Boolean,default:!1},hovered:{type:Boolean,default:!1},ariaLabel:{default:void 0},className:{}},emits:["mouseenter","mouseleave","click"],setup(Mt){const V=Mt,O=vue.computed(()=>V.zoom!==void 0?V.zoom<12?"dot":V.zoom<14?"small":"large":V.size),G=vue.computed(()=>{if(V.color)return{"--pin-bg":"white","--pin-fg":V.color,"--pin-border":"white","--pin-bg-hover":"var(--Schemes-Surface-Container-Low)","--pin-fg-hover":V.color,"--pin-border-hover":V.color,"--pin-bg-selected":V.color,"--pin-fg-selected":"white","--pin-border-selected":V.color,"--pin-bg-visited":"var(--Schemes-Surface-Container)","--pin-fg-visited":V.color,"--pin-border-visited":"var(--Schemes-Surface-Container)"}});return(X,Y)=>O.value==="dot"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["map-icon-text-pin-dot",[`theme-${Mt.colorTheme}`,{selected:Mt.selected,visited:Mt.visited,hovered:Mt.hovered}]]),style:vue.normalizeStyle(G.value),role:Mt.ariaLabel?"img":void 0,"aria-label":Mt.ariaLabel,"aria-hidden":Mt.ariaLabel?void 0:"true",onMouseenter:Y[0]||(Y[0]=ge=>X.$emit("mouseenter",ge)),onMouseleave:Y[1]||(Y[1]=ge=>X.$emit("mouseleave",ge)),onClick:Y[2]||(Y[2]=ge=>X.$emit("click",ge))},null,46,_hoisted_1$b)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["map-icon-text-pin",[`theme-${Mt.colorTheme}`,`size-${O.value}`,{"icon-only":!Mt.text,selected:Mt.selected,visited:Mt.visited,hovered:Mt.hovered}]]),style:vue.normalizeStyle(G.value),role:Mt.ariaLabel?"img":void 0,"aria-label":Mt.ariaLabel,"aria-hidden":Mt.ariaLabel?void 0:"true",onMouseenter:Y[3]||(Y[3]=ge=>X.$emit("mouseenter",ge)),onMouseleave:Y[4]||(Y[4]=ge=>X.$emit("mouseleave",ge)),onClick:Y[5]||(Y[5]=ge=>X.$emit("click",ge))},[vue.createElementVNode("div",_hoisted_3$5,[vue.createElementVNode("span",_hoisted_4$3,[vue.createVNode(vue.unref(FontAwesomeIcon),{icon:Mt.icon},null,8,["icon"])])]),Mt.text?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$2,vue.toDisplayString(Mt.text),1)):vue.createCommentVNode("",!0)],46,_hoisted_2$6))}}),MapIconTextPin=_export_sfc(_sfc_main$i,[["__scopeId","data-v-5935cd49"]]),ie=["disabled"],A=vue.defineComponent({inheritAttrs:!1,__name:"PhlButton",props:{href:{},to:{},target:{},rel:{},disabled:{type:Boolean,default:!1},clickTarget:{},variant:{default:"primary"},size:{default:"medium"},iconOnly:{type:Boolean,default:!1},iconRight:{type:Boolean},text:{},className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{}},setup(Mt){const V=Mt,O=ge=>"href"in ge&&ge.href!==void 0||"to"in ge&&ge.to!==void 0,G=vue.computed(()=>ve$1("phila-button",`phila-button--${V.variant}`,V.size&&`is-${V.size}`,V.iconOnly&&"icon-button",V.iconOnly&&V.variant==="standard"&&"icon-button--standard",V.className)),X=vue.computed(()=>O(V)?"to"in V&&V.to!==void 0?{to:V.to,disabled:V.disabled,className:G.value}:{href:V.href,target:V.target,rel:V.rel,disabled:V.disabled,className:G.value}:{}),Y=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,iconRight:V.iconRight,iconOnly:V.iconOnly,text:V.text,size:V.size}));return(ge,we)=>O(V)?(vue.openBlock(),vue.createBlock(vue.unref(Ee),vue.mergeProps({key:0},{...X.value,...ge.$attrs},{role:"button"}),{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)]),_:3},16)):(vue.openBlock(),vue.createElementBlock("button",vue.mergeProps({key:1,type:"button",disabled:V.disabled,class:G.value},ge.$attrs),[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)],16,ie))}});var I={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]};const oe=["id"],le={key:0,class:"tooltip__tail","aria-hidden":"true"},se={key:1,class:"tooltip__plain-row has-text-body-small"},ne={key:0,class:"tooltip__title-row"},ae={key:0},re=vue.defineComponent({__name:"TooltipBubble",props:{id:{},type:{default:"plain"},color:{default:"default"},tail:{type:Boolean,default:!1},placement:{default:"top-center"},title:{},dismissable:{type:Boolean,default:!1},className:{}},emits:["dismiss"],setup(Mt){const V=Mt,O=vue.computed(()=>ve$1("tooltip","content","resets-link-colors",`tooltip--${V.type}`,`tooltip--${V.color}`,V.tail&&`tooltip--${V.placement}`,V.className));return(G,X)=>(vue.openBlock(),vue.createElementBlock("div",{id:Mt.id,class:vue.normalizeClass(O.value),role:"tooltip"},[Mt.tail?(vue.openBlock(),vue.createElementBlock("div",le)):vue.createCommentVNode("",!0),Mt.type==="plain"?(vue.openBlock(),vue.createElementBlock("div",se,[vue.renderSlot(G.$slots,"default",{},void 0,!0),Mt.dismissable?(vue.openBlock(),vue.createBlock(vue.unref(A),{key:0,class:"tooltip__dismiss",variant:"standard",size:"extra-small","icon-only":!0,"icon-definition":vue.unref(I),"aria-label":"Dismiss tooltip",onClick:X[0]||(X[0]=Y=>G.$emit("dismiss"))},null,8,["icon-definition"])):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[Mt.title||Mt.dismissable?(vue.openBlock(),vue.createElementBlock("div",ne,[Mt.title?(vue.openBlock(),vue.createElementBlock("h6",ae,vue.toDisplayString(Mt.title),1)):vue.createCommentVNode("",!0),Mt.dismissable?(vue.openBlock(),vue.createBlock(vue.unref(A),{key:1,class:"tooltip__dismiss",variant:"standard",size:"extra-small","icon-only":!0,"icon-definition":vue.unref(I),"aria-label":"Dismiss tooltip",onClick:X[1]||(X[1]=Y=>G.$emit("dismiss"))},null,8,["icon-definition"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.renderSlot(G.$slots,"default",{},void 0,!0)],64))],10,oe))}}),F=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},ce=F(re,[["__scopeId","data-v-7ccd7c7d"]]),_sfc_main$h=vue.defineComponent({__name:"MapTooltip",props:{visible:{type:Boolean,default:!1},hoverBridge:{type:Boolean,default:!0},type:{default:"plain"},color:{default:"default"},tail:{type:Boolean,default:!1},placement:{default:"top-center"},title:{},dismissable:{type:Boolean},className:{}},emits:["mouseenter","mouseleave"],setup(Mt){const V=Mt;return(O,G)=>Mt.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"map-tooltip",onMouseenter:G[0]||(G[0]=X=>Mt.hoverBridge?O.$emit("mouseenter",X):void 0),onMouseleave:G[1]||(G[1]=X=>Mt.hoverBridge?O.$emit("mouseleave",X):void 0)},[vue.createVNode(vue.unref(ce),{type:V.type,color:V.color,tail:V.tail,placement:V.placement,title:V.title,dismissable:V.dismissable,"class-name":V.className},{default:vue.withCtx(()=>[vue.renderSlot(O.$slots,"default",{},void 0,!0)]),_:3},8,["type","color","tail","placement","title","dismissable","class-name"])],32)):vue.createCommentVNode("",!0)}}),MapTooltip=_export_sfc(_sfc_main$h,[["__scopeId","data-v-2ee3171f"]]),FOCUSABLE_SELECTOR='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',_sfc_main$g=vue.defineComponent({__name:"MapPopup",props:{lngLat:{},html:{default:void 0},closeButton:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!0},className:{default:void 0},maxWidth:{default:"300px"},offset:{default:void 0},anchor:{default:"bottom"},showNavigation:{type:Boolean,default:!1},currentFeatureIndex:{default:0},totalFeatures:{default:1},layerName:{default:void 0}},emits:["close","open","next","previous"],setup(Mt,{emit:V}){const O=Mt,G=V,X=vue.useSlots(),Y=vue.inject("map"),ge=vue.inject("isLoaded");let we=null;const fe=vue.ref(null);let Me=null,ee=null;const he=()=>{if(!Y?.value||!we)return;const Le=Y.value;requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(!we)return;const De=we.getElement();if(!De)return;const bt=Le.getContainer(),wt=De.getBoundingClientRect(),jt=bt.getBoundingClientRect(),Tt=10;let St=0,Ot=0;wt.top<jt.top+Tt&&(Ot=wt.top-jt.top-Tt),wt.bottom>jt.bottom-Tt&&(Ot=wt.bottom-jt.bottom+Tt),wt.left<jt.left+Tt&&(St=wt.left-jt.left-Tt),wt.right>jt.right-Tt&&(St=wt.right-jt.right+Tt),(St!==0||Ot!==0)&&Le.panBy([St,Ot],{duration:300})})})},me=()=>{if(!Y?.value)return;const Le=document.activeElement;Ne(),Me=Le;const De={closeButton:O.closeButton,closeOnClick:O.closeOnClick,maxWidth:O.maxWidth},wt=O.showNavigation&&O.totalFeatures&&O.totalFeatures>1?"multi-feature-popup":"";if((O.className||wt)&&(De.className=[O.className,wt].filter(Boolean).join(" ")),O.offset&&(De.offset=O.offset),O.anchor&&(De.anchor=O.anchor),we=new maplibregl.Popup(De),X.default&&fe.value)we.setDOMContent(fe.value);else if(O.html){let Tt="";O.showNavigation&&O.totalFeatures&&O.totalFeatures>1&&(Tt+=Te()),Tt+=`<div class="popup-scroll-content">${O.html}</div>`,we.setHTML(Tt),O.showNavigation&&O.totalFeatures&&O.totalFeatures>1&&setTimeout(()=>{Oe()},0)}we.setLngLat(O.lngLat),we.addTo(Y.value),G("open"),we.on("close",()=>{Pe(),Me&&typeof Me.focus=="function"&&(Me.focus(),Me=null),G("close")});const jt=we.getElement();if(jt){const Tt=jt.querySelector(".maplibregl-popup-content");if(Tt){Tt.setAttribute("tabindex","-1"),Tt.setAttribute("role","dialog"),Tt.setAttribute("aria-label","Map popup"),Tt.focus({preventScroll:!0});const Ot=Tt.querySelector(".popup-scroll-content");Ot&&(Ot.scrollTop=0)}const St=jt.querySelector(".maplibregl-popup-close-button");St&&!St.getAttribute("aria-label")&&St.setAttribute("aria-label","Close"),ee=Ot=>{if(Ot.key==="Escape"){Ot.preventDefault(),we?.remove();return}if(Ot.key==="Tab"){const It=jt.querySelectorAll(FOCUSABLE_SELECTOR);if(It.length===0)return;const Nt=It[0],Lt=It[It.length-1];Ot.shiftKey?(document.activeElement===Nt||document.activeElement===Tt)&&(Ot.preventDefault(),Lt.focus()):document.activeElement===Lt&&(Ot.preventDefault(),Nt.focus())}},jt.addEventListener("keydown",ee),he()}},Te=()=>{const Le=O.layerName?`<div class="popup-layer-name">${O.layerName}</div>`:"",De=(O.currentFeatureIndex??0)+1,bt=O.totalFeatures??1,wt=(O.currentFeatureIndex??0)>0,jt=(O.currentFeatureIndex??0)<bt-1;return`
|
|
561
|
+
`,fe=new maplibregl.Marker({element:De}).setLngLat([Ne,Le]).addTo(Y.value)},he=(Ne,Le)=>{fe?fe.setLngLat([Ne,Le]):ee(Ne,Le)},me=()=>{fe&&(fe.remove(),fe=null)},Te=()=>{Me!==null&&(navigator.geolocation.clearWatch(Me),Me=null),we.value=!1},Oe=(Ne,Le=!1)=>{if(!Y?.value)return;const{longitude:De,latitude:bt,accuracy:wt}=Ne.coords;Le&&(Y.value.setCenter([De,bt]),Y.value.setZoom(16)),he(De,bt),X("located",{longitude:De,latitude:bt,accuracy:wt}),ge.value=!1},Pe=()=>{if(!Y?.value||!navigator.geolocation){X("error",new Error("Geolocation not supported"));return}if(we.value){Te(),me();return}if(ge.value=!0,O.trackUser){we.value=!0;let Ne=!0;Me=navigator.geolocation.watchPosition(Le=>{Oe(Le,Ne),Ne=!1},Le=>{X("error",Le),ge.value=!1,Te()},{enableHighAccuracy:!0,timeout:1e4,maximumAge:0})}else navigator.geolocation.getCurrentPosition(Ne=>{Oe(Ne,!0)},Ne=>{X("error",Ne),ge.value=!1},{enableHighAccuracy:!0,timeout:5e3,maximumAge:0})};return vue.onBeforeUnmount(()=>{Te(),me()}),(Ne,Le)=>(vue.openBlock(),vue.createBlock(_sfc_main$p,{icon:vue.unref(G),position:O.position,"teleport-to":O.teleportTo,title:O.title,"icon-size":O.iconSize,onClick:Pe},null,8,["icon","position","teleport-to","title","icon-size"]))}}),_hoisted_1$c=["aria-label"],BASEMAP_CEILING_ID="basemap-ceiling",_sfc_main$k=vue.defineComponent({__name:"Map",props:{center:{default:()=>[-75.163613,39.952372]},zoom:{default:16},style:{default:()=>({version:8,sources:{},layers:[]})},minZoom:{default:0},maxZoom:{default:22},pitch:{default:0},bearing:{default:0},basemapUrl:{},labelsUrl:{},basemapChangeControls:{},navigationControls:{},geolocationControl:{},mapSearchControl:{},noDefaultTileLayers:{type:Boolean,default:!1},basemapBeforeId:{default:void 0},toolPanelLayout:{default:"vertical"},toolPanelSplitRatio:{default:50},cyclomediaConfig:{},enableCyclomedia:{type:Boolean,default:!1},cyclomediaButtonPosition:{default:"top-right"},pictometryCredentials:{},enablePictometry:{type:Boolean,default:!1},pictometryButtonPosition:{default:"top-right"},ariaLabel:{default:"Interactive map"},className:{}},emits:["load","click","move","moveend","zoom","searchResult"],setup(Mt,{expose:V,emit:O}){const G=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaButton-DC62eWPu.cjs"))),X=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>CyclomediaPanel$1)),Y=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaRecordingsLayer-DtKS1prS.cjs"))),ge=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaCameraIcon-hCjhfN8e.cjs"))),we=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./CyclomediaViewcone-DiVLRK0O.cjs"))),fe=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./PictometryButton-CDRBjosX.cjs"))),Me=vue.defineAsyncComponent(()=>Promise.resolve().then(()=>PictometryPanel$1)),ee=Mt,he=O,me=vue.ref(null),Te=vue.ref(null),Oe=vue.ref(!1),Pe=vue.ref(ee.center),Ne=vue.ref(ee.zoom),Le=vue.ref(ee.pitch),De=vue.ref(ee.bearing),bt=vue.ref(null),wt=vue.ref(!1),jt=vue.ref(defaultImageryOptions[0]?.imageryUrl||null),Tt=vue.ref(defaultImageryOptions[0]?.imageryLabelsUrl||null),St=vue.ref(defaultImageryOptions[0]?.showLabels??!0),Ot=vue.ref(!1),It=vue.ref(null),Nt=vue.ref(!1),Lt=vue.ref(!1),Dt=vue.ref(null);function Gt(ar,mr){It.value=ar,ar==="cyclomedia"?(Nt.value||(Dt.value=mr,Nt.value=!0),Ot.value=!0):ar==="pictometry"&&(Lt.value||(Dt.value=mr,Lt.value=!0))}function Kt(){It.value=null,Dt.value=null,Ot.value=!1}function $t(ar){ar.active?Gt(ar.tool,ar.location):Kt()}function Xt(ar){$t({tool:"cyclomedia",...ar})}function en(ar){$t({tool:"pictometry",...ar})}const Bt=vue.ref(null),tn=vue.ref(0),an=vue.ref(80);function un(ar){Bt.value=[ar.lng,ar.lat],tn.value=ar.yaw??0,an.value=ar.hFov??80}function fn(ar){It.value!=="cyclomedia"?Gt("cyclomedia",ar):Dt.value={lng:ar.lng,lat:ar.lat}}function on(ar){const mr=ar.lonLat.lon,sr=ar.lonLat.lat;(Dt.value?.lng!==mr||Dt.value?.lat!==sr)&&(Dt.value={lng:mr,lat:sr})}function cn(ar){return{type:"raster",tiles:[ar.includes("{z}")?ar:`${ar}tile/{z}/{y}/{x}`],tileSize:256}}const yn=vue.computed(()=>wt.value&&jt.value?cn(jt.value):ee.basemapUrl?cn(ee.basemapUrl):defaultBasemapSource),Mn=vue.computed(()=>wt.value?St.value&&Tt.value?cn(Tt.value):null:ee.labelsUrl!==void 0?ee.labelsUrl===null?null:cn(ee.labelsUrl):defaultLabelsSource);function dn(ar){wt.value=ar.showImagery,jt.value=ar.imageryUrl,Tt.value=ar.imageryLabelsUrl,St.value=ar.showLabels}function wn(ar){const[mr,sr]=ar.geometry.coordinates;Dt.value={lng:mr,lat:sr},he("searchResult",ar)}const Dn=vue.computed(()=>ee.basemapBeforeId||BASEMAP_CEILING_ID),xn=vue.computed(()=>It.value!==null),gn=vue.computed(()=>({"layout-vertical":ee.toolPanelLayout==="vertical","layout-horizontal":ee.toolPanelLayout==="horizontal"})),mn=vue.computed(()=>{if(!xn.value)return{width:"100%",height:"100%"};const mr=`${ee.toolPanelSplitRatio??50}%`;return ee.toolPanelLayout==="vertical"?{width:"100%",height:mr}:{width:mr,height:"100%"}}),Pn=vue.computed(()=>{const mr=`${100-(ee.toolPanelSplitRatio??50)}%`;return ee.toolPanelLayout==="vertical"?{width:"100%",height:mr}:{width:mr,height:"100%"}});vue.provide("map",Te),vue.provide("cyclomediaConfig",ee.cyclomediaConfig||null),vue.provide("pictometryCredentials",ee.pictometryCredentials||null),vue.provide("toolLocation",Dt),vue.provide("isLoaded",Oe),vue.provide("handleBasemapChange",dn);const Fn=vue.ref(!1);vue.provide("isDrawing",Fn);const Wn=vue.ref(new Set),Qn=ar=>{Wn.value.add(ar)};vue.provide("registerClickableLayer",Qn);const Xn=ar=>{Wn.value.delete(ar)};vue.provide("unregisterClickableLayer",Xn),vue.provide("cyclomediaActive",Ot),vue.provide("activeTool",It),vue.provide("toolLocation",Dt),vue.provide("handleToolToggle",$t);const In=vue.ref(null),Kn=vue.ref(null),Un=vue.ref(null),Yn=vue.ref(null);return vue.provide("controlCorners",{"top-left":In,"top-right":Kn,"bottom-left":Un,"bottom-right":Yn}),vue.onMounted(()=>{me.value&&(Te.value=new maplibregl.Map({container:me.value,style:ee.style,center:ee.center,zoom:ee.zoom,minZoom:ee.minZoom,maxZoom:ee.maxZoom,pitch:ee.pitch,bearing:ee.bearing,attributionControl:!1}),Te.value.on("load",()=>{Oe.value=!0,Te.value&&he("load",Te.value)}),Te.value.on("click",ar=>{if(!Fn.value){if(Wn.value.size>0&&Te.value){const mr=Array.from(Wn.value).filter(sr=>Te.value?.getLayer(sr));if(mr.length>0){const rr=[[ar.point.x-10,ar.point.y-10],[ar.point.x+10,ar.point.y+10]];if(Te.value.queryRenderedFeatures(rr,{layers:mr}).length>0)return}}he("click",ar)}}),Te.value.on("move",()=>{Te.value&&(Pe.value=Te.value.getCenter(),Ne.value=Te.value.getZoom(),he("move",{center:Te.value.getCenter(),zoom:Te.value.getZoom()}))}),Te.value.on("moveend",()=>{if(Te.value){const ar=Te.value.getBounds();bt.value={west:ar.getWest(),south:ar.getSouth(),east:ar.getEast(),north:ar.getNorth()},he("moveend",{center:Te.value.getCenter(),zoom:Te.value.getZoom(),bounds:bt.value})}}),Te.value.on("zoom",()=>{Te.value&&(Ne.value=Te.value.getZoom(),he("zoom",Te.value.getZoom()))}),Te.value.on("pitch",()=>{Te.value&&(Le.value=Te.value.getPitch())}),Te.value.on("rotate",()=>{Te.value&&(De.value=Te.value.getBearing())}))}),vue.watch(()=>ee.center,ar=>{Te.value&&ar&&(Te.value.setCenter(ar),Pe.value=ar)}),vue.watch(()=>ee.zoom,ar=>{Te.value&&ar!==void 0&&(Te.value.setZoom(ar),Ne.value=ar)}),vue.watch(()=>ee.pitch,ar=>{Te.value&&ar!==void 0&&(Te.value.setPitch(ar),Le.value=ar)}),vue.watch(()=>ee.bearing,ar=>{Te.value&&ar!==void 0&&(Te.value.setBearing(ar),De.value=ar)}),vue.watch(()=>ee.style,ar=>{Te.value&&ar&&Te.value.setStyle(ar)}),vue.watch(()=>ee.minZoom,ar=>{Te.value&&ar!==void 0&&Te.value.setMinZoom(ar)}),vue.watch(()=>ee.maxZoom,ar=>{Te.value&&ar!==void 0&&Te.value.setMaxZoom(ar)}),vue.onBeforeUnmount(()=>{Oe.value=!1,Te.value&&Te.value.remove()}),V({map:Te,isLoaded:Oe,currentCenter:Pe,currentZoom:Ne,currentPitch:Le,currentBearing:De,currentBounds:bt,activeTool:It,toolLocation:Dt,cyclomediaActive:Ot}),(ar,mr)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["map-wrapper",gn.value])},[vue.createElementVNode("div",{ref_key:"mapContainer",ref:me,class:"map-container",style:vue.normalizeStyle(mn.value),role:"region","aria-label":Mt.ariaLabel||void 0},[vue.createElementVNode("a",{href:"#",class:"map-keyboard-instructions",onClick:mr[0]||(mr[0]=vue.withModifiers(()=>{},["prevent"]))}," Use arrow keys to pan the map. Press + or - to zoom. Press Tab to exit. "),Mt.noDefaultTileLayers?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:0,id:"basemap",source:yn.value,"before-id":"basemap-labels"},null,8,["source"])),!Mt.noDefaultTileLayers&&Mn.value?(vue.openBlock(),vue.createBlock(_sfc_main$s,{key:1,id:"basemap-labels",source:Mn.value,"before-id":Dn.value},null,8,["source","before-id"])):vue.createCommentVNode("",!0),vue.createVNode(_sfc_main$r,{id:BASEMAP_CEILING_ID}),It.value==="cyclomedia"?(vue.openBlock(),vue.createBlock(vue.unref(Y),{key:2,visible:!0,"min-zoom":17,onRecordingClick:fn})):vue.createCommentVNode("",!0),Mt.enableCyclomedia&&It.value==="cyclomedia"&&Bt.value?(vue.openBlock(),vue.createBlock(vue.unref(we),{key:3,position:Bt.value,yaw:tn.value,"h-fov":an.value,"icon-size":.5},null,8,["position","yaw","h-fov"])):vue.createCommentVNode("",!0),Mt.enableCyclomedia&&It.value==="cyclomedia"&&Bt.value?(vue.openBlock(),vue.createBlock(vue.unref(ge),{key:4,position:Bt.value,yaw:tn.value,"icon-size":.09},null,8,["position","yaw"])):vue.createCommentVNode("",!0),Mt.navigationControls?(vue.openBlock(),vue.createBlock(_sfc_main$m,{key:5,position:Mt.navigationControls.position},null,8,["position"])):vue.createCommentVNode("",!0),Mt.geolocationControl?(vue.openBlock(),vue.createBlock(_sfc_main$l,{key:6,position:Mt.geolocationControl.position},null,8,["position"])):vue.createCommentVNode("",!0),Mt.mapSearchControl?(vue.openBlock(),vue.createBlock(_sfc_main$q,{key:7,position:Mt.mapSearchControl.position,placeholder:Mt.mapSearchControl.placeholder??"Search for an address",autocomplete:Mt.mapSearchControl.autocomplete??!1,onResult:wn},null,8,["position","placeholder","autocomplete"])):vue.createCommentVNode("",!0),Mt.basemapChangeControls?.toggle?(vue.openBlock(),vue.createBlock(_sfc_main$n,{key:8,position:Mt.basemapChangeControls.position,"show-dropdown":Mt.basemapChangeControls.dropdown,onChange:dn},null,8,["position","show-dropdown"])):vue.createCommentVNode("",!0),Mt.enableCyclomedia?(vue.openBlock(),vue.createBlock(vue.unref(G),{key:9,position:Mt.cyclomediaButtonPosition,active:It.value==="cyclomedia",onToggle:Xt},null,8,["position","active"])):vue.createCommentVNode("",!0),Mt.enablePictometry?(vue.openBlock(),vue.createBlock(vue.unref(fe),{key:10,position:Mt.pictometryButtonPosition,active:It.value==="pictometry",onToggle:en},null,8,["position","active"])):vue.createCommentVNode("",!0),vue.renderSlot(ar.$slots,"default",{},void 0,!0),vue.createElementVNode("div",{ref_key:"cornerTopLeft",ref:In,class:"map-controls map-controls-top-left"},null,512),vue.createElementVNode("div",{ref_key:"cornerTopRight",ref:Kn,class:"map-controls map-controls-top-right"},null,512),vue.createElementVNode("div",{ref_key:"cornerBottomLeft",ref:Un,class:"map-controls map-controls-bottom-left"},null,512),vue.createElementVNode("div",{ref_key:"cornerBottomRight",ref:Yn,class:"map-controls map-controls-bottom-right"},null,512)],12,_hoisted_1$c),vue.withDirectives(vue.createElementVNode("div",{class:"tool-panel-container",style:vue.normalizeStyle(Pn.value),role:"region","aria-label":"Cyclomedia street view"},[Nt.value?(vue.openBlock(),vue.createBlock(vue.unref(X),{key:0,"auto-open":!0,"pop-out-enabled":!0,onViewChange:un})):vue.createCommentVNode("",!0)],4),[[vue.vShow,It.value==="cyclomedia"]]),vue.withDirectives(vue.createElementVNode("div",{class:"tool-panel-container",style:vue.normalizeStyle(Pn.value),role:"region","aria-label":"Pictometry oblique imagery"},[Lt.value?(vue.openBlock(),vue.createBlock(vue.unref(Me),{key:0,"auto-open":!0,"pop-out-enabled":!0,onViewChange:on})):vue.createCommentVNode("",!0)],4),[[vue.vShow,It.value==="pictometry"]])],2))}}),_export_sfc=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},Map$1=_export_sfc(_sfc_main$k,[["__scopeId","data-v-87c2959a"]]),_sfc_main$j=vue.defineComponent({__name:"MapMarker",props:{lngLat:{},color:{default:"#FF0000"},popup:{default:void 0},draggable:{type:Boolean,default:!1},rotation:{default:0},offset:{default:void 0},icon:{default:void 0},iconSize:{default:24},iconColor:{default:void 0},ariaLabel:{default:void 0},zIndex:{default:void 0},className:{}},emits:["dragstart","drag","dragend"],setup(Mt,{emit:V}){const O=Mt,G=V,X=vue.useSlots(),Y=vue.ref(null),ge=vue.inject("map"),we=vue.inject("isLoaded");let fe=null;const Me=()=>{if(!ge||!ge.value||!O.lngLat)return;ee();const he={draggable:O.draggable};if(X.default){const Te=document.createElement("div");Y.value=Te,he.element=Te,he.anchor="bottom"}else if(O.icon){const Te=document.createElement("div");Te.className="custom-marker",Te.innerHTML=`<i class="${O.icon}" style="font-size: ${O.iconSize}px; color: ${O.iconColor||O.color};"></i>`,he.element=Te}else he.color=O.color;if(O.rotation&&(he.rotation=O.rotation),O.offset&&(he.offset=O.offset),fe=new maplibregl.Marker(he).setLngLat(O.lngLat),O.popup){const Te=new maplibregl.Popup().setHTML(O.popup);fe.setPopup(Te)}fe.addTo(ge.value);const me=fe.getElement();O.ariaLabel?(me.setAttribute("role","img"),me.setAttribute("aria-label",O.ariaLabel)):me.setAttribute("aria-hidden","true"),O.zIndex!=null&&(me.style.zIndex=String(O.zIndex)),O.draggable&&fe&&(fe.on("dragstart",()=>fe&&G("dragstart",fe.getLngLat())),fe.on("drag",()=>fe&&G("drag",fe.getLngLat())),fe.on("dragend",()=>fe&&G("dragend",fe.getLngLat())))},ee=()=>{fe&&(fe.remove(),fe=null),Y.value=null};return vue.watch(()=>O.zIndex,he=>{if(!fe)return;const me=fe.getElement();he!=null?me.style.zIndex=String(he):me.style.zIndex=""}),vue.watch(()=>O.lngLat,he=>{he&&fe?fe.setLngLat(he):he&&!fe&&ge?.value&&we?.value?Me():!he&&fe&&ee()},{deep:!0}),vue.watch(()=>we?.value,async he=>{he&&ge?.value&&O.lngLat&&(await vue.nextTick(),Me())},{immediate:!0}),vue.onBeforeUnmount(()=>{ee()}),(he,me)=>Y.value&&he.$slots.default?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:Y.value},[vue.renderSlot(he.$slots,"default")],8,["to"])):vue.createCommentVNode("",!0)}}),_hoisted_1$b=["role","aria-label","aria-hidden"],_hoisted_2$6=["role","aria-label","aria-hidden"],_hoisted_3$5={class:"icon-circle"},_hoisted_4$3={class:"pin-icon"},_hoisted_5$2={key:0,class:"pin-text"},_sfc_main$i=vue.defineComponent({__name:"MapIconTextPin",props:{icon:{},text:{default:void 0},colorTheme:{default:"dark-primary"},color:{default:void 0},size:{default:"large"},zoom:{default:void 0},selected:{type:Boolean,default:!1},visited:{type:Boolean,default:!1},hovered:{type:Boolean,default:!1},ariaLabel:{default:void 0},className:{}},emits:["mouseenter","mouseleave","click"],setup(Mt){const V=Mt,O=vue.computed(()=>V.zoom!==void 0?V.zoom<12?"dot":V.zoom<14?"small":"large":V.size),G=vue.computed(()=>{if(V.color)return{"--pin-bg":"white","--pin-fg":V.color,"--pin-border":"white","--pin-bg-hover":"var(--Schemes-Surface-Container-Low)","--pin-fg-hover":V.color,"--pin-border-hover":V.color,"--pin-bg-selected":V.color,"--pin-fg-selected":"white","--pin-border-selected":V.color,"--pin-bg-visited":"var(--Schemes-Surface-Container)","--pin-fg-visited":V.color,"--pin-border-visited":"var(--Schemes-Surface-Container)"}});return(X,Y)=>O.value==="dot"?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["map-icon-text-pin-dot",[`theme-${Mt.colorTheme}`,{selected:Mt.selected,visited:Mt.visited,hovered:Mt.hovered}]]),style:vue.normalizeStyle(G.value),role:Mt.ariaLabel?"img":void 0,"aria-label":Mt.ariaLabel,"aria-hidden":Mt.ariaLabel?void 0:"true",onMouseenter:Y[0]||(Y[0]=ge=>X.$emit("mouseenter",ge)),onMouseleave:Y[1]||(Y[1]=ge=>X.$emit("mouseleave",ge)),onClick:Y[2]||(Y[2]=ge=>X.$emit("click",ge))},null,46,_hoisted_1$b)):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["map-icon-text-pin",[`theme-${Mt.colorTheme}`,`size-${O.value}`,{"icon-only":!Mt.text,selected:Mt.selected,visited:Mt.visited,hovered:Mt.hovered}]]),style:vue.normalizeStyle(G.value),role:Mt.ariaLabel?"img":void 0,"aria-label":Mt.ariaLabel,"aria-hidden":Mt.ariaLabel?void 0:"true",onMouseenter:Y[3]||(Y[3]=ge=>X.$emit("mouseenter",ge)),onMouseleave:Y[4]||(Y[4]=ge=>X.$emit("mouseleave",ge)),onClick:Y[5]||(Y[5]=ge=>X.$emit("click",ge))},[vue.createElementVNode("div",_hoisted_3$5,[vue.createElementVNode("span",_hoisted_4$3,[vue.createVNode(vue.unref(FontAwesomeIcon),{icon:Mt.icon},null,8,["icon"])])]),Mt.text?(vue.openBlock(),vue.createElementBlock("span",_hoisted_5$2,vue.toDisplayString(Mt.text),1)):vue.createCommentVNode("",!0)],46,_hoisted_2$6))}}),MapIconTextPin=_export_sfc(_sfc_main$i,[["__scopeId","data-v-5935cd49"]]),ie=["disabled"],A=vue.defineComponent({inheritAttrs:!1,__name:"PhlButton",props:{href:{},to:{},target:{},rel:{},disabled:{type:Boolean,default:!1},clickTarget:{},variant:{default:"primary"},size:{default:"medium"},iconOnly:{type:Boolean,default:!1},iconRight:{type:Boolean},text:{},className:{},iconDefinition:{},iconClass:{},src:{},svgRaw:{}},setup(Mt){const V=Mt,O=ge=>"href"in ge&&ge.href!==void 0||"to"in ge&&ge.to!==void 0,G=vue.computed(()=>ve$1("phila-button",`phila-button--${V.variant}`,V.size&&`is-${V.size}`,V.iconOnly&&"icon-button",V.iconOnly&&V.variant==="standard"&&"icon-button--standard",V.className)),X=vue.computed(()=>O(V)?"to"in V&&V.to!==void 0?{to:V.to,disabled:V.disabled,className:G.value}:{href:V.href,target:V.target,rel:V.rel,disabled:V.disabled,className:G.value}:{}),Y=vue.computed(()=>({iconDefinition:V.iconDefinition,iconClass:V.iconClass,src:V.src,iconRight:V.iconRight,iconOnly:V.iconOnly,text:V.text,size:V.size}));return(ge,we)=>O(V)?(vue.openBlock(),vue.createBlock(vue.unref(Ee),vue.mergeProps({key:0},{...X.value,...ge.$attrs},{role:"button"}),{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)]),_:3},16)):(vue.openBlock(),vue.createElementBlock("button",vue.mergeProps({key:1,type:"button",disabled:V.disabled,class:G.value},ge.$attrs),[vue.createVNode(vue.unref(Re),vue.normalizeProps(vue.guardReactiveProps(Y.value)),{default:vue.withCtx(()=>[vue.renderSlot(ge.$slots,"default",{},()=>[vue.createTextVNode(vue.toDisplayString(V.text),1)])]),_:3},16)],16,ie))}});var I={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]};const oe=["id"],le={key:0,class:"tooltip__tail","aria-hidden":"true"},se={key:1,class:"tooltip__plain-row has-text-body-small"},ne={key:0,class:"tooltip__title-row"},ae={key:0},re=vue.defineComponent({__name:"TooltipBubble",props:{id:{},type:{default:"plain"},color:{default:"default"},tail:{type:Boolean,default:!1},placement:{default:"top-center"},title:{},dismissable:{type:Boolean,default:!1},className:{}},emits:["dismiss"],setup(Mt){const V=Mt,O=vue.computed(()=>ve$1("tooltip","content","resets-link-colors",`tooltip--${V.type}`,`tooltip--${V.color}`,V.tail&&`tooltip--${V.placement}`,V.className));return(G,X)=>(vue.openBlock(),vue.createElementBlock("div",{id:Mt.id,class:vue.normalizeClass(O.value),role:"tooltip"},[Mt.tail?(vue.openBlock(),vue.createElementBlock("div",le)):vue.createCommentVNode("",!0),Mt.type==="plain"?(vue.openBlock(),vue.createElementBlock("div",se,[vue.renderSlot(G.$slots,"default",{},void 0,!0),Mt.dismissable?(vue.openBlock(),vue.createBlock(vue.unref(A),{key:0,class:"tooltip__dismiss",variant:"standard",size:"extra-small","icon-only":!0,"icon-definition":vue.unref(I),"aria-label":"Dismiss tooltip",onClick:X[0]||(X[0]=Y=>G.$emit("dismiss"))},null,8,["icon-definition"])):vue.createCommentVNode("",!0)])):(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:2},[Mt.title||Mt.dismissable?(vue.openBlock(),vue.createElementBlock("div",ne,[Mt.title?(vue.openBlock(),vue.createElementBlock("h6",ae,vue.toDisplayString(Mt.title),1)):vue.createCommentVNode("",!0),Mt.dismissable?(vue.openBlock(),vue.createBlock(vue.unref(A),{key:1,class:"tooltip__dismiss",variant:"standard",size:"extra-small","icon-only":!0,"icon-definition":vue.unref(I),"aria-label":"Dismiss tooltip",onClick:X[1]||(X[1]=Y=>G.$emit("dismiss"))},null,8,["icon-definition"])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.renderSlot(G.$slots,"default",{},void 0,!0)],64))],10,oe))}}),F=(Mt,V)=>{const O=Mt.__vccOpts||Mt;for(const[G,X]of V)O[G]=X;return O},ce=F(re,[["__scopeId","data-v-7ccd7c7d"]]),_sfc_main$h=vue.defineComponent({__name:"MapTooltip",props:{visible:{type:Boolean,default:!1},hoverBridge:{type:Boolean,default:!0},type:{default:"plain"},color:{default:"default"},tail:{type:Boolean,default:!1},placement:{default:"top-center"},title:{},dismissable:{type:Boolean},className:{}},emits:["mouseenter","mouseleave"],setup(Mt){const V=Mt;return(O,G)=>Mt.visible?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"map-tooltip",onMouseenter:G[0]||(G[0]=X=>Mt.hoverBridge?O.$emit("mouseenter",X):void 0),onMouseleave:G[1]||(G[1]=X=>Mt.hoverBridge?O.$emit("mouseleave",X):void 0)},[vue.createVNode(vue.unref(ce),{type:V.type,color:V.color,tail:V.tail,placement:V.placement,title:V.title,dismissable:V.dismissable,"class-name":V.className},{default:vue.withCtx(()=>[vue.renderSlot(O.$slots,"default",{},void 0,!0)]),_:3},8,["type","color","tail","placement","title","dismissable","class-name"])],32)):vue.createCommentVNode("",!0)}}),MapTooltip=_export_sfc(_sfc_main$h,[["__scopeId","data-v-2ee3171f"]]),FOCUSABLE_SELECTOR='button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])',_sfc_main$g=vue.defineComponent({__name:"MapPopup",props:{lngLat:{},html:{default:void 0},closeButton:{type:Boolean,default:!0},closeOnClick:{type:Boolean,default:!0},className:{default:void 0},maxWidth:{default:"300px"},offset:{default:void 0},anchor:{default:"bottom"},showNavigation:{type:Boolean,default:!1},currentFeatureIndex:{default:0},totalFeatures:{default:1},layerName:{default:void 0}},emits:["close","open","next","previous"],setup(Mt,{emit:V}){const O=Mt,G=V,X=vue.useSlots(),Y=vue.inject("map"),ge=vue.inject("isLoaded");let we=null;const fe=vue.ref(null);let Me=null,ee=null;const he=()=>{if(!Y?.value||!we)return;const Le=Y.value;requestAnimationFrame(()=>{requestAnimationFrame(()=>{if(!we)return;const De=we.getElement();if(!De)return;const bt=Le.getContainer(),wt=De.getBoundingClientRect(),jt=bt.getBoundingClientRect(),Tt=10;let St=0,Ot=0;wt.top<jt.top+Tt&&(Ot=wt.top-jt.top-Tt),wt.bottom>jt.bottom-Tt&&(Ot=wt.bottom-jt.bottom+Tt),wt.left<jt.left+Tt&&(St=wt.left-jt.left-Tt),wt.right>jt.right-Tt&&(St=wt.right-jt.right+Tt),(St!==0||Ot!==0)&&Le.panBy([St,Ot],{duration:300})})})},me=()=>{if(!Y?.value)return;const Le=document.activeElement;Ne(),Me=Le;const De={closeButton:O.closeButton,closeOnClick:O.closeOnClick,maxWidth:O.maxWidth},wt=O.showNavigation&&O.totalFeatures&&O.totalFeatures>1?"multi-feature-popup":"";if((O.className||wt)&&(De.className=[O.className,wt].filter(Boolean).join(" ")),O.offset&&(De.offset=O.offset),O.anchor&&(De.anchor=O.anchor),we=new maplibregl.Popup(De),X.default&&fe.value)we.setDOMContent(fe.value);else if(O.html){let Tt="";O.showNavigation&&O.totalFeatures&&O.totalFeatures>1&&(Tt+=Te()),Tt+=`<div class="popup-scroll-content">${O.html}</div>`,we.setHTML(Tt),O.showNavigation&&O.totalFeatures&&O.totalFeatures>1&&setTimeout(()=>{Oe()},0)}we.setLngLat(O.lngLat),we.addTo(Y.value),G("open"),we.on("close",()=>{Pe(),Me&&typeof Me.focus=="function"&&(Me.focus(),Me=null),G("close")});const jt=we.getElement();if(jt){const Tt=jt.querySelector(".maplibregl-popup-content");if(Tt){Tt.setAttribute("tabindex","-1"),Tt.setAttribute("role","dialog"),Tt.setAttribute("aria-label","Map popup"),Tt.focus({preventScroll:!0});const Ot=Tt.querySelector(".popup-scroll-content");Ot&&(Ot.scrollTop=0)}const St=jt.querySelector(".maplibregl-popup-close-button");St&&!St.getAttribute("aria-label")&&St.setAttribute("aria-label","Close"),ee=Ot=>{if(Ot.key==="Escape"){Ot.preventDefault(),we?.remove();return}if(Ot.key==="Tab"){const It=jt.querySelectorAll(FOCUSABLE_SELECTOR);if(It.length===0)return;const Nt=It[0],Lt=It[It.length-1];Ot.shiftKey?(document.activeElement===Nt||document.activeElement===Tt)&&(Ot.preventDefault(),Lt.focus()):document.activeElement===Lt&&(Ot.preventDefault(),Nt.focus())}},jt.addEventListener("keydown",ee),he()}},Te=()=>{const Le=O.layerName?`<div class="popup-layer-name">${O.layerName}</div>`:"",De=(O.currentFeatureIndex??0)+1,bt=O.totalFeatures??1,wt=(O.currentFeatureIndex??0)>0,jt=(O.currentFeatureIndex??0)<bt-1;return`
|
|
562
562
|
<div class="popup-navigation-header">
|
|
563
563
|
${Le}
|
|
564
564
|
<div class="popup-navigation-controls">
|