try{let t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="7523055f-804b-4248-89df-f0e116d7b633",t._sentryDebugIdIdentifier="sentry-dbid-7523055f-804b-4248-89df-f0e116d7b633")}catch(Pn){}import{o as t,E as e,K as r,ac as n,r as o,Q as i,Y as a,a2 as s,a6 as u,U as l,d as f,i as c,$ as h,O as d,V as p,P as g,a as v,w as y,X as m,a8 as w,c as b,a3 as E,F as A,ay as I,ao as B,n as C}from"./vendor.4f012c28.js";import{e as R,r as P,R as S,b as T,T as U,M as _,c as M,Q as k,S as L,v as N,V as x}from"./index.73b14df2.js";import{D as O}from"./DeviceUtils.1018c745.js";import{A as D}from"./ProductViewerEnum.f81120cd.js";import F from"./Divider.765819dc.js";function Y(){const t=O.getAppleDeviceOSVersion();return null!==t&&t>=12}function V(){return!O.isAndroid()&&!Y()}function z(t,e,r){if(!t)throw new Error("No model url provided while opening AR viewer");return`${t}${r?`?dl=${r}.usdz`:""}${e?`#canonicalWebPageURL=${e}`:""}`}function j(t){var e;return"true"===(null==(e=null==t?void 0:t.query)?void 0:e.arlaunch)}function H(t){var e;return"true"===(null==(e=null==t?void 0:t.query)?void 0:e.arbutton)}function K(t){if(Y()&&t){const e=document.createElement("a");return e.appendChild(document.createElement("img")),e.setAttribute("rel","ar"),e.setAttribute("href",t),e.click(),!0}return!1}async function Z(t){var e,r;const n=await R("productPage",`product-${t}`,3,!1,"ignore"),o=await P(null==(e=null==n?void 0:n.fields)?void 0:e.model);return null==(r=null==o?void 0:o.fields)?void 0:r.file}const q={mounted(t,e){let r=null;t._viewtime=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&t.intersectionRect&&t.intersectionRect.height?r=setTimeout(e.value,5e3):r&&(clearTimeout(r),r=null)}))}),{root:null,rootMargin:"0px",threshold:.2}),t._viewtime.observe(t)},beforeUnmount(t){t&&t._viewtime&&t._viewtime.unobserve(t)}},$={viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J=[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.4 22.8C6.7 22.8 2 18.1 2 12.4S6.7 2 12.4 2s10.4 4.7 10.4 10.4-4.7 10.4-10.4 10.4Zm19.314 7.56-9.882-9.881a12.368 12.368 0 0 0 2.968-8.08C24.8 5.5 19.2 0 12.4 0 5.5 0 0 5.5 0 12.4s5.5 12.4 12.4 12.4c3.071 0 5.86-1.093 8.015-2.91l9.885 9.886 1.414-1.414ZM12 11V6h2v5h5v2h-5v5h-2v-5H7v-2h5Z",fill:"#626262"},null,-1)];var Q={render:function(r,n){return t(),e("svg",$,J)}};const W={class:"preserve-ratio-container"},G={class:"preserve-ratio-slot"};var X=T({props:["class","width","height"]},[["render",function(i,a,s,u,l,f){return t(),e("div",W,[r("div",{class:"preserve-ratio-box",style:n({width:"100%","padding-bottom":s.width&&s.height?s.height/s.width*100+"%":"auto"})},null,4),r("div",G,[o(i.$slots,"default")])])}]]);const tt={name:"ProductAssembly",props:{showTitle:{type:Boolean,default:!0},product:{type:Object,default:null}},methods:{onClicked(){U.track("PDP_Download_Assembly",{device:window.screen.width<967?"Mobile":"Desktop"})}}},et={key:0,class:"detail-info-title"},rt=["href"];var nt=T(tt,[["render",function(n,o,s,u,l,f){return t(),e("div",null,[s.showTitle?(t(),e("h3",et,"Assembly Instructions")):i("",!0),r("p",null,[o[1]||(o[1]=a(" View ",-1)),r("a",{href:s.product.assemblyInstructionsUrl,target:"_blank",class:"link",onClick:o[0]||(o[0]=(...t)=>f.onClicked&&f.onClicked(...t))},"assembly instructions",8,rt),o[2]||(o[2]=a(" (PDF) ",-1))])])}],["__scopeId","data-v-a0e4ab56"]]);const ot={key:0,class:"care"},it={class:"care-list"};var at=T({name:"ProductCare",props:{product:{type:Object,default:null}}},[["render",function(n,o,a,f,c,h){return a.product&&a.product.care&&a.product.care.length?(t(),e("div",ot,[o[0]||(o[0]=r("h3",{class:"detail-info-title"},"Care",-1)),r("ul",it,[(t(!0),e(s,null,u(a.product.care,((r,n)=>(t(),e("li",{key:n,class:"care-list-item"},l(r),1)))),128))])])):i("",!0)}]]);const st={key:0,class:"care"},ut={key:0,class:"detail-info-title"},lt={key:1,class:"detail-info-title"},ft={class:"care-list"},ct=["href"];var ht=T(f({__name:"ProductCareAssembly",props:{product:{type:Object,required:!0}},setup(n){const o=()=>{U.track("PDP_Download_Assembly",{device:window.screen.width<967?"Mobile":"Desktop"})};return(n,a)=>n.product&&n.product.care&&n.product.care.length?(t(),e("div",st,[n.product.assemblyInstructionsUrl?(t(),e("h3",ut,"Care & Assembly")):(t(),e("h3",lt,"Care")),r("ul",ft,[(t(!0),e(s,null,u(n.product.care,((r,n)=>(t(),e("li",{key:n,class:"care-list-item"},l(r),1)))),128))]),n.product.assemblyInstructionsUrl?(t(),e("a",{key:2,href:n.product.assemblyInstructionsUrl,target:"_blank",class:"link",onClick:o},"View assembly instructions (PDF)",8,ct)):i("",!0)])):i("",!0)}}),[["__scopeId","data-v-1ac22486"]]);const dt={class:"divider"};const pt={key:0,class:"features"},gt={class:"features-list"};var vt=T({name:"ProductFeature",components:{Divider:T({name:"Divider"},[["render",function(r,n,o,i,a,s){return t(),e("hr",dt)}]])},props:{product:{type:Object,default:null}}},[["render",function(n,o,a,f,c,h){return a.product&&a.product.feature?(t(),e("div",pt,[o[0]||(o[0]=r("h3",{class:"detail-info-title"},"Features",-1)),r("ul",gt,[(t(!0),e(s,null,u(a.product.feature,((r,n)=>(t(),e("li",{key:n,class:"features-list-item"},l(r),1)))),128))])])):i("",!0)}]]);const yt={viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mt=[r("path",{opacity:".5","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 1.116 2.383 5.56v8.88L10 18.885l7.617-4.443V5.56L10 1.116ZM2.992 6.265v7.47L9.395 10 2.992 6.265Zm.3 8 6.403 3.736v-7.47l-6.403 3.735Zm7.013 3.736 6.403-3.735-6.403-3.735V18Zm6.703-4.266v-7.47L10.605 10l6.403 3.735Zm-.3-8-6.403-3.736v7.47l6.403-3.734ZM9.695 1.999 3.292 5.735 9.695 9.47V2Z",fill:"#C2C2C2"},null,-1),r("path",{d:"M10 1.012c.086 0 .166.023.234.064L12.36 2.29a.457.457 0 1 1-.454.793l-1.449-.828V4.82a.457.457 0 1 1-.914 0V2.256l-1.449.828a.457.457 0 0 1-.453-.793l2.126-1.215A.455.455 0 0 1 10 1.012ZM5.22 4.295c.122.221.042.5-.18.62l-1.571.866 2.487 1.382a.457.457 0 1 1-.444.8L3.178 6.664l-.034 1.517a.457.457 0 0 1-.913-.02l.056-2.514a.457.457 0 0 1 .236-.39L4.6 4.115a.457.457 0 0 1 .62.18ZM17.714 8.172a.457.457 0 0 1-.914 0V6.678l-2.312 1.284a.457.457 0 0 1-.444-.8l2.488-1.381-1.572-.865a.457.457 0 0 1 .44-.8l2.077 1.142c.146.08.237.233.237.4v2.514ZM17.713 11.828a.457.457 0 1 0-.914 0v1.494l-2.311-1.284a.457.457 0 0 0-.444.8l2.488 1.381-1.572.865a.457.457 0 0 0 .44.8l2.077-1.142a.457.457 0 0 0 .237-.4v-2.514ZM5.04 15.084a.457.457 0 0 1-.44.8l-2.077-1.142a.457.457 0 0 1-.236-.39l-.056-2.514a.457.457 0 0 1 .914-.02l.033 1.517 2.334-1.297a.457.457 0 1 1 .444.8L3.47 14.218l1.572.865ZM10.234 18.924a.455.455 0 0 1-.467 0L7.64 17.71a.457.457 0 1 1 .453-.793l1.45.828V15.18a.457.457 0 0 1 .913 0v2.564l1.45-.828a.457.457 0 0 1 .453.793l-2.126 1.215ZM8.094 8.384a.457.457 0 0 0-.453.794l1.902 1.087v2.173a.457.457 0 0 0 .914 0v-2.173l1.903-1.087a.457.457 0 0 0-.454-.793L10 9.474l-1.906-1.09Z",fill:"#141414"},null,-1)];var wt={render:function(r,n){return t(),e("svg",yt,mt)}},bt={},Et={},At={},It={}.toString,Bt=Array.isArray||function(t){return"[object Array]"==It.call(t)},Ct=Bt;Pt.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(Pn){return!1}}();var Rt=Pt.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function Pt(t,e,r){return Pt.TYPED_ARRAY_SUPPORT||this instanceof Pt?"number"==typeof t?Ut(this,t):function(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return function(t,e,r,n){if(r<0||e.byteLength=Rt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Rt.toString(16)+" bytes");return 0|t}function Tt(t,e){var r;return Pt.TYPED_ARRAY_SUPPORT?(r=new Uint8Array(e)).__proto__=Pt.prototype:(null===(r=t)&&(r=new Pt(e)),r.length=e),r}function Ut(t,e){var r=Tt(t,e<0?0:0|St(e));if(!Pt.TYPED_ARRAY_SUPPORT)for(var n=0;n55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function kt(t){return Pt.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:("string"!=typeof t&&(t=""+t),0===t.length?0:Mt(t).length)}Pt.TYPED_ARRAY_SUPPORT&&(Pt.prototype.__proto__=Uint8Array.prototype,Pt.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Pt[Symbol.species]===Pt&&Object.defineProperty(Pt,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),Pt.prototype.write=function(t,e,r){void 0===e||void 0===r&&"string"==typeof e?(r=this.length,e=0):isFinite(e)&&(e|=0,isFinite(r)?r|=0:r=void 0);var n=this.length-e;if((void 0===r||r>n)&&(r=n),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,e,r,n){return function(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}(Mt(e,t.length-r),t,r,n)}(this,t,e,r)},Pt.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!Pt.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},Nt.getSymbolTotalCodewords=function(t){return xt[t]},Nt.getBCHDigit=function(t){for(var e=0;0!==t;)e++,t>>>=1;return e},Nt.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');Lt=t},Nt.isKanjiModeEnabled=function(){return void 0!==Lt},Nt.toSJIS=function(t){return Lt(t)};var Ot,Dt={};function Ft(){this.buffer=[],this.length=0}(Ot=Dt).L={bit:1},Ot.M={bit:0},Ot.Q={bit:3},Ot.H={bit:2},Ot.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},Ot.from=function(t,e){if(Ot.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return Ot.L;case"m":case"medium":return Ot.M;case"q":case"quartile":return Ot.Q;case"h":case"high":return Ot.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(Pn){return e}},Ft.prototype={get:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Yt=Ft,Vt=At;function zt(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=Vt.alloc(t*t),this.reservedBit=Vt.alloc(t*t)}zt.prototype.set=function(t,e,r,n){var o=t*this.size+e;this.data[o]=r,n&&(this.reservedBit[o]=!0)},zt.prototype.get=function(t,e){return this.data[t*this.size+e]},zt.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},zt.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var jt=zt,Ht={};!function(t){var e=Nt.getSymbolSize;t.getRowColCoords=function(t){if(1===t)return[];for(var r=Math.floor(t/7)+2,n=e(t),o=145===n?26:2*Math.ceil((n-13)/(2*r-2)),i=[n-7],a=1;a=0&&t<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(t){for(var r=t.size,n=0,o=0,i=0,a=null,s=null,u=0;u=5&&(n+=e+(o-5)),a=f,o=1),(f=t.get(l,u))===s?i++:(i>=5&&(n+=e+(i-5)),s=f,i=1)}o>=5&&(n+=e+(o-5)),i>=5&&(n+=e+(i-5))}return n},t.getPenaltyN2=function(t){for(var e=t.size,n=0,o=0;o=10&&(1488===o||93===o)&&r++,i=i<<1&2047|t.get(s,a),s>=10&&(1488===i||93===i)&&r++}return r*n},t.getPenaltyN4=function(t){for(var e=0,r=t.data.length,n=0;n=0;){for(var i=o[0],a=0;a0?o-4:o;for(r=0;r>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===i&&(e=ae[t.charCodeAt(r)]<<2|ae[t.charCodeAt(r+1)]>>4,a[s++]=255&e);1===i&&(e=ae[t.charCodeAt(r)]<<10|ae[t.charCodeAt(r+1)]<<4|ae[t.charCodeAt(r+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},fromByteArray:function(t){for(var e,r=t.length,n=r%3,o=[],i=16383,a=0,s=r-n;as?s:a+i));1===n?(e=t[r-1],o.push(ie[e>>2]+ie[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],o.push(ie[e>>10]+ie[e>>4&63]+ie[e<<2&63]+"="));return o.join("")}},ie=[],ae=[],se="undefined"!=typeof Uint8Array?Uint8Array:Array,ue="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=0,fe=ue.length;le0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function he(t,e,r){for(var n,o,i=[],a=e;a>18&63]+ie[o>>12&63]+ie[o>>6&63]+ie[63&o]);return i.join("")}ae["-".charCodeAt(0)]=62,ae["_".charCodeAt(0)]=63;var de={ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ read:function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,f=-7,c=r?o-1:0,h=r?-1:1,d=t[e+c];for(c+=h,i=d&(1<<-f)-1,d>>=-f,f+=s;f>0;i=256*i+t[e+c],c+=h,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=n;f>0;a=256*a+t[e+c],c+=h,f-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=l}return(d?-1:1)*a*Math.pow(2,i-n)},write:function(t,e,r,n,o,i){var a,s,u,l=8*i-o-1,f=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=f?(s=0,a=f):a+c>=1?(s=(e*u-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<0;t[r+d]=255&a,d+=p,a/=256,l-=8);t[r+d-p]|=128*g}}; /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ !function(t){var e=oe,r=de,n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},t.INSPECT_MAX_BYTES=50;var o=2147483647;function i(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return s(t,e,r)}function s(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var r=0|d(t,e),n=i(r),o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(F(t,Uint8Array)){var e=new Uint8Array(t);return c(e.buffer,e.byteOffset,e.byteLength)}return f(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(F(t,ArrayBuffer)||t&&F(t.buffer,ArrayBuffer))return c(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(F(t,SharedArrayBuffer)||t&&F(t.buffer,SharedArrayBuffer)))return c(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|h(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||Y(t.length)?i(0):f(t);if("Buffer"===t.type&&Array.isArray(t.data))return f(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function l(t){return u(t),i(t<0?0:0|h(t))}function f(t){for(var e=t.length<0?0:0|h(t.length),r=i(e),n=0;n=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function d(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||F(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return O(t).length;default:if(o)return n?-1:x(t).length;e=(""+e).toLowerCase(),o=!0}}function p(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return S(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return R(this,e,r);case"latin1":case"binary":return P(this,e,r);case"base64":return I(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function g(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Y(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,o){var i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var f=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){for(var c=!0,h=0;ho&&(n=o):n=o;var i=e.length;n>i/2&&(n=i/2);for(var a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function I(t,r,n){return 0===r&&n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function B(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:l>223?3:l>191?2:1;if(o+c<=r)switch(c){case 1:l<128&&(f=l);break;case 2:128==(192&(i=t[o+1]))&&(u=(31&l)<<6|63&i)>127&&(f=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(f=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(f=u)}null===f?(f=65533,c=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),o+=c}return function(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var r="",n=0;for(;nn.length?a.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else{if(!a.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o)}o+=i.length}return n},a.byteLength=d,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;er&&(e+=" ... "),""},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,o){if(F(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),u=Math.min(i,s),l=this.slice(n,o),f=t.slice(e,r),c=0;c>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return m(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":case"latin1":case"binary":return b(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function R(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function _(t,e,r,n,o,i){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function M(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function k(t,e,n,o,i){return e=+e,n>>>=0,i||M(t,0,n,4),r.write(t,e,n,o,23,4),n+4}function L(t,e,n,o,i){return e=+e,n>>>=0,i||M(t,0,n,8),r.write(t,e,n,o,52,8),n+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||U(t,e,this.length);for(var n=this[t],o=1,i=0;++i>>=0,e>>>=0,r||U(t,e,this.length);for(var n=this[t+--e],o=1;e>0&&(o*=256);)n+=this[t+--e]*o;return n},a.prototype.readUint8=a.prototype.readUInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),this[t]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||U(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||U(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return t>>>=0,e||U(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||U(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||U(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||U(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||U(t,4,this.length),r.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||U(t,4,this.length),r.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||U(t,8,this.length),r.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||U(t,8,this.length),r.read(this,t,!1,52,8)},a.prototype.writeUintLE=a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e>>>=0,r>>>=0,n)||_(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,n)||_(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},a.prototype.writeUint8=a.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);_(this,t,e,r,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i>0)-s&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){var o=Math.pow(2,8*r-1);_(this,t,e,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||_(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return k(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return k(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function O(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function D(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function F(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Y(t){return t!=t}var V=function(){for(var t="0123456789abcdef",e=new Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)e[n+o]=t[r]+t[o];return e}()}(ne);var pe=At,ge=Gt,ve=ne.Buffer;function ye(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}ye.prototype.initialize=function(t){this.degree=t,this.genPoly=ge.generateECPolynomial(this.degree)},ye.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var e=pe.alloc(this.degree),r=ve.concat([t,e],t.length+this.degree),n=ge.mod(r,this.genPoly),o=this.degree-n.length;if(o>0){var i=pe.alloc(this.degree);return n.copy(i,o),i}return n};var me=ye,we={},be={},Ee={isValid:function(t){return!isNaN(t)&&t>=1&&t<=40}},Ae={},Ie="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",Be="(?:(?![A-Z0-9 $%*+\\-./:]|"+(Ie=Ie.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";Ae.KANJI=new RegExp(Ie,"g"),Ae.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ae.BYTE=new RegExp(Be,"g"),Ae.NUMERIC=new RegExp("[0-9]+","g"),Ae.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var Ce=new RegExp("^"+Ie+"$"),Re=new RegExp("^[0-9]+$"),Pe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ae.testKanji=function(t){return Ce.test(t)},Ae.testNumeric=function(t){return Re.test(t)},Ae.testAlphanumeric=function(t){return Pe.test(t)},function(t){var e=Ee,r=Ae;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,r){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(r))throw new Error("Invalid version: "+r);return r>=1&&r<10?t.ccBits[0]:r<27?t.ccBits[1]:t.ccBits[2]},t.getBestModeForData=function(e){return r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.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,r){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(Pn){return r}}}(be),function(t){var e=Nt,r=$t,n=Dt,o=be,i=Ee,a=Bt,s=e.getBCHDigit(7973);function u(t,e){return o.getCharCountIndicator(t,e)+4}function l(t,e){var r=0;return t.forEach((function(t){var n=u(t.mode,e);r+=n+t.getBitsLength()})),r}t.from=function(t,e){return i.isValid(t)?parseInt(t,10):e},t.getCapacity=function(t,n,a){if(!i.isValid(t))throw new Error("Invalid QR Code version");void 0===a&&(a=o.BYTE);var s=8*(e.getSymbolTotalCodewords(t)-r.getTotalCodewordsCount(t,n));if(a===o.MIXED)return s;var l=s-u(a,t);switch(a){case o.NUMERIC:return Math.floor(l/10*3);case o.ALPHANUMERIC:return Math.floor(l/11*2);case o.KANJI:return Math.floor(l/13);case o.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){var i,s=n.from(r,n.M);if(a(e)){if(e.length>1)return function(e,r){for(var n=1;n<=40;n++)if(l(e,n)<=t.getCapacity(n,r,o.MIXED))return n}(e,s);if(0===e.length)return 1;i=e[0]}else i=e;return function(e,r,n){for(var o=1;o<=40;o++)if(r<=t.getCapacity(o,n,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");for(var r=t<<12;e.getBCHDigit(r)-s>=0;)r^=7973<=0;)n^=1335<0&&(r=this.data.substr(e),n=parseInt(r,10),t.put(n,3*o+1))};var Le=ke,Ne=be,xe=["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 Oe(t){this.mode=Ne.ALPHANUMERIC,this.data=t}Oe.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},Oe.prototype.getLength=function(){return this.data.length},Oe.prototype.getBitsLength=function(){return Oe.getBitsLength(this.data.length)},Oe.prototype.write=function(t){var e;for(e=0;e+2<=this.data.length;e+=2){var r=45*xe.indexOf(this.data[e]);r+=xe.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(xe.indexOf(this.data[e]),6)};var De=Oe,Fe=At,Ye=be;function Ve(t){this.mode=Ye.BYTE,this.data=Fe.from(t)}Ve.getBitsLength=function(t){return 8*t},Ve.prototype.getLength=function(){return this.data.length},Ve.prototype.getBitsLength=function(){return Ve.getBitsLength(this.data.length)},Ve.prototype.write=function(t){for(var e=0,r=this.data.length;e=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}};var Ze,qe=Ke,$e={exports:{}};$e.exports=Ze={single_source_shortest_paths:function(t,e,r){var n={},o={};o[e]=0;var i,a,s,u,l,f,c,h=Ze.PriorityQueue.make();for(h.push(e,0);!h.empty();)for(s in a=(i=h.pop()).value,u=i.cost,l=t[a]||{})l.hasOwnProperty(s)&&(f=u+l[s],c=o[s],(void 0===o[s]||c>f)&&(o[s]=f,h.push(s,f),n[s]=a));if(void 0!==r&&void 0===o[r]){var d=["Could not find a path from ",e," to ",r,"."].join("");throw new Error(d)}return n},extract_shortest_path_from_predecessor_list:function(t,e){for(var r=[],n=e;n;)r.push(n),t[n],n=t[n];return r.reverse(),r},find_path:function(t,e,r){var n=Ze.single_source_shortest_paths(t,e,r);return Ze.extract_shortest_path_from_predecessor_list(n,r)},PriorityQueue:{make:function(t){var e,r=Ze.PriorityQueue,n={};for(e in t=t||{},r)r.hasOwnProperty(e)&&(n[e]=r[e]);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 r={value:t,cost:e};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}},function(t){var e=be,r=Le,n=De,o=ze,i=qe,a=Ae,s=Nt,u=$e.exports;function l(t){return unescape(encodeURIComponent(t)).length}function f(t,e,r){for(var n,o=[];null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function c(t){var r,n,o=f(a.NUMERIC,e.NUMERIC,t),i=f(a.ALPHANUMERIC,e.ALPHANUMERIC,t);return s.isKanjiModeEnabled()?(r=f(a.BYTE,e.BYTE,t),n=f(a.KANJI,e.KANJI,t)):(r=f(a.BYTE_KANJI,e.BYTE,t),n=[]),o.concat(i,r,n).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,a){switch(a){case e.NUMERIC:return r.getBitsLength(t);case e.ALPHANUMERIC:return n.getBitsLength(t);case e.KANJI:return i.getBitsLength(t);case e.BYTE:return o.getBitsLength(t)}}function d(t,a){var u,l=e.getBestModeForData(t);if((u=e.from(a,l))!==e.BYTE&&u.bit=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(a))},t.rawSplit=function(e){return t.fromArray(c(e,s.isKanjiModeEnabled()))}}(_e);var Je=At,Qe=Nt,We=Dt,Ge=Yt,Xe=jt,tr=Ht,er=Kt,rr=qt,nr=$t,or=me,ir=we,ar=Se,sr=be,ur=_e,lr=Bt;function fr(t,e,r){var n,o,i=t.size,a=ar.getEncodedBits(e,r);for(n=0;n<15;n++)o=1==(a>>n&1),n<6?t.set(n,8,o,!0):n<8?t.set(n+1,8,o,!0):t.set(i-15+n,8,o,!0),n<8?t.set(8,i-n-1,o,!0):n<9?t.set(8,15-n-1+1,o,!0):t.set(8,15-n-1,o,!0);t.set(i-8,8,1,!0)}function cr(t,e,r){var n=new Ge;r.forEach((function(e){n.put(e.mode.bit,4),n.put(e.getLength(),sr.getCharCountIndicator(e.mode,t)),e.write(n)}));var o=8*(Qe.getSymbolTotalCodewords(t)-nr.getTotalCodewordsCount(t,e));for(n.getLengthInBits()+4<=o&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);for(var i=(o-n.getLengthInBits())/8,a=0;a=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?t.set(i+s,a+u,!0,!0):t.set(i+s,a+u,!1,!0))}(f,e),function(t){for(var e=t.size,r=8;r=7&&function(t,e){for(var r,n,o,i=t.size,a=ir.getEncodedBits(e),s=0;s<18;s++)r=Math.floor(s/3),n=s%3+i-8-3,o=1==(a>>s&1),t.set(r,n,o,!0),t.set(n,r,o,!0)}(f,e),function(t,e){for(var r=t.size,n=-1,o=r-1,i=7,a=0,s=r-1;s>0;s-=2)for(6===s&&s--;;){for(var u=0;u<2;u++)if(!t.isReserved(o,s-u)){var l=!1;a>>i&1)),t.set(o,s-u,l),-1==--i&&(a++,i=7)}if((o+=n)<0||r<=o){o-=n,n=-n;break}}}(f,u),isNaN(n)&&(n=rr.getBestMask(f,fr.bind(null,f,r))),rr.applyMask(n,f),fr(f,r,n),{modules:f,version:e,errorCorrectionLevel:r,maskPattern:n,segments:o}}Et.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");var r,n,o=We.M;return void 0!==e&&(o=We.from(e.errorCorrectionLevel,We.M),r=ir.from(e.version),n=rr.from(e.maskPattern),e.toSJISFunc&&Qe.setToSJISFunction(e.toSJISFunc)),hr(t,r,o,n)};var dr={},pr={};!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");var 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");var r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}t.getOptions=function(t){t||(t={}),t.color||(t.color={});var r=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,n=t.width&&t.width>=21?t.width:void 0,o=t.scale||4;return{width:n,scale:n?4:o,margin:r,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,r){var n=t.getScale(e,r);return Math.floor((e+2*r.margin)*n)},t.qrToImageData=function(e,r,n){for(var o=r.modules.size,i=r.modules.data,a=t.getScale(o,n),s=Math.floor((o+2*n.margin)*a),u=n.margin*a,l=[n.color.light,n.color.dark],f=0;f=u&&c>=u&&f':"",u="0&&u>0&&t[s-1]||(n+=i?mr("M",u+r,.5+l+r):mr("m",o,0),o=0,i=!1),u+1',l='viewBox="0 0 '+a+" "+a+'"',f=''+s+u+"\n";return"function"==typeof r&&r(null,f),f};var wr=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then},br=Et,Er=dr,Ar=gr;function Ir(t,e,r,n,o){var i=[].slice.call(arguments,1),a=i.length,s="function"==typeof i[a-1];if(!s&&!wr())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(r=e,e=n=void 0):2!==a||e.getContext||(n=r,r=e,e=void 0),new Promise((function(o,i){try{var a=br.create(r,n);o(t(a,e,n))}catch(Pn){i(Pn)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(o=r,r=e,e=n=void 0):3===a&&(e.getContext&&void 0===o?(o=n,n=void 0):(o=n,n=r,r=e,e=void 0));try{var u=br.create(r,n);o(null,t(u,e,n))}catch(Pn){o(Pn)}}bt.create=br.create,bt.toCanvas=Ir.bind(null,Er.render),bt.toDataURL=Ir.bind(null,Er.renderToDataURL),bt.toString=Ir.bind(null,(function(t,e,r){return Ar.render(t,r)}));const Br={components:{Modal:_},props:{url:{type:String,default:null},show:{type:Boolean,default:!1}},setup(t,e){const r=c(null),n=c(null);function o(e){return new Promise(((r,n)=>{t.url&&bt.toCanvas(e,t.url,{width:300},(function(t,e){t?n(t):r()})),r()}))}return h((()=>t.url),(()=>{n.value&&o(n.value)})),h((()=>t.show),(()=>{d((()=>{n.value&&t.show&&o(n.value)}))})),p((()=>{o(n.value)})),{qrCode:r,canvas:n,onUpdateShow:function(t){e.emit("update:show",t)}}}},Cr={ref:"canvas",height:"300",width:"300",class:"product-viewer-qr"};const Rr=["href"],Pr={key:0,class:"loader tiny"},Sr={class:"ar-icon-dual-column"},Tr={key:0},Ur={key:1},_r={key:2,class:"ar-button-loader loader tiny"};var Mr=T({components:{ARIcon:wt,ProductViewerQRModal:T(Br,[["render",function(e,n,o,i,s,u){const l=g("Modal");return t(),v(l,{show:o.show,"show-close":!0,class:"product-viewer-qr-modal","onUpdate:show":i.onUpdateShow},{default:y((()=>[n[0]||(n[0]=r("div",{class:"qr-scan-text"},"Scan this QR code using the camera on your iOS device.",-1)),r("canvas",Cr,null,512),n[1]||(n[1]=r("div",{class:"ar-supported-browsers"},[r("span",{class:"semibold"},"Note:"),a(" AR requires a device running iPadOS or iOS 12 or later.")],-1))])),_:1,__:[0,1]},8,["show","onUpdate:show"])}]])},props:{product:{type:Object,default:null}},emits:["arStatus"],async setup(t,{emit:e}){const{mounted:r}=M(),n=m(),o=w(),i=c(!1),a=c(!1),s=c(null),u=c(!0),l=c(!1),f=b((()=>r&&s.value&&s.value.url?z(s.value.url,`${S.VITE_STOREFRONT_BASE_URL}${o.path}`,t.product.slug):"")),d=b((()=>r&&t.product?function(t,e,r){return t?`${S.VITE_STOREFRONT_BASE_URL}${r.resolve({name:"product",params:{id:t,slug:e},query:{arlaunch:"true"}}).href}`:""}(t.product.hashKey,t.product.slug,n):"")),g=b((()=>r&&f.value&&!u.value&&(Y()||H(o)||V()))),v=b((()=>H(o)));async function y(){t.product&&t.product.hashKey?(u.value=!0,e("arStatus",D.LOADING),s.value=await Z(t.product.hashKey),e("arStatus",D.LOADED),u.value=!1,void 0===s.value&&e("arStatus",D.NOTFOUND)):console.warn("Failed to load AR model")}function E(){"hidden"===document.visibilityState&&A()}function A(){a.value=!1,document.removeEventListener("visibilitychange",E)}return h((()=>t.product),(async()=>{y()})),p((async()=>{l.value=k.isChromeiOS(),await y()})),{modelUrl:f,arLaunchUrl:d,model:s,loadingModel:u,loadingViewer:a,openViewer:async function(t){if(V()&&!v.value)U.track("Click AR QR Code Button"),i.value=!0;else if(!s.value||u.value);else if(g.value){U.track("Click AR Button"),a.value=!0,document.addEventListener("visibilitychange",E),setTimeout((()=>{A()}),2e4);const e=document.createElement("a");e.appendChild(document.createElement("img")),e.setAttribute("rel","ar"),e.setAttribute("href",t),e.click()}},showModal:i,closeQRModal:function(t){i.value=t},supportsAR:Y,iOSChrome:l,showButton:g,debugButton:v,icon:"/assets/icon-ios-ar.1652d535.png"}}},[["render",function(n,o,u,l,f,c){const h=g("ARIcon"),d=g("ProductViewerQRModal");return t(),e(s,null,[l.showButton?(t(),e("a",{key:0,ref:"arButton",rel:"ar",href:l.modelUrl,type:"model/vnd.usdz+zip",class:"product-viewer-button-dual-column","aria-label":"View product in AR",onClick:o[0]||(o[0]=E((t=>l.openViewer(l.modelUrl)),["prevent"]))},[l.loadingModel?(t(),e("span",Pr)):(t(),e(s,{key:1},[r("span",Sr,[A(h)]),l.loadingViewer&&l.iOSChrome?(t(),e("span",Tr,"Loading")):(t(),e("span",Ur,[o[1]||(o[1]=a("View in your space",-1)),l.supportsAR()||l.debugButton?i("",!0):(t(),e(s,{key:0},[],64))])),l.loadingViewer&&l.iOSChrome?(t(),e("span",_r)):i("",!0)],64))],8,Rr)):i("",!0),A(d,{show:l.showModal,url:l.arLaunchUrl,"onUpdate:show":l.closeQRModal},null,8,["show","url","onUpdate:show"])],64)}],["__scopeId","data-v-eae22c5a"]]);const kr={class:"product-image-controls"};var Lr=T({name:"ProductImageControls",components:{ProductViewerButton:Mr,ZoomIcon:Q},props:{product:{type:Object,default:null}},emits:["zoom"],setup(){const{mounted:t}=M();return{mounted:t}}},[["render",function(n,o,i,a,s,u){const l=g("ZoomIcon");return t(),e("div",kr,[r("button",{class:"product-buy-image-expand button white filled zoom-btn",title:"Open Fullscreen",onClick:o[0]||(o[0]=t=>n.$emit("zoom"))},[A(l)])])}],["__scopeId","data-v-1682665c"]]);const Nr={key:0,class:"specs"},xr={class:"specs-values-column"},Or={key:0,class:"flex-grid specs-rows"},Dr={class:"flex-col-4-sm specs-title"},Fr={class:"flex-col-8-sm specs-value"},Yr={key:0},Vr={class:"flex-grid specs-rows"},zr={class:"flex-col-8-sm specs-value"},jr={class:"flex-grid specs-rows"},Hr={class:"flex-col-8-sm specs-value"},Kr={key:0,class:"flex-grid specs-rows"},Zr={class:"flex-col-8-sm specs-value"},qr=["href"],$r=f({__name:"ProductSpecs",props:{product:{type:Object,required:!0,default:()=>({spec:[],skuNo:"",legalLabelsUrl:"",box:[]})}},setup(n){const o=n,{data:f,loading:c,init:h}=L("pdf-law-label-text","View Law Label(PDF)"),d=f,p=c,v=b((()=>{var t;return null!=(t=null==d?void 0:d.value)?t:""})),m=b((()=>{var t;return!p.value&&v.value&&(null==(t=null==o?void 0:o.product)?void 0:t.legalLabelsUrl)})),w=b((()=>{var t,e;return(null==(e=null==(t=o.product)?void 0:t.box)?void 0:e.length)?o.product.box.filter((t=>t.height&&t.width&&t.depth)).map(((t,e)=>({height:Math.ceil(t.height),width:Math.ceil(t.width),depth:Math.ceil(t.depth),index:e}))):[]})),E=()=>U.track("PDP_Open_Law_Label",{device:window.screen.width<967?"Mobile":"Desktop"}),C=t=>{const e=t.toLowerCase().split(" ");for(let r=0;r{const f=g("router-link");return n.product&&n.product.spec&&n.product.spec.length?(t(),e("div",Nr,[o[4]||(o[4]=r("h3",{class:"detail-info-title top-title"},"Specifications",-1)),r("div",xr,[(t(!0),e(s,null,u(n.product.spec,((s,u)=>(t(),e("div",{key:s.id},[u[...o[0]||(o[0]=[a("Measure For Delivery",-1)])])),_:1,__:[0]})])):i("",!0)])])):i("",!0)])))),128)),r("div",Vr,[o[1]||(o[1]=r("div",{class:"flex-col-4-sm specs-title"},[r("span",null,"SKU No.")],-1)),r("div",zr,[r("span",null,l(n.product.skuNo),1)])]),r("div",jr,[o[2]||(o[2]=r("div",{class:"flex-col-4-sm specs-title"},[r("span",null,"Box Dimensions")],-1)),r("div",Hr,[(t(!0),e(s,null,u(w.value,(r=>(t(),e("div",{key:`dimension-${r.index}`},l(r.height)+'"H x '+l(r.width)+'"W x '+l(r.depth)+'"L',1)))),128))])]),m.value?(t(),e("div",Kr,[o[3]||(o[3]=r("div",{class:"flex-col-4-sm specs-title"},[r("span",null,"Document")],-1)),r("div",Zr,[r("a",{href:n.product.legalLabelsUrl,target:"_blank",class:"link",onClick:E},l(v.value),9,qr)])])):i("",!0)])])):i("",!0)}}});const Jr={DESCRIPTION:"Description",FEATURES:"Features",SPECIFICATIONS:"Specifications",CARE:"Care",ASSEMBLY_INSTRUCTIONS:"Assembly Instructions",CARE_ASSEMBLY:"Care & Assembly"},Qr={name:"ProductNewInfo",components:{ProductFeature:vt,ResponsiveImage:N,PreserveRatio:X,ProductSpecs:T($r,[["__scopeId","data-v-df8c5d8e"]]),ProductCareAssembly:ht,Divider:F,ZoomIcon:Q,ProductImageControls:Lr,ProductViewerButton:Mr,ProductCare:at,ProductAssembly:nt},props:{showCollections:Boolean,product:{type:Object,default:null},activeMedia:{default:0,type:Number},lastImage:{default:null,type:Object}},emits:["interaction","openGallery"],setup(t){const{mounted:e}=M(),r=[];t.product&&0!==t.product.description.length&&(r.push(Jr.DESCRIPTION),t.product&&0!==t.product.feature.length&&r.push(Jr.FEATURES)),t.product&&0!==t.product.spec.length&&r.push(Jr.SPECIFICATIONS),t.product&&0!==t.product.care.length&&t.product.assemblyInstructionsUrl&&r.push(Jr.CARE_ASSEMBLY),t.product&&0!==t.product.care.length&&!t.product.assemblyInstructionsUrl&&r.push(Jr.CARE),t.product&&!t.product.care.length&&t.product.assemblyInstructionsUrl&&r.push(Jr.ASSEMBLY_INSTRUCTIONS);return{reasons:r,mounted:e,productDescriptionSanitized:b((()=>x(t.product.description))),PRODUCT_INFO_REASONS:Jr}},data:()=>({selected:[-1],count:0}),methods:{onAccordionClick(t){const e=this.selected.indexOf(t);e>-1?this.selected.splice(e,1):this.selected.push(t),this.$emit("interaction",this.reasons[t])},isItemSelected(t){return this.selected.includes(t)},ItemSelected(t){return this.isItemSelected(t)?"af-minus":"af-plus"},onExpandImage(){this.$emit("openGallery"),U.track("PDP Expand Product Image",{productId:this.product.hashKey,index:this.product.media&&this.product.media.length?this.product.media.length-1:null})}}},Wr={key:0,class:"product-info"},Gr={class:"content desktop flex-grid"},Xr={class:"product-info details"},tn={key:0,class:"description-container row large"},en=["innerHTML"],rn={class:"product-info details"},nn={class:"product-info details"},on={class:"product-info details"},an={key:0,class:"dimension-image-border"},sn={class:"dimension-img"},un={class:"Product-info content mobile"},ln=["onClickPassive"],fn={class:"reason-title"},cn={class:"reason-text"},hn={key:0},dn=["innerHTML"],pn={key:1},gn={key:2},vn={key:0,class:"dimension-image-border"},yn={class:"dimension-img"},mn={key:3},wn={key:4,class:"Product-info assembly"},bn={key:5};var En=T(Qr,[["render",function(n,o,a,f,c,h){const d=g("ProductFeature"),p=g("ProductSpecs"),m=g("ProductCareAssembly"),w=g("ResponsiveImage"),b=g("ProductImageControls"),E=g("PreserveRatio"),I=g("Divider"),B=g("ProductViewerButton"),R=g("ProductCare"),P=g("ProductAssembly");return a.product?(t(),e("div",Wr,[o[3]||(o[3]=r("h2",{class:"product-info heading light"},"Details",-1)),r("div",Gr,[r("div",Xr,[a.product.description?(t(),e("div",tn,[o[2]||(o[2]=r("h3",{class:"product-info detail-info-title"},"Description",-1)),r("p",{innerHTML:f.productDescriptionSanitized},null,8,en)])):i("",!0)]),r("div",rn,[A(d,{product:a.product,class:"row large"},null,8,["product"])]),r("div",nn,[A(p,{product:a.product,class:"row large"},null,8,["product"])]),r("div",on,[a.product.assemblyInstructionsUrl?(t(),v(m,{key:0,product:a.product,class:"row large"},null,8,["product"])):i("",!0)]),a.lastImage?(t(),e("div",an,[(t(),v(E,{key:a.lastImage.url,width:2890,height:1500,class:"row large"},{default:y((()=>[a.lastImage&&f.mounted?(t(),e("div",{ref:"dimensionContainerDesktop",key:a.lastImage.url,class:"product-info dimension-container",onClick:o[0]||(o[0]=(...t)=>h.onExpandImage&&h.onExpandImage(...t))},[r("div",sn,[A(w,{url:a.lastImage.url+"?fit=max&w={width}&q={q}",lazy:!1,alt:`Detailed dimensions of ${a.product.title}.`,height:399,width:768},null,8,["url","alt"])])])):i("",!0),a.lastImage&&"IMAGE"===a.lastImage.type?(t(),v(b,{key:1,product:a.product,class:"product-info-image-controls",onZoom:h.onExpandImage},null,8,["product","onZoom"])):i("",!0)])),_:1}))])):i("",!0)]),r("div",un,[(t(!0),e(s,null,u(f.reasons,((n,s)=>(t(),e("div",{key:s,ref_for:!0,ref:"mobileContentWrapper"+s,class:"mobile-content-wrapper"},[s<=f.reasons.length?(t(),v(I,{key:0,"no-margin":!0,height:"1px"})):i("",!0),r("div",{class:C(["mobile-content",{"mobile-content-clicked":h.isItemSelected(s)}]),onClickPassive:t=>h.onAccordionClick(s)},[r("h4",fn,[r("span",cn,l(n),1),r("span",{class:C(["accordion-icons af",[h.ItemSelected(s)]])},null,2)])],42,ln),r("div",{class:C(["accordion-content",[h.isItemSelected(s)&&"active"]])},[n===f.PRODUCT_INFO_REASONS.DESCRIPTION?(t(),e("div",hn,[r("p",{innerHTML:f.productDescriptionSanitized},null,8,dn)])):n===f.PRODUCT_INFO_REASONS.FEATURES?(t(),e("div",pn,[A(d,{product:a.product,class:"reason-description"},null,8,["product"])])):n===f.PRODUCT_INFO_REASONS.SPECIFICATIONS?(t(),e("div",gn,[a.lastImage?(t(),e("div",vn,[(t(),v(E,{key:a.lastImage.url,width:2890,height:1500,class:"row large"},{default:y((()=>[a.lastImage&&f.mounted?(t(),e("div",{ref_for:!0,ref:"dimensionContainerDesktop",key:a.lastImage.url,class:"product-info dimension-container",onClick:o[1]||(o[1]=(...t)=>h.onExpandImage&&h.onExpandImage(...t))},[r("div",yn,[A(w,{url:a.lastImage.url+"?fit=max&w={width}&q={q}",lazy:!1,alt:`Detailed dimensions of ${a.product.title}.`,height:399,width:768},null,8,["url","alt"])])])):i("",!0),a.lastImage&&"IMAGE"===a.lastImage.type?(t(),v(b,{key:1,product:a.product,class:"product-info-image-controls",onZoom:h.onExpandImage},null,8,["product","onZoom"])):i("",!0)])),_:1}))])):i("",!0),a.product&&f.mounted?(t(),e("div",{key:`product-viewer-button-${a.product.hashKey}-info-section`,class:"product-viewer-button-mobile-info-section"},[A(B,{product:a.product},null,8,["product"])])):i("",!0),A(p,{product:a.product,class:"reason-description",style:{"margin-top":"12px"}},null,8,["product"])])):n===f.PRODUCT_INFO_REASONS.CARE?(t(),e("div",mn,[A(R,{product:a.product,class:"reason-description"},null,8,["product"])])):n===f.PRODUCT_INFO_REASONS.ASSEMBLY_INSTRUCTIONS?(t(),e("div",wn,[A(P,{product:a.product,class:"reason-description"},null,8,["product"])])):n===f.PRODUCT_INFO_REASONS.CARE_ASSEMBLY?(t(),e("div",bn,[A(m,{product:a.product,class:"reason-description"},null,8,["product"])])):i("",!0)],2)])))),128)),A(I,{"no-margin":!0,height:"2px"})])])):i("",!0)}],["__scopeId","data-v-127cd18d"]]);const An={key:0,class:"rating"},In={class:"af af-star rating-star rating-star-filled"},Bn={key:0,class:"rating-star rating-star-half"},Cn={class:"af af-star-outlined rating-star rating-star-outlined"};var Rn=T({props:["max","value","showHalfStar"],computed:{stars(){return this.hasHalf?Math.floor(this.value):Math.round(this.value)},emptyStars(){return this.max-this.stars-(this.hasHalf?1:0)},hasHalf(){return this.showHalfStar&&Math.round(2*this.value)%2==1}}},[["render",function(n,o,a,l,f,c){return a.value&&c.stars?(t(),e("div",An,[(t(!0),e(s,null,u(c.stars,(r=>(t(),e("span",In)))),256)),c.hasHalf?(t(),e("div",Bn,o[0]||(o[0]=[r("span",{class:"af af-star-outlined rating-star-outlined"},null,-1),r("span",{class:"af af-star rating-star-filled"},null,-1)]))):i("",!0),(t(!0),e(s,null,u(c.emptyStars,(r=>(t(),e("span",Cn)))),256))])):i("",!0)}]]);export{En as P,Rn as R,q as V,X as a,z as b,Mr as c,Z as l,K as o,j as s}; //# sourceMappingURL=Rating.75fdfe78.js.map