@eturnity/eturnity_reusable_components 7.45.2--EPDM-12129.4 → 7.45.2--EPDM-12129.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.es.js +7 -0
- package/dist/main.es10.js +10 -0
- package/dist/main.es100.js +23 -0
- package/dist/main.es101.js +23 -0
- package/dist/main.es102.js +20 -0
- package/dist/main.es103.js +20 -0
- package/dist/main.es104.js +20 -0
- package/dist/main.es105.js +37 -0
- package/dist/main.es106.js +28 -0
- package/dist/main.es107.js +32 -0
- package/dist/main.es108.js +18 -0
- package/dist/main.es109.js +33 -0
- package/dist/main.es11.js +2484 -0
- package/dist/main.es110.js +41 -0
- package/dist/main.es111.js +36 -0
- package/dist/main.es112.js +35 -0
- package/dist/main.es113.js +20 -0
- package/dist/main.es114.js +23 -0
- package/dist/main.es115.js +30 -0
- package/dist/main.es116.js +23 -0
- package/dist/main.es117.js +32 -0
- package/dist/main.es118.js +23 -0
- package/dist/main.es119.js +29 -0
- package/dist/main.es12.js +133 -0
- package/dist/main.es120.js +25 -0
- package/dist/main.es121.js +23 -0
- package/dist/main.es122.js +28 -0
- package/dist/main.es123.js +28 -0
- package/dist/main.es124.js +39 -0
- package/dist/main.es125.js +37 -0
- package/dist/main.es126.js +23 -0
- package/dist/main.es127.js +25 -0
- package/dist/main.es128.js +23 -0
- package/dist/main.es129.js +23 -0
- package/dist/main.es13.js +261 -0
- package/dist/main.es130.js +23 -0
- package/dist/main.es131.js +28 -0
- package/dist/main.es132.js +29 -0
- package/dist/main.es133.js +29 -0
- package/dist/main.es134.js +21 -0
- package/dist/main.es135.js +20 -0
- package/dist/main.es136.js +28 -0
- package/dist/main.es137.js +24 -0
- package/dist/main.es138.js +28 -0
- package/dist/main.es139.js +23 -0
- package/dist/main.es14.js +26 -0
- package/dist/main.es140.js +33 -0
- package/dist/main.es141.js +30 -0
- package/dist/main.es142.js +23 -0
- package/dist/main.es143.js +20 -0
- package/dist/main.es144.js +19 -0
- package/dist/main.es145.js +23 -0
- package/dist/main.es146.js +29 -0
- package/dist/main.es147.js +28 -0
- package/dist/main.es148.js +35 -0
- package/dist/main.es149.js +25 -0
- package/dist/main.es15.js +1058 -0
- package/dist/main.es150.js +25 -0
- package/dist/main.es151.js +23 -0
- package/dist/main.es152.js +41 -0
- package/dist/main.es153.js +41 -0
- package/dist/main.es154.js +25 -0
- package/dist/main.es155.js +23 -0
- package/dist/main.es156.js +23 -0
- package/dist/main.es157.js +25 -0
- package/dist/main.es158.js +23 -0
- package/dist/main.es159.js +23 -0
- package/dist/main.es16.js +692 -0
- package/dist/main.es160.js +23 -0
- package/dist/main.es161.js +23 -0
- package/dist/main.es162.js +23 -0
- package/dist/main.es163.js +23 -0
- package/dist/main.es164.js +20 -0
- package/dist/main.es165.js +28 -0
- package/dist/main.es166.js +28 -0
- package/dist/main.es167.js +28 -0
- package/dist/main.es168.js +28 -0
- package/dist/main.es169.js +25 -0
- package/dist/main.es17.js +95 -0
- package/dist/main.es170.js +23 -0
- package/dist/main.es171.js +23 -0
- package/dist/main.es172.js +20 -0
- package/dist/main.es173.js +20 -0
- package/dist/main.es174.js +23 -0
- package/dist/main.es175.js +18 -0
- package/dist/main.es176.js +23 -0
- package/dist/main.es177.js +20 -0
- package/dist/main.es178.js +25 -0
- package/dist/main.es179.js +25 -0
- package/dist/main.es18.js +78 -0
- package/dist/main.es180.js +23 -0
- package/dist/main.es181.js +23 -0
- package/dist/main.es182.js +20 -0
- package/dist/main.es183.js +23 -0
- package/dist/main.es184.js +23 -0
- package/dist/main.es185.js +32 -0
- package/dist/main.es186.js +23 -0
- package/dist/main.es187.js +32 -0
- package/dist/main.es188.js +37 -0
- package/dist/main.es189.js +32 -0
- package/dist/main.es19.js +143 -0
- package/dist/main.es190.js +39 -0
- package/dist/main.es191.js +28 -0
- package/dist/main.es192.js +20 -0
- package/dist/main.es193.js +20 -0
- package/dist/main.es194.js +25 -0
- package/dist/main.es195.js +23 -0
- package/dist/main.es196.js +40 -0
- package/dist/main.es197.js +23 -0
- package/dist/main.es198.js +21 -0
- package/dist/main.es199.js +19 -0
- package/dist/main.es2.js +34 -0
- package/dist/main.es20.js +152 -0
- package/dist/main.es200.js +20 -0
- package/dist/main.es201.js +20 -0
- package/dist/main.es202.js +33 -0
- package/dist/main.es203.js +23 -0
- package/dist/main.es204.js +23 -0
- package/dist/main.es205.js +28 -0
- package/dist/main.es206.js +23 -0
- package/dist/main.es207.js +23 -0
- package/dist/main.es208.js +21 -0
- package/dist/main.es209.js +23 -0
- package/dist/main.es21.js +108 -0
- package/dist/main.es210.js +28 -0
- package/dist/main.es211.js +23 -0
- package/dist/main.es212.js +23 -0
- package/dist/main.es213.js +23 -0
- package/dist/main.es214.js +28 -0
- package/dist/main.es215.js +28 -0
- package/dist/main.es216.js +20 -0
- package/dist/main.es217.js +23 -0
- package/dist/main.es218.js +35 -0
- package/dist/main.es219.js +28 -0
- package/dist/main.es22.js +4 -0
- package/dist/main.es220.js +29 -0
- package/dist/main.es221.js +24 -0
- package/dist/main.es222.js +23 -0
- package/dist/main.es223.js +28 -0
- package/dist/main.es224.js +25 -0
- package/dist/main.es225.js +23 -0
- package/dist/main.es226.js +23 -0
- package/dist/main.es227.js +20 -0
- package/dist/main.es228.js +20 -0
- package/dist/main.es229.js +23 -0
- package/dist/main.es23.js +169 -0
- package/dist/main.es230.js +23 -0
- package/dist/main.es231.js +25 -0
- package/dist/main.es232.js +38 -0
- package/dist/main.es233.js +30 -0
- package/dist/main.es234.js +28 -0
- package/dist/main.es235.js +23 -0
- package/dist/main.es236.js +22 -0
- package/dist/main.es237.js +28 -0
- package/dist/main.es238.js +23 -0
- package/dist/main.es239.js +18 -0
- package/dist/main.es24.js +201 -0
- package/dist/main.es240.js +23 -0
- package/dist/main.es241.js +25 -0
- package/dist/main.es242.js +23 -0
- package/dist/main.es243.js +23 -0
- package/dist/main.es244.js +23 -0
- package/dist/main.es245.js +23 -0
- package/dist/main.es246.js +23 -0
- package/dist/main.es247.js +23 -0
- package/dist/main.es248.js +23 -0
- package/dist/main.es249.js +23 -0
- package/dist/main.es25.js +55 -0
- package/dist/main.es250.js +30 -0
- package/dist/main.es251.js +23 -0
- package/dist/main.es252.js +23 -0
- package/dist/main.es253.js +28 -0
- package/dist/main.es254.js +23 -0
- package/dist/main.es255.js +23 -0
- package/dist/main.es256.js +28 -0
- package/dist/main.es257.js +33 -0
- package/dist/main.es258.js +28 -0
- package/dist/main.es259.js +28 -0
- package/dist/main.es26.js +12 -0
- package/dist/main.es260.js +23 -0
- package/dist/main.es261.js +25 -0
- package/dist/main.es262.js +28 -0
- package/dist/main.es263.js +30 -0
- package/dist/main.es264.js +23 -0
- package/dist/main.es265.js +23 -0
- package/dist/main.es266.js +23 -0
- package/dist/main.es267.js +23 -0
- package/dist/main.es268.js +28 -0
- package/dist/main.es269.js +252 -0
- package/dist/main.es27.js +6 -0
- package/dist/main.es270.js +22 -0
- package/dist/main.es271.js +25 -0
- package/dist/main.es272.js +7 -0
- package/dist/main.es273.js +383 -0
- package/dist/main.es274.js +54 -0
- package/dist/main.es275.js +15 -0
- package/dist/main.es276.js +64 -0
- package/dist/main.es277.js +4 -0
- package/dist/main.es278.js +4 -0
- package/dist/main.es279.js +4 -0
- package/dist/main.es28.js +103 -0
- package/dist/main.es280.js +4 -0
- package/dist/main.es281.js +4 -0
- package/dist/main.es282.js +4 -0
- package/dist/main.es283.js +4 -0
- package/dist/main.es284.js +4 -0
- package/dist/main.es285.js +4 -0
- package/dist/main.es286.js +4 -0
- package/dist/main.es287.js +4 -0
- package/dist/main.es288.js +4 -0
- package/dist/main.es289.js +4 -0
- package/dist/main.es29.js +62 -0
- package/dist/main.es290.js +4 -0
- package/dist/main.es291.js +4 -0
- package/dist/main.es292.js +4 -0
- package/dist/main.es293.js +4 -0
- package/dist/main.es294.js +4 -0
- package/dist/main.es295.js +4 -0
- package/dist/main.es296.js +4 -0
- package/dist/main.es297.js +4 -0
- package/dist/main.es298.js +4 -0
- package/dist/main.es299.js +4 -0
- package/dist/main.es3.js +70 -0
- package/dist/main.es30.js +69 -0
- package/dist/main.es300.js +4 -0
- package/dist/main.es301.js +4 -0
- package/dist/main.es302.js +4 -0
- package/dist/main.es303.js +4 -0
- package/dist/main.es304.js +4 -0
- package/dist/main.es305.js +4 -0
- package/dist/main.es306.js +4 -0
- package/dist/main.es307.js +4 -0
- package/dist/main.es308.js +4 -0
- package/dist/main.es309.js +4 -0
- package/dist/main.es31.js +801 -0
- package/dist/main.es310.js +4 -0
- package/dist/main.es311.js +4 -0
- package/dist/main.es312.js +4 -0
- package/dist/main.es313.js +4 -0
- package/dist/main.es314.js +4 -0
- package/dist/main.es315.js +4 -0
- package/dist/main.es316.js +4 -0
- package/dist/main.es317.js +4 -0
- package/dist/main.es318.js +4 -0
- package/dist/main.es319.js +4 -0
- package/dist/main.es32.js +127 -0
- package/dist/main.es320.js +4 -0
- package/dist/main.es321.js +4 -0
- package/dist/main.es322.js +4 -0
- package/dist/main.es323.js +4 -0
- package/dist/main.es324.js +4 -0
- package/dist/main.es325.js +4 -0
- package/dist/main.es326.js +4 -0
- package/dist/main.es327.js +4 -0
- package/dist/main.es328.js +4 -0
- package/dist/main.es329.js +4 -0
- package/dist/main.es33.js +4 -0
- package/dist/main.es330.js +4 -0
- package/dist/main.es331.js +4 -0
- package/dist/main.es332.js +4 -0
- package/dist/main.es333.js +4 -0
- package/dist/main.es334.js +4 -0
- package/dist/main.es335.js +4 -0
- package/dist/main.es336.js +4 -0
- package/dist/main.es337.js +4 -0
- package/dist/main.es338.js +4 -0
- package/dist/main.es339.js +4 -0
- package/dist/main.es34.js +29 -0
- package/dist/main.es340.js +4 -0
- package/dist/main.es341.js +4 -0
- package/dist/main.es342.js +4 -0
- package/dist/main.es343.js +4 -0
- package/dist/main.es344.js +4 -0
- package/dist/main.es345.js +4 -0
- package/dist/main.es346.js +4 -0
- package/dist/main.es347.js +4 -0
- package/dist/main.es348.js +4 -0
- package/dist/main.es349.js +4 -0
- package/dist/main.es35.js +34 -0
- package/dist/main.es350.js +4 -0
- package/dist/main.es351.js +4 -0
- package/dist/main.es352.js +4 -0
- package/dist/main.es353.js +4 -0
- package/dist/main.es354.js +4 -0
- package/dist/main.es355.js +4 -0
- package/dist/main.es356.js +4 -0
- package/dist/main.es357.js +4 -0
- package/dist/main.es358.js +4 -0
- package/dist/main.es359.js +4 -0
- package/dist/main.es36.js +36 -0
- package/dist/main.es360.js +4 -0
- package/dist/main.es361.js +4 -0
- package/dist/main.es362.js +4 -0
- package/dist/main.es363.js +4 -0
- package/dist/main.es364.js +4 -0
- package/dist/main.es365.js +4 -0
- package/dist/main.es366.js +4 -0
- package/dist/main.es367.js +4 -0
- package/dist/main.es368.js +4 -0
- package/dist/main.es369.js +4 -0
- package/dist/main.es37.js +41 -0
- package/dist/main.es370.js +4 -0
- package/dist/main.es371.js +4 -0
- package/dist/main.es372.js +4 -0
- package/dist/main.es373.js +4 -0
- package/dist/main.es374.js +4 -0
- package/dist/main.es375.js +4 -0
- package/dist/main.es376.js +4 -0
- package/dist/main.es377.js +4 -0
- package/dist/main.es378.js +4 -0
- package/dist/main.es379.js +4 -0
- package/dist/main.es38.js +35 -0
- package/dist/main.es380.js +4 -0
- package/dist/main.es381.js +4 -0
- package/dist/main.es382.js +4 -0
- package/dist/main.es383.js +4 -0
- package/dist/main.es384.js +4 -0
- package/dist/main.es385.js +4 -0
- package/dist/main.es386.js +4 -0
- package/dist/main.es387.js +4 -0
- package/dist/main.es388.js +4 -0
- package/dist/main.es389.js +4 -0
- package/dist/main.es39.js +20 -0
- package/dist/main.es390.js +4 -0
- package/dist/main.es391.js +4 -0
- package/dist/main.es392.js +4 -0
- package/dist/main.es393.js +4 -0
- package/dist/main.es394.js +4 -0
- package/dist/main.es395.js +4 -0
- package/dist/main.es396.js +4 -0
- package/dist/main.es397.js +4 -0
- package/dist/main.es398.js +4 -0
- package/dist/main.es399.js +4 -0
- package/dist/main.es4.js +19 -0
- package/dist/main.es40.js +20 -0
- package/dist/main.es400.js +4 -0
- package/dist/main.es401.js +4 -0
- package/dist/main.es402.js +4 -0
- package/dist/main.es403.js +4 -0
- package/dist/main.es404.js +4 -0
- package/dist/main.es405.js +4 -0
- package/dist/main.es406.js +4 -0
- package/dist/main.es407.js +4 -0
- package/dist/main.es408.js +4 -0
- package/dist/main.es409.js +4 -0
- package/dist/main.es41.js +25 -0
- package/dist/main.es410.js +4 -0
- package/dist/main.es411.js +4 -0
- package/dist/main.es412.js +4 -0
- package/dist/main.es413.js +4 -0
- package/dist/main.es414.js +4 -0
- package/dist/main.es415.js +4 -0
- package/dist/main.es416.js +4 -0
- package/dist/main.es417.js +4 -0
- package/dist/main.es418.js +4 -0
- package/dist/main.es419.js +4 -0
- package/dist/main.es42.js +28 -0
- package/dist/main.es420.js +4 -0
- package/dist/main.es421.js +4 -0
- package/dist/main.es422.js +4 -0
- package/dist/main.es423.js +4 -0
- package/dist/main.es424.js +4 -0
- package/dist/main.es425.js +4 -0
- package/dist/main.es426.js +4 -0
- package/dist/main.es427.js +4 -0
- package/dist/main.es428.js +4 -0
- package/dist/main.es429.js +4 -0
- package/dist/main.es43.js +23 -0
- package/dist/main.es430.js +4 -0
- package/dist/main.es431.js +4 -0
- package/dist/main.es432.js +4 -0
- package/dist/main.es433.js +4 -0
- package/dist/main.es434.js +4 -0
- package/dist/main.es435.js +4 -0
- package/dist/main.es436.js +4 -0
- package/dist/main.es437.js +4 -0
- package/dist/main.es438.js +4 -0
- package/dist/main.es439.js +4 -0
- package/dist/main.es44.js +44 -0
- package/dist/main.es440.js +4 -0
- package/dist/main.es441.js +4 -0
- package/dist/main.es442.js +4 -0
- package/dist/main.es443.js +4 -0
- package/dist/main.es444.js +4 -0
- package/dist/main.es445.js +4 -0
- package/dist/main.es446.js +4 -0
- package/dist/main.es447.js +4 -0
- package/dist/main.es448.js +4 -0
- package/dist/main.es449.js +4 -0
- package/dist/main.es45.js +38 -0
- package/dist/main.es450.js +4 -0
- package/dist/main.es451.js +4 -0
- package/dist/main.es452.js +4 -0
- package/dist/main.es453.js +4 -0
- package/dist/main.es454.js +4 -0
- package/dist/main.es455.js +4 -0
- package/dist/main.es456.js +4 -0
- package/dist/main.es457.js +4 -0
- package/dist/main.es458.js +4 -0
- package/dist/main.es459.js +4 -0
- package/dist/main.es46.js +23 -0
- package/dist/main.es460.js +4 -0
- package/dist/main.es461.js +4 -0
- package/dist/main.es462.js +4 -0
- package/dist/main.es463.js +4 -0
- package/dist/main.es464.js +4 -0
- package/dist/main.es465.js +4 -0
- package/dist/main.es466.js +4 -0
- package/dist/main.es467.js +4 -0
- package/dist/main.es468.js +4 -0
- package/dist/main.es469.js +4 -0
- package/dist/main.es47.js +23 -0
- package/dist/main.es470.js +4 -0
- package/dist/main.es471.js +4 -0
- package/dist/main.es472.js +4 -0
- package/dist/main.es473.js +4 -0
- package/dist/main.es474.js +4 -0
- package/dist/main.es475.js +4 -0
- package/dist/main.es476.js +4 -0
- package/dist/main.es477.js +4 -0
- package/dist/main.es478.js +4 -0
- package/dist/main.es479.js +4 -0
- package/dist/main.es48.js +24 -0
- package/dist/main.es480.js +4 -0
- package/dist/main.es481.js +4 -0
- package/dist/main.es482.js +4 -0
- package/dist/main.es483.js +4 -0
- package/dist/main.es484.js +4 -0
- package/dist/main.es485.js +4 -0
- package/dist/main.es486.js +4 -0
- package/dist/main.es487.js +4 -0
- package/dist/main.es488.js +4 -0
- package/dist/main.es489.js +4 -0
- package/dist/main.es49.js +35 -0
- package/dist/main.es490.js +4 -0
- package/dist/main.es491.js +4 -0
- package/dist/main.es492.js +4 -0
- package/dist/main.es493.js +4 -0
- package/dist/main.es494.js +4 -0
- package/dist/main.es495.js +4 -0
- package/dist/main.es496.js +4 -0
- package/dist/main.es497.js +4 -0
- package/dist/main.es498.js +4 -0
- package/dist/main.es499.js +4 -0
- package/dist/main.es5.js +586 -0
- package/dist/main.es50.js +30 -0
- package/dist/main.es500.js +4 -0
- package/dist/main.es501.js +4 -0
- package/dist/main.es502.js +4 -0
- package/dist/main.es503.js +4 -0
- package/dist/main.es504.js +4 -0
- package/dist/main.es505.js +4 -0
- package/dist/main.es506.js +4 -0
- package/dist/main.es507.js +4 -0
- package/dist/main.es508.js +4 -0
- package/dist/main.es509.js +4 -0
- package/dist/main.es51.js +34 -0
- package/dist/main.es510.js +4 -0
- package/dist/main.es511.js +88 -0
- package/dist/main.es52.js +20 -0
- package/dist/main.es53.js +20 -0
- package/dist/main.es54.js +23 -0
- package/dist/main.es55.js +28 -0
- package/dist/main.es56.js +28 -0
- package/dist/main.es57.js +23 -0
- package/dist/main.es58.js +25 -0
- package/dist/main.es59.js +24 -0
- package/dist/main.es6.js +5872 -0
- package/dist/main.es60.js +23 -0
- package/dist/main.es61.js +23 -0
- package/dist/main.es62.js +23 -0
- package/dist/main.es63.js +23 -0
- package/dist/main.es64.js +23 -0
- package/dist/main.es65.js +20 -0
- package/dist/main.es66.js +23 -0
- package/dist/main.es67.js +23 -0
- package/dist/main.es68.js +21 -0
- package/dist/main.es69.js +20 -0
- package/dist/main.es7.js +1904 -0
- package/dist/main.es70.js +23 -0
- package/dist/main.es71.js +28 -0
- package/dist/main.es72.js +28 -0
- package/dist/main.es73.js +23 -0
- package/dist/main.es74.js +23 -0
- package/dist/main.es75.js +23 -0
- package/dist/main.es76.js +23 -0
- package/dist/main.es77.js +31 -0
- package/dist/main.es78.js +23 -0
- package/dist/main.es79.js +33 -0
- package/dist/main.es8.js +42 -0
- package/dist/main.es80.js +30 -0
- package/dist/main.es81.js +23 -0
- package/dist/main.es82.js +22 -0
- package/dist/main.es83.js +25 -0
- package/dist/main.es84.js +28 -0
- package/dist/main.es85.js +35 -0
- package/dist/main.es86.js +23 -0
- package/dist/main.es87.js +23 -0
- package/dist/main.es88.js +33 -0
- package/dist/main.es89.js +20 -0
- package/dist/main.es9.js +4 -0
- package/dist/main.es90.js +28 -0
- package/dist/main.es91.js +28 -0
- package/dist/main.es92.js +23 -0
- package/dist/main.es93.js +23 -0
- package/dist/main.es94.js +24 -0
- package/dist/main.es95.js +28 -0
- package/dist/main.es96.js +28 -0
- package/dist/main.es97.js +23 -0
- package/dist/main.es98.js +23 -0
- package/dist/main.es99.js +28 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
package/dist/main.es7.js
ADDED
@@ -0,0 +1,1904 @@
|
|
1
|
+
import "./main.es3.js";
|
2
|
+
import { inject, h, provide } from "./main.es6.js";
|
3
|
+
var chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
4
|
+
var generateAlphabeticName = function generateAlphabeticName2(code) {
|
5
|
+
var lastDigit = chars[code % chars.length];
|
6
|
+
return code > chars.length ? "".concat(generateAlphabeticName2(Math.floor(code / chars.length))).concat(lastDigit) : lastDigit;
|
7
|
+
};
|
8
|
+
var interleave = function(strings, interpolations) {
|
9
|
+
return interpolations.reduce(function(array, interp, i) {
|
10
|
+
return array.concat(interp, strings[i + 1]);
|
11
|
+
}, [strings[0]]);
|
12
|
+
};
|
13
|
+
function _classCallCheck(instance, Constructor) {
|
14
|
+
if (!(instance instanceof Constructor)) {
|
15
|
+
throw new TypeError("Cannot call a class as a function");
|
16
|
+
}
|
17
|
+
}
|
18
|
+
function _defineProperties(target, props) {
|
19
|
+
for (var i = 0; i < props.length; i++) {
|
20
|
+
var descriptor = props[i];
|
21
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
22
|
+
descriptor.configurable = true;
|
23
|
+
if ("value" in descriptor)
|
24
|
+
descriptor.writable = true;
|
25
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
29
|
+
if (protoProps)
|
30
|
+
_defineProperties(Constructor.prototype, protoProps);
|
31
|
+
if (staticProps)
|
32
|
+
_defineProperties(Constructor, staticProps);
|
33
|
+
return Constructor;
|
34
|
+
}
|
35
|
+
function _defineProperty(obj, key, value) {
|
36
|
+
if (key in obj) {
|
37
|
+
Object.defineProperty(obj, key, {
|
38
|
+
value,
|
39
|
+
enumerable: true,
|
40
|
+
configurable: true,
|
41
|
+
writable: true
|
42
|
+
});
|
43
|
+
} else {
|
44
|
+
obj[key] = value;
|
45
|
+
}
|
46
|
+
return obj;
|
47
|
+
}
|
48
|
+
function ownKeys(object, enumerableOnly) {
|
49
|
+
var keys = Object.keys(object);
|
50
|
+
if (Object.getOwnPropertySymbols) {
|
51
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
52
|
+
if (enumerableOnly)
|
53
|
+
symbols = symbols.filter(function(sym) {
|
54
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
55
|
+
});
|
56
|
+
keys.push.apply(keys, symbols);
|
57
|
+
}
|
58
|
+
return keys;
|
59
|
+
}
|
60
|
+
function _objectSpread2(target) {
|
61
|
+
for (var i = 1; i < arguments.length; i++) {
|
62
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
63
|
+
if (i % 2) {
|
64
|
+
ownKeys(Object(source), true).forEach(function(key) {
|
65
|
+
_defineProperty(target, key, source[key]);
|
66
|
+
});
|
67
|
+
} else if (Object.getOwnPropertyDescriptors) {
|
68
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
69
|
+
} else {
|
70
|
+
ownKeys(Object(source)).forEach(function(key) {
|
71
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
72
|
+
});
|
73
|
+
}
|
74
|
+
}
|
75
|
+
return target;
|
76
|
+
}
|
77
|
+
function _slicedToArray(arr, i) {
|
78
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
79
|
+
}
|
80
|
+
function _toConsumableArray(arr) {
|
81
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
82
|
+
}
|
83
|
+
function _arrayWithoutHoles(arr) {
|
84
|
+
if (Array.isArray(arr))
|
85
|
+
return _arrayLikeToArray(arr);
|
86
|
+
}
|
87
|
+
function _arrayWithHoles(arr) {
|
88
|
+
if (Array.isArray(arr))
|
89
|
+
return arr;
|
90
|
+
}
|
91
|
+
function _iterableToArray(iter) {
|
92
|
+
if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter))
|
93
|
+
return Array.from(iter);
|
94
|
+
}
|
95
|
+
function _iterableToArrayLimit(arr, i) {
|
96
|
+
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr)))
|
97
|
+
return;
|
98
|
+
var _arr = [];
|
99
|
+
var _n = true;
|
100
|
+
var _d = false;
|
101
|
+
var _e = void 0;
|
102
|
+
try {
|
103
|
+
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
104
|
+
_arr.push(_s.value);
|
105
|
+
if (i && _arr.length === i)
|
106
|
+
break;
|
107
|
+
}
|
108
|
+
} catch (err) {
|
109
|
+
_d = true;
|
110
|
+
_e = err;
|
111
|
+
} finally {
|
112
|
+
try {
|
113
|
+
if (!_n && _i["return"] != null)
|
114
|
+
_i["return"]();
|
115
|
+
} finally {
|
116
|
+
if (_d)
|
117
|
+
throw _e;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
return _arr;
|
121
|
+
}
|
122
|
+
function _unsupportedIterableToArray(o, minLen) {
|
123
|
+
if (!o)
|
124
|
+
return;
|
125
|
+
if (typeof o === "string")
|
126
|
+
return _arrayLikeToArray(o, minLen);
|
127
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
128
|
+
if (n === "Object" && o.constructor)
|
129
|
+
n = o.constructor.name;
|
130
|
+
if (n === "Map" || n === "Set")
|
131
|
+
return Array.from(n);
|
132
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
133
|
+
return _arrayLikeToArray(o, minLen);
|
134
|
+
}
|
135
|
+
function _arrayLikeToArray(arr, len) {
|
136
|
+
if (len == null || len > arr.length)
|
137
|
+
len = arr.length;
|
138
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
139
|
+
arr2[i] = arr[i];
|
140
|
+
return arr2;
|
141
|
+
}
|
142
|
+
function _nonIterableSpread() {
|
143
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
144
|
+
}
|
145
|
+
function _nonIterableRest() {
|
146
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
147
|
+
}
|
148
|
+
var objectTag = "[object Object]";
|
149
|
+
function isHostObject(value) {
|
150
|
+
var result = false;
|
151
|
+
if (value != null && typeof value.toString != "function") {
|
152
|
+
try {
|
153
|
+
result = !!(value + "");
|
154
|
+
} catch (e) {
|
155
|
+
}
|
156
|
+
}
|
157
|
+
return result;
|
158
|
+
}
|
159
|
+
function overArg(func, transform) {
|
160
|
+
return function(arg) {
|
161
|
+
return func(transform(arg));
|
162
|
+
};
|
163
|
+
}
|
164
|
+
var funcProto = Function.prototype, objectProto = Object.prototype;
|
165
|
+
var funcToString = funcProto.toString;
|
166
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
167
|
+
var objectCtorString = funcToString.call(Object);
|
168
|
+
var objectToString = objectProto.toString;
|
169
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
170
|
+
function isObjectLike(value) {
|
171
|
+
return !!value && typeof value == "object";
|
172
|
+
}
|
173
|
+
function isPlainObject(value) {
|
174
|
+
if (!isObjectLike(value) || objectToString.call(value) != objectTag || isHostObject(value)) {
|
175
|
+
return false;
|
176
|
+
}
|
177
|
+
var proto = getPrototype(value);
|
178
|
+
if (proto === null) {
|
179
|
+
return true;
|
180
|
+
}
|
181
|
+
var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor;
|
182
|
+
return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
|
183
|
+
}
|
184
|
+
var lodash_isplainobject = isPlainObject;
|
185
|
+
var _uppercasePattern = /([A-Z])/g;
|
186
|
+
var msPattern = /^ms-/;
|
187
|
+
function hyphenate(string) {
|
188
|
+
return string.replace(_uppercasePattern, "-$1").toLowerCase();
|
189
|
+
}
|
190
|
+
function hyphenateStyleName(string) {
|
191
|
+
return hyphenate(string).replace(msPattern, "-ms-");
|
192
|
+
}
|
193
|
+
var hyphenateStyleName_1 = hyphenateStyleName;
|
194
|
+
var objToCss = function objToCss2(obj, prevKey) {
|
195
|
+
var css2 = Object.keys(obj).map(function(key) {
|
196
|
+
if (lodash_isplainobject(obj[key]))
|
197
|
+
return objToCss2(obj[key], key);
|
198
|
+
return "".concat(hyphenateStyleName_1(key), ": ").concat(obj[key], ";");
|
199
|
+
}).join(" ");
|
200
|
+
return prevKey ? "".concat(prevKey, " {\n ").concat(css2, "\n}") : css2;
|
201
|
+
};
|
202
|
+
var flatten = function flatten2(chunks, executionContext) {
|
203
|
+
return chunks.reduce(function(ruleSet, chunk) {
|
204
|
+
if (chunk === void 0 || chunk === null || chunk === false || chunk === "")
|
205
|
+
return ruleSet;
|
206
|
+
if (Array.isArray(chunk))
|
207
|
+
return [].concat(_toConsumableArray(ruleSet), _toConsumableArray(flatten2(chunk, executionContext)));
|
208
|
+
if (typeof chunk === "function") {
|
209
|
+
return executionContext ? ruleSet.concat.apply(ruleSet, _toConsumableArray(flatten2([chunk(executionContext)], executionContext))) : ruleSet.concat(chunk);
|
210
|
+
}
|
211
|
+
return ruleSet.concat(lodash_isplainobject(chunk) ? objToCss(chunk) : chunk.toString());
|
212
|
+
}, []);
|
213
|
+
};
|
214
|
+
var css = function(rules) {
|
215
|
+
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
216
|
+
interpolations[_key - 1] = arguments[_key];
|
217
|
+
}
|
218
|
+
return flatten(interleave(rules, interpolations));
|
219
|
+
};
|
220
|
+
function last(arr) {
|
221
|
+
return arr[arr.length - 1];
|
222
|
+
}
|
223
|
+
function sheetForTag(tag) {
|
224
|
+
for (var i = 0; i < document.styleSheets.length; i++) {
|
225
|
+
if (document.styleSheets[i].ownerNode === tag) {
|
226
|
+
return document.styleSheets[i];
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
var isDev = function(x) {
|
231
|
+
return x === "development" || !x;
|
232
|
+
}("development");
|
233
|
+
var isTest = false;
|
234
|
+
var isBrowser = typeof document !== "undefined" && !isTest;
|
235
|
+
var oldIE = function() {
|
236
|
+
if (isBrowser) {
|
237
|
+
var div = document.createElement("div");
|
238
|
+
div.innerHTML = "<!--[if lt IE 10]><i></i><![endif]-->";
|
239
|
+
return div.getElementsByTagName("i").length === 1;
|
240
|
+
}
|
241
|
+
}();
|
242
|
+
function makeStyleTag() {
|
243
|
+
var tag = document.createElement("style");
|
244
|
+
tag.type = "text/css";
|
245
|
+
tag.appendChild(document.createTextNode(""));
|
246
|
+
(document.head || document.getElementsByTagName("head")[0]).appendChild(tag);
|
247
|
+
return tag;
|
248
|
+
}
|
249
|
+
var StyleSheet = function() {
|
250
|
+
function StyleSheet2() {
|
251
|
+
var _ref = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _ref$speedy = _ref.speedy, speedy = _ref$speedy === void 0 ? !isDev && !isTest : _ref$speedy, _ref$maxLength = _ref.maxLength, maxLength = _ref$maxLength === void 0 ? isBrowser && oldIE ? 4e3 : 65e3 : _ref$maxLength;
|
252
|
+
_classCallCheck(this, StyleSheet2);
|
253
|
+
this.isSpeedy = speedy;
|
254
|
+
this.sheet = void 0;
|
255
|
+
this.tags = [];
|
256
|
+
this.maxLength = maxLength;
|
257
|
+
this.ctr = 0;
|
258
|
+
}
|
259
|
+
_createClass(StyleSheet2, [{
|
260
|
+
key: "inject",
|
261
|
+
value: function inject2() {
|
262
|
+
var _this = this;
|
263
|
+
if (this.injected) {
|
264
|
+
throw new Error("already injected stylesheet!");
|
265
|
+
}
|
266
|
+
if (isBrowser) {
|
267
|
+
this.tags[0] = makeStyleTag();
|
268
|
+
this.sheet = sheetForTag(this.tags[0]);
|
269
|
+
} else {
|
270
|
+
this.sheet = {
|
271
|
+
cssRules: [],
|
272
|
+
insertRule: function insertRule(rule) {
|
273
|
+
var serverRule = {
|
274
|
+
cssText: rule
|
275
|
+
};
|
276
|
+
_this.sheet.cssRules.push(serverRule);
|
277
|
+
return {
|
278
|
+
serverRule,
|
279
|
+
appendRule: function appendRule(newCss) {
|
280
|
+
return serverRule.cssText += newCss;
|
281
|
+
}
|
282
|
+
};
|
283
|
+
}
|
284
|
+
};
|
285
|
+
}
|
286
|
+
this.injected = true;
|
287
|
+
}
|
288
|
+
}, {
|
289
|
+
key: "speedy",
|
290
|
+
value: function speedy(bool) {
|
291
|
+
if (this.ctr !== 0) {
|
292
|
+
throw new Error("cannot change speedy mode after inserting any rule to sheet. Either call speedy(".concat(bool, ") earlier in your app, or call flush() before speedy(").concat(bool, ")"));
|
293
|
+
}
|
294
|
+
this.isSpeedy = !!bool;
|
295
|
+
}
|
296
|
+
}, {
|
297
|
+
key: "_insert",
|
298
|
+
value: function _insert(rule) {
|
299
|
+
try {
|
300
|
+
this.sheet.insertRule(rule, this.sheet.cssRules.length);
|
301
|
+
} catch (e) {
|
302
|
+
if (isDev) {
|
303
|
+
console.warn("whoops, illegal rule inserted", rule);
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
307
|
+
}, {
|
308
|
+
key: "insert",
|
309
|
+
value: function insert(rule) {
|
310
|
+
var insertedRule;
|
311
|
+
if (isBrowser) {
|
312
|
+
if (this.isSpeedy && this.sheet.insertRule) {
|
313
|
+
this._insert(rule);
|
314
|
+
} else {
|
315
|
+
var textNode = document.createTextNode(rule);
|
316
|
+
last(this.tags).appendChild(textNode);
|
317
|
+
insertedRule = {
|
318
|
+
textNode,
|
319
|
+
appendRule: function appendRule(newCss) {
|
320
|
+
return textNode.appendData(newCss);
|
321
|
+
}
|
322
|
+
};
|
323
|
+
if (!this.isSpeedy) {
|
324
|
+
this.sheet = sheetForTag(last(this.tags));
|
325
|
+
}
|
326
|
+
}
|
327
|
+
} else {
|
328
|
+
insertedRule = this.sheet.insertRule(rule);
|
329
|
+
}
|
330
|
+
this.ctr++;
|
331
|
+
if (isBrowser && this.ctr % this.maxLength === 0) {
|
332
|
+
this.tags.push(makeStyleTag());
|
333
|
+
this.sheet = sheetForTag(last(this.tags));
|
334
|
+
}
|
335
|
+
return insertedRule;
|
336
|
+
}
|
337
|
+
}, {
|
338
|
+
key: "flush",
|
339
|
+
value: function flush() {
|
340
|
+
if (isBrowser) {
|
341
|
+
this.tags.forEach(function(tag) {
|
342
|
+
return tag.parentNode.removeChild(tag);
|
343
|
+
});
|
344
|
+
this.tags = [];
|
345
|
+
this.sheet = null;
|
346
|
+
this.ctr = 0;
|
347
|
+
} else {
|
348
|
+
this.sheet.cssRules = [];
|
349
|
+
}
|
350
|
+
this.injected = false;
|
351
|
+
}
|
352
|
+
}, {
|
353
|
+
key: "rules",
|
354
|
+
value: function rules() {
|
355
|
+
if (!isBrowser) {
|
356
|
+
return this.sheet.cssRules;
|
357
|
+
}
|
358
|
+
var arr = [];
|
359
|
+
this.tags.forEach(function(tag) {
|
360
|
+
return arr.splice.apply(arr, [arr.length, 0].concat(_toConsumableArray(Array.from(sheetForTag(tag).cssRules))));
|
361
|
+
});
|
362
|
+
return arr;
|
363
|
+
}
|
364
|
+
}]);
|
365
|
+
return StyleSheet2;
|
366
|
+
}();
|
367
|
+
var StyleSheet$1 = function() {
|
368
|
+
function StyleSheet$12() {
|
369
|
+
_classCallCheck(this, StyleSheet$12);
|
370
|
+
this.globalStyleSheet = new StyleSheet({
|
371
|
+
speedy: false
|
372
|
+
});
|
373
|
+
this.componentStyleSheet = new StyleSheet({
|
374
|
+
speedy: false,
|
375
|
+
maxLength: 40
|
376
|
+
});
|
377
|
+
}
|
378
|
+
_createClass(StyleSheet$12, [{
|
379
|
+
key: "inject",
|
380
|
+
value: function inject2() {
|
381
|
+
this.globalStyleSheet.inject();
|
382
|
+
this.componentStyleSheet.inject();
|
383
|
+
}
|
384
|
+
}, {
|
385
|
+
key: "flush",
|
386
|
+
value: function flush() {
|
387
|
+
if (this.globalStyleSheet.sheet)
|
388
|
+
this.globalStyleSheet.flush();
|
389
|
+
if (this.componentStyleSheet.sheet)
|
390
|
+
this.componentStyleSheet.flush();
|
391
|
+
}
|
392
|
+
}, {
|
393
|
+
key: "insert",
|
394
|
+
value: function insert(rule) {
|
395
|
+
var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
396
|
+
global: false
|
397
|
+
};
|
398
|
+
var sheet = opts.global ? this.globalStyleSheet : this.componentStyleSheet;
|
399
|
+
return sheet.insert(rule);
|
400
|
+
}
|
401
|
+
}, {
|
402
|
+
key: "rules",
|
403
|
+
value: function rules() {
|
404
|
+
return this.globalStyleSheet.rules().concat(this.componentStyleSheet.rules());
|
405
|
+
}
|
406
|
+
}, {
|
407
|
+
key: "injected",
|
408
|
+
get: function get() {
|
409
|
+
return this.globalStyleSheet.injected && this.componentStyleSheet.injected;
|
410
|
+
}
|
411
|
+
}]);
|
412
|
+
return StyleSheet$12;
|
413
|
+
}();
|
414
|
+
var styleSheet = new StyleSheet$1();
|
415
|
+
function unwrapExports(x) {
|
416
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
417
|
+
}
|
418
|
+
function createCommonjsModule(fn, module) {
|
419
|
+
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
420
|
+
}
|
421
|
+
var hash = createCommonjsModule(function(module, exports) {
|
422
|
+
Object.defineProperty(exports, "__esModule", {
|
423
|
+
value: true
|
424
|
+
});
|
425
|
+
exports.default = doHash;
|
426
|
+
function doHash(str, seed) {
|
427
|
+
var m = 1540483477;
|
428
|
+
var r = 24;
|
429
|
+
var h2 = seed ^ str.length;
|
430
|
+
var length = str.length;
|
431
|
+
var currentIndex = 0;
|
432
|
+
while (length >= 4) {
|
433
|
+
var k = UInt32(str, currentIndex);
|
434
|
+
k = Umul32(k, m);
|
435
|
+
k ^= k >>> r;
|
436
|
+
k = Umul32(k, m);
|
437
|
+
h2 = Umul32(h2, m);
|
438
|
+
h2 ^= k;
|
439
|
+
currentIndex += 4;
|
440
|
+
length -= 4;
|
441
|
+
}
|
442
|
+
switch (length) {
|
443
|
+
case 3:
|
444
|
+
h2 ^= UInt16(str, currentIndex);
|
445
|
+
h2 ^= str.charCodeAt(currentIndex + 2) << 16;
|
446
|
+
h2 = Umul32(h2, m);
|
447
|
+
break;
|
448
|
+
case 2:
|
449
|
+
h2 ^= UInt16(str, currentIndex);
|
450
|
+
h2 = Umul32(h2, m);
|
451
|
+
break;
|
452
|
+
case 1:
|
453
|
+
h2 ^= str.charCodeAt(currentIndex);
|
454
|
+
h2 = Umul32(h2, m);
|
455
|
+
break;
|
456
|
+
}
|
457
|
+
h2 ^= h2 >>> 13;
|
458
|
+
h2 = Umul32(h2, m);
|
459
|
+
h2 ^= h2 >>> 15;
|
460
|
+
return h2 >>> 0;
|
461
|
+
}
|
462
|
+
function UInt32(str, pos) {
|
463
|
+
return str.charCodeAt(pos++) + (str.charCodeAt(pos++) << 8) + (str.charCodeAt(pos++) << 16) + (str.charCodeAt(pos) << 24);
|
464
|
+
}
|
465
|
+
function UInt16(str, pos) {
|
466
|
+
return str.charCodeAt(pos++) + (str.charCodeAt(pos++) << 8);
|
467
|
+
}
|
468
|
+
function Umul32(n, m) {
|
469
|
+
n = n | 0;
|
470
|
+
m = m | 0;
|
471
|
+
var nlo = n & 65535;
|
472
|
+
var nhi = n >>> 16;
|
473
|
+
var res = nlo * m + ((nhi * m & 65535) << 16) | 0;
|
474
|
+
return res;
|
475
|
+
}
|
476
|
+
});
|
477
|
+
var hashStr = unwrapExports(hash);
|
478
|
+
var stylis = createCommonjsModule(function(module, exports) {
|
479
|
+
(function(factory) {
|
480
|
+
module["exports"] = factory(null);
|
481
|
+
})(
|
482
|
+
/** @param {*=} options */
|
483
|
+
function factory(options) {
|
484
|
+
var nullptn = /^\0+/g;
|
485
|
+
var formatptn = /[\0\r\f]/g;
|
486
|
+
var colonptn = /: */g;
|
487
|
+
var cursorptn = /zoo|gra/;
|
488
|
+
var transformptn = /([,: ])(transform)/g;
|
489
|
+
var animationptn = /,+\s*(?![^(]*[)])/g;
|
490
|
+
var propertiesptn = / +\s*(?![^(]*[)])/g;
|
491
|
+
var elementptn = / *[\0] */g;
|
492
|
+
var selectorptn = /,\r+?/g;
|
493
|
+
var andptn = /([\t\r\n ])*\f?&/g;
|
494
|
+
var escapeptn = /:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g;
|
495
|
+
var invalidptn = /\W+/g;
|
496
|
+
var keyframeptn = /@(k\w+)\s*(\S*)\s*/;
|
497
|
+
var plcholdrptn = /::(place)/g;
|
498
|
+
var readonlyptn = /:(read-only)/g;
|
499
|
+
var beforeptn = /\s+(?=[{\];=:>])/g;
|
500
|
+
var afterptn = /([[}=:>])\s+/g;
|
501
|
+
var tailptn = /(\{[^{]+?);(?=\})/g;
|
502
|
+
var whiteptn = /\s{2,}/g;
|
503
|
+
var pseudoptn = /([^\(])(:+) */g;
|
504
|
+
var writingptn = /[svh]\w+-[tblr]{2}/;
|
505
|
+
var supportsptn = /\(\s*(.*)\s*\)/g;
|
506
|
+
var propertyptn = /([\s\S]*?);/g;
|
507
|
+
var selfptn = /-self|flex-/g;
|
508
|
+
var pseudofmt = /[^]*?(:[rp][el]a[\w-]+)[^]*/;
|
509
|
+
var dimensionptn = /stretch|:\s*\w+\-(?:conte|avail)/;
|
510
|
+
var imgsrcptn = /([^-])(image-set\()/;
|
511
|
+
var webkit = "-webkit-";
|
512
|
+
var moz = "-moz-";
|
513
|
+
var ms = "-ms-";
|
514
|
+
var SEMICOLON = 59;
|
515
|
+
var CLOSEBRACES = 125;
|
516
|
+
var OPENBRACES = 123;
|
517
|
+
var OPENPARENTHESES = 40;
|
518
|
+
var CLOSEPARENTHESES = 41;
|
519
|
+
var OPENBRACKET = 91;
|
520
|
+
var CLOSEBRACKET = 93;
|
521
|
+
var NEWLINE = 10;
|
522
|
+
var CARRIAGE = 13;
|
523
|
+
var TAB = 9;
|
524
|
+
var AT = 64;
|
525
|
+
var SPACE = 32;
|
526
|
+
var AND = 38;
|
527
|
+
var DASH = 45;
|
528
|
+
var UNDERSCORE = 95;
|
529
|
+
var STAR = 42;
|
530
|
+
var COMMA = 44;
|
531
|
+
var COLON = 58;
|
532
|
+
var SINGLEQUOTE = 39;
|
533
|
+
var DOUBLEQUOTE = 34;
|
534
|
+
var FOWARDSLASH = 47;
|
535
|
+
var GREATERTHAN = 62;
|
536
|
+
var PLUS = 43;
|
537
|
+
var TILDE = 126;
|
538
|
+
var NULL = 0;
|
539
|
+
var FORMFEED = 12;
|
540
|
+
var VERTICALTAB = 11;
|
541
|
+
var KEYFRAME = 107;
|
542
|
+
var MEDIA = 109;
|
543
|
+
var SUPPORTS = 115;
|
544
|
+
var PLACEHOLDER = 112;
|
545
|
+
var READONLY = 111;
|
546
|
+
var IMPORT = 105;
|
547
|
+
var CHARSET = 99;
|
548
|
+
var DOCUMENT = 100;
|
549
|
+
var PAGE = 112;
|
550
|
+
var column = 1;
|
551
|
+
var line = 1;
|
552
|
+
var pattern = 0;
|
553
|
+
var cascade = 1;
|
554
|
+
var prefix = 1;
|
555
|
+
var escape = 1;
|
556
|
+
var compress = 0;
|
557
|
+
var semicolon = 0;
|
558
|
+
var preserve = 0;
|
559
|
+
var array = [];
|
560
|
+
var plugins = [];
|
561
|
+
var plugged = 0;
|
562
|
+
var should = null;
|
563
|
+
var POSTS = -2;
|
564
|
+
var PREPS = -1;
|
565
|
+
var UNKWN = 0;
|
566
|
+
var PROPS = 1;
|
567
|
+
var BLCKS = 2;
|
568
|
+
var ATRUL = 3;
|
569
|
+
var unkwn = 0;
|
570
|
+
var keyed = 1;
|
571
|
+
var key = "";
|
572
|
+
var nscopealt = "";
|
573
|
+
var nscope = "";
|
574
|
+
function compile(parent, current, body, id, depth) {
|
575
|
+
var bracket = 0;
|
576
|
+
var comment = 0;
|
577
|
+
var parentheses = 0;
|
578
|
+
var quote = 0;
|
579
|
+
var first = 0;
|
580
|
+
var second = 0;
|
581
|
+
var code = 0;
|
582
|
+
var tail = 0;
|
583
|
+
var trail = 0;
|
584
|
+
var peak = 0;
|
585
|
+
var counter = 0;
|
586
|
+
var context = 0;
|
587
|
+
var atrule = 0;
|
588
|
+
var pseudo = 0;
|
589
|
+
var caret = 0;
|
590
|
+
var format = 0;
|
591
|
+
var insert = 0;
|
592
|
+
var invert = 0;
|
593
|
+
var length = 0;
|
594
|
+
var eof = body.length;
|
595
|
+
var eol = eof - 1;
|
596
|
+
var char = "";
|
597
|
+
var chars2 = "";
|
598
|
+
var child = "";
|
599
|
+
var out = "";
|
600
|
+
var children = "";
|
601
|
+
var flat = "";
|
602
|
+
var selector;
|
603
|
+
var result;
|
604
|
+
while (caret < eof) {
|
605
|
+
code = body.charCodeAt(caret);
|
606
|
+
if (caret === eol) {
|
607
|
+
if (comment + quote + parentheses + bracket !== 0) {
|
608
|
+
if (comment !== 0) {
|
609
|
+
code = comment === FOWARDSLASH ? NEWLINE : FOWARDSLASH;
|
610
|
+
}
|
611
|
+
quote = parentheses = bracket = 0;
|
612
|
+
eof++;
|
613
|
+
eol++;
|
614
|
+
}
|
615
|
+
}
|
616
|
+
if (comment + quote + parentheses + bracket === 0) {
|
617
|
+
if (caret === eol) {
|
618
|
+
if (format > 0) {
|
619
|
+
chars2 = chars2.replace(formatptn, "");
|
620
|
+
}
|
621
|
+
if (chars2.trim().length > 0) {
|
622
|
+
switch (code) {
|
623
|
+
case SPACE:
|
624
|
+
case TAB:
|
625
|
+
case SEMICOLON:
|
626
|
+
case CARRIAGE:
|
627
|
+
case NEWLINE: {
|
628
|
+
break;
|
629
|
+
}
|
630
|
+
default: {
|
631
|
+
chars2 += body.charAt(caret);
|
632
|
+
}
|
633
|
+
}
|
634
|
+
code = SEMICOLON;
|
635
|
+
}
|
636
|
+
}
|
637
|
+
if (insert === 1) {
|
638
|
+
switch (code) {
|
639
|
+
case OPENBRACES:
|
640
|
+
case CLOSEBRACES:
|
641
|
+
case SEMICOLON:
|
642
|
+
case DOUBLEQUOTE:
|
643
|
+
case SINGLEQUOTE:
|
644
|
+
case OPENPARENTHESES:
|
645
|
+
case CLOSEPARENTHESES:
|
646
|
+
case COMMA: {
|
647
|
+
insert = 0;
|
648
|
+
}
|
649
|
+
case TAB:
|
650
|
+
case CARRIAGE:
|
651
|
+
case NEWLINE:
|
652
|
+
case SPACE: {
|
653
|
+
break;
|
654
|
+
}
|
655
|
+
default: {
|
656
|
+
insert = 0;
|
657
|
+
length = caret;
|
658
|
+
first = code;
|
659
|
+
caret--;
|
660
|
+
code = SEMICOLON;
|
661
|
+
while (length < eof) {
|
662
|
+
switch (body.charCodeAt(length++)) {
|
663
|
+
case NEWLINE:
|
664
|
+
case CARRIAGE:
|
665
|
+
case SEMICOLON: {
|
666
|
+
++caret;
|
667
|
+
code = first;
|
668
|
+
length = eof;
|
669
|
+
break;
|
670
|
+
}
|
671
|
+
case COLON: {
|
672
|
+
if (format > 0) {
|
673
|
+
++caret;
|
674
|
+
code = first;
|
675
|
+
}
|
676
|
+
}
|
677
|
+
case OPENBRACES: {
|
678
|
+
length = eof;
|
679
|
+
}
|
680
|
+
}
|
681
|
+
}
|
682
|
+
}
|
683
|
+
}
|
684
|
+
}
|
685
|
+
switch (code) {
|
686
|
+
case OPENBRACES: {
|
687
|
+
chars2 = chars2.trim();
|
688
|
+
first = chars2.charCodeAt(0);
|
689
|
+
counter = 1;
|
690
|
+
length = ++caret;
|
691
|
+
while (caret < eof) {
|
692
|
+
switch (code = body.charCodeAt(caret)) {
|
693
|
+
case OPENBRACES: {
|
694
|
+
counter++;
|
695
|
+
break;
|
696
|
+
}
|
697
|
+
case CLOSEBRACES: {
|
698
|
+
counter--;
|
699
|
+
break;
|
700
|
+
}
|
701
|
+
case FOWARDSLASH: {
|
702
|
+
switch (second = body.charCodeAt(caret + 1)) {
|
703
|
+
case STAR:
|
704
|
+
case FOWARDSLASH: {
|
705
|
+
caret = delimited(second, caret, eol, body);
|
706
|
+
}
|
707
|
+
}
|
708
|
+
break;
|
709
|
+
}
|
710
|
+
case OPENBRACKET: {
|
711
|
+
code++;
|
712
|
+
}
|
713
|
+
case OPENPARENTHESES: {
|
714
|
+
code++;
|
715
|
+
}
|
716
|
+
case DOUBLEQUOTE:
|
717
|
+
case SINGLEQUOTE: {
|
718
|
+
while (caret++ < eol) {
|
719
|
+
if (body.charCodeAt(caret) === code) {
|
720
|
+
break;
|
721
|
+
}
|
722
|
+
}
|
723
|
+
}
|
724
|
+
}
|
725
|
+
if (counter === 0) {
|
726
|
+
break;
|
727
|
+
}
|
728
|
+
caret++;
|
729
|
+
}
|
730
|
+
child = body.substring(length, caret);
|
731
|
+
if (first === NULL) {
|
732
|
+
first = (chars2 = chars2.replace(nullptn, "").trim()).charCodeAt(0);
|
733
|
+
}
|
734
|
+
switch (first) {
|
735
|
+
case AT: {
|
736
|
+
if (format > 0) {
|
737
|
+
chars2 = chars2.replace(formatptn, "");
|
738
|
+
}
|
739
|
+
second = chars2.charCodeAt(1);
|
740
|
+
switch (second) {
|
741
|
+
case DOCUMENT:
|
742
|
+
case MEDIA:
|
743
|
+
case SUPPORTS:
|
744
|
+
case DASH: {
|
745
|
+
selector = current;
|
746
|
+
break;
|
747
|
+
}
|
748
|
+
default: {
|
749
|
+
selector = array;
|
750
|
+
}
|
751
|
+
}
|
752
|
+
child = compile(current, selector, child, second, depth + 1);
|
753
|
+
length = child.length;
|
754
|
+
if (preserve > 0 && length === 0) {
|
755
|
+
length = chars2.length;
|
756
|
+
}
|
757
|
+
if (plugged > 0) {
|
758
|
+
selector = select(array, chars2, invert);
|
759
|
+
result = proxy(ATRUL, child, selector, current, line, column, length, second, depth, id);
|
760
|
+
chars2 = selector.join("");
|
761
|
+
if (result !== void 0) {
|
762
|
+
if ((length = (child = result.trim()).length) === 0) {
|
763
|
+
second = 0;
|
764
|
+
child = "";
|
765
|
+
}
|
766
|
+
}
|
767
|
+
}
|
768
|
+
if (length > 0) {
|
769
|
+
switch (second) {
|
770
|
+
case SUPPORTS: {
|
771
|
+
chars2 = chars2.replace(supportsptn, supports);
|
772
|
+
}
|
773
|
+
case DOCUMENT:
|
774
|
+
case MEDIA:
|
775
|
+
case DASH: {
|
776
|
+
child = chars2 + "{" + child + "}";
|
777
|
+
break;
|
778
|
+
}
|
779
|
+
case KEYFRAME: {
|
780
|
+
chars2 = chars2.replace(keyframeptn, "$1 $2" + (keyed > 0 ? key : ""));
|
781
|
+
child = chars2 + "{" + child + "}";
|
782
|
+
if (prefix === 1 || prefix === 2 && vendor("@" + child, 3)) {
|
783
|
+
child = "@" + webkit + child + "@" + child;
|
784
|
+
} else {
|
785
|
+
child = "@" + child;
|
786
|
+
}
|
787
|
+
break;
|
788
|
+
}
|
789
|
+
default: {
|
790
|
+
child = chars2 + child;
|
791
|
+
if (id === PAGE) {
|
792
|
+
child = (out += child, "");
|
793
|
+
}
|
794
|
+
}
|
795
|
+
}
|
796
|
+
} else {
|
797
|
+
child = "";
|
798
|
+
}
|
799
|
+
break;
|
800
|
+
}
|
801
|
+
default: {
|
802
|
+
child = compile(current, select(current, chars2, invert), child, id, depth + 1);
|
803
|
+
}
|
804
|
+
}
|
805
|
+
children += child;
|
806
|
+
context = 0;
|
807
|
+
insert = 0;
|
808
|
+
pseudo = 0;
|
809
|
+
format = 0;
|
810
|
+
invert = 0;
|
811
|
+
atrule = 0;
|
812
|
+
chars2 = "";
|
813
|
+
child = "";
|
814
|
+
code = body.charCodeAt(++caret);
|
815
|
+
break;
|
816
|
+
}
|
817
|
+
case CLOSEBRACES:
|
818
|
+
case SEMICOLON: {
|
819
|
+
chars2 = (format > 0 ? chars2.replace(formatptn, "") : chars2).trim();
|
820
|
+
if ((length = chars2.length) > 1) {
|
821
|
+
if (pseudo === 0) {
|
822
|
+
first = chars2.charCodeAt(0);
|
823
|
+
if (first === DASH || first > 96 && first < 123) {
|
824
|
+
length = (chars2 = chars2.replace(" ", ":")).length;
|
825
|
+
}
|
826
|
+
}
|
827
|
+
if (plugged > 0) {
|
828
|
+
if ((result = proxy(PROPS, chars2, current, parent, line, column, out.length, id, depth, id)) !== void 0) {
|
829
|
+
if ((length = (chars2 = result.trim()).length) === 0) {
|
830
|
+
chars2 = "\0\0";
|
831
|
+
}
|
832
|
+
}
|
833
|
+
}
|
834
|
+
first = chars2.charCodeAt(0);
|
835
|
+
second = chars2.charCodeAt(1);
|
836
|
+
switch (first) {
|
837
|
+
case NULL: {
|
838
|
+
break;
|
839
|
+
}
|
840
|
+
case AT: {
|
841
|
+
if (second === IMPORT || second === CHARSET) {
|
842
|
+
flat += chars2 + body.charAt(caret);
|
843
|
+
break;
|
844
|
+
}
|
845
|
+
}
|
846
|
+
default: {
|
847
|
+
if (chars2.charCodeAt(length - 1) === COLON) {
|
848
|
+
break;
|
849
|
+
}
|
850
|
+
out += property(chars2, first, second, chars2.charCodeAt(2));
|
851
|
+
}
|
852
|
+
}
|
853
|
+
}
|
854
|
+
context = 0;
|
855
|
+
insert = 0;
|
856
|
+
pseudo = 0;
|
857
|
+
format = 0;
|
858
|
+
invert = 0;
|
859
|
+
chars2 = "";
|
860
|
+
code = body.charCodeAt(++caret);
|
861
|
+
break;
|
862
|
+
}
|
863
|
+
}
|
864
|
+
}
|
865
|
+
switch (code) {
|
866
|
+
case CARRIAGE:
|
867
|
+
case NEWLINE: {
|
868
|
+
if (comment + quote + parentheses + bracket + semicolon === 0) {
|
869
|
+
switch (peak) {
|
870
|
+
case CLOSEPARENTHESES:
|
871
|
+
case SINGLEQUOTE:
|
872
|
+
case DOUBLEQUOTE:
|
873
|
+
case AT:
|
874
|
+
case TILDE:
|
875
|
+
case GREATERTHAN:
|
876
|
+
case STAR:
|
877
|
+
case PLUS:
|
878
|
+
case FOWARDSLASH:
|
879
|
+
case DASH:
|
880
|
+
case COLON:
|
881
|
+
case COMMA:
|
882
|
+
case SEMICOLON:
|
883
|
+
case OPENBRACES:
|
884
|
+
case CLOSEBRACES: {
|
885
|
+
break;
|
886
|
+
}
|
887
|
+
default: {
|
888
|
+
if (pseudo > 0) {
|
889
|
+
insert = 1;
|
890
|
+
}
|
891
|
+
}
|
892
|
+
}
|
893
|
+
}
|
894
|
+
if (comment === FOWARDSLASH) {
|
895
|
+
comment = 0;
|
896
|
+
} else if (cascade + context === 0 && id !== KEYFRAME && chars2.length > 0) {
|
897
|
+
format = 1;
|
898
|
+
chars2 += "\0";
|
899
|
+
}
|
900
|
+
if (plugged * unkwn > 0) {
|
901
|
+
proxy(UNKWN, chars2, current, parent, line, column, out.length, id, depth, id);
|
902
|
+
}
|
903
|
+
column = 1;
|
904
|
+
line++;
|
905
|
+
break;
|
906
|
+
}
|
907
|
+
case SEMICOLON:
|
908
|
+
case CLOSEBRACES: {
|
909
|
+
if (comment + quote + parentheses + bracket === 0) {
|
910
|
+
column++;
|
911
|
+
break;
|
912
|
+
}
|
913
|
+
}
|
914
|
+
default: {
|
915
|
+
column++;
|
916
|
+
char = body.charAt(caret);
|
917
|
+
switch (code) {
|
918
|
+
case TAB:
|
919
|
+
case SPACE: {
|
920
|
+
if (quote + bracket + comment === 0) {
|
921
|
+
switch (tail) {
|
922
|
+
case COMMA:
|
923
|
+
case COLON:
|
924
|
+
case TAB:
|
925
|
+
case SPACE: {
|
926
|
+
char = "";
|
927
|
+
break;
|
928
|
+
}
|
929
|
+
default: {
|
930
|
+
if (code !== SPACE) {
|
931
|
+
char = " ";
|
932
|
+
}
|
933
|
+
}
|
934
|
+
}
|
935
|
+
}
|
936
|
+
break;
|
937
|
+
}
|
938
|
+
case NULL: {
|
939
|
+
char = "\\0";
|
940
|
+
break;
|
941
|
+
}
|
942
|
+
case FORMFEED: {
|
943
|
+
char = "\\f";
|
944
|
+
break;
|
945
|
+
}
|
946
|
+
case VERTICALTAB: {
|
947
|
+
char = "\\v";
|
948
|
+
break;
|
949
|
+
}
|
950
|
+
case AND: {
|
951
|
+
if (quote + comment + bracket === 0 && cascade > 0) {
|
952
|
+
invert = 1;
|
953
|
+
format = 1;
|
954
|
+
char = "\f" + char;
|
955
|
+
}
|
956
|
+
break;
|
957
|
+
}
|
958
|
+
case 108: {
|
959
|
+
if (quote + comment + bracket + pattern === 0 && pseudo > 0) {
|
960
|
+
switch (caret - pseudo) {
|
961
|
+
case 2: {
|
962
|
+
if (tail === PLACEHOLDER && body.charCodeAt(caret - 3) === COLON) {
|
963
|
+
pattern = tail;
|
964
|
+
}
|
965
|
+
}
|
966
|
+
case 8: {
|
967
|
+
if (trail === READONLY) {
|
968
|
+
pattern = trail;
|
969
|
+
}
|
970
|
+
}
|
971
|
+
}
|
972
|
+
}
|
973
|
+
break;
|
974
|
+
}
|
975
|
+
case COLON: {
|
976
|
+
if (quote + comment + bracket === 0) {
|
977
|
+
pseudo = caret;
|
978
|
+
}
|
979
|
+
break;
|
980
|
+
}
|
981
|
+
case COMMA: {
|
982
|
+
if (comment + parentheses + quote + bracket === 0) {
|
983
|
+
format = 1;
|
984
|
+
char += "\r";
|
985
|
+
}
|
986
|
+
break;
|
987
|
+
}
|
988
|
+
case DOUBLEQUOTE:
|
989
|
+
case SINGLEQUOTE: {
|
990
|
+
if (comment === 0) {
|
991
|
+
quote = quote === code ? 0 : quote === 0 ? code : quote;
|
992
|
+
}
|
993
|
+
break;
|
994
|
+
}
|
995
|
+
case OPENBRACKET: {
|
996
|
+
if (quote + comment + parentheses === 0) {
|
997
|
+
bracket++;
|
998
|
+
}
|
999
|
+
break;
|
1000
|
+
}
|
1001
|
+
case CLOSEBRACKET: {
|
1002
|
+
if (quote + comment + parentheses === 0) {
|
1003
|
+
bracket--;
|
1004
|
+
}
|
1005
|
+
break;
|
1006
|
+
}
|
1007
|
+
case CLOSEPARENTHESES: {
|
1008
|
+
if (quote + comment + bracket === 0) {
|
1009
|
+
parentheses--;
|
1010
|
+
}
|
1011
|
+
break;
|
1012
|
+
}
|
1013
|
+
case OPENPARENTHESES: {
|
1014
|
+
if (quote + comment + bracket === 0) {
|
1015
|
+
if (context === 0) {
|
1016
|
+
switch (tail * 2 + trail * 3) {
|
1017
|
+
case 533: {
|
1018
|
+
break;
|
1019
|
+
}
|
1020
|
+
default: {
|
1021
|
+
counter = 0;
|
1022
|
+
context = 1;
|
1023
|
+
}
|
1024
|
+
}
|
1025
|
+
}
|
1026
|
+
parentheses++;
|
1027
|
+
}
|
1028
|
+
break;
|
1029
|
+
}
|
1030
|
+
case AT: {
|
1031
|
+
if (comment + parentheses + quote + bracket + pseudo + atrule === 0) {
|
1032
|
+
atrule = 1;
|
1033
|
+
}
|
1034
|
+
break;
|
1035
|
+
}
|
1036
|
+
case STAR:
|
1037
|
+
case FOWARDSLASH: {
|
1038
|
+
if (quote + bracket + parentheses > 0) {
|
1039
|
+
break;
|
1040
|
+
}
|
1041
|
+
switch (comment) {
|
1042
|
+
case 0: {
|
1043
|
+
switch (code * 2 + body.charCodeAt(caret + 1) * 3) {
|
1044
|
+
case 235: {
|
1045
|
+
comment = FOWARDSLASH;
|
1046
|
+
break;
|
1047
|
+
}
|
1048
|
+
case 220: {
|
1049
|
+
length = caret;
|
1050
|
+
comment = STAR;
|
1051
|
+
break;
|
1052
|
+
}
|
1053
|
+
}
|
1054
|
+
break;
|
1055
|
+
}
|
1056
|
+
case STAR: {
|
1057
|
+
if (code === FOWARDSLASH && tail === STAR && length + 2 !== caret) {
|
1058
|
+
if (body.charCodeAt(length + 2) === 33) {
|
1059
|
+
out += body.substring(length, caret + 1);
|
1060
|
+
}
|
1061
|
+
char = "";
|
1062
|
+
comment = 0;
|
1063
|
+
}
|
1064
|
+
}
|
1065
|
+
}
|
1066
|
+
}
|
1067
|
+
}
|
1068
|
+
if (comment === 0) {
|
1069
|
+
if (cascade + quote + bracket + atrule === 0 && id !== KEYFRAME && code !== SEMICOLON) {
|
1070
|
+
switch (code) {
|
1071
|
+
case COMMA:
|
1072
|
+
case TILDE:
|
1073
|
+
case GREATERTHAN:
|
1074
|
+
case PLUS:
|
1075
|
+
case CLOSEPARENTHESES:
|
1076
|
+
case OPENPARENTHESES: {
|
1077
|
+
if (context === 0) {
|
1078
|
+
switch (tail) {
|
1079
|
+
case TAB:
|
1080
|
+
case SPACE:
|
1081
|
+
case NEWLINE:
|
1082
|
+
case CARRIAGE: {
|
1083
|
+
char = char + "\0";
|
1084
|
+
break;
|
1085
|
+
}
|
1086
|
+
default: {
|
1087
|
+
char = "\0" + char + (code === COMMA ? "" : "\0");
|
1088
|
+
}
|
1089
|
+
}
|
1090
|
+
format = 1;
|
1091
|
+
} else {
|
1092
|
+
switch (code) {
|
1093
|
+
case OPENPARENTHESES: {
|
1094
|
+
if (pseudo + 7 === caret && tail === 108) {
|
1095
|
+
pseudo = 0;
|
1096
|
+
}
|
1097
|
+
context = ++counter;
|
1098
|
+
break;
|
1099
|
+
}
|
1100
|
+
case CLOSEPARENTHESES: {
|
1101
|
+
if ((context = --counter) === 0) {
|
1102
|
+
format = 1;
|
1103
|
+
char += "\0";
|
1104
|
+
}
|
1105
|
+
break;
|
1106
|
+
}
|
1107
|
+
}
|
1108
|
+
}
|
1109
|
+
break;
|
1110
|
+
}
|
1111
|
+
case TAB:
|
1112
|
+
case SPACE: {
|
1113
|
+
switch (tail) {
|
1114
|
+
case NULL:
|
1115
|
+
case OPENBRACES:
|
1116
|
+
case CLOSEBRACES:
|
1117
|
+
case SEMICOLON:
|
1118
|
+
case COMMA:
|
1119
|
+
case FORMFEED:
|
1120
|
+
case TAB:
|
1121
|
+
case SPACE:
|
1122
|
+
case NEWLINE:
|
1123
|
+
case CARRIAGE: {
|
1124
|
+
break;
|
1125
|
+
}
|
1126
|
+
default: {
|
1127
|
+
if (context === 0) {
|
1128
|
+
format = 1;
|
1129
|
+
char += "\0";
|
1130
|
+
}
|
1131
|
+
}
|
1132
|
+
}
|
1133
|
+
}
|
1134
|
+
}
|
1135
|
+
}
|
1136
|
+
chars2 += char;
|
1137
|
+
if (code !== SPACE && code !== TAB) {
|
1138
|
+
peak = code;
|
1139
|
+
}
|
1140
|
+
}
|
1141
|
+
}
|
1142
|
+
}
|
1143
|
+
trail = tail;
|
1144
|
+
tail = code;
|
1145
|
+
caret++;
|
1146
|
+
}
|
1147
|
+
length = out.length;
|
1148
|
+
if (preserve > 0) {
|
1149
|
+
if (length === 0 && children.length === 0 && current[0].length === 0 === false) {
|
1150
|
+
if (id !== MEDIA || current.length === 1 && (cascade > 0 ? nscopealt : nscope) === current[0]) {
|
1151
|
+
length = current.join(",").length + 2;
|
1152
|
+
}
|
1153
|
+
}
|
1154
|
+
}
|
1155
|
+
if (length > 0) {
|
1156
|
+
selector = cascade === 0 && id !== KEYFRAME ? isolate(current) : current;
|
1157
|
+
if (plugged > 0) {
|
1158
|
+
result = proxy(BLCKS, out, selector, parent, line, column, length, id, depth, id);
|
1159
|
+
if (result !== void 0 && (out = result).length === 0) {
|
1160
|
+
return flat + out + children;
|
1161
|
+
}
|
1162
|
+
}
|
1163
|
+
out = selector.join(",") + "{" + out + "}";
|
1164
|
+
if (prefix * pattern !== 0) {
|
1165
|
+
if (prefix === 2 && !vendor(out, 2))
|
1166
|
+
pattern = 0;
|
1167
|
+
switch (pattern) {
|
1168
|
+
case READONLY: {
|
1169
|
+
out = out.replace(readonlyptn, ":" + moz + "$1") + out;
|
1170
|
+
break;
|
1171
|
+
}
|
1172
|
+
case PLACEHOLDER: {
|
1173
|
+
out = out.replace(plcholdrptn, "::" + webkit + "input-$1") + out.replace(plcholdrptn, "::" + moz + "$1") + out.replace(plcholdrptn, ":" + ms + "input-$1") + out;
|
1174
|
+
break;
|
1175
|
+
}
|
1176
|
+
}
|
1177
|
+
pattern = 0;
|
1178
|
+
}
|
1179
|
+
}
|
1180
|
+
return flat + out + children;
|
1181
|
+
}
|
1182
|
+
function select(parent, current, invert) {
|
1183
|
+
var selectors = current.trim().split(selectorptn);
|
1184
|
+
var out = selectors;
|
1185
|
+
var length = selectors.length;
|
1186
|
+
var l = parent.length;
|
1187
|
+
switch (l) {
|
1188
|
+
case 0:
|
1189
|
+
case 1: {
|
1190
|
+
for (var i = 0, selector = l === 0 ? "" : parent[0] + " "; i < length; ++i) {
|
1191
|
+
out[i] = scope(selector, out[i], invert, l).trim();
|
1192
|
+
}
|
1193
|
+
break;
|
1194
|
+
}
|
1195
|
+
default: {
|
1196
|
+
for (var i = 0, j = 0, out = []; i < length; ++i) {
|
1197
|
+
for (var k = 0; k < l; ++k) {
|
1198
|
+
out[j++] = scope(parent[k] + " ", selectors[i], invert, l).trim();
|
1199
|
+
}
|
1200
|
+
}
|
1201
|
+
}
|
1202
|
+
}
|
1203
|
+
return out;
|
1204
|
+
}
|
1205
|
+
function scope(parent, current, invert, level) {
|
1206
|
+
var selector = current;
|
1207
|
+
var code = selector.charCodeAt(0);
|
1208
|
+
if (code < 33) {
|
1209
|
+
code = (selector = selector.trim()).charCodeAt(0);
|
1210
|
+
}
|
1211
|
+
switch (code) {
|
1212
|
+
case AND: {
|
1213
|
+
switch (cascade + level) {
|
1214
|
+
case 0:
|
1215
|
+
case 1: {
|
1216
|
+
if (parent.trim().length === 0) {
|
1217
|
+
break;
|
1218
|
+
}
|
1219
|
+
}
|
1220
|
+
default: {
|
1221
|
+
return selector.replace(andptn, "$1" + parent.trim());
|
1222
|
+
}
|
1223
|
+
}
|
1224
|
+
break;
|
1225
|
+
}
|
1226
|
+
case COLON: {
|
1227
|
+
switch (selector.charCodeAt(1)) {
|
1228
|
+
case 103: {
|
1229
|
+
if (escape > 0 && cascade > 0) {
|
1230
|
+
return selector.replace(escapeptn, "$1").replace(andptn, "$1" + nscope);
|
1231
|
+
}
|
1232
|
+
break;
|
1233
|
+
}
|
1234
|
+
default: {
|
1235
|
+
return parent.trim() + selector.replace(andptn, "$1" + parent.trim());
|
1236
|
+
}
|
1237
|
+
}
|
1238
|
+
}
|
1239
|
+
default: {
|
1240
|
+
if (invert * cascade > 0 && selector.indexOf("\f") > 0) {
|
1241
|
+
return selector.replace(andptn, (parent.charCodeAt(0) === COLON ? "" : "$1") + parent.trim());
|
1242
|
+
}
|
1243
|
+
}
|
1244
|
+
}
|
1245
|
+
return parent + selector;
|
1246
|
+
}
|
1247
|
+
function property(input, first, second, third) {
|
1248
|
+
var index = 0;
|
1249
|
+
var out = input + ";";
|
1250
|
+
var hash2 = first * 2 + second * 3 + third * 4;
|
1251
|
+
var cache;
|
1252
|
+
if (hash2 === 944) {
|
1253
|
+
return animation(out);
|
1254
|
+
} else if (prefix === 0 || prefix === 2 && !vendor(out, 1)) {
|
1255
|
+
return out;
|
1256
|
+
}
|
1257
|
+
switch (hash2) {
|
1258
|
+
case 1015: {
|
1259
|
+
return out.charCodeAt(10) === 97 ? webkit + out + out : out;
|
1260
|
+
}
|
1261
|
+
case 951: {
|
1262
|
+
return out.charCodeAt(3) === 116 ? webkit + out + out : out;
|
1263
|
+
}
|
1264
|
+
case 963: {
|
1265
|
+
return out.charCodeAt(5) === 110 ? webkit + out + out : out;
|
1266
|
+
}
|
1267
|
+
case 1009: {
|
1268
|
+
if (out.charCodeAt(4) !== 100) {
|
1269
|
+
break;
|
1270
|
+
}
|
1271
|
+
}
|
1272
|
+
case 969:
|
1273
|
+
case 942: {
|
1274
|
+
return webkit + out + out;
|
1275
|
+
}
|
1276
|
+
case 978: {
|
1277
|
+
return webkit + out + moz + out + out;
|
1278
|
+
}
|
1279
|
+
case 1019:
|
1280
|
+
case 983: {
|
1281
|
+
return webkit + out + moz + out + ms + out + out;
|
1282
|
+
}
|
1283
|
+
case 883: {
|
1284
|
+
if (out.charCodeAt(8) === DASH) {
|
1285
|
+
return webkit + out + out;
|
1286
|
+
}
|
1287
|
+
if (out.indexOf("image-set(", 11) > 0) {
|
1288
|
+
return out.replace(imgsrcptn, "$1" + webkit + "$2") + out;
|
1289
|
+
}
|
1290
|
+
return out;
|
1291
|
+
}
|
1292
|
+
case 932: {
|
1293
|
+
if (out.charCodeAt(4) === DASH) {
|
1294
|
+
switch (out.charCodeAt(5)) {
|
1295
|
+
case 103: {
|
1296
|
+
return webkit + "box-" + out.replace("-grow", "") + webkit + out + ms + out.replace("grow", "positive") + out;
|
1297
|
+
}
|
1298
|
+
case 115: {
|
1299
|
+
return webkit + out + ms + out.replace("shrink", "negative") + out;
|
1300
|
+
}
|
1301
|
+
case 98: {
|
1302
|
+
return webkit + out + ms + out.replace("basis", "preferred-size") + out;
|
1303
|
+
}
|
1304
|
+
}
|
1305
|
+
}
|
1306
|
+
return webkit + out + ms + out + out;
|
1307
|
+
}
|
1308
|
+
case 964: {
|
1309
|
+
return webkit + out + ms + "flex-" + out + out;
|
1310
|
+
}
|
1311
|
+
case 1023: {
|
1312
|
+
if (out.charCodeAt(8) !== 99) {
|
1313
|
+
break;
|
1314
|
+
}
|
1315
|
+
cache = out.substring(out.indexOf(":", 15)).replace("flex-", "").replace("space-between", "justify");
|
1316
|
+
return webkit + "box-pack" + cache + webkit + out + ms + "flex-pack" + cache + out;
|
1317
|
+
}
|
1318
|
+
case 1005: {
|
1319
|
+
return cursorptn.test(out) ? out.replace(colonptn, ":" + webkit) + out.replace(colonptn, ":" + moz) + out : out;
|
1320
|
+
}
|
1321
|
+
case 1e3: {
|
1322
|
+
cache = out.substring(13).trim();
|
1323
|
+
index = cache.indexOf("-") + 1;
|
1324
|
+
switch (cache.charCodeAt(0) + cache.charCodeAt(index)) {
|
1325
|
+
case 226: {
|
1326
|
+
cache = out.replace(writingptn, "tb");
|
1327
|
+
break;
|
1328
|
+
}
|
1329
|
+
case 232: {
|
1330
|
+
cache = out.replace(writingptn, "tb-rl");
|
1331
|
+
break;
|
1332
|
+
}
|
1333
|
+
case 220: {
|
1334
|
+
cache = out.replace(writingptn, "lr");
|
1335
|
+
break;
|
1336
|
+
}
|
1337
|
+
default: {
|
1338
|
+
return out;
|
1339
|
+
}
|
1340
|
+
}
|
1341
|
+
return webkit + out + ms + cache + out;
|
1342
|
+
}
|
1343
|
+
case 1017: {
|
1344
|
+
if (out.indexOf("sticky", 9) === -1) {
|
1345
|
+
return out;
|
1346
|
+
}
|
1347
|
+
}
|
1348
|
+
case 975: {
|
1349
|
+
index = (out = input).length - 10;
|
1350
|
+
cache = (out.charCodeAt(index) === 33 ? out.substring(0, index) : out).substring(input.indexOf(":", 7) + 1).trim();
|
1351
|
+
switch (hash2 = cache.charCodeAt(0) + (cache.charCodeAt(7) | 0)) {
|
1352
|
+
case 203: {
|
1353
|
+
if (cache.charCodeAt(8) < 111) {
|
1354
|
+
break;
|
1355
|
+
}
|
1356
|
+
}
|
1357
|
+
case 115: {
|
1358
|
+
out = out.replace(cache, webkit + cache) + ";" + out;
|
1359
|
+
break;
|
1360
|
+
}
|
1361
|
+
case 207:
|
1362
|
+
case 102: {
|
1363
|
+
out = out.replace(cache, webkit + (hash2 > 102 ? "inline-" : "") + "box") + ";" + out.replace(cache, webkit + cache) + ";" + out.replace(cache, ms + cache + "box") + ";" + out;
|
1364
|
+
}
|
1365
|
+
}
|
1366
|
+
return out + ";";
|
1367
|
+
}
|
1368
|
+
case 938: {
|
1369
|
+
if (out.charCodeAt(5) === DASH) {
|
1370
|
+
switch (out.charCodeAt(6)) {
|
1371
|
+
case 105: {
|
1372
|
+
cache = out.replace("-items", "");
|
1373
|
+
return webkit + out + webkit + "box-" + cache + ms + "flex-" + cache + out;
|
1374
|
+
}
|
1375
|
+
case 115: {
|
1376
|
+
return webkit + out + ms + "flex-item-" + out.replace(selfptn, "") + out;
|
1377
|
+
}
|
1378
|
+
default: {
|
1379
|
+
return webkit + out + ms + "flex-line-pack" + out.replace("align-content", "").replace(selfptn, "") + out;
|
1380
|
+
}
|
1381
|
+
}
|
1382
|
+
}
|
1383
|
+
break;
|
1384
|
+
}
|
1385
|
+
case 973:
|
1386
|
+
case 989: {
|
1387
|
+
if (out.charCodeAt(3) !== DASH || out.charCodeAt(4) === 122) {
|
1388
|
+
break;
|
1389
|
+
}
|
1390
|
+
}
|
1391
|
+
case 931:
|
1392
|
+
case 953: {
|
1393
|
+
if (dimensionptn.test(input) === true) {
|
1394
|
+
if ((cache = input.substring(input.indexOf(":") + 1)).charCodeAt(0) === 115)
|
1395
|
+
return property(input.replace("stretch", "fill-available"), first, second, third).replace(":fill-available", ":stretch");
|
1396
|
+
else
|
1397
|
+
return out.replace(cache, webkit + cache) + out.replace(cache, moz + cache.replace("fill-", "")) + out;
|
1398
|
+
}
|
1399
|
+
break;
|
1400
|
+
}
|
1401
|
+
case 962: {
|
1402
|
+
out = webkit + out + (out.charCodeAt(5) === 102 ? ms + out : "") + out;
|
1403
|
+
if (second + third === 211 && out.charCodeAt(13) === 105 && out.indexOf("transform", 10) > 0) {
|
1404
|
+
return out.substring(0, out.indexOf(";", 27) + 1).replace(transformptn, "$1" + webkit + "$2") + out;
|
1405
|
+
}
|
1406
|
+
break;
|
1407
|
+
}
|
1408
|
+
}
|
1409
|
+
return out;
|
1410
|
+
}
|
1411
|
+
function vendor(content, context) {
|
1412
|
+
var index = content.indexOf(context === 1 ? ":" : "{");
|
1413
|
+
var key2 = content.substring(0, context !== 3 ? index : 10);
|
1414
|
+
var value = content.substring(index + 1, content.length - 1);
|
1415
|
+
return should(context !== 2 ? key2 : key2.replace(pseudofmt, "$1"), value, context);
|
1416
|
+
}
|
1417
|
+
function supports(match, group) {
|
1418
|
+
var out = property(group, group.charCodeAt(0), group.charCodeAt(1), group.charCodeAt(2));
|
1419
|
+
return out !== group + ";" ? out.replace(propertyptn, " or ($1)").substring(4) : "(" + group + ")";
|
1420
|
+
}
|
1421
|
+
function animation(input) {
|
1422
|
+
var length = input.length;
|
1423
|
+
var index = input.indexOf(":", 9) + 1;
|
1424
|
+
var declare = input.substring(0, index).trim();
|
1425
|
+
var out = input.substring(index, length - 1).trim();
|
1426
|
+
switch (input.charCodeAt(9) * keyed) {
|
1427
|
+
case 0: {
|
1428
|
+
break;
|
1429
|
+
}
|
1430
|
+
case DASH: {
|
1431
|
+
if (input.charCodeAt(10) !== 110) {
|
1432
|
+
break;
|
1433
|
+
}
|
1434
|
+
}
|
1435
|
+
default: {
|
1436
|
+
var list = out.split((out = "", animationptn));
|
1437
|
+
for (var i = 0, index = 0, length = list.length; i < length; index = 0, ++i) {
|
1438
|
+
var value = list[i];
|
1439
|
+
var items = value.split(propertiesptn);
|
1440
|
+
while (value = items[index]) {
|
1441
|
+
var peak = value.charCodeAt(0);
|
1442
|
+
if (keyed === 1 && // letters
|
1443
|
+
(peak > AT && peak < 90 || peak > 96 && peak < 123 || peak === UNDERSCORE || // dash but not in sequence i.e --
|
1444
|
+
peak === DASH && value.charCodeAt(1) !== DASH)) {
|
1445
|
+
switch (isNaN(parseFloat(value)) + (value.indexOf("(") !== -1)) {
|
1446
|
+
case 1: {
|
1447
|
+
switch (value) {
|
1448
|
+
case "infinite":
|
1449
|
+
case "alternate":
|
1450
|
+
case "backwards":
|
1451
|
+
case "running":
|
1452
|
+
case "normal":
|
1453
|
+
case "forwards":
|
1454
|
+
case "both":
|
1455
|
+
case "none":
|
1456
|
+
case "linear":
|
1457
|
+
case "ease":
|
1458
|
+
case "ease-in":
|
1459
|
+
case "ease-out":
|
1460
|
+
case "ease-in-out":
|
1461
|
+
case "paused":
|
1462
|
+
case "reverse":
|
1463
|
+
case "alternate-reverse":
|
1464
|
+
case "inherit":
|
1465
|
+
case "initial":
|
1466
|
+
case "unset":
|
1467
|
+
case "step-start":
|
1468
|
+
case "step-end": {
|
1469
|
+
break;
|
1470
|
+
}
|
1471
|
+
default: {
|
1472
|
+
value += key;
|
1473
|
+
}
|
1474
|
+
}
|
1475
|
+
}
|
1476
|
+
}
|
1477
|
+
}
|
1478
|
+
items[index++] = value;
|
1479
|
+
}
|
1480
|
+
out += (i === 0 ? "" : ",") + items.join(" ");
|
1481
|
+
}
|
1482
|
+
}
|
1483
|
+
}
|
1484
|
+
out = declare + out + ";";
|
1485
|
+
if (prefix === 1 || prefix === 2 && vendor(out, 1))
|
1486
|
+
return webkit + out + out;
|
1487
|
+
return out;
|
1488
|
+
}
|
1489
|
+
function isolate(current) {
|
1490
|
+
for (var i = 0, length = current.length, selector = Array(length), padding, element; i < length; ++i) {
|
1491
|
+
var elements = current[i].split(elementptn);
|
1492
|
+
var out = "";
|
1493
|
+
for (var j = 0, size = 0, tail = 0, code = 0, l = elements.length; j < l; ++j) {
|
1494
|
+
if ((size = (element = elements[j]).length) === 0 && l > 1) {
|
1495
|
+
continue;
|
1496
|
+
}
|
1497
|
+
tail = out.charCodeAt(out.length - 1);
|
1498
|
+
code = element.charCodeAt(0);
|
1499
|
+
padding = "";
|
1500
|
+
if (j !== 0) {
|
1501
|
+
switch (tail) {
|
1502
|
+
case STAR:
|
1503
|
+
case TILDE:
|
1504
|
+
case GREATERTHAN:
|
1505
|
+
case PLUS:
|
1506
|
+
case SPACE:
|
1507
|
+
case OPENPARENTHESES: {
|
1508
|
+
break;
|
1509
|
+
}
|
1510
|
+
default: {
|
1511
|
+
padding = " ";
|
1512
|
+
}
|
1513
|
+
}
|
1514
|
+
}
|
1515
|
+
switch (code) {
|
1516
|
+
case AND: {
|
1517
|
+
element = padding + nscopealt;
|
1518
|
+
}
|
1519
|
+
case TILDE:
|
1520
|
+
case GREATERTHAN:
|
1521
|
+
case PLUS:
|
1522
|
+
case SPACE:
|
1523
|
+
case CLOSEPARENTHESES:
|
1524
|
+
case OPENPARENTHESES: {
|
1525
|
+
break;
|
1526
|
+
}
|
1527
|
+
case OPENBRACKET: {
|
1528
|
+
element = padding + element + nscopealt;
|
1529
|
+
break;
|
1530
|
+
}
|
1531
|
+
case COLON: {
|
1532
|
+
switch (element.charCodeAt(1) * 2 + element.charCodeAt(2) * 3) {
|
1533
|
+
case 530: {
|
1534
|
+
if (escape > 0) {
|
1535
|
+
element = padding + element.substring(8, size - 1);
|
1536
|
+
break;
|
1537
|
+
}
|
1538
|
+
}
|
1539
|
+
default: {
|
1540
|
+
if (j < 1 || elements[j - 1].length < 1) {
|
1541
|
+
element = padding + nscopealt + element;
|
1542
|
+
}
|
1543
|
+
}
|
1544
|
+
}
|
1545
|
+
break;
|
1546
|
+
}
|
1547
|
+
case COMMA: {
|
1548
|
+
padding = "";
|
1549
|
+
}
|
1550
|
+
default: {
|
1551
|
+
if (size > 1 && element.indexOf(":") > 0) {
|
1552
|
+
element = padding + element.replace(pseudoptn, "$1" + nscopealt + "$2");
|
1553
|
+
} else {
|
1554
|
+
element = padding + element + nscopealt;
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
}
|
1558
|
+
out += element;
|
1559
|
+
}
|
1560
|
+
selector[i] = out.replace(formatptn, "").trim();
|
1561
|
+
}
|
1562
|
+
return selector;
|
1563
|
+
}
|
1564
|
+
function proxy(context, content, selectors, parents, line2, column2, length, id, depth, at) {
|
1565
|
+
for (var i = 0, out = content, next; i < plugged; ++i) {
|
1566
|
+
switch (next = plugins[i].call(stylis2, context, out, selectors, parents, line2, column2, length, id, depth, at)) {
|
1567
|
+
case void 0:
|
1568
|
+
case false:
|
1569
|
+
case true:
|
1570
|
+
case null: {
|
1571
|
+
break;
|
1572
|
+
}
|
1573
|
+
default: {
|
1574
|
+
out = next;
|
1575
|
+
}
|
1576
|
+
}
|
1577
|
+
}
|
1578
|
+
if (out !== content) {
|
1579
|
+
return out;
|
1580
|
+
}
|
1581
|
+
}
|
1582
|
+
function delimited(code, index, length, body) {
|
1583
|
+
for (var i = index + 1; i < length; ++i) {
|
1584
|
+
switch (body.charCodeAt(i)) {
|
1585
|
+
case FOWARDSLASH: {
|
1586
|
+
if (code === STAR) {
|
1587
|
+
if (body.charCodeAt(i - 1) === STAR && index + 2 !== i) {
|
1588
|
+
return i + 1;
|
1589
|
+
}
|
1590
|
+
}
|
1591
|
+
break;
|
1592
|
+
}
|
1593
|
+
case NEWLINE: {
|
1594
|
+
if (code === FOWARDSLASH) {
|
1595
|
+
return i + 1;
|
1596
|
+
}
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
}
|
1600
|
+
return i;
|
1601
|
+
}
|
1602
|
+
function minify(output) {
|
1603
|
+
return output.replace(formatptn, "").replace(beforeptn, "").replace(afterptn, "$1").replace(tailptn, "$1").replace(whiteptn, " ");
|
1604
|
+
}
|
1605
|
+
function use(plugin) {
|
1606
|
+
switch (plugin) {
|
1607
|
+
case void 0:
|
1608
|
+
case null: {
|
1609
|
+
plugged = plugins.length = 0;
|
1610
|
+
break;
|
1611
|
+
}
|
1612
|
+
default: {
|
1613
|
+
if (typeof plugin === "function") {
|
1614
|
+
plugins[plugged++] = plugin;
|
1615
|
+
} else if (typeof plugin === "object") {
|
1616
|
+
for (var i = 0, length = plugin.length; i < length; ++i) {
|
1617
|
+
use(plugin[i]);
|
1618
|
+
}
|
1619
|
+
} else {
|
1620
|
+
unkwn = !!plugin | 0;
|
1621
|
+
}
|
1622
|
+
}
|
1623
|
+
}
|
1624
|
+
return use;
|
1625
|
+
}
|
1626
|
+
function set(options2) {
|
1627
|
+
for (var name in options2) {
|
1628
|
+
var value = options2[name];
|
1629
|
+
switch (name) {
|
1630
|
+
case "keyframe":
|
1631
|
+
keyed = value | 0;
|
1632
|
+
break;
|
1633
|
+
case "global":
|
1634
|
+
escape = value | 0;
|
1635
|
+
break;
|
1636
|
+
case "cascade":
|
1637
|
+
cascade = value | 0;
|
1638
|
+
break;
|
1639
|
+
case "compress":
|
1640
|
+
compress = value | 0;
|
1641
|
+
break;
|
1642
|
+
case "semicolon":
|
1643
|
+
semicolon = value | 0;
|
1644
|
+
break;
|
1645
|
+
case "preserve":
|
1646
|
+
preserve = value | 0;
|
1647
|
+
break;
|
1648
|
+
case "prefix":
|
1649
|
+
should = null;
|
1650
|
+
if (!value) {
|
1651
|
+
prefix = 0;
|
1652
|
+
} else if (typeof value !== "function") {
|
1653
|
+
prefix = 1;
|
1654
|
+
} else {
|
1655
|
+
prefix = 2;
|
1656
|
+
should = value;
|
1657
|
+
}
|
1658
|
+
}
|
1659
|
+
}
|
1660
|
+
return set;
|
1661
|
+
}
|
1662
|
+
function stylis2(selector, input) {
|
1663
|
+
if (this !== void 0 && this.constructor === stylis2) {
|
1664
|
+
return factory(selector);
|
1665
|
+
}
|
1666
|
+
var ns = selector;
|
1667
|
+
var code = ns.charCodeAt(0);
|
1668
|
+
if (code < 33) {
|
1669
|
+
code = (ns = ns.trim()).charCodeAt(0);
|
1670
|
+
}
|
1671
|
+
if (keyed > 0) {
|
1672
|
+
key = ns.replace(invalidptn, code === OPENBRACKET ? "" : "-");
|
1673
|
+
}
|
1674
|
+
code = 1;
|
1675
|
+
if (cascade === 1) {
|
1676
|
+
nscope = ns;
|
1677
|
+
} else {
|
1678
|
+
nscopealt = ns;
|
1679
|
+
}
|
1680
|
+
var selectors = [nscope];
|
1681
|
+
var result;
|
1682
|
+
if (plugged > 0) {
|
1683
|
+
result = proxy(PREPS, input, selectors, selectors, line, column, 0, 0, 0, 0);
|
1684
|
+
if (result !== void 0 && typeof result === "string") {
|
1685
|
+
input = result;
|
1686
|
+
}
|
1687
|
+
}
|
1688
|
+
var output = compile(array, selectors, input, 0, 0);
|
1689
|
+
if (plugged > 0) {
|
1690
|
+
result = proxy(POSTS, output, selectors, selectors, line, column, output.length, 0, 0, 0);
|
1691
|
+
if (result !== void 0 && typeof (output = result) !== "string") {
|
1692
|
+
code = 0;
|
1693
|
+
}
|
1694
|
+
}
|
1695
|
+
key = "";
|
1696
|
+
nscope = "";
|
1697
|
+
nscopealt = "";
|
1698
|
+
pattern = 0;
|
1699
|
+
line = 1;
|
1700
|
+
column = 1;
|
1701
|
+
return compress * code === 0 ? output : minify(output);
|
1702
|
+
}
|
1703
|
+
stylis2["use"] = use;
|
1704
|
+
stylis2["set"] = set;
|
1705
|
+
if (options !== void 0) {
|
1706
|
+
set(options);
|
1707
|
+
}
|
1708
|
+
return stylis2;
|
1709
|
+
}
|
1710
|
+
);
|
1711
|
+
});
|
1712
|
+
(function() {
|
1713
|
+
function ComponentStyle(rules, selector) {
|
1714
|
+
_classCallCheck(this, ComponentStyle);
|
1715
|
+
this.rules = rules;
|
1716
|
+
this.selector = selector;
|
1717
|
+
}
|
1718
|
+
_createClass(ComponentStyle, [{
|
1719
|
+
key: "generateAndInject",
|
1720
|
+
value: function generateAndInject() {
|
1721
|
+
if (!styleSheet.injected)
|
1722
|
+
styleSheet.inject();
|
1723
|
+
var flatCSS = flatten(this.rules).join("");
|
1724
|
+
var cssString = this.selector ? "".concat(this.selector, " { ").concat(flatCSS, " }") : flatCSS;
|
1725
|
+
var css2 = stylis("", cssString, false, false);
|
1726
|
+
styleSheet.insert(css2, {
|
1727
|
+
global: true
|
1728
|
+
});
|
1729
|
+
}
|
1730
|
+
}]);
|
1731
|
+
return ComponentStyle;
|
1732
|
+
})();
|
1733
|
+
var ThemeProvider = {
|
1734
|
+
props: {
|
1735
|
+
theme: Object
|
1736
|
+
},
|
1737
|
+
setup: function setup(props, _ref) {
|
1738
|
+
_ref.slots;
|
1739
|
+
provide("theme", props.theme);
|
1740
|
+
},
|
1741
|
+
render: function render() {
|
1742
|
+
return h("div", {}, this.$slots["default"]());
|
1743
|
+
}
|
1744
|
+
};
|
1745
|
+
function isVueComponent(target) {
|
1746
|
+
return target && (typeof target.setup === "function" || typeof target.render === "function" || typeof target.template === "string");
|
1747
|
+
}
|
1748
|
+
var objectProto$1 = Object.prototype;
|
1749
|
+
var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
1750
|
+
function assignValue(object, key, value) {
|
1751
|
+
var objValue = object[key];
|
1752
|
+
if (!(hasOwnProperty$1.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
1753
|
+
object[key] = value;
|
1754
|
+
}
|
1755
|
+
}
|
1756
|
+
function baseZipObject(props, values, assignFunc) {
|
1757
|
+
var index = -1, length = props.length, valsLength = values.length, result = {};
|
1758
|
+
while (++index < length) {
|
1759
|
+
var value = index < valsLength ? values[index] : void 0;
|
1760
|
+
assignFunc(result, props[index], value);
|
1761
|
+
}
|
1762
|
+
return result;
|
1763
|
+
}
|
1764
|
+
function zipObject(props, values) {
|
1765
|
+
return baseZipObject(props || [], values || [], assignValue);
|
1766
|
+
}
|
1767
|
+
function eq(value, other) {
|
1768
|
+
return value === other || value !== value && other !== other;
|
1769
|
+
}
|
1770
|
+
var lodash_zipobject = zipObject;
|
1771
|
+
function normalizeProps() {
|
1772
|
+
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
1773
|
+
if (Array.isArray(props)) {
|
1774
|
+
return lodash_zipobject(props);
|
1775
|
+
} else {
|
1776
|
+
return props;
|
1777
|
+
}
|
1778
|
+
}
|
1779
|
+
var commonHtmlAttributes = ["value", "name", "type", "id", "href"];
|
1780
|
+
var _styledComponent = function(ComponentStyle) {
|
1781
|
+
var createStyledComponent = function createStyledComponent2(tagOrComponent, rules, propDefinitions) {
|
1782
|
+
var componentStyle = new ComponentStyle(rules);
|
1783
|
+
var targetPropDefinitions = normalizeProps(tagOrComponent.props);
|
1784
|
+
var ownPropDefinitions = normalizeProps(propDefinitions);
|
1785
|
+
var targetPropDefinitionKeys = tagOrComponent.props ? Object.keys(targetPropDefinitions) : commonHtmlAttributes;
|
1786
|
+
var combinedPropDefinition = tagOrComponent.props ? _objectSpread2({}, ownPropDefinitions, {}, targetPropDefinitions) : ownPropDefinitions;
|
1787
|
+
return {
|
1788
|
+
props: _objectSpread2({
|
1789
|
+
as: [String, Object],
|
1790
|
+
modelValue: null
|
1791
|
+
}, combinedPropDefinition),
|
1792
|
+
emits: ["input", "update:modelValue"],
|
1793
|
+
setup: function setup2(props, _ref) {
|
1794
|
+
var slots = _ref.slots, attrs = _ref.attrs, emit = _ref.emit;
|
1795
|
+
var theme = inject("theme");
|
1796
|
+
return function() {
|
1797
|
+
var styleClass = componentStyle.generateAndInjectStyles(_objectSpread2({
|
1798
|
+
theme
|
1799
|
+
}, props, {}, attrs));
|
1800
|
+
var classes = [styleClass];
|
1801
|
+
if (attrs["class"]) {
|
1802
|
+
classes.push(attrs["class"]);
|
1803
|
+
}
|
1804
|
+
var targetProps = {};
|
1805
|
+
if (targetPropDefinitionKeys.length) {
|
1806
|
+
for (var _i = 0, _Object$entries = Object.entries(props); _i < _Object$entries.length; _i++) {
|
1807
|
+
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2), key = _Object$entries$_i[0], value = _Object$entries$_i[1];
|
1808
|
+
if (targetPropDefinitionKeys.includes(key)) {
|
1809
|
+
targetProps[key] = value;
|
1810
|
+
}
|
1811
|
+
}
|
1812
|
+
}
|
1813
|
+
return h(isVueComponent(tagOrComponent) ? tagOrComponent : props.as || tagOrComponent, _objectSpread2({
|
1814
|
+
value: props.modelValue
|
1815
|
+
}, attrs, {}, targetProps, {
|
1816
|
+
"class": classes,
|
1817
|
+
onInput: function onInput(e) {
|
1818
|
+
emit("update:modelValue", e.target.value);
|
1819
|
+
emit("input", e);
|
1820
|
+
}
|
1821
|
+
}), slots);
|
1822
|
+
};
|
1823
|
+
},
|
1824
|
+
extend: function extend(cssRules) {
|
1825
|
+
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
1826
|
+
interpolations[_key - 1] = arguments[_key];
|
1827
|
+
}
|
1828
|
+
var extendedRules = css.apply(void 0, [cssRules].concat(interpolations));
|
1829
|
+
return createStyledComponent2(tagOrComponent, rules.concat(extendedRules), propDefinitions);
|
1830
|
+
},
|
1831
|
+
withComponent: function withComponent(newTarget) {
|
1832
|
+
return createStyledComponent2(newTarget, rules, propDefinitions);
|
1833
|
+
}
|
1834
|
+
};
|
1835
|
+
};
|
1836
|
+
return createStyledComponent;
|
1837
|
+
};
|
1838
|
+
var _componentStyle = function(nameGenerator) {
|
1839
|
+
var inserted = {};
|
1840
|
+
var ComponentStyle = function() {
|
1841
|
+
function ComponentStyle2(rules) {
|
1842
|
+
_classCallCheck(this, ComponentStyle2);
|
1843
|
+
this.rules = rules;
|
1844
|
+
stylis.set({
|
1845
|
+
keyframe: false
|
1846
|
+
});
|
1847
|
+
if (!styleSheet.injected)
|
1848
|
+
styleSheet.inject();
|
1849
|
+
this.insertedRule = styleSheet.insert("");
|
1850
|
+
}
|
1851
|
+
_createClass(ComponentStyle2, [{
|
1852
|
+
key: "generateAndInjectStyles",
|
1853
|
+
value: function generateAndInjectStyles(executionContext) {
|
1854
|
+
var flatCSS = flatten(this.rules, executionContext).join("").replace(/^\s*\/\/.*$/gm, "");
|
1855
|
+
var hash2 = hashStr(flatCSS);
|
1856
|
+
if (!inserted[hash2]) {
|
1857
|
+
var selector = nameGenerator(hash2);
|
1858
|
+
inserted[hash2] = selector;
|
1859
|
+
var css2 = stylis(".".concat(selector), flatCSS);
|
1860
|
+
this.insertedRule.appendRule(css2);
|
1861
|
+
}
|
1862
|
+
return inserted[hash2];
|
1863
|
+
}
|
1864
|
+
}]);
|
1865
|
+
return ComponentStyle2;
|
1866
|
+
}();
|
1867
|
+
return ComponentStyle;
|
1868
|
+
};
|
1869
|
+
var domElements = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "g", "image", "line", "linearGradient", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"];
|
1870
|
+
function isTag(target) {
|
1871
|
+
if (typeof target === "string") {
|
1872
|
+
return domElements.indexOf(target) !== -1;
|
1873
|
+
}
|
1874
|
+
}
|
1875
|
+
function isStyledComponent(target) {
|
1876
|
+
return target && target.methods && typeof target.methods.generateAndInjectStyles === "function";
|
1877
|
+
}
|
1878
|
+
function isValidElementType(target) {
|
1879
|
+
return isStyledComponent(target) || isVueComponent(target) || isTag(target);
|
1880
|
+
}
|
1881
|
+
var _styled = function(createStyledComponent) {
|
1882
|
+
var styled2 = function styled3(tagName) {
|
1883
|
+
var props = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1884
|
+
if (!isValidElementType(tagName)) {
|
1885
|
+
throw new Error(tagName + " is not allowed for styled tag type.");
|
1886
|
+
}
|
1887
|
+
return function(cssRules) {
|
1888
|
+
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
1889
|
+
interpolations[_key - 1] = arguments[_key];
|
1890
|
+
}
|
1891
|
+
return createStyledComponent(tagName, css.apply(void 0, [cssRules].concat(interpolations)), props);
|
1892
|
+
};
|
1893
|
+
};
|
1894
|
+
domElements.forEach(function(domElement) {
|
1895
|
+
styled2[domElement] = styled2(domElement);
|
1896
|
+
});
|
1897
|
+
return styled2;
|
1898
|
+
};
|
1899
|
+
var styled = _styled(_styledComponent(_componentStyle(generateAlphabeticName)));
|
1900
|
+
export {
|
1901
|
+
ThemeProvider,
|
1902
|
+
css,
|
1903
|
+
styled as default
|
1904
|
+
};
|