@mapvx/web-components 0.9.0-dev.4 → 0.9.0-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/cjs/{base-floor-selector-DCe13Fwr.cjs → base-floor-selector-C7uLaZEQ.cjs} +3 -3
  2. package/dist/cjs/{class-map-4EVzKJFA.cjs → class-map-BmxfuHe-.cjs} +3 -3
  3. package/dist/cjs/{compact-floor-selector-f3Vg-Mw8.cjs → compact-floor-selector-BC-kRiSf.cjs} +3 -3
  4. package/dist/cjs/{consume-DRfK7CRo.cjs → consume-D0KB6NRa.cjs} +3 -3
  5. package/dist/cjs/{custom-map-C6m88MK0.cjs → custom-map-CWj4Pliu.cjs} +3 -3
  6. package/dist/cjs/{enable-3d-attribute-BVi1YNhn.cjs → enable-3d-attribute-BfcFrDUP.cjs} +4 -4
  7. package/dist/cjs/{floor-selector-Bwt2wOIx.cjs → floor-selector-CQOa_c2I.cjs} +3 -3
  8. package/dist/cjs/index.cjs +3 -3
  9. package/dist/cjs/map-view-with-modal.cjs +3 -3
  10. package/dist/cjs/{qr-modal-YzX5h37X.cjs → qr-modal-Cdoa94GI.cjs} +5 -5
  11. package/dist/cjs/route-options-B8ee_2Hh.cjs +138 -0
  12. package/dist/cjs/route-view-totems.cjs +3 -3
  13. package/dist/cjs/{state-DPsEt4mp.cjs → state-lK9NebZE.cjs} +3 -3
  14. package/dist/es/assets/{base-floor-selector-DiAO1Sh5.js → base-floor-selector-9K_Zgc4Q.js} +3 -3
  15. package/dist/es/assets/{class-map-9gMciWNt.js → class-map-Cl_HZqif.js} +3 -3
  16. package/dist/es/assets/{compact-floor-selector-QyZe43Wr.js → compact-floor-selector-xdBCEZMp.js} +3 -3
  17. package/dist/es/assets/{consume-CZ6vRJK9.js → consume-BVCy2F1c.js} +3 -3
  18. package/dist/es/assets/{custom-map-KHVZBnO_.js → custom-map-BCAiVSzB.js} +3 -3
  19. package/dist/es/assets/{enable-3d-attribute-btpETT7S.js → enable-3d-attribute-BivvMWbS.js} +3 -3
  20. package/dist/es/assets/{floor-selector-LRSMd5xX.js → floor-selector-Hc-nAszb.js} +3 -3
  21. package/dist/es/assets/{qr-modal-Ckb-gpRO.js → qr-modal-DQO-8Zni.js} +5 -5
  22. package/dist/es/assets/{route-options-CRN8ecbF.js → route-options-DN6SQx_f.js} +9 -9
  23. package/dist/es/assets/{state-Dn5MwTcA.js → state-BB7jYDVb.js} +3 -3
  24. package/dist/es/index.js +3 -3
  25. package/dist/es/map-view-with-modal.js +3 -3
  26. package/dist/es/route-view-totems.js +3 -3
  27. package/dist/iife/map-view-with-modal.js +3 -3
  28. package/dist/iife/route-view-totems.js +9 -9
  29. package/dist/types/utils/qr-card-size.d.cts +78 -0
  30. package/dist/types/utils/qr-card-size.d.ts +78 -0
  31. package/package.json +1 -1
  32. package/dist/cjs/route-options-cUf4NVxm.cjs +0 -138
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ede888d6-4f4f-586a-a3ee-84f132eed3aa")}catch(e){}}();
3
- import{y as o,I as e,B as r}from"./enable-3d-attribute-btpETT7S.js";import{e as t}from"./class-map-9gMciWNt.js";import{B as n}from"./base-floor-selector-DiAO1Sh5.js";var i=Object.getOwnPropertyDescriptor;let a=class extends n{render(){if(!this.sdkData)return o`<div>No data</div>`;const e=this.getFloors();return o`
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e310ba01-410e-512f-a9e8-860e89741a4e")}catch(e){}}();
3
+ import{y as o,I as e,B as r}from"./enable-3d-attribute-BivvMWbS.js";import{e as t}from"./class-map-Cl_HZqif.js";import{B as n}from"./base-floor-selector-9K_Zgc4Q.js";var i=Object.getOwnPropertyDescriptor;let a=class extends n{render(){if(!this.sdkData)return o`<div>No data</div>`;const e=this.getFloors();return o`
4
4
  <div class="floor-selector-container">
5
5
  ${e.map(e=>{const r=this.isFloorActive(e),n=this.isFloorEnabled(e);return o`
6
6
  <div class="floor-btn-container">
@@ -15,4 +15,4 @@ import{y as o,I as e,B as r}from"./enable-3d-attribute-btpETT7S.js";import{e as
15
15
  </div>
16
16
  `}};a.styles=[e(':host{--floor-selector-clip-margin: 15px;position:absolute;top:0;right:calc(10px - var(--floor-selector-clip-margin));z-index:10;box-sizing:border-box;max-width:calc(100cqw - 20px + 2 * var(--floor-selector-clip-margin));padding:0 var(--floor-selector-clip-margin) var(--floor-selector-clip-margin);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;pointer-events:none}:host::-webkit-scrollbar{display:none}.floor-selector-container{display:flex;flex-direction:row;width:max-content;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 6px;gap:8px;height:65px;z-index:9999;pointer-events:auto}.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:0 0 999px 999px;background:#000;color:#fff}.floor-btn{transition:background .2s ease,color .2s ease,transform .2s ease,opacity .2s ease;position:relative;background:transparent;border:none;outline:none;font-family:Poppins,sans-serif;font-weight:600;font-size:13px;border-radius:0 0 30px 30px;cursor:pointer;transition:all .2s ease;height:100%;min-width:65px;display:flex;align-items:center;justify-content:center;color:#000;z-index:1;span{min-width:50px}}.floor-btn.disabled{color:#c5c3c3;background:transparent;pointer-events:none;-webkit-tap-highlight-color:transparent;user-select:none}.floor-btn.active{color:#fff;background:transparent;z-index:2}.floor-btn.active:after{content:"";position:absolute;inset:0 2px;border-radius:0 0 999px 999px;background:#000;color:#fff;z-index:1}.floor-btn.active:before{content:"";position:absolute;inset:0 -3px -3px;border-radius:0 0 999px 999px;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0}.floor-btn.active span{z-index:10}@container (max-width: 1100px){:host{inset:0 0 0 auto;display:flex;flex-direction:column;max-width:none;padding:var(--floor-selector-clip-margin) 0 var(--floor-selector-clip-margin) var(--floor-selector-clip-margin);overflow-x:hidden;overflow-y:auto;pointer-events:none}.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px;background:#000;color:#fff}.floor-selector-container{margin:auto 0;flex-shrink:0;pointer-events:auto;flex-direction:column-reverse;border-radius:30px 0 0 30px;width:auto;min-width:87px;height:auto;padding:0;gap:0}.floor-btn-container{padding:0;width:100%}.floor-btn{width:100%;padding:20px;border-radius:999px 0 0 999px}.floor-btn.active:after{position:absolute;inset:2px 0 2px 2px;border-radius:999px 0 0 999px}.floor-btn.active:before{inset:-3px 0 -3px -3px;border-radius:999px 0 0 999px}}')],a=((o,e,r,t)=>{for(var n,a=t>1?void 0:t?i(e,r):e,s=o.length-1;s>=0;s--)(n=o[s])&&(a=n(a)||a);return a})([r("floor-selector")],a);export{a as FloorSelector};
17
17
 
18
- //# debugId=ede888d6-4f4f-586a-a3ee-84f132eed3aa
18
+ //# debugId=e310ba01-410e-512f-a9e8-860e89741a4e
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="5c079b9d-c2d5-5125-8fe8-a6d8f18f90e5")}catch(e){}}();
3
- import{c as t}from"./consume-CZ6vRJK9.js";import{l as e,A as n,y as r,I as o,E as i,B as s}from"./enable-3d-attribute-btpETT7S.js";import{e as a}from"./class-map-9gMciWNt.js";var u,c,l={};function f(){return c?u:(c=1,u=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var d,h={},g={};function p(){if(d)return g;let t;d=1;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return g.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},g.getSymbolTotalCodewords=function(t){return e[t]},g.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},g.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},g.isKanjiModeEnabled=function(){return void 0!==t},g.toSJIS=function(e){return t(e)},g}var m,w,E,y,v,C={};function A(){return m||(m=1,(t=C).L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(a){return n}}),C;var t}var B,I={};var M,b={};var P,T={};var N,R={};function x(){if(N)return R;N=1;const t=A(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return R.getBlocksCount=function(n,r){switch(r){case t.L:return e[4*(n-1)+0];case t.M:return e[4*(n-1)+1];case t.Q:return e[4*(n-1)+2];case t.H:return e[4*(n-1)+3];default:return}},R.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return n[4*(e-1)+0];case t.M:return n[4*(e-1)+1];case t.Q:return n[4*(e-1)+2];case t.H:return n[4*(e-1)+3];default:return}},R}var L,k,U,S,D={},_={};function F(){return k||(k=1,function(t){const e=function(){if(L)return _;L=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let n=1;for(let r=0;r<255;r++)t[r]=n,e[n]=r,n<<=1,256&n&&(n^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),_.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},_.exp=function(e){return t[e]},_.mul=function(n,r){return 0===n||0===r?0:t[e[n]+e[r]]},_}();t.mul=function(t,n){const r=new Uint8Array(t.length+n.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<n.length;i++)r[o+i]^=e.mul(t[o],n[i]);return r},t.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){const t=r[0];for(let i=0;i<n.length;i++)r[i]^=e.mul(n[i],t);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let o=0;o<n;o++)r=t.mul(r,new Uint8Array([1,e.exp(o)]));return r}}(D)),D}var z,H={},q={},j={};function J(){return z||(z=1,j.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),j}var K,Y,V,O={};function Q(){if(K)return O;K=1;const t="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";O.KANJI=new RegExp(e,"g"),O.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),O.BYTE=new RegExp(n,"g"),O.NUMERIC=new RegExp(t,"g"),O.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),o=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return O.testKanji=function(t){return r.test(t)},O.testNumeric=function(t){return o.test(t)},O.testAlphanumeric=function(t){return i.test(t)},O}function $(){return Y||(Y=1,function(t){const e=J(),n=Q();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(a){return n}}}(q)),q}function Z(){return V||(V=1,function(t){const e=p(),n=x(),r=A(),o=$(),i=J(),s=e.getBCHDigit(7973);function a(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach(function(t){const r=a(t.mode,e);n+=r+t.getBitsLength()}),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,s){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===s&&(s=o.BYTE);const u=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,r));if(s===o.MIXED)return u;const c=u-a(s,t);switch(s){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let i;const s=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,s);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(i.mode,i.getLength(),s)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-s>=0;)n^=7973<<e.getBCHDigit(n)-s;return t<<12|n}}(H)),H}var X,W={};var G,tt,et,nt,rt,ot,it,st,at={};var ut,ct,lt,ft={exports:{}};function dt(){return ut||(ut=1,function(t){var e={single_source_shortest_paths:function(t,n,r){var o={},i={};i[n]=0;var s,a,u,c,l,f,d,h=e.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(u in a=(s=h.pop()).value,c=s.cost,l=t[a]||{})l.hasOwnProperty(u)&&(f=c+l[u],d=i[u],(void 0===i[u]||d>f)&&(i[u]=f,h.push(u,f),o[u]=a));if(void 0!==r&&void 0===i[r]){var g=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(g)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var o=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,o={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ft)),ft.exports}function ht(){return ct||(ct=1,function(t){const e=$(),n=function(){if(tt)return G;tt=1;const t=$();function e(e){this.mode=t.NUMERIC,this.data=e.toString()}return e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);const o=this.data.length-e;o>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))},G=e}(),r=function(){if(nt)return et;nt=1;const t=$(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(e){this.mode=t.ALPHANUMERIC,this.data=e}return n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=45*e.indexOf(this.data[n]);r+=e.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[n]),6)},et=n}(),o=function(){if(ot)return rt;ot=1;const t=$();function e(e){this.mode=t.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}return e.getBitsLength=function(t){return 8*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},rt=e}(),i=function(){if(st)return it;st=1;const t=$(),e=p();function n(e){this.mode=t.KANJI,this.data=e}return n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n<this.data.length;n++){let r=e.toSJIS(this.data[n]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},it=n}(),s=Q(),a=p(),u=dt();function c(t){return unescape(encodeURIComponent(t)).length}function l(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function f(t){const n=l(s.NUMERIC,e.NUMERIC,t),r=l(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;a.isKanjiModeEnabled()?(o=l(s.BYTE,e.BYTE,t),i=l(s.KANJI,e.KANJI,t)):(o=l(s.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(r,o,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function d(t,s){switch(s){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function h(t,s){let u;const c=e.getBestModeForData(t);if(u=e.from(s,c),u!==e.BYTE&&u.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(u)+".\n Suggested mode is: "+e.toString(c));switch(u!==e.KANJI||a.isKanjiModeEnabled()||(u=e.BYTE),u){case e.NUMERIC:return new n(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new i(t);case e.BYTE:return new o(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(h(e,null)):e.data&&t.push(h(e.data,e.mode)),t},[])},t.fromString=function(n,r){const o=function(t){const n=[];for(let r=0;r<t.length;r++){const o=t[r];switch(o.mode){case e.NUMERIC:n.push([o,{data:o.data,mode:e.ALPHANUMERIC,length:o.length},{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.ALPHANUMERIC:n.push([o,{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.KANJI:n.push([o,{data:o.data,mode:e.BYTE,length:c(o.data)}]);break;case e.BYTE:n.push([{data:o.data,mode:e.BYTE,length:c(o.data)}])}}return n}(f(n,a.isKanjiModeEnabled())),i=function(t,n){const r={},o={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const a=t[s],u=[];for(let t=0;t<a.length;t++){const c=a[t],l=""+s+t;u.push(l),r[l]={node:c,lastCount:0},o[l]={};for(let t=0;t<i.length;t++){const s=i[t];r[s]&&r[s].node.mode===c.mode?(o[s][l]=d(r[s].lastCount+c.length,c.mode)-d(r[s].lastCount,c.mode),r[s].lastCount+=c.length):(r[s]&&(r[s].lastCount=c.length),o[s][l]=d(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,n))}}i=u}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:r}}(o,r),s=u.find_path(i.map,"start","end"),l=[];for(let t=1;t<s.length-1;t++)l.push(i.table[s[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(l))},t.rawSplit=function(e){return t.fromArray(f(e,a.isKanjiModeEnabled()))}}(at)),at}function gt(){if(lt)return h;lt=1;const t=p(),e=A(),n=function(){if(E)return w;function t(){this.buffer=[],this.length=0}return E=1,t.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},w=t}(),r=function(){if(v)return y;function t(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return v=1,t.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},y=t}(),o=(B||(B=1,function(t){const e=p().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,r=e(t),o=145===r?26:2*Math.ceil((r-13)/(2*n-2)),i=[r-7];for(let e=1;e<n-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||n.push([r[t],r[e]]);return n}}(I)),I),i=function(){if(M)return b;M=1;const t=p().getSymbolSize;return b.getPositions=function(e){const n=t(e);return[[0,0],[n-7,0],[0,n-7]]},b}(),s=(P||(P=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,n=3,r=40,o=10;function i(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let r=0,o=0,i=0,s=null,a=null;for(let u=0;u<n;u++){o=i=0,s=a=null;for(let c=0;c<n;c++){let n=t.get(u,c);n===s?o++:(o>=5&&(r+=e+(o-5)),s=n,o=1),n=t.get(c,u),n===a?i++:(i>=5&&(r+=e+(i-5)),a=n,i=1)}o>=5&&(r+=e+(o-5)),i>=5&&(r+=e+(i-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n<e-1;n++)for(let o=0;o<e-1;o++){const e=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==e&&0!==e||r++}return r*n},t.getPenaltyN3=function(t){const e=t.size;let n=0,o=0,i=0;for(let r=0;r<e;r++){o=i=0;for(let s=0;s<e;s++)o=o<<1&2047|t.get(r,s),s>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(s,r),s>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r<n;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/n/5)-10)*o},t.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}}(T)),T),a=x(),u=function(){if(S)return U;S=1;const t=F();function e(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(e){this.degree=e,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=t.mod(n,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r},U=e}(),c=Z(),l=function(){if(X)return W;X=1;const t=p(),e=t.getBCHDigit(1335);return W.getEncodedBits=function(n,r){const o=n.bit<<3|r;let i=o<<10;for(;t.getBCHDigit(i)-e>=0;)i^=1335<<t.getBCHDigit(i)-e;return 21522^(o<<10|i)},W}(),f=$(),d=ht();function g(t,e,n){const r=t.size,o=l.getEncodedBits(e,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(r-15+i,8,s,!0),i<8?t.set(8,r-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(r-8,8,1,!0)}function m(e,r,o){const i=new n;o.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(i)});const s=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,r));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(s-i.getLengthInBits())/8;for(let t=0;t<c;t++)i.put(t%2?17:236,8);return function(e,n,r){const o=t.getSymbolTotalCodewords(n),i=a.getTotalCodewordsCount(n,r),s=o-i,c=a.getBlocksCount(n,r),l=o%c,f=c-l,d=Math.floor(o/c),h=Math.floor(s/c),g=h+1,p=d-h,m=new u(p);let w=0;const E=new Array(c),y=new Array(c);let v=0;const C=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<f?h:g;E[t]=C.slice(w,w+e),y[t]=m.encode(E[t]),w+=e,v=Math.max(v,e)}const A=new Uint8Array(o);let B,I,M=0;for(B=0;B<v;B++)for(I=0;I<c;I++)B<E[I].length&&(A[M++]=E[I][B]);for(B=0;B<p;B++)for(I=0;I<c;I++)A[M++]=y[I][B];return A}(i,e,r)}function C(e,n,a,u){let l;if(Array.isArray(e))l=d.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=n;if(!t){const n=d.rawSplit(e);t=c.getBestVersionForData(n,a)}l=d.fromString(e,t||40)}}const f=c.getBestVersionForData(l,a);if(!f)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<f)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+f+".\n")}else n=f;const h=m(n,a,l),p=t.getSymbolSize(n),w=new r(p);return function(t,e){const n=t.size,r=i.getPositions(e);for(let o=0;o<r.length;o++){const e=r[o][0],i=r[o][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||n<=e+r))for(let o=-1;o<=7;o++)i+o<=-1||n<=i+o||(r>=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?t.set(e+r,i+o,!0,!0):t.set(e+r,i+o,!1,!0))}}(w,n),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2==0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(w),function(t,e){const n=o.getPositions(e);for(let r=0;r<n.length;r++){const e=n[r][0],o=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?t.set(e+n,o+r,!0,!0):t.set(e+n,o+r,!1,!0)}}(w,n),g(w,a,0),n>=7&&function(t,e){const n=t.size,r=c.getEncodedBits(e);let o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+n-8-3,s=1==(r>>a&1),t.set(o,i,s,!0),t.set(i,o,s,!0)}(w,n),function(t,e){const n=t.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,a-n)){let r=!1;s<e.length&&(r=1==(e[s]>>>i&1)),t.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(w,h),isNaN(u)&&(u=s.getBestMask(w,g.bind(null,w,a))),s.applyMask(u,w),g(w,a,u),{modules:w,version:n,errorCorrectionLevel:a,maskPattern:u,segments:l}}return h.create=function(n,r){if(void 0===n||""===n)throw new Error("No input text");let o,i,a=e.M;return void 0!==r&&(a=e.from(r.errorCorrectionLevel,e.M),o=c.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),C(n,o,a,i)},h}var pt,mt,wt={},Et={};function yt(){return pt||(pt=1,function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),u=r.margin*s,c=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let l=4*(t*a+n),f=r.color.light;if(t>=u&&n>=u&&t<a-u&&n<a-u){f=c[i[Math.floor((t-u)/s)*o+Math.floor((n-u)/s)]?1:0]}e[l++]=f.r,e[l++]=f.g,e[l++]=f.b,e[l]=f.a}}}(Et)),Et}function vt(){return mt||(mt=1,function(t){const e=yt();t.render=function(t,n,r){let o=r,i=n;void 0!==o||n&&n.getContext||(o=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(a){throw new Error("You need to specify a canvas element")}}()),o=e.getOptions(o);const s=e.getImageWidth(t.modules.size,o),u=i.getContext("2d"),c=u.createImageData(s,s);return e.qrToImageData(c.data,t,o),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(u,i,s),u.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}}(wt)),wt}var Ct,At,Bt={};function It(){if(Ct)return Bt;Ct=1;const t=yt();function e(t,e){const n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function n(t,e,n){let r=t+e;return void 0!==n&&(r+=" "+n),r}return Bt.render=function(r,o,i){const s=t.getOptions(o),a=r.modules.size,u=r.modules.data,c=a+2*s.margin,l=s.color.light.a?"<path "+e(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",f="<path "+e(s.color.dark,"stroke")+' d="'+function(t,e,r){let o="",i=0,s=!1,a=0;for(let u=0;u<t.length;u++){const c=Math.floor(u%e),l=Math.floor(u/e);c||s||(s=!0),t[u]?(a++,u>0&&c>0&&t[u-1]||(o+=s?n("M",c+r,.5+l+r):n("m",i,0),i=0,s=!1),c+1<e&&t[u+1]||(o+=n("h",a),a=0)):i++}return o}(u,a,s.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+d+' shape-rendering="crispEdges">'+l+f+"</svg>\n";return"function"==typeof i&&i(null,h),h},Bt}var Mt=function(){if(At)return l;At=1;const t=f(),e=gt(),n=vt(),r=It();function o(n,r,o,i,s){const u=[].slice.call(arguments,1),c=u.length,l="function"==typeof u[c-1];if(!l&&!t())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(o=r,r=i=void 0):2!==c||r.getContext||(i=o,o=r,r=void 0),new Promise(function(t,s){try{const s=e.create(o,i);t(n(s,r,i))}catch(a){s(a)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(s=o,o=r,r=i=void 0):3===c&&(r.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=o,o=r,r=void 0));try{const t=e.create(o,i);s(null,n(t,r,i))}catch(a){s(a)}}return l.create=e.create,l.toCanvas=o.bind(null,n.render),l.toDataURL=o.bind(null,n.renderToDataURL),l.toString=o.bind(null,function(t,e,n){return r.render(t,n)}),l}();var bt=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,Tt=(t,e,n,r)=>{for(var o,i=r>1?void 0:r?Pt(e,n):e,s=t.length-1;s>=0;s--)(o=t[s])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bt(e,n,i),i};let Nt=class extends e{updated(){const{originId:t,destinationId:e,generalConfig:r}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&r){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:o}=r,i=`${o}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,s={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};Mt.toDataURL(i,s).then(r=>{const o=this.shadowRoot?.getElementById("qr");o&&o instanceof HTMLImageElement&&(o.src=r,n.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:i}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return r`
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="494c55f2-e056-5824-aae1-add498927980")}catch(e){}}();
3
+ import{c as t}from"./consume-BVCy2F1c.js";import{l as e,A as n,y as r,I as o,E as i,B as s}from"./enable-3d-attribute-BivvMWbS.js";import{e as a}from"./class-map-Cl_HZqif.js";var u,c,l={};function f(){return c?u:(c=1,u=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var d,h={},g={};function p(){if(d)return g;let t;d=1;const e=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return g.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},g.getSymbolTotalCodewords=function(t){return e[t]},g.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},g.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},g.isKanjiModeEnabled=function(){return void 0!==t},g.toSJIS=function(e){return t(e)},g}var m,w,y,E,A,v={};function C(){return m||(m=1,(t=v).L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(a){return n}}),v;var t}var B,I={};var M,b={};var x,P={};var T,N={};function R(){if(T)return N;T=1;const t=C(),e=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],n=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return N.getBlocksCount=function(n,r){switch(r){case t.L:return e[4*(n-1)+0];case t.M:return e[4*(n-1)+1];case t.Q:return e[4*(n-1)+2];case t.H:return e[4*(n-1)+3];default:return}},N.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return n[4*(e-1)+0];case t.M:return n[4*(e-1)+1];case t.Q:return n[4*(e-1)+2];case t.H:return n[4*(e-1)+3];default:return}},N}var k,L,U,S,D={},_={};function F(){return L||(L=1,function(t){const e=function(){if(k)return _;k=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let n=1;for(let r=0;r<255;r++)t[r]=n,e[n]=r,n<<=1,256&n&&(n^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),_.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},_.exp=function(e){return t[e]},_.mul=function(n,r){return 0===n||0===r?0:t[e[n]+e[r]]},_}();t.mul=function(t,n){const r=new Uint8Array(t.length+n.length-1);for(let o=0;o<t.length;o++)for(let i=0;i<n.length;i++)r[o+i]^=e.mul(t[o],n[i]);return r},t.mod=function(t,n){let r=new Uint8Array(t);for(;r.length-n.length>=0;){const t=r[0];for(let i=0;i<n.length;i++)r[i]^=e.mul(n[i],t);let o=0;for(;o<r.length&&0===r[o];)o++;r=r.slice(o)}return r},t.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let o=0;o<n;o++)r=t.mul(r,new Uint8Array([1,e.exp(o)]));return r}}(D)),D}var z,H={},q={},j={};function J(){return z||(z=1,j.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),j}var K,Y,O,V={};function Q(){if(K)return V;K=1;const t="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";V.KANJI=new RegExp(e,"g"),V.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),V.BYTE=new RegExp(n,"g"),V.NUMERIC=new RegExp(t,"g"),V.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),o=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return V.testKanji=function(t){return r.test(t)},V.testNumeric=function(t){return o.test(t)},V.testAlphanumeric=function(t){return i.test(t)},V}function $(){return Y||(Y=1,function(t){const e=J(),n=Q();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(n))throw new Error("Invalid version: "+n);return n>=1&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},t.isValid=function(t){return t&&t.bit&&t.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(a){return n}}}(q)),q}function Z(){return O||(O=1,function(t){const e=p(),n=R(),r=C(),o=$(),i=J(),s=e.getBCHDigit(7973);function a(t,e){return o.getCharCountIndicator(t,e)+4}function u(t,e){let n=0;return t.forEach(function(t){const r=a(t.mode,e);n+=r+t.getBitsLength()}),n}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,s){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===s&&(s=o.BYTE);const u=8*(e.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,r));if(s===o.MIXED)return u;const c=u-a(s,t);switch(s){case o.NUMERIC:return Math.floor(c/10*3);case o.ALPHANUMERIC:return Math.floor(c/11*2);case o.KANJI:return Math.floor(c/13);case o.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let i;const s=r.from(n,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,s);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(i.mode,i.getLength(),s)},t.getEncodedBits=function(t){if(!i.isValid(t)||t<7)throw new Error("Invalid QR Code version");let n=t<<12;for(;e.getBCHDigit(n)-s>=0;)n^=7973<<e.getBCHDigit(n)-s;return t<<12|n}}(H)),H}var X,W={};var G,tt,et,nt,rt,ot,it,st,at={};var ut,ct,lt,ft={exports:{}};function dt(){return ut||(ut=1,function(t){var e={single_source_shortest_paths:function(t,n,r){var o={},i={};i[n]=0;var s,a,u,c,l,f,d,h=e.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(u in a=(s=h.pop()).value,c=s.cost,l=t[a]||{})l.hasOwnProperty(u)&&(f=c+l[u],d=i[u],(void 0===i[u]||d>f)&&(i[u]=f,h.push(u,f),o[u]=a));if(void 0!==r&&void 0===i[r]){var g=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(g)}return o},extract_shortest_path_from_predecessor_list:function(t,e){for(var n=[],r=e;r;)n.push(r),t[r],r=t[r];return n.reverse(),n},find_path:function(t,n,r){var o=e.single_source_shortest_paths(t,n,r);return e.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(t){var n,r=e.PriorityQueue,o={};for(n in t=t||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=t.sorter||r.default_sorter,o},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var n={value:t,cost:e};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ft)),ft.exports}function ht(){return ct||(ct=1,function(t){const e=$(),n=function(){if(tt)return G;tt=1;const t=$();function e(e){this.mode=t.NUMERIC,this.data=e.toString()}return e.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){let e,n,r;for(e=0;e+3<=this.data.length;e+=3)n=this.data.substr(e,3),r=parseInt(n,10),t.put(r,10);const o=this.data.length-e;o>0&&(n=this.data.substr(e),r=parseInt(n,10),t.put(r,3*o+1))},G=e}(),r=function(){if(nt)return et;nt=1;const t=$(),e=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function n(e){this.mode=t.ALPHANUMERIC,this.data=e}return n.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let r=45*e.indexOf(this.data[n]);r+=e.indexOf(this.data[n+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[n]),6)},et=n}(),o=function(){if(ot)return rt;ot=1;const t=$();function e(e){this.mode=t.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}return e.getBitsLength=function(t){return 8*t},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(t){for(let e=0,n=this.data.length;e<n;e++)t.put(this.data[e],8)},rt=e}(),i=function(){if(st)return it;st=1;const t=$(),e=p();function n(e){this.mode=t.KANJI,this.data=e}return n.getBitsLength=function(t){return 13*t},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let n;for(n=0;n<this.data.length;n++){let r=e.toSJIS(this.data[n]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},it=n}(),s=Q(),a=p(),u=dt();function c(t){return unescape(encodeURIComponent(t)).length}function l(t,e,n){const r=[];let o;for(;null!==(o=t.exec(n));)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function f(t){const n=l(s.NUMERIC,e.NUMERIC,t),r=l(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;a.isKanjiModeEnabled()?(o=l(s.BYTE,e.BYTE,t),i=l(s.KANJI,e.KANJI,t)):(o=l(s.BYTE_KANJI,e.BYTE,t),i=[]);return n.concat(r,o,i).sort(function(t,e){return t.index-e.index}).map(function(t){return{data:t.data,mode:t.mode,length:t.length}})}function d(t,s){switch(s){case e.NUMERIC:return n.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function h(t,s){let u;const c=e.getBestModeForData(t);if(u=e.from(s,c),u!==e.BYTE&&u.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(u)+".\n Suggested mode is: "+e.toString(c));switch(u!==e.KANJI||a.isKanjiModeEnabled()||(u=e.BYTE),u){case e.NUMERIC:return new n(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new i(t);case e.BYTE:return new o(t)}}t.fromArray=function(t){return t.reduce(function(t,e){return"string"==typeof e?t.push(h(e,null)):e.data&&t.push(h(e.data,e.mode)),t},[])},t.fromString=function(n,r){const o=function(t){const n=[];for(let r=0;r<t.length;r++){const o=t[r];switch(o.mode){case e.NUMERIC:n.push([o,{data:o.data,mode:e.ALPHANUMERIC,length:o.length},{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.ALPHANUMERIC:n.push([o,{data:o.data,mode:e.BYTE,length:o.length}]);break;case e.KANJI:n.push([o,{data:o.data,mode:e.BYTE,length:c(o.data)}]);break;case e.BYTE:n.push([{data:o.data,mode:e.BYTE,length:c(o.data)}])}}return n}(f(n,a.isKanjiModeEnabled())),i=function(t,n){const r={},o={start:{}};let i=["start"];for(let s=0;s<t.length;s++){const a=t[s],u=[];for(let t=0;t<a.length;t++){const c=a[t],l=""+s+t;u.push(l),r[l]={node:c,lastCount:0},o[l]={};for(let t=0;t<i.length;t++){const s=i[t];r[s]&&r[s].node.mode===c.mode?(o[s][l]=d(r[s].lastCount+c.length,c.mode)-d(r[s].lastCount,c.mode),r[s].lastCount+=c.length):(r[s]&&(r[s].lastCount=c.length),o[s][l]=d(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,n))}}i=u}for(let e=0;e<i.length;e++)o[i[e]].end=0;return{map:o,table:r}}(o,r),s=u.find_path(i.map,"start","end"),l=[];for(let t=1;t<s.length-1;t++)l.push(i.table[s[t]].node);return t.fromArray(function(t){return t.reduce(function(t,e){const n=t.length-1>=0?t[t.length-1]:null;return n&&n.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)},[])}(l))},t.rawSplit=function(e){return t.fromArray(f(e,a.isKanjiModeEnabled()))}}(at)),at}function gt(){if(lt)return h;lt=1;const t=p(),e=C(),n=function(){if(y)return w;function t(){this.buffer=[],this.length=0}return y=1,t.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let n=0;n<e;n++)this.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},w=t}(),r=function(){if(A)return E;function t(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}return A=1,t.prototype.set=function(t,e,n,r){const o=t*this.size+e;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,n){this.data[t*this.size+e]^=n},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},E=t}(),o=(B||(B=1,function(t){const e=p().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const n=Math.floor(t/7)+2,r=e(t),o=145===r?26:2*Math.ceil((r-13)/(2*n-2)),i=[r-7];for(let e=1;e<n-1;e++)i[e]=i[e-1]-o;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let t=0;t<o;t++)for(let e=0;e<o;e++)0===t&&0===e||0===t&&e===o-1||t===o-1&&0===e||n.push([r[t],r[e]]);return n}}(I)),I),i=function(){if(M)return b;M=1;const t=p().getSymbolSize;return b.getPositions=function(e){const n=t(e);return[[0,0],[n-7,0],[0,n-7]]},b}(),s=(x||(x=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,n=3,r=40,o=10;function i(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){const n=t.size;let r=0,o=0,i=0,s=null,a=null;for(let u=0;u<n;u++){o=i=0,s=a=null;for(let c=0;c<n;c++){let n=t.get(u,c);n===s?o++:(o>=5&&(r+=e+(o-5)),s=n,o=1),n=t.get(c,u),n===a?i++:(i>=5&&(r+=e+(i-5)),a=n,i=1)}o>=5&&(r+=e+(o-5)),i>=5&&(r+=e+(i-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let n=0;n<e-1;n++)for(let o=0;o<e-1;o++){const e=t.get(n,o)+t.get(n,o+1)+t.get(n+1,o)+t.get(n+1,o+1);4!==e&&0!==e||r++}return r*n},t.getPenaltyN3=function(t){const e=t.size;let n=0,o=0,i=0;for(let r=0;r<e;r++){o=i=0;for(let s=0;s<e;s++)o=o<<1&2047|t.get(r,s),s>=10&&(1488===o||93===o)&&n++,i=i<<1&2047|t.get(s,r),s>=10&&(1488===i||93===i)&&n++}return n*r},t.getPenaltyN4=function(t){let e=0;const n=t.data.length;for(let r=0;r<n;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/n/5)-10)*o},t.applyMask=function(t,e){const n=e.size;for(let r=0;r<n;r++)for(let o=0;o<n;o++)e.isReserved(o,r)||e.xor(o,r,i(t,o,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,i=1/0;for(let s=0;s<r;s++){n(s),t.applyMask(s,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(s,e),r<i&&(i=r,o=s)}return o}}(P)),P),a=R(),u=function(){if(S)return U;S=1;const t=F();function e(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}return e.prototype.initialize=function(e){this.degree=e,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const r=t.mod(n,this.genPoly),o=this.degree-r.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(r,o),t}return r},U=e}(),c=Z(),l=function(){if(X)return W;X=1;const t=p(),e=t.getBCHDigit(1335);return W.getEncodedBits=function(n,r){const o=n.bit<<3|r;let i=o<<10;for(;t.getBCHDigit(i)-e>=0;)i^=1335<<t.getBCHDigit(i)-e;return 21522^(o<<10|i)},W}(),f=$(),d=ht();function g(t,e,n){const r=t.size,o=l.getEncodedBits(e,n);let i,s;for(i=0;i<15;i++)s=1==(o>>i&1),i<6?t.set(i,8,s,!0):i<8?t.set(i+1,8,s,!0):t.set(r-15+i,8,s,!0),i<8?t.set(8,r-i-1,s,!0):i<9?t.set(8,15-i-1+1,s,!0):t.set(8,15-i-1,s,!0);t.set(r-8,8,1,!0)}function m(e,r,o){const i=new n;o.forEach(function(t){i.put(t.mode.bit,4),i.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(i)});const s=8*(t.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,r));for(i.getLengthInBits()+4<=s&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);const c=(s-i.getLengthInBits())/8;for(let t=0;t<c;t++)i.put(t%2?17:236,8);return function(e,n,r){const o=t.getSymbolTotalCodewords(n),i=a.getTotalCodewordsCount(n,r),s=o-i,c=a.getBlocksCount(n,r),l=o%c,f=c-l,d=Math.floor(o/c),h=Math.floor(s/c),g=h+1,p=d-h,m=new u(p);let w=0;const y=new Array(c),E=new Array(c);let A=0;const v=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<f?h:g;y[t]=v.slice(w,w+e),E[t]=m.encode(y[t]),w+=e,A=Math.max(A,e)}const C=new Uint8Array(o);let B,I,M=0;for(B=0;B<A;B++)for(I=0;I<c;I++)B<y[I].length&&(C[M++]=y[I][B]);for(B=0;B<p;B++)for(I=0;I<c;I++)C[M++]=E[I][B];return C}(i,e,r)}function v(e,n,a,u){let l;if(Array.isArray(e))l=d.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=n;if(!t){const n=d.rawSplit(e);t=c.getBestVersionForData(n,a)}l=d.fromString(e,t||40)}}const f=c.getBestVersionForData(l,a);if(!f)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<f)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+f+".\n")}else n=f;const h=m(n,a,l),p=t.getSymbolSize(n),w=new r(p);return function(t,e){const n=t.size,r=i.getPositions(e);for(let o=0;o<r.length;o++){const e=r[o][0],i=r[o][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||n<=e+r))for(let o=-1;o<=7;o++)i+o<=-1||n<=i+o||(r>=0&&r<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===r||6===r)||r>=2&&r<=4&&o>=2&&o<=4?t.set(e+r,i+o,!0,!0):t.set(e+r,i+o,!1,!0))}}(w,n),function(t){const e=t.size;for(let n=8;n<e-8;n++){const e=n%2==0;t.set(n,6,e,!0),t.set(6,n,e,!0)}}(w),function(t,e){const n=o.getPositions(e);for(let r=0;r<n.length;r++){const e=n[r][0],o=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?t.set(e+n,o+r,!0,!0):t.set(e+n,o+r,!1,!0)}}(w,n),g(w,a,0),n>=7&&function(t,e){const n=t.size,r=c.getEncodedBits(e);let o,i,s;for(let a=0;a<18;a++)o=Math.floor(a/3),i=a%3+n-8-3,s=1==(r>>a&1),t.set(o,i,s,!0),t.set(i,o,s,!0)}(w,n),function(t,e){const n=t.size;let r=-1,o=n-1,i=7,s=0;for(let a=n-1;a>0;a-=2)for(6===a&&a--;;){for(let n=0;n<2;n++)if(!t.isReserved(o,a-n)){let r=!1;s<e.length&&(r=1==(e[s]>>>i&1)),t.set(o,a-n,r),i--,-1===i&&(s++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(w,h),isNaN(u)&&(u=s.getBestMask(w,g.bind(null,w,a))),s.applyMask(u,w),g(w,a,u),{modules:w,version:n,errorCorrectionLevel:a,maskPattern:u,segments:l}}return h.create=function(n,r){if(void 0===n||""===n)throw new Error("No input text");let o,i,a=e.M;return void 0!==r&&(a=e.from(r.errorCorrectionLevel,e.M),o=c.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),v(n,o,a,i)},h}var pt,mt,wt={},yt={};function Et(){return pt||(pt=1,function(t){function e(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map(function(t){return[t,t]}))),6===e.length&&e.push("F","F");const n=parseInt(e.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:r,scale:r?4:o,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},t.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,i=n.modules.data,s=t.getScale(o,r),a=Math.floor((o+2*r.margin)*s),u=r.margin*s,c=[r.color.light,r.color.dark];for(let t=0;t<a;t++)for(let n=0;n<a;n++){let l=4*(t*a+n),f=r.color.light;if(t>=u&&n>=u&&t<a-u&&n<a-u){f=c[i[Math.floor((t-u)/s)*o+Math.floor((n-u)/s)]?1:0]}e[l++]=f.r,e[l++]=f.g,e[l++]=f.b,e[l]=f.a}}}(yt)),yt}function At(){return mt||(mt=1,function(t){const e=Et();t.render=function(t,n,r){let o=r,i=n;void 0!==o||n&&n.getContext||(o=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(a){throw new Error("You need to specify a canvas element")}}()),o=e.getOptions(o);const s=e.getImageWidth(t.modules.size,o),u=i.getContext("2d"),c=u.createImageData(s,s);return e.qrToImageData(c.data,t,o),function(t,e,n){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=n,e.width=n,e.style.height=n+"px",e.style.width=n+"px"}(u,i,s),u.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const i=t.render(e,n,o),s=o.type||"image/png",a=o.rendererOpts||{};return i.toDataURL(s,a.quality)}}(wt)),wt}var vt,Ct,Bt={};function It(){if(vt)return Bt;vt=1;const t=Et();function e(t,e){const n=t.a/255,r=e+'="'+t.hex+'"';return n<1?r+" "+e+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function n(t,e,n){let r=t+e;return void 0!==n&&(r+=" "+n),r}return Bt.render=function(r,o,i){const s=t.getOptions(o),a=r.modules.size,u=r.modules.data,c=a+2*s.margin,l=s.color.light.a?"<path "+e(s.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",f="<path "+e(s.color.dark,"stroke")+' d="'+function(t,e,r){let o="",i=0,s=!1,a=0;for(let u=0;u<t.length;u++){const c=Math.floor(u%e),l=Math.floor(u/e);c||s||(s=!0),t[u]?(a++,u>0&&c>0&&t[u-1]||(o+=s?n("M",c+r,.5+l+r):n("m",i,0),i=0,s=!1),c+1<e&&t[u+1]||(o+=n("h",a),a=0)):i++}return o}(u,a,s.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',h='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+d+' shape-rendering="crispEdges">'+l+f+"</svg>\n";return"function"==typeof i&&i(null,h),h},Bt}var Mt=function(){if(Ct)return l;Ct=1;const t=f(),e=gt(),n=At(),r=It();function o(n,r,o,i,s){const u=[].slice.call(arguments,1),c=u.length,l="function"==typeof u[c-1];if(!l&&!t())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(o=r,r=i=void 0):2!==c||r.getContext||(i=o,o=r,r=void 0),new Promise(function(t,s){try{const s=e.create(o,i);t(n(s,r,i))}catch(a){s(a)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(s=o,o=r,r=i=void 0):3===c&&(r.getContext&&void 0===s?(s=i,i=void 0):(s=i,i=o,o=r,r=void 0));try{const t=e.create(o,i);s(null,n(t,r,i))}catch(a){s(a)}}return l.create=e.create,l.toCanvas=o.bind(null,n.render),l.toDataURL=o.bind(null,n.renderToDataURL),l.toString=o.bind(null,function(t,e,n){return r.render(t,n)}),l}();var bt=Object.defineProperty,xt=Object.getOwnPropertyDescriptor,Pt=(t,e,n,r)=>{for(var o,i=r>1?void 0:r?xt(e,n):e,s=t.length-1;s>=0;s--)(o=t[s])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bt(e,n,i),i};let Tt=class extends e{updated(){const{originId:t,destinationId:e,generalConfig:r}=this.sdkData??{};if((t!==this.lastOriginId||e!==this.lastDestinationId)&&t&&e&&r){this.lastOriginId=t,this.lastDestinationId=e;const{baseUrl:o}=r,i=`${o}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,s={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:300};Mt.toDataURL(i,s).then(r=>{const o=this.shadowRoot?.getElementById("qr");o&&o instanceof HTMLImageElement&&(o.src=r,n.getInstance().trackEvent("qr_modal_displayed",{origin_id:t,destination_id:e,qr_url:i}))})}}render(){const{cameraInitialized:t}=this.sdkData??{};return r`
4
4
  <div class=${a({card:!0,hidden:!t})}>
5
5
  <div class="modal-content">
6
6
  <div class="pin-container">
@@ -10,10 +10,10 @@ import{c as t}from"./consume-CZ6vRJK9.js";import{l as e,A as n,y as r,I as o,E a
10
10
  <span>Continúa la ruta en tu celular, escaneando el código QR</span>
11
11
  </div>
12
12
  <div class="qr-code qr-container">
13
- <img id="qr" src="" alt="QR Code" />
13
+ <img id="qr" src=${"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"} alt="QR Code" />
14
14
  </div>
15
15
  </div>
16
16
  </div>
17
- `}};Nt.styles=[o(":host{display:block;height:100%;width:100%;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.card{margin-top:15px;background:#11032b;color:#fff;border-radius:24px;z-index:10;width:29.79vw;min-width:415px}.card.hidden{display:none}.modal-content{display:flex;flex-direction:row;align-items:center;gap:16px;padding:16px}.pin-container{display:flex;align-items:center;gap:8px}.qr-text{margin:0;font-size:1rem;font-weight:600;font-family:Poppins}.qr-code{display:flex;justify-content:center;align-items:center}.qr-code img{height:auto}.qr-container{background:#fff;padding:4px}")],Tt([t({context:i,subscribe:!0})],Nt.prototype,"sdkData",2),Nt=Tt([s("qr-modal")],Nt);export{Nt as QRModal};
17
+ `}};Tt.styles=[o(":host{display:block;height:100%;width:100%;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.card{margin-top:15px;background:#11032b;color:#fff;border-radius:24px;max-width:var(--mvx-qr-card-max-width, none)}:host(.compact) .card{max-width:var(--mvx-qr-card-max-width, 360px)}.card.hidden{display:none}.modal-content{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px;padding:16px}.pin-container{flex:0 0 auto;display:flex;align-items:center}.pin-container svg{display:block;width:63px;height:63px}:host(.compact) .pin-container svg{width:40px;height:40px}.qr-text{flex:1 1 80px;min-width:0;margin:0;font-family:Poppins;font-size:16px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}:host(.compact) .qr-text{font-size:14px}.qr-code{flex:0 1 auto;min-width:0;display:flex;justify-content:center;align-items:center}.qr-code img{display:block;width:var(--mvx-qr-code-size, 150px);max-width:100%;height:auto;aspect-ratio:1 / 1}.qr-container{background:#fff;padding:4px}")],Pt([t({context:i,subscribe:!0})],Tt.prototype,"sdkData",2),Tt=Pt([s("qr-modal")],Tt);export{Tt as QRModal};
18
18
 
19
- //# debugId=5c079b9d-c2d5-5125-8fe8-a6d8f18f90e5
19
+ //# debugId=494c55f2-e056-5824-aae1-add498927980
@@ -1,8 +1,8 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="694e53af-53d0-5a16-b317-a02dec912124")}catch(e){}}();
3
- import{c as e}from"./consume-CZ6vRJK9.js";import{l as t,A as i,y as a,K as o,x as s,I as n,E as r,n as c,B as l}from"./enable-3d-attribute-btpETT7S.js";import{t as d,D as p}from"./route-panel-variant-CJaz3hS7.js";var h,u,g,f,m,b,x,v=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=e=>{throw TypeError(e)},k=(e,t,i,a)=>{for(var o,s=a>1?void 0:a?w(t,i):t,n=e.length-1;n>=0;n--)(o=e[n])&&(s=(a?o(t,i,s):o(s))||s);return a&&s&&v(t,i,s),s},C=(e,t,i)=>t.has(e)||y("Cannot "+i),R=(e,t,i)=>(C(e,t,"read from private field"),i?i.call(e):t.get(e)),$=(e,t,i)=>t.has(e)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),_=(e,t,i,a)=>(C(e,t,"write to private field"),t.set(e,i),i);let E=class extends t{constructor(){super(),$(this,h,!1),$(this,u,!1),$(this,g,!1),$(this,f,!1),$(this,m,!1),$(this,b,!1),$(this,x,p),this.assets=null,this._loadAssets()}get hideBack(){return R(this,h)}set hideBack(e){_(this,h,e)}get hideRepeatRoute(){return R(this,u)}set hideRepeatRoute(e){_(this,u,e)}get hideRouteInputs(){return R(this,g)}set hideRouteInputs(e){_(this,g,e)}get hideAccessibilitySwitch(){return R(this,f)}set hideAccessibilitySwitch(e){_(this,f,e)}get hideGenerateRoute(){return R(this,m)}set hideGenerateRoute(e){_(this,m,e)}get autoGenerateRoute(){return R(this,b)}set autoGenerateRoute(e){_(this,b,e)}get panelVariant(){return R(this,x)}set panelVariant(e){_(this,x,e)}async _loadAssets(){this.assets=await(async()=>{const[e,t,i,a,o,s]=await Promise.all([import("./accessibility-D3Vyfstu.js"),import("./back_arrow-B3RltzaY.js"),import("./icon-destination-point-DEI58b8w.js"),import("./icon-origin-point-GS06gE2l.js"),import("./repeat_icon-DN4_p9eh.js"),import("./walking-BggsSG4g.js")]);return{accessibilityIcon:e.default,backIcon:t.default,destinationPoint:i.default,originPoint:a.default,repeatIcon:o.default,walkingIcon:s.default}})(),this.requestUpdate()}handleBack(){this.dispatchEvent(new CustomEvent("back",{detail:{},bubbles:!0,composed:!0}))}handleAccessibility(){this.dispatchEvent(new CustomEvent("accessibilityChange",{detail:!this.sdkData?.accessibleRoute,bubbles:!0,composed:!0}))}handleRepeatRoute(){this.dispatchEvent(new CustomEvent("repeatRoute",{detail:!0,bubbles:!0,composed:!0}))}handleGenerateRoute(){this.dispatchEvent(new CustomEvent("generateRoute",{detail:{accessible:!!this.sdkData?.accessibleRoute},bubbles:!0,composed:!0}))}_dismissError(){i.getInstance().trackEvent("error_modal_dismissed",{error_message:this.sdkData?.routeError,origin_id:this.sdkData?.originId,destination_id:this.sdkData?.destinationId}),this.dispatchEvent(new CustomEvent("dismissRouteError",{bubbles:!0,composed:!0}))}render(){if(!this.sdkData)return a``;const{destination:e,accessibleRoute:t,parentPlace:i,origin:o,route:s,isRouteAnimating:n,isLoading:r,loadingRoute:c,isNetworkError:l}=this.sdkData,p=(t?this.assets?.accessibilityIcon:this.assets?.walkingIcon)??"",h=e?.title??"",u=i?.innerFloors??[],g=(o&&"function"==typeof o.inFloor?o.inFloor(u):void 0)?.name??"",f=(e&&"function"==typeof e.inFloor?e.inFloor(u):void 0)?.name??"",m=n??!1;let b="";s&&s.legs&&s.legs.length>0&&s.legs[0].distance&&(b=`• ${s.legs[0].distance.toFixed(0)} mts`);const x="compact"===d(this.panelVariant)?this._renderCompactPanel(h,f,b,p):this._renderFullPanel({destinationName:h,destinationFloor:f,originFloor:g,distance:b,defaultIcon:p,hasRoute:!!s,isAnimating:m});return a`
4
- ${x}
5
- <qr-modal></qr-modal>
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="9ba30730-3aba-5720-a269-de7f4fc555c0")}catch(e){}}();
3
+ import{c as e}from"./consume-BVCy2F1c.js";import{l as t,A as i,y as a,K as o,x as s,I as n,E as r,n as c,B as l}from"./enable-3d-attribute-BivvMWbS.js";import{t as p,D as d}from"./route-panel-variant-CJaz3hS7.js";var h,u,g,f,m,b,x,v=Object.defineProperty,w=Object.getOwnPropertyDescriptor,y=e=>{throw TypeError(e)},k=(e,t,i,a)=>{for(var o,s=a>1?void 0:a?w(t,i):t,n=e.length-1;n>=0;n--)(o=e[n])&&(s=(a?o(t,i,s):o(s))||s);return a&&s&&v(t,i,s),s},C=(e,t,i)=>t.has(e)||y("Cannot "+i),R=(e,t,i)=>(C(e,t,"read from private field"),i?i.call(e):t.get(e)),$=(e,t,i)=>t.has(e)?y("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),_=(e,t,i,a)=>(C(e,t,"write to private field"),t.set(e,i),i);let E=class extends t{constructor(){super(),$(this,h,!1),$(this,u,!1),$(this,g,!1),$(this,f,!1),$(this,m,!1),$(this,b,!1),$(this,x,d),this.assets=null,this._loadAssets()}get hideBack(){return R(this,h)}set hideBack(e){_(this,h,e)}get hideRepeatRoute(){return R(this,u)}set hideRepeatRoute(e){_(this,u,e)}get hideRouteInputs(){return R(this,g)}set hideRouteInputs(e){_(this,g,e)}get hideAccessibilitySwitch(){return R(this,f)}set hideAccessibilitySwitch(e){_(this,f,e)}get hideGenerateRoute(){return R(this,m)}set hideGenerateRoute(e){_(this,m,e)}get autoGenerateRoute(){return R(this,b)}set autoGenerateRoute(e){_(this,b,e)}get panelVariant(){return R(this,x)}set panelVariant(e){_(this,x,e)}async _loadAssets(){this.assets=await(async()=>{const[e,t,i,a,o,s]=await Promise.all([import("./accessibility-D3Vyfstu.js"),import("./back_arrow-B3RltzaY.js"),import("./icon-destination-point-DEI58b8w.js"),import("./icon-origin-point-GS06gE2l.js"),import("./repeat_icon-DN4_p9eh.js"),import("./walking-BggsSG4g.js")]);return{accessibilityIcon:e.default,backIcon:t.default,destinationPoint:i.default,originPoint:a.default,repeatIcon:o.default,walkingIcon:s.default}})(),this.requestUpdate()}handleBack(){this.dispatchEvent(new CustomEvent("back",{detail:{},bubbles:!0,composed:!0}))}handleAccessibility(){this.dispatchEvent(new CustomEvent("accessibilityChange",{detail:!this.sdkData?.accessibleRoute,bubbles:!0,composed:!0}))}handleRepeatRoute(){this.dispatchEvent(new CustomEvent("repeatRoute",{detail:!0,bubbles:!0,composed:!0}))}handleGenerateRoute(){this.dispatchEvent(new CustomEvent("generateRoute",{detail:{accessible:!!this.sdkData?.accessibleRoute},bubbles:!0,composed:!0}))}_dismissError(){i.getInstance().trackEvent("error_modal_dismissed",{error_message:this.sdkData?.routeError,origin_id:this.sdkData?.originId,destination_id:this.sdkData?.destinationId}),this.dispatchEvent(new CustomEvent("dismissRouteError",{bubbles:!0,composed:!0}))}render(){if(!this.sdkData)return a``;const{destination:e,accessibleRoute:t,parentPlace:i,origin:o,route:s,isRouteAnimating:n,isLoading:r,loadingRoute:c,isNetworkError:l}=this.sdkData,d=(t?this.assets?.accessibilityIcon:this.assets?.walkingIcon)??"",h=e?.title??"",u=i?.innerFloors??[],g=(o&&"function"==typeof o.inFloor?o.inFloor(u):void 0)?.name??"",f=(e&&"function"==typeof e.inFloor?e.inFloor(u):void 0)?.name??"",m=n??!1;let b="";s&&s.legs&&s.legs.length>0&&s.legs[0].distance&&(b=`• ${s.legs[0].distance.toFixed(0)} mts`);const x=p(this.panelVariant),v="compact"===x?this._renderCompactPanel(h,f,b,d):this._renderFullPanel({destinationName:h,destinationFloor:f,originFloor:g,distance:b,defaultIcon:d,hasRoute:!!s,isAnimating:m});return a`
4
+ ${v}
5
+ <qr-modal class=${x}></qr-modal>
6
6
  ${r||c?a`
7
7
  <div class="loading-overlay">
8
8
  <div class="loading-spinner"></div>
@@ -10,7 +10,7 @@ import{c as e}from"./consume-CZ6vRJK9.js";import{l as t,A as i,y as a,K as o,x a
10
10
  </div>
11
11
  `:""}
12
12
  ${this.sdkData?.routeError?this._renderErrorModal(this.sdkData.routeError,!!l):""}
13
- `}_showGenerateRoute(){const{route:e,loadingRoute:t,isLoading:i,routeFailed:a,placesFailed:o,origin:s,destination:n}=this.sdkData??{};return!e&&(!this.autoGenerateRoute&&!this.hideGenerateRoute||!t&&!i&&(!(!a&&!o)||!this.hideGenerateRoute&&!(!s||!n)))}_renderFullPanel(e){const{destinationName:t,destinationFloor:i,originFloor:n,distance:r,defaultIcon:c,hasRoute:l,isAnimating:d}=e,p=!this.hideRouteInputs||!this.hideAccessibilitySwitch;return a`
13
+ `}_showGenerateRoute(){const{route:e,loadingRoute:t,isLoading:i,routeFailed:a,placesFailed:o,origin:s,destination:n}=this.sdkData??{};return!e&&(!this.autoGenerateRoute&&!this.hideGenerateRoute||!t&&!i&&(!(!a&&!o)||!this.hideGenerateRoute&&!(!s||!n)))}_renderFullPanel(e){const{destinationName:t,destinationFloor:i,originFloor:n,distance:r,defaultIcon:c,hasRoute:l,isAnimating:p}=e,d=!this.hideRouteInputs||!this.hideAccessibilitySwitch;return a`
14
14
  <div class="route-panel">
15
15
  <div class="flex flex-col h-full">
16
16
  ${this.hideBack?o:a`
@@ -29,7 +29,7 @@ import{c as e}from"./consume-CZ6vRJK9.js";import{l as t,A as i,y as a,K as o,x a
29
29
  </div>
30
30
  <span class="justify-content-center place-name"> ${t} </span>
31
31
  ${l&&!this.hideRepeatRoute?a`
32
- <button class="repeat-route-btn" @click=${this.handleRepeatRoute} ?disabled=${d}>
32
+ <button class="repeat-route-btn" @click=${this.handleRepeatRoute} ?disabled=${p}>
33
33
  <span .innerHTML=${this.assets?.repeatIcon??""}></span>
34
34
  <span>Repetir ruta</span>
35
35
  </button>
@@ -39,7 +39,7 @@ import{c as e}from"./consume-CZ6vRJK9.js";import{l as t,A as i,y as a,K as o,x a
39
39
  <span class="floor-name">${i}</span>
40
40
  <span class="route-distance">${r}</span>
41
41
  </div>
42
- ${p?a`
42
+ ${d?a`
43
43
  <div class="d-flex flex-wrap container-controls">
44
44
  ${this.hideRouteInputs?o:a`
45
45
  <div class="flex-fill route-input-wrapper">
@@ -133,6 +133,6 @@ import{c as e}from"./consume-CZ6vRJK9.js";import{l as t,A as i,y as a,K as o,x a
133
133
  <button class="error-btn" @click=${this._dismissError}>Aceptar</button>
134
134
  </div>
135
135
  </div>
136
- `}};h=new WeakMap,u=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,b=new WeakMap,x=new WeakMap,E.styles=[n(":host{position:absolute;top:0;left:0;padding:1rem;z-index:10;font-family:Poppins!important;user-select:none}svg{vertical-align:middle}.back-panel{background-color:#11032b;color:#fff;margin-bottom:5px;padding-left:1.2rem;align-items:center;height:55px;position:relative}.back-content{margin:0;position:relative;top:50%;transform:translateY(-50%);font-size:22px;color:#fff;display:flex;align-items:center;gap:8px;cursor:pointer}.route-panel{width:29.79vw;min-width:415px;max-height:75vh;overflow-y:auto;overflow-x:hidden;border-radius:24px;background:#fff;box-shadow:0 0 24px #00000026}.back-text{font-size:24px;font-weight:600}.back-content img{vertical-align:middle}.route-modal{padding:19px 13px 22px 32px}.icon_switcher_user_type{position:relative;color:#000}.d-flex{display:flex!important}.flex-fill{flex:1 1 auto!important}.place-name{font-weight:700;font-size:32px;line-height:1;letter-spacing:-1.6px;color:#333;margin-left:2px}.repeat-route-btn{display:flex;gap:10px;justify-content:center;align-items:center;text-align:center;background-color:#fff;border:2px solid #000000;border-radius:999px;margin-left:auto;margin-right:0;padding:12px 20px;font-size:20px;font-weight:700;line-height:20px;letter-spacing:-1px;color:#000;transition:background-color .3s ease,color .3s ease;cursor:pointer}.repeat-route-btn[disabled]{color:gray;border-color:gray;cursor:not-allowed;pointer-events:none}.floor-name{font-size:1rem;color:#427553}.floor-specs{font-family:Poppins;font-weight:600;line-height:14px;size:18px}.route-distance{color:#666}.container-controls{margin-top:16px;align-items:end;gap:11px}.c-route-input{color:#000;display:flex;padding:15px;font-size:16px;font-style:normal;font-weight:600;line-height:16px;letter-spacing:-.8px;align-items:center;gap:9px;border-radius:30px;background:#fff;box-shadow:0 0 10px #0000001a;position:relative;margin-top:12px}.c-route-input .c-route-input-icon svg{width:22px;height:22px}.c-route-input-from{margin-top:0}.c-route-input-from:after{content:\"\";position:absolute;bottom:-50%;left:24px;width:3.998px;height:34.5px;z-index:1;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='38' viewBox='0 0 4 38' fill='none'%3E%3Cpath d='M-0.00028944 18.9386C-0.00028944 17.8347 0.894666 16.9397 1.99864 16.9397C3.10259 16.9397 3.99756 17.8347 3.99756 18.9386C3.99756 20.0426 3.10259 20.9375 1.99864 20.9375C0.894666 20.9375 -0.00028944 20.0426 -0.00028944 18.9386ZM-0.00028944 27.2198C-0.00028944 26.1159 0.894666 25.2209 1.99864 25.2209C3.10259 25.2209 3.99756 26.1159 3.99756 27.2198C3.99756 28.3238 3.10259 29.2188 1.99864 29.2188C0.894666 29.2188 -0.00028944 28.3238 -0.00028944 27.2198ZM-0.00028944 35.5011C-0.00028944 34.3971 0.894666 33.5021 1.99864 33.5021C3.10259 33.5021 3.99756 34.3971 3.99756 35.5011C3.99756 36.605 3.10259 37.5 1.99864 37.5C0.894666 37.5 -0.00028944 36.605 -0.00028944 35.5011Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 8.49999C0.894666 8.49999 -0.00028944 9.39496 -0.00028944 10.4989C-0.00028944 11.6029 0.894666 12.4978 1.99864 12.4978C3.10259 12.4978 3.99756 11.6029 3.99756 10.4989C3.99756 9.39496 3.10259 8.49999 1.99864 8.49999Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 0C0.894666 0 -0.00028944 0.894973 -0.00028944 1.99892C-0.00028944 3.10289 0.894666 3.99784 1.99864 3.99784C3.10259 3.99784 3.99756 3.10289 3.99756 1.99892C3.99756 0.894973 3.10259 0 1.99864 0Z' fill='%23D0D0D0'/%3E%3C/svg%3E\")}.c-route-input span{padding:0 6px;border-radius:15px;color:#454545;background:#f2f2f2;font-size:10px;font-style:normal;font-weight:600;line-height:14px;letter-spacing:-.5px}.accessibility-switch{display:flex;align-items:center;justify-content:center;min-width:100px;height:50px;border-radius:48px;background-color:#fff;box-shadow:0 0 15px #0003;position:relative}.accessibility-switch:before,.accessibility-switch:after{content:\"\";border-radius:50%;width:50%;height:100%;background:#000;position:absolute;bottom:0;left:0;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0;transition:transform .5s ease}.accessibility-switch:after{background:var(--mvx-accessibility-switch-active-color, #000);clip-path:circle(22px);z-index:1}.accessibility-switch.accessible:before,.accessibility-switch.accessible:after{transform:translate(100%)}.accessibility-switch-icon{width:50px;height:100%;display:grid;place-items:center;cursor:pointer;z-index:2;transition:color .5s ease;color:#000}.accessibility-switch-icon.active{color:#fff}.generate-route-btn{border-style:solid;width:100%;border-radius:30px;height:58px;background-color:#11032b;cursor:pointer}.generate-route-btn span{font-family:Poppins;font-size:1rem;line-height:16px;font-weight:600;text-align:center;color:#fff}.generate-route-container{width:100%}.route-panel.compact{width:auto;min-width:0;max-width:480px}@container (max-width: 1100px){.route-panel.compact{max-width:min(calc(100cqw - var(--floor-selector-inline-size, 102px) - 1rem),480px)}}.compact-modal{display:flex;align-items:center;gap:16px;padding:16px 16px 16px 24px}.compact-info{flex:1 1 auto;min-width:0}.compact .place-name{font-size:26px;letter-spacing:-1.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact .floor-specs{margin-top:6px;font-size:14px}.compact .accessibility-switch{flex:0 0 auto;min-width:88px;height:44px}.compact .accessibility-switch:after{clip-path:circle(19px)}.compact .accessibility-switch-icon{width:44px}.compact-generate-route{padding:0 16px 16px}.compact-generate-route .generate-route-container{margin-top:0!important}.compact-generate-route .generate-route-btn{height:48px}.mt-3{margin-top:1rem!important}.align-items-center{align-items:center!important}.justify-content-center{justify-content:center!important}.error-modal-overlay{position:fixed;inset:0;background:#00000080;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000}.error-modal{background:#fff;color:#11032b;border-radius:24px;padding:32px;text-align:center;max-width:350px;box-shadow:0 0 24px #0000004d;animation:fadeInScale .2s ease-out}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.error-icon{margin-bottom:16px;color:#11032b}.error-message{font-size:18px;margin:0 0 24px;line-height:1.4;font-weight:500}.error-btn{background:#11032b;color:#fff;border:none;border-radius:30px;padding:12px 40px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .2s ease}.error-btn:hover{background:#1a0540}.loading-overlay{position:fixed;inset:0;background:#ffffffd9;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}.loading-spinner{width:60px;height:60px;border:4px solid #f3f3f3;border-top:4px solid #11032b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{margin-top:16px;font-size:18px;font-weight:600;color:#11032b}.error-icon.network-error{color:#e74c3c}")],k([e({context:r,subscribe:!0})],E.prototype,"sdkData",2),k([c({type:Boolean,attribute:"hide-back"})],E.prototype,"hideBack",1),k([c({type:Boolean,attribute:"hide-repeat-route"})],E.prototype,"hideRepeatRoute",1),k([c({type:Boolean,attribute:"hide-route-inputs"})],E.prototype,"hideRouteInputs",1),k([c({type:Boolean,attribute:"hide-accessibility-switch"})],E.prototype,"hideAccessibilitySwitch",1),k([c({type:Boolean,attribute:"hide-generate-route"})],E.prototype,"hideGenerateRoute",1),k([c({type:Boolean,attribute:"auto-generate-route"})],E.prototype,"autoGenerateRoute",1),k([c({type:String,attribute:"panel-variant"})],E.prototype,"panelVariant",1),E=k([l("route-options")],E);export{E as RouteOptions};
136
+ `}};h=new WeakMap,u=new WeakMap,g=new WeakMap,f=new WeakMap,m=new WeakMap,b=new WeakMap,x=new WeakMap,E.styles=[n(":host{position:absolute;top:0;left:0;padding:1rem;z-index:10;font-family:Poppins!important;user-select:none}svg{vertical-align:middle}.back-panel{background-color:#11032b;color:#fff;margin-bottom:5px;padding-left:1.2rem;align-items:center;height:55px;position:relative}.back-content{margin:0;position:relative;top:50%;transform:translateY(-50%);font-size:22px;color:#fff;display:flex;align-items:center;gap:8px;cursor:pointer}.route-panel,qr-modal.full{width:29.79vw;min-width:415px}.route-panel{max-height:75vh;overflow-y:auto;overflow-x:hidden;border-radius:24px;background:#fff;box-shadow:0 0 24px #00000026}.back-text{font-size:24px;font-weight:600}.back-content img{vertical-align:middle}.route-modal{padding:19px 13px 22px 32px}.icon_switcher_user_type{position:relative;color:#000}.d-flex{display:flex!important}.flex-fill{flex:1 1 auto!important}.place-name{font-weight:700;font-size:32px;line-height:1;letter-spacing:-1.6px;color:#333;margin-left:2px}.repeat-route-btn{display:flex;gap:10px;justify-content:center;align-items:center;text-align:center;background-color:#fff;border:2px solid #000000;border-radius:999px;margin-left:auto;margin-right:0;padding:12px 20px;font-size:20px;font-weight:700;line-height:20px;letter-spacing:-1px;color:#000;transition:background-color .3s ease,color .3s ease;cursor:pointer}.repeat-route-btn[disabled]{color:gray;border-color:gray;cursor:not-allowed;pointer-events:none}.floor-name{font-size:1rem;color:#427553}.floor-specs{font-family:Poppins;font-weight:600;line-height:14px;size:18px}.route-distance{color:#666}.container-controls{margin-top:16px;align-items:end;gap:11px}.c-route-input{color:#000;display:flex;padding:15px;font-size:16px;font-style:normal;font-weight:600;line-height:16px;letter-spacing:-.8px;align-items:center;gap:9px;border-radius:30px;background:#fff;box-shadow:0 0 10px #0000001a;position:relative;margin-top:12px}.c-route-input .c-route-input-icon svg{width:22px;height:22px}.c-route-input-from{margin-top:0}.c-route-input-from:after{content:\"\";position:absolute;bottom:-50%;left:24px;width:3.998px;height:34.5px;z-index:1;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='38' viewBox='0 0 4 38' fill='none'%3E%3Cpath d='M-0.00028944 18.9386C-0.00028944 17.8347 0.894666 16.9397 1.99864 16.9397C3.10259 16.9397 3.99756 17.8347 3.99756 18.9386C3.99756 20.0426 3.10259 20.9375 1.99864 20.9375C0.894666 20.9375 -0.00028944 20.0426 -0.00028944 18.9386ZM-0.00028944 27.2198C-0.00028944 26.1159 0.894666 25.2209 1.99864 25.2209C3.10259 25.2209 3.99756 26.1159 3.99756 27.2198C3.99756 28.3238 3.10259 29.2188 1.99864 29.2188C0.894666 29.2188 -0.00028944 28.3238 -0.00028944 27.2198ZM-0.00028944 35.5011C-0.00028944 34.3971 0.894666 33.5021 1.99864 33.5021C3.10259 33.5021 3.99756 34.3971 3.99756 35.5011C3.99756 36.605 3.10259 37.5 1.99864 37.5C0.894666 37.5 -0.00028944 36.605 -0.00028944 35.5011Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 8.49999C0.894666 8.49999 -0.00028944 9.39496 -0.00028944 10.4989C-0.00028944 11.6029 0.894666 12.4978 1.99864 12.4978C3.10259 12.4978 3.99756 11.6029 3.99756 10.4989C3.99756 9.39496 3.10259 8.49999 1.99864 8.49999Z' fill='%23D0D0D0'/%3E%3Cpath d='M1.99864 0C0.894666 0 -0.00028944 0.894973 -0.00028944 1.99892C-0.00028944 3.10289 0.894666 3.99784 1.99864 3.99784C3.10259 3.99784 3.99756 3.10289 3.99756 1.99892C3.99756 0.894973 3.10259 0 1.99864 0Z' fill='%23D0D0D0'/%3E%3C/svg%3E\")}.c-route-input span{padding:0 6px;border-radius:15px;color:#454545;background:#f2f2f2;font-size:10px;font-style:normal;font-weight:600;line-height:14px;letter-spacing:-.5px}.accessibility-switch{display:flex;align-items:center;justify-content:center;min-width:100px;height:50px;border-radius:48px;background-color:#fff;box-shadow:0 0 15px #0003;position:relative}.accessibility-switch:before,.accessibility-switch:after{content:\"\";border-radius:50%;width:50%;height:100%;background:#000;position:absolute;bottom:0;left:0;background:linear-gradient(45.8deg,#f5a 10.03%,#b850c9 25.23%,#6572d6 48.67%,#4eaeb8 72.74%);z-index:0;transition:transform .5s ease}.accessibility-switch:after{background:var(--mvx-accessibility-switch-active-color, #000);clip-path:circle(22px);z-index:1}.accessibility-switch.accessible:before,.accessibility-switch.accessible:after{transform:translate(100%)}.accessibility-switch-icon{width:50px;height:100%;display:grid;place-items:center;cursor:pointer;z-index:2;transition:color .5s ease;color:#000}.accessibility-switch-icon.active{color:#fff}.generate-route-btn{border-style:solid;width:100%;border-radius:30px;height:58px;background-color:#11032b;cursor:pointer}.generate-route-btn span{font-family:Poppins;font-size:1rem;line-height:16px;font-weight:600;text-align:center;color:#fff}.generate-route-container{width:100%}.route-panel.compact{width:auto;min-width:0}.route-panel.compact,qr-modal.compact{max-width:480px}@container (max-width: 1100px){.route-panel.compact,qr-modal.compact{max-width:min(calc(100cqw - var(--floor-selector-inline-size, 102px) - 1rem),480px)}}.compact-modal{display:flex;align-items:center;gap:16px;padding:16px 16px 16px 24px}.compact-info{flex:1 1 auto;min-width:0}.compact .place-name{font-size:26px;letter-spacing:-1.2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact .floor-specs{margin-top:6px;font-size:14px}.compact .accessibility-switch{flex:0 0 auto;min-width:88px;height:44px}.compact .accessibility-switch:after{clip-path:circle(19px)}.compact .accessibility-switch-icon{width:44px}.compact-generate-route{padding:0 16px 16px}.compact-generate-route .generate-route-container{margin-top:0!important}.compact-generate-route .generate-route-btn{height:48px}.mt-3{margin-top:1rem!important}.align-items-center{align-items:center!important}.justify-content-center{justify-content:center!important}.error-modal-overlay{position:fixed;inset:0;background:#00000080;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000}.error-modal{background:#fff;color:#11032b;border-radius:24px;padding:32px;text-align:center;max-width:350px;box-shadow:0 0 24px #0000004d;animation:fadeInScale .2s ease-out}@keyframes fadeInScale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.error-icon{margin-bottom:16px;color:#11032b}.error-message{font-size:18px;margin:0 0 24px;line-height:1.4;font-weight:500}.error-btn{background:#11032b;color:#fff;border:none;border-radius:30px;padding:12px 40px;font-size:16px;font-weight:600;cursor:pointer;transition:background-color .2s ease}.error-btn:hover{background:#1a0540}.loading-overlay{position:fixed;inset:0;background:#ffffffd9;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9999}.loading-spinner{width:60px;height:60px;border:4px solid #f3f3f3;border-top:4px solid #11032b;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-text{margin-top:16px;font-size:18px;font-weight:600;color:#11032b}.error-icon.network-error{color:#e74c3c}")],k([e({context:r,subscribe:!0})],E.prototype,"sdkData",2),k([c({type:Boolean,attribute:"hide-back"})],E.prototype,"hideBack",1),k([c({type:Boolean,attribute:"hide-repeat-route"})],E.prototype,"hideRepeatRoute",1),k([c({type:Boolean,attribute:"hide-route-inputs"})],E.prototype,"hideRouteInputs",1),k([c({type:Boolean,attribute:"hide-accessibility-switch"})],E.prototype,"hideAccessibilitySwitch",1),k([c({type:Boolean,attribute:"hide-generate-route"})],E.prototype,"hideGenerateRoute",1),k([c({type:Boolean,attribute:"auto-generate-route"})],E.prototype,"autoGenerateRoute",1),k([c({type:String,attribute:"panel-variant"})],E.prototype,"panelVariant",1),E=k([l("route-options")],E);export{E as RouteOptions};
137
137
 
138
- //# debugId=694e53af-53d0-5a16-b317-a02dec912124
138
+ //# debugId=9ba30730-3aba-5720-a269-de7f4fc555c0
@@ -1,10 +1,10 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="633659cc-27eb-5427-a26c-07cbec5c5f68")}catch(e){}}();
3
- import{n as t}from"./enable-3d-attribute-btpETT7S.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="334188c1-4d2f-5f56-864e-dc6d70915515")}catch(e){}}();
3
+ import{n as t}from"./enable-3d-attribute-BivvMWbS.js";
4
4
  /**
5
5
  * @license
6
6
  * Copyright 2017 Google LLC
7
7
  * SPDX-License-Identifier: BSD-3-Clause
8
8
  */function e(e){return t({...e,state:!0,attribute:!1})}export{e as r};
9
9
 
10
- //# debugId=633659cc-27eb-5427-a26c-07cbec5c5f68
10
+ //# debugId=334188c1-4d2f-5f56-864e-dc6d70915515
package/dist/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="0effd244-83c0-5567-823c-fe3a9df806d8")}catch(e){}}();
3
- export{RouteViewTotems}from"./route-view-totems.js";export{MapViewWithModal}from"./map-view-with-modal.js";export{C as CACHE_STORAGE_KEYS,d as DEFAULT_CACHE_CONFIG,D as DEFAULT_VECTOR_TILES_BASE_URL,f as MVX_ERROR_EVENT,g as MVX_ERROR_MESSAGES,M as MVX_TILES_SW_PATH,a as MVX_TILES_SW_SCOPE,S as STORAGE_BYTES,T as TIME_MS,c as TOTEM_CACHE_CONFIG,W as WEB_CACHE_CONFIG,e as clearAllCacheStorage,m as mergeCacheConfig,b as registerAndTriggerTilePrefetch,r as registerMvxTileServiceWorker,s as schedulePeriodicTileRefresh,t as triggerInitialTileLoad,w as waitForServiceWorkerReady}from"./assets/enable-3d-attribute-btpETT7S.js";
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="b6924799-4630-50da-b6d3-d4350828a1be")}catch(e){}}();
3
+ export{RouteViewTotems}from"./route-view-totems.js";export{MapViewWithModal}from"./map-view-with-modal.js";export{C as CACHE_STORAGE_KEYS,d as DEFAULT_CACHE_CONFIG,D as DEFAULT_VECTOR_TILES_BASE_URL,f as MVX_ERROR_EVENT,g as MVX_ERROR_MESSAGES,M as MVX_TILES_SW_PATH,a as MVX_TILES_SW_SCOPE,S as STORAGE_BYTES,T as TIME_MS,c as TOTEM_CACHE_CONFIG,W as WEB_CACHE_CONFIG,e as clearAllCacheStorage,m as mergeCacheConfig,b as registerAndTriggerTilePrefetch,r as registerMvxTileServiceWorker,s as schedulePeriodicTileRefresh,t as triggerInitialTileLoad,w as waitForServiceWorkerReady}from"./assets/enable-3d-attribute-BivvMWbS.js";
4
4
 
5
- //# debugId=0effd244-83c0-5567-823c-fe3a9df806d8
5
+ //# debugId=b6924799-4630-50da-b6d3-d4350828a1be
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f81e02b8-b075-5b8d-9fa0-57ddcb96d15f")}catch(e){}}();
3
- import{i as t,n as e,h as o,j as r,k as a,l as i,o as s,A as n,p as l,q as d,r as c,w as h,s as p,t as m,u,v as f,x as g,y as v,z as y,B as w}from"./assets/enable-3d-attribute-btpETT7S.js";var b,x,P,I,k,M,z,S,C,_,W,$,R,F,T,K,N,B,Z,H,A,D,E,j=Object.defineProperty,q=Object.getOwnPropertyDescriptor,V=t=>{throw TypeError(t)},O=(t,e,o,r)=>{for(var a,i=r>1?void 0:r?q(e,o):e,s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&j(e,o,i),i},L=(t,e,o)=>e.has(t)||V("Cannot "+o),U=(t,e,o)=>(L(t,e,"read from private field"),o?o.call(t):e.get(t)),X=(t,e,o)=>e.has(t)?V("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),Y=(t,e,o,r)=>(L(t,e,"write to private field"),e.set(t,o),o);const G={showfloorselector:"show-floor-selector",floorselectorposition:"floor-selector-position",floorselectordisabled:"floor-selector-disabled"};let J=class extends i{constructor(){super(...arguments),X(this,b,""),X(this,x,""),X(this,P,"es"),X(this,I,!1),X(this,k,[]),X(this,M,y),X(this,z,""),X(this,S,""),X(this,C,""),X(this,_,!1),X(this,W,"normal"),X(this,$,22.5),X(this,R,22.5),X(this,F,22.5),X(this,T,24),X(this,K,24),X(this,N,24),X(this,B,24),X(this,Z,"none"),X(this,H),X(this,A,!0),X(this,D,"top-left"),X(this,E,!1),this._swPath="/mvx-tiles-sw.js",this._swScope="/",this._swRegistration=null,this.sdkController=new s(this),this.analyticsController=n.getInstance(),this.currentFloorId=""}get apiKey(){return U(this,b)}set apiKey(t){Y(this,b,t)}get parentPlaceId(){return U(this,x)}set parentPlaceId(t){Y(this,x,t)}get locale(){return U(this,P)}set locale(t){Y(this,P,t)}get enable3D(){return U(this,I)}set enable3D(t){Y(this,I,t)}get scene3dPlaceIds(){return U(this,k)}set scene3dPlaceIds(t){Y(this,k,t)}get markerVariant(){return U(this,M)}set markerVariant(t){Y(this,M,t)}get placeId(){return U(this,z)}set placeId(t){Y(this,z,t)}get institutionId(){return U(this,S)}set institutionId(t){Y(this,S,t)}get institutionName(){return U(this,C)}set institutionName(t){Y(this,C,t)}get compactMode(){return U(this,_)}set compactMode(t){Y(this,_,t)}get zoomButtonSize(){return U(this,W)}set zoomButtonSize(t){Y(this,W,t)}get fitMaxZoom(){return U(this,$)}set fitMaxZoom(t){Y(this,$,t)}get singlePointMaxZoom(){return U(this,R)}set singlePointMaxZoom(t){Y(this,R,t)}get routeFitMaxZoom(){return U(this,F)}set routeFitMaxZoom(t){Y(this,F,t)}get cameraPaddingTop(){return U(this,T)}set cameraPaddingTop(t){Y(this,T,t)}get cameraPaddingRight(){return U(this,K)}set cameraPaddingRight(t){Y(this,K,t)}get cameraPaddingBottom(){return U(this,N)}set cameraPaddingBottom(t){Y(this,N,t)}get cameraPaddingLeft(){return U(this,B)}set cameraPaddingLeft(t){Y(this,B,t)}get overlayPaddingMode(){return U(this,Z)}set overlayPaddingMode(t){Y(this,Z,t)}get cacheConfig(){return U(this,H)}set cacheConfig(t){Y(this,H,t)}get showFloorSelector(){return U(this,A)}set showFloorSelector(t){Y(this,A,t)}get floorSelectorPosition(){return U(this,D)}set floorSelectorPosition(t){Y(this,D,t)}get floorSelectorDisabled(){return U(this,E)}set floorSelectorDisabled(t){Y(this,E,t)}static get observedAttributes(){return[...super.observedAttributes,...Object.keys(G)]}attributeChangedCallback(t,e,o){super.attributeChangedCallback(G[t]??t,e,o)}async _loadComponents(){await Promise.all([l(),d()])}mapVxRequestContext(){if("undefined"==typeof window)return{mvxProduct:"webcomponents",institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0};return{mvxProduct:"webcomponents",baseUrl:`${window.location.origin}${window.location.pathname}`.replace(/\/$/,"")||window.location.origin,parentPlace:this.parentPlaceId||void 0,institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0,fullUrl:window.location.href}}_tilePrefetchCredentials(){return{apiKey:this.apiKey||this.getAttribute("apiKey")||"",placeId:this.parentPlaceId||this.getAttribute("parentPlaceId")||""}}async _initTileServiceWorker(){if(this._swRegistration=await c(this._swPath,this._swScope),await h(),this._syncTilePrefetch(),!this._stopTileRefresh){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();this._stopTileRefresh=p(this._swRegistration,{apiKey:t,placeId:e})}}_syncTilePrefetch(){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();m(this._swRegistration,{apiKey:t,placeId:e})}async firstUpdated(){this._initTileServiceWorker();const t=this._loadComponents(),e=u();await Promise.all([t,e]),this.analyticsController.initialize("map-view-with-modal"),f.initialize("map-view-with-modal")}_mapReadyHandler(){this.sdkController.setMapReady(!0),this.analyticsController.trackEvent("map_ready",this.baseParams())}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.analyticsController.trackEvent("camera_initialized",this.baseParams())}_updateFloorHandler(t){const e=t.detail;if(this.currentFloorId===e)return;this.currentFloorId=e,this.sdkController.setFloor(e);const o=this.baseParams();o.floor_id=e,this.analyticsController.trackEvent("floor_change",o)}baseParams(){return{apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,placeId:this.placeId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth}}getFloorSelectorPositionStyles(){const t={"top-left":"top: 20px; left: 20px;","top-center":"top: 20px; left: 50%; transform: translateX(-50%);","top-right":"top: 20px; right: 20px;","center-left":"top: 50%; left: 20px; transform: translateY(-50%);","center-right":"top: 50%; right: 20px; transform: translateY(-50%);","bottom-left":"bottom: 20px; left: 20px;","bottom-center":"bottom: 20px; left: 50%; transform: translateX(-50%);","bottom-right":"bottom: 20px; right: 20px;"};return t[this.floorSelectorPosition]||t["top-left"]}updated(t){if(this.apiKey&&this.locale&&this.parentPlaceId&&(t.has("apiKey")||t.has("locale")||t.has("parentPlaceId")||t.has("institutionId")||t.has("institutionName"))){const e=this.mapVxRequestContext(),o=!!this.placeId&&t.has("placeId");this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{destinationId:o?void 0:this.placeId,mapvxRequestContext:e,cacheConfig:this.cacheConfig}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId,e,this.cacheConfig),(t.has("apiKey")||t.has("parentPlaceId"))&&this._syncTilePrefetch()}this.placeId&&t.has("placeId")&&this.sdkController.setOriginAndDestination("",this.placeId),t.has("floorSelectorPosition")&&this._compactFloorSelector()?.updatePlacement?.()}_compactFloorSelector(){return this.shadowRoot?.querySelector("compact-floor-selector")}render(){return v`
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4a1caa8e-74be-5672-887a-f1b5b8f093fc")}catch(e){}}();
3
+ import{i as t,n as e,h as o,j as r,k as a,l as i,o as s,A as n,p as l,q as d,r as c,w as h,s as p,t as m,u,v as f,x as g,y as v,z as y,B as w}from"./assets/enable-3d-attribute-BivvMWbS.js";var b,x,P,I,k,M,z,S,C,_,W,$,R,F,T,K,N,B,Z,H,A,D,E,j=Object.defineProperty,q=Object.getOwnPropertyDescriptor,V=t=>{throw TypeError(t)},O=(t,e,o,r)=>{for(var a,i=r>1?void 0:r?q(e,o):e,s=t.length-1;s>=0;s--)(a=t[s])&&(i=(r?a(e,o,i):a(i))||i);return r&&i&&j(e,o,i),i},L=(t,e,o)=>e.has(t)||V("Cannot "+o),U=(t,e,o)=>(L(t,e,"read from private field"),o?o.call(t):e.get(t)),X=(t,e,o)=>e.has(t)?V("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,o),Y=(t,e,o,r)=>(L(t,e,"write to private field"),e.set(t,o),o);const G={showfloorselector:"show-floor-selector",floorselectorposition:"floor-selector-position",floorselectordisabled:"floor-selector-disabled"};let J=class extends i{constructor(){super(...arguments),X(this,b,""),X(this,x,""),X(this,P,"es"),X(this,I,!1),X(this,k,[]),X(this,M,y),X(this,z,""),X(this,S,""),X(this,C,""),X(this,_,!1),X(this,W,"normal"),X(this,$,22.5),X(this,R,22.5),X(this,F,22.5),X(this,T,24),X(this,K,24),X(this,N,24),X(this,B,24),X(this,Z,"none"),X(this,H),X(this,A,!0),X(this,D,"top-left"),X(this,E,!1),this._swPath="/mvx-tiles-sw.js",this._swScope="/",this._swRegistration=null,this.sdkController=new s(this),this.analyticsController=n.getInstance(),this.currentFloorId=""}get apiKey(){return U(this,b)}set apiKey(t){Y(this,b,t)}get parentPlaceId(){return U(this,x)}set parentPlaceId(t){Y(this,x,t)}get locale(){return U(this,P)}set locale(t){Y(this,P,t)}get enable3D(){return U(this,I)}set enable3D(t){Y(this,I,t)}get scene3dPlaceIds(){return U(this,k)}set scene3dPlaceIds(t){Y(this,k,t)}get markerVariant(){return U(this,M)}set markerVariant(t){Y(this,M,t)}get placeId(){return U(this,z)}set placeId(t){Y(this,z,t)}get institutionId(){return U(this,S)}set institutionId(t){Y(this,S,t)}get institutionName(){return U(this,C)}set institutionName(t){Y(this,C,t)}get compactMode(){return U(this,_)}set compactMode(t){Y(this,_,t)}get zoomButtonSize(){return U(this,W)}set zoomButtonSize(t){Y(this,W,t)}get fitMaxZoom(){return U(this,$)}set fitMaxZoom(t){Y(this,$,t)}get singlePointMaxZoom(){return U(this,R)}set singlePointMaxZoom(t){Y(this,R,t)}get routeFitMaxZoom(){return U(this,F)}set routeFitMaxZoom(t){Y(this,F,t)}get cameraPaddingTop(){return U(this,T)}set cameraPaddingTop(t){Y(this,T,t)}get cameraPaddingRight(){return U(this,K)}set cameraPaddingRight(t){Y(this,K,t)}get cameraPaddingBottom(){return U(this,N)}set cameraPaddingBottom(t){Y(this,N,t)}get cameraPaddingLeft(){return U(this,B)}set cameraPaddingLeft(t){Y(this,B,t)}get overlayPaddingMode(){return U(this,Z)}set overlayPaddingMode(t){Y(this,Z,t)}get cacheConfig(){return U(this,H)}set cacheConfig(t){Y(this,H,t)}get showFloorSelector(){return U(this,A)}set showFloorSelector(t){Y(this,A,t)}get floorSelectorPosition(){return U(this,D)}set floorSelectorPosition(t){Y(this,D,t)}get floorSelectorDisabled(){return U(this,E)}set floorSelectorDisabled(t){Y(this,E,t)}static get observedAttributes(){return[...super.observedAttributes,...Object.keys(G)]}attributeChangedCallback(t,e,o){super.attributeChangedCallback(G[t]??t,e,o)}async _loadComponents(){await Promise.all([l(),d()])}mapVxRequestContext(){if("undefined"==typeof window)return{mvxProduct:"webcomponents",institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0};return{mvxProduct:"webcomponents",baseUrl:`${window.location.origin}${window.location.pathname}`.replace(/\/$/,"")||window.location.origin,parentPlace:this.parentPlaceId||void 0,institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0,fullUrl:window.location.href}}_tilePrefetchCredentials(){return{apiKey:this.apiKey||this.getAttribute("apiKey")||"",placeId:this.parentPlaceId||this.getAttribute("parentPlaceId")||""}}async _initTileServiceWorker(){if(this._swRegistration=await c(this._swPath,this._swScope),await h(),this._syncTilePrefetch(),!this._stopTileRefresh){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();this._stopTileRefresh=p(this._swRegistration,{apiKey:t,placeId:e})}}_syncTilePrefetch(){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();m(this._swRegistration,{apiKey:t,placeId:e})}async firstUpdated(){this._initTileServiceWorker();const t=this._loadComponents(),e=u();await Promise.all([t,e]),this.analyticsController.initialize("map-view-with-modal"),f.initialize("map-view-with-modal")}_mapReadyHandler(){this.sdkController.setMapReady(!0),this.analyticsController.trackEvent("map_ready",this.baseParams())}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.analyticsController.trackEvent("camera_initialized",this.baseParams())}_updateFloorHandler(t){const e=t.detail;if(this.currentFloorId===e)return;this.currentFloorId=e,this.sdkController.setFloor(e);const o=this.baseParams();o.floor_id=e,this.analyticsController.trackEvent("floor_change",o)}baseParams(){return{apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,placeId:this.placeId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth}}getFloorSelectorPositionStyles(){const t={"top-left":"top: 20px; left: 20px;","top-center":"top: 20px; left: 50%; transform: translateX(-50%);","top-right":"top: 20px; right: 20px;","center-left":"top: 50%; left: 20px; transform: translateY(-50%);","center-right":"top: 50%; right: 20px; transform: translateY(-50%);","bottom-left":"bottom: 20px; left: 20px;","bottom-center":"bottom: 20px; left: 50%; transform: translateX(-50%);","bottom-right":"bottom: 20px; right: 20px;"};return t[this.floorSelectorPosition]||t["top-left"]}updated(t){if(this.apiKey&&this.locale&&this.parentPlaceId&&(t.has("apiKey")||t.has("locale")||t.has("parentPlaceId")||t.has("institutionId")||t.has("institutionName"))){const e=this.mapVxRequestContext(),o=!!this.placeId&&t.has("placeId");this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{destinationId:o?void 0:this.placeId,mapvxRequestContext:e,cacheConfig:this.cacheConfig}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId,e,this.cacheConfig),(t.has("apiKey")||t.has("parentPlaceId"))&&this._syncTilePrefetch()}this.placeId&&t.has("placeId")&&this.sdkController.setOriginAndDestination("",this.placeId),t.has("floorSelectorPosition")&&this._compactFloorSelector()?.updatePlacement?.()}_compactFloorSelector(){return this.shadowRoot?.querySelector("compact-floor-selector")}render(){return v`
4
4
  <div class="route-container" style="height: 100%; width: 100%; position: relative;">
5
5
  <custom-map
6
6
  class="map-container"
@@ -88,4 +88,4 @@ import{i as t,n as e,h as o,j as r,k as a,l as i,o as s,A as n,p as l,q as d,r a
88
88
  }
89
89
  `],O([e({type:String})],J.prototype,"apiKey",1),O([e({type:String})],J.prototype,"parentPlaceId",1),O([e({type:String})],J.prototype,"locale",1),O([e({attribute:"enable-3d",converter:o})],J.prototype,"enable3D",1),O([e({attribute:"scene-3d-place-ids",converter:{fromAttribute:t=>t?t.split(",").map(t=>t.trim()).filter(Boolean):[]}})],J.prototype,"scene3dPlaceIds",1),O([e({type:String,attribute:"marker-variant"})],J.prototype,"markerVariant",1),O([e({type:String})],J.prototype,"placeId",1),O([e({type:String,attribute:"institution-id"})],J.prototype,"institutionId",1),O([e({type:String,attribute:"institution-name"})],J.prototype,"institutionName",1),O([e({type:Boolean,attribute:"compact-mode",reflect:!0})],J.prototype,"compactMode",1),O([e({type:String,attribute:"zoom-size",reflect:!0})],J.prototype,"zoomButtonSize",1),O([e({type:Number,attribute:"fit-max-zoom"})],J.prototype,"fitMaxZoom",1),O([e({type:Number,attribute:"single-point-max-zoom"})],J.prototype,"singlePointMaxZoom",1),O([e({type:Number,attribute:"route-fit-max-zoom"})],J.prototype,"routeFitMaxZoom",1),O([e({type:Number,attribute:"camera-padding-top"})],J.prototype,"cameraPaddingTop",1),O([e({type:Number,attribute:"camera-padding-right"})],J.prototype,"cameraPaddingRight",1),O([e({type:Number,attribute:"camera-padding-bottom"})],J.prototype,"cameraPaddingBottom",1),O([e({type:Number,attribute:"camera-padding-left"})],J.prototype,"cameraPaddingLeft",1),O([e({type:String,attribute:"overlay-padding-mode"})],J.prototype,"overlayPaddingMode",1),O([e({attribute:!1})],J.prototype,"cacheConfig",1),O([e({attribute:"show-floor-selector",converter:r})],J.prototype,"showFloorSelector",1),O([e({type:String,attribute:"floor-selector-position"})],J.prototype,"floorSelectorPosition",1),O([e({attribute:"floor-selector-disabled",converter:a})],J.prototype,"floorSelectorDisabled",1),J=O([w("map-view-with-modal")],J);export{J as MapViewWithModal};
90
90
 
91
- //# debugId=f81e02b8-b075-5b8d-9fa0-57ddcb96d15f
91
+ //# debugId=4a1caa8e-74be-5672-887a-f1b5b8f093fc
@@ -1,6 +1,6 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="47a41356-fce0-530e-a360-b2c2e2eee161")}catch(e){}}();
3
- import{i as t,n as e,l as i,o as a,A as s,p as n,F as o,G as r,H as d,r as h,w as l,s as p,t as c,u,v as m,x as g,y,z as I,h as _,B as v}from"./assets/enable-3d-attribute-btpETT7S.js";import{D as w}from"./assets/route-panel-variant-CJaz3hS7.js";class b{constructor(t,e){this.host=t,this.containerSelector=e,t.addController(this)}hostConnected(){this.observe()}hostUpdated(){this.observe()}hostDisconnected(){this.observer?.disconnect(),this.observer=void 0}observe(){if(this.observer||"undefined"==typeof ResizeObserver)return;const t=this.host.shadowRoot,e=t?.querySelector(this.containerSelector),i=t?.querySelector("floor-selector");e&&i&&(this.observer=new ResizeObserver(([t])=>{const i=t.borderBoxSize?.[0]?.inlineSize??t.target.getBoundingClientRect().width;i>0&&e.style.setProperty("--floor-selector-inline-size",`${i}px`)}),this.observer.observe(i))}}var k,R,f,P,C,M,E,x,A,W,H,S,z,$,L,D,B,F,K,N,V,G,T,Z,q,U=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=t=>{throw TypeError(t)},J=(t,e,i,a)=>{for(var s,n=a>1?void 0:a?j(e,i):e,o=t.length-1;o>=0;o--)(s=t[o])&&(n=(a?s(e,i,n):s(n))||n);return a&&n&&U(e,i,n),n},Q=(t,e,i)=>e.has(t)||O("Cannot "+i),X=(t,e,i)=>(Q(t,e,"read from private field"),i?i.call(t):e.get(t)),Y=(t,e,i)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),tt=(t,e,i,a)=>(Q(t,e,"write to private field"),e.set(t,i),i);let et=class extends i{constructor(){super(...arguments),Y(this,k,""),Y(this,R,""),Y(this,f,!0),Y(this,P,[]),Y(this,C,I),Y(this,M,"es"),Y(this,E,""),Y(this,x,""),Y(this,A,""),Y(this,W,22.5),Y(this,H,22.5),Y(this,S,21),Y(this,z,72),Y(this,$,72),Y(this,L,72),Y(this,D,24),Y(this,B,"left-panel-stack"),Y(this,F,!1),Y(this,K,!1),Y(this,N,!1),Y(this,V,!1),Y(this,G,!1),Y(this,T,!1),Y(this,Z,w),Y(this,q),this._destinationId="",this._hasInitialized=!1,this._swPath="/mvx-tiles-sw.js",this._swScope="/",this._swRegistration=null,this.sdkController=new a(this),this.analyticsController=s.getInstance(),this.floorSelectorSize=new b(this,".route-container")}get apiKey(){return X(this,k)}set apiKey(t){tt(this,k,t)}get parentPlaceId(){return X(this,R)}set parentPlaceId(t){tt(this,R,t)}get enable3D(){return X(this,f)}set enable3D(t){tt(this,f,t)}get scene3dPlaceIds(){return X(this,P)}set scene3dPlaceIds(t){tt(this,P,t)}get markerVariant(){return X(this,C)}set markerVariant(t){tt(this,C,t)}get locale(){return X(this,M)}set locale(t){tt(this,M,t)}get originId(){return X(this,E)}set originId(t){tt(this,E,t)}get institutionId(){return X(this,x)}set institutionId(t){tt(this,x,t)}get institutionName(){return X(this,A)}set institutionName(t){tt(this,A,t)}get fitMaxZoom(){return X(this,W)}set fitMaxZoom(t){tt(this,W,t)}get singlePointMaxZoom(){return X(this,H)}set singlePointMaxZoom(t){tt(this,H,t)}get routeFitMaxZoom(){return X(this,S)}set routeFitMaxZoom(t){tt(this,S,t)}get cameraPaddingTop(){return X(this,z)}set cameraPaddingTop(t){tt(this,z,t)}get cameraPaddingRight(){return X(this,$)}set cameraPaddingRight(t){tt(this,$,t)}get cameraPaddingBottom(){return X(this,L)}set cameraPaddingBottom(t){tt(this,L,t)}get cameraPaddingLeft(){return X(this,D)}set cameraPaddingLeft(t){tt(this,D,t)}get overlayPaddingMode(){return X(this,B)}set overlayPaddingMode(t){tt(this,B,t)}get hideBack(){return X(this,F)}set hideBack(t){tt(this,F,t)}get hideRepeatRoute(){return X(this,K)}set hideRepeatRoute(t){tt(this,K,t)}get hideRouteInputs(){return X(this,N)}set hideRouteInputs(t){tt(this,N,t)}get hideAccessibilitySwitch(){return X(this,V)}set hideAccessibilitySwitch(t){tt(this,V,t)}get hideGenerateRoute(){return X(this,G)}set hideGenerateRoute(t){tt(this,G,t)}get autoGenerateRoute(){return X(this,T)}set autoGenerateRoute(t){tt(this,T,t)}get _routesAutomatically(){return this.autoGenerateRoute||this.hideGenerateRoute}get panelVariant(){return X(this,Z)}set panelVariant(t){tt(this,Z,t)}get cacheConfig(){return X(this,q)}set cacheConfig(t){tt(this,q,t)}get destinationId(){return this._destinationId}set destinationId(t){const e=this._destinationId;this._destinationId=t,e===t&&t&&this.originId&&this._hasInitialized&&queueMicrotask(()=>{this._loadPair().then(()=>{this.sendEvent("destination_reloaded",{origin_id:this.originId,destination_id:t})})}),this.requestUpdate("destinationId",e)}_loadPair(){const t=this.sdkController.setOriginAndDestination(this.originId,this.destinationId);return this._pairLoad=t,t}_customMap(){return this.shadowRoot?.querySelector("custom-map")}async _loadComponents(){await Promise.all([n(),o(),r(),d()])}mapVxRequestContext(){if("undefined"==typeof window)return{mvxProduct:"webcomponents",institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0};return{mvxProduct:"webcomponents",baseUrl:`${window.location.origin}${window.location.pathname}`.replace(/\/$/,"")||window.location.origin,parentPlace:this.parentPlaceId||void 0,originId:this.originId||void 0,totemId:this.originId||void 0,institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0,fullUrl:window.location.href}}_tilePrefetchCredentials(){return{apiKey:this.apiKey||this.getAttribute("apiKey")||"",placeId:this.parentPlaceId||this.getAttribute("parentPlaceId")||""}}async _initTileServiceWorker(){if(this._swRegistration=await h(this._swPath,this._swScope),await l(),this._syncTilePrefetch(),!this._stopTileRefresh){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();this._stopTileRefresh=p(this._swRegistration,{apiKey:t,placeId:e})}}_syncTilePrefetch(){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();c(this._swRegistration,{apiKey:t,placeId:e})}async firstUpdated(){this._initTileServiceWorker();const t=this._loadComponents(),e=u();await Promise.all([t,e]),this.analyticsController.initialize("route-view-totems"),m.initialize("route-view-totems"),this.sendEvent("initial_render"),this._hasInitialized=!0}sendEvent(t,e={}){const i=this.sdkController.getDestination(),a={...e,apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,originId:this.originId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth,destinationName:i?.title,destinationId:i?.mapvxId,destinationClientId:i?.clientId??this.destinationId,parentId:this.parentPlaceId??i?.parentId,institutionId:i?.parentInstitutionId};this.analyticsController.trackEvent(t,a)}_mapReadyHandler(){this.sendEvent("map_ready"),this.sdkController.setMapReady(!0)}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.sendEvent("view_loaded")}willUpdate(t){super.willUpdate(t),(t.has("autoGenerateRoute")||t.has("hideGenerateRoute"))&&this.sdkController.setAutoGenerateRoute(this._routesAutomatically)}updated(t){const e=t.has("destinationId")||t.has("originId")&&!!this.destinationId,i=!!this.originId&&e;if(this.apiKey&&this.locale&&this.parentPlaceId&&(t.has("apiKey")||t.has("locale")||t.has("parentPlaceId")||t.has("originId")||t.has("institutionId")||t.has("institutionName"))){const e=t.get("parentPlaceId");t.has("parentPlaceId")&&e!==this.parentPlaceId&&this.sdkController.clearParentPlace();const a=this.mapVxRequestContext();this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{originId:i?void 0:this.originId,destinationId:i?void 0:this.destinationId,mapvxRequestContext:a,cacheConfig:this.cacheConfig}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId,a,this.cacheConfig),(t.has("apiKey")||t.has("parentPlaceId"))&&this._syncTilePrefetch()}i&&this._loadPair().finally(()=>{this.sendEvent("set_origin_and_destination",{origin_id:this.originId,destination_id:this.destinationId})}),(t.has("autoGenerateRoute")||t.has("hideGenerateRoute"))&&this._routesAutomatically&&this.sdkController.requestRouteIfIdle()}render(){return y`
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cbcc201e-dc3e-5f0c-9614-73b1f54adac5")}catch(e){}}();
3
+ import{i as t,n as e,l as i,o as a,A as s,p as n,F as o,G as r,H as d,r as h,w as l,s as p,t as c,u,v as m,x as g,y,z as I,h as _,B as v}from"./assets/enable-3d-attribute-BivvMWbS.js";import{D as w}from"./assets/route-panel-variant-CJaz3hS7.js";class b{constructor(t,e){this.host=t,this.containerSelector=e,t.addController(this)}hostConnected(){this.observe()}hostUpdated(){this.observe()}hostDisconnected(){this.observer?.disconnect(),this.observer=void 0}observe(){if(this.observer||"undefined"==typeof ResizeObserver)return;const t=this.host.shadowRoot,e=t?.querySelector(this.containerSelector),i=t?.querySelector("floor-selector");e&&i&&(this.observer=new ResizeObserver(([t])=>{const i=t.borderBoxSize?.[0]?.inlineSize??t.target.getBoundingClientRect().width;i>0&&e.style.setProperty("--floor-selector-inline-size",`${i}px`)}),this.observer.observe(i))}}var k,R,f,P,C,M,E,x,A,W,H,S,z,$,L,D,B,F,K,N,V,G,T,Z,q,U=Object.defineProperty,j=Object.getOwnPropertyDescriptor,O=t=>{throw TypeError(t)},J=(t,e,i,a)=>{for(var s,n=a>1?void 0:a?j(e,i):e,o=t.length-1;o>=0;o--)(s=t[o])&&(n=(a?s(e,i,n):s(n))||n);return a&&n&&U(e,i,n),n},Q=(t,e,i)=>e.has(t)||O("Cannot "+i),X=(t,e,i)=>(Q(t,e,"read from private field"),i?i.call(t):e.get(t)),Y=(t,e,i)=>e.has(t)?O("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),tt=(t,e,i,a)=>(Q(t,e,"write to private field"),e.set(t,i),i);let et=class extends i{constructor(){super(...arguments),Y(this,k,""),Y(this,R,""),Y(this,f,!0),Y(this,P,[]),Y(this,C,I),Y(this,M,"es"),Y(this,E,""),Y(this,x,""),Y(this,A,""),Y(this,W,22.5),Y(this,H,22.5),Y(this,S,21),Y(this,z,72),Y(this,$,72),Y(this,L,72),Y(this,D,24),Y(this,B,"left-panel-stack"),Y(this,F,!1),Y(this,K,!1),Y(this,N,!1),Y(this,V,!1),Y(this,G,!1),Y(this,T,!1),Y(this,Z,w),Y(this,q),this._destinationId="",this._hasInitialized=!1,this._swPath="/mvx-tiles-sw.js",this._swScope="/",this._swRegistration=null,this.sdkController=new a(this),this.analyticsController=s.getInstance(),this.floorSelectorSize=new b(this,".route-container")}get apiKey(){return X(this,k)}set apiKey(t){tt(this,k,t)}get parentPlaceId(){return X(this,R)}set parentPlaceId(t){tt(this,R,t)}get enable3D(){return X(this,f)}set enable3D(t){tt(this,f,t)}get scene3dPlaceIds(){return X(this,P)}set scene3dPlaceIds(t){tt(this,P,t)}get markerVariant(){return X(this,C)}set markerVariant(t){tt(this,C,t)}get locale(){return X(this,M)}set locale(t){tt(this,M,t)}get originId(){return X(this,E)}set originId(t){tt(this,E,t)}get institutionId(){return X(this,x)}set institutionId(t){tt(this,x,t)}get institutionName(){return X(this,A)}set institutionName(t){tt(this,A,t)}get fitMaxZoom(){return X(this,W)}set fitMaxZoom(t){tt(this,W,t)}get singlePointMaxZoom(){return X(this,H)}set singlePointMaxZoom(t){tt(this,H,t)}get routeFitMaxZoom(){return X(this,S)}set routeFitMaxZoom(t){tt(this,S,t)}get cameraPaddingTop(){return X(this,z)}set cameraPaddingTop(t){tt(this,z,t)}get cameraPaddingRight(){return X(this,$)}set cameraPaddingRight(t){tt(this,$,t)}get cameraPaddingBottom(){return X(this,L)}set cameraPaddingBottom(t){tt(this,L,t)}get cameraPaddingLeft(){return X(this,D)}set cameraPaddingLeft(t){tt(this,D,t)}get overlayPaddingMode(){return X(this,B)}set overlayPaddingMode(t){tt(this,B,t)}get hideBack(){return X(this,F)}set hideBack(t){tt(this,F,t)}get hideRepeatRoute(){return X(this,K)}set hideRepeatRoute(t){tt(this,K,t)}get hideRouteInputs(){return X(this,N)}set hideRouteInputs(t){tt(this,N,t)}get hideAccessibilitySwitch(){return X(this,V)}set hideAccessibilitySwitch(t){tt(this,V,t)}get hideGenerateRoute(){return X(this,G)}set hideGenerateRoute(t){tt(this,G,t)}get autoGenerateRoute(){return X(this,T)}set autoGenerateRoute(t){tt(this,T,t)}get _routesAutomatically(){return this.autoGenerateRoute||this.hideGenerateRoute}get panelVariant(){return X(this,Z)}set panelVariant(t){tt(this,Z,t)}get cacheConfig(){return X(this,q)}set cacheConfig(t){tt(this,q,t)}get destinationId(){return this._destinationId}set destinationId(t){const e=this._destinationId;this._destinationId=t,e===t&&t&&this.originId&&this._hasInitialized&&queueMicrotask(()=>{this._loadPair().then(()=>{this.sendEvent("destination_reloaded",{origin_id:this.originId,destination_id:t})})}),this.requestUpdate("destinationId",e)}_loadPair(){const t=this.sdkController.setOriginAndDestination(this.originId,this.destinationId);return this._pairLoad=t,t}_customMap(){return this.shadowRoot?.querySelector("custom-map")}async _loadComponents(){await Promise.all([n(),o(),r(),d()])}mapVxRequestContext(){if("undefined"==typeof window)return{mvxProduct:"webcomponents",institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0};return{mvxProduct:"webcomponents",baseUrl:`${window.location.origin}${window.location.pathname}`.replace(/\/$/,"")||window.location.origin,parentPlace:this.parentPlaceId||void 0,originId:this.originId||void 0,totemId:this.originId||void 0,institutionId:this.institutionId||void 0,institutionName:this.institutionName||void 0,fullUrl:window.location.href}}_tilePrefetchCredentials(){return{apiKey:this.apiKey||this.getAttribute("apiKey")||"",placeId:this.parentPlaceId||this.getAttribute("parentPlaceId")||""}}async _initTileServiceWorker(){if(this._swRegistration=await h(this._swPath,this._swScope),await l(),this._syncTilePrefetch(),!this._stopTileRefresh){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();this._stopTileRefresh=p(this._swRegistration,{apiKey:t,placeId:e})}}_syncTilePrefetch(){const{apiKey:t,placeId:e}=this._tilePrefetchCredentials();c(this._swRegistration,{apiKey:t,placeId:e})}async firstUpdated(){this._initTileServiceWorker();const t=this._loadComponents(),e=u();await Promise.all([t,e]),this.analyticsController.initialize("route-view-totems"),m.initialize("route-view-totems"),this.sendEvent("initial_render"),this._hasInitialized=!0}sendEvent(t,e={}){const i=this.sdkController.getDestination(),a={...e,apiKey:this.apiKey,locale:this.locale,parentPlaceId:this.parentPlaceId,originId:this.originId,host:window.location.host,pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,referrer:document.referrer,userAgent:navigator.userAgent,screenWidth:window.innerWidth,destinationName:i?.title,destinationId:i?.mapvxId,destinationClientId:i?.clientId??this.destinationId,parentId:this.parentPlaceId??i?.parentId,institutionId:i?.parentInstitutionId};this.analyticsController.trackEvent(t,a)}_mapReadyHandler(){this.sendEvent("map_ready"),this.sdkController.setMapReady(!0)}_cameraInitializedHandler(){this.sdkController.setCameraInitialized(!0),this.sendEvent("view_loaded")}willUpdate(t){super.willUpdate(t),(t.has("autoGenerateRoute")||t.has("hideGenerateRoute"))&&this.sdkController.setAutoGenerateRoute(this._routesAutomatically)}updated(t){const e=t.has("destinationId")||t.has("originId")&&!!this.destinationId,i=!!this.originId&&e;if(this.apiKey&&this.locale&&this.parentPlaceId&&(t.has("apiKey")||t.has("locale")||t.has("parentPlaceId")||t.has("originId")||t.has("institutionId")||t.has("institutionName"))){const e=t.get("parentPlaceId");t.has("parentPlaceId")&&e!==this.parentPlaceId&&this.sdkController.clearParentPlace();const a=this.mapVxRequestContext();this.sdkController.prewarm(this.apiKey,this.locale,this.parentPlaceId,{originId:i?void 0:this.originId,destinationId:i?void 0:this.destinationId,mapvxRequestContext:a,cacheConfig:this.cacheConfig}),this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId,a,this.cacheConfig),(t.has("apiKey")||t.has("parentPlaceId"))&&this._syncTilePrefetch()}i&&this._loadPair().finally(()=>{this.sendEvent("set_origin_and_destination",{origin_id:this.originId,destination_id:this.destinationId})}),(t.has("autoGenerateRoute")||t.has("hideGenerateRoute"))&&this._routesAutomatically&&this.sdkController.requestRouteIfIdle()}render(){return y`
4
4
  <div class="route-container" data-testid="route-container">
5
5
  <custom-map
6
6
  class="map-container"
@@ -52,4 +52,4 @@ import{i as t,n as e,l as i,o as a,A as s,p as n,F as o,G as r,H as d,r as h,w a
52
52
  }
53
53
  `],J([e({type:String})],et.prototype,"apiKey",1),J([e({type:String})],et.prototype,"parentPlaceId",1),J([e({attribute:"enable-3d",converter:_})],et.prototype,"enable3D",1),J([e({attribute:"scene-3d-place-ids",converter:{fromAttribute:t=>t?t.split(",").map(t=>t.trim()).filter(Boolean):[]}})],et.prototype,"scene3dPlaceIds",1),J([e({type:String,attribute:"marker-variant"})],et.prototype,"markerVariant",1),J([e({type:String})],et.prototype,"locale",1),J([e({type:String})],et.prototype,"originId",1),J([e({type:String,attribute:"institution-id"})],et.prototype,"institutionId",1),J([e({type:String,attribute:"institution-name"})],et.prototype,"institutionName",1),J([e({type:Number,attribute:"fit-max-zoom"})],et.prototype,"fitMaxZoom",1),J([e({type:Number,attribute:"single-point-max-zoom"})],et.prototype,"singlePointMaxZoom",1),J([e({type:Number,attribute:"route-fit-max-zoom"})],et.prototype,"routeFitMaxZoom",1),J([e({type:Number,attribute:"camera-padding-top"})],et.prototype,"cameraPaddingTop",1),J([e({type:Number,attribute:"camera-padding-right"})],et.prototype,"cameraPaddingRight",1),J([e({type:Number,attribute:"camera-padding-bottom"})],et.prototype,"cameraPaddingBottom",1),J([e({type:Number,attribute:"camera-padding-left"})],et.prototype,"cameraPaddingLeft",1),J([e({type:String,attribute:"overlay-padding-mode"})],et.prototype,"overlayPaddingMode",1),J([e({type:Boolean,attribute:"hide-back"})],et.prototype,"hideBack",1),J([e({type:Boolean,attribute:"hide-repeat-route"})],et.prototype,"hideRepeatRoute",1),J([e({type:Boolean,attribute:"hide-route-inputs"})],et.prototype,"hideRouteInputs",1),J([e({type:Boolean,attribute:"hide-accessibility-switch"})],et.prototype,"hideAccessibilitySwitch",1),J([e({type:Boolean,attribute:"hide-generate-route"})],et.prototype,"hideGenerateRoute",1),J([e({type:Boolean,attribute:"auto-generate-route"})],et.prototype,"autoGenerateRoute",1),J([e({type:String,attribute:"panel-variant"})],et.prototype,"panelVariant",1),J([e({attribute:!1})],et.prototype,"cacheConfig",1),J([e({type:String,reflect:!0})],et.prototype,"destinationId",1),et=J([v("route-view-totems")],et);export{et as RouteViewTotems};
54
54
 
55
- //# debugId=47a41356-fce0-530e-a360-b2c2e2eee161
55
+ //# debugId=cbcc201e-dc3e-5f0c-9614-73b1f54adac5