@thefittingroom/sdk 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +19 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.min.js +2 -2
- package/dist/esm/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* thefittingroom v2.0.
|
|
2
|
+
* thefittingroom v2.0.6 (2025-08-01T17:17:58.683Z)
|
|
3
3
|
* Copyright 2022-present, TheFittingRoom, Inc. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
var e=Object.freeze({__proto__:null}),t=Object.freeze({__proto__:null});const n=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);s<128?t[n++]=s:s<2048?(t[n++]=s>>6|192,t[n++]=63&s|128):55296==(64512&s)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++r)),t[n++]=s>>18|240,t[n++]=s>>12&63|128,t[n++]=s>>6&63|128,t[n++]=63&s|128):(t[n++]=s>>12|224,t[n++]=s>>6&63|128,t[n++]=63&s|128)}return t},r={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const s=e[t],i=t+1<e.length,o=i?e[t+1]:0,a=t+2<e.length,c=a?e[t+2]:0,u=s>>2,h=(3&s)<<4|o>>4;let l=(15&o)<<2|c>>6,d=63&c;a||(d=64,i||(l=64)),r.push(n[u],n[h],n[l],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(n(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const s=e[n++];if(s<128)t[r++]=String.fromCharCode(s);else if(s>191&&s<224){const i=e[n++];t[r++]=String.fromCharCode((31&s)<<6|63&i)}else if(s>239&&s<365){const i=((7&s)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&s)<<12|(63&i)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){const i=n[e.charAt(t++)],o=t<e.length?n[e.charAt(t)]:0;++t;const a=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==o||null==a||null==c)throw new s;const u=i<<2|o>>4;if(r.push(u),64!==a){const e=o<<4&240|a>>2;if(r.push(e),64!==c){const e=a<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
|
|
@@ -2200,7 +2200,7 @@ const au=/^__.*__$/;class cu{constructor(e,t,n){this.data=e,this.fieldMask=t,thi
|
|
|
2200
2200
|
* See the License for the specific language governing permissions and
|
|
2201
2201
|
* limitations under the License.
|
|
2202
2202
|
*/
|
|
2203
|
-
Ge("firebase","11.10.0","app");class Wu{constructor(){}static getInstance(){return Wu.instance||(Wu.instance=new Wu),Wu.instance}setEnv(e){switch(e){case"production":case"prod":this.env="prod";break;default:this.env="dev"}}get firebase(){return"prod"===this.env?Ju.firebase:Qu.firebase}get api(){return"prod"===this.env?Ju.api:Qu.api}get config(){return"prod"===this.env?Ju.config:Qu.config}}const Qu={firebase:{apiKey:
|
|
2203
|
+
Ge("firebase","11.10.0","app");class Wu{constructor(){}static getInstance(){return Wu.instance||(Wu.instance=new Wu),Wu.instance}setEnv(e){switch(e){case"production":case"prod":this.env="prod";break;default:this.env="dev"}}get firebase(){return"prod"===this.env?Ju.firebase:Qu.firebase}get api(){return"prod"===this.env?Ju.api:Qu.api}get config(){return"prod"===this.env?Ju.config:Qu.config}}const Qu={firebase:{apiKey:"AIzaSyDfjBWzpmzb-mhGN8VSURxzLg6nkzmKUD8",authDomain:"fittingroom-dev-5d248.firebaseapp.com",projectId:"fittingroom-dev-5d248",storageBucket:"fittingroom-dev-5d248.appspot.com",messagingSenderId:"2298664147",appId:"1:2298664147:web:340bda75cd5d25f3997026"},api:{url:"https://tfr.dev.thefittingroom.xyz"},config:{avatarTimeout:Number("120000"),vtoTimeout:Number("120000")}},Ju={firebase:{apiKey:"AIzaSyA3kQ6w1vkA9l9lgY0nNACVPXe-QmP5T1Y",authDomain:"fittingroom-prod.firebaseapp.com",projectId:"fittingroom-prod",storageBucket:"fittingroom-prod.appspot.com",messagingSenderId:"965656825574",appId:"1:965656825574:web:933493cddc73213bd43527"},api:{url:"https://tfr.p.thefittingroom.xyz"},config:{avatarTimeout:Number("120000"),vtoTimeout:Number("120000")}};var Yu=1e3,Xu=6e4,Zu=36e5,eh="millisecond",th="second",nh="minute",rh="hour",sh="day",ih="week",oh="month",ah="quarter",ch="year",uh="date",hh="Invalid Date",lh=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,dh=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fh={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},ph=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},gh={s:ph,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),s=n%60;return(t<=0?"+":"-")+ph(r,2,"0")+":"+ph(s,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),s=t.clone().add(r,oh),i=n-s<0,o=t.clone().add(r+(i?-1:1),oh);return+(-(r+(n-s)/(i?s-o:o-s))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:oh,y:ch,w:ih,d:sh,D:uh,h:rh,m:nh,s:th,ms:eh,Q:ah}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},mh="en",yh={};yh[mh]=fh;var vh="$isDayjsObject",_h=function(e){return e instanceof Sh||!(!e||!e[vh])},wh=function e(t,n,r){var s;if(!t)return mh;if("string"==typeof t){var i=t.toLowerCase();yh[i]&&(s=i),n&&(yh[i]=n,s=i);var o=t.split("-");if(!s&&o.length>1)return e(o[0])}else{var a=t.name;yh[a]=t,s=a}return!r&&s&&(mh=s),s||!r&&mh},Th=function(e,t){if(_h(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new Sh(n)},Eh=gh;Eh.l=wh,Eh.i=_h,Eh.w=function(e,t){return Th(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var Sh=function(){function e(e){this.$L=wh(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[vh]=!0}var t=e.prototype;return t.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(Eh.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(lh);if(r){var s=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],s,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},t.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},t.$utils=function(){return Eh},t.isValid=function(){return!(this.$d.toString()===hh)},t.isSame=function(e,t){var n=Th(e);return this.startOf(t)<=n&&n<=this.endOf(t)},t.isAfter=function(e,t){return Th(e)<this.startOf(t)},t.isBefore=function(e,t){return this.endOf(t)<Th(e)},t.$g=function(e,t,n){return Eh.u(e)?this[t]:this.set(n,e)},t.unix=function(){return Math.floor(this.valueOf()/1e3)},t.valueOf=function(){return this.$d.getTime()},t.startOf=function(e,t){var n=this,r=!!Eh.u(t)||t,s=Eh.p(e),i=function(e,t){var s=Eh.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?s:s.endOf(sh)},o=function(e,t){return Eh.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},a=this.$W,c=this.$M,u=this.$D,h="set"+(this.$u?"UTC":"");switch(s){case ch:return r?i(1,0):i(31,11);case oh:return r?i(1,c):i(0,c+1);case ih:var l=this.$locale().weekStart||0,d=(a<l?a+7:a)-l;return i(r?u-d:u+(6-d),c);case sh:case uh:return o(h+"Hours",0);case rh:return o(h+"Minutes",1);case nh:return o(h+"Seconds",2);case th:return o(h+"Milliseconds",3);default:return this.clone()}},t.endOf=function(e){return this.startOf(e,!1)},t.$set=function(e,t){var n,r=Eh.p(e),s="set"+(this.$u?"UTC":""),i=(n={},n[sh]=s+"Date",n[uh]=s+"Date",n[oh]=s+"Month",n[ch]=s+"FullYear",n[rh]=s+"Hours",n[nh]=s+"Minutes",n[th]=s+"Seconds",n[eh]=s+"Milliseconds",n)[r],o=r===sh?this.$D+(t-this.$W):t;if(r===oh||r===ch){var a=this.clone().set(uh,1);a.$d[i](o),a.init(),this.$d=a.set(uh,Math.min(this.$D,a.daysInMonth())).$d}else i&&this.$d[i](o);return this.init(),this},t.set=function(e,t){return this.clone().$set(e,t)},t.get=function(e){return this[Eh.p(e)]()},t.add=function(e,t){var n,r=this;e=Number(e);var s=Eh.p(t),i=function(t){var n=Th(r);return Eh.w(n.date(n.date()+Math.round(t*e)),r)};if(s===oh)return this.set(oh,this.$M+e);if(s===ch)return this.set(ch,this.$y+e);if(s===sh)return i(1);if(s===ih)return i(7);var o=(n={},n[nh]=Xu,n[rh]=Zu,n[th]=Yu,n)[s]||1,a=this.$d.getTime()+e*o;return Eh.w(a,this)},t.subtract=function(e,t){return this.add(-1*e,t)},t.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||hh;var r=e||"YYYY-MM-DDTHH:mm:ssZ",s=Eh.z(this),i=this.$H,o=this.$m,a=this.$M,c=n.weekdays,u=n.months,h=n.meridiem,l=function(e,n,s,i){return e&&(e[n]||e(t,r))||s[n].slice(0,i)},d=function(e){return Eh.s(i%12||12,e,"0")},f=h||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(dh,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return Eh.s(t.$y,4,"0");case"M":return a+1;case"MM":return Eh.s(a+1,2,"0");case"MMM":return l(n.monthsShort,a,u,3);case"MMMM":return l(u,a);case"D":return t.$D;case"DD":return Eh.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return l(n.weekdaysMin,t.$W,c,2);case"ddd":return l(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return Eh.s(i,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return f(i,o,!0);case"A":return f(i,o,!1);case"m":return String(o);case"mm":return Eh.s(o,2,"0");case"s":return String(t.$s);case"ss":return Eh.s(t.$s,2,"0");case"SSS":return Eh.s(t.$ms,3,"0");case"Z":return s}return null}(e)||s.replace(":","")})},t.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},t.diff=function(e,t,n){var r,s=this,i=Eh.p(t),o=Th(e),a=(o.utcOffset()-this.utcOffset())*Xu,c=this-o,u=function(){return Eh.m(s,o)};switch(i){case ch:r=u()/12;break;case oh:r=u();break;case ah:r=u()/3;break;case ih:r=(c-a)/6048e5;break;case sh:r=(c-a)/864e5;break;case rh:r=c/Zu;break;case nh:r=c/Xu;break;case th:r=c/Yu;break;default:r=c}return n?r:Eh.a(r)},t.daysInMonth=function(){return this.endOf(oh).$D},t.$locale=function(){return yh[this.$L]},t.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=wh(e,t,!0);return r&&(n.$L=r),n},t.clone=function(){return Eh.w(this.$d,this)},t.toDate=function(){return new Date(this.valueOf())},t.toJSON=function(){return this.isValid()?this.toISOString():null},t.toISOString=function(){return this.$d.toISOString()},t.toString=function(){return this.$d.toUTCString()},e}(),Ih=Sh.prototype;function bh(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]])}return n}function Ch(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}Th.prototype=Ih,[["$ms",eh],["$s",th],["$m",nh],["$H",rh],["$W",sh],["$M",oh],["$y",ch],["$D",uh]].forEach(function(e){Ih[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),Th.extend=function(e,t){return e.$i||(e(t,Sh,Th),e.$i=!0),Th},Th.locale=wh,Th.isDayjs=_h,Th.unix=function(e){return Th(1e3*e)},Th.en=yh[mh],Th.Ls=yh,Th.p={},"function"==typeof SuppressedError&&SuppressedError;const Ah=Ch,kh=new T("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Nh="auth/user-disabled",Rh=new j("@firebase/auth");function Oh(e,...t){Rh.logLevel<=M.ERROR&&Rh.error(`Auth (${ze}): ${e}`,...t)}
|
|
2204
2204
|
/**
|
|
2205
2205
|
* @license
|
|
2206
2206
|
* Copyright 2020 Google LLC
|