@ecomplus/widget-martan 1.1.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,71 +1,11 @@
1
- var widgetMartan=function(t){function e(e){for(var n,i,o=e[0],a=e[1],s=0,u=[];s<o.length;s++)i=o[s],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&u.push(r[i][0]),r[i]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(l&&l(e);u.length;)u.shift()()}var n={},r={0:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[],n=r[t];if(0!==n)if(n)e.push(n[2]);else{var o=new Promise((function(e,i){n=r[t]=[e,i]}));e.push(n[2]=o);var a,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(t){return i.p+"widget-martan."+({}[t]||t)+".min.js"}(t);var l=new Error;a=function(e){s.onerror=s.onload=null,clearTimeout(u);var n=r[t];if(0!==n){if(n){var i=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",l.name="ChunkLoadError",l.type=i,l.request=o,n[1](l)}r[t]=void 0}};var u=setTimeout((function(){a({type:"timeout",target:s})}),12e4);s.onerror=s.onload=a,document.head.appendChild(s)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/assets/vendor/",i.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpwidgetMartan=window.webpackJsonpwidgetMartan||[],a=o.push.bind(o);o.push=e,o=o.slice();for(var s=0;s<o.length;s++)e(o[s]);var l=a;return i(i.s=77)}([function(t,e,n){"use strict";(function(t){var r=n(16);const{toString:i}=Object.prototype,{getPrototypeOf:o}=Object,a=(s=Object.create(null),t=>{const e=i.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())});var s;const l=t=>(t=t.toLowerCase(),e=>a(e)===t),u=t=>e=>typeof e===t,{isArray:c}=Array,d=u("undefined");const f=l("ArrayBuffer");const h=u("string"),p=u("function"),m=u("number"),g=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==a(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},_=l("Date"),w=l("File"),y=l("Blob"),b=l("FileList"),E=l("URLSearchParams");function C(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,i;if("object"!=typeof t&&(t=[t]),c(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let a;for(r=0;r<o;r++)a=i[r],e.call(null,t[a],a,t)}}function x(t,e){e=e.toLowerCase();const n=Object.keys(t);let r,i=n.length;for(;i-- >0;)if(r=n[i],e===r.toLowerCase())return r;return null}const T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,S=t=>!d(t)&&t!==T;const A=(O="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>O&&t instanceof O);var O;const R=l("HTMLFormElement"),k=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),j=l("RegExp"),P=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};C(n,(n,i)=>{let o;!1!==(o=e(n,i,t))&&(r[i]=o||n)}),Object.defineProperties(t,r)},N="abcdefghijklmnopqrstuvwxyz",D={DIGIT:"0123456789",ALPHA:N,ALPHA_DIGIT:N+N.toUpperCase()+"0123456789"};const I=l("AsyncFunction");e.a={isArray:c,isArrayBuffer:f,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=a(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e},isString:h,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:v,isUndefined:d,isDate:_,isFile:w,isBlob:y,isRegExp:j,isFunction:p,isStream:t=>g(t)&&p(t.pipe),isURLSearchParams:E,isTypedArray:A,isFileList:b,forEach:C,merge:function t(){const{caseless:e}=S(this)&&this||{},n={},r=(r,i)=>{const o=e&&x(n,i)||i;v(n[o])&&v(r)?n[o]=t(n[o],r):v(r)?n[o]=t({},r):c(r)?n[o]=r.slice():n[o]=r};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&C(arguments[t],r);return n},extend:(t,e,n,{allOwnKeys:i}={})=>(C(e,(e,i)=>{n&&p(e)?t[i]=Object(r.a)(e,n):t[i]=e},{allOwnKeys:i}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let i,a,s;const l={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),a=i.length;a-- >0;)s=i[a],r&&!r(s,t,e)||l[s]||(e[s]=t[s],l[s]=!0);t=!1!==n&&o(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:a,kindOfTest:l,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!m(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:R,hasOwnProperty:k,hasOwnProp:k,reduceDescriptors:P,freezeMethods:t=>{P(t,(e,n)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];p(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return c(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,n){return e.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:x,global:T,isContextDefined:S,ALPHABET:D,generateString:(t=16,e=D.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const i=c(t)?[]:{};return C(t,(t,e)=>{const o=n(t,r+1);!d(o)&&(i[e]=o)}),e[r]=void 0,i}}return t};return n(t,0)},isAsyncFn:I,isThenable:t=>t&&(g(t)||p(t))&&p(t.then)&&p(t.catch)}}).call(this,n(38))},function(t,e,n){"use strict";var r=n(0);function i(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}r.a.inherits(i,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=i.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{a[t]={value:t}}),Object.defineProperties(i,a),Object.defineProperty(o,"isAxiosError",{value:!0}),i.from=(t,e,n,a,s,l)=>{const u=Object.create(o);return r.a.toFlatObject(t,u,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),i.call(u,t.message,e,n,a,s),u.cause=t,u.name=t.name,l&&Object.assign(u,l),u},e.a=i},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},function(t,e){t.exports=void 0},function(t,e){t.exports=void 0},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,l;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);r&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=o[0],s={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return h}));var i="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!i)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=i&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,u=!1,c=function(){},d=null,f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,n,i){u=n,d=i||{};var a=r(t,e);return p(a),function(e){for(var n=[],i=0;i<a.length;i++){var s=a[i];(l=o[s.id]).refs--,n.push(l)}e?p(a=r(t,e)):a=[];for(i=0;i<n.length;i++){var l;if(0===(l=n[i]).refs){for(var u=0;u<l.parts.length;u++)l.parts[u]();delete o[l.id]}}}}function p(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(g(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i<n.parts.length;i++)a.push(g(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:a}}}}function m(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function g(t){var e,n,r=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(f){var i=l++;r=s||(s=m()),e=w.bind(null,r,i,!1),n=w.bind(null,r,i,!0)}else r=m(),e=y.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}var v,_=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function w(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=_(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function y(t,e){var n=e.css,r=e.media,i=e.sourceMap;if(r&&t.setAttribute("media",r),d.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},function(t,e,n){"use strict";var r={name:"Rating",props:{rating:{type:Number,default:5},color:{type:String,default:"#000000"}},data:()=>({stars:Array(5).fill(!1)}),mounted(){this.updateStars()},methods:{updateStars(){const t=Math.floor(this.rating);this.stars=this.stars.map((e,n)=>n<t)}},watch:{rating:"updateStars"}},i=(n(43),n(2)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{staticClass:"martan-rating"},t._l(t.stars,(function(e,r){return n("svg",{key:r,staticClass:"icon icon-tabler",class:t.stars[r]+" ? 'icon-tabler-star-filled' : icon-tabler-star",style:{color:t.color},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),n("path",{attrs:{d:t.stars[r]?"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z":"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z",fill:t.stars[r]?"currentColor":"none"}})])})),0)}),[],!1,null,null,null);e.a=o.exports},function(t,e,n){
2
- /*!
3
- * Bootstrap util.js v4.6.2 (https://getbootstrap.com/)
4
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
5
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
- */
7
- t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t){var e=this,r=!1;return n.default(this).one(i.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||i.triggerTransitionEnd(e)}),t),this}var i={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=n.default(t).css("transition-duration"),r=n.default(t).css("transition-delay"),i=parseFloat(e),o=parseFloat(r);return i||o?(e=e.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(e)+parseFloat(r))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){n.default(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],a=e[r],s=a&&i.isElement(a)?"element":null==(l=a)?""+l:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+o+'".')}var l},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?i.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===n.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=n.default.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return i.jQueryDetection(),n.default.fn.emulateTransitionEnd=r,n.default.event.special[i.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(n.default(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},i}(n(4))},function(t,e,n){"use strict";(function(t){var r=n(0),i=n(1),o=n(17);function a(t){return r.a.isPlainObject(t)||r.a.isArray(t)}function s(t){return r.a.endsWith(t,"[]")?t.slice(0,-2):t}function l(t,e,n){return t?t.concat(e).map((function(t,e){return t=s(t),!n&&e?"["+t+"]":t})).join(n?".":""):e}const u=r.a.toFlatObject(r.a,{},null,(function(t){return/^is[A-Z]/.test(t)}));e.a=function(e,n,c){if(!r.a.isObject(e))throw new TypeError("target must be an object");n=n||new(o.a||FormData);const d=(c=r.a.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!r.a.isUndefined(e[t])}))).metaTokens,f=c.visitor||v,h=c.dots,p=c.indexes,m=(c.Blob||"undefined"!=typeof Blob&&Blob)&&r.a.isSpecCompliantForm(n);if(!r.a.isFunction(f))throw new TypeError("visitor must be a function");function g(e){if(null===e)return"";if(r.a.isDate(e))return e.toISOString();if(!m&&r.a.isBlob(e))throw new i.a("Blob is not supported. Use a Buffer instead.");return r.a.isArrayBuffer(e)||r.a.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):t.from(e):e}function v(t,e,i){let o=t;if(t&&!i&&"object"==typeof t)if(r.a.endsWith(e,"{}"))e=d?e:e.slice(0,-2),t=JSON.stringify(t);else if(r.a.isArray(t)&&function(t){return r.a.isArray(t)&&!t.some(a)}(t)||(r.a.isFileList(t)||r.a.endsWith(e,"[]"))&&(o=r.a.toArray(t)))return e=s(e),o.forEach((function(t,i){!r.a.isUndefined(t)&&null!==t&&n.append(!0===p?l([e],i,h):null===p?e:e+"[]",g(t))})),!1;return!!a(t)||(n.append(l(i,e,h),g(t)),!1)}const _=[],w=Object.assign(u,{defaultVisitor:v,convertValue:g,isVisitable:a});if(!r.a.isObject(e))throw new TypeError("data must be an object");return function t(e,i){if(!r.a.isUndefined(e)){if(-1!==_.indexOf(e))throw Error("Circular reference detected in "+i.join("."));_.push(e),r.a.forEach(e,(function(e,o){!0===(!(r.a.isUndefined(e)||null===e)&&f.call(n,e,r.a.isString(o)?o.trim():o,i,w))&&t(e,i?i.concat(o):[o])})),_.pop()}}(e),n}}).call(this,n(71).Buffer)},function(t,e,n){"use strict";function r(t){const e=Math.floor((new Date-new Date(t))/1e3),n={ano:31536e3,"mês":2592e3,semana:604800,dia:86400,hora:3600,minuto:60,segundo:1};let r;if(0===e)return"Agora";for(const t in n)if(r=Math.floor(e/n[t]),r>0)return 1===r?`${r} ${t} atrás`:"mês"===t?r+" meses atrás":`${r} ${t}s atrás`}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(15),i=n.n(r),o=n(79),a=n(3),s=n(13),l=n(10),u=n(19),c=n(12),d=n(20),f=n(21),h=n(22),p=n(23),m={name:"VideoPlayer",props:{video:{type:String,required:!0}},data:()=>({isPlaying:!0}),methods:{play(){this.$refs.videoPlayer.paused||this.$refs.videoPlayer.ended?this.$refs.videoPlayer.play():this.$refs.videoPlayer.pause()},updateBtn(){this.isPlaying=this.$refs.videoPlayer.paused}},mounted:function(){this.$refs.playButton.addEventListener("click",this.play),this.$refs.videoPlayer.addEventListener("click",this.play),this.$refs.videoPlayer.addEventListener("play",this.updateBtn),this.$refs.videoPlayer.addEventListener("pause",this.updateBtn)}},g=(n(59),n(2)),v=Object(g.a)(m,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mt-player"},[e("video",{ref:"videoPlayer",attrs:{preload:"metadata"}},[e("source",{attrs:{src:this.video,type:"video/mp4"}})]),e("div",{staticClass:"mt-player__controls"},[e("button",{ref:"playButton",staticClass:"playPauseBtn",attrs:{title:"tocar vídeo"}},[this.isPlaying?e("svg",{staticClass:"icon icon-tabler icon-tabler-player-play",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M7 4v16l13 -8z"}})]):e("svg",{staticClass:"icon icon-tabler icon-tabler-player-pause",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}}),e("path",{attrs:{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}})])])])])}),[],!1,null,null,null).exports,_=n(7),w={name:"Quickview",components:{ThumbsPictures:u.a,Rating:_.a,VerifiedPurchase:c.a,AuthorAndRating:d.a,IsRecommended:f.a,ReviewBody:h.a,ReviewReply:p.a,VideoPlayer:v},props:{review:Object,isOpen:{type:Boolean,default:!1},starColor:String},data:()=>({glide:null}),computed:{i19quickview:()=>"Quickview",i19next:()=>Object(a.i18n)(o.a),i19previous:()=>Object(a.i18n)(o.c),reviewId:function(){return this.review&&this.review.id?this.review.id:null},pictures:function(){return this.review&&this.review.pictures?this.review.pictures:[]},video:function(){return this.review&&this.review.video_url?this.review.video_url:null},title:function(){return this.review&&this.review.title?this.review.title:null},author:function(){return this.review&&this.review.display_name?this.review.display_name:null},rating:function(){return this.review&&this.review.rating?this.review.rating:null},recommended:function(){return this.review&&this.review.is_recommended?this.review.is_recommended:null},isVerified:function(){return this.review&&this.review.verified_purchase?this.review.verified_purchase:null},reply:function(){return this.review&&this.review.reply?this.review.reply:null},created:function(){return this.review&&this.review.created_at?this.review.created_at:null},body:function(){return this.review&&this.review.body?this.review.body:null}},watch:{isOpen:function(t){t&&Object(s.a)("#martan-quickview").modal("show")}},mounted(){Object(s.a)("#martan-quickview").on("hidden.bs.modal",this.close),Object(s.a)("#martan-quickview").on("shown.bs.modal",this.mount),this.glide=new i.a(".mt-quickview__galery",{keyboard:!1,rewind:!0,type:"carousel",dragThreshold:!1,startAt:0,perView:1,perViewLg:1,perViewSm:1})},beforeDestroy(){this.glide&&this.glide.destroy()},methods:{mount:function(){(this.review&&this.review.pictures||this.review&&this.review.video_url)&&setTimeout(()=>{try{this.glide.mount(),this.glide.update({perView:1})}catch(t){}},5)},close:function(){this.$emit("onClose",!0);try{this.glide.destroy()}catch(t){}},next:function(){try{this.glide.go(">"),this.glide.update({perView:1})}catch(t){}},back:function(){try{this.glide.go("<"),this.glide.update({perView:1})}catch(t){}},goToSlide:function({slide:t}){try{this.glide&&this.glide.go("="+t).update({perView:1})}catch(t){}},formatDate:a.formatDate,timeAgo:l.a}},y=(n(61),Object(g.a)(w,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"modal fade",attrs:{id:"martan-quickview",tabindex:"-1",role:"dialog","aria-labelledby":"quickviewModal","aria-hidden":"true"}},[n("div",{staticClass:"modal-dialog modal-dialog-centered modal-xl",attrs:{role:"document"}},[n("div",{staticClass:"modal-content"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"modal-header"},[n("h5",{staticClass:"modal-title",attrs:{id:"quickviewModal"}},[t._v(t._s(t.i19quickview))]),t._m(0)]),n("div",{staticClass:"modal-body mt-quickview"},[t._m(1),t.pictures.length||t.video?n("div",{ref:"galery",staticClass:"glide mt-quickview__galery"},[n("div",{staticClass:"mt-quickview__controls",style:"--button--hover-color:"+(t.starColor||"#eeeeee"),attrs:{"data-glide-el":"controls"}},[t.glide&&t.glide.index>0?n("button",{staticClass:"left",attrs:{title:t.i19previous,"aria-label":t.i19previous,"data-glide-dir":"<"},on:{click:t.back}},[n("i",{staticClass:"i-chevron-left"})]):t._e()]),n("div",{staticClass:"glide__track",attrs:{"data-glide-el":"track"}},[n("ul",{staticClass:"glide__slides"},[t._l(t.pictures,(function(e){return n("li",{key:e.id,staticClass:"glide__slide"},[n("img",{attrs:{alt:"Foto da avaliação do produto feita por "+t.author,src:e.big}})])})),t.video?n("li",{key:t.video,staticClass:"lazy-image video-wrapper"},[n("VideoPlayer",{attrs:{video:t.video}})],1):t._e()],2)]),n("div",{staticClass:"mt-quickview__controls",style:"--button--hover-color:"+(t.starColor||"#eeeeee"),attrs:{"data-glide-el":"controls"}},[n("button",{attrs:{title:t.i19next,"aria-label":t.i19next,"data-glide-dir":">"},on:{click:t.next}},[n("i",{staticClass:"i-chevron-right"})])])]):t._e(),n("div",{staticClass:"mt-review"},[n("div",{staticClass:"mt-rating__group"},[t.review?n("AuthorAndRating",{attrs:{author:t.author,isAnonymous:t.review.is_anonymous,rating:t.rating,starColor:t.starColor}}):t._e(),t.review?n("isRecommended",{attrs:{recommended:t.recommended}}):t._e(),t.isVerified?n("VerifiedPurchase",{attrs:{showVerified:!0}}):t._e()],1),t.review?n("ThumbsPictures",{attrs:{review:t.review},on:{onClick:t.goToSlide}}):t._e(),t.review?n("ReviewBody",{attrs:{body:t.body,createdAt:t.review.created_at}}):t._e(),n("ReviewReply",{attrs:{reply:t.reply}})],1)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],!1,null,null,null));e.a=y.exports},function(t,e,n){"use strict";var r=n(3),i=n(13),o={name:"VerifiedPurchase",props:{showVerified:{type:Boolean,default:!1}},data:()=>({collapseId:null}),computed:{i19verifiedBuyer:()=>"Comprador verificado",i19howProcessVerifiedMsg:()=>Object(r.i18n)({en_us:"How we verify and process reviews",pt_br:"Como verificamos e processamos avaliações"}),i19useMartanPrivacyMsg:()=>Object(r.i18n)({en_us:"We use Martan, a web-based application that provides an online reviews and marketing solution, to collect, source, process and display reviews on our website.",pt_br:"Utilizamos o Martan, uma aplicação baseada na web que oferece uma solução de avaliações online e marketing, para coletar, originar, processar e exibir avaliações em nosso site."}),i19howWeCollectMsg:()=>Object(r.i18n)({en_us:'We automatically send review requests through Martan to customers for whom we have a record of purchasing products directly from our website. This allows us to verify the reliability of the review through technical means such as the customers email address. Reviews submitted directly through these requests are marked as "Verified Purchase", and the following statement will be displayed in the interface where the review is published: "This review was collected from a verified customer who purchased this item."',pt_br:'Enviamos automaticamente solicitações de avaliações por meio do Martan aos clientes para os quais temos registro de que compraram produtos diretamente em nosso site. Isso nos permite verificar a confiabilidade da avaliação por meio de meios técnicos, como o endereço de e-mail do cliente. As avaliações enviadas diretamente por essas solicitações são marcadas como "Compra verificada", e a seguinte declaração será exibida na interface em que a avaliação for publicada: "Esta avaliação foi coletada de um cliente verificado que comprou este item".'}),i19howClientsReviewMsg:()=>Object(r.i18n)({en_us:"Customers can choose how to rate reviewed products with a score between 1 and 5. The average review score is calculated using a simple mathematical average, which is then rounded to a half or full star rating using standard rounding rules. The average review score includes reviews for which customers received discounts on future purchases for adding a photo or video to their review.",pt_br:"Os clientes podem escolher como avaliar os produtos avaliados com uma pontuação entre 1 e 5. A pontuação média das avaliações é calculada usando uma média matemática simples, que é então arredondada para uma meia ou uma avaliação de estrela completa usando regras padrão de arredondamento. A pontuação média das avaliações inclui avaliações para as quais os clientes receberam descontos em compras futuras por adicionar uma foto ou um vídeo à sua avaliação."})},methods:{open:function(){Object(i.a)("#"+this.collapseId).collapse("toggle")}},mounted:function(){this.collapseId="mt-verified-"+Date.now()}},a=(n(55),n(2)),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"mt-rating__verified"},[n("svg",{staticClass:"icon icon-tabler icon-tabler-discount-check-filled",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),n("path",{attrs:{d:"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z","stroke-width":"0",fill:"currentColor"}})]),n("span",[t._v(" "+t._s(t.i19verifiedBuyer)+" ")])]),n("div",{staticClass:"collapse multi-collapse",attrs:{id:t.collapseId}},[n("div",{staticClass:"card card-body"},[n("h5",[t._v(" "+t._s(t.i19howProcessVerifiedMsg)+" ")]),n("p",[t._v(" "+t._s(t.i19useMartanPrivacyMsg)+" ")]),n("p",[t._v(" "+t._s(t.i19howWeCollectMsg)+" ")]),n("p",[t._v(" "+t._s(t.i19howClientsReviewMsg)+" ")])])])])}),[],!1,null,null,null);e.a=s.exports},function(t,e,n){"use strict";var r=n(24),i=n(4),o=n.n(i);"object"==typeof window&&(window.$=window.jQuery=o.a);var a=o.a,s=function(t,e){return new Promise((function(n){function r(){t.classList.remove("animated",e),n(),clearTimeout(i),t.removeEventListener("animationend",r)}t.classList.add("animated",e);var i=setTimeout(r,t.classList.contains("slower")?800:500);t.addEventListener("animationend",r)}))};"object"==typeof window&&(window.animateCss=s);n(47),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(29),n(8);const{userAgent:l}=navigator,u=(document.body?document.body.offsetWidth:window.screen.width,l.includes("Safari")&&!l.includes("Chrome")&&/Version\/1[4-9]/i.test(l),/iPad|iPhone|iPod/.test(l)&&!window.MSStream);document.documentMode,u||/Android|webOS|BlackBerry|IEMobile|Opera Mini/i.test(l),r.a,r.b;e.a=a},function(t,e){t.exports=void 0},function(t,e){t.exports=void 0},function(t,e,n){"use strict";function r(t,e){return function(){return t.apply(e,arguments)}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";e.a=null},function(t,e,n){"use strict";var r=n(7),i=n(19),o=n(12),a=n(20),s=n(21),l=n(22),u=n(23),c={name:"CardReview",props:{review:{type:Object,default:()=>({})},starColor:{type:String,default:"#212529"}},components:{ThumbsPictures:i.a,Rating:r.a,VerifiedPurchase:o.a,AuthorAndRating:a.a,IsRecommended:s.a,ReviewBody:l.a,ReviewReply:u.a},computed:{isVerified:function(){return this.review&&this.review.verified_purchase}}},d=(n(57),n(2)),f=Object(d.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-review"},[n("div",{staticClass:"mt-rating__group"},[t.review?n("author-and-rating",{attrs:{author:t.review.display_name,isAnonymous:t.review.is_anonymous,rating:t.review.rating,starColor:t.starColor}}):t._e(),t.review?n("is-recommended",{attrs:{recommended:t.review.is_recommended}}):t._e(),t.isVerified?n("verified-purchase"):t._e()],1),n("thumbs-pictures",{attrs:{review:t.review},on:{onClick:function(e){return t.$emit("openQuickview",e)}}}),t.review?n("review-body",{attrs:{body:t.review.body,createdAt:t.review.created_at}}):t._e(),n("review-reply",{attrs:{reply:t.review.reply}})],1)}),[],!1,null,null,null);e.a=f.exports},function(t,e,n){"use strict";var r={name:"ThumbsPictures",props:{review:{type:Object,required:!0}},computed:{pictures:function(){return this.review.pictures||[]},video:function(){return this.review.video_url||null},title:function(){return this.review.title||null}},mounted(){const t=Array.from(document.querySelectorAll(".mt-lazy-image img")),e=new IntersectionObserver((t,n)=>{t.forEach(t=>{if(t.isIntersecting&&"false"===t.target.dataset.loaded){const n=t.target;n.dataset.loaded=!0,n.src=n.dataset.src,e.unobserve(n)}})});t.forEach(t=>e.observe(t))},methods:{onClick(t){const{review:e}=this;this.$emit("onClick",{review:e,slide:t})}}},i=(n(45),n(2)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"media"},[t.pictures.length||t.video?n("ul",{staticClass:"media__list"},[t._l(t.pictures,(function(e,r){return t.pictures.length?n("li",{key:e.thumb,staticClass:"mt-lazy-image",on:{click:function(e){return t.onClick(r)}}},[n("img",{staticClass:"media__preview",attrs:{alt:t.title,"data-src":e.thumb,"data-loaded":"false"}})]):t._e()})),t.video?n("li",{key:t.video,staticClass:"lazy-image",attrs:{title:"Abrir vídeo"},on:{click:function(e){return t.onClick(t.pictures.length)}}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 24 24","stroke-width":"2",stroke:"#ffffff",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[n("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),n("path",{attrs:{d:"M7 4v16l13 -8z"}})])]):t._e()],2):t._e()])}),[],!1,null,null,null);e.a=o.exports},function(t,e,n){"use strict";var r=n(7),i={name:"AuthorAndRating",props:{isAnonymous:Boolean,author:String,rating:Number,starColor:String},components:{Rating:r.a}},o=n(2),a=Object(o.a)(i,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"flex","align-items":"baseline","justify-content":"space-between"}},[e("div",{staticStyle:{display:"flex",height:"20px","align-items":"center",gap:"5px"}},[e("div",{staticClass:"mt-review__author",staticStyle:{"padding-right":"2px"}},[e("span",[this._v(this._s(this.isAnonymous?"Anônimo":this.author))])]),e("rating",{attrs:{rating:this.rating,color:this.starColor}})],1)])}),[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(79),i=n(3),o={name:"isRecommended",props:{recommended:{type:Boolean,default:!0}},computed:{i19customerRecommendProduct:()=>"Cliente recomendaria o produto",i19customerNoRecommendProduct:()=>"Cliente não recomendaria o produto",i19no:()=>Object(i.i18n)(r.b),i19recommendProductQn:()=>"Recomendaria o produto ?",i19yes:()=>Object(i.i18n)(r.d)}},a=n(2),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-is__recomended",attrs:{title:t.recommended?t.i19customerRecommendProduct:t.i19customerNoRecommendProduct}},[n("span",[t._v(" "+t._s(t.i19recommendProductQn)+" ")]),n("span",[t._v(t._s(t.recommended?t.i19yes:t.i19no))])])}),[],!1,null,null,null);e.a=s.exports},function(t,e,n){"use strict";var r=n(3),i=n(10),o={name:"ReviewBody",props:{body:{type:String,required:!0},createdAt:{type:String,required:!0}},computed:{i19published:()=>"Publicado"},methods:{formatDate:r.formatDate,timeAgo:i.a}},a=n(2),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"body-wrapper"},[n("div",{staticClass:"mt-review__body"},[t._v(t._s(t.body))]),n("span",{staticClass:"mt-review__date",attrs:{title:t.formatDate(t.createdAt)}},[t._v(" "+t._s(t.i19published)+" "+t._s(t.timeAgo(t.createdAt))+" ")])])}),[],!1,null,null,null);e.a=s.exports},function(t,e,n){"use strict";var r=n(3),i=n(10),o={name:"ReviewReply",props:{reply:{type:Object}},computed:{i19storeResponse:()=>"Resposta da loja"},methods:{formatDate:r.formatDate,timeAgo:i.a}},a=n(2),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.reply?n("div",{staticClass:"mt-reply__wrapper"},[n("div",{staticStyle:{"margin-right":"10px"}},[n("svg",{staticStyle:{transform:"rotate(180deg)"},attrs:{width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M10.53 5.03a.75.75 0 10-1.06-1.06l-6.25 6.25a.75.75 0 000 1.06l6.25 6.25a.75.75 0 101.06-1.06L5.56 11.5H17a3.248 3.248 0 013.25 3.248v4.502a.75.75 0 001.5 0v-4.502A4.748 4.748 0 0017 10H5.56l4.97-4.97z"}})])]),n("div",{staticClass:"mt-reply"},[n("span",{staticClass:"mt-reply__body"},[t._v(t._s(t.i19storeResponse)+" · "),n("span",{staticClass:"mt-reply__date",attrs:{title:"Respondido em "+t.formatDate(t.reply.created_at)}},[t._v(t._s(t.timeAgo(t.reply.created_at)))])]),n("span",[t._v(t._s(t.reply.body))])])]):t._e()}),[],!1,null,null,null);e.a=s.exports},function(t){t.exports=JSON.parse('{"a":"@ecomplus/storefront-twbs","b":"7.3.6"}')},,function(t,e,n){var r=n(44);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("2d2842e6",r,!0,{})},function(t,e,n){var r=n(46);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("1743d057",r,!0,{})},function(t,e){t.exports=void 0},function(t,e,n){
8
- /*!
9
- * Bootstrap tooltip.js v4.6.2 (https://getbootstrap.com/)
10
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
11
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
12
- */
13
- t.exports=function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(t),o=r(e),a=r(n);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var u=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],c={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},d=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,f=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i;function h(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var r=(new window.DOMParser).parseFromString(t,"text/html"),i=Object.keys(e),o=[].slice.call(r.body.querySelectorAll("*")),a=function(t,n){var r=o[t],a=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),l=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===u.indexOf(n)||Boolean(d.test(t.nodeValue)||f.test(t.nodeValue));for(var r=e.filter((function(t){return t instanceof RegExp})),i=0,o=r.length;i<o;i++)if(r[i].test(n))return!0;return!1})(t,l)||r.removeAttribute(t.nodeName)}))},s=0,l=o.length;s<l;s++)a(s);return r.body.innerHTML}var p="tooltip",m=".bs.tooltip",g=i.default.fn[p],v=new RegExp("(^|\\s)bs-tooltip\\S+","g"),_=["sanitize","whiteList","sanitizeFn"],w={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},y={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:c,popperConfig:null},b={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},E={HIDE:"hide"+m,HIDDEN:"hidden"+m,SHOW:"show"+m,SHOWN:"shown"+m,INSERTED:"inserted"+m,CLICK:"click"+m,FOCUSIN:"focusin"+m,FOCUSOUT:"focusout"+m,MOUSEENTER:"mouseenter"+m,MOUSELEAVE:"mouseleave"+m},C=function(){function t(t,e){if(void 0===o.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e,n,r,u=t.prototype;return u.enable=function(){this._isEnabled=!0},u.disable=function(){this._isEnabled=!1},u.toggleEnabled=function(){this._isEnabled=!this._isEnabled},u.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,n=i.default(t.currentTarget).data(e);n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)}else{if(i.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},u.dispose=function(){clearTimeout(this._timeout),i.default.removeData(this.element,this.constructor.DATA_KEY),i.default(this.element).off(this.constructor.EVENT_KEY),i.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&i.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},u.show=function(){var t=this;if("none"===i.default(this.element).css("display"))throw new Error("Please use show on visible elements");var e=i.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){i.default(this.element).trigger(e);var n=a.default.findShadowRoot(this.element),r=i.default.contains(null!==n?n:this.element.ownerDocument.documentElement,this.element);if(e.isDefaultPrevented()||!r)return;var s=this.getTipElement(),l=a.default.getUID(this.constructor.NAME);s.setAttribute("id",l),this.element.setAttribute("aria-describedby",l),this.setContent(),this.config.animation&&i.default(s).addClass("fade");var u="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,c=this._getAttachment(u);this.addAttachmentClass(c);var d=this._getContainer();i.default(s).data(this.constructor.DATA_KEY,this),i.default.contains(this.element.ownerDocument.documentElement,this.tip)||i.default(s).appendTo(d),i.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new o.default(this.element,s,this._getPopperConfig(c)),i.default(s).addClass("show"),i.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&i.default(document.body).children().on("mouseover",null,i.default.noop);var f=function(){t.config.animation&&t._fixTransition();var e=t._hoverState;t._hoverState=null,i.default(t.element).trigger(t.constructor.Event.SHOWN),"out"===e&&t._leave(null,t)};if(i.default(this.tip).hasClass("fade")){var h=a.default.getTransitionDurationFromElement(this.tip);i.default(this.tip).one(a.default.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},u.hide=function(t){var e=this,n=this.getTipElement(),r=i.default.Event(this.constructor.Event.HIDE),o=function(){"show"!==e._hoverState&&n.parentNode&&n.parentNode.removeChild(n),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),i.default(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(i.default(this.element).trigger(r),!r.isDefaultPrevented()){if(i.default(n).removeClass("show"),"ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,i.default(this.tip).hasClass("fade")){var s=a.default.getTransitionDurationFromElement(n);i.default(n).one(a.default.TRANSITION_END,o).emulateTransitionEnd(s)}else o();this._hoverState=""}},u.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},u.isWithContent=function(){return Boolean(this.getTitle())},u.addAttachmentClass=function(t){i.default(this.getTipElement()).addClass("bs-tooltip-"+t)},u.getTipElement=function(){return this.tip=this.tip||i.default(this.config.template)[0],this.tip},u.setContent=function(){var t=this.getTipElement();this.setElementContent(i.default(t.querySelectorAll(".tooltip-inner")),this.getTitle()),i.default(t).removeClass("fade show")},u.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=h(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?i.default(e).parent().is(t)||t.empty().append(e):t.text(i.default(e).text())},u.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},u._getPopperConfig=function(t){var e=this;return l({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},this.config.popperConfig)},u._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t.config.offset(e.offsets,t.element)),e}:e.offset=this.config.offset,e},u._getContainer=function(){return!1===this.config.container?document.body:a.default.isElement(this.config.container)?i.default(this.config.container):i.default(document).find(this.config.container)},u._getAttachment=function(t){return w[t.toUpperCase()]},u._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(e){if("click"===e)i.default(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==e){var n="hover"===e?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r="hover"===e?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;i.default(t.element).on(n,t.config.selector,(function(e){return t._enter(e)})).on(r,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},i.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=l({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},u._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},u._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),i.default(e.getTipElement()).hasClass("show")||"show"===e._hoverState?e._hoverState="show":(clearTimeout(e._timeout),e._hoverState="show",e.config.delay&&e.config.delay.show?e._timeout=setTimeout((function(){"show"===e._hoverState&&e.show()}),e.config.delay.show):e.show())},u._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||i.default(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),i.default(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout((function(){"out"===e._hoverState&&e.hide()}),e.config.delay.hide):e.hide())},u._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},u._getConfig=function(t){var e=i.default(this.element).data();return Object.keys(e).forEach((function(t){-1!==_.indexOf(t)&&delete e[t]})),"number"==typeof(t=l({},this.constructor.Default,e,"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),a.default.typeCheckConfig(p,t,this.constructor.DefaultType),t.sanitize&&(t.template=h(t.template,t.whiteList,t.sanitizeFn)),t},u._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},u._cleanTipClass=function(){var t=i.default(this.getTipElement()),e=t.attr("class").match(v);null!==e&&e.length&&t.removeClass(e.join(""))},u._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},u._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(i.default(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this),r=n.data("bs.tooltip"),o="object"==typeof e&&e;if((r||!/dispose|hide/.test(e))&&(r||(r=new t(this,o),n.data("bs.tooltip",r)),"string"==typeof e)){if(void 0===r[e])throw new TypeError('No method named "'+e+'"');r[e]()}}))},e=t,r=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return y}},{key:"NAME",get:function(){return p}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return E}},{key:"EVENT_KEY",get:function(){return m}},{key:"DefaultType",get:function(){return b}}],(n=null)&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();return i.default.fn[p]=C._jQueryInterface,i.default.fn[p].Constructor=C,i.default.fn[p].noConflict=function(){return i.default.fn[p]=g,C._jQueryInterface},C}(n(4),n(28),n(8))},function(t,e,n){var r=n(56);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("1f1abd99",r,!0,{})},function(t,e,n){var r=n(58);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("c257d91a",r,!0,{})},function(t,e,n){var r=n(60);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("3d19f862",r,!0,{})},function(t,e,n){var r=n(62);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("83b22268",r,!0,{})},function(t,e,n){var r=n(64);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("76312b51",r,!0,{})},function(t,e,n){var r=n(66);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("2efc1134",r,!0,{})},function(t,e,n){var r=n(68);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("25380f9a",r,!0,{})},function(t,e,n){var r=n(70);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("10f54964",r,!0,{})},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(76);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);(0,n(6).default)("0358c92c",r,!0,{})},function(t,e,n){"use strict";const r=[{key:"most_recent",name:"Recentes"},{key:"most_voted",name:"Mais úteis"},{key:"most_positive",name:"Positivas"},{key:"most_negative",name:"Negativas"}];var i={name:"Sort",data:()=>({orderOptions:r})},o=(n(65),n(2)),a=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-rating__order_by"},[n("svg",{attrs:{width:"24px",height:"24px",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"}},[n("title"),n("path",{attrs:{d:"M110.22,117.75h-80a10,10,0,0,0,0,20h80a10,10,0,0,0,0-20Z"}}),n("path",{attrs:{d:"M177.22,125.75a9.67,9.67,0,0,0-14,0l-8,7.5V42.75a10,10,0,0,0-20,0v113.5a8.29,8.29,0,0,0,3,8,9.67,9.67,0,0,0,14,0l24.5-24.5a10.13,10.13,0,0,0,.5-14Z"}}),n("path",{attrs:{d:"M110.22,37.75h-80a10,10,0,0,0,0,20h80a10,10,0,0,0,0-20Z"}}),n("path",{attrs:{d:"M30.22,97.75h70a10,10,0,0,0,0-20h-70a10,10,0,0,0,0,20Z"}})]),n("select",{staticClass:"mt-select",on:{change:function(e){return t.$emit("onSort",{order:e.target.value})}}},[n("option",{attrs:{selected:"",disabled:""}},[t._v("Ordenar")]),t._l(t.orderOptions,(function(e){return n("option",{key:e.key,domProps:{value:e.key}},[t._v(" "+t._s(e.name)+" ")])}))],2)])}),[],!1,null,null,null);e.a=a.exports},function(t,e,n){"use strict";n.r(e);var r=n(18),i=n(11),o={name:"ListView",components:{CardReview:r.a,Quickview:i.a},props:{starColor:{type:String,default:"#212529"},reviews:{type:Object,default:{list:[],orderRating:null,total:0}}},methods:{openQuickview:function({review:t,slide:e}){this.$emit("openQuickview",{review:t,slide:e})}}},a=n(2),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-reviews__list"},t._l(t.reviews.list,(function(e){return n("card-review",{key:e.id,attrs:{review:e,starColor:t.starColor},on:{openQuickview:t.openQuickview}})})),1)}),[],!1,null,null,null);e.default=s.exports},function(t,e,n){"use strict";n.r(e);var r=n(7),i=n(18),o=n(12),a={name:"GridView",components:{CardReview:i.a,Rating:r.a,VerifiedPurchase:o.a},props:{starColor:{type:String,default:"#212529"},reviews:{type:Object,default:{list:[],orderRating:null,total:0}}},methods:{openQuickview:function(t){this.$emit("openQuickview",{review:t})},getPictureURL:t=>!!(t&&t.pictures&&t.pictures.length&&t.pictures[0].normal)&&t.pictures[0].normal}},s=(n(63),n(2)),l=Object(s.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-gridview"},t._l(t.reviews.list,(function(e){return n("div",{key:e.id,staticClass:"mt-gridview__card",on:{click:function(n){return t.openQuickview(e)}}},[t.getPictureURL(e)?n("div",{staticClass:"mt-gridview__thumb"},[n("img",{attrs:{src:t.getPictureURL(e),alt:e.title},on:{click:function(){return t.openQuickview(e)}}})]):t._e(),n("div",{staticClass:"mt-gridview__detail"},[n("span",{staticClass:"mt-gridview__author"},[t._v(t._s(e.display_name.substr(0,16)))]),n("rating",{attrs:{rating:e.rating,color:t.starColor}}),e.verified_purchase?n("verified-purchase"):t._e(),n("span",{staticClass:"mt-gridview__body"},[t._v(t._s(e.body.substr(0,250)))])],1)])})),0)}),[],!1,null,null,null);e.default=l.exports},function(t,e,n){"use strict";n(26)},function(t,e,n){(e=n(5)(!1)).push([t.i,".martan-rating{display:flex;gap:4px}",""]),t.exports=e},function(t,e,n){"use strict";n(27)},function(t,e,n){(e=n(5)(!1)).push([t.i,".media--open{width:500px}.media__preview{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.media__list{display:flex;list-style:none;padding:.75rem 0 0}.media__list li{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;background-color:#383a3e;border:.125rem solid #383a3e;border-radius:5px;box-sizing:border-box;cursor:pointer;display:flex;height:2.375rem;justify-content:center;margin-right:.25rem;min-width:2.375rem;overflow:hidden;padding:0;position:relative;text-decoration:none;transition:all .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:2.375rem}",""]),t.exports=e},function(t,e,n){
14
- /*!
15
- * Bootstrap alert.js v4.6.2 (https://getbootstrap.com/)
16
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
17
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
18
- */
19
- t.exports=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a="alert",s=r.default.fn[a],l=function(){function t(t){this._element=t}var e,n,a,s=t.prototype;return s.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},s.dispose=function(){r.default.removeData(this._element,"bs.alert"),this._element=null},s._getRootElement=function(t){var e=i.default.getSelectorFromElement(t),n=!1;return e&&(n=document.querySelector(e)),n||(n=r.default(t).closest(".alert")[0]),n},s._triggerCloseEvent=function(t){var e=r.default.Event("close.bs.alert");return r.default(t).trigger(e),e},s._removeElement=function(t){var e=this;if(r.default(t).removeClass("show"),r.default(t).hasClass("fade")){var n=i.default.getTransitionDurationFromElement(t);r.default(t).one(i.default.TRANSITION_END,(function(n){return e._destroyElement(t,n)})).emulateTransitionEnd(n)}else this._destroyElement(t)},s._destroyElement=function(t){r.default(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data("bs.alert");i||(i=new t(this),n.data("bs.alert",i)),"close"===e&&i[e](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},e=t,a=[{key:"VERSION",get:function(){return"4.6.2"}}],(n=null)&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();return r.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',l._handleDismiss(new l)),r.default.fn[a]=l._jQueryInterface,r.default.fn[a].Constructor=l,r.default.fn[a].noConflict=function(){return r.default.fn[a]=s,l._jQueryInterface},l}(n(4),n(8))},function(t,e,n){
20
- /*!
21
- * Bootstrap button.js v4.6.2 (https://getbootstrap.com/)
22
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
23
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
24
- */
25
- t.exports=function(t){"use strict";function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var i="button",o=n.default.fn[i],a=function(){function t(t){this._element=t,this.shouldAvoidTriggerChange=!1}var e,i,o,a=t.prototype;return a.toggle=function(){var t=!0,e=!0,r=n.default(this._element).closest('[data-toggle="buttons"]')[0];if(r){var i=this._element.querySelector('input:not([type="hidden"])');if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains("active"))t=!1;else{var o=r.querySelector(".active");o&&n.default(o).removeClass("active")}t&&("checkbox"!==i.type&&"radio"!==i.type||(i.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||n.default(i).trigger("change")),i.focus(),e=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&n.default(this._element).toggleClass("active"))},a.dispose=function(){n.default.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(e,r){return this.each((function(){var i=n.default(this),o=i.data("bs.button");o||(o=new t(this),i.data("bs.button",o)),o.shouldAvoidTriggerChange=r,"toggle"===e&&o[e]()}))},e=t,o=[{key:"VERSION",get:function(){return"4.6.2"}}],(i=null)&&r(e.prototype,i),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}();return n.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=t.target,r=e;if(n.default(e).hasClass("btn")||(e=n.default(e).closest(".btn")[0]),!e||e.hasAttribute("disabled")||e.classList.contains("disabled"))t.preventDefault();else{var i=e.querySelector('input:not([type="hidden"])');if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void t.preventDefault();"INPUT"!==r.tagName&&"LABEL"===e.tagName||a._jQueryInterface.call(n.default(e),"toggle","INPUT"===r.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var e=n.default(t.target).closest(".btn")[0];n.default(e).toggleClass("focus",/^focus(in)?$/.test(t.type))})),n.default(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e<n;e++){var r=t[e],i=r.querySelector('input:not([type="hidden"])');i.checked||i.hasAttribute("checked")?r.classList.add("active"):r.classList.remove("active")}for(var o=0,a=(t=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;o<a;o++){var s=t[o];"true"===s.getAttribute("aria-pressed")?s.classList.add("active"):s.classList.remove("active")}})),n.default.fn[i]=a._jQueryInterface,n.default.fn[i].Constructor=a,n.default.fn[i].noConflict=function(){return n.default.fn[i]=o,a._jQueryInterface},a}(n(4))},function(t,e,n){
26
- /*!
27
- * Bootstrap collapse.js v4.6.2 (https://getbootstrap.com/)
28
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
29
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
30
- */
31
- t.exports=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var s="collapse",l="bs.collapse",u=r.default.fn[s],c={toggle:!0,parent:""},d={toggle:"boolean",parent:"(string|element)"},f=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),r=0,o=n.length;r<o;r++){var a=n[r],s=i.default.getSelectorFromElement(a),l=[].slice.call(document.querySelectorAll(s)).filter((function(e){return e===t}));null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e,n,u,f=t.prototype;return f.toggle=function(){r.default(this._element).hasClass("show")?this.hide():this.show()},f.show=function(){var e,n,o=this;if(!(this._isTransitioning||r.default(this._element).hasClass("show")||(this._parent&&0===(e=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(e=null),e&&(n=r.default(e).not(this._selector).data(l))&&n._isTransitioning))){var a=r.default.Event("show.bs.collapse");if(r.default(this._element).trigger(a),!a.isDefaultPrevented()){e&&(t._jQueryInterface.call(r.default(e).not(this._selector),"hide"),n||r.default(e).data(l,null));var s=this._getDimension();r.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&r.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var u="scroll"+(s[0].toUpperCase()+s.slice(1)),c=i.default.getTransitionDurationFromElement(this._element);r.default(this._element).one(i.default.TRANSITION_END,(function(){r.default(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[s]="",o.setTransitioning(!1),r.default(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(c),this._element.style[s]=this._element[u]+"px"}}},f.hide=function(){var t=this;if(!this._isTransitioning&&r.default(this._element).hasClass("show")){var e=r.default.Event("hide.bs.collapse");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._getDimension();this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",i.default.reflow(this._element),r.default(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var a=0;a<o;a++){var s=this._triggerArray[a],l=i.default.getSelectorFromElement(s);null!==l&&(r.default([].slice.call(document.querySelectorAll(l))).hasClass("show")||r.default(s).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[n]="";var u=i.default.getTransitionDurationFromElement(this._element);r.default(this._element).one(i.default.TRANSITION_END,(function(){t.setTransitioning(!1),r.default(t._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(u)}}},f.setTransitioning=function(t){this._isTransitioning=t},f.dispose=function(){r.default.removeData(this._element,l),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},f._getConfig=function(t){return(t=a({},c,t)).toggle=Boolean(t.toggle),i.default.typeCheckConfig(s,t,d),t},f._getDimension=function(){return r.default(this._element).hasClass("width")?"width":"height"},f._getParent=function(){var e,n=this;i.default.isElement(this._config.parent)?(e=this._config.parent,void 0!==this._config.parent.jquery&&(e=this._config.parent[0])):e=document.querySelector(this._config.parent);var o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',a=[].slice.call(e.querySelectorAll(o));return r.default(a).each((function(e,r){n._addAriaAndCollapsedClass(t._getTargetFromElement(r),[r])})),e},f._addAriaAndCollapsedClass=function(t,e){var n=r.default(t).hasClass("show");e.length&&r.default(e).toggleClass("collapsed",!n).attr("aria-expanded",n)},t._getTargetFromElement=function(t){var e=i.default.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data(l),o=a({},c,n.data(),"object"==typeof e&&e?e:{});if(!i&&o.toggle&&"string"==typeof e&&/show|hide/.test(e)&&(o.toggle=!1),i||(i=new t(this,o),n.data(l,i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},e=t,u=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return c}}],(n=null)&&o(e.prototype,n),u&&o(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();return r.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=r.default(this),n=i.default.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(n));r.default(o).each((function(){var t=r.default(this),n=t.data(l)?"toggle":e.data();f._jQueryInterface.call(t,n)}))})),r.default.fn[s]=f._jQueryInterface,r.default.fn[s].Constructor=f,r.default.fn[s].noConflict=function(){return r.default.fn[s]=u,f._jQueryInterface},f}(n(4),n(8))},function(t,e,n){
32
- /*!
33
- * Bootstrap dropdown.js v4.6.2 (https://getbootstrap.com/)
34
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
35
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
36
- */
37
- t.exports=function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(t),o=r(e),a=r(n);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var u="dropdown",c="bs.dropdown",d="."+c,f=i.default.fn[u],h=new RegExp("38|40|27"),p={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},m={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},g=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e,n,r,f=t.prototype;return f.toggle=function(){if(!this._element.disabled&&!i.default(this._element).hasClass("disabled")){var e=i.default(this._menu).hasClass("show");t._clearMenus(),e||this.show(!0)}},f.show=function(e){if(void 0===e&&(e=!1),!(this._element.disabled||i.default(this._element).hasClass("disabled")||i.default(this._menu).hasClass("show"))){var n={relatedTarget:this._element},r=i.default.Event("show.bs.dropdown",n),s=t._getParentFromElement(this._element);if(i.default(s).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar&&e){if(void 0===o.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var l=this._element;"parent"===this._config.reference?l=s:a.default.isElement(this._config.reference)&&(l=this._config.reference,void 0!==this._config.reference.jquery&&(l=this._config.reference[0])),"scrollParent"!==this._config.boundary&&i.default(s).addClass("position-static"),this._popper=new o.default(l,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===i.default(s).closest(".navbar-nav").length&&i.default(document.body).children().on("mouseover",null,i.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),i.default(this._menu).toggleClass("show"),i.default(s).toggleClass("show").trigger(i.default.Event("shown.bs.dropdown",n))}}},f.hide=function(){if(!this._element.disabled&&!i.default(this._element).hasClass("disabled")&&i.default(this._menu).hasClass("show")){var e={relatedTarget:this._element},n=i.default.Event("hide.bs.dropdown",e),r=t._getParentFromElement(this._element);i.default(r).trigger(n),n.isDefaultPrevented()||(this._popper&&this._popper.destroy(),i.default(this._menu).toggleClass("show"),i.default(r).toggleClass("show").trigger(i.default.Event("hidden.bs.dropdown",e)))}},f.dispose=function(){i.default.removeData(this._element,c),i.default(this._element).off(d),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},f.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},f._addEventListeners=function(){var t=this;i.default(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},f._getConfig=function(t){return t=l({},this.constructor.Default,i.default(this._element).data(),t),a.default.typeCheckConfig(u,t,this.constructor.DefaultType),t},f._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},f._getPlacement=function(){var t=i.default(this._element.parentNode),e="bottom-start";return t.hasClass("dropup")?e=i.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":i.default(this._menu).hasClass("dropdown-menu-right")&&(e="bottom-end"),e},f._detectNavbar=function(){return i.default(this._element).closest(".navbar").length>0},f._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=l({},e.offsets,t._config.offset(e.offsets,t._element)),e}:e.offset=this._config.offset,e},f._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),l({},t,this._config.popperConfig)},t._jQueryInterface=function(e){return this.each((function(){var n=i.default(this).data(c);if(n||(n=new t(this,"object"==typeof e?e:null),i.default(this).data(c,n)),"string"==typeof e){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var n=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),r=0,o=n.length;r<o;r++){var a=t._getParentFromElement(n[r]),s=i.default(n[r]).data(c),l={relatedTarget:n[r]};if(e&&"click"===e.type&&(l.clickEvent=e),s){var u=s._menu;if(i.default(a).hasClass("show")&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&i.default.contains(a,e.target))){var d=i.default.Event("hide.bs.dropdown",l);i.default(a).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&i.default(document.body).children().off("mouseover",null,i.default.noop),n[r].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),i.default(u).removeClass("show"),i.default(a).removeClass("show").trigger(i.default.Event("hidden.bs.dropdown",l)))}}}},t._getParentFromElement=function(t){var e,n=a.default.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(e){if(!(/input|textarea/i.test(e.target.tagName)?32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||i.default(e.target).closest(".dropdown-menu").length):!h.test(e.which))&&!this.disabled&&!i.default(this).hasClass("disabled")){var n=t._getParentFromElement(this),r=i.default(n).hasClass("show");if(r||27!==e.which){if(e.preventDefault(),e.stopPropagation(),!r||27===e.which||32===e.which)return 27===e.which&&i.default(n.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void i.default(this).trigger("click");var o=[].slice.call(n.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(t){return i.default(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(e.target);38===e.which&&a>0&&a--,40===e.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}}},e=t,r=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return p}},{key:"DefaultType",get:function(){return m}}],(n=null)&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();return i.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',g._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",g._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",g._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(t){t.preventDefault(),t.stopPropagation(),g._jQueryInterface.call(i.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})),i.default.fn[u]=g._jQueryInterface,i.default.fn[u].Constructor=g,i.default.fn[u].noConflict=function(){return i.default.fn[u]=f,g._jQueryInterface},g}(n(4),n(28),n(8))},function(t,e,n){
38
- /*!
39
- * Bootstrap modal.js v4.6.2 (https://getbootstrap.com/)
40
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
41
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
42
- */
43
- t.exports=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var s="modal",l=".bs.modal",u=r.default.fn[s],c={backdrop:!0,keyboard:!0,focus:!0,show:!0},d={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},f=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var e,n,u,f=t.prototype;return f.toggle=function(t){return this._isShown?this.hide():this.show(t)},f.show=function(t){var e=this;if(!this._isShown&&!this._isTransitioning){var n=r.default.Event("show.bs.modal",{relatedTarget:t});r.default(this._element).trigger(n),n.isDefaultPrevented()||(this._isShown=!0,r.default(this._element).hasClass("fade")&&(this._isTransitioning=!0),this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),r.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(t){return e.hide(t)})),r.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){r.default(e._element).one("mouseup.dismiss.bs.modal",(function(t){r.default(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return e._showElement(t)})))}},f.hide=function(t){var e=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var n=r.default.Event("hide.bs.modal");if(r.default(this._element).trigger(n),this._isShown&&!n.isDefaultPrevented()){this._isShown=!1;var o=r.default(this._element).hasClass("fade");if(o&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r.default(document).off("focusin.bs.modal"),r.default(this._element).removeClass("show"),r.default(this._element).off("click.dismiss.bs.modal"),r.default(this._dialog).off("mousedown.dismiss.bs.modal"),o){var a=i.default.getTransitionDurationFromElement(this._element);r.default(this._element).one(i.default.TRANSITION_END,(function(t){return e._hideModal(t)})).emulateTransitionEnd(a)}else this._hideModal()}}},f.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return r.default(t).off(l)})),r.default(document).off("focusin.bs.modal"),r.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},f.handleUpdate=function(){this._adjustDialog()},f._getConfig=function(t){return t=a({},c,t),i.default.typeCheckConfig(s,t,d),t},f._triggerBackdropTransition=function(){var t=this,e=r.default.Event("hidePrevented.bs.modal");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){var n=this._element.scrollHeight>document.documentElement.clientHeight;n||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var o=i.default.getTransitionDurationFromElement(this._dialog);r.default(this._element).off(i.default.TRANSITION_END),r.default(this._element).one(i.default.TRANSITION_END,(function(){t._element.classList.remove("modal-static"),n||r.default(t._element).one(i.default.TRANSITION_END,(function(){t._element.style.overflowY=""})).emulateTransitionEnd(t._element,o)})).emulateTransitionEnd(o),this._element.focus()}},f._showElement=function(t){var e=this,n=r.default(this._element).hasClass("fade"),o=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),r.default(this._dialog).hasClass("modal-dialog-scrollable")&&o?o.scrollTop=0:this._element.scrollTop=0,n&&i.default.reflow(this._element),r.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var a=r.default.Event("shown.bs.modal",{relatedTarget:t}),s=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r.default(e._element).trigger(a)};if(n){var l=i.default.getTransitionDurationFromElement(this._dialog);r.default(this._dialog).one(i.default.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},f._enforceFocus=function(){var t=this;r.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(e){document!==e.target&&t._element!==e.target&&0===r.default(t._element).has(e.target).length&&t._element.focus()}))},f._setEscapeEvent=function(){var t=this;this._isShown?r.default(this._element).on("keydown.dismiss.bs.modal",(function(e){t._config.keyboard&&27===e.which?(e.preventDefault(),t.hide()):t._config.keyboard||27!==e.which||t._triggerBackdropTransition()})):this._isShown||r.default(this._element).off("keydown.dismiss.bs.modal")},f._setResizeEvent=function(){var t=this;this._isShown?r.default(window).on("resize.bs.modal",(function(e){return t.handleUpdate(e)})):r.default(window).off("resize.bs.modal")},f._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){r.default(document.body).removeClass("modal-open"),t._resetAdjustments(),t._resetScrollbar(),r.default(t._element).trigger("hidden.bs.modal")}))},f._removeBackdrop=function(){this._backdrop&&(r.default(this._backdrop).remove(),this._backdrop=null)},f._showBackdrop=function(t){var e=this,n=r.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",n&&this._backdrop.classList.add(n),r.default(this._backdrop).appendTo(document.body),r.default(this._element).on("click.dismiss.bs.modal",(function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._triggerBackdropTransition():e.hide())})),n&&i.default.reflow(this._backdrop),r.default(this._backdrop).addClass("show"),!t)return;if(!n)return void t();var o=i.default.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(i.default.TRANSITION_END,t).emulateTransitionEnd(o)}else if(!this._isShown&&this._backdrop){r.default(this._backdrop).removeClass("show");var a=function(){e._removeBackdrop(),t&&t()};if(r.default(this._element).hasClass("fade")){var s=i.default.getTransitionDurationFromElement(this._backdrop);r.default(this._backdrop).one(i.default.TRANSITION_END,a).emulateTransitionEnd(s)}else a()}else t&&t()},f._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},f._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},f._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},f._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),n=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(e).each((function(e,n){var i=n.style.paddingRight,o=r.default(n).css("padding-right");r.default(n).data("padding-right",i).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),r.default(n).each((function(e,n){var i=n.style.marginRight,o=r.default(n).css("margin-right");r.default(n).data("margin-right",i).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=r.default(document.body).css("padding-right");r.default(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}r.default(document.body).addClass("modal-open")},f._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));r.default(t).each((function(t,e){var n=r.default(e).data("padding-right");r.default(e).removeData("padding-right"),e.style.paddingRight=n||""}));var e=[].slice.call(document.querySelectorAll(".sticky-top"));r.default(e).each((function(t,e){var n=r.default(e).data("margin-right");void 0!==n&&r.default(e).css("margin-right",n).removeData("margin-right")}));var n=r.default(document.body).data("padding-right");r.default(document.body).removeData("padding-right"),document.body.style.paddingRight=n||""},f._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,n){return this.each((function(){var i=r.default(this).data("bs.modal"),o=a({},c,r.default(this).data(),"object"==typeof e&&e?e:{});if(i||(i=new t(this,o),r.default(this).data("bs.modal",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](n)}else o.show&&i.show(n)}))},e=t,u=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return c}}],(n=null)&&o(e.prototype,n),u&&o(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}();return r.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var e,n=this,o=i.default.getSelectorFromElement(this);o&&(e=document.querySelector(o));var s=r.default(e).data("bs.modal")?"toggle":a({},r.default(e).data(),r.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var l=r.default(e).one("show.bs.modal",(function(t){t.isDefaultPrevented()||l.one("hidden.bs.modal",(function(){r.default(n).is(":visible")&&n.focus()}))}));f._jQueryInterface.call(r.default(e),s,this)})),r.default.fn[s]=f._jQueryInterface,r.default.fn[s].Constructor=f,r.default.fn[s].noConflict=function(){return r.default.fn[s]=u,f._jQueryInterface},f}(n(4),n(8))},function(t,e,n){
44
- /*!
45
- * Bootstrap popover.js v4.6.2 (https://getbootstrap.com/)
46
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
47
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
48
- */
49
- t.exports=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var l="popover",u=".bs.popover",c=r.default.fn[l],d=new RegExp("(^|\\s)bs-popover\\S+","g"),f=a({},i.default.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),h=a({},i.default.DefaultType,{content:"(string|element|function)"}),p={HIDE:"hide"+u,HIDDEN:"hidden"+u,SHOW:"show"+u,SHOWN:"shown"+u,INSERTED:"inserted"+u,CLICK:"click"+u,FOCUSIN:"focusin"+u,FOCUSOUT:"focusout"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u},m=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,s(e,n);var a,c,m,g=i.prototype;return g.isWithContent=function(){return this.getTitle()||this._getContent()},g.addAttachmentClass=function(t){r.default(this.getTipElement()).addClass("bs-popover-"+t)},g.getTipElement=function(){return this.tip=this.tip||r.default(this.config.template)[0],this.tip},g.setContent=function(){var t=r.default(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},g._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},g._cleanTipClass=function(){var t=r.default(this.getTipElement()),e=t.attr("class").match(d);null!==e&&e.length>0&&t.removeClass(e.join(""))},i._jQueryInterface=function(t){return this.each((function(){var e=r.default(this).data("bs.popover"),n="object"==typeof t?t:null;if((e||!/dispose|hide/.test(t))&&(e||(e=new i(this,n),r.default(this).data("bs.popover",e)),"string"==typeof t)){if(void 0===e[t])throw new TypeError('No method named "'+t+'"');e[t]()}}))},a=i,m=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return l}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return u}},{key:"DefaultType",get:function(){return h}}],(c=null)&&o(a.prototype,c),m&&o(a,m),Object.defineProperty(a,"prototype",{writable:!1}),i}(i.default);return r.default.fn[l]=m._jQueryInterface,r.default.fn[l].Constructor=m,r.default.fn[l].noConflict=function(){return r.default.fn[l]=c,m._jQueryInterface},m}(n(4),n(29))},function(t,e,n){
50
- /*!
51
- * Bootstrap tab.js v4.6.2 (https://getbootstrap.com/)
52
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
53
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
54
- */
55
- t.exports=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=r.default.fn.tab,s=function(){function t(t){this._element=t}var e,n,a,s=t.prototype;return s.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&r.default(this._element).hasClass("active")||r.default(this._element).hasClass("disabled")||this._element.hasAttribute("disabled"))){var e,n,o=r.default(this._element).closest(".nav, .list-group")[0],a=i.default.getSelectorFromElement(this._element);if(o){var s="UL"===o.nodeName||"OL"===o.nodeName?"> li > .active":".active";n=(n=r.default.makeArray(r.default(o).find(s)))[n.length-1]}var l=r.default.Event("hide.bs.tab",{relatedTarget:this._element}),u=r.default.Event("show.bs.tab",{relatedTarget:n});if(n&&r.default(n).trigger(l),r.default(this._element).trigger(u),!u.isDefaultPrevented()&&!l.isDefaultPrevented()){a&&(e=document.querySelector(a)),this._activate(this._element,o);var c=function(){var e=r.default.Event("hidden.bs.tab",{relatedTarget:t._element}),i=r.default.Event("shown.bs.tab",{relatedTarget:n});r.default(n).trigger(e),r.default(t._element).trigger(i)};e?this._activate(e,e.parentNode,c):c()}}},s.dispose=function(){r.default.removeData(this._element,"bs.tab"),this._element=null},s._activate=function(t,e,n){var o=this,a=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?r.default(e).children(".active"):r.default(e).find("> li > .active"))[0],s=n&&a&&r.default(a).hasClass("fade"),l=function(){return o._transitionComplete(t,a,n)};if(a&&s){var u=i.default.getTransitionDurationFromElement(a);r.default(a).removeClass("show").one(i.default.TRANSITION_END,l).emulateTransitionEnd(u)}else l()},s._transitionComplete=function(t,e,n){if(e){r.default(e).removeClass("active");var o=r.default(e.parentNode).find("> .dropdown-menu .active")[0];o&&r.default(o).removeClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}r.default(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),i.default.reflow(t),t.classList.contains("fade")&&t.classList.add("show");var a=t.parentNode;if(a&&"LI"===a.nodeName&&(a=a.parentNode),a&&r.default(a).hasClass("dropdown-menu")){var s=r.default(t).closest(".dropdown")[0];if(s){var l=[].slice.call(s.querySelectorAll(".dropdown-toggle"));r.default(l).addClass("active")}t.setAttribute("aria-expanded",!0)}n&&n()},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data("bs.tab");if(i||(i=new t(this),n.data("bs.tab",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},e=t,a=[{key:"VERSION",get:function(){return"4.6.2"}}],(n=null)&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}();return r.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),s._jQueryInterface.call(r.default(this),"show")})),r.default.fn.tab=s._jQueryInterface,r.default.fn.tab.Constructor=s,r.default.fn.tab.noConflict=function(){return r.default.fn.tab=a,s._jQueryInterface},s}(n(4),n(8))},function(t,e,n){
56
- /*!
57
- * Bootstrap toast.js v4.6.2 (https://getbootstrap.com/)
58
- * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
59
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
60
- */
61
- t.exports=function(t,e){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var r=n(t),i=n(e);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var s="toast",l=r.default.fn[s],u={animation:!0,autohide:!0,delay:500},c={animation:"boolean",autohide:"boolean",delay:"number"},d=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var e,n,l,d=t.prototype;return d.show=function(){var t=this,e=r.default.Event("show.bs.toast");if(r.default(this._element).trigger(e),!e.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var n=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),r.default(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),i.default.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=i.default.getTransitionDurationFromElement(this._element);r.default(this._element).one(i.default.TRANSITION_END,n).emulateTransitionEnd(o)}else n()}},d.hide=function(){if(this._element.classList.contains("show")){var t=r.default.Event("hide.bs.toast");r.default(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},d.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),r.default(this._element).off("click.dismiss.bs.toast"),r.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},d._getConfig=function(t){return t=a({},u,r.default(this._element).data(),"object"==typeof t&&t?t:{}),i.default.typeCheckConfig(s,t,this.constructor.DefaultType),t},d._setListeners=function(){var t=this;r.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},d._close=function(){var t=this,e=function(){t._element.classList.add("hide"),r.default(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var n=i.default.getTransitionDurationFromElement(this._element);r.default(this._element).one(i.default.TRANSITION_END,e).emulateTransitionEnd(n)}else e()},d._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},t._jQueryInterface=function(e){return this.each((function(){var n=r.default(this),i=n.data("bs.toast");if(i||(i=new t(this,"object"==typeof e&&e),n.data("bs.toast",i)),"string"==typeof e){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e](this)}}))},e=t,l=[{key:"VERSION",get:function(){return"4.6.2"}},{key:"DefaultType",get:function(){return c}},{key:"Default",get:function(){return u}}],(n=null)&&o(e.prototype,n),l&&o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}();return r.default.fn[s]=d._jQueryInterface,r.default.fn[s].Constructor=d,r.default.fn[s].noConflict=function(){return r.default.fn[s]=l,d._jQueryInterface},d}(n(4),n(8))},function(t,e,n){"use strict";n(30)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-rating__verified{color:#6b6d76;font-size:12px;font-weight:400}.mt-rating__verified svg{color:var(--success);width:15px}",""]),t.exports=e},function(t,e,n){"use strict";n(31)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-reply__wrapper{align-items:center;display:flex}@media(max-width:580px){.body-wrapper{padding:0}}",""]),t.exports=e},function(t,e,n){"use strict";n(32)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-player video{display:block;width:100%}.mt-player .playPauseBtn{background:none;border:0;color:#212529;cursor:pointer;line-height:1;max-width:50px;outline:0;padding:0;text-align:center}.mt-player__controls{padding:5px;transform:translateY(0);width:100%}.mt-player__controls>*{flex:1}.mt-player__progress{background:hsla(0,0%,100%,.5);cursor:pointer;display:flex;flex:10;flex-basis:100%;height:5px;max-width:430px;position:relative;width:100%}.mt-player__progress--filled{background:#a50;flex:0;flex-basis:0%;width:50%}",""]),t.exports=e},function(t,e,n){"use strict";n(33)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-quickview{padding:0}@media(min-width:992px){.mt-quickview{display:flex}}@media(min-width:1200px){.mt-quickview{display:flex}}.mt-quickview .close{padding:8px 1rem;position:absolute;z-index:1}.mt-quickview__galery{align-items:center;display:flex;max-width:500px;min-height:500px;width:100%}.mt-quickview__galery img{height:100%;max-height:500px;max-width:500px;-o-object-fit:contain;object-fit:contain;width:100%}.mt-quickview__galery .glide__slides{align-items:center}.mt-quickview__info{align-items:center;display:flex;gap:10px;padding-bottom:10px}.mt-quickview__review{padding:1rem}@media(min-width:992px){.mt-quickview__review{max-height:500px;overflow:auto}}@media(min-width:1200px){.mt-quickview__review{max-height:500px;overflow:auto}}.mt-quickview__controls{padding:5px}.mt-quickview__controls button{align-items:center;border:none;border-radius:50%;display:flex;height:30px;justify-content:center;transition:all .5s ease-in-out;width:30px}.mt-quickview__controls button:hover{background-color:var(--button--hover-color)}.mt-quickview .mt-review{padding:10px 20px}.mt-quickview .video-wrapper{align-items:center;display:flex}",""]),t.exports=e},function(t,e,n){"use strict";n(34)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-gridview{-moz-column-count:2;column-count:2;-moz-column-gap:10px;column-gap:10px;margin-left:auto;margin-right:auto;transition:all .7s ease}@media only screen and (min-width:600px){.mt-gridview{-moz-column-count:3;column-count:3}}@media only screen and (min-width:768px){.mt-gridview{-moz-column-count:4;column-count:4}}@media only screen and (min-width:992px){.mt-gridview{-moz-column-count:5;column-count:5}}.mt-gridview__card{-moz-column-break-inside:avoid;border:1px solid #d5d9d9;border-radius:6px;break-inside:avoid;cursor:pointer;display:grid;grid-template-rows:1fr auto;margin:0 0 10px;width:100%}.mt-gridview__detail{display:flex;flex-direction:column;gap:8px;padding:10px}.mt-gridview__thumb img{border-top-left-radius:5px;border-top-right-radius:5px;max-width:250px;-o-object-fit:contain;object-fit:contain;width:100%}",""]),t.exports=e},function(t,e,n){"use strict";n(35)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-rating__order_by{align-items:center;display:flex;height:40px;justify-content:flex-end;max-width:130px;width:100%}.mt-rating__order_by svg{fill:#6b6d76}.mt-select{background:#fff;border:none;color:#6b6d76;font-size:14px;font-weight:400;height:30px;letter-spacing:normal;line-height:1.14}",""]),t.exports=e},function(t,e,n){"use strict";n(36)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-rating__average__sort{align-items:center;display:flex;justify-content:space-between;padding:15px 0}.mt-rating__count{color:#6b6d76}",""]),t.exports=e},function(t,e,n){"use strict";n(37)},function(t,e,n){(e=n(5)(!1)).push([t.i,".mt-review{padding:25px 0 22px}.mt-review:first-child{padding-top:0}.mt-review__title{color:#6b6d76;font-size:16px}.mt-review__date{color:#475569;color:#777;font-size:10px}.mt-review__body{font-size:16px;line-height:1.6;margin-top:10px;opacity:.9;text-align:justify}.mt-rating__group{display:flex;flex-direction:column;gap:5px;width:100%}.mt-review__author{align-items:center;color:#333;display:flex;font-size:14px;font-weight:bolder;gap:5px;justify-content:center}.mt-review__reactions svg{cursor:pointer;width:18px}.mt-review__reactions{align-items:center;border:1px solid #777;border-radius:50px;color:#777;display:flex;font-size:11px;height:30px;justify-content:space-evenly;margin-top:.75rem;max-width:100px}.mt-reviews__list{padding:5px 0}.mt-reviews__votesdown,.mt-reviews__votesup{align-items:center;display:flex}.mt-reviews__votesup{margin-right:10px}.mt-reply{background:#f1f1f1;border-left:3px solid #e6e6e6;border-radius:12px;border-right:1px solid hsla(0,0%,9%,.102);display:flex;flex-direction:column;font-size:15px;gap:10px;line-height:1.6;margin:10px 0 0;padding:20px}@media(max-width:580px){.mt-reply{margin:10px 0}}.mt-reply__date{color:#475569;color:#777;font-weight:400}.mt-reply__body,.mt-reply__date{font-size:14px;text-decoration:none}.mt-reply__body{font-weight:600}.mt-is__recomended{color:#6b6d76;font-size:12px;font-weight:600}.mt-questions__actions{display:flex;justify-content:center;padding:20px}.mt-rating__option{background-color:#fff;border:1px solid #777;border-radius:20px;color:#777;cursor:pointer;height:35px;transition:all .5s ease;width:140px}.mt-rating__option:hover{background-color:#777;color:#fff}.mt-reviews.mt-theme--vertical .mt-header--vertical{width:30%}.mt-reviews.mt-theme--vertical .mt-reviews__list{width:70%}@media(max-width:580px){.mt-reviews.mt-theme--vertical .mt-reviews__list{width:100%}.mt-reviews.mt-theme--vertical .mt-header--vertical{border-right:none;width:100%}.mt-reviews.mt-theme--vertical .mt-reviews__rating{flex-direction:column}.mt-reviews.mt-theme--vertical .mt-header--vertical .mt-rating__options{max-width:inherit}}.mt-rating__user{align-items:center;background:#858585;border-radius:50%;color:#fff;display:inline-flex;font-size:25px;font-weight:500;height:-moz-fit-content;height:fit-content;justify-content:center;margin-right:8px;max-width:40px;position:relative;width:100%}.mt-reviews.mt-theme--vertical .mt-rating__average__sort{border-bottom:1px solid #eee;padding-bottom:1rem}",""]),t.exports=e},function(t,e,n){"use strict";(function(t){
1
+ var widgetMartan=function(t){function e(e){for(var r,n,o=e[0],s=e[1],a=0,c=[];a<o.length;a++)n=o[a],Object.prototype.hasOwnProperty.call(i,n)&&i[n]&&c.push(i[n][0]),i[n]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(t[r]=s[r]);for(l&&l(e);c.length;)c.shift()()}var r={},i={0:0};function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.e=function(t){var e=[],r=i[t];if(0!==r)if(r)e.push(r[2]);else{var o=new Promise((function(e,n){r=i[t]=[e,n]}));e.push(r[2]=o);var s,a=document.createElement("script");a.charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.src=function(t){return n.p+"widget-martan."+({}[t]||t)+".min.js"}(t);var l=new Error;s=function(e){a.onerror=a.onload=null,clearTimeout(c);var r=i[t];if(0!==r){if(r){var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,r[1](l)}i[t]=void 0}};var c=setTimeout((function(){s({type:"timeout",target:a})}),12e4);a.onerror=a.onload=s,document.head.appendChild(a)}return Promise.all(e)},n.m=t,n.c=r,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/assets/vendor/",n.oe=function(t){throw console.error(t),t};var o=window.webpackJsonpwidgetMartan=window.webpackJsonpwidgetMartan||[],s=o.push.bind(o);o.push=e,o=o.slice();for(var a=0;a<o.length;a++)e(o[a]);var l=s;return n(n.s=64)}([function(t,e,r){"use strict";(function(t){var i=r(14);const{toString:n}=Object.prototype,{getPrototypeOf:o}=Object,s=(a=Object.create(null),t=>{const e=n.call(t);return a[e]||(a[e]=e.slice(8,-1).toLowerCase())});var a;const l=t=>(t=t.toLowerCase(),e=>s(e)===t),c=t=>e=>typeof e===t,{isArray:u}=Array,d=c("undefined");const f=l("ArrayBuffer");const h=c("string"),p=c("function"),m=c("number"),g=t=>null!==t&&"object"==typeof t,v=t=>{if("object"!==s(t))return!1;const e=o(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},w=l("Date"),y=l("File"),b=l("Blob"),_=l("FileList"),x=l("URLSearchParams");function R(t,e,{allOwnKeys:r=!1}={}){if(null==t)return;let i,n;if("object"!=typeof t&&(t=[t]),u(t))for(i=0,n=t.length;i<n;i++)e.call(null,t[i],i,t);else{const n=r?Object.getOwnPropertyNames(t):Object.keys(t),o=n.length;let s;for(i=0;i<o;i++)s=n[i],e.call(null,t[s],s,t)}}function E(t,e){e=e.toLowerCase();const r=Object.keys(t);let i,n=r.length;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const C="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:t,A=t=>!d(t)&&t!==C;const S=(O="undefined"!=typeof Uint8Array&&o(Uint8Array),t=>O&&t instanceof O);var O;const k=l("HTMLFormElement"),P=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),T=l("RegExp"),j=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),i={};R(r,(r,n)=>{let o;!1!==(o=e(r,n,t))&&(i[n]=o||r)}),Object.defineProperties(t,i)},B="abcdefghijklmnopqrstuvwxyz",U={DIGIT:"0123456789",ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+"0123456789"};const M=l("AsyncFunction");e.a={isArray:u,isArrayBuffer:f,isBuffer:function(t){return null!==t&&!d(t)&&null!==t.constructor&&!d(t.constructor)&&p(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||p(t.append)&&("formdata"===(e=s(t))||"object"===e&&p(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e},isString:h,isNumber:m,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:v,isUndefined:d,isDate:w,isFile:y,isBlob:b,isRegExp:T,isFunction:p,isStream:t=>g(t)&&p(t.pipe),isURLSearchParams:x,isTypedArray:S,isFileList:_,forEach:R,merge:function t(){const{caseless:e}=A(this)&&this||{},r={},i=(i,n)=>{const o=e&&E(r,n)||n;v(r[o])&&v(i)?r[o]=t(r[o],i):v(i)?r[o]=t({},i):u(i)?r[o]=i.slice():r[o]=i};for(let t=0,e=arguments.length;t<e;t++)arguments[t]&&R(arguments[t],i);return r},extend:(t,e,r,{allOwnKeys:n}={})=>(R(e,(e,n)=>{r&&p(e)?t[n]=Object(i.a)(e,r):t[n]=e},{allOwnKeys:n}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,r,i)=>{t.prototype=Object.create(e.prototype,i),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:(t,e,r,i)=>{let n,s,a;const l={};if(e=e||{},null==t)return e;do{for(n=Object.getOwnPropertyNames(t),s=n.length;s-- >0;)a=n[s],i&&!i(a,t,e)||l[a]||(e[a]=t[a],l[a]=!0);t=!1!==r&&o(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:s,kindOfTest:l,endsWith:(t,e,r)=>{t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;const i=t.indexOf(e,r);return-1!==i&&i===r},toArray:t=>{if(!t)return null;if(u(t))return t;let e=t.length;if(!m(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},forEachEntry:(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const r=i.value;e.call(t,r[0],r[1])}},matchAll:(t,e)=>{let r;const i=[];for(;null!==(r=t.exec(e));)i.push(r);return i},isHTMLForm:k,hasOwnProperty:P,hasOwnProp:P,reduceDescriptors:j,freezeMethods:t=>{j(t,(e,r)=>{if(p(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const i=t[r];p(i)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(t,e)=>{const r={},i=t=>{t.forEach(t=>{r[t]=!0})};return u(t)?i(t):i(String(t).split(e)),r},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r})),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:E,global:C,isContextDefined:A,ALPHABET:U,generateString:(t=16,e=U.ALPHA_DIGIT)=>{let r="";const{length:i}=e;for(;t--;)r+=e[Math.random()*i|0];return r},isSpecCompliantForm:function(t){return!!(t&&p(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),r=(t,i)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[i]=t;const n=u(t)?[]:{};return R(t,(t,e)=>{const o=r(t,i+1);!d(o)&&(n[e]=o)}),e[i]=void 0,n}}return t};return r(t,0)},isAsyncFn:M,isThenable:t=>t&&(g(t)||p(t))&&p(t.then)&&p(t.catch)}}).call(this,r(33))},function(t,e,r){"use strict";var i=r(0);function n(t,e,r,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),i&&(this.request=i),n&&(this.response=n)}i.a.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i.a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const o=n.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{s[t]={value:t}}),Object.defineProperties(n,s),Object.defineProperty(o,"isAxiosError",{value:!0}),n.from=(t,e,r,s,a,l)=>{const c=Object.create(o);return i.a.toFlatObject(t,c,(function(t){return t!==Error.prototype}),t=>"isAxiosError"!==t),n.call(c,t.message,e,r,s,a),c.cause=t,c.name=t.name,l&&Object.assign(c,l),c},e.a=n},function(t,e,r){"use strict";function i(t,e,r,i,n,o,s,a){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),i&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=l):n&&(l=a?function(){n.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:n),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}r.d(e,"a",(function(){return i}))},function(t,e){t.exports=void 0},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",i=t[3];if(!i)return r;if(e&&"function"==typeof btoa){var n=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(l," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([n]).join("\n")}var s,a,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,i){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(n[s]=!0)}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);i&&n[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},function(t,e,r){"use strict";function i(t,e){for(var r=[],i={},n=0;n<e.length;n++){var o=e[n],s=o[0],a={id:t+":"+n,css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):r.push(i[s]={id:s,parts:[a]})}return r}r.r(e),r.d(e,"default",(function(){return h}));var n="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!n)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=n&&(document.head||document.getElementsByTagName("head")[0]),a=null,l=0,c=!1,u=function(){},d=null,f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(t,e,r,n){c=r,d=n||{};var s=i(t,e);return p(s),function(e){for(var r=[],n=0;n<s.length;n++){var a=s[n];(l=o[a.id]).refs--,r.push(l)}e?p(s=i(t,e)):s=[];for(n=0;n<r.length;n++){var l;if(0===(l=r[n]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete o[l.id]}}}}function p(t){for(var e=0;e<t.length;e++){var r=t[e],i=o[r.id];if(i){i.refs++;for(var n=0;n<i.parts.length;n++)i.parts[n](r.parts[n]);for(;n<r.parts.length;n++)i.parts.push(g(r.parts[n]));i.parts.length>r.parts.length&&(i.parts.length=r.parts.length)}else{var s=[];for(n=0;n<r.parts.length;n++)s.push(g(r.parts[n]));o[r.id]={id:r.id,refs:1,parts:s}}}}function m(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function g(t){var e,r,i=document.querySelector('style[data-vue-ssr-id~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var n=l++;i=a||(a=m()),e=y.bind(null,i,n,!1),r=y.bind(null,i,n,!0)}else i=m(),e=b.bind(null,i),r=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else r()}}var v,w=(v=[],function(t,e){return v[t]=e,v.filter(Boolean).join("\n")});function y(t,e,r,i){var n=r?"":i.css;if(t.styleSheet)t.styleSheet.cssText=w(e,n);else{var o=document.createTextNode(n),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function b(t,e){var r=e.css,i=e.media,n=e.sourceMap;if(i&&t.setAttribute("media",i),d.ssrId&&t.setAttribute("data-vue-ssr-id",e.id),n&&(r+="\n/*# sourceURL="+n.sources[0]+" */",r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}},function(t,e,r){"use strict";var i={name:"Rating",props:{rating:{type:Number,default:5},color:{type:String,default:"#000000"}},data:()=>({stars:Array(5).fill(!1)}),mounted(){this.updateStars()},methods:{updateStars(){const t=Math.floor(this.rating);this.stars=this.stars.map((e,r)=>r<t)}},watch:{rating:"updateStars"}},n=(r(38),r(2)),o=Object(n.a)(i,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("span",{staticClass:"martan-rating"},t._l(t.stars,(function(e,i){return r("svg",{key:i,staticClass:"icon icon-tabler",class:t.stars[i]+" ? 'icon-tabler-star-filled' : icon-tabler-star",style:{color:t.color},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[r("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),r("path",{attrs:{d:t.stars[i]?"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z":"M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z",fill:t.stars[i]?"currentColor":"none"}})])})),0)}),[],!1,null,null,null);e.a=o.exports},function(t,e,r){"use strict";(function(t){var i=r(0),n=r(1),o=r(15);function s(t){return i.a.isPlainObject(t)||i.a.isArray(t)}function a(t){return i.a.endsWith(t,"[]")?t.slice(0,-2):t}function l(t,e,r){return t?t.concat(e).map((function(t,e){return t=a(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}const c=i.a.toFlatObject(i.a,{},null,(function(t){return/^is[A-Z]/.test(t)}));e.a=function(e,r,u){if(!i.a.isObject(e))throw new TypeError("target must be an object");r=r||new(o.a||FormData);const d=(u=i.a.toFlatObject(u,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!i.a.isUndefined(e[t])}))).metaTokens,f=u.visitor||v,h=u.dots,p=u.indexes,m=(u.Blob||"undefined"!=typeof Blob&&Blob)&&i.a.isSpecCompliantForm(r);if(!i.a.isFunction(f))throw new TypeError("visitor must be a function");function g(e){if(null===e)return"";if(i.a.isDate(e))return e.toISOString();if(!m&&i.a.isBlob(e))throw new n.a("Blob is not supported. Use a Buffer instead.");return i.a.isArrayBuffer(e)||i.a.isTypedArray(e)?m&&"function"==typeof Blob?new Blob([e]):t.from(e):e}function v(t,e,n){let o=t;if(t&&!n&&"object"==typeof t)if(i.a.endsWith(e,"{}"))e=d?e:e.slice(0,-2),t=JSON.stringify(t);else if(i.a.isArray(t)&&function(t){return i.a.isArray(t)&&!t.some(s)}(t)||(i.a.isFileList(t)||i.a.endsWith(e,"[]"))&&(o=i.a.toArray(t)))return e=a(e),o.forEach((function(t,n){!i.a.isUndefined(t)&&null!==t&&r.append(!0===p?l([e],n,h):null===p?e:e+"[]",g(t))})),!1;return!!s(t)||(r.append(l(n,e,h),g(t)),!1)}const w=[],y=Object.assign(c,{defaultVisitor:v,convertValue:g,isVisitable:s});if(!i.a.isObject(e))throw new TypeError("data must be an object");return function t(e,n){if(!i.a.isUndefined(e)){if(-1!==w.indexOf(e))throw Error("Circular reference detected in "+n.join("."));w.push(e),i.a.forEach(e,(function(e,o){!0===(!(i.a.isUndefined(e)||null===e)&&f.call(r,e,i.a.isString(o)?o.trim():o,n,y))&&t(e,n?n.concat(o):[o])})),w.pop()}}(e),r}}).call(this,r(58).Buffer)},function(t,e,r){"use strict";function i(t){const e=Math.floor((new Date-new Date(t))/1e3),r={ano:31536e3,"mês":2592e3,semana:604800,dia:86400,hora:3600,minuto:60,segundo:1};let i;if(0===e)return"Agora";for(const t in r)if(i=Math.floor(e/r[t]),i>0)return 1===i?`${i} ${t} atrás`:"mês"===t?i+" meses atrás":`${i} ${t}s atrás`}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";var i=r(13),n=r.n(i),o=r(66),s=r(3),a=r(11),l=r(8),c=r(17),u=r(10),d=r(18),f=r(19),h=r(20),p=r(21),m={name:"VideoPlayer",props:{video:{type:String,required:!0}},data:()=>({isPlaying:!0}),methods:{play(){this.$refs.videoPlayer.paused||this.$refs.videoPlayer.ended?this.$refs.videoPlayer.play():this.$refs.videoPlayer.pause()},updateBtn(){this.isPlaying=this.$refs.videoPlayer.paused}},mounted:function(){this.$refs.playButton.addEventListener("click",this.play),this.$refs.videoPlayer.addEventListener("click",this.play),this.$refs.videoPlayer.addEventListener("play",this.updateBtn),this.$refs.videoPlayer.addEventListener("pause",this.updateBtn)}},g=(r(46),r(2)),v=Object(g.a)(m,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"mt-player"},[e("video",{ref:"videoPlayer",attrs:{preload:"metadata"}},[e("source",{attrs:{src:this.video,type:"video/mp4"}})]),e("div",{staticClass:"mt-player__controls"},[e("button",{ref:"playButton",staticClass:"playPauseBtn",attrs:{title:"tocar vídeo"}},[this.isPlaying?e("svg",{staticClass:"icon icon-tabler icon-tabler-player-play",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M7 4v16l13 -8z"}})]):e("svg",{staticClass:"icon icon-tabler icon-tabler-player-pause",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[e("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M6 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}}),e("path",{attrs:{d:"M14 5m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v12a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z"}})])])])])}),[],!1,null,null,null).exports,w=r(6),y={name:"Quickview",components:{ThumbsPictures:c.a,Rating:w.a,VerifiedPurchase:u.a,AuthorAndRating:d.a,IsRecommended:f.a,ReviewBody:h.a,ReviewReply:p.a,VideoPlayer:v},props:{review:Object,isOpen:{type:Boolean,default:!1},starColor:String},data:()=>({glide:null}),computed:{i19quickview:()=>"Quickview",i19next:()=>Object(s.i18n)(o.a),i19previous:()=>Object(s.i18n)(o.c),reviewId:function(){return this.review&&this.review.id?this.review.id:null},pictures:function(){return this.review&&this.review.pictures?this.review.pictures:[]},video:function(){return this.review&&this.review.video_url?this.review.video_url:null},title:function(){return this.review&&this.review.title?this.review.title:null},author:function(){return this.review&&this.review.display_name?this.review.display_name:null},rating:function(){return this.review&&this.review.rating?this.review.rating:null},recommended:function(){return this.review&&this.review.is_recommended?this.review.is_recommended:null},isVerified:function(){return this.review&&this.review.verified_purchase?this.review.verified_purchase:null},reply:function(){return this.review&&this.review.reply?this.review.reply:null},created:function(){return this.review&&this.review.created_at?this.review.created_at:null},body:function(){return this.review&&this.review.body?this.review.body:null}},watch:{isOpen:function(t){t&&Object(a.$)("#martan-quickview").modal("show")}},mounted(){Object(a.$)("#martan-quickview").on("hidden.bs.modal",this.close),Object(a.$)("#martan-quickview").on("shown.bs.modal",this.mount),this.glide=new n.a(".mt-quickview__galery",{keyboard:!1,rewind:!0,type:"carousel",dragThreshold:!1,startAt:0,perView:1,perViewLg:1,perViewSm:1})},beforeDestroy(){this.glide&&this.glide.destroy()},methods:{mount:function(){(this.review&&this.review.pictures||this.review&&this.review.video_url)&&setTimeout(()=>{try{this.glide.mount(),this.glide.update({perView:1})}catch(t){}},5)},close:function(){this.$emit("onClose",!0);try{this.glide.destroy()}catch(t){}},next:function(){try{this.glide.go(">"),this.glide.update({perView:1})}catch(t){}},back:function(){try{this.glide.go("<"),this.glide.update({perView:1})}catch(t){}},goToSlide:function({slide:t}){try{this.glide&&this.glide.go("="+t).update({perView:1})}catch(t){}},formatDate:s.formatDate,timeAgo:l.a}},b=(r(48),Object(g.a)(y,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"modal fade",attrs:{id:"martan-quickview",tabindex:"-1",role:"dialog","aria-labelledby":"quickviewModal","aria-hidden":"true"}},[r("div",{staticClass:"modal-dialog modal-dialog-centered modal-xl",attrs:{role:"document"}},[r("div",{staticClass:"modal-content"},[r("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"modal-header"},[r("h5",{staticClass:"modal-title",attrs:{id:"quickviewModal"}},[t._v(t._s(t.i19quickview))]),t._m(0)]),r("div",{staticClass:"modal-body mt-quickview"},[t._m(1),t.pictures.length||t.video?r("div",{ref:"galery",staticClass:"glide mt-quickview__galery"},[r("div",{staticClass:"mt-quickview__controls",style:"--button--hover-color:"+(t.starColor||"#eeeeee"),attrs:{"data-glide-el":"controls"}},[t.glide&&t.glide.index>0?r("button",{staticClass:"left",attrs:{title:t.i19previous,"aria-label":t.i19previous,"data-glide-dir":"<"},on:{click:t.back}},[r("i",{staticClass:"i-chevron-left"})]):t._e()]),r("div",{staticClass:"glide__track",attrs:{"data-glide-el":"track"}},[r("ul",{staticClass:"glide__slides"},[t._l(t.pictures,(function(e){return r("li",{key:e.id,staticClass:"glide__slide"},[r("img",{attrs:{alt:"Foto da avaliação do produto feita por "+t.author,src:e.big}})])})),t.video?r("li",{key:t.video,staticClass:"lazy-image video-wrapper"},[r("VideoPlayer",{attrs:{video:t.video}})],1):t._e()],2)]),r("div",{staticClass:"mt-quickview__controls",style:"--button--hover-color:"+(t.starColor||"#eeeeee"),attrs:{"data-glide-el":"controls"}},[r("button",{attrs:{title:t.i19next,"aria-label":t.i19next,"data-glide-dir":">"},on:{click:t.next}},[r("i",{staticClass:"i-chevron-right"})])])]):t._e(),r("div",{staticClass:"mt-review"},[r("div",{staticClass:"mt-rating__group"},[t.review?r("AuthorAndRating",{attrs:{author:t.author,isAnonymous:t.review.is_anonymous,rating:t.rating,starColor:t.starColor}}):t._e(),t.review?r("isRecommended",{attrs:{recommended:t.recommended}}):t._e(),t.isVerified?r("VerifiedPurchase",{attrs:{showVerified:!0}}):t._e()],1),t.review?r("ThumbsPictures",{attrs:{review:t.review},on:{onClick:t.goToSlide}}):t._e(),t.review?r("ReviewBody",{attrs:{body:t.body,createdAt:t.review.created_at}}):t._e(),r("ReviewReply",{attrs:{reply:t.reply}})],1)])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("button",{staticClass:"close",attrs:{type:"button","data-dismiss":"modal","aria-label":"Close"}},[e("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])])}],!1,null,null,null));e.a=b.exports},function(t,e,r){"use strict";var i=r(3),n=r(11),o={name:"VerifiedPurchase",props:{showVerified:{type:Boolean,default:!1}},data:()=>({collapseId:null}),computed:{i19verifiedBuyer:()=>"Comprador verificado",i19howProcessVerifiedMsg:()=>Object(i.i18n)({en_us:"How we verify and process reviews",pt_br:"Como verificamos e processamos avaliações"}),i19useMartanPrivacyMsg:()=>Object(i.i18n)({en_us:"We use Martan, a web-based application that provides an online reviews and marketing solution, to collect, source, process and display reviews on our website.",pt_br:"Utilizamos o Martan, uma aplicação baseada na web que oferece uma solução de avaliações online e marketing, para coletar, originar, processar e exibir avaliações em nosso site."}),i19howWeCollectMsg:()=>Object(i.i18n)({en_us:'We automatically send review requests through Martan to customers for whom we have a record of purchasing products directly from our website. This allows us to verify the reliability of the review through technical means such as the customers email address. Reviews submitted directly through these requests are marked as "Verified Purchase", and the following statement will be displayed in the interface where the review is published: "This review was collected from a verified customer who purchased this item."',pt_br:'Enviamos automaticamente solicitações de avaliações por meio do Martan aos clientes para os quais temos registro de que compraram produtos diretamente em nosso site. Isso nos permite verificar a confiabilidade da avaliação por meio de meios técnicos, como o endereço de e-mail do cliente. As avaliações enviadas diretamente por essas solicitações são marcadas como "Compra verificada", e a seguinte declaração será exibida na interface em que a avaliação for publicada: "Esta avaliação foi coletada de um cliente verificado que comprou este item".'}),i19howClientsReviewMsg:()=>Object(i.i18n)({en_us:"Customers can choose how to rate reviewed products with a score between 1 and 5. The average review score is calculated using a simple mathematical average, which is then rounded to a half or full star rating using standard rounding rules. The average review score includes reviews for which customers received discounts on future purchases for adding a photo or video to their review.",pt_br:"Os clientes podem escolher como avaliar os produtos avaliados com uma pontuação entre 1 e 5. A pontuação média das avaliações é calculada usando uma média matemática simples, que é então arredondada para uma meia ou uma avaliação de estrela completa usando regras padrão de arredondamento. A pontuação média das avaliações inclui avaliações para as quais os clientes receberam descontos em compras futuras por adicionar uma foto ou um vídeo à sua avaliação."})},methods:{open:function(){Object(n.$)("#"+this.collapseId).collapse("toggle")}},mounted:function(){this.collapseId="mt-verified-"+Date.now()}},s=(r(42),r(2)),a=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"mt-rating__verified"},[r("svg",{staticClass:"icon icon-tabler icon-tabler-discount-check-filled",attrs:{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[r("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),r("path",{attrs:{d:"M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z","stroke-width":"0",fill:"currentColor"}})]),r("span",[t._v(" "+t._s(t.i19verifiedBuyer)+" ")])]),r("div",{staticClass:"collapse multi-collapse",attrs:{id:t.collapseId}},[r("div",{staticClass:"card card-body"},[r("h5",[t._v(" "+t._s(t.i19howProcessVerifiedMsg)+" ")]),r("p",[t._v(" "+t._s(t.i19useMartanPrivacyMsg)+" ")]),r("p",[t._v(" "+t._s(t.i19howWeCollectMsg)+" ")]),r("p",[t._v(" "+t._s(t.i19howClientsReviewMsg)+" ")])])])])}),[],!1,null,null,null);e.a=a.exports},function(t,e){t.exports=void 0},function(t,e){t.exports=void 0},function(t,e){t.exports=void 0},function(t,e,r){"use strict";function i(t,e){return function(){return t.apply(e,arguments)}}r.d(e,"a",(function(){return i}))},function(t,e,r){"use strict";e.a=null},function(t,e,r){"use strict";var i=r(6),n=r(17),o=r(10),s=r(18),a=r(19),l=r(20),c=r(21),u={name:"CardReview",props:{review:{type:Object,default:()=>({})},starColor:{type:String,default:"#212529"}},components:{ThumbsPictures:n.a,Rating:i.a,VerifiedPurchase:o.a,AuthorAndRating:s.a,IsRecommended:a.a,ReviewBody:l.a,ReviewReply:c.a},computed:{isVerified:function(){return this.review&&this.review.verified_purchase}}},d=(r(44),r(2)),f=Object(d.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-review"},[r("div",{staticClass:"mt-rating__group"},[t.review?r("author-and-rating",{attrs:{author:t.review.display_name,isAnonymous:t.review.is_anonymous,rating:t.review.rating,starColor:t.starColor}}):t._e(),t.review?r("is-recommended",{attrs:{recommended:t.review.is_recommended}}):t._e(),t.isVerified?r("verified-purchase"):t._e()],1),r("thumbs-pictures",{attrs:{review:t.review},on:{onClick:function(e){return t.$emit("openQuickview",e)}}}),t.review?r("review-body",{attrs:{body:t.review.body,createdAt:t.review.created_at}}):t._e(),r("review-reply",{attrs:{reply:t.review.reply}})],1)}),[],!1,null,null,null);e.a=f.exports},function(t,e,r){"use strict";var i={name:"ThumbsPictures",props:{review:{type:Object,required:!0}},computed:{pictures:function(){return this.review.pictures||[]},video:function(){return this.review.video_url||null},title:function(){return this.review.title||null}},mounted(){const t=Array.from(document.querySelectorAll(".mt-lazy-image img")),e=new IntersectionObserver((t,r)=>{t.forEach(t=>{if(t.isIntersecting&&"false"===t.target.dataset.loaded){const r=t.target;r.dataset.loaded=!0,r.src=r.dataset.src,e.unobserve(r)}})});t.forEach(t=>e.observe(t))},methods:{onClick(t){const{review:e}=this;this.$emit("onClick",{review:e,slide:t})}}},n=(r(40),r(2)),o=Object(n.a)(i,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"media"},[t.pictures.length||t.video?r("ul",{staticClass:"media__list"},[t._l(t.pictures,(function(e,i){return t.pictures.length?r("li",{key:e.thumb,staticClass:"mt-lazy-image",on:{click:function(e){return t.onClick(i)}}},[r("img",{staticClass:"media__preview",attrs:{alt:t.title,"data-src":e.thumb,"data-loaded":"false"}})]):t._e()})),t.video?r("li",{key:t.video,staticClass:"lazy-image",attrs:{title:"Abrir vídeo"},on:{click:function(e){return t.onClick(t.pictures.length)}}},[r("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 24 24","stroke-width":"2",stroke:"#ffffff",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"}},[r("path",{attrs:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}}),r("path",{attrs:{d:"M7 4v16l13 -8z"}})])]):t._e()],2):t._e()])}),[],!1,null,null,null);e.a=o.exports},function(t,e,r){"use strict";var i=r(6),n={name:"AuthorAndRating",props:{isAnonymous:Boolean,author:String,rating:Number,starColor:String},components:{Rating:i.a}},o=r(2),s=Object(o.a)(n,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"flex","align-items":"baseline","justify-content":"space-between"}},[e("div",{staticStyle:{display:"flex",height:"20px","align-items":"center",gap:"5px"}},[e("div",{staticClass:"mt-review__author",staticStyle:{"padding-right":"2px"}},[e("span",[this._v(this._s(this.isAnonymous?"Anônimo":this.author))])]),e("rating",{attrs:{rating:this.rating,color:this.starColor}})],1)])}),[],!1,null,null,null);e.a=s.exports},function(t,e,r){"use strict";var i=r(66),n=r(3),o={name:"isRecommended",props:{recommended:{type:Boolean,default:!0}},computed:{i19customerRecommendProduct:()=>"Cliente recomendaria o produto",i19customerNoRecommendProduct:()=>"Cliente não recomendaria o produto",i19no:()=>Object(n.i18n)(i.b),i19recommendProductQn:()=>"Recomendaria o produto ?",i19yes:()=>Object(n.i18n)(i.d)}},s=r(2),a=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-is__recomended",attrs:{title:t.recommended?t.i19customerRecommendProduct:t.i19customerNoRecommendProduct}},[r("span",[t._v(" "+t._s(t.i19recommendProductQn)+" ")]),r("span",[t._v(t._s(t.recommended?t.i19yes:t.i19no))])])}),[],!1,null,null,null);e.a=a.exports},function(t,e,r){"use strict";var i=r(3),n=r(8),o={name:"ReviewBody",props:{body:{type:String,required:!0},createdAt:{type:String,required:!0}},computed:{i19published:()=>"Publicado"},methods:{formatDate:i.formatDate,timeAgo:n.a}},s=r(2),a=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"body-wrapper"},[r("div",{staticClass:"mt-review__body"},[t._v(t._s(t.body))]),r("span",{staticClass:"mt-review__date",attrs:{title:t.formatDate(t.createdAt)}},[t._v(" "+t._s(t.i19published)+" "+t._s(t.timeAgo(t.createdAt))+" ")])])}),[],!1,null,null,null);e.a=a.exports},function(t,e,r){"use strict";var i=r(3),n=r(8),o={name:"ReviewReply",props:{reply:{type:Object}},computed:{i19storeResponse:()=>"Resposta da loja"},methods:{formatDate:i.formatDate,timeAgo:n.a}},s=r(2),a=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.reply?r("div",{staticClass:"mt-reply__wrapper"},[r("div",{staticStyle:{"margin-right":"10px"}},[r("svg",{staticStyle:{transform:"rotate(180deg)"},attrs:{width:"24px",height:"24px",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M10.53 5.03a.75.75 0 10-1.06-1.06l-6.25 6.25a.75.75 0 000 1.06l6.25 6.25a.75.75 0 101.06-1.06L5.56 11.5H17a3.248 3.248 0 013.25 3.248v4.502a.75.75 0 001.5 0v-4.502A4.748 4.748 0 0017 10H5.56l4.97-4.97z"}})])]),r("div",{staticClass:"mt-reply"},[r("span",{staticClass:"mt-reply__body"},[t._v(t._s(t.i19storeResponse)+" · "),r("span",{staticClass:"mt-reply__date",attrs:{title:"Respondido em "+t.formatDate(t.reply.created_at)}},[t._v(t._s(t.timeAgo(t.reply.created_at)))])]),r("span",[t._v(t._s(t.reply.body))])])]):t._e()}),[],!1,null,null,null);e.a=a.exports},,function(t,e,r){var i=r(39);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("2d2842e6",i,!0,{})},function(t,e,r){var i=r(41);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("1743d057",i,!0,{})},function(t,e,r){var i=r(43);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("2134e6ae",i,!0,{})},function(t,e,r){var i=r(45);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("c257d91a",i,!0,{})},function(t,e,r){var i=r(47);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("3d19f862",i,!0,{})},function(t,e,r){var i=r(49);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("0359b7b7",i,!0,{})},function(t,e,r){var i=r(51);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("76312b51",i,!0,{})},function(t,e,r){var i=r(53);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("2efc1134",i,!0,{})},function(t,e,r){var i=r(55);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("25380f9a",i,!0,{})},function(t,e,r){var i=r(57);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("10f54964",i,!0,{})},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var i=r(63);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,r(5).default)("0358c92c",i,!0,{})},function(t,e,r){"use strict";const i=[{key:"most_recent",name:"Recentes"},{key:"most_voted",name:"Mais úteis"},{key:"most_positive",name:"Positivas"},{key:"most_negative",name:"Negativas"}];var n={name:"Sort",data:()=>({orderOptions:i})},o=(r(52),r(2)),s=Object(o.a)(n,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-rating__order_by"},[r("svg",{attrs:{width:"24px",height:"24px",viewBox:"0 0 200 200",xmlns:"http://www.w3.org/2000/svg"}},[r("title"),r("path",{attrs:{d:"M110.22,117.75h-80a10,10,0,0,0,0,20h80a10,10,0,0,0,0-20Z"}}),r("path",{attrs:{d:"M177.22,125.75a9.67,9.67,0,0,0-14,0l-8,7.5V42.75a10,10,0,0,0-20,0v113.5a8.29,8.29,0,0,0,3,8,9.67,9.67,0,0,0,14,0l24.5-24.5a10.13,10.13,0,0,0,.5-14Z"}}),r("path",{attrs:{d:"M110.22,37.75h-80a10,10,0,0,0,0,20h80a10,10,0,0,0,0-20Z"}}),r("path",{attrs:{d:"M30.22,97.75h70a10,10,0,0,0,0-20h-70a10,10,0,0,0,0,20Z"}})]),r("select",{staticClass:"mt-select",on:{change:function(e){return t.$emit("onSort",{order:e.target.value})}}},[r("option",{attrs:{selected:"",disabled:""}},[t._v("Ordenar")]),t._l(t.orderOptions,(function(e){return r("option",{key:e.key,domProps:{value:e.key}},[t._v(" "+t._s(e.name)+" ")])}))],2)])}),[],!1,null,null,null);e.a=s.exports},function(t,e,r){"use strict";r.r(e);var i=r(16),n=r(9),o={name:"ListView",components:{CardReview:i.a,Quickview:n.a},props:{starColor:{type:String,default:"#212529"},reviews:{type:Object,default:{list:[],orderRating:null,total:0}}},methods:{openQuickview:function({review:t,slide:e}){this.$emit("openQuickview",{review:t,slide:e})}}},s=r(2),a=Object(s.a)(o,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-reviews__list"},t._l(t.reviews.list,(function(e){return r("card-review",{key:e.id,attrs:{review:e,starColor:t.starColor},on:{openQuickview:t.openQuickview}})})),1)}),[],!1,null,null,null);e.default=a.exports},function(t,e,r){"use strict";r.r(e);var i=r(6),n=r(16),o=r(10),s={name:"GridView",components:{CardReview:n.a,Rating:i.a,VerifiedPurchase:o.a},props:{starColor:{type:String,default:"#212529"},reviews:{type:Object,default:{list:[],orderRating:null,total:0}}},methods:{openQuickview:function(t){this.$emit("openQuickview",{review:t})},getPictureURL:t=>!!(t&&t.pictures&&t.pictures.length&&t.pictures[0].normal)&&t.pictures[0].normal}},a=(r(50),r(2)),l=Object(a.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-gridview"},t._l(t.reviews.list,(function(e){return r("div",{key:e.id,staticClass:"mt-gridview__card",on:{click:function(r){return t.openQuickview(e)}}},[t.getPictureURL(e)?r("div",{staticClass:"mt-gridview__thumb"},[r("img",{attrs:{src:t.getPictureURL(e),alt:e.title},on:{click:function(){return t.openQuickview(e)}}})]):t._e(),r("div",{staticClass:"mt-gridview__detail"},[r("span",{staticClass:"mt-gridview__author"},[t._v(t._s(e.display_name.substr(0,16)))]),r("rating",{attrs:{rating:e.rating,color:t.starColor}}),e.verified_purchase?r("verified-purchase"):t._e(),r("span",{staticClass:"mt-gridview__body"},[t._v(t._s(e.body.substr(0,250)))])],1)])})),0)}),[],!1,null,null,null);e.default=l.exports},function(t,e,r){"use strict";r(23)},function(t,e,r){(e=r(4)(!1)).push([t.i,".martan-rating{display:flex;gap:4px}",""]),t.exports=e},function(t,e,r){"use strict";r(24)},function(t,e,r){(e=r(4)(!1)).push([t.i,".media--open{width:500px}.media__preview{display:block;height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.media__list{display:flex;list-style:none;padding:.75rem 0 0}.media__list li{-webkit-tap-highlight-color:rgba(0,0,0,0);align-items:center;background-color:#383a3e;border:.125rem solid #383a3e;border-radius:5px;box-sizing:border-box;cursor:pointer;display:flex;height:2.375rem;justify-content:center;margin-right:.25rem;min-width:2.375rem;overflow:hidden;padding:0;position:relative;text-decoration:none;transition:all .3s ease;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:2.375rem}",""]),t.exports=e},function(t,e,r){"use strict";r(25)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-rating__verified{color:#6b6d76;font-size:12px;font-weight:400}.mt-rating__verified svg{color:var(--success);width:15px}",""]),t.exports=e},function(t,e,r){"use strict";r(26)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-reply__wrapper{align-items:center;display:flex}@media(max-width:580px){.body-wrapper{padding:0}}",""]),t.exports=e},function(t,e,r){"use strict";r(27)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-player video{display:block;width:100%}.mt-player .playPauseBtn{background:none;border:0;color:#212529;cursor:pointer;line-height:1;max-width:50px;outline:0;padding:0;text-align:center}.mt-player__controls{padding:5px;transform:translateY(0);width:100%}.mt-player__controls>*{flex:1}.mt-player__progress{background:hsla(0,0%,100%,.5);cursor:pointer;display:flex;flex:10;flex-basis:100%;height:5px;max-width:430px;position:relative;width:100%}.mt-player__progress--filled{background:#a50;flex:0;flex-basis:0%;width:50%}",""]),t.exports=e},function(t,e,r){"use strict";r(28)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-quickview{padding:0}@media(min-width:992px){.mt-quickview{display:flex}}@media(min-width:1200px){.mt-quickview{display:flex}}.mt-quickview .close{padding:8px 1rem;position:absolute;z-index:1}.mt-quickview__galery{align-items:center;display:flex;max-width:500px;min-height:500px;width:100%}.mt-quickview__galery img{height:100%;max-height:500px;max-width:500px;-o-object-fit:contain;object-fit:contain;width:100%}.mt-quickview__galery .glide__slides{align-items:center}.mt-quickview__info{align-items:center;display:flex;gap:10px;padding-bottom:10px}.mt-quickview__review{padding:1rem}@media(min-width:992px){.mt-quickview__review{max-height:500px;overflow:auto}}@media(min-width:1200px){.mt-quickview__review{max-height:500px;overflow:auto}}.mt-quickview__controls{padding:5px}.mt-quickview__controls button{align-items:center;border:none;border-radius:50%;display:flex;height:30px;justify-content:center;transition:all .5s ease-in-out;width:30px}.mt-quickview__controls button:hover{background-color:var(--button--hover-color)}.mt-quickview .mt-review{padding:10px 20px}.mt-quickview .video-wrapper{align-items:center;display:flex}",""]),t.exports=e},function(t,e,r){"use strict";r(29)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-gridview{-moz-column-count:2;column-count:2;-moz-column-gap:10px;column-gap:10px;margin-left:auto;margin-right:auto;transition:all .7s ease}@media only screen and (min-width:600px){.mt-gridview{-moz-column-count:3;column-count:3}}@media only screen and (min-width:768px){.mt-gridview{-moz-column-count:4;column-count:4}}@media only screen and (min-width:992px){.mt-gridview{-moz-column-count:5;column-count:5}}.mt-gridview__card{-moz-column-break-inside:avoid;border:1px solid #d5d9d9;border-radius:6px;break-inside:avoid;cursor:pointer;display:grid;grid-template-rows:1fr auto;margin:0 0 10px;width:100%}.mt-gridview__detail{display:flex;flex-direction:column;gap:8px;padding:10px}.mt-gridview__thumb img{border-top-left-radius:5px;border-top-right-radius:5px;max-width:250px;-o-object-fit:contain;object-fit:contain;width:100%}",""]),t.exports=e},function(t,e,r){"use strict";r(30)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-rating__order_by{align-items:center;display:flex;height:40px;justify-content:flex-end;max-width:130px;width:100%}.mt-rating__order_by svg{fill:#6b6d76}.mt-select{background:#fff;border:none;color:#6b6d76;font-size:14px;font-weight:400;height:30px;letter-spacing:normal;line-height:1.14}",""]),t.exports=e},function(t,e,r){"use strict";r(31)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-rating__average__sort{align-items:center;display:flex;justify-content:space-between;padding:15px 0}.mt-rating__count{color:#6b6d76}",""]),t.exports=e},function(t,e,r){"use strict";r(32)},function(t,e,r){(e=r(4)(!1)).push([t.i,".mt-review{padding:25px 0 22px}.mt-review:first-child{padding-top:0}.mt-review__title{color:#6b6d76;font-size:16px}.mt-review__date{color:#475569;color:#777;font-size:10px}.mt-review__body{font-size:16px;line-height:1.6;margin-top:10px;opacity:.9;text-align:justify}.mt-rating__group{display:flex;flex-direction:column;gap:5px;width:100%}.mt-review__author{align-items:center;color:#333;display:flex;font-size:14px;font-weight:bolder;gap:5px;justify-content:center}.mt-review__reactions svg{cursor:pointer;width:18px}.mt-review__reactions{align-items:center;border:1px solid #777;border-radius:50px;color:#777;display:flex;font-size:11px;height:30px;justify-content:space-evenly;margin-top:.75rem;max-width:100px}.mt-reviews__list{padding:5px 0}.mt-reviews__votesdown,.mt-reviews__votesup{align-items:center;display:flex}.mt-reviews__votesup{margin-right:10px}.mt-reply{background:#f1f1f1;border-left:3px solid #e6e6e6;border-radius:12px;border-right:1px solid hsla(0,0%,9%,.102);display:flex;flex-direction:column;font-size:15px;gap:10px;line-height:1.6;margin:10px 0 0;padding:20px}@media(max-width:580px){.mt-reply{margin:10px 0}}.mt-reply__date{color:#475569;color:#777;font-weight:400}.mt-reply__body,.mt-reply__date{font-size:14px;text-decoration:none}.mt-reply__body{font-weight:600}.mt-is__recomended{color:#6b6d76;font-size:12px;font-weight:600}.mt-questions__actions{display:flex;justify-content:center;padding:20px}.mt-rating__option{background-color:#fff;border:1px solid #777;border-radius:20px;color:#777;cursor:pointer;height:35px;transition:all .5s ease;width:140px}.mt-rating__option:hover{background-color:#777;color:#fff}.mt-reviews.mt-theme--vertical .mt-header--vertical{width:30%}.mt-reviews.mt-theme--vertical .mt-reviews__list{width:70%}@media(max-width:580px){.mt-reviews.mt-theme--vertical .mt-reviews__list{width:100%}.mt-reviews.mt-theme--vertical .mt-header--vertical{border-right:none;width:100%}.mt-reviews.mt-theme--vertical .mt-reviews__rating{flex-direction:column}.mt-reviews.mt-theme--vertical .mt-header--vertical .mt-rating__options{max-width:inherit}}.mt-rating__user{align-items:center;background:#858585;border-radius:50%;color:#fff;display:inline-flex;font-size:25px;font-weight:500;height:-moz-fit-content;height:fit-content;justify-content:center;margin-right:8px;max-width:40px;position:relative;width:100%}.mt-reviews.mt-theme--vertical .mt-rating__average__sort{border-bottom:1px solid #eee;padding-bottom:1rem}",""]),t.exports=e},function(t,e,r){"use strict";(function(t){
62
2
  /*!
63
3
  * The buffer module from node.js, for the browser.
64
4
  *
65
5
  * @author Feross Aboukhadijeh <http://feross.org>
66
6
  * @license MIT
67
7
  */
68
- var r=n(72),i=n(73),o=n(74);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|h(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(c(e),t=s(t,e<0?0:0|h(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|h(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(r)return q(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function v(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,i){var o,a=1,s=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+l>s&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(u(t,o+f)!==u(e,f)){d=!1;break}if(d)return o}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function y(t,e,n,r){return z(q(e,t.length-n),t,n,r)}function b(t,e,n,r){return z(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function E(t,e,n,r){return b(t,e,n,r)}function C(t,e,n,r){return z(F(e),t,n,r)}function x(t,e,n,r){return z(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,l,u=t[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=l.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},l.byteLength=p,l.prototype._isBuffer=!0,l.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;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),d=0;d<s;++d)if(u[d]!==c[d]){o=u[d],a=c[d];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return v(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return v(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function O(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=M(t[o]);return i}function k(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function j(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function P(t,e,n,r,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function N(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function I(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,o){return o||I(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return o||I(t,0,n,8),i.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n,r=this.length;if((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<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;n=new l(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},l.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||P(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);P(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):N(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):N(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||P(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=l.isBuffer(t)?t:q(new l(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function M(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(38))},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],l=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
8
+ var i=r(59),n=r(60),o=r(61);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return c(this,t,e,r)}function c(t,e,r,i){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,i){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===r&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,r):new Uint8Array(e,r,i);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=f(t,e);return t}(t,e,r,i):"string"==typeof e?function(t,e,r){"string"==typeof r&&""!==r||(r="utf8");if(!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,r),n=(t=a(t,i)).write(e,r);n!==i&&(t=t.slice(0,n));return t}(t,e,r):function(t,e){if(l.isBuffer(e)){var r=0|h(e.length);return 0===(t=a(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(i=e.length)!=i?a(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(u(e),t=a(t,e<0?0:0|h(e)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function f(t,e){var r=e.length<0?0:0|h(e.length);t=a(t,r);for(var i=0;i<r;i+=1)t[i]=255&e[i];return t}function h(t){if(t>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return F(t).length;default:if(i)return q(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,r){var i=!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 k(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return S(this,e,r);case"latin1":case"binary":return O(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,r){var i=t[e];t[e]=t[r],t[r]=i}function v(t,e,r,i,n){if(0===t.length)return-1;if("string"==typeof r?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=n?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(n)return-1;r=t.length-1}else if(r<0){if(!n)return-1;r=0}if("string"==typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:w(t,e,r,i,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,i,n);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,i,n){var o,s=1,a=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,r/=2}function c(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(n){var u=-1;for(o=r;o<a;o++)if(c(t,o)===c(e,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===l)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var d=!0,f=0;f<l;f++)if(c(t,o+f)!==c(e,f)){d=!1;break}if(d)return o}return-1}function y(t,e,r,i){r=Number(r)||0;var n=t.length-r;i?(i=Number(i))>n&&(i=n):i=n;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[r+s]=a}return s}function b(t,e,r,i){return z(q(e,t.length-r),t,r,i)}function _(t,e,r,i){return z(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,i)}function x(t,e,r,i){return _(t,e,r,i)}function R(t,e,r,i){return z(F(e),t,r,i)}function E(t,e,r,i){return z(function(t,e){for(var r,i,n,o=[],s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),i=r>>8,n=r%256,o.push(n),o.push(i);return o}(e,t.length-r),t,r,i)}function C(t,e,r){return 0===e&&r===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var i=[],n=e;n<r;){var o,s,a,l,c=t[n],u=null,d=c>239?4:c>223?3:c>191?2:1;if(n+d<=r)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(o=t[n+1]))&&(l=(31&c)<<6|63&o)>127&&(u=l);break;case 3:o=t[n+1],s=t[n+2],128==(192&o)&&128==(192&s)&&(l=(15&c)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:o=t[n+1],s=t[n+2],a=t[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),n+=d}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return r}(i)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=s(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,r){return c(null,t,e,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,r){return function(t,e,r,i){return u(e),e<=0?a(t,e):void 0!==r?"string"==typeof i?a(t,e).fill(r,i):a(t,e).fill(r):a(t,e)}(null,t,e,r)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,i=e.length,n=0,o=Math.min(r,i);n<o;++n)if(t[n]!==e[n]){r=t[n],i=e[n];break}return r<i?-1:i<r?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var i=l.allocUnsafe(e),n=0;for(r=0;r<t.length;++r){var s=t[r];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,n),n+=s.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.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;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,r,i,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),e<0||r>t.length||i<0||n>this.length)throw new RangeError("out of range index");if(i>=n&&e>=r)return 0;if(i>=n)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(i>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(o,s),c=this.slice(i,n),u=t.slice(e,r),d=0;d<a;++d)if(c[d]!==u[d]){o=c[d],s=u[d];break}return o<s?-1:s<o?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},l.prototype.write=function(t,e,r,i){if(void 0===e)i="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)i=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===i&&(i="utf8")):(i=r,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");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return y(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return _(this,t,e,r);case"latin1":case"binary":return x(this,t,e,r);case"base64":return R(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(127&t[n]);return i}function O(t,e,r){var i="";r=Math.min(t.length,r);for(var n=e;n<r;++n)i+=String.fromCharCode(t[n]);return i}function k(t,e,r){var i=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);for(var n="",o=e;o<r;++o)n+=D(t[o]);return n}function P(t,e,r){for(var i=t.slice(e,r),n="",o=0;o<i.length;o+=2)n+=String.fromCharCode(i[o]+256*i[o+1]);return n}function T(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function j(t,e,r,i,n,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<o)throw new RangeError('"value" argument is out of bounds');if(r+i>t.length)throw new RangeError("Index out of range")}function B(t,e,r,i){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-r,2);n<o;++n)t[r+n]=(e&255<<8*(i?n:1-n))>>>8*(i?n:1-n)}function U(t,e,r,i){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-r,4);n<o;++n)t[r+n]=e>>>8*(i?n:3-n)&255}function M(t,e,r,i,n,o){if(r+i>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,i,o){return o||M(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function N(t,e,r,i,o){return o||M(t,0,r,8),n.write(t,e,r,i,52,8),r+8}l.prototype.slice=function(t,e){var r,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=l.prototype;else{var n=e-t;r=new l(n,void 0);for(var o=0;o<n;++o)r[o]=this[o+t]}return r},l.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i},l.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=this[t+--e],n=1;e>0&&(n*=256);)i+=this[t+--e]*n;return i},l.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=this[t],n=1,o=0;++o<e&&(n*=256);)i+=this[t+o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||T(t,e,this.length);for(var i=e,n=1,o=this[t+--i];i>0&&(n*=256);)o+=this[t+--i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),n.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),n.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),n.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),n.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||j(this,t,e,r,Math.pow(2,8*r)-1,0);var n=1,o=0;for(this[e]=255&t;++o<r&&(n*=256);)this[e+o]=t/n&255;return e+r},l.prototype.writeUIntBE=function(t,e,r,i){(t=+t,e|=0,r|=0,i)||j(this,t,e,r,Math.pow(2,8*r)-1,0);var n=r-1,o=1;for(this[e+n]=255&t;--n>=0&&(o*=256);)this[e+n]=t/o&255;return e+r},l.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):U(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},l.prototype.writeIntBE=function(t,e,r,i){if(t=+t,e|=0,!i){var n=Math.pow(2,8*r-1);j(this,t,e,r,n-1,-n)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):B(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):B(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):U(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||j(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):U(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,i){if(r||(r=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<r&&(i=r),i===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-r&&(i=t.length-e+r);var n,o=i-r;if(this===t&&r<e&&e<i)for(n=o-1;n>=0;--n)t[n+e]=this[n+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(n=0;n<o;++n)t[n+e]=this[n+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},l.prototype.fill=function(t,e,r,i){if("string"==typeof t){if("string"==typeof e?(i=e,e=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),1===t.length){var n=t.charCodeAt(0);n<256&&(t=n)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var s=l.isBuffer(t)?t:q(new l(t,i).toString()),a=s.length;for(o=0;o<r-e;++o)this[o+e]=s[o%a]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function D(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var r;e=e||1/0;for(var i=t.length,n=null,o=[],s=0;s<i;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!n){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&o.push(239,191,189);continue}n=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),n=r;continue}r=65536+(n-55296<<10|r-56320)}else n&&(e-=3)>-1&&o.push(239,191,189);if(n=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function F(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(I,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,r,i){for(var n=0;n<i&&!(n+r>=e.length||n>=t.length);++n)e[n+r]=t[n];return n}}).call(this,r(33))},function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],i=e[1];return 3*(r+i)/4-i},e.toByteArray=function(t){var e,r,i=c(t),s=i[0],a=i[1],l=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),u=0,d=a>0?s-4:s;for(r=0;r<d;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],l[u++]=e>>16&255,l[u++]=e>>8&255,l[u++]=255&e;2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,l[u++]=255&e);1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,l[u++]=e>>8&255,l[u++]=255&e);return l},e.fromByteArray=function(t){for(var e,r=t.length,n=r%3,o=[],s=0,a=r-n;s<a;s+=16383)o.push(u(t,s,s+16383>a?a:s+16383));1===n?(e=t[r-1],o.push(i[e>>2]+i[e<<4&63]+"==")):2===n&&(e=(t[r-2]<<8)+t[r-1],o.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return o.join("")};for(var i=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,l=s.length;a<l;++a)i[a]=s[a],n[s.charCodeAt(a)]=a;function c(t){var e=t.length;if(e%4>0)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 u(t,e,r){for(var n,o,s=[],a=e;a<r;a+=3)n=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(i[(o=n)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},function(t,e){
69
9
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
70
- e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?i-1:0,f=n?-1:1,h=t[e+d];for(d+=f,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+d],d+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+d],d+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=u}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,d=c>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=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=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(e*l-1)*Math.pow(2,i),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+h]=255&a,h+=p,a/=256,u-=8);t[n+h-p]|=128*m}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";n(39)},function(t,e,n){(e=n(5)(!1)).push([t.i,".martan-snippets[data-v-7f2dcccb]{background-color:#e3e3e3;border-radius:8px;box-shadow:none;display:flex;max-width:525px;overflow:hidden}.martan-snippets__galery img[data-v-7f2dcccb]{aspect-ratio:1/1;border-radius:6px;-o-object-fit:cover;object-fit:cover;width:60px}.martan-snippets__reviews[data-v-7f2dcccb]{display:flex;flex:1 1 0%;flex-direction:column;height:60px;max-width:-moz-fit-content;max-width:fit-content}.martan-snippets__reviews-info[data-v-7f2dcccb]{align-items:center;display:flex;font-weight:500;gap:10px}.martan-snippets__controls button[data-v-7f2dcccb]{background:#fff;border:none;border-radius:50%;box-shadow:0 -2px 12px rgba(0,0,0,.08);color:var(--secondary);cursor:pointer;display:block;font-size:10px;height:20px;line-height:1;opacity:.9;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s;transition:all .3s ease-in-out;width:20px;z-index:2}.martan-snippets__controls button[data-v-7f2dcccb]:hover{opacity:.7}.martan-snippets__controls button.left[data-v-7f2dcccb]{left:-5px}.martan-snippets__controls button.right[data-v-7f2dcccb]{right:-5px}.martan-snippets .glide__slide[data-v-7f2dcccb]{align-items:center;display:flex;font-size:14px;font-weight:400;gap:12px;justify-content:stretch;line-height:1.5;margin-left:5px;margin-right:5px;padding:12px;scroll-snap-align:start}",""]),t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"MARTAN_API",(function(){return St}));var r={};n.r(r),n.d(r,"hasBrowserEnv",(function(){return O})),n.d(r,"hasStandardBrowserWebWorkerEnv",(function(){return j})),n.d(r,"hasStandardBrowserEnv",(function(){return R}));var i=n(14),o=n.n(i),a=n(41),s=n(42),l=n(40),u={name:"Total",props:{reviews:{type:Object,default:{list:[],orderRating:null,total:0}}},computed:{i19stars:()=>"Estrelas",i19star:()=>"Estrela",i19reviews:()=>"Avaliações",i19review:()=>"Avaliação",orderRating:()=>reviews.orderRating},components:{Sort:l.a},methods:{onSort(t){this.$emit("onSort",t)}}},c=(n(67),n(2)),d=Object(c.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"mt-rating__average__sort"},[t.reviews.orderRating?n("span",{staticClass:"mt-rating__count"},[t._v(t._s(Array.isArray(t.reviews.list)?t.reviews.list.length:0)+" "+t._s(Array.isArray(t.reviews.list)&&t.reviews.list.length>1||0===t.reviews.list.length?t.i19reviews:t.i19review)+" "),n("span",[t._v(t._s(t.reviews.orderRating)+" "+t._s(Array.isArray(t.reviews.list)&&t.reviews.list.length>1||0===t.reviews.list.length?t.i19stars:t.i19star))])]):n("span",{staticClass:"mt-rating__count"},[t._v(" "+t._s(t.reviews.total)+" "+t._s(t.reviews.total>1||0===t.reviews.total?t.i19reviews:t.i19review)+" ")]),n("sort",{on:{onSort:t.onSort}})],1)}),[],!1,null,null,null).exports,f=n(11),h={name:"Reviews",props:{storeId:{type:Number,required:!0},webId:{type:String,required:!0},product:{type:String,required:!0},backgroundColor:{type:String,default:"#fff"},starColor:{type:String,default:"#212529"},primaryColor:{type:String,default:"#212529"},headerLayout:{type:String,default:"header-minimal"},reviewsLayout:{type:String,default:"list-grid"},title:{type:String},showTitle:{type:Boolean,default:!0}},data:()=>({list:[],total:0,limit:5,offset:0,loading:!1,orderRating:null,orderReviews:null,averageTotal:0,$isSorting:!1,$count:null,average:{one:0,two:0,three:0,four:0,five:0},isOpenQuickView:!1,selectedReview:null}),watch:{orderRating:function(t,e){t!==e&&(this.list=[],this.fetchReviews())},orderReviews:function(t,e){t!==e&&(this.list=[],this.fetchReviews())},limit:function(){this.fetchReviews()},offset:function(){this.fetchReviews()}},methods:{fetchReviews(){const t={limit:this.limit,offset:this.offset,sku:this.product};this.orderReviews&&(t.orderBy=this.orderReviews,t.limit=this.limit,t.offset=0),this.orderRating&&(t.rating=this.orderRating),this.$count=null,this.loading=!0,axios({url:St+"/reviews.json",headers:{"X-Store-Id":this.storeId,"X-Web-Id":this.webId},params:t}).then(({data:t})=>{const{result:e,count:n}=t;let r=[];if(Array.isArray(this.list)&&!this.orderReviews||this.orderReviews&&this.$isSorting){for(const t of e){this.list.some(e=>e.id===t.id)||this.list.push(t)}r=[...this.list,...r]}else(Array.isArray(this.list)&&this.orderReviews||this.orderRating)&&(r=e,this.$isSorting=!1);return{count:n,list:r}}).then(({count:t,list:e})=>(this.orderRating?this.$count=t:this.total=t,this.list=e,e)).catch(t=>{console.error("Failed to load resource from Martan",t)}).finally(()=>{this.loading=!1})},fetchAverage(){axios({url:St+"/average.json",headers:{"X-Store-Id":this.storeId,"X-Web-Id":this.webId},params:{sku:this.product}}).then(({data:t})=>{if(t.length){const{average:e,rating:n}=t[0];Object.assign(this.average,n),this.averageTotal=e}}).finally(()=>{this.loading=!1})},loadMore(){this.orderReviews?this.limit=this.limit+this.limit:this.offset++},showLoadMore(){return!this.orderRating&&this.total>0&&this.list.length<this.total||(!!(this.orderRating&&this.$count>0&&this.list.length<this.$count)||void 0)},updateOrderBy({rating:t}){t===this.orderRating?this.orderRating=null:(this.offset=0,this.orderRating=t)},onSort({order:t}){this.orderReviews=t},openQuickview:function({review:t}){this.selectedReview=t,this.isOpenQuickView=!0},onCloseQuickview:function(){this.isOpenQuickView=!1,this.selectedReview=null}},mounted(){Promise.all([this.fetchAverage(),this.fetchReviews()])},components:{"list-grid":()=>Promise.resolve().then(n.bind(null,42)),"list-expanded":()=>Promise.resolve().then(n.bind(null,41)),"header-expanded":()=>n.e(2).then(n.bind(null,93)),"header-minimal":()=>n.e(3).then(n.bind(null,94)),Total:d,ListView:a.default,GridView:s.default,Quickview:f.a}},p=(n(69),Object(c.a)(h,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{"data-header":t.headerLayout,"data-layout":t.reviewsLayout}},[n("div",{staticClass:"mt-reviews container",class:"mt-theme--"+t.headerLayout},[n("p",{staticClass:"lead"},[n("a",{attrs:{href:"#reviews",name:t.title||"reviews"}},[t._v("#")]),t._v(" "+t._s(t.title)+" ")]),"header-expanded"!==t.headerLayout&&"header-minimal"!==t.headerLayout?n("total",{attrs:{reviews:{list:t.list,orderRating:t.orderRating,total:t.total}},on:{onSort:t.onSort}}):t._e(),n(t.headerLayout,{tag:"component",attrs:{reviews:{averageTotal:t.averageTotal,average:t.average,total:t.total,orderRating:t.orderRating},starColor:t.starColor},on:{updateOrderByAverage:t.updateOrderBy,onSort:t.onSort}}),"header-expanded"===t.headerLayout?n("total",{attrs:{reviews:{list:t.list,orderRating:t.orderRating,total:t.total}},on:{onSort:t.onSort}}):t._e(),n(t.reviewsLayout,{tag:"component",attrs:{reviews:{list:t.list,orderRating:t.orderRating,total:t.total},starColor:t.starColor},on:{openQuickview:t.openQuickview}}),t.showLoadMore()?n("div",{staticClass:"mt-questions__actions"},[n("div",{staticClass:"mt-questions__pagination",attrs:{id:"mt-more-questions"}},[n("button",{staticClass:"btn btn-primary",attrs:{disabled:t.loading},on:{click:t.loadMore}},[t._v(" "+t._s(t.loading?"Carregando..":"Carregar mais")+" ")])])]):t._e()],1),n("quickview",{attrs:{isOpen:t.isOpenQuickView,review:t.selectedReview,starColor:t.starColor},on:{onClose:t.onCloseQuickview}})],1)}),[],!1,null,null,null).exports),m=n(0),g=n(16),v=n(9);function _(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function w(t,e){this._pairs=[],t&&Object(v.a)(t,this,e)}const y=w.prototype;y.append=function(t,e){this._pairs.push([t,e])},y.toString=function(t){const e=t?function(e){return t.call(this,e,_)}:_;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var b=w;function E(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function C(t,e,n){if(!e)return t;const r=n&&n.encode||E,i=n&&n.serialize;let o;if(o=i?i(e,n):m.a.isURLSearchParams(e)?e.toString():new b(e,n).toString(r),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var x=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){m.a.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},T=n(1),S={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},A={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:b,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const O="undefined"!=typeof window&&"undefined"!=typeof document,R=(k="undefined"!=typeof navigator&&navigator.product,O&&["ReactNative","NativeScript","NS"].indexOf(k)<0);var k;const j="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var P={...r,...A};var N=function(t){function e(t,n,r,i){let o=t[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=t.length;if(o=!o&&m.a.isArray(r)?r.length:o,s)return m.a.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&m.a.isObject(r[o])||(r[o]=[]);return e(t,n,r[o],i)&&m.a.isArray(r[o])&&(r[o]=function(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}(r[o])),!a}if(m.a.isFormData(t)&&m.a.isFunction(t.entries)){const n={};return m.a.forEachEntry(t,(t,r)=>{e(function(t){return m.a.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null};const D={transitional:S,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,i=m.a.isObject(t);i&&m.a.isHTMLForm(t)&&(t=new FormData(t));if(m.a.isFormData(t))return r?JSON.stringify(N(t)):t;if(m.a.isArrayBuffer(t)||m.a.isBuffer(t)||m.a.isStream(t)||m.a.isFile(t)||m.a.isBlob(t))return t;if(m.a.isArrayBufferView(t))return t.buffer;if(m.a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Object(v.a)(t,new P.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return P.isNode&&m.a.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=m.a.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Object(v.a)(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return i||r?(e.setContentType("application/json",!1),function(t,e,n){if(m.a.isString(t))try{return(e||JSON.parse)(t),m.a.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||D.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&m.a.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw T.a.from(t,T.a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.a.forEach(["delete","get","head","post","put","patch"],t=>{D.headers[t]={}});var I=D;const B=m.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const L=Symbol("internals");function U(t){return t&&String(t).trim().toLowerCase()}function M(t){return!1===t||null==t?t:m.a.isArray(t)?t.map(M):String(t)}function q(t,e,n,r,i){return m.a.isFunction(r)?r.call(this,e,n):(i&&(e=n),m.a.isString(e)?m.a.isString(r)?-1!==e.indexOf(r):m.a.isRegExp(r)?r.test(e):void 0:void 0)}class F{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function i(t,e,n){const i=U(e);if(!i)throw new Error("header name must be a non-empty string");const o=m.a.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||e]=M(t))}const o=(t,e)=>m.a.forEach(t,(t,n)=>i(t,n,e));return m.a.isPlainObject(t)||t instanceof this.constructor?o(t,e):m.a.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let n,r,i;return t&&t.split("\n").forEach((function(t){i=t.indexOf(":"),n=t.substring(0,i).trim().toLowerCase(),r=t.substring(i+1).trim(),!n||e[n]&&B[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)})),e})(t),e):null!=t&&i(e,t,n),this}get(t,e){if(t=U(t)){const n=m.a.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(m.a.isFunction(e))return e.call(this,t,n);if(m.a.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=U(t)){const n=m.a.findKey(this,t);return!(!n||void 0===this[n]||e&&!q(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function i(t){if(t=U(t)){const i=m.a.findKey(n,t);!i||e&&!q(0,n[i],i,e)||(delete n[i],r=!0)}}return m.a.isArray(t)?t.forEach(i):i(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const i=e[n];t&&!q(0,this[i],i,t,!0)||(delete this[i],r=!0)}return r}normalize(t){const e=this,n={};return m.a.forEach(this,(r,i)=>{const o=m.a.findKey(n,i);if(o)return e[o]=M(r),void delete e[i];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(i):String(i).trim();a!==i&&delete e[i],e[a]=M(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return m.a.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&m.a.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[L]=this[L]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=U(t);e[r]||(!function(t,e){const n=m.a.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,i){return this[r].call(this,e,t,n,i)},configurable:!0})})}(n,t),e[r]=!0)}return m.a.isArray(t)?t.forEach(r):r(t),this}}F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.a.reduceDescriptors(F.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),m.a.freezeMethods(F);var z=F;function V(t,e){const n=this||I,r=e||n,i=z.from(r.headers);let o=r.data;return m.a.forEach(t,(function(t){o=t.call(n,o,i.normalize(),e?e.status:void 0)})),i.normalize(),o}function Q(t){return!(!t||!t.__CANCEL__)}function $(t,e,n){T.a.call(this,null==t?"canceled":t,T.a.ERR_CANCELED,e,n),this.name="CanceledError"}m.a.inherits($,T.a,{__CANCEL__:!0});var Y=$,H=n(17);var W=P.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const a=[t+"="+encodeURIComponent(e)];m.a.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),m.a.isString(r)&&a.push("path="+r),m.a.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function K(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var J=P.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let n;function r(n){let r=n;return t&&(e.setAttribute("href",r),r=e.href),e.setAttribute("href",r),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return n=r(window.location.href),function(t){const e=m.a.isString(t)?r(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0};var X=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i,o=0,a=0;return e=void 0!==e?e:1e3,function(s){const l=Date.now(),u=r[a];i||(i=l),n[o]=s,r[o]=l;let c=a,d=0;for(;c!==o;)d+=n[c++],c%=t;if(o=(o+1)%t,o===a&&(a=(a+1)%t),l-i<e)return;const f=u&&l-u;return f?Math.round(1e3*d/f):void 0}};function G(t,e){let n=0;const r=X(50,250);return i=>{const o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,l=r(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:i};u[e?"download":"upload"]=!0,t(u)}}var Z="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,n){let r=t.data;const i=z.from(t.headers).normalize();let o,a,{responseType:s,withXSRFToken:l}=t;function u(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}if(m.a.isFormData(r))if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if(!1!==(a=i.getContentType())){const[t,...e]=a?a.split(";").map(t=>t.trim()).filter(Boolean):[];i.setContentType([t||"multipart/form-data",...e].join("; "))}let c=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",n=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(e+":"+n))}const d=K(t.baseURL,t.url);function f(){if(!c)return;const r=z.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new T.a("Request failed with status code "+n.status,[T.a.ERR_BAD_REQUEST,T.a.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}((function(t){e(t),u()}),(function(t){n(t),u()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),C(d,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(n(new T.a("Request aborted",T.a.ECONNABORTED,t,c)),c=null)},c.onerror=function(){n(new T.a("Network Error",T.a.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const r=t.transitional||S;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(new T.a(e,r.clarifyTimeoutError?T.a.ETIMEDOUT:T.a.ECONNABORTED,t,c)),c=null},P.hasStandardBrowserEnv&&(l&&m.a.isFunction(l)&&(l=l(t)),l||!1!==l&&J(d))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&W.read(t.xsrfCookieName);e&&i.set(t.xsrfHeaderName,e)}void 0===r&&i.setContentType(null),"setRequestHeader"in c&&m.a.forEach(i.toJSON(),(function(t,e){c.setRequestHeader(e,t)})),m.a.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),s&&"json"!==s&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",G(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",G(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=e=>{c&&(n(!e||e.type?new Y(null,t,c):e),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(d);h&&-1===P.protocols.indexOf(h)?n(new T.a("Unsupported protocol "+h+":",T.a.ERR_BAD_REQUEST,t)):c.send(r||null)}))};const tt={http:H.a,xhr:Z};m.a.forEach(tt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const et=t=>"- "+t,nt=t=>m.a.isFunction(t)||null===t||!1===t;var rt=t=>{t=m.a.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){let e;if(n=t[o],r=n,!nt(n)&&(r=tt[(e=String(n)).toLowerCase()],void 0===r))throw new T.a(`Unknown adapter '${e}'`);if(r)break;i[e||"#"+o]=r}if(!r){const t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let n=e?t.length>1?"since :\n"+t.map(et).join("\n"):" "+et(t[0]):"as no adapter specified";throw new T.a("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function it(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Y(null,t)}function ot(t){it(t),t.headers=z.from(t.headers),t.data=V.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return rt(t.adapter||I.adapter)(t).then((function(e){return it(t),e.data=V.call(t,t.transformResponse,e),e.headers=z.from(e.headers),e}),(function(e){return Q(e)||(it(t),e&&e.response&&(e.response.data=V.call(t,t.transformResponse,e.response),e.response.headers=z.from(e.response.headers))),Promise.reject(e)}))}const at=t=>t instanceof z?{...t}:t;function st(t,e){e=e||{};const n={};function r(t,e,n){return m.a.isPlainObject(t)&&m.a.isPlainObject(e)?m.a.merge.call({caseless:n},t,e):m.a.isPlainObject(e)?m.a.merge({},e):m.a.isArray(e)?e.slice():e}function i(t,e,n){return m.a.isUndefined(e)?m.a.isUndefined(t)?void 0:r(void 0,t,n):r(t,e,n)}function o(t,e){if(!m.a.isUndefined(e))return r(void 0,e)}function a(t,e){return m.a.isUndefined(e)?m.a.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,i,o){return o in e?r(n,i):o in t?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(t,e)=>i(at(t),at(e),!0)};return m.a.forEach(Object.keys(Object.assign({},t,e)),(function(r){const o=l[r]||i,a=o(t[r],e[r],r);m.a.isUndefined(a)&&o!==s||(n[r]=a)})),n}const lt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{lt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const ut={};lt.transitional=function(t,e,n){function r(t,e){return"[Axios v1.6.8] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,i,o)=>{if(!1===t)throw new T.a(r(i," has been removed"+(e?" in "+e:"")),T.a.ERR_DEPRECATED);return e&&!ut[i]&&(ut[i]=!0,console.warn(r(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,o)}};var ct={assertOptions:function(t,e,n){if("object"!=typeof t)throw new T.a("options must be an object",T.a.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const e=t[o],n=void 0===e||a(e,o,t);if(!0!==n)throw new T.a("option "+o+" must be "+n,T.a.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new T.a("Unknown option "+o,T.a.ERR_BAD_OPTION)}},validators:lt};const dt=ct.validators;class ft{constructor(t){this.defaults=t,this.interceptors={request:new x,response:new x}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const n=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?n&&!String(t.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+n):t.stack=n}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=st(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:i}=e;void 0!==n&&ct.assertOptions(n,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),null!=r&&(m.a.isFunction(r)?e.paramsSerializer={serialize:r}:ct.assertOptions(r,{encode:dt.function,serialize:dt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=i&&m.a.merge(i.common,i[e.method]);i&&m.a.forEach(["delete","get","head","post","put","patch","common"],t=>{delete i[t]}),e.headers=z.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))}));const l=[];let u;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let c,d=0;if(!s){const t=[ot.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,l),c=t.length,u=Promise.resolve(e);d<c;)u=u.then(t[d++],t[d++]);return u}c=a.length;let f=e;for(d=0;d<c;){const t=a[d++],e=a[d++];try{f=t(f)}catch(t){e.call(this,t);break}}try{u=ot.call(this,f)}catch(t){return Promise.reject(t)}for(d=0,c=l.length;d<c;)u=u.then(l[d++],l[d++]);return u}getUri(t){return C(K((t=st(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}m.a.forEach(["delete","get","head","options"],(function(t){ft.prototype[t]=function(e,n){return this.request(st(n||{},{method:t,url:e,data:(n||{}).data}))}})),m.a.forEach(["post","put","patch"],(function(t){function e(e){return function(n,r,i){return this.request(st(i||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ft.prototype[t]=e(),ft.prototype[t+"Form"]=e(!0)}));var ht=ft;class pt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t,r,i){n.reason||(n.reason=new Y(t,r,i),e(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new pt((function(e){t=e})),cancel:t}}}var mt=pt;const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach(([t,e])=>{gt[e]=t});var vt=gt;const _t=function t(e){const n=new ht(e),r=Object(g.a)(ht.prototype.request,n);return m.a.extend(r,ht.prototype,n,{allOwnKeys:!0}),m.a.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(st(e,n))},r}(I);_t.Axios=ht,_t.CanceledError=Y,_t.CancelToken=mt,_t.isCancel=Q,_t.VERSION="1.6.8",_t.toFormData=v.a,_t.AxiosError=T.a,_t.Cancel=_t.CanceledError,_t.all=function(t){return Promise.all(t)},_t.spread=function(t){return function(e){return t.apply(null,e)}},_t.isAxiosError=function(t){return m.a.isObject(t)&&!0===t.isAxiosError},_t.mergeConfig=st,_t.AxiosHeaders=z,_t.formToJSON=t=>N(m.a.isHTMLForm(t)?new FormData(t):t),_t.getAdapter=rt,_t.HttpStatusCode=vt,_t.default=_t;var wt=_t,yt=n(15),bt=n.n(yt),Et=n(79),Ct=n(3),xt={name:"SnippetWidget",components:{Rating:n(7).a,Quickview:f.a},data:function(){return{list:[],glide:null,isVisible:!1,isOpenQuickView:!1,selectedReview:null}},computed:{i19next:()=>Object(Ct.i18n)(Et.a),i19previous:()=>Object(Ct.i18n)(Et.c)},props:{storeId:{type:Number,required:!0},webId:{type:String,required:!0},product:{type:String,required:!0},starColor:{type:String,required:!0},backgroundColor:{type:String,default:"#f8f9fa"},textColor:{type:String,default:"#212529"},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#212529"}},methods:{openQuickview:function({review:t,slide:e}){this.selectedReview=t,this.isOpenQuickView=!0},onCloseQuickview:function(){this.isOpenQuickView=!1,this.selectedReview=null},fetch(){wt({url:St+"/reviews.json",headers:{"X-Store-Id":this.storeId,"X-Web-Id":this.webId},params:{sku:this.product,limit:10,offset:0}}).then(({data:t})=>{if(t&&t.result){const e=t.result.filter(t=>t.body);return this.list=e||[],this.glide=new bt.a("#mt-snippet",{keyboard:!1,rewind:!1,type:"slider",startAt:0,perView:1,touchAngle:0,breakpoints:{1900:{perView:1},1024:{perView:1},600:{perView:1}}}),e}return[]}).then(t=>(t.length>=2&&(this.$refs.wrapper.classList.remove("d-none"),this.glide.mount(),this.isVisible=!0),this)).then(t=>{t.isVisible&&this.glide.update({perView:1})})},getImageUrl:t=>t&&t.pictures&&t.pictures.length&&t.pictures[0].thumb?t.pictures[0].thumb:null,loadWidgetOptions(){this.$refs.wrapper.style.color=this.textColor,this.$refs.wrapper.style.backgroundColor=this.backgroundColor,this.border&&(this.$refs.wrapper.style.border="1px solid "+this.borderColor)}},mounted:function(){this.storeId&&this.webId&&this.product&&(this.fetch(),this.loadWidgetOptions())}},Tt=(n(75),Object(c.a)(xt,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"wrapper",staticClass:"glide martan-snippets d-none",staticStyle:{"margin-bottom":"1rem",height:"85px"},attrs:{id:"mt-snippet"}},[n("div",{staticClass:"glide__track",attrs:{"data-glide-el":"track"}},[n("ul",{staticClass:"glide__slides"},t._l(t.list,(function(e){return n("li",{key:e.id,staticClass:"glide__slide"},[t.getImageUrl(e)?n("div",{staticClass:"martan-snippets__galery"},[n("img",{attrs:{alt:"Foto da avaliação do produto feita por "+e.display_name,src:t.getImageUrl(e)}})]):t._e(),n("div",{staticClass:"martan-snippets__reviews snippet-review"},[n("div",{staticClass:"martan-snippets__reviews-info snippet-review__info"},[n("span",[t._v(t._s(e.display_name))]),n("rating",{attrs:{rating:e.rating,color:t.starColor}})],1),e.body?n("div",{staticClass:"martan-snippets__reviews-body snippet-review__body"},[n("span",[t._v(t._s(e.body.substring(0,115))+"...")])]):t._e()])])})),0)]),n("div",{staticClass:"martan-snippets__controls",attrs:{"data-glide-el":"controls"}},[t.glide&&t.glide.index>0?n("button",{staticClass:"left",attrs:{title:t.i19previous,"aria-label":t.i19previous,"data-glide-dir":"<"},on:{click:function(e){return t.glide.go("<")}}},[n("i",{staticClass:"i-chevron-left"})]):t._e(),t.glide&&t.glide.index!==t.list.length-1?n("button",{staticClass:"right",attrs:{title:t.i19next,"aria-label":t.i19next,"data-glide-dir":">","data-glide":t.glide.index},on:{click:function(e){return t.glide.go(">")}}},[n("i",{staticClass:"i-chevron-right"})]):t._e()])])}),[],!1,null,"7f2dcccb",null).exports);const St="https://widgets.martan.app/v1";e.default=t=>{t&&t.store_id&&t.web_id?(t.widget_snippet&&t.widget_snippet.is_enabled&&((t={},e="snippet_widget")=>{const n=document.getElementById(e);if(!(t&&n&&n.dataset&&n.dataset.sku))return;const{sku:r}=n.dataset,i=t.store_id,a=t.web_id,s=t.widget_snippet||{},l=s.star_color||null,u=s.border||!1,c=s.background_color||null,d=s.text_color||null,f=s.border_color||null;new IntersectionObserver((t,e)=>{new o.a({render:t=>t(Tt,{props:{product:r,storeId:i,webId:a,starColor:l,border:u,borderColor:f,backgroundColor:c,textColor:d}})}).$mount(n),e.disconnect()}).observe(n)})(t),t.widget_review&&t.widget_review.is_enabled&&((t={},e="reviews_widget")=>{const n=document.getElementById(e);if(!(t&&n&&n.dataset&&n.dataset.product))return;const{product:r}=n.dataset,i=t.store_id,a=t.web_id,s=t.widget_review||{},l=s.star_color||null,u=s.title||null,c=s.header_layout||null,d=s.reviews_layout||null;new IntersectionObserver((t,e)=>{t.forEach((function(t){const{isIntersecting:s,intersectionRatio:f}=t;(!0===s||f>0)&&(new o.a({render:t=>t(p,{props:{product:r,storeId:i,webId:a,title:u,starColor:l,headerLayout:c,reviewsLayout:d}})}).$mount(n),e.disconnect())}))},{rootMargin:"250px"}).observe(n)})(t)):console.error(new Error("Can't setup Martan widget without `martanStoreId` and `martanWidgetKey`"))}},,function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a}));const r={en_us:"Next",pt_br:"Próximo"},i={en_us:"No",pt_br:"Não"},o={en_us:"Previous",pt_br:"Anterior"},a={en_us:"Yes",pt_br:"Sim"}}]).default;
10
+ e.read=function(t,e,r,i,n){var o,s,a=8*n-i-1,l=(1<<a)-1,c=l>>1,u=-7,d=r?n-1:0,f=r?-1:1,h=t[e+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=a;u>0;o=256*o+t[e+d],d+=f,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+t[e+d],d+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,i),o-=c}return(h?-1:1)*s*Math.pow(2,o-i)},e.write=function(t,e,r,i,n,o){var s,a,l,c=8*o-n-1,u=(1<<c)-1,d=u>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:o-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+d>=1?f/l:f*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(e*l-1)*Math.pow(2,n),s+=d):(a=e*Math.pow(2,d-1)*Math.pow(2,n),s=0));n>=8;t[r+h]=255&a,h+=p,a/=256,n-=8);for(s=s<<n|a,c+=n;c>0;t[r+h]=255&s,h+=p,s/=256,c-=8);t[r+h-p]|=128*m}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e,r){"use strict";r(34)},function(t,e,r){(e=r(4)(!1)).push([t.i,".martan-snippets[data-v-7f2dcccb]{background-color:#e3e3e3;border-radius:8px;box-shadow:none;display:flex;max-width:525px;overflow:hidden}.martan-snippets__galery img[data-v-7f2dcccb]{aspect-ratio:1/1;border-radius:6px;-o-object-fit:cover;object-fit:cover;width:60px}.martan-snippets__reviews[data-v-7f2dcccb]{display:flex;flex:1 1 0%;flex-direction:column;height:60px;max-width:-moz-fit-content;max-width:fit-content}.martan-snippets__reviews-info[data-v-7f2dcccb]{align-items:center;display:flex;font-weight:500;gap:10px}.martan-snippets__controls button[data-v-7f2dcccb]{background:#fff;border:none;border-radius:50%;box-shadow:0 -2px 12px rgba(0,0,0,.08);color:var(--secondary);cursor:pointer;display:block;font-size:10px;height:20px;line-height:1;opacity:.9;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s;transition:all .3s ease-in-out;width:20px;z-index:2}.martan-snippets__controls button[data-v-7f2dcccb]:hover{opacity:.7}.martan-snippets__controls button.left[data-v-7f2dcccb]{left:-5px}.martan-snippets__controls button.right[data-v-7f2dcccb]{right:-5px}.martan-snippets .glide__slide[data-v-7f2dcccb]{align-items:center;display:flex;font-size:14px;font-weight:400;gap:12px;justify-content:stretch;line-height:1.5;margin-left:5px;margin-right:5px;padding:12px;scroll-snap-align:start}",""]),t.exports=e},function(t,e,r){"use strict";r.r(e),r.d(e,"MARTAN_API",(function(){return At}));var i={};r.r(i),r.d(i,"hasBrowserEnv",(function(){return O})),r.d(i,"hasStandardBrowserWebWorkerEnv",(function(){return T})),r.d(i,"hasStandardBrowserEnv",(function(){return k}));var n=r(12),o=r.n(n),s=r(36),a=r(37),l=r(35),c={name:"Total",props:{reviews:{type:Object,default:{list:[],orderRating:null,total:0}}},computed:{i19stars:()=>"Estrelas",i19star:()=>"Estrela",i19reviews:()=>"Avaliações",i19review:()=>"Avaliação",orderRating:()=>reviews.orderRating},components:{Sort:l.a},methods:{onSort(t){this.$emit("onSort",t)}}},u=(r(54),r(2)),d=Object(u.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mt-rating__average__sort"},[t.reviews.orderRating?r("span",{staticClass:"mt-rating__count"},[t._v(t._s(Array.isArray(t.reviews.list)?t.reviews.list.length:0)+" "+t._s(Array.isArray(t.reviews.list)&&t.reviews.list.length>1||0===t.reviews.list.length?t.i19reviews:t.i19review)+" "),r("span",[t._v(t._s(t.reviews.orderRating)+" "+t._s(Array.isArray(t.reviews.list)&&t.reviews.list.length>1||0===t.reviews.list.length?t.i19stars:t.i19star))])]):r("span",{staticClass:"mt-rating__count"},[t._v(" "+t._s(t.reviews.total)+" "+t._s(t.reviews.total>1||0===t.reviews.total?t.i19reviews:t.i19review)+" ")]),r("sort",{on:{onSort:t.onSort}})],1)}),[],!1,null,null,null).exports,f=r(9),h={name:"Reviews",props:{storeId:{type:Number,required:!0},webId:{type:String,required:!0},product:{type:String,required:!0},backgroundColor:{type:String,default:"#fff"},starColor:{type:String,default:"#212529"},primaryColor:{type:String,default:"#212529"},headerLayout:{type:String,default:"header-minimal"},reviewsLayout:{type:String,default:"list-grid"},title:{type:String},showTitle:{type:Boolean,default:!0}},data:()=>({list:[],total:0,limit:5,offset:0,loading:!1,orderRating:null,orderReviews:null,averageTotal:0,$isSorting:!1,$count:null,average:{one:0,two:0,three:0,four:0,five:0},isOpenQuickView:!1,selectedReview:null}),watch:{orderRating:function(t,e){t!==e&&(this.list=[],this.fetchReviews())},orderReviews:function(t,e){t!==e&&(this.list=[],this.fetchReviews())},limit:function(){this.fetchReviews()},offset:function(){this.fetchReviews()}},methods:{fetchReviews(){const t={limit:this.limit,offset:this.offset,sku:this.product};this.orderReviews&&(t.orderBy=this.orderReviews,t.limit=this.limit,t.offset=0),this.orderRating&&(t.rating=this.orderRating),this.$count=null,this.loading=!0,axios({url:At+"/reviews.json",headers:{"X-Store-Id":this.storeId,"X-Web-Id":this.webId},params:t}).then(({data:t})=>{const{result:e,count:r}=t;let i=[];if(Array.isArray(this.list)&&!this.orderReviews||this.orderReviews&&this.$isSorting){for(const t of e){this.list.some(e=>e.id===t.id)||this.list.push(t)}i=[...this.list,...i]}else(Array.isArray(this.list)&&this.orderReviews||this.orderRating)&&(i=e,this.$isSorting=!1);return{count:r,list:i}}).then(({count:t,list:e})=>(this.orderRating?this.$count=t:this.total=t,this.list=e,e)).catch(t=>{console.error("Failed to load resource from Martan",t)}).finally(()=>{this.loading=!1})},fetchAverage(){axios({url:At+"/average.json",headers:{"X-Store-Id":this.storeId,"X-Web-Id":this.webId},params:{sku:this.product}}).then(({data:t})=>{if(t.length){const{average:e,rating:r}=t[0];Object.assign(this.average,r),this.averageTotal=e}}).finally(()=>{this.loading=!1})},loadMore(){this.orderReviews?this.limit=this.limit+this.limit:this.offset++},showLoadMore(){return!this.orderRating&&this.total>0&&this.list.length<this.total||(!!(this.orderRating&&this.$count>0&&this.list.length<this.$count)||void 0)},updateOrderBy({rating:t}){t===this.orderRating?this.orderRating=null:(this.offset=0,this.orderRating=t)},onSort({order:t}){this.orderReviews=t},openQuickview:function({review:t}){this.selectedReview=t,this.isOpenQuickView=!0},onCloseQuickview:function(){this.isOpenQuickView=!1,this.selectedReview=null}},mounted(){Promise.all([this.fetchAverage(),this.fetchReviews()])},components:{"list-grid":()=>Promise.resolve().then(r.bind(null,37)),"list-expanded":()=>Promise.resolve().then(r.bind(null,36)),"header-expanded":()=>r.e(2).then(r.bind(null,80)),"header-minimal":()=>r.e(3).then(r.bind(null,81)),Total:d,ListView:s.default,GridView:a.default,Quickview:f.a}},p=(r(56),Object(u.a)(h,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{"data-header":t.headerLayout,"data-layout":t.reviewsLayout}},[r("div",{staticClass:"mt-reviews container",class:"mt-theme--"+t.headerLayout},[r("p",{staticClass:"lead"},[r("a",{attrs:{href:"#reviews",name:t.title||"reviews"}},[t._v("#")]),t._v(" "+t._s(t.title)+" ")]),"header-expanded"!==t.headerLayout&&"header-minimal"!==t.headerLayout?r("total",{attrs:{reviews:{list:t.list,orderRating:t.orderRating,total:t.total}},on:{onSort:t.onSort}}):t._e(),r(t.headerLayout,{tag:"component",attrs:{reviews:{averageTotal:t.averageTotal,average:t.average,total:t.total,orderRating:t.orderRating},starColor:t.starColor},on:{updateOrderByAverage:t.updateOrderBy,onSort:t.onSort}}),"header-expanded"===t.headerLayout?r("total",{attrs:{reviews:{list:t.list,orderRating:t.orderRating,total:t.total}},on:{onSort:t.onSort}}):t._e(),r(t.reviewsLayout,{tag:"component",attrs:{reviews:{list:t.list,orderRating:t.orderRating,total:t.total},starColor:t.starColor},on:{openQuickview:t.openQuickview}}),t.showLoadMore()?r("div",{staticClass:"mt-questions__actions"},[r("div",{staticClass:"mt-questions__pagination",attrs:{id:"mt-more-questions"}},[r("button",{staticClass:"btn btn-primary",attrs:{disabled:t.loading},on:{click:t.loadMore}},[t._v(" "+t._s(t.loading?"Carregando..":"Carregar mais")+" ")])])]):t._e()],1),r("quickview",{attrs:{isOpen:t.isOpenQuickView,review:t.selectedReview,starColor:t.starColor},on:{onClose:t.onCloseQuickview}})],1)}),[],!1,null,null,null).exports),m=r(0),g=r(14),v=r(7);function w(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function y(t,e){this._pairs=[],t&&Object(v.a)(t,this,e)}const b=y.prototype;b.append=function(t,e){this._pairs.push([t,e])},b.toString=function(t){const e=t?function(e){return t.call(this,e,w)}:w;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var _=y;function x(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function R(t,e,r){if(!e)return t;const i=r&&r.encode||x,n=r&&r.serialize;let o;if(o=n?n(e,r):m.a.isURLSearchParams(e)?e.toString():new _(e,r).toString(i),o){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}var E=class{constructor(){this.handlers=[]}use(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){m.a.forEach(this.handlers,(function(e){null!==e&&t(e)}))}},C=r(1),A={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},S={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:_,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const O="undefined"!=typeof window&&"undefined"!=typeof document,k=(P="undefined"!=typeof navigator&&navigator.product,O&&["ReactNative","NativeScript","NS"].indexOf(P)<0);var P;const T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts;var j={...i,...S};var B=function(t){function e(t,r,i,n){let o=t[n++];if("__proto__"===o)return!0;const s=Number.isFinite(+o),a=n>=t.length;if(o=!o&&m.a.isArray(i)?i.length:o,a)return m.a.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s;i[o]&&m.a.isObject(i[o])||(i[o]=[]);return e(t,r,i[o],n)&&m.a.isArray(i[o])&&(i[o]=function(t){const e={},r=Object.keys(t);let i;const n=r.length;let o;for(i=0;i<n;i++)o=r[i],e[o]=t[o];return e}(i[o])),!s}if(m.a.isFormData(t)&&m.a.isFunction(t.entries)){const r={};return m.a.forEachEntry(t,(t,i)=>{e(function(t){return m.a.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),i,r,0)}),r}return null};const U={transitional:A,adapter:["xhr","http"],transformRequest:[function(t,e){const r=e.getContentType()||"",i=r.indexOf("application/json")>-1,n=m.a.isObject(t);n&&m.a.isHTMLForm(t)&&(t=new FormData(t));if(m.a.isFormData(t))return i?JSON.stringify(B(t)):t;if(m.a.isArrayBuffer(t)||m.a.isBuffer(t)||m.a.isStream(t)||m.a.isFile(t)||m.a.isBlob(t))return t;if(m.a.isArrayBufferView(t))return t.buffer;if(m.a.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Object(v.a)(t,new j.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,i){return j.isNode&&m.a.isBuffer(t)?(this.append(e,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((o=m.a.isFileList(t))||r.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Object(v.a)(o?{"files[]":t}:t,e&&new e,this.formSerializer)}}return n||i?(e.setContentType("application/json",!1),function(t,e,r){if(m.a.isString(t))try{return(e||JSON.parse)(t),m.a.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||U.transitional,r=e&&e.forcedJSONParsing,i="json"===this.responseType;if(t&&m.a.isString(t)&&(r&&!this.responseType||i)){const r=!(e&&e.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(t){if(r){if("SyntaxError"===t.name)throw C.a.from(t,C.a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.a.forEach(["delete","get","head","post","put","patch"],t=>{U.headers[t]={}});var M=U;const L=m.a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const N=Symbol("internals");function I(t){return t&&String(t).trim().toLowerCase()}function D(t){return!1===t||null==t?t:m.a.isArray(t)?t.map(D):String(t)}function q(t,e,r,i,n){return m.a.isFunction(i)?i.call(this,e,r):(n&&(e=r),m.a.isString(e)?m.a.isString(i)?-1!==e.indexOf(i):m.a.isRegExp(i)?i.test(e):void 0:void 0)}class F{constructor(t){t&&this.set(t)}set(t,e,r){const i=this;function n(t,e,r){const n=I(e);if(!n)throw new Error("header name must be a non-empty string");const o=m.a.findKey(i,n);(!o||void 0===i[o]||!0===r||void 0===r&&!1!==i[o])&&(i[o||e]=D(t))}const o=(t,e)=>m.a.forEach(t,(t,r)=>n(t,r,e));return m.a.isPlainObject(t)||t instanceof this.constructor?o(t,e):m.a.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?o((t=>{const e={};let r,i,n;return t&&t.split("\n").forEach((function(t){n=t.indexOf(":"),r=t.substring(0,n).trim().toLowerCase(),i=t.substring(n+1).trim(),!r||e[r]&&L[r]||("set-cookie"===r?e[r]?e[r].push(i):e[r]=[i]:e[r]=e[r]?e[r]+", "+i:i)})),e})(t),e):null!=t&&n(e,t,r),this}get(t,e){if(t=I(t)){const r=m.a.findKey(this,t);if(r){const t=this[r];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(t);)e[i[1]]=i[2];return e}(t);if(m.a.isFunction(e))return e.call(this,t,r);if(m.a.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=I(t)){const r=m.a.findKey(this,t);return!(!r||void 0===this[r]||e&&!q(0,this[r],r,e))}return!1}delete(t,e){const r=this;let i=!1;function n(t){if(t=I(t)){const n=m.a.findKey(r,t);!n||e&&!q(0,r[n],n,e)||(delete r[n],i=!0)}}return m.a.isArray(t)?t.forEach(n):n(t),i}clear(t){const e=Object.keys(this);let r=e.length,i=!1;for(;r--;){const n=e[r];t&&!q(0,this[n],n,t,!0)||(delete this[n],i=!0)}return i}normalize(t){const e=this,r={};return m.a.forEach(this,(i,n)=>{const o=m.a.findKey(r,n);if(o)return e[o]=D(i),void delete e[n];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,r)=>e.toUpperCase()+r)}(n):String(n).trim();s!==n&&delete e[n],e[s]=D(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return m.a.forEach(this,(r,i)=>{null!=r&&!1!==r&&(e[i]=t&&m.a.isArray(r)?r.join(", "):r)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const r=new this(t);return e.forEach(t=>r.set(t)),r}static accessor(t){const e=(this[N]=this[N]={accessors:{}}).accessors,r=this.prototype;function i(t){const i=I(t);e[i]||(!function(t,e){const r=m.a.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(t,i+r,{value:function(t,r,n){return this[i].call(this,e,t,r,n)},configurable:!0})})}(r,t),e[i]=!0)}return m.a.isArray(t)?t.forEach(i):i(t),this}}F.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.a.reduceDescriptors(F.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[r]=t}}}),m.a.freezeMethods(F);var z=F;function $(t,e){const r=this||M,i=e||r,n=z.from(i.headers);let o=i.data;return m.a.forEach(t,(function(t){o=t.call(r,o,n.normalize(),e?e.status:void 0)})),n.normalize(),o}function V(t){return!(!t||!t.__CANCEL__)}function Y(t,e,r){C.a.call(this,null==t?"canceled":t,C.a.ERR_CANCELED,e,r),this.name="CanceledError"}m.a.inherits(Y,C.a,{__CANCEL__:!0});var Q=Y,H=r(15);var W=j.hasStandardBrowserEnv?{write(t,e,r,i,n,o){const s=[t+"="+encodeURIComponent(e)];m.a.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),m.a.isString(i)&&s.push("path="+i),m.a.isString(n)&&s.push("domain="+n),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function J(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var X=j.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),e=document.createElement("a");let r;function i(r){let i=r;return t&&(e.setAttribute("href",i),i=e.href),e.setAttribute("href",i),{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",host:e.host,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):"",hostname:e.hostname,port:e.port,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname}}return r=i(window.location.href),function(t){const e=m.a.isString(t)?i(t):t;return e.protocol===r.protocol&&e.host===r.host}}():function(){return!0};var K=function(t,e){t=t||10;const r=new Array(t),i=new Array(t);let n,o=0,s=0;return e=void 0!==e?e:1e3,function(a){const l=Date.now(),c=i[s];n||(n=l),r[o]=a,i[o]=l;let u=s,d=0;for(;u!==o;)d+=r[u++],u%=t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),l-n<e)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};function G(t,e){let r=0;const i=K(50,250);return n=>{const o=n.loaded,s=n.lengthComputable?n.total:void 0,a=o-r,l=i(a);r=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&o<=s?(s-o)/l:void 0,event:n};c[e?"download":"upload"]=!0,t(c)}}var Z="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){let i=t.data;const n=z.from(t.headers).normalize();let o,s,{responseType:a,withXSRFToken:l}=t;function c(){t.cancelToken&&t.cancelToken.unsubscribe(o),t.signal&&t.signal.removeEventListener("abort",o)}if(m.a.isFormData(i))if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if(!1!==(s=n.getContentType())){const[t,...e]=s?s.split(";").map(t=>t.trim()).filter(Boolean):[];n.setContentType([t||"multipart/form-data",...e].join("; "))}let u=new XMLHttpRequest;if(t.auth){const e=t.auth.username||"",r=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";n.set("Authorization","Basic "+btoa(e+":"+r))}const d=J(t.baseURL,t.url);function f(){if(!u)return;const i=z.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(t,e,r){const i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(new C.a("Request failed with status code "+r.status,[C.a.ERR_BAD_REQUEST,C.a.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),c()}),(function(t){r(t),c()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:i,config:t,request:u}),u=null}if(u.open(t.method.toUpperCase(),R(d,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,"onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(f)},u.onabort=function(){u&&(r(new C.a("Request aborted",C.a.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new C.a("Network Error",C.a.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const i=t.transitional||A;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new C.a(e,i.clarifyTimeoutError?C.a.ETIMEDOUT:C.a.ECONNABORTED,t,u)),u=null},j.hasStandardBrowserEnv&&(l&&m.a.isFunction(l)&&(l=l(t)),l||!1!==l&&X(d))){const e=t.xsrfHeaderName&&t.xsrfCookieName&&W.read(t.xsrfCookieName);e&&n.set(t.xsrfHeaderName,e)}void 0===i&&n.setContentType(null),"setRequestHeader"in u&&m.a.forEach(n.toJSON(),(function(t,e){u.setRequestHeader(e,t)})),m.a.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),a&&"json"!==a&&(u.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&u.addEventListener("progress",G(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",G(t.onUploadProgress)),(t.cancelToken||t.signal)&&(o=e=>{u&&(r(!e||e.type?new Q(null,t,u):e),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(o),t.signal&&(t.signal.aborted?o():t.signal.addEventListener("abort",o)));const h=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(d);h&&-1===j.protocols.indexOf(h)?r(new C.a("Unsupported protocol "+h+":",C.a.ERR_BAD_REQUEST,t)):u.send(i||null)}))};const tt={http:H.a,xhr:Z};m.a.forEach(tt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const et=t=>"- "+t,rt=t=>m.a.isFunction(t)||null===t||!1===t;var it=t=>{t=m.a.isArray(t)?t:[t];const{length:e}=t;let r,i;const n={};for(let o=0;o<e;o++){let e;if(r=t[o],i=r,!rt(r)&&(i=tt[(e=String(r)).toLowerCase()],void 0===i))throw new C.a(`Unknown adapter '${e}'`);if(i)break;n[e||"#"+o]=i}if(!i){const t=Object.entries(n).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));let r=e?t.length>1?"since :\n"+t.map(et).join("\n"):" "+et(t[0]):"as no adapter specified";throw new C.a("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return i};function nt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Q(null,t)}function ot(t){nt(t),t.headers=z.from(t.headers),t.data=$.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return it(t.adapter||M.adapter)(t).then((function(e){return nt(t),e.data=$.call(t,t.transformResponse,e),e.headers=z.from(e.headers),e}),(function(e){return V(e)||(nt(t),e&&e.response&&(e.response.data=$.call(t,t.transformResponse,e.response),e.response.headers=z.from(e.response.headers))),Promise.reject(e)}))}const st=t=>t instanceof z?{...t}:t;function at(t,e){e=e||{};const r={};function i(t,e,r){return m.a.isPlainObject(t)&&m.a.isPlainObject(e)?m.a.merge.call({caseless:r},t,e):m.a.isPlainObject(e)?m.a.merge({},e):m.a.isArray(e)?e.slice():e}function n(t,e,r){return m.a.isUndefined(e)?m.a.isUndefined(t)?void 0:i(void 0,t,r):i(t,e,r)}function o(t,e){if(!m.a.isUndefined(e))return i(void 0,e)}function s(t,e){return m.a.isUndefined(e)?m.a.isUndefined(t)?void 0:i(void 0,t):i(void 0,e)}function a(r,n,o){return o in e?i(r,n):o in t?i(void 0,r):void 0}const l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(t,e)=>n(st(t),st(e),!0)};return m.a.forEach(Object.keys(Object.assign({},t,e)),(function(i){const o=l[i]||n,s=o(t[i],e[i],i);m.a.isUndefined(s)&&o!==a||(r[i]=s)})),r}const lt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{lt[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const ct={};lt.transitional=function(t,e,r){function i(t,e){return"[Axios v1.6.8] Transitional option '"+t+"'"+e+(r?". "+r:"")}return(r,n,o)=>{if(!1===t)throw new C.a(i(n," has been removed"+(e?" in "+e:"")),C.a.ERR_DEPRECATED);return e&&!ct[n]&&(ct[n]=!0,console.warn(i(n," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,n,o)}};var ut={assertOptions:function(t,e,r){if("object"!=typeof t)throw new C.a("options must be an object",C.a.ERR_BAD_OPTION_VALUE);const i=Object.keys(t);let n=i.length;for(;n-- >0;){const o=i[n],s=e[o];if(s){const e=t[o],r=void 0===e||s(e,o,t);if(!0!==r)throw new C.a("option "+o+" must be "+r,C.a.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new C.a("Unknown option "+o,C.a.ERR_BAD_OPTION)}},validators:lt};const dt=ut.validators;class ft{constructor(t){this.defaults=t,this.interceptors={request:new E,response:new E}}async request(t,e){try{return await this._request(t,e)}catch(t){if(t instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const r=e.stack?e.stack.replace(/^.+\n/,""):"";t.stack?r&&!String(t.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+r):t.stack=r}throw t}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=at(this.defaults,e);const{transitional:r,paramsSerializer:i,headers:n}=e;void 0!==r&&ut.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),null!=i&&(m.a.isFunction(i)?e.paramsSerializer={serialize:i}:ut.assertOptions(i,{encode:dt.function,serialize:dt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase();let o=n&&m.a.merge(n.common,n[e.method]);n&&m.a.forEach(["delete","get","head","post","put","patch","common"],t=>{delete n[t]}),e.headers=z.concat(o,n);const s=[];let a=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(a=a&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(t){l.push(t.fulfilled,t.rejected)}));let u,d=0;if(!a){const t=[ot.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,l),u=t.length,c=Promise.resolve(e);d<u;)c=c.then(t[d++],t[d++]);return c}u=s.length;let f=e;for(d=0;d<u;){const t=s[d++],e=s[d++];try{f=t(f)}catch(t){e.call(this,t);break}}try{c=ot.call(this,f)}catch(t){return Promise.reject(t)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(t){return R(J((t=at(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}m.a.forEach(["delete","get","head","options"],(function(t){ft.prototype[t]=function(e,r){return this.request(at(r||{},{method:t,url:e,data:(r||{}).data}))}})),m.a.forEach(["post","put","patch"],(function(t){function e(e){return function(r,i,n){return this.request(at(n||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:i}))}}ft.prototype[t]=e(),ft.prototype[t+"Form"]=e(!0)}));var ht=ft;class pt{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise((function(t){e=t}));const r=this;this.promise.then(t=>{if(!r._listeners)return;let e=r._listeners.length;for(;e-- >0;)r._listeners[e](t);r._listeners=null}),this.promise.then=t=>{let e;const i=new Promise(t=>{r.subscribe(t),e=t}).then(t);return i.cancel=function(){r.unsubscribe(e)},i},t((function(t,i,n){r.reason||(r.reason=new Q(t,i,n),e(r.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;return{token:new pt((function(e){t=e})),cancel:t}}}var mt=pt;const gt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gt).forEach(([t,e])=>{gt[e]=t});var vt=gt;const wt=function t(e){const r=new ht(e),i=Object(g.a)(ht.prototype.request,r);return m.a.extend(i,ht.prototype,r,{allOwnKeys:!0}),m.a.extend(i,r,null,{allOwnKeys:!0}),i.create=function(r){return t(at(e,r))},i}(M);wt.Axios=ht,wt.CanceledError=Q,wt.CancelToken=mt,wt.isCancel=V,wt.VERSION="1.6.8",wt.toFormData=v.a,wt.AxiosError=C.a,wt.Cancel=wt.CanceledError,wt.all=function(t){return Promise.all(t)},wt.spread=function(t){return function(e){return t.apply(null,e)}},wt.isAxiosError=function(t){return m.a.isObject(t)&&!0===t.isAxiosError},wt.mergeConfig=at,wt.AxiosHeaders=z,wt.formToJSON=t=>B(m.a.isHTMLForm(t)?new FormData(t):t),wt.getAdapter=it,wt.HttpStatusCode=vt,wt.default=wt;var yt=wt,bt=r(13),_t=r.n(bt),xt=r(66),Rt=r(3),Et={name:"SnippetWidget",components:{Rating:r(6).a,Quickview:f.a},data:function(){return{list:[],glide:null,isVisible:!1,isOpenQuickView:!1,selectedReview:null}},computed:{i19next:()=>Object(Rt.i18n)(xt.a),i19previous:()=>Object(Rt.i18n)(xt.c)},props:{storeId:{type:Number,required:!0},webId:{type:String,required:!0},product:{type:String,required:!0},starColor:{type:String,required:!0},backgroundColor:{type:String,default:"#f8f9fa"},textColor:{type:String,default:"#212529"},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#212529"}},methods:{openQuickview:function({review:t,slide:e}){this.selectedReview=t,this.isOpenQuickView=!0},onCloseQuickview:function(){this.isOpenQuickView=!1,this.selectedReview=null},fetch(){yt({url:At+"/reviews.json",headers:{"X-Store-Id":this.storeId,"X-Web-Id":this.webId},params:{sku:this.product,limit:10,offset:0}}).then(({data:t})=>{if(t&&t.result){const e=t.result.filter(t=>t.body);return this.list=e||[],this.glide=new _t.a("#mt-snippet",{keyboard:!1,rewind:!1,type:"slider",startAt:0,perView:1,touchAngle:0,breakpoints:{1900:{perView:1},1024:{perView:1},600:{perView:1}}}),e}return[]}).then(t=>(t.length>=2&&(this.$refs.wrapper.classList.remove("d-none"),this.glide.mount(),this.isVisible=!0),this)).then(t=>{t.isVisible&&this.glide.update({perView:1})})},getImageUrl:t=>t&&t.pictures&&t.pictures.length&&t.pictures[0].thumb?t.pictures[0].thumb:null,loadWidgetOptions(){this.$refs.wrapper.style.color=this.textColor,this.$refs.wrapper.style.backgroundColor=this.backgroundColor,this.border&&(this.$refs.wrapper.style.border="1px solid "+this.borderColor)}},mounted:function(){this.storeId&&this.webId&&this.product&&(this.fetch(),this.loadWidgetOptions())}},Ct=(r(62),Object(u.a)(Et,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{ref:"wrapper",staticClass:"glide martan-snippets d-none",staticStyle:{"margin-bottom":"1rem",height:"85px"},attrs:{id:"mt-snippet"}},[r("div",{staticClass:"glide__track",attrs:{"data-glide-el":"track"}},[r("ul",{staticClass:"glide__slides"},t._l(t.list,(function(e){return r("li",{key:e.id,staticClass:"glide__slide"},[t.getImageUrl(e)?r("div",{staticClass:"martan-snippets__galery"},[r("img",{attrs:{alt:"Foto da avaliação do produto feita por "+e.display_name,src:t.getImageUrl(e)}})]):t._e(),r("div",{staticClass:"martan-snippets__reviews snippet-review"},[r("div",{staticClass:"martan-snippets__reviews-info snippet-review__info"},[r("span",[t._v(t._s(e.display_name))]),r("rating",{attrs:{rating:e.rating,color:t.starColor}})],1),e.body?r("div",{staticClass:"martan-snippets__reviews-body snippet-review__body"},[r("span",[t._v(t._s(e.body.substring(0,115))+"...")])]):t._e()])])})),0)]),r("div",{staticClass:"martan-snippets__controls",attrs:{"data-glide-el":"controls"}},[t.glide&&t.glide.index>0?r("button",{staticClass:"left",attrs:{title:t.i19previous,"aria-label":t.i19previous,"data-glide-dir":"<"},on:{click:function(e){return t.glide.go("<")}}},[r("i",{staticClass:"i-chevron-left"})]):t._e(),t.glide&&t.glide.index!==t.list.length-1?r("button",{staticClass:"right",attrs:{title:t.i19next,"aria-label":t.i19next,"data-glide-dir":">","data-glide":t.glide.index},on:{click:function(e){return t.glide.go(">")}}},[r("i",{staticClass:"i-chevron-right"})]):t._e()])])}),[],!1,null,"7f2dcccb",null).exports);const At="https://widgets.martan.app/v1";e.default=t=>{t&&t.store_id&&t.web_id?(t.widget_snippet&&t.widget_snippet.is_enabled&&((t={},e="snippet_widget")=>{const r=document.getElementById(e);if(!(t&&r&&r.dataset&&r.dataset.sku))return;const{sku:i}=r.dataset,n=t.store_id,s=t.web_id,a=t.widget_snippet||{},l=a.star_color||null,c=a.border||!1,u=a.background_color||null,d=a.text_color||null,f=a.border_color||null;new IntersectionObserver((t,e)=>{new o.a({render:t=>t(Ct,{props:{product:i,storeId:n,webId:s,starColor:l,border:c,borderColor:f,backgroundColor:u,textColor:d}})}).$mount(r),e.disconnect()}).observe(r)})(t),t.widget_review&&t.widget_review.is_enabled&&((t={},e="reviews_widget")=>{const r=document.getElementById(e);if(!(t&&r&&r.dataset&&r.dataset.product))return;const{product:i}=r.dataset,n=t.store_id,s=t.web_id,a=t.widget_review||{},l=a.star_color||null,c=a.title||null,u=a.header_layout||null,d=a.reviews_layout||null;new IntersectionObserver((t,e)=>{t.forEach((function(t){const{isIntersecting:a,intersectionRatio:f}=t;(!0===a||f>0)&&(new o.a({render:t=>t(p,{props:{product:i,storeId:n,webId:s,title:c,starColor:l,headerLayout:u,reviewsLayout:d}})}).$mount(r),e.disconnect())}))},{rootMargin:"250px"}).observe(r)})(t)):console.error(new Error("Can't setup Martan widget without `martanStoreId` and `martanWidgetKey`"))}},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"d",(function(){return s}));const i={en_us:"Next",pt_br:"Próximo"},n={en_us:"No",pt_br:"Não"},o={en_us:"Previous",pt_br:"Anterior"},s={en_us:"Yes",pt_br:"Sim"}}]).default;
71
11
  //# sourceMappingURL=widget-martan.var.min.js.map