diff --git a/README.md b/README.md index 68b05c2..3f0584f 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,7 @@ SubModules * [Map Slice](#map-slice) * [Proportional Box](#proportional-box) * [Proportional Text](#proportional-text) +* [Responsive Properties](#responsive-properties) * [setUserAgent.js](#setuseragentjs) * [Spacing](#spacing) * [Text Sizing](#text-sizing) @@ -280,18 +281,85 @@ In most cases it will be sufficient to import this module in your stylesheets wi @use '~@evanshunt/derekstrap/proportional-text'; ``` +### Responsive Properties + +This module provides a mixin to allow setting one or more css properties at multiple breakpoints with a shorthand syntax. + +#### Example usage + +For a single CSS property. + +```scss +@use '~@evanshunt/derekstrap'; + +.colored-text { + @include derekstrap.responsive-properties( + 'color', + ( + 'base': darkred, + 'phone-large': chocolate, + 'tablet': darkgoldenrod, + 'desktop': green, + 'desktop-large': navy, + 'desktop-extra-large': purple + ) + ); +} +``` + +For multiple CSS Properties + +```scss +@use '~@evanshunt/derekstrap'; + +h1 { + @include derekstrap.responsive-properties( + ( + 'font-size', + 'margin-bottom' + ), + ( + 'base': ( + 2rem, + 1rem + ), + 'phone-large': ( + 2.5rem, + 1rem + ), + 'tablet': ( + 3rem, + 1rem + ), + 'desktop': ( + 4rem, + 1.5rem + ), + 'desktop-large': ( + 5rem, + 2rem + ), + 'desktop-extra-large': ( + 6rem, + 3rem + ), + ) + ); +} +``` + ### setUserAgent.js When Derekstrap is imported and initialized it runs [setUserAgent.js](src/setUserAgent.js) which appends the browser user agent string to a `data-user-agent` attribute `html` element. -``` +```scss import { Derekstrap} from '@evanshunt/derekstrap'; Derekstrap.init(); ``` This will result in markup like the following: -``` +```html ``` @@ -303,7 +371,7 @@ To standardize spacing across blocks it will be useful to define your own variab #### Basic example usage -``` +```scss @use '~@evanshunt/derekstrap'; $regular-margins: ( @@ -330,7 +398,7 @@ $section-spacing: ( Note that when the spacing is applied to only one side the element, the opposite side gets set to zero. It is not possible at this time to use the mixin to set different spacing on either side of the element using the same attribute. Configuring both sides independently will be possible in version 1.0. -``` +```scss .content-block { @include derekstrap.horizontal-spacing($regular-margins, 'left'); @include derekstrap.vertical-spacing($section-spacing, 'top'); @@ -609,3 +677,4 @@ blockquote { derekstrap.responsive-font-sizing($blockquote-sizes); } ``` +### @Todo: Document Utility module \ No newline at end of file diff --git a/_index.scss b/_index.scss index 7d9b15a..a9f43e7 100644 --- a/_index.scss +++ b/_index.scss @@ -6,5 +6,6 @@ @forward 'scss/proportional-box/index'; @forward 'scss/text-defaults/index'; // must come before proportional text @forward 'scss/proportional-text/index'; +@forward 'scss/responsive-properties/index'; @forward 'scss/spacing/index'; @forward 'scss/utility/index'; diff --git a/docs/demo.scss b/docs/demo.scss index 9367c02..75aa0d6 100644 --- a/docs/demo.scss +++ b/docs/demo.scss @@ -7,6 +7,7 @@ @use 'scss/breakpoints'; @use 'scss/cards'; @use 'scss/proportional-text'; +@use 'scss/responsive-properties'; @use 'scss/spacing'; header#header, diff --git a/docs/dist/demo.js b/docs/dist/demo.js index 707fbd7..e70261a 100644 --- a/docs/dist/demo.js +++ b/docs/dist/demo.js @@ -1 +1 @@ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Derekstrap=e():t.Derekstrap=e()}(self,(()=>(()=>{var t={2507:(t,e,r)=>{"use strict";r.d(e,{Breakpoints:()=>c}),r(2564);r(5827),r(1539),r(9720),r(9653),r(4916),r(5306),r(1249),r(7327),r(6699),r(2023);const n="function"==typeof window.CustomEvent?window.CustomEvent:function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:null};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r};var i,a,o,A,p={breakpoints:{},current:[],currentBreakpoint:"",init:function(t){this.breakpoints=t,this.currentBreakpoint=this.getCurrent(),this.current=this.get(),window.addEventListener("resize",this.eventEmitter)},getCurrent:function(){var t=Object.entries(this.breakpoints).reduce((function(t,e){return t&&!window.matchMedia("(min-width:"+t[1]+")").matches&&(t=null),window.matchMedia("(min-width:"+e[1]+")").matches&&t&&Number(t[1].replace(/\D/g,"")){var n=r(614),i=r(6330),a=TypeError;t.exports=function(t){if(n(t))return t;throw a(i(t)+" is not a function")}},9483:(t,e,r)=>{var n=r(4411),i=r(6330),a=TypeError;t.exports=function(t){if(n(t))return t;throw a(i(t)+" is not a constructor")}},6077:(t,e,r)=>{var n=r(614),i=String,a=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},1223:(t,e,r)=>{var n=r(5112),i=r(30),a=r(3070).f,o=n("unscopables"),A=Array.prototype;null==A[o]&&a(A,o,{configurable:!0,value:i(null)}),t.exports=function(t){A[o][t]=!0}},1530:(t,e,r)=>{"use strict";var n=r(8710).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},5787:(t,e,r)=>{var n=r(7976),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw i("Incorrect invocation")}},9670:(t,e,r)=>{var n=r(111),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw a(i(t)+" is not an object")}},8533:(t,e,r)=>{"use strict";var n=r(2092).forEach,i=r(9341)("forEach");t.exports=i?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},1318:(t,e,r)=>{var n=r(5656),i=r(1400),a=r(6244),o=function(t){return function(e,r,o){var A,p=n(e),c=a(p),s=i(o,c);if(t&&r!=r){for(;c>s;)if((A=p[s++])!=A)return!0}else for(;c>s;s++)if((t||s in p)&&p[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},2092:(t,e,r)=>{var n=r(9974),i=r(1702),a=r(8361),o=r(7908),A=r(6244),p=r(5417),c=i([].push),s=function(t){var e=1==t,r=2==t,i=3==t,s=4==t,d=6==t,m=7==t,u=5==t||d;return function(f,g,h,l){for(var C,v,w=o(f),x=a(w),B=n(g,h),y=A(x),b=0,k=l||p,z=e?k(f,y):r||m?k(f,0):void 0;y>b;b++)if((u||b in x)&&(v=B(C=x[b],b,w),t))if(e)z[b]=v;else if(v)switch(t){case 3:return!0;case 5:return C;case 6:return b;case 2:c(z,C)}else switch(t){case 4:return!1;case 7:c(z,C)}return d?-1:i||s?s:z}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(t,e,r)=>{var n=r(7293),i=r(5112),a=r(7392),o=i("species");t.exports=function(t){return a>=51||!n((function(){var e=[];return(e.constructor={})[o]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:(t,e,r)=>{"use strict";var n=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},3671:(t,e,r)=>{var n=r(9662),i=r(7908),a=r(8361),o=r(6244),A=TypeError,p=function(t){return function(e,r,p,c){n(r);var s=i(e),d=a(s),m=o(s),u=t?m-1:0,f=t?-1:1;if(p<2)for(;;){if(u in d){c=d[u],u+=f;break}if(u+=f,t?u<0:m<=u)throw A("Reduce of empty array with no initial value")}for(;t?u>=0:m>u;u+=f)u in d&&(c=r(c,d[u],u,s));return c}};t.exports={left:p(!1),right:p(!0)}},206:(t,e,r)=>{var n=r(1702);t.exports=n([].slice)},7475:(t,e,r)=>{var n=r(3157),i=r(4411),a=r(111),o=r(5112)("species"),A=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(i(e)&&(e===A||n(e.prototype))||a(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?A:e}},5417:(t,e,r)=>{var n=r(7475);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},7072:(t,e,r)=>{var n=r(5112)("iterator"),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[n]=function(){return this},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var a={};a[n]=function(){return{next:function(){return{done:r=!0}}}},t(a)}catch(t){}return r}},4326:(t,e,r)=>{var n=r(1702),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},648:(t,e,r)=>{var n=r(1694),i=r(614),a=r(4326),o=r(5112)("toStringTag"),A=Object,p="Arguments"==a(function(){return arguments}());t.exports=n?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=A(t),o))?r:p?a(e):"Object"==(n=a(e))&&i(e.callee)?"Arguments":n}},9920:(t,e,r)=>{var n=r(2597),i=r(3887),a=r(1236),o=r(3070);t.exports=function(t,e,r){for(var A=i(e),p=o.f,c=a.f,s=0;s{var n=r(5112)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},8880:(t,e,r)=>{var n=r(9781),i=r(3070),a=r(9114);t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:(t,e,r)=>{var n=r(614),i=r(3070),a=r(6339),o=r(3072);t.exports=function(t,e,r,A){A||(A={});var p=A.enumerable,c=void 0!==A.name?A.name:e;if(n(r)&&a(r,c,A),A.global)p?t[e]=r:o(e,r);else{try{A.unsafe?t[e]&&(p=!0):delete t[e]}catch(t){}p?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return t}},3072:(t,e,r)=>{var n=r(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},9781:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(t,e,r)=>{var n=r(7854),i=r(111),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(t,e,r)=>{var n=r(317)("span").classList,i=n&&n.constructor&&n.constructor.prototype;t.exports=i===Object.prototype?void 0:i},7871:(t,e,r)=>{var n=r(3823),i=r(5268);t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},3823:t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},1528:(t,e,r)=>{var n=r(8113),i=r(7854);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},6833:(t,e,r)=>{var n=r(8113);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},5268:(t,e,r)=>{var n=r(4326),i=r(7854);t.exports="process"==n(i.process)},1036:(t,e,r)=>{var n=r(8113);t.exports=/web0s(?!.*chrome)/i.test(n)},8113:(t,e,r)=>{var n=r(5005);t.exports=n("navigator","userAgent")||""},7392:(t,e,r)=>{var n,i,a=r(7854),o=r(8113),A=a.process,p=a.Deno,c=A&&A.versions||p&&p.version,s=c&&c.v8;s&&(i=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(i=+n[1]),t.exports=i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,r)=>{var n=r(7854),i=r(1236).f,a=r(8880),o=r(8052),A=r(3072),p=r(9920),c=r(4705);t.exports=function(t,e){var r,s,d,m,u,f=t.target,g=t.global,h=t.stat;if(r=g?n:h?n[f]||A(f,{}):(n[f]||{}).prototype)for(s in e){if(m=e[s],d=t.dontCallGetSet?(u=i(r,s))&&u.value:r[s],!c(g?s:f+(h?".":"#")+s,t.forced)&&void 0!==d){if(typeof m==typeof d)continue;p(m,d)}(t.sham||d&&d.sham)&&a(m,"sham",!0),o(r,s,m,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,r)=>{"use strict";r(4916);var n=r(1702),i=r(8052),a=r(2261),o=r(7293),A=r(5112),p=r(8880),c=A("species"),s=RegExp.prototype;t.exports=function(t,e,r,d){var m=A(t),u=!o((function(){var e={};return e[m]=function(){return 7},7!=""[t](e)})),f=u&&!o((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[c]=function(){return r},r.flags="",r[m]=/./[m]),r.exec=function(){return e=!0,null},r[m](""),!e}));if(!u||!f||r){var g=n(/./[m]),h=e(m,""[t],(function(t,e,r,i,o){var A=n(t),p=e.exec;return p===a||p===s.exec?u&&!o?{done:!0,value:g(e,r,i)}:{done:!0,value:A(r,e,i)}:{done:!1}}));i(String.prototype,t,h[0]),i(s,m,h[1])}d&&p(s[m],"sham",!0)}},2104:(t,e,r)=>{var n=r(4374),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(a):function(){return o.apply(a,arguments)})},9974:(t,e,r)=>{var n=r(1702),i=r(9662),a=r(4374),o=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},4374:(t,e,r)=>{var n=r(7293);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},6916:(t,e,r)=>{var n=r(4374),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},6530:(t,e,r)=>{var n=r(9781),i=r(2597),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,A=i(a,"name"),p=A&&"something"===function(){}.name,c=A&&(!n||n&&o(a,"name").configurable);t.exports={EXISTS:A,PROPER:p,CONFIGURABLE:c}},1702:(t,e,r)=>{var n=r(4374),i=Function.prototype,a=i.bind,o=i.call,A=n&&a.bind(o,o);t.exports=n?function(t){return t&&A(t)}:function(t){return t&&function(){return o.apply(t,arguments)}}},5005:(t,e,r)=>{var n=r(7854),i=r(614),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t]):n[t]&&n[t][e]}},1246:(t,e,r)=>{var n=r(648),i=r(8173),a=r(7497),o=r(5112)("iterator");t.exports=function(t){if(null!=t)return i(t,o)||i(t,"@@iterator")||a[n(t)]}},8554:(t,e,r)=>{var n=r(6916),i=r(9662),a=r(9670),o=r(6330),A=r(1246),p=TypeError;t.exports=function(t,e){var r=arguments.length<2?A(t):e;if(i(r))return a(n(r,t));throw p(o(t)+" is not iterable")}},8173:(t,e,r)=>{var n=r(9662);t.exports=function(t,e){var r=t[e];return null==r?void 0:n(r)}},647:(t,e,r)=>{var n=r(1702),i=r(7908),a=Math.floor,o=n("".charAt),A=n("".replace),p=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,d,m){var u=r+t.length,f=n.length,g=s;return void 0!==d&&(d=i(d),g=c),A(m,g,(function(i,A){var c;switch(o(A,0)){case"$":return"$";case"&":return t;case"`":return p(e,0,r);case"'":return p(e,u);case"<":c=d[p(A,1,-1)];break;default:var s=+A;if(0===s)return i;if(s>f){var m=a(s/10);return 0===m?i:m<=f?void 0===n[m-1]?o(A,1):n[m-1]+o(A,1):i}c=n[s-1]}return void 0===c?"":c}))}},7854:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},2597:(t,e,r)=>{var n=r(1702),i=r(7908),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},3501:t=>{t.exports={}},842:(t,e,r)=>{var n=r(7854);t.exports=function(t,e){var r=n.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}},490:(t,e,r)=>{var n=r(5005);t.exports=n("document","documentElement")},4664:(t,e,r)=>{var n=r(9781),i=r(7293),a=r(317);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:(t,e,r)=>{var n=r(1702),i=r(7293),a=r(4326),o=Object,A=n("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?A(t,""):o(t)}:o},9587:(t,e,r)=>{var n=r(614),i=r(111),a=r(7674);t.exports=function(t,e,r){var o,A;return a&&n(o=e.constructor)&&o!==r&&i(A=o.prototype)&&A!==r.prototype&&a(t,A),t}},2788:(t,e,r)=>{var n=r(1702),i=r(614),a=r(5465),o=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},9909:(t,e,r)=>{var n,i,a,o=r(8536),A=r(7854),p=r(1702),c=r(111),s=r(8880),d=r(2597),m=r(5465),u=r(6200),f=r(3501),g="Object already initialized",h=A.TypeError,l=A.WeakMap;if(o||m.state){var C=m.state||(m.state=new l),v=p(C.get),w=p(C.has),x=p(C.set);n=function(t,e){if(w(C,t))throw new h(g);return e.facade=t,x(C,t,e),e},i=function(t){return v(C,t)||{}},a=function(t){return w(C,t)}}else{var B=u("state");f[B]=!0,n=function(t,e){if(d(t,B))throw new h(g);return e.facade=t,s(t,B,e),e},i=function(t){return d(t,B)?t[B]:{}},a=function(t){return d(t,B)}}t.exports={set:n,get:i,has:a,enforce:function(t){return a(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return r}}}},7659:(t,e,r)=>{var n=r(5112),i=r(7497),a=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},3157:(t,e,r)=>{var n=r(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},614:t=>{t.exports=function(t){return"function"==typeof t}},4411:(t,e,r)=>{var n=r(1702),i=r(7293),a=r(614),o=r(648),A=r(5005),p=r(2788),c=function(){},s=[],d=A("Reflect","construct"),m=/^\s*(?:class|function)\b/,u=n(m.exec),f=!m.exec(c),g=function(t){if(!a(t))return!1;try{return d(c,s,t),!0}catch(t){return!1}},h=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!u(m,p(t))}catch(t){return!0}};h.sham=!0,t.exports=!d||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?h:g},4705:(t,e,r)=>{var n=r(7293),i=r(614),a=/#|\.prototype\./,o=function(t,e){var r=p[A(t)];return r==s||r!=c&&(i(e)?n(e):!!e)},A=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},p=o.data={},c=o.NATIVE="N",s=o.POLYFILL="P";t.exports=o},111:(t,e,r)=>{var n=r(614);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},1913:t=>{t.exports=!1},7850:(t,e,r)=>{var n=r(111),i=r(4326),a=r(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},2190:(t,e,r)=>{var n=r(5005),i=r(614),a=r(7976),o=r(3307),A=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&a(e.prototype,A(t))}},408:(t,e,r)=>{var n=r(9974),i=r(6916),a=r(9670),o=r(6330),A=r(7659),p=r(6244),c=r(7976),s=r(8554),d=r(1246),m=r(9212),u=TypeError,f=function(t,e){this.stopped=t,this.result=e},g=f.prototype;t.exports=function(t,e,r){var h,l,C,v,w,x,B,y=r&&r.that,b=!(!r||!r.AS_ENTRIES),k=!(!r||!r.IS_RECORD),z=!(!r||!r.IS_ITERATOR),E=!(!r||!r.INTERRUPTED),S=n(e,y),T=function(t){return h&&m(h,"normal",t),new f(!0,t)},O=function(t){return b?(a(t),E?S(t[0],t[1],T):S(t[0],t[1])):E?S(t,T):S(t)};if(k)h=t.iterator;else if(z)h=t;else{if(!(l=d(t)))throw u(o(t)+" is not iterable");if(A(l)){for(C=0,v=p(t);v>C;C++)if((w=O(t[C]))&&c(g,w))return w;return new f(!1)}h=s(t,l)}for(x=k?t.next:h.next;!(B=i(x,h)).done;){try{w=O(B.value)}catch(t){m(h,"throw",t)}if("object"==typeof w&&w&&c(g,w))return w}return new f(!1)}},9212:(t,e,r)=>{var n=r(6916),i=r(9670),a=r(8173);t.exports=function(t,e,r){var o,A;i(t);try{if(!(o=a(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){A=!0,o=t}if("throw"===e)throw r;if(A)throw o;return i(o),r}},7497:t=>{t.exports={}},6244:(t,e,r)=>{var n=r(7466);t.exports=function(t){return n(t.length)}},6339:(t,e,r)=>{var n=r(7293),i=r(614),a=r(2597),o=r(9781),A=r(6530).CONFIGURABLE,p=r(2788),c=r(9909),s=c.enforce,d=c.get,m=Object.defineProperty,u=o&&!n((function(){return 8!==m((function(){}),"length",{value:8}).length})),f=String(String).split("String"),g=t.exports=function(t,e,r){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||A&&t.name!==e)&&(o?m(t,"name",{value:e,configurable:!0}):t.name=e),u&&r&&a(r,"arity")&&t.length!==r.arity&&m(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&m(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=s(t);return a(n,"source")||(n.source=f.join("string"==typeof e?e:"")),t};Function.prototype.toString=g((function(){return i(this)&&d(this).source||p(this)}),"toString")},4758:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},5948:(t,e,r)=>{var n,i,a,o,A,p,c,s,d=r(7854),m=r(9974),u=r(1236).f,f=r(261).set,g=r(6833),h=r(1528),l=r(1036),C=r(5268),v=d.MutationObserver||d.WebKitMutationObserver,w=d.document,x=d.process,B=d.Promise,y=u(d,"queueMicrotask"),b=y&&y.value;b||(n=function(){var t,e;for(C&&(t=x.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?o():a=void 0,t}}a=void 0,t&&t.enter()},g||C||l||!v||!w?!h&&B&&B.resolve?((c=B.resolve(void 0)).constructor=B,s=m(c.then,c),o=function(){s(n)}):C?o=function(){x.nextTick(n)}:(f=m(f,d),o=function(){f(n)}):(A=!0,p=w.createTextNode(""),new v(n).observe(p,{characterData:!0}),o=function(){p.data=A=!A})),t.exports=b||function(t){var e={fn:t,next:void 0};a&&(a.next=e),i||(i=e,o()),a=e}},133:(t,e,r)=>{var n=r(7392),i=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},8536:(t,e,r)=>{var n=r(7854),i=r(614),a=r(2788),o=n.WeakMap;t.exports=i(o)&&/native code/.test(a(o))},8523:(t,e,r)=>{"use strict";var n=r(9662),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},3929:(t,e,r)=>{var n=r(7850),i=TypeError;t.exports=function(t){if(n(t))throw i("The method doesn't accept regular expressions");return t}},30:(t,e,r)=>{var n,i=r(9670),a=r(6048),o=r(748),A=r(3501),p=r(490),c=r(317),s=r(6200)("IE_PROTO"),d=function(){},m=function(t){return"