@mapvx/web-components 0.0.25 → 0.0.26

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 (34) hide show
  1. package/dist/cjs/{base-floor-selector-C1G5K9Er.cjs → base-floor-selector-Bm8sTYdJ.cjs} +2 -2
  2. package/dist/cjs/{class-map-BQQ7MXll.cjs → class-map-BYn-9uvy.cjs} +2 -2
  3. package/dist/cjs/{compact-floor-selector-DsMWGOFg.cjs → compact-floor-selector-DhhESOe0.cjs} +2 -2
  4. package/dist/cjs/{consume-DRj4CYCX.cjs → consume-BE7YStBl.cjs} +2 -2
  5. package/dist/cjs/{custom-map-DDdkf9Am.cjs → custom-map-03ak_Vof.cjs} +2 -2
  6. package/dist/cjs/{floor-selector-CDmDuSiD.cjs → floor-selector-C27g9abV.cjs} +2 -2
  7. package/dist/cjs/{lazy-load-Dn0YjnPb.cjs → lazy-load-CES1Ya_D.cjs} +2 -2
  8. package/dist/cjs/map-view-with-modal.cjs +1 -1
  9. package/dist/cjs/{qr-modal-DViSVtZI.cjs → qr-modal-BQG75u-x.cjs} +2 -2
  10. package/dist/cjs/{route-options-CyEO6vv_.cjs → route-options-C09f-35r.cjs} +2 -2
  11. package/dist/cjs/route-view-totems.cjs +1 -1
  12. package/dist/es/assets/{compact-floor-selector-CoQYAD6z.js → compact-floor-selector-D-822e0L.js} +3 -3
  13. package/dist/es/assets/{components-BQGHQSdV.js → components-B6oTyj0x.js} +4 -4
  14. package/dist/es/assets/{map-view-with-modal-SkmapEWH.js → map-view-with-modal-DfkRlpPp.js} +3 -3
  15. package/dist/es/assets/{route-view-totems-eQTxU-id.js → route-view-totems-BWtwjegR.js} +7 -7
  16. package/dist/es/assets/{utils-CWtvoL4a.js → utils-EeRdvb4i.js} +3 -3
  17. package/dist/es/index.js +2 -2
  18. package/dist/es/route-view-totems.js +2 -2
  19. package/dist/iife/route-view-totems.js +1 -1
  20. package/package.json +2 -2
  21. package/dist/components/custom-map.d.ts +0 -13
  22. package/dist/components/custom-map.js +0 -64
  23. package/dist/components/floor-selector.d.ts +0 -6
  24. package/dist/components/floor-selector.js +0 -40
  25. package/dist/components/qr-modal.d.ts +0 -7
  26. package/dist/components/qr-modal.js +0 -69
  27. package/dist/components/route-options.d.ts +0 -6
  28. package/dist/components/route-options.js +0 -51
  29. package/dist/components/zoom-controls.d.ts +0 -6
  30. package/dist/components/zoom-controls.js +0 -40
  31. package/dist/route-view-totems.d.ts +0 -16
  32. package/dist/route-view-totems.js +0 -58
  33. package/dist/utils/styles.d.ts +0 -2
  34. package/dist/utils/styles.js +0 -5
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-load-Dn0YjnPb.cjs");var e,t,r,a,i,l,s,n,c,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=o=>{throw TypeError(o)},m=(o,e,t,r)=>{for(var a,i=r>1?void 0:r?d(e,t):e,l=o.length-1;l>=0;l--)(a=o[l])&&(i=(r?a(e,t,i):a(i))||i);return r&&i&&p(e,t,i),i},v=(o,e,t)=>e.has(o)||h("Cannot "+t),f=(o,e,t)=>(v(o,e,"read from private field"),t?t.call(o):e.get(o)),w=(o,e,t)=>e.has(o)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),x=(o,e,t,r)=>(v(o,e,"write to private field"),e.set(o,t),t);exports.MapViewWithModal=class extends o.i{constructor(){super(...arguments),w(this,e,""),w(this,t,""),w(this,r,"es"),w(this,a,""),w(this,i,!1),w(this,l,"normal"),w(this,s,!0),w(this,n,"top-left"),w(this,c,!1),this.sdkController=new o.SDKController(this),this.analyticsController=o.AnalyticsController.getInstance(),this.currentFloorId=""}get apiKey(){return f(this,e)}set apiKey(o){x(this,e,o)}get parentPlaceId(){return f(this,t)}set parentPlaceId(o){x(this,t,o)}get locale(){return f(this,r)}set locale(o){x(this,r,o)}get placeId(){return f(this,a)}set placeId(o){x(this,a,o)}get compactMode(){return f(this,i)}set compactMode(o){x(this,i,o)}get zoomButtonSize(){return f(this,l)}set zoomButtonSize(o){x(this,l,o)}get showFloorSelector(){return f(this,s)}set showFloorSelector(o){x(this,s,o)}get floorSelectorPosition(){return f(this,n)}set floorSelectorPosition(o){x(this,n,o)}get floorSelectorDisabled(){return f(this,c)}set floorSelectorDisabled(o){x(this,c,o)}async _loadComponents(){await Promise.all([o.loadCustomMap(),o.loadCompactFloorSelector()])}async firstUpdated(){await this._loadComponents(),this.analyticsController.initialize("map-view-with-modal"),o.RollbarController.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(o){const e=o.detail;if(this.currentFloorId===e)return;this.currentFloorId=e,this.sdkController.setFloor(e);const t=this.baseParams();t.floor_id=e,this.analyticsController.trackEvent("floor_change",t)}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 o={"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 o[this.floorSelectorPosition]||o["top-left"]}updated(o){this.apiKey&&this.locale&&this.parentPlaceId&&(o.has("apiKey")||o.has("locale")||o.has("parentPlaceId"))&&this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId),this.placeId&&o.has("placeId")&&this.sdkController.setOriginAndDestination("",this.placeId)}render(){return o.x`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lazy-load-CES1Ya_D.cjs");var e,t,r,a,i,l,s,n,c,p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,h=o=>{throw TypeError(o)},m=(o,e,t,r)=>{for(var a,i=r>1?void 0:r?d(e,t):e,l=o.length-1;l>=0;l--)(a=o[l])&&(i=(r?a(e,t,i):a(i))||i);return r&&i&&p(e,t,i),i},v=(o,e,t)=>e.has(o)||h("Cannot "+t),f=(o,e,t)=>(v(o,e,"read from private field"),t?t.call(o):e.get(o)),w=(o,e,t)=>e.has(o)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,t),x=(o,e,t,r)=>(v(o,e,"write to private field"),e.set(o,t),t);exports.MapViewWithModal=class extends o.i{constructor(){super(...arguments),w(this,e,""),w(this,t,""),w(this,r,"es"),w(this,a,""),w(this,i,!1),w(this,l,"normal"),w(this,s,!0),w(this,n,"top-left"),w(this,c,!1),this.sdkController=new o.SDKController(this),this.analyticsController=o.AnalyticsController.getInstance(),this.currentFloorId=""}get apiKey(){return f(this,e)}set apiKey(o){x(this,e,o)}get parentPlaceId(){return f(this,t)}set parentPlaceId(o){x(this,t,o)}get locale(){return f(this,r)}set locale(o){x(this,r,o)}get placeId(){return f(this,a)}set placeId(o){x(this,a,o)}get compactMode(){return f(this,i)}set compactMode(o){x(this,i,o)}get zoomButtonSize(){return f(this,l)}set zoomButtonSize(o){x(this,l,o)}get showFloorSelector(){return f(this,s)}set showFloorSelector(o){x(this,s,o)}get floorSelectorPosition(){return f(this,n)}set floorSelectorPosition(o){x(this,n,o)}get floorSelectorDisabled(){return f(this,c)}set floorSelectorDisabled(o){x(this,c,o)}async _loadComponents(){await Promise.all([o.loadCustomMap(),o.loadCompactFloorSelector()])}async firstUpdated(){await this._loadComponents(),this.analyticsController.initialize("map-view-with-modal"),o.RollbarController.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(o){const e=o.detail;if(this.currentFloorId===e)return;this.currentFloorId=e,this.sdkController.setFloor(e);const t=this.baseParams();t.floor_id=e,this.analyticsController.trackEvent("floor_change",t)}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 o={"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 o[this.floorSelectorPosition]||o["top-left"]}updated(o){this.apiKey&&this.locale&&this.parentPlaceId&&(o.has("apiKey")||o.has("locale")||o.has("parentPlaceId"))&&this.sdkController.initialize(this.apiKey,this.locale,this.parentPlaceId),this.placeId&&o.has("placeId")&&this.sdkController.setOriginAndDestination("",this.placeId)}render(){return o.x`
2
2
  <div class="route-container" style="height: 100%; width: 100%; position: relative;">
3
3
  <custom-map
4
4
  class="map-container"
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./consume-DRj4CYCX.cjs"),e=require("./lazy-load-Dn0YjnPb.cjs"),n=require("./class-map-BQQ7MXll.cjs");var r,o,i={};function s(){return o?r:(o=1,r=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var a,u={},c={};function l(){if(a)return c;let t;a=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 c.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},c.getSymbolTotalCodewords=function(t){return e[t]},c.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},c.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},c.isKanjiModeEnabled=function(){return void 0!==t},c.toSJIS=function(e){return t(e)},c}var f,d,h,g,p,w={};function m(){return f||(f=1,function(t){t.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(r){return n}}}(w)),w}var y,E={};var v,C={};var A,B={};var M,I={};function b(){if(M)return I;M=1;const t=m(),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 I.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}},I.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}},I}var P,T,N,R,x={},L={};function k(){return T||(T=1,function(t){const e=function(){if(P)return L;P=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]}(),L.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},L.exp=function(e){return t[e]},L.mul=function(n,r){return 0===n||0===r?0:t[e[n]+e[r]]},L}();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}}(x)),x}var U,S={},D={},F={};function z(){return U||(U=1,F.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),F}var H,q,_,j={};function J(){if(H)return j;H=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]))+";j.KANJI=new RegExp(e,"g"),j.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),j.BYTE=new RegExp(n,"g"),j.NUMERIC=new RegExp(t,"g"),j.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),o=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return j.testKanji=function(t){return r.test(t)},j.testNumeric=function(t){return o.test(t)},j.testAlphanumeric=function(t){return i.test(t)},j}function K(){return q||(q=1,function(t){const e=z(),n=J();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(r){return n}}}(D)),D}function Y(){return _||(_=1,function(t){const e=l(),n=b(),r=m(),o=K(),i=z(),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}}(S)),S}var Q,V={};var O,$,Z,X,W,G,tt,et,nt={};var rt,ot,it,st={exports:{}};function at(){return rt||(rt=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}(st)),st.exports}function ut(){return ot||(ot=1,function(t){const e=K(),n=function(){if($)return O;$=1;const t=K();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))},O=e}(),r=function(){if(X)return Z;X=1;const t=K(),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)},Z=n}(),o=function(){if(G)return W;G=1;const t=K();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)},W=e}(),i=function(){if(et)return tt;et=1;const t=K(),e=l();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)}},tt=n}(),s=J(),a=l(),u=at();function c(t){return unescape(encodeURIComponent(t)).length}function f(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 d(t){const n=f(s.NUMERIC,e.NUMERIC,t),r=f(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;a.isKanjiModeEnabled()?(o=f(s.BYTE,e.BYTE,t),i=f(s.KANJI,e.KANJI,t)):(o=f(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 h(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 g(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(g(e,null)):e.data&&t.push(g(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}(d(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]=h(r[s].lastCount+c.length,c.mode)-h(r[s].lastCount,c.mode),r[s].lastCount+=c.length):(r[s]&&(r[s].lastCount=c.length),o[s][l]=h(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(d(e,a.isKanjiModeEnabled()))}}(nt)),nt}function ct(){if(it)return u;it=1;const t=l(),e=m(),n=function(){if(h)return d;function t(){this.buffer=[],this.length=0}return h=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++}},d=t}(),r=function(){if(p)return g;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 p=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]},g=t}(),o=(y||(y=1,function(t){const e=l().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}}(E)),E),i=function(){if(v)return C;v=1;const t=l().getSymbolSize;return C.getPositions=function(e){const n=t(e);return[[0,0],[n-7,0],[0,n-7]]},C}(),s=(A||(A=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}}(B)),B),a=b(),c=function(){if(R)return N;R=1;const t=k();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},N=e}(),f=Y(),w=function(){if(Q)return V;Q=1;const t=l(),e=t.getBCHDigit(1335);return V.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)},V}(),M=K(),I=ut();function P(t,e,n){const r=t.size,o=w.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 T(e,r,o){const i=new n;o.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),M.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 u=(s-i.getLengthInBits())/8;for(let t=0;t<u;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,u=a.getBlocksCount(n,r),l=o%u,f=u-l,d=Math.floor(o/u),h=Math.floor(s/u),g=h+1,p=d-h,w=new c(p);let m=0;const y=new Array(u),E=new Array(u);let v=0;const C=new Uint8Array(e.buffer);for(let t=0;t<u;t++){const e=t<f?h:g;y[t]=C.slice(m,m+e),E[t]=w.encode(y[t]),m+=e,v=Math.max(v,e)}const A=new Uint8Array(o);let B,M,I=0;for(B=0;B<v;B++)for(M=0;M<u;M++)B<y[M].length&&(A[I++]=y[M][B]);for(B=0;B<p;B++)for(M=0;M<u;M++)A[I++]=E[M][B];return A}(i,e,r)}function x(e,n,a,u){let c;if(Array.isArray(e))c=I.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=n;if(!t){const n=I.rawSplit(e);t=f.getBestVersionForData(n,a)}c=I.fromString(e,t||40)}}const l=f.getBestVersionForData(c,a);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else n=l;const d=T(n,a,c),h=t.getSymbolSize(n),g=new r(h);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))}}(g,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)}}(g),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)}}(g,n),P(g,a,0),n>=7&&function(t,e){const n=t.size,r=f.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)}(g,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}}}(g,d),isNaN(u)&&(u=s.getBestMask(g,P.bind(null,g,a))),s.applyMask(u,g),P(g,a,u),{modules:g,version:n,errorCorrectionLevel:a,maskPattern:u,segments:c}}return u.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=f.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),x(n,o,a,i)},u}var lt,ft,dt={},ht={};function gt(){return lt||(lt=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}}}(ht)),ht}function pt(){return ft||(ft=1,function(t){const e=gt();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(t){throw new Error("You need to specify a canvas element")}}()),o=e.getOptions(o);const s=e.getImageWidth(t.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return e.qrToImageData(u.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"}(a,i,s),a.putImageData(u,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)}}(dt)),dt}var wt,mt,yt={};function Et(){if(wt)return yt;wt=1;const t=gt();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 yt.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},yt}var vt=function(){if(mt)return i;mt=1;const t=s(),e=ct(),n=pt(),r=Et();function o(n,r,o,i,s){const a=[].slice.call(arguments,1),u=a.length,c="function"==typeof a[u-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(o=r,r=i=void 0):2!==u||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(u<2)throw new Error("Too few arguments provided");2===u?(s=o,o=r,r=i=void 0):3===u&&(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(l){s(l)}}return i.create=e.create,i.toCanvas=o.bind(null,n.render),i.toDataURL=o.bind(null,n.renderToDataURL),i.toString=o.bind(null,(function(t,e,n){return r.render(t,n)})),i}();var Ct=Object.defineProperty,At=Object.getOwnPropertyDescriptor,Bt=(t,e,n,r)=>{for(var o,i=r>1?void 0:r?At(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&&Ct(e,n,i),i};exports.QRModal=class extends e.i{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:n}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&n){this.qrLoaded=!0;const{baseUrl:r}=n,o=`${r}/${t}?destinationId=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,i={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};vt.toDataURL(o,i).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return e.x`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./consume-BE7YStBl.cjs"),e=require("./lazy-load-CES1Ya_D.cjs"),n=require("./class-map-BYn-9uvy.cjs");var r,o,i={};function s(){return o?r:(o=1,r=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var a,u={},c={};function l(){if(a)return c;let t;a=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 c.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},c.getSymbolTotalCodewords=function(t){return e[t]},c.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},c.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},c.isKanjiModeEnabled=function(){return void 0!==t},c.toSJIS=function(e){return t(e)},c}var f,d,h,g,p,w={};function m(){return f||(f=1,function(t){t.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(r){return n}}}(w)),w}var y,E={};var v,C={};var A,B={};var M,I={};function b(){if(M)return I;M=1;const t=m(),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 I.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}},I.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}},I}var P,T,N,R,x={},L={};function k(){return T||(T=1,function(t){const e=function(){if(P)return L;P=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]}(),L.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},L.exp=function(e){return t[e]},L.mul=function(n,r){return 0===n||0===r?0:t[e[n]+e[r]]},L}();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}}(x)),x}var U,S={},D={},F={};function z(){return U||(U=1,F.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),F}var H,q,_,j={};function J(){if(H)return j;H=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]))+";j.KANJI=new RegExp(e,"g"),j.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),j.BYTE=new RegExp(n,"g"),j.NUMERIC=new RegExp(t,"g"),j.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),o=new RegExp("^"+t+"$"),i=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return j.testKanji=function(t){return r.test(t)},j.testNumeric=function(t){return o.test(t)},j.testAlphanumeric=function(t){return i.test(t)},j}function K(){return q||(q=1,function(t){const e=z(),n=J();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(r){return n}}}(D)),D}function Y(){return _||(_=1,function(t){const e=l(),n=b(),r=m(),o=K(),i=z(),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}}(S)),S}var Q,V={};var O,$,Z,X,W,G,tt,et,nt={};var rt,ot,it,st={exports:{}};function at(){return rt||(rt=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}(st)),st.exports}function ut(){return ot||(ot=1,function(t){const e=K(),n=function(){if($)return O;$=1;const t=K();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))},O=e}(),r=function(){if(X)return Z;X=1;const t=K(),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)},Z=n}(),o=function(){if(G)return W;G=1;const t=K();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)},W=e}(),i=function(){if(et)return tt;et=1;const t=K(),e=l();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)}},tt=n}(),s=J(),a=l(),u=at();function c(t){return unescape(encodeURIComponent(t)).length}function f(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 d(t){const n=f(s.NUMERIC,e.NUMERIC,t),r=f(s.ALPHANUMERIC,e.ALPHANUMERIC,t);let o,i;a.isKanjiModeEnabled()?(o=f(s.BYTE,e.BYTE,t),i=f(s.KANJI,e.KANJI,t)):(o=f(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 h(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 g(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(g(e,null)):e.data&&t.push(g(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}(d(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]=h(r[s].lastCount+c.length,c.mode)-h(r[s].lastCount,c.mode),r[s].lastCount+=c.length):(r[s]&&(r[s].lastCount=c.length),o[s][l]=h(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(d(e,a.isKanjiModeEnabled()))}}(nt)),nt}function ct(){if(it)return u;it=1;const t=l(),e=m(),n=function(){if(h)return d;function t(){this.buffer=[],this.length=0}return h=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++}},d=t}(),r=function(){if(p)return g;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 p=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]},g=t}(),o=(y||(y=1,function(t){const e=l().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}}(E)),E),i=function(){if(v)return C;v=1;const t=l().getSymbolSize;return C.getPositions=function(e){const n=t(e);return[[0,0],[n-7,0],[0,n-7]]},C}(),s=(A||(A=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}}(B)),B),a=b(),c=function(){if(R)return N;R=1;const t=k();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},N=e}(),f=Y(),w=function(){if(Q)return V;Q=1;const t=l(),e=t.getBCHDigit(1335);return V.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)},V}(),M=K(),I=ut();function P(t,e,n){const r=t.size,o=w.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 T(e,r,o){const i=new n;o.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),M.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 u=(s-i.getLengthInBits())/8;for(let t=0;t<u;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,u=a.getBlocksCount(n,r),l=o%u,f=u-l,d=Math.floor(o/u),h=Math.floor(s/u),g=h+1,p=d-h,w=new c(p);let m=0;const y=new Array(u),E=new Array(u);let v=0;const C=new Uint8Array(e.buffer);for(let t=0;t<u;t++){const e=t<f?h:g;y[t]=C.slice(m,m+e),E[t]=w.encode(y[t]),m+=e,v=Math.max(v,e)}const A=new Uint8Array(o);let B,M,I=0;for(B=0;B<v;B++)for(M=0;M<u;M++)B<y[M].length&&(A[I++]=y[M][B]);for(B=0;B<p;B++)for(M=0;M<u;M++)A[I++]=E[M][B];return A}(i,e,r)}function x(e,n,a,u){let c;if(Array.isArray(e))c=I.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=n;if(!t){const n=I.rawSplit(e);t=f.getBestVersionForData(n,a)}c=I.fromString(e,t||40)}}const l=f.getBestVersionForData(c,a);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else n=l;const d=T(n,a,c),h=t.getSymbolSize(n),g=new r(h);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))}}(g,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)}}(g),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)}}(g,n),P(g,a,0),n>=7&&function(t,e){const n=t.size,r=f.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)}(g,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}}}(g,d),isNaN(u)&&(u=s.getBestMask(g,P.bind(null,g,a))),s.applyMask(u,g),P(g,a,u),{modules:g,version:n,errorCorrectionLevel:a,maskPattern:u,segments:c}}return u.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=f.from(r.version),i=s.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),x(n,o,a,i)},u}var lt,ft,dt={},ht={};function gt(){return lt||(lt=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}}}(ht)),ht}function pt(){return ft||(ft=1,function(t){const e=gt();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(t){throw new Error("You need to specify a canvas element")}}()),o=e.getOptions(o);const s=e.getImageWidth(t.modules.size,o),a=i.getContext("2d"),u=a.createImageData(s,s);return e.qrToImageData(u.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"}(a,i,s),a.putImageData(u,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)}}(dt)),dt}var wt,mt,yt={};function Et(){if(wt)return yt;wt=1;const t=gt();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 yt.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},yt}var vt=function(){if(mt)return i;mt=1;const t=s(),e=ct(),n=pt(),r=Et();function o(n,r,o,i,s){const a=[].slice.call(arguments,1),u=a.length,c="function"==typeof a[u-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(u<1)throw new Error("Too few arguments provided");return 1===u?(o=r,r=i=void 0):2!==u||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(u<2)throw new Error("Too few arguments provided");2===u?(s=o,o=r,r=i=void 0):3===u&&(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(l){s(l)}}return i.create=e.create,i.toCanvas=o.bind(null,n.render),i.toDataURL=o.bind(null,n.renderToDataURL),i.toString=o.bind(null,(function(t,e,n){return r.render(t,n)})),i}();var Ct=Object.defineProperty,At=Object.getOwnPropertyDescriptor,Bt=(t,e,n,r)=>{for(var o,i=r>1?void 0:r?At(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&&Ct(e,n,i),i};exports.QRModal=class extends e.i{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:n}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&n){this.qrLoaded=!0;const{baseUrl:r}=n,o=`${r}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,i={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};vt.toDataURL(o,i).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return e.x`
2
2
  <div class=${n.e({card:!0,hidden:!t})}>
3
3
  <div class="modal-content">
4
4
  <div class="pin-container">
@@ -13,4 +13,4 @@
13
13
  </div>
14
14
  </div>
15
15
  `}},exports.QRModal.styles=[e.r(":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}")],Bt([t.c({context:e.sdkContext,subscribe:!0})],exports.QRModal.prototype,"sdkData",2),exports.QRModal=Bt([e.t("qr-modal")],exports.QRModal);
16
- //# sourceMappingURL=qr-modal-DViSVtZI.cjs.map
16
+ //# sourceMappingURL=qr-modal-BQG75u-x.cjs.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./consume-DRj4CYCX.cjs"),t=require("./lazy-load-Dn0YjnPb.cjs");var i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=(e,t,n,o)=>{for(var a,r=o>1?void 0:o?s(t,n):t,c=e.length-1;c>=0;c--)(a=e[c])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&i(t,n,r),r};exports.RouteOptions=class extends t.i{constructor(){super(),this.assets=null,this._loadAssets()}async _loadAssets(){this.assets=await(async()=>{const[e,t,i,s,n,o]=await Promise.all([Promise.resolve().then((()=>require("./accessibility-DWoi6we_.cjs"))),Promise.resolve().then((()=>require("./back_arrow-DNrh84z6.cjs"))),Promise.resolve().then((()=>require("./icon-destination-point-C8Bl9rvO.cjs"))),Promise.resolve().then((()=>require("./icon-origin-point-B0FLE42C.cjs"))),Promise.resolve().then((()=>require("./repeat_icon-DBYc7GBB.cjs"))),Promise.resolve().then((()=>require("./walking-CDbgxjU4.cjs")))]);return{accessibilityIcon:e.default,backIcon:t.default,destinationPoint:i.default,originPoint:s.default,repeatIcon:n.default,walkingIcon:o.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}))}render(){if(!this.sdkData)return t.x``;const{destination:e,accessibleRoute:i,parentPlace:s,origin:n,route:o,isRouteAnimating:a}=this.sdkData,r=i?this.assets?.accessibilityIcon:this.assets?.walkingIcon,c=e?.title??"",l=s?.innerFloors??[],p=n?.inFloor(l)?.name??"",d=e?.inFloor(l)?.name??"",u=a??!1;let h="";return o&&(h=`• ${o.legs[0].distance.toFixed(0)} mts`),t.x`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./consume-BE7YStBl.cjs"),t=require("./lazy-load-CES1Ya_D.cjs");var i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=(e,t,n,o)=>{for(var a,r=o>1?void 0:o?s(t,n):t,c=e.length-1;c>=0;c--)(a=e[c])&&(r=(o?a(t,n,r):a(r))||r);return o&&r&&i(t,n,r),r};exports.RouteOptions=class extends t.i{constructor(){super(),this.assets=null,this._loadAssets()}async _loadAssets(){this.assets=await(async()=>{const[e,t,i,s,n,o]=await Promise.all([Promise.resolve().then((()=>require("./accessibility-DWoi6we_.cjs"))),Promise.resolve().then((()=>require("./back_arrow-DNrh84z6.cjs"))),Promise.resolve().then((()=>require("./icon-destination-point-C8Bl9rvO.cjs"))),Promise.resolve().then((()=>require("./icon-origin-point-B0FLE42C.cjs"))),Promise.resolve().then((()=>require("./repeat_icon-DBYc7GBB.cjs"))),Promise.resolve().then((()=>require("./walking-CDbgxjU4.cjs")))]);return{accessibilityIcon:e.default,backIcon:t.default,destinationPoint:i.default,originPoint:s.default,repeatIcon:n.default,walkingIcon:o.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}))}render(){if(!this.sdkData)return t.x``;const{destination:e,accessibleRoute:i,parentPlace:s,origin:n,route:o,isRouteAnimating:a}=this.sdkData,r=i?this.assets?.accessibilityIcon:this.assets?.walkingIcon,c=e?.title??"",l=s?.innerFloors??[],p=n?.inFloor(l)?.name??"",d=e?.inFloor(l)?.name??"",u=a??!1;let h="";return o&&(h=`• ${o.legs[0].distance.toFixed(0)} mts`),t.x`
2
2
  <div class="route-panel">
3
3
  <div class="flex flex-col h-full">
4
4
  <div class="back-panel" @click=${this.handleBack}>
@@ -67,4 +67,4 @@
67
67
  </div>
68
68
  <qr-modal></qr-modal>
69
69
  `}},exports.RouteOptions.styles=[t.r(":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:#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%}.mt-3{margin-top:1rem!important}.align-items-center{align-items:center!important}.justify-content-center{justify-content:center!important}")],n([e.c({context:t.sdkContext,subscribe:!0})],exports.RouteOptions.prototype,"sdkData",2),exports.RouteOptions=n([t.t("route-options")],exports.RouteOptions);
70
- //# sourceMappingURL=route-options-CyEO6vv_.cjs.map
70
+ //# sourceMappingURL=route-options-C09f-35r.cjs.map
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lazy-load-Dn0YjnPb.cjs");var t,i,n,o,a,s=Object.defineProperty,r=Object.getOwnPropertyDescriptor,d=e=>{throw TypeError(e)},l=(e,t,i,n)=>{for(var o,a=n>1?void 0:n?r(t,i):t,d=e.length-1;d>=0;d--)(o=e[d])&&(a=(n?o(t,i,a):o(a))||a);return n&&a&&s(t,i,a),a},h=(e,t,i)=>t.has(e)||d("Cannot "+i),c=(e,t,i)=>(h(e,t,"read from private field"),i?i.call(e):t.get(e)),p=(e,t,i)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),u=(e,t,i,n)=>(h(e,t,"write to private field"),t.set(e,i),i);exports.RouteViewTotems=class extends e.i{constructor(){super(...arguments),this.styles=[e.i$1`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lazy-load-CES1Ya_D.cjs");var t,i,n,o,a,s=Object.defineProperty,r=Object.getOwnPropertyDescriptor,d=e=>{throw TypeError(e)},l=(e,t,i,n)=>{for(var o,a=n>1?void 0:n?r(t,i):t,d=e.length-1;d>=0;d--)(o=e[d])&&(a=(n?o(t,i,a):o(a))||a);return n&&a&&s(t,i,a),a},h=(e,t,i)=>t.has(e)||d("Cannot "+i),c=(e,t,i)=>(h(e,t,"read from private field"),i?i.call(e):t.get(e)),p=(e,t,i)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),u=(e,t,i,n)=>(h(e,t,"write to private field"),t.set(e,i),i);exports.RouteViewTotems=class extends e.i{constructor(){super(...arguments),this.styles=[e.i$1`
2
2
  :host {
3
3
  display: block;
4
4
  height: 100%;
@@ -1,5 +1,5 @@
1
- import { x, i, n, t } from './route-view-totems-eQTxU-id.js';
2
- import { B as BaseFloorSelector, e } from './components-BQGHQSdV.js';
1
+ import { x, i, n, t } from './route-view-totems-BWtwjegR.js';
2
+ import { B as BaseFloorSelector, e } from './components-B6oTyj0x.js';
3
3
 
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -266,4 +266,4 @@ CompactFloorSelector = __decorateClass([
266
266
  ], CompactFloorSelector);
267
267
 
268
268
  export { CompactFloorSelector };
269
- //# sourceMappingURL=compact-floor-selector-CoQYAD6z.js.map
269
+ //# sourceMappingURL=compact-floor-selector-D-822e0L.js.map
@@ -1,5 +1,5 @@
1
- import { a as i$2, x, r, i as i$3, t as t$1, T } from './route-view-totems-eQTxU-id.js';
2
- import { R as RouteAnimationController, M as MarkerController } from './utils-CWtvoL4a.js';
1
+ import { a as i$2, x, r, i as i$3, t as t$1, T } from './route-view-totems-BWtwjegR.js';
2
+ import { R as RouteAnimationController, M as MarkerController } from './utils-EeRdvb4i.js';
3
3
 
4
4
  /**
5
5
  * @license
@@ -3566,7 +3566,7 @@ let QRModal = class extends i$2 {
3566
3566
  if (!this.qrLoaded && originId && destinationId && generalConfig) {
3567
3567
  this.qrLoaded = true;
3568
3568
  const { baseUrl } = generalConfig;
3569
- const url = `${baseUrl}/${originId}?destinationId=${destinationId}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`;
3569
+ const url = `${baseUrl}/?origin=${originId}&destination=${destinationId}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`;
3570
3570
  const options = {
3571
3571
  errorCorrectionLevel: "M",
3572
3572
  type: "image/webp",
@@ -3787,4 +3787,4 @@ const routeOptions = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProper
3787
3787
  }, Symbol.toStringTag, { value: 'Module' }));
3788
3788
 
3789
3789
  export { BaseFloorSelector as B, customMap as c, e, floorSelector as f, i$1 as i, qrModal as q, routeOptions as r, sdkContext as s };
3790
- //# sourceMappingURL=components-BQGHQSdV.js.map
3790
+ //# sourceMappingURL=components-B6oTyj0x.js.map
@@ -1,5 +1,5 @@
1
- import { i, n, a as i$1, A as AnalyticsController, l as loadCustomMap, b as loadCompactFloorSelector, R as RollbarController, x, t } from './route-view-totems-eQTxU-id.js';
2
- import { S as SDKController } from './utils-CWtvoL4a.js';
1
+ import { i, n, a as i$1, A as AnalyticsController, l as loadCustomMap, b as loadCompactFloorSelector, R as RollbarController, x, t } from './route-view-totems-BWtwjegR.js';
2
+ import { S as SDKController } from './utils-EeRdvb4i.js';
3
3
 
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -279,4 +279,4 @@ MapViewWithModal = __decorateClass([
279
279
  ], MapViewWithModal);
280
280
 
281
281
  export { MapViewWithModal as M };
282
- //# sourceMappingURL=map-view-with-modal-SkmapEWH.js.map
282
+ //# sourceMappingURL=map-view-with-modal-DfkRlpPp.js.map
@@ -1,4 +1,4 @@
1
- import { S as SDKController } from './utils-CWtvoL4a.js';
1
+ import { S as SDKController } from './utils-EeRdvb4i.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -184,11 +184,11 @@ class AnalyticsController {
184
184
  }
185
185
  }
186
186
 
187
- const loadCustomMap = () => import('./components-BQGHQSdV.js').then(n => n.c);
188
- const loadFloorSelector = () => import('./components-BQGHQSdV.js').then(n => n.f);
189
- const loadCompactFloorSelector = () => import('./compact-floor-selector-CoQYAD6z.js');
190
- const loadQrModal = () => import('./components-BQGHQSdV.js').then(n => n.q);
191
- const loadRouteOptions = () => import('./components-BQGHQSdV.js').then(n => n.r);
187
+ const loadCustomMap = () => import('./components-B6oTyj0x.js').then(n => n.c);
188
+ const loadFloorSelector = () => import('./components-B6oTyj0x.js').then(n => n.f);
189
+ const loadCompactFloorSelector = () => import('./compact-floor-selector-D-822e0L.js');
190
+ const loadQrModal = () => import('./components-B6oTyj0x.js').then(n => n.q);
191
+ const loadRouteOptions = () => import('./components-B6oTyj0x.js').then(n => n.r);
192
192
 
193
193
  var __defProp = Object.defineProperty;
194
194
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -418,4 +418,4 @@ RouteViewTotems = __decorateClass([
418
418
  ], RouteViewTotems);
419
419
 
420
420
  export { AnalyticsController as A, RollbarController as R, T, i as a, loadCompactFloorSelector as b, RouteViewTotems as c, i$3 as i, loadCustomMap as l, n, r$3 as r, t, x };
421
- //# sourceMappingURL=route-view-totems-eQTxU-id.js.map
421
+ //# sourceMappingURL=route-view-totems-BWtwjegR.js.map
@@ -1,5 +1,5 @@
1
- import { i, s as sdkContext } from './components-BQGHQSdV.js';
2
- import { R as RollbarController } from './route-view-totems-eQTxU-id.js';
1
+ import { i, s as sdkContext } from './components-B6oTyj0x.js';
2
+ import { R as RollbarController } from './route-view-totems-BWtwjegR.js';
3
3
 
4
4
  var dist = {exports: {}};
5
5
 
@@ -12950,4 +12950,4 @@ class RouteAnimationController {
12950
12950
  }
12951
12951
 
12952
12952
  export { MarkerController as M, RouteAnimationController as R, SDKController as S };
12953
- //# sourceMappingURL=utils-CWtvoL4a.js.map
12953
+ //# sourceMappingURL=utils-EeRdvb4i.js.map
package/dist/es/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { c as RouteViewTotems } from './assets/route-view-totems-eQTxU-id.js';
2
- export { M as MapViewWithModal } from './assets/map-view-with-modal-SkmapEWH.js';
1
+ export { c as RouteViewTotems } from './assets/route-view-totems-BWtwjegR.js';
2
+ export { M as MapViewWithModal } from './assets/map-view-with-modal-DfkRlpPp.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,3 @@
1
- export { c as RouteViewTotems } from './assets/route-view-totems-eQTxU-id.js';
2
- import './assets/utils-CWtvoL4a.js';
1
+ export { c as RouteViewTotems } from './assets/route-view-totems-BWtwjegR.js';
2
+ import './assets/utils-EeRdvb4i.js';
3
3
  //# sourceMappingURL=route-view-totems.js.map
@@ -222,7 +222,7 @@ t.exports=function(){var t={},e={};function i(i,r,n){if(e[i]=n,"index"===i){var
222
222
  </div>
223
223
  `}))}
224
224
  </div>
225
- `}};oe.styles=[a(':host{position:absolute;top:0;right:10px}.floor-selector-container{display:flex;flex-direction:row;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 6px;gap:8px;height:65px}.btn-floor{height:auto;width:100px;vertical-align:middle;font-size:small!important;word-wrap:break-word!important;font-family:Poppins;font-weight:600;font-size:16pt;border-radius:10px;border:0;box-shadow:0 0 15px #00000026}@media only screen and (max-width: 576px){.btn-floor{padding:6px;width:70px;height:auto;font-size:small!important}}.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}@media (max-width: 1100px){.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px;background:#000;color:#fff}.floor-selector-container{right:0;position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:column-reverse;border-radius:30px 0 0 30px;min-width:87px;max-height:100%;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}}')],oe=((t,e,i,r)=>{for(var n,o=r>1?void 0:r?ne(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=n(o)||o);return o})([ct("floor-selector")],oe);const ae=Object.freeze(Object.defineProperty({__proto__:null,get FloorSelector(){return oe}},Symbol.toStringTag,{value:"Module"}));var se,le,ce={};function ue(){return le?se:(le=1,se=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var he,de={},pe={};function fe(){if(he)return pe;let t;he=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 pe.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},pe.getSymbolTotalCodewords=function(t){return e[t]},pe.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},pe.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},pe.isKanjiModeEnabled=function(){return void 0!==t},pe.toSJIS=function(e){return t(e)},pe}var me,ge,ye,ve,be,xe={};function Ae(){return me||(me=1,function(t){t.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,i){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(ee){return i}}}(xe)),xe}var we,Ie={};var Ee,_e={};var Ce,Se={};var Me,ke={};function Te(){if(Me)return ke;Me=1;const t=Ae(),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],i=[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 ke.getBlocksCount=function(i,r){switch(r){case t.L:return e[4*(i-1)+0];case t.M:return e[4*(i-1)+1];case t.Q:return e[4*(i-1)+2];case t.H:return e[4*(i-1)+3];default:return}},ke.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return i[4*(e-1)+0];case t.M:return i[4*(e-1)+1];case t.Q:return i[4*(e-1)+2];case t.H:return i[4*(e-1)+3];default:return}},ke}var Pe,Re,ze,Le,De={},Oe={};function Be(){return Re||(Re=1,function(t){const e=function(){if(Pe)return Oe;Pe=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let i=1;for(let r=0;r<255;r++)t[r]=i,e[i]=r,i<<=1,256&i&&(i^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),Oe.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},Oe.exp=function(e){return t[e]},Oe.mul=function(i,r){return 0===i||0===r?0:t[e[i]+e[r]]},Oe}();t.mul=function(t,i){const r=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let o=0;o<i.length;o++)r[n+o]^=e.mul(t[n],i[o]);return r},t.mod=function(t,i){let r=new Uint8Array(t);for(;r.length-i.length>=0;){const t=r[0];for(let o=0;o<i.length;o++)r[o]^=e.mul(i[o],t);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function(i){let r=new Uint8Array([1]);for(let n=0;n<i;n++)r=t.mul(r,new Uint8Array([1,e.exp(n)]));return r}}(De)),De}var qe,Fe={},je={},Ne={};function Ge(){return qe||(qe=1,Ne.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ne}var Ze,Ue,He,Ve={};function Ke(){if(Ze)return Ve;Ze=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 i="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Ve.KANJI=new RegExp(e,"g"),Ve.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ve.BYTE=new RegExp(i,"g"),Ve.NUMERIC=new RegExp(t,"g"),Ve.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ve.testKanji=function(t){return r.test(t)},Ve.testNumeric=function(t){return n.test(t)},Ve.testAlphanumeric=function(t){return o.test(t)},Ve}function We(){return Ue||(Ue=1,function(t){const e=Ge(),i=Ke();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,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.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,i){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(ee){return i}}}(je)),je}function Ye(){return He||(He=1,function(t){const e=fe(),i=Te(),r=Ae(),n=We(),o=Ge(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let i=0;return t.forEach((function(t){const r=s(t.mode,e);i+=r+t.getBitsLength()})),i}t.from=function(t,e){return o.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!o.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,r));if(a===n.MIXED)return l;const c=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,i){let o;const a=r.from(i,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,i){for(let r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,i,n.MIXED))return r}(e,a);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,i,r){for(let n=1;n<=40;n++)if(i<=t.getCapacity(n,r,e))return n}(o.mode,o.getLength(),a)},t.getEncodedBits=function(t){if(!o.isValid(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;e.getBCHDigit(i)-a>=0;)i^=7973<<e.getBCHDigit(i)-a;return t<<12|i}}(Fe)),Fe}var Qe,Je={};var Xe,$e,ti,ei,ii,ri,ni,oi,ai={};var si,li,ci,ui={exports:{}};function hi(){return si||(si=1,function(t){var e={single_source_shortest_paths:function(t,i,r){var n={},o={};o[i]=0;var a,s,l,c,u,h,d,p=e.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=t[s]||{})u.hasOwnProperty(l)&&(h=c+u[l],d=o[l],(void 0===o[l]||d>h)&&(o[l]=h,p.push(l,h),n[l]=s));if(void 0!==r&&void 0===o[r]){var f=["Could not find a path from ",i," to ",r,"."].join("");throw new Error(f)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],r=e;r;)i.push(r),t[r],r=t[r];return i.reverse(),i},find_path:function(t,i,r){var n=e.single_source_shortest_paths(t,i,r);return e.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var i,r=e.PriorityQueue,n={};for(i in t=t||{},r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n.queue=[],n.sorter=t.sorter||r.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ui)),ui.exports}function di(){return li||(li=1,function(t){const e=We(),i=function(){if($e)return Xe;$e=1;const t=We();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,i,r;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),r=parseInt(i,10),t.put(r,10);const n=this.data.length-e;n>0&&(i=this.data.substr(e),r=parseInt(i,10),t.put(r,3*n+1))},Xe=e}(),r=function(){if(ei)return ti;ei=1;const t=We(),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 i(e){this.mode=t.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=45*e.indexOf(this.data[i]);r+=e.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[i]),6)},ti=i}(),n=function(){if(ri)return ii;ri=1;const t=We();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,i=this.data.length;e<i;e++)t.put(this.data[e],8)},ii=e}(),o=function(){if(oi)return ni;oi=1;const t=We(),e=fe();function i(e){this.mode=t.KANJI,this.data=e}return i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let r=e.toSJIS(this.data[i]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},ni=i}(),a=Ke(),s=fe(),l=hi();function c(t){return unescape(encodeURIComponent(t)).length}function u(t,e,i){const r=[];let n;for(;null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function h(t){const i=u(a.NUMERIC,e.NUMERIC,t),r=u(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,o;s.isKanjiModeEnabled()?(n=u(a.BYTE,e.BYTE,t),o=u(a.KANJI,e.KANJI,t)):(n=u(a.BYTE_KANJI,e.BYTE,t),o=[]);return i.concat(r,n,o).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,a){switch(a){case e.NUMERIC:return i.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return o.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function p(t,a){let l;const c=e.getBestModeForData(t);if(l=e.from(a,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new i(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new o(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t}),[])},t.fromString=function(i,r){const n=function(t){const i=[];for(let r=0;r<t.length;r++){const n=t[r];switch(n.mode){case e.NUMERIC:i.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:i.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:i.push([n,{data:n.data,mode:e.BYTE,length:c(n.data)}]);break;case e.BYTE:i.push([{data:n.data,mode:e.BYTE,length:c(n.data)}])}}return i}(h(i,s.isKanjiModeEnabled())),o=function(t,i){const r={},n={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),r[u]={node:c,lastCount:0},n[u]={};for(let t=0;t<o.length;t++){const a=o[t];r[a]&&r[a].node.mode===c.mode?(n[a][u]=d(r[a].lastCount+c.length,c.mode)-d(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),n[a][u]=d(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,i))}}o=l}for(let e=0;e<o.length;e++)n[o[e]].end=0;return{map:n,table:r}}(n,r),a=l.find_path(o.map,"start","end"),u=[];for(let t=1;t<a.length-1;t++)u.push(o.table[a[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(u))},t.rawSplit=function(e){return t.fromArray(h(e,s.isKanjiModeEnabled()))}}(ai)),ai}function pi(){if(ci)return de;ci=1;const t=fe(),e=Ae(),i=function(){if(ye)return ge;function t(){this.buffer=[],this.length=0}return ye=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 i=0;i<e;i++)this.putBit(1==(t>>>e-i-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++}},ge=t}(),r=function(){if(be)return ve;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 be=1,t.prototype.set=function(t,e,i,r){const n=t*this.size+e;this.data[n]=i,r&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},ve=t}(),n=(we||(we=1,function(t){const e=fe().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,r=e(t),n=145===r?26:2*Math.ceil((r-13)/(2*i-2)),o=[r-7];for(let e=1;e<i-1;e++)o[e]=o[e-1]-n;return o.push(6),o.reverse()},t.getPositions=function(e){const i=[],r=t.getRowColCoords(e),n=r.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||i.push([r[t],r[e]]);return i}}(Ie)),Ie),o=function(){if(Ee)return _e;Ee=1;const t=fe().getSymbolSize;return _e.getPositions=function(e){const i=t(e);return[[0,0],[i-7,0],[0,i-7]]},_e}(),a=(Ce||(Ce=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,i=3,r=40,n=10;function o(e,i,r){switch(e){case t.Patterns.PATTERN000:return(i+r)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(i+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return i*r%2+i*r%3==0;case t.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case t.Patterns.PATTERN111:return(i*r%3+(i+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 i=t.size;let r=0,n=0,o=0,a=null,s=null;for(let l=0;l<i;l++){n=o=0,a=s=null;for(let c=0;c<i;c++){let i=t.get(l,c);i===a?n++:(n>=5&&(r+=e+(n-5)),a=i,n=1),i=t.get(c,l),i===s?o++:(o>=5&&(r+=e+(o-5)),s=i,o=1)}n>=5&&(r+=e+(n-5)),o>=5&&(r+=e+(o-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let i=0;i<e-1;i++)for(let n=0;n<e-1;n++){const e=t.get(i,n)+t.get(i,n+1)+t.get(i+1,n)+t.get(i+1,n+1);4!==e&&0!==e||r++}return r*i},t.getPenaltyN3=function(t){const e=t.size;let i=0,n=0,o=0;for(let r=0;r<e;r++){n=o=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(r,a),a>=10&&(1488===n||93===n)&&i++,o=o<<1&2047|t.get(a,r),a>=10&&(1488===o||93===o)&&i++}return i*r},t.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let r=0;r<i;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/i/5)-10)*n},t.applyMask=function(t,e){const i=e.size;for(let r=0;r<i;r++)for(let n=0;n<i;n++)e.isReserved(n,r)||e.xor(n,r,o(t,n,r))},t.getBestMask=function(e,i){const r=Object.keys(t.Patterns).length;let n=0,o=1/0;for(let a=0;a<r;a++){i(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,n=a)}return n}}(Se)),Se),s=Te(),l=function(){if(Le)return ze;Le=1;const t=Be();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 i=new Uint8Array(e.length+this.degree);i.set(e);const r=t.mod(i,this.genPoly),n=this.degree-r.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(r,n),t}return r},ze=e}(),c=Ye(),u=function(){if(Qe)return Je;Qe=1;const t=fe(),e=t.getBCHDigit(1335);return Je.getEncodedBits=function(i,r){const n=i.bit<<3|r;let o=n<<10;for(;t.getBCHDigit(o)-e>=0;)o^=1335<<t.getBCHDigit(o)-e;return 21522^(n<<10|o)},Je}(),h=We(),d=di();function p(t,e,i){const r=t.size,n=u.getEncodedBits(e,i);let o,a;for(o=0;o<15;o++)a=1==(n>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(r-15+o,8,a,!0),o<8?t.set(8,r-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(r-8,8,1,!0)}function f(e,r,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)}));const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,r));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const c=(a-o.getLengthInBits())/8;for(let t=0;t<c;t++)o.put(t%2?17:236,8);return function(e,i,r){const n=t.getSymbolTotalCodewords(i),o=s.getTotalCodewordsCount(i,r),a=n-o,c=s.getBlocksCount(i,r),u=n%c,h=c-u,d=Math.floor(n/c),p=Math.floor(a/c),f=p+1,m=d-p,g=new l(m);let y=0;const v=new Array(c),b=new Array(c);let x=0;const A=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<h?p:f;v[t]=A.slice(y,y+e),b[t]=g.encode(v[t]),y+=e,x=Math.max(x,e)}const w=new Uint8Array(n);let I,E,_=0;for(I=0;I<x;I++)for(E=0;E<c;E++)I<v[E].length&&(w[_++]=v[E][I]);for(I=0;I<m;I++)for(E=0;E<c;E++)w[_++]=b[E][I];return w}(o,e,r)}function m(e,i,s,l){let u;if(Array.isArray(e))u=d.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=i;if(!t){const i=d.rawSplit(e);t=c.getBestVersionForData(i,s)}u=d.fromString(e,t||40)}}const h=c.getBestVersionForData(u,s);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else i=h;const m=f(i,s,u),g=t.getSymbolSize(i),y=new r(g);return function(t,e){const i=t.size,r=o.getPositions(e);for(let n=0;n<r.length;n++){const e=r[n][0],o=r[n][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||i<=e+r))for(let n=-1;n<=7;n++)o+n<=-1||i<=o+n||(r>=0&&r<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===r||6===r)||r>=2&&r<=4&&n>=2&&n<=4?t.set(e+r,o+n,!0,!0):t.set(e+r,o+n,!1,!0))}}(y,i),function(t){const e=t.size;for(let i=8;i<e-8;i++){const e=i%2==0;t.set(i,6,e,!0),t.set(6,i,e,!0)}}(y),function(t,e){const i=n.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],n=i[r][1];for(let i=-2;i<=2;i++)for(let r=-2;r<=2;r++)-2===i||2===i||-2===r||2===r||0===i&&0===r?t.set(e+i,n+r,!0,!0):t.set(e+i,n+r,!1,!0)}}(y,i),p(y,s,0),i>=7&&function(t,e){const i=t.size,r=c.getEncodedBits(e);let n,o,a;for(let s=0;s<18;s++)n=Math.floor(s/3),o=s%3+i-8-3,a=1==(r>>s&1),t.set(n,o,a,!0),t.set(o,n,a,!0)}(y,i),function(t,e){const i=t.size;let r=-1,n=i-1,o=7,a=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!t.isReserved(n,s-i)){let r=!1;a<e.length&&(r=1==(e[a]>>>o&1)),t.set(n,s-i,r),o--,-1===o&&(a++,o=7)}if(n+=r,n<0||i<=n){n-=r,r=-r;break}}}(y,m),isNaN(l)&&(l=a.getBestMask(y,p.bind(null,y,s))),a.applyMask(l,y),p(y,s,l),{modules:y,version:i,errorCorrectionLevel:s,maskPattern:l,segments:u}}return de.create=function(i,r){if(void 0===i||""===i)throw new Error("No input text");let n,o,s=e.M;return void 0!==r&&(s=e.from(r.errorCorrectionLevel,e.M),n=c.from(r.version),o=a.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),m(i,n,s,o)},de}var fi,mi,gi={},yi={};function vi(){return fi||(fi=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 i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:r,scale:r?4:n,margin:i,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,i){const r=t.getScale(e,i);return Math.floor((e+2*i.margin)*r)},t.qrToImageData=function(e,i,r){const n=i.modules.size,o=i.modules.data,a=t.getScale(n,r),s=Math.floor((n+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let i=0;i<s;i++){let u=4*(t*s+i),h=r.color.light;if(t>=l&&i>=l&&t<s-l&&i<s-l){h=c[o[Math.floor((t-l)/a)*n+Math.floor((i-l)/a)]?1:0]}e[u++]=h.r,e[u++]=h.g,e[u++]=h.b,e[u]=h.a}}}(yi)),yi}function bi(){return mi||(mi=1,function(t){const e=vi();t.render=function(t,i,r){let n=r,o=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(o=function(){try{return document.createElement("canvas")}catch(ee){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=o.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,i,r){let n=r;void 0!==n||i&&i.getContext||(n=i,i=void 0),n||(n={});const o=t.render(e,i,n),a=n.type||"image/png",s=n.rendererOpts||{};return o.toDataURL(a,s.quality)}}(gi)),gi}var xi,Ai,wi={};function Ii(){if(xi)return wi;xi=1;const t=vi();function e(t,e){const i=t.a/255,r=e+'="'+t.hex+'"';return i<1?r+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function i(t,e,i){let r=t+e;return void 0!==i&&(r+=" "+i),r}return wi.render=function(r,n,o){const a=t.getOptions(n),s=r.modules.size,l=r.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,r){let n="",o=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(n+=a?i("M",c+r,.5+u+r):i("m",o,0),o=0,a=!1),c+1<e&&t[l+1]||(n+=i("h",s),s=0)):o++}return n}(l,s,a.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+h+"</svg>\n";return"function"==typeof o&&o(null,p),p},wi}var Ei=function(){if(Ai)return ce;Ai=1;const t=ue(),e=pi(),i=bi(),r=Ii();function n(i,r,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=r,r=o=void 0):2!==l||r.getContext||(o=n,n=r,r=void 0),new Promise((function(t,a){try{const a=e.create(n,o);t(i(a,r,o))}catch(ee){a(ee)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=r,r=o=void 0):3===l&&(r.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=r,r=void 0));try{const t=e.create(n,o);a(null,i(t,r,o))}catch(ee){a(ee)}}return ce.create=e.create,ce.toCanvas=n.bind(null,i.render),ce.toDataURL=n.bind(null,i.renderToDataURL),ce.toString=n.bind(null,(function(t,e,i){return r.render(t,i)})),ce}();var _i=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Si=(t,e,i,r)=>{for(var n,o=r>1?void 0:r?Ci(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r?n(e,i,o):n(o))||o);return r&&o&&_i(e,i,o),o};let Mi=class extends st{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:i}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&i){this.qrLoaded=!0;const{baseUrl:r}=i,n=`${r}/${t}?destinationId=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,o={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};Ei.toDataURL(n,o).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return Z`
225
+ `}};oe.styles=[a(':host{position:absolute;top:0;right:10px}.floor-selector-container{display:flex;flex-direction:row;background:#fff;border-radius:0 0 30px 30px;box-shadow:0 0 15px #00000026;padding:0 6px;gap:8px;height:65px}.btn-floor{height:auto;width:100px;vertical-align:middle;font-size:small!important;word-wrap:break-word!important;font-family:Poppins;font-weight:600;font-size:16pt;border-radius:10px;border:0;box-shadow:0 0 15px #00000026}@media only screen and (max-width: 576px){.btn-floor{padding:6px;width:70px;height:auto;font-size:small!important}}.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}@media (max-width: 1100px){.floor-btn-container:hover .floor-btn:not(.active):not(.disabled){border-radius:999px 0 0 999px;background:#000;color:#fff}.floor-selector-container{right:0;position:fixed;top:50%;transform:translateY(-50%);display:flex;flex-direction:column-reverse;border-radius:30px 0 0 30px;min-width:87px;max-height:100%;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}}')],oe=((t,e,i,r)=>{for(var n,o=r>1?void 0:r?ne(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=n(o)||o);return o})([ct("floor-selector")],oe);const ae=Object.freeze(Object.defineProperty({__proto__:null,get FloorSelector(){return oe}},Symbol.toStringTag,{value:"Module"}));var se,le,ce={};function ue(){return le?se:(le=1,se=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then})}var he,de={},pe={};function fe(){if(he)return pe;let t;he=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 pe.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},pe.getSymbolTotalCodewords=function(t){return e[t]},pe.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},pe.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');t=e},pe.isKanjiModeEnabled=function(){return void 0!==t},pe.toSJIS=function(e){return t(e)},pe}var me,ge,ye,ve,be,xe={};function Ae(){return me||(me=1,function(t){t.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,i){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(ee){return i}}}(xe)),xe}var we,Ie={};var Ee,_e={};var Ce,Se={};var Me,ke={};function Te(){if(Me)return ke;Me=1;const t=Ae(),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],i=[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 ke.getBlocksCount=function(i,r){switch(r){case t.L:return e[4*(i-1)+0];case t.M:return e[4*(i-1)+1];case t.Q:return e[4*(i-1)+2];case t.H:return e[4*(i-1)+3];default:return}},ke.getTotalCodewordsCount=function(e,r){switch(r){case t.L:return i[4*(e-1)+0];case t.M:return i[4*(e-1)+1];case t.Q:return i[4*(e-1)+2];case t.H:return i[4*(e-1)+3];default:return}},ke}var Pe,Re,ze,Le,De={},Oe={};function Be(){return Re||(Re=1,function(t){const e=function(){if(Pe)return Oe;Pe=1;const t=new Uint8Array(512),e=new Uint8Array(256);return function(){let i=1;for(let r=0;r<255;r++)t[r]=i,e[i]=r,i<<=1,256&i&&(i^=285);for(let e=255;e<512;e++)t[e]=t[e-255]}(),Oe.log=function(t){if(t<1)throw new Error("log("+t+")");return e[t]},Oe.exp=function(e){return t[e]},Oe.mul=function(i,r){return 0===i||0===r?0:t[e[i]+e[r]]},Oe}();t.mul=function(t,i){const r=new Uint8Array(t.length+i.length-1);for(let n=0;n<t.length;n++)for(let o=0;o<i.length;o++)r[n+o]^=e.mul(t[n],i[o]);return r},t.mod=function(t,i){let r=new Uint8Array(t);for(;r.length-i.length>=0;){const t=r[0];for(let o=0;o<i.length;o++)r[o]^=e.mul(i[o],t);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function(i){let r=new Uint8Array([1]);for(let n=0;n<i;n++)r=t.mul(r,new Uint8Array([1,e.exp(n)]));return r}}(De)),De}var qe,Fe={},je={},Ne={};function Ge(){return qe||(qe=1,Ne.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}),Ne}var Ze,Ue,He,Ve={};function Ke(){if(Ze)return Ve;Ze=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 i="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";Ve.KANJI=new RegExp(e,"g"),Ve.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ve.BYTE=new RegExp(i,"g"),Ve.NUMERIC=new RegExp(t,"g"),Ve.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const r=new RegExp("^"+e+"$"),n=new RegExp("^"+t+"$"),o=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Ve.testKanji=function(t){return r.test(t)},Ve.testNumeric=function(t){return n.test(t)},Ve.testAlphanumeric=function(t){return o.test(t)},Ve}function We(){return Ue||(Ue=1,function(t){const e=Ge(),i=Ke();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,i){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?t.ccBits[0]:i<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return i.testNumeric(e)?t.NUMERIC:i.testAlphanumeric(e)?t.ALPHANUMERIC:i.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,i){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(ee){return i}}}(je)),je}function Ye(){return He||(He=1,function(t){const e=fe(),i=Te(),r=Ae(),n=We(),o=Ge(),a=e.getBCHDigit(7973);function s(t,e){return n.getCharCountIndicator(t,e)+4}function l(t,e){let i=0;return t.forEach((function(t){const r=s(t.mode,e);i+=r+t.getBitsLength()})),i}t.from=function(t,e){return o.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,r,a){if(!o.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=n.BYTE);const l=8*(e.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,r));if(a===n.MIXED)return l;const c=l-s(a,t);switch(a){case n.NUMERIC:return Math.floor(c/10*3);case n.ALPHANUMERIC:return Math.floor(c/11*2);case n.KANJI:return Math.floor(c/13);case n.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,i){let o;const a=r.from(i,r.M);if(Array.isArray(e)){if(e.length>1)return function(e,i){for(let r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,i,n.MIXED))return r}(e,a);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,i,r){for(let n=1;n<=40;n++)if(i<=t.getCapacity(n,r,e))return n}(o.mode,o.getLength(),a)},t.getEncodedBits=function(t){if(!o.isValid(t)||t<7)throw new Error("Invalid QR Code version");let i=t<<12;for(;e.getBCHDigit(i)-a>=0;)i^=7973<<e.getBCHDigit(i)-a;return t<<12|i}}(Fe)),Fe}var Qe,Je={};var Xe,$e,ti,ei,ii,ri,ni,oi,ai={};var si,li,ci,ui={exports:{}};function hi(){return si||(si=1,function(t){var e={single_source_shortest_paths:function(t,i,r){var n={},o={};o[i]=0;var a,s,l,c,u,h,d,p=e.PriorityQueue.make();for(p.push(i,0);!p.empty();)for(l in s=(a=p.pop()).value,c=a.cost,u=t[s]||{})u.hasOwnProperty(l)&&(h=c+u[l],d=o[l],(void 0===o[l]||d>h)&&(o[l]=h,p.push(l,h),n[l]=s));if(void 0!==r&&void 0===o[r]){var f=["Could not find a path from ",i," to ",r,"."].join("");throw new Error(f)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var i=[],r=e;r;)i.push(r),t[r],r=t[r];return i.reverse(),i},find_path:function(t,i,r){var n=e.single_source_shortest_paths(t,i,r);return e.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var i,r=e.PriorityQueue,n={};for(i in t=t||{},r)r.hasOwnProperty(i)&&(n[i]=r[i]);return n.queue=[],n.sorter=t.sorter||r.default_sorter,n},default_sorter:function(t,e){return t.cost-e.cost},push:function(t,e){var i={value:t,cost:e};this.queue.push(i),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=e}(ui)),ui.exports}function di(){return li||(li=1,function(t){const e=We(),i=function(){if($e)return Xe;$e=1;const t=We();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,i,r;for(e=0;e+3<=this.data.length;e+=3)i=this.data.substr(e,3),r=parseInt(i,10),t.put(r,10);const n=this.data.length-e;n>0&&(i=this.data.substr(e),r=parseInt(i,10),t.put(r,3*n+1))},Xe=e}(),r=function(){if(ei)return ti;ei=1;const t=We(),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 i(e){this.mode=t.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=45*e.indexOf(this.data[i]);r+=e.indexOf(this.data[i+1]),t.put(r,11)}this.data.length%2&&t.put(e.indexOf(this.data[i]),6)},ti=i}(),n=function(){if(ri)return ii;ri=1;const t=We();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,i=this.data.length;e<i;e++)t.put(this.data[e],8)},ii=e}(),o=function(){if(oi)return ni;oi=1;const t=We(),e=fe();function i(e){this.mode=t.KANJI,this.data=e}return i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let i;for(i=0;i<this.data.length;i++){let r=e.toSJIS(this.data[i]);if(r>=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[i]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},ni=i}(),a=Ke(),s=fe(),l=hi();function c(t){return unescape(encodeURIComponent(t)).length}function u(t,e,i){const r=[];let n;for(;null!==(n=t.exec(i));)r.push({data:n[0],index:n.index,mode:e,length:n[0].length});return r}function h(t){const i=u(a.NUMERIC,e.NUMERIC,t),r=u(a.ALPHANUMERIC,e.ALPHANUMERIC,t);let n,o;s.isKanjiModeEnabled()?(n=u(a.BYTE,e.BYTE,t),o=u(a.KANJI,e.KANJI,t)):(n=u(a.BYTE_KANJI,e.BYTE,t),o=[]);return i.concat(r,n,o).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,a){switch(a){case e.NUMERIC:return i.getBitsLength(t);case e.ALPHANUMERIC:return r.getBitsLength(t);case e.KANJI:return o.getBitsLength(t);case e.BYTE:return n.getBitsLength(t)}}function p(t,a){let l;const c=e.getBestModeForData(t);if(l=e.from(a,c),l!==e.BYTE&&l.bit<c.bit)throw new Error('"'+t+'" cannot be encoded with mode '+e.toString(l)+".\n Suggested mode is: "+e.toString(c));switch(l!==e.KANJI||s.isKanjiModeEnabled()||(l=e.BYTE),l){case e.NUMERIC:return new i(t);case e.ALPHANUMERIC:return new r(t);case e.KANJI:return new o(t);case e.BYTE:return new n(t)}}t.fromArray=function(t){return t.reduce((function(t,e){return"string"==typeof e?t.push(p(e,null)):e.data&&t.push(p(e.data,e.mode)),t}),[])},t.fromString=function(i,r){const n=function(t){const i=[];for(let r=0;r<t.length;r++){const n=t[r];switch(n.mode){case e.NUMERIC:i.push([n,{data:n.data,mode:e.ALPHANUMERIC,length:n.length},{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.ALPHANUMERIC:i.push([n,{data:n.data,mode:e.BYTE,length:n.length}]);break;case e.KANJI:i.push([n,{data:n.data,mode:e.BYTE,length:c(n.data)}]);break;case e.BYTE:i.push([{data:n.data,mode:e.BYTE,length:c(n.data)}])}}return i}(h(i,s.isKanjiModeEnabled())),o=function(t,i){const r={},n={start:{}};let o=["start"];for(let a=0;a<t.length;a++){const s=t[a],l=[];for(let t=0;t<s.length;t++){const c=s[t],u=""+a+t;l.push(u),r[u]={node:c,lastCount:0},n[u]={};for(let t=0;t<o.length;t++){const a=o[t];r[a]&&r[a].node.mode===c.mode?(n[a][u]=d(r[a].lastCount+c.length,c.mode)-d(r[a].lastCount,c.mode),r[a].lastCount+=c.length):(r[a]&&(r[a].lastCount=c.length),n[a][u]=d(c.length,c.mode)+4+e.getCharCountIndicator(c.mode,i))}}o=l}for(let e=0;e<o.length;e++)n[o[e]].end=0;return{map:n,table:r}}(n,r),a=l.find_path(o.map,"start","end"),u=[];for(let t=1;t<a.length-1;t++)u.push(o.table[a[t]].node);return t.fromArray(function(t){return t.reduce((function(t,e){const i=t.length-1>=0?t[t.length-1]:null;return i&&i.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(u))},t.rawSplit=function(e){return t.fromArray(h(e,s.isKanjiModeEnabled()))}}(ai)),ai}function pi(){if(ci)return de;ci=1;const t=fe(),e=Ae(),i=function(){if(ye)return ge;function t(){this.buffer=[],this.length=0}return ye=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 i=0;i<e;i++)this.putBit(1==(t>>>e-i-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++}},ge=t}(),r=function(){if(be)return ve;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 be=1,t.prototype.set=function(t,e,i,r){const n=t*this.size+e;this.data[n]=i,r&&(this.reservedBit[n]=!0)},t.prototype.get=function(t,e){return this.data[t*this.size+e]},t.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i},t.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},ve=t}(),n=(we||(we=1,function(t){const e=fe().getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];const i=Math.floor(t/7)+2,r=e(t),n=145===r?26:2*Math.ceil((r-13)/(2*i-2)),o=[r-7];for(let e=1;e<i-1;e++)o[e]=o[e-1]-n;return o.push(6),o.reverse()},t.getPositions=function(e){const i=[],r=t.getRowColCoords(e),n=r.length;for(let t=0;t<n;t++)for(let e=0;e<n;e++)0===t&&0===e||0===t&&e===n-1||t===n-1&&0===e||i.push([r[t],r[e]]);return i}}(Ie)),Ie),o=function(){if(Ee)return _e;Ee=1;const t=fe().getSymbolSize;return _e.getPositions=function(e){const i=t(e);return[[0,0],[i-7,0],[0,i-7]]},_e}(),a=(Ce||(Ce=1,function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e=3,i=3,r=40,n=10;function o(e,i,r){switch(e){case t.Patterns.PATTERN000:return(i+r)%2==0;case t.Patterns.PATTERN001:return i%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(i+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(i/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return i*r%2+i*r%3==0;case t.Patterns.PATTERN110:return(i*r%2+i*r%3)%2==0;case t.Patterns.PATTERN111:return(i*r%3+(i+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 i=t.size;let r=0,n=0,o=0,a=null,s=null;for(let l=0;l<i;l++){n=o=0,a=s=null;for(let c=0;c<i;c++){let i=t.get(l,c);i===a?n++:(n>=5&&(r+=e+(n-5)),a=i,n=1),i=t.get(c,l),i===s?o++:(o>=5&&(r+=e+(o-5)),s=i,o=1)}n>=5&&(r+=e+(n-5)),o>=5&&(r+=e+(o-5))}return r},t.getPenaltyN2=function(t){const e=t.size;let r=0;for(let i=0;i<e-1;i++)for(let n=0;n<e-1;n++){const e=t.get(i,n)+t.get(i,n+1)+t.get(i+1,n)+t.get(i+1,n+1);4!==e&&0!==e||r++}return r*i},t.getPenaltyN3=function(t){const e=t.size;let i=0,n=0,o=0;for(let r=0;r<e;r++){n=o=0;for(let a=0;a<e;a++)n=n<<1&2047|t.get(r,a),a>=10&&(1488===n||93===n)&&i++,o=o<<1&2047|t.get(a,r),a>=10&&(1488===o||93===o)&&i++}return i*r},t.getPenaltyN4=function(t){let e=0;const i=t.data.length;for(let r=0;r<i;r++)e+=t.data[r];return Math.abs(Math.ceil(100*e/i/5)-10)*n},t.applyMask=function(t,e){const i=e.size;for(let r=0;r<i;r++)for(let n=0;n<i;n++)e.isReserved(n,r)||e.xor(n,r,o(t,n,r))},t.getBestMask=function(e,i){const r=Object.keys(t.Patterns).length;let n=0,o=1/0;for(let a=0;a<r;a++){i(a),t.applyMask(a,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),r<o&&(o=r,n=a)}return n}}(Se)),Se),s=Te(),l=function(){if(Le)return ze;Le=1;const t=Be();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 i=new Uint8Array(e.length+this.degree);i.set(e);const r=t.mod(i,this.genPoly),n=this.degree-r.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(r,n),t}return r},ze=e}(),c=Ye(),u=function(){if(Qe)return Je;Qe=1;const t=fe(),e=t.getBCHDigit(1335);return Je.getEncodedBits=function(i,r){const n=i.bit<<3|r;let o=n<<10;for(;t.getBCHDigit(o)-e>=0;)o^=1335<<t.getBCHDigit(o)-e;return 21522^(n<<10|o)},Je}(),h=We(),d=di();function p(t,e,i){const r=t.size,n=u.getEncodedBits(e,i);let o,a;for(o=0;o<15;o++)a=1==(n>>o&1),o<6?t.set(o,8,a,!0):o<8?t.set(o+1,8,a,!0):t.set(r-15+o,8,a,!0),o<8?t.set(8,r-o-1,a,!0):o<9?t.set(8,15-o-1+1,a,!0):t.set(8,15-o-1,a,!0);t.set(r-8,8,1,!0)}function f(e,r,n){const o=new i;n.forEach((function(t){o.put(t.mode.bit,4),o.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(o)}));const a=8*(t.getSymbolTotalCodewords(e)-s.getTotalCodewordsCount(e,r));for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const c=(a-o.getLengthInBits())/8;for(let t=0;t<c;t++)o.put(t%2?17:236,8);return function(e,i,r){const n=t.getSymbolTotalCodewords(i),o=s.getTotalCodewordsCount(i,r),a=n-o,c=s.getBlocksCount(i,r),u=n%c,h=c-u,d=Math.floor(n/c),p=Math.floor(a/c),f=p+1,m=d-p,g=new l(m);let y=0;const v=new Array(c),b=new Array(c);let x=0;const A=new Uint8Array(e.buffer);for(let t=0;t<c;t++){const e=t<h?p:f;v[t]=A.slice(y,y+e),b[t]=g.encode(v[t]),y+=e,x=Math.max(x,e)}const w=new Uint8Array(n);let I,E,_=0;for(I=0;I<x;I++)for(E=0;E<c;E++)I<v[E].length&&(w[_++]=v[E][I]);for(I=0;I<m;I++)for(E=0;E<c;E++)w[_++]=b[E][I];return w}(o,e,r)}function m(e,i,s,l){let u;if(Array.isArray(e))u=d.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let t=i;if(!t){const i=d.rawSplit(e);t=c.getBestVersionForData(i,s)}u=d.fromString(e,t||40)}}const h=c.getBestVersionForData(u,s);if(!h)throw new Error("The amount of data is too big to be stored in a QR Code");if(i){if(i<h)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+h+".\n")}else i=h;const m=f(i,s,u),g=t.getSymbolSize(i),y=new r(g);return function(t,e){const i=t.size,r=o.getPositions(e);for(let n=0;n<r.length;n++){const e=r[n][0],o=r[n][1];for(let r=-1;r<=7;r++)if(!(e+r<=-1||i<=e+r))for(let n=-1;n<=7;n++)o+n<=-1||i<=o+n||(r>=0&&r<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===r||6===r)||r>=2&&r<=4&&n>=2&&n<=4?t.set(e+r,o+n,!0,!0):t.set(e+r,o+n,!1,!0))}}(y,i),function(t){const e=t.size;for(let i=8;i<e-8;i++){const e=i%2==0;t.set(i,6,e,!0),t.set(6,i,e,!0)}}(y),function(t,e){const i=n.getPositions(e);for(let r=0;r<i.length;r++){const e=i[r][0],n=i[r][1];for(let i=-2;i<=2;i++)for(let r=-2;r<=2;r++)-2===i||2===i||-2===r||2===r||0===i&&0===r?t.set(e+i,n+r,!0,!0):t.set(e+i,n+r,!1,!0)}}(y,i),p(y,s,0),i>=7&&function(t,e){const i=t.size,r=c.getEncodedBits(e);let n,o,a;for(let s=0;s<18;s++)n=Math.floor(s/3),o=s%3+i-8-3,a=1==(r>>s&1),t.set(n,o,a,!0),t.set(o,n,a,!0)}(y,i),function(t,e){const i=t.size;let r=-1,n=i-1,o=7,a=0;for(let s=i-1;s>0;s-=2)for(6===s&&s--;;){for(let i=0;i<2;i++)if(!t.isReserved(n,s-i)){let r=!1;a<e.length&&(r=1==(e[a]>>>o&1)),t.set(n,s-i,r),o--,-1===o&&(a++,o=7)}if(n+=r,n<0||i<=n){n-=r,r=-r;break}}}(y,m),isNaN(l)&&(l=a.getBestMask(y,p.bind(null,y,s))),a.applyMask(l,y),p(y,s,l),{modules:y,version:i,errorCorrectionLevel:s,maskPattern:l,segments:u}}return de.create=function(i,r){if(void 0===i||""===i)throw new Error("No input text");let n,o,s=e.M;return void 0!==r&&(s=e.from(r.errorCorrectionLevel,e.M),n=c.from(r.version),o=a.from(r.maskPattern),r.toSJISFunc&&t.setToSJISFunction(r.toSJISFunc)),m(i,n,s,o)},de}var fi,mi,gi={},yi={};function vi(){return fi||(fi=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 i=parseInt(e.join(""),16);return{r:i>>24&255,g:i>>16&255,b:i>>8&255,a:255&i,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});const i=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:r,scale:r?4:n,margin:i,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,i){const r=t.getScale(e,i);return Math.floor((e+2*i.margin)*r)},t.qrToImageData=function(e,i,r){const n=i.modules.size,o=i.modules.data,a=t.getScale(n,r),s=Math.floor((n+2*r.margin)*a),l=r.margin*a,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let i=0;i<s;i++){let u=4*(t*s+i),h=r.color.light;if(t>=l&&i>=l&&t<s-l&&i<s-l){h=c[o[Math.floor((t-l)/a)*n+Math.floor((i-l)/a)]?1:0]}e[u++]=h.r,e[u++]=h.g,e[u++]=h.b,e[u]=h.a}}}(yi)),yi}function bi(){return mi||(mi=1,function(t){const e=vi();t.render=function(t,i,r){let n=r,o=i;void 0!==n||i&&i.getContext||(n=i,i=void 0),i||(o=function(){try{return document.createElement("canvas")}catch(ee){throw new Error("You need to specify a canvas element")}}()),n=e.getOptions(n);const a=e.getImageWidth(t.modules.size,n),s=o.getContext("2d"),l=s.createImageData(a,a);return e.qrToImageData(l.data,t,n),function(t,e,i){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=i,e.width=i,e.style.height=i+"px",e.style.width=i+"px"}(s,o,a),s.putImageData(l,0,0),o},t.renderToDataURL=function(e,i,r){let n=r;void 0!==n||i&&i.getContext||(n=i,i=void 0),n||(n={});const o=t.render(e,i,n),a=n.type||"image/png",s=n.rendererOpts||{};return o.toDataURL(a,s.quality)}}(gi)),gi}var xi,Ai,wi={};function Ii(){if(xi)return wi;xi=1;const t=vi();function e(t,e){const i=t.a/255,r=e+'="'+t.hex+'"';return i<1?r+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function i(t,e,i){let r=t+e;return void 0!==i&&(r+=" "+i),r}return wi.render=function(r,n,o){const a=t.getOptions(n),s=r.modules.size,l=r.modules.data,c=s+2*a.margin,u=a.color.light.a?"<path "+e(a.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",h="<path "+e(a.color.dark,"stroke")+' d="'+function(t,e,r){let n="",o=0,a=!1,s=0;for(let l=0;l<t.length;l++){const c=Math.floor(l%e),u=Math.floor(l/e);c||a||(a=!0),t[l]?(s++,l>0&&c>0&&t[l-1]||(n+=a?i("M",c+r,.5+u+r):i("m",o,0),o=0,a=!1),c+1<e&&t[l+1]||(n+=i("h",s),s=0)):o++}return n}(l,s,a.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+d+' shape-rendering="crispEdges">'+u+h+"</svg>\n";return"function"==typeof o&&o(null,p),p},wi}var Ei=function(){if(Ai)return ce;Ai=1;const t=ue(),e=pi(),i=bi(),r=Ii();function n(i,r,n,o,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!t())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=r,r=o=void 0):2!==l||r.getContext||(o=n,n=r,r=void 0),new Promise((function(t,a){try{const a=e.create(n,o);t(i(a,r,o))}catch(ee){a(ee)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=n,n=r,r=o=void 0):3===l&&(r.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=n,n=r,r=void 0));try{const t=e.create(n,o);a(null,i(t,r,o))}catch(ee){a(ee)}}return ce.create=e.create,ce.toCanvas=n.bind(null,i.render),ce.toDataURL=n.bind(null,i.renderToDataURL),ce.toString=n.bind(null,(function(t,e,i){return r.render(t,i)})),ce}();var _i=Object.defineProperty,Ci=Object.getOwnPropertyDescriptor,Si=(t,e,i,r)=>{for(var n,o=r>1?void 0:r?Ci(e,i):e,a=t.length-1;a>=0;a--)(n=t[a])&&(o=(r?n(e,i,o):n(o))||o);return r&&o&&_i(e,i,o),o};let Mi=class extends st{constructor(){super(...arguments),this.qrLoaded=!1}updated(){const{originId:t,destinationId:e,generalConfig:i}=this.sdkData??{};if(!this.qrLoaded&&t&&e&&i){this.qrLoaded=!0;const{baseUrl:r}=i,n=`${r}/?origin=${t}&destination=${e}&utm_source=qr-totem&utm_content=route&utm_referrer=totem`,o={errorCorrectionLevel:"M",type:"image/webp",margin:1,width:150};Ei.toDataURL(n,o).then((t=>{const e=this.shadowRoot?.getElementById("qr");e&&e instanceof HTMLImageElement&&(e.src=t)}))}}render(){const{cameraInitialized:t}=this.sdkData??{};return Z`
226
226
  <div class=${ee({card:!0,hidden:!t})}>
227
227
  <div class="modal-content">
228
228
  <div class="pin-container">
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapvx/web-components",
3
3
  "description": "MapVX Web Components is a web components library that provides interactive and accessible mapping solutions. Built with Lit, it offers a modern, lightweight, and framework-agnostic way to integrate maps into any web application.",
4
- "version": "0.0.25",
4
+ "version": "0.0.26",
5
5
  "type": "module",
6
6
  "author": "Mapvx",
7
7
  "homepage": "https://mapvx.com",
@@ -48,7 +48,7 @@
48
48
  "analyze": "lit-analyzer",
49
49
  "prepare": "husky",
50
50
  "docs:dev": "cd docs && next dev",
51
- "docs:build": "NEXT_EXPORT=true cd docs && next build && cp ../src/docs-base-redirect.html ../docs-build/index.html",
51
+ "docs:build": "cd docs && next build && cp ../src/docs-base-redirect.html ../docs-build/index.html",
52
52
  "docs:start": "cd docs && next start",
53
53
  "prepublishOnly": "npm run build-with-sourcemaps",
54
54
  "upload-sourcemaps": "./scripts/upload-sourcemaps-to-rollbar.sh",
@@ -1,13 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class CustomMap extends LitElement {
3
- apiKey: string;
4
- locale: string;
5
- parentPlaceId: string;
6
- originId: string;
7
- destinationId: string;
8
- private lzSDK;
9
- private mapLoaded;
10
- private loadMap;
11
- render(): import("lit-html").TemplateResult<1>;
12
- }
13
- //# sourceMappingURL=custom-map.d.ts.map
@@ -1,64 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { initializeSDK } from '@lzdevelopers/my-maps-js';
8
- import { LitElement, html } from 'lit';
9
- import { customElement, property } from 'lit/decorators.js';
10
- let CustomMap = class CustomMap extends LitElement {
11
- constructor() {
12
- super(...arguments);
13
- this.apiKey = '';
14
- this.locale = 'es';
15
- this.parentPlaceId = '';
16
- this.originId = '';
17
- this.destinationId = '';
18
- this.mapLoaded = false;
19
- }
20
- loadMap() {
21
- this.lzSDK = initializeSDK(this.apiKey, { lang: this.locale });
22
- const mapContainer = document.querySelector('#map');
23
- if (mapContainer) {
24
- const mapConfig = {
25
- zoom: 17,
26
- parentPlaceId: this.parentPlaceId,
27
- center: {
28
- lat: -33.41775447136968,
29
- lng: -70.60683493677072,
30
- },
31
- minZoom: 15,
32
- maxZoom: 22,
33
- };
34
- this.lzSDK.createMap(mapContainer, mapConfig);
35
- }
36
- }
37
- render() {
38
- if (!this.mapLoaded && this.apiKey.length > 0) {
39
- this.loadMap();
40
- this.mapLoaded = true;
41
- }
42
- return html ` <div id="map"></div> `;
43
- }
44
- };
45
- __decorate([
46
- property({ type: String })
47
- ], CustomMap.prototype, "apiKey", void 0);
48
- __decorate([
49
- property({ type: String })
50
- ], CustomMap.prototype, "locale", void 0);
51
- __decorate([
52
- property({ type: String })
53
- ], CustomMap.prototype, "parentPlaceId", void 0);
54
- __decorate([
55
- property({ type: String })
56
- ], CustomMap.prototype, "originId", void 0);
57
- __decorate([
58
- property({ type: String })
59
- ], CustomMap.prototype, "destinationId", void 0);
60
- CustomMap = __decorate([
61
- customElement('custom-map')
62
- ], CustomMap);
63
- export { CustomMap };
64
- //# sourceMappingURL=custom-map.js.map
@@ -1,6 +0,0 @@
1
- import { LitElement } from 'lit';
2
- export declare class FloorSelector extends LitElement {
3
- private currentFloor;
4
- render(): import("lit-html").TemplateResult<1>;
5
- }
6
- //# sourceMappingURL=floor-selector.d.ts.map